@cfpb/ccdb5-ui 2.14.0 → 2.14.2

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/ccdb5.js CHANGED
@@ -1,4 +1,4 @@
1
- var i$=Object.defineProperty,o$=Object.defineProperties;var a$=Object.getOwnPropertyDescriptors;var Vk=Object.getOwnPropertySymbols;var zR=Object.prototype.hasOwnProperty,UR=Object.prototype.propertyIsEnumerable;var HR=Math.pow,G5=(Jo,ba,Fn)=>ba in Jo?i$(Jo,ba,{enumerable:!0,configurable:!0,writable:!0,value:Fn}):Jo[ba]=Fn,xr=(Jo,ba)=>{for(var Fn in ba||(ba={}))zR.call(ba,Fn)&&G5(Jo,Fn,ba[Fn]);if(Vk)for(var Fn of Vk(ba))UR.call(ba,Fn)&&G5(Jo,Fn,ba[Fn]);return Jo},Mi=(Jo,ba)=>o$(Jo,a$(ba));var VR=Jo=>typeof Jo=="symbol"?Jo:Jo+"",io=(Jo,ba)=>{var Fn={};for(var Ju in Jo)zR.call(Jo,Ju)&&ba.indexOf(Ju)<0&&(Fn[Ju]=Jo[Ju]);if(Jo!=null&&Vk)for(var Ju of Vk(Jo))ba.indexOf(Ju)<0&&UR.call(Jo,Ju)&&(Fn[Ju]=Jo[Ju]);return Fn};var lo=(Jo,ba,Fn)=>G5(Jo,typeof ba!="symbol"?ba+"":ba,Fn);var Qi=(Jo,ba,Fn)=>new Promise((Ju,br)=>{var Pe=Lt=>{try{W(Fn.next(Lt))}catch(_){br(_)}},Mt=Lt=>{try{W(Fn.throw(Lt))}catch(_){br(_)}},W=Lt=>Lt.done?Ju(Lt.value):Promise.resolve(Lt.value).then(Pe,Mt);W((Fn=Fn.apply(Jo,ba)).next())});(()=>{var Jo={3861:(br,Pe,Mt)=>{(function(W,Lt){br.exports=Lt(Mt(3224))})(window,function(W){return function(Lt){var _={};function E(U){if(_[U])return _[U].exports;var z=_[U]={i:U,l:!1,exports:{}};return Lt[U].call(z.exports,z,z.exports,E),z.l=!0,z.exports}return E.m=Lt,E.c=_,E.d=function(U,z,at){E.o(U,z)||Object.defineProperty(U,z,{enumerable:!0,get:at})},E.r=function(U){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(U,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(U,"__esModule",{value:!0})},E.t=function(U,z){if(1&z&&(U=E(U)),8&z||4&z&&typeof U=="object"&&U&&U.__esModule)return U;var at=Object.create(null);if(E.r(at),Object.defineProperty(at,"default",{enumerable:!0,value:U}),2&z&&typeof U!="string")for(var J in U)E.d(at,J,function(tt){return U[tt]}.bind(null,J));return at},E.n=function(U){var z=U&&U.__esModule?function(){return U.default}:function(){return U};return E.d(z,"a",z),z},E.o=function(U,z){return Object.prototype.hasOwnProperty.call(U,z)},E.p="",E(E.s=88)}([function(Lt,_,E){"use strict";E.r(_);var U=function(it,D){return it<D?-1:it>D?1:it>=D?0:NaN},z=function(it){var D;return it.length===1&&(D=it,it=function(O,Y){return U(D(O),Y)}),{left:function(O,Y,lt,ot){for(lt==null&&(lt=0),ot==null&&(ot=O.length);lt<ot;){var xt=lt+ot>>>1;it(O[xt],Y)<0?lt=xt+1:ot=xt}return lt},right:function(O,Y,lt,ot){for(lt==null&&(lt=0),ot==null&&(ot=O.length);lt<ot;){var xt=lt+ot>>>1;it(O[xt],Y)>0?ot=xt:lt=xt+1}return lt}}},at=z(U),J=at.right,tt=at.left,K=J,Z=function(it,D){D==null&&(D=Q);for(var O=0,Y=it.length-1,lt=it[0],ot=new Array(Y<0?0:Y);O<Y;)ot[O]=D(lt,lt=it[++O]);return ot};function Q(it,D){return[it,D]}var V=function(it,D,O){var Y,lt,ot,xt,dt=it.length,vt=D.length,Et=new Array(dt*vt);for(O==null&&(O=Q),Y=ot=0;Y<dt;++Y)for(xt=it[Y],lt=0;lt<vt;++lt,++ot)Et[ot]=O(xt,D[lt]);return Et},X=function(it,D){return D<it?-1:D>it?1:D>=it?0:NaN},j=function(it){return it===null?NaN:+it},B=function(it,D){var O,Y,lt=it.length,ot=0,xt=-1,dt=0,vt=0;if(D==null)for(;++xt<lt;)isNaN(O=j(it[xt]))||(vt+=(Y=O-dt)*(O-(dt+=Y/++ot)));else for(;++xt<lt;)isNaN(O=j(D(it[xt],xt,it)))||(vt+=(Y=O-dt)*(O-(dt+=Y/++ot)));if(ot>1)return vt/(ot-1)},d=function(it,D){var O=B(it,D);return O&&Math.sqrt(O)},R=function(it,D){var O,Y,lt,ot=it.length,xt=-1;if(D==null){for(;++xt<ot;)if((O=it[xt])!=null&&O>=O)for(Y=lt=O;++xt<ot;)(O=it[xt])!=null&&(Y>O&&(Y=O),lt<O&&(lt=O))}else for(;++xt<ot;)if((O=D(it[xt],xt,it))!=null&&O>=O)for(Y=lt=O;++xt<ot;)(O=D(it[xt],xt,it))!=null&&(Y>O&&(Y=O),lt<O&&(lt=O));return[Y,lt]},P=Array.prototype,s=P.slice,x=P.map,b=function(it){return function(){return it}},o=function(it){return it},u=function(it,D,O){it=+it,D=+D,O=(lt=arguments.length)<2?(D=it,it=0,1):lt<3?1:+O;for(var Y=-1,lt=0|Math.max(0,Math.ceil((D-it)/O)),ot=new Array(lt);++Y<lt;)ot[Y]=it+Y*O;return ot},C=Math.sqrt(50),M=Math.sqrt(10),w=Math.sqrt(2),y=function(it,D,O){var Y,lt,ot,xt,dt=-1;if(O=+O,(it=+it)==(D=+D)&&O>0)return[it];if((Y=D<it)&&(lt=it,it=D,D=lt),(xt=m(it,D,O))===0||!isFinite(xt))return[];if(xt>0)for(it=Math.ceil(it/xt),D=Math.floor(D/xt),ot=new Array(lt=Math.ceil(D-it+1));++dt<lt;)ot[dt]=(it+dt)*xt;else for(it=Math.floor(it*xt),D=Math.ceil(D*xt),ot=new Array(lt=Math.ceil(it-D+1));++dt<lt;)ot[dt]=(it-dt)/xt;return Y&&ot.reverse(),ot};function m(it,D,O){var Y=(D-it)/Math.max(0,O),lt=Math.floor(Math.log(Y)/Math.LN10),ot=Y/Math.pow(10,lt);return lt>=0?(ot>=C?10:ot>=M?5:ot>=w?2:1)*Math.pow(10,lt):-Math.pow(10,-lt)/(ot>=C?10:ot>=M?5:ot>=w?2:1)}function g(it,D,O){var Y=Math.abs(D-it)/Math.max(0,O),lt=Math.pow(10,Math.floor(Math.log(Y)/Math.LN10)),ot=Y/lt;return ot>=C?lt*=10:ot>=M?lt*=5:ot>=w&&(lt*=2),D<it?-lt:lt}var p=function(it){return Math.ceil(Math.log(it.length)/Math.LN2)+1},l=function(){var it=o,D=R,O=p;function Y(lt){var ot,xt,dt=lt.length,vt=new Array(dt);for(ot=0;ot<dt;++ot)vt[ot]=it(lt[ot],ot,lt);var Et=D(vt),kt=Et[0],Nt=Et[1],gt=O(vt,kt,Nt);Array.isArray(gt)||(gt=g(kt,Nt,gt),gt=u(Math.ceil(kt/gt)*gt,Nt,gt));for(var wt=gt.length;gt[0]<=kt;)gt.shift(),--wt;for(;gt[wt-1]>Nt;)gt.pop(),--wt;var Dt,jt=new Array(wt+1);for(ot=0;ot<=wt;++ot)(Dt=jt[ot]=[]).x0=ot>0?gt[ot-1]:kt,Dt.x1=ot<wt?gt[ot]:Nt;for(ot=0;ot<dt;++ot)kt<=(xt=vt[ot])&&xt<=Nt&&jt[K(gt,xt,0,wt)].push(lt[ot]);return jt}return Y.value=function(lt){return arguments.length?(it=typeof lt=="function"?lt:b(lt),Y):it},Y.domain=function(lt){return arguments.length?(D=typeof lt=="function"?lt:b([lt[0],lt[1]]),Y):D},Y.thresholds=function(lt){return arguments.length?(O=typeof lt=="function"?lt:Array.isArray(lt)?b(s.call(lt)):b(lt),Y):O},Y},f=function(it,D,O){if(O==null&&(O=j),Y=it.length){if((D=+D)<=0||Y<2)return+O(it[0],0,it);if(D>=1)return+O(it[Y-1],Y-1,it);var Y,lt=(Y-1)*D,ot=Math.floor(lt),xt=+O(it[ot],ot,it);return xt+(+O(it[ot+1],ot+1,it)-xt)*(lt-ot)}},v=function(it,D,O){return it=x.call(it,j).sort(U),Math.ceil((O-D)/(2*(f(it,.75)-f(it,.25))*Math.pow(it.length,-1/3)))},I=function(it,D,O){return Math.ceil((O-D)/(3.5*d(it)*Math.pow(it.length,-1/3)))},k=function(it,D){var O,Y,lt=it.length,ot=-1;if(D==null){for(;++ot<lt;)if((O=it[ot])!=null&&O>=O)for(Y=O;++ot<lt;)(O=it[ot])!=null&&O>Y&&(Y=O)}else for(;++ot<lt;)if((O=D(it[ot],ot,it))!=null&&O>=O)for(Y=O;++ot<lt;)(O=D(it[ot],ot,it))!=null&&O>Y&&(Y=O);return Y},T=function(it,D){var O,Y=it.length,lt=Y,ot=-1,xt=0;if(D==null)for(;++ot<Y;)isNaN(O=j(it[ot]))?--lt:xt+=O;else for(;++ot<Y;)isNaN(O=j(D(it[ot],ot,it)))?--lt:xt+=O;if(lt)return xt/lt},G=function(it,D){var O,Y=it.length,lt=-1,ot=[];if(D==null)for(;++lt<Y;)isNaN(O=j(it[lt]))||ot.push(O);else for(;++lt<Y;)isNaN(O=j(D(it[lt],lt,it)))||ot.push(O);return f(ot.sort(U),.5)},st=function(it){for(var D,O,Y,lt=it.length,ot=-1,xt=0;++ot<lt;)xt+=it[ot].length;for(O=new Array(xt);--lt>=0;)for(D=(Y=it[lt]).length;--D>=0;)O[--xt]=Y[D];return O},et=function(it,D){var O,Y,lt=it.length,ot=-1;if(D==null){for(;++ot<lt;)if((O=it[ot])!=null&&O>=O)for(Y=O;++ot<lt;)(O=it[ot])!=null&&Y>O&&(Y=O)}else for(;++ot<lt;)if((O=D(it[ot],ot,it))!=null&&O>=O)for(Y=O;++ot<lt;)(O=D(it[ot],ot,it))!=null&&Y>O&&(Y=O);return Y},ft=function(it,D){for(var O=D.length,Y=new Array(O);O--;)Y[O]=it[D[O]];return Y},pt=function(it,D){if(O=it.length){var O,Y,lt=0,ot=0,xt=it[ot];for(D==null&&(D=U);++lt<O;)(D(Y=it[lt],xt)<0||D(xt,xt)!==0)&&(xt=Y,ot=lt);return D(xt,xt)===0?ot:void 0}},St=function(it,D,O){for(var Y,lt,ot=(O==null?it.length:O)-(D=D==null?0:+D);ot;)lt=Math.random()*ot--|0,Y=it[ot+D],it[ot+D]=it[lt+D],it[lt+D]=Y;return it},Ct=function(it,D){var O,Y=it.length,lt=-1,ot=0;if(D==null)for(;++lt<Y;)(O=+it[lt])&&(ot+=O);else for(;++lt<Y;)(O=+D(it[lt],lt,it))&&(ot+=O);return ot},L=function(it){if(!(lt=it.length))return[];for(var D=-1,O=et(it,q),Y=new Array(O);++D<O;)for(var lt,ot=-1,xt=Y[D]=new Array(lt);++ot<lt;)xt[ot]=it[ot][D];return Y};function q(it){return it.length}var rt=function(){return L(arguments)};E.d(_,"bisect",function(){return K}),E.d(_,"bisectRight",function(){return J}),E.d(_,"bisectLeft",function(){return tt}),E.d(_,"ascending",function(){return U}),E.d(_,"bisector",function(){return z}),E.d(_,"cross",function(){return V}),E.d(_,"descending",function(){return X}),E.d(_,"deviation",function(){return d}),E.d(_,"extent",function(){return R}),E.d(_,"histogram",function(){return l}),E.d(_,"thresholdFreedmanDiaconis",function(){return v}),E.d(_,"thresholdScott",function(){return I}),E.d(_,"thresholdSturges",function(){return p}),E.d(_,"max",function(){return k}),E.d(_,"mean",function(){return T}),E.d(_,"median",function(){return G}),E.d(_,"merge",function(){return st}),E.d(_,"min",function(){return et}),E.d(_,"pairs",function(){return Z}),E.d(_,"permute",function(){return ft}),E.d(_,"quantile",function(){return f}),E.d(_,"range",function(){return u}),E.d(_,"scan",function(){return pt}),E.d(_,"shuffle",function(){return St}),E.d(_,"sum",function(){return Ct}),E.d(_,"ticks",function(){return y}),E.d(_,"tickIncrement",function(){return m}),E.d(_,"tickStep",function(){return g}),E.d(_,"transpose",function(){return L}),E.d(_,"variance",function(){return B}),E.d(_,"zip",function(){return rt})},function(Lt,_,E){"use strict";E.d(_,"a",function(){return at});var U=new Date,z=new Date;function at(J,tt,K,Z){function Q(V){return J(V=arguments.length===0?new Date:new Date(+V)),V}return Q.floor=function(V){return J(V=new Date(+V)),V},Q.ceil=function(V){return J(V=new Date(V-1)),tt(V,1),J(V),V},Q.round=function(V){var X=Q(V),j=Q.ceil(V);return V-X<j-V?X:j},Q.offset=function(V,X){return tt(V=new Date(+V),X==null?1:Math.floor(X)),V},Q.range=function(V,X,j){var B,d=[];if(V=Q.ceil(V),j=j==null?1:Math.floor(j),!(V<X&&j>0))return d;do d.push(B=new Date(+V)),tt(V,j),J(V);while(B<V&&V<X);return d},Q.filter=function(V){return at(function(X){if(X>=X)for(;J(X),!V(X);)X.setTime(X-1)},function(X,j){if(X>=X)if(j<0)for(;++j<=0;)for(;tt(X,-1),!V(X););else for(;--j>=0;)for(;tt(X,1),!V(X););})},K&&(Q.count=function(V,X){return U.setTime(+V),z.setTime(+X),J(U),J(z),Math.floor(K(U,z))},Q.every=function(V){return V=Math.floor(V),isFinite(V)&&V>0?V>1?Q.filter(Z?function(X){return Z(X)%V==0}:function(X){return Q.count(0,X)%V==0}):Q:null}),Q}},function(Lt,_,E){"use strict";E.r(_);var U=E(29),z=E(64),at=function(M){return Object(z.a)(Object(U.a)(M).call(document.documentElement))},J=0;function tt(){return new K}function K(){this._="@"+(++J).toString(36)}K.prototype=tt.prototype={constructor:K,get:function(M){for(var w=this._;!(w in M);)if(!(M=M.parentNode))return;return M[w]},set:function(M,w){return M[this._]=w},remove:function(M){return this._ in M&&delete M[this._]},toString:function(){return this._}};var Z=E(66),Q=E(84),V=E(44),X=E(32),j=E(30),B=E(23),d=function(M){return typeof M=="string"?new B.a([document.querySelectorAll(M)],[document.documentElement]):new B.a([M==null?[]:M],B.c)},R=E(43),P=E(65),s=E(67),x=E(85),b=E(46),o=function(M,w){w==null&&(w=Object(b.a)().touches);for(var y=0,m=w?w.length:0,g=new Array(m);y<m;++y)g[y]=Object(j.a)(M,w[y]);return g},u=E(45),C=E(37);E.d(_,"create",function(){return at}),E.d(_,"creator",function(){return U.a}),E.d(_,"local",function(){return tt}),E.d(_,"matcher",function(){return Z.a}),E.d(_,"mouse",function(){return Q.a}),E.d(_,"namespace",function(){return V.a}),E.d(_,"namespaces",function(){return X.a}),E.d(_,"clientPoint",function(){return j.a}),E.d(_,"select",function(){return z.a}),E.d(_,"selectAll",function(){return d}),E.d(_,"selection",function(){return B.b}),E.d(_,"selector",function(){return R.a}),E.d(_,"selectorAll",function(){return P.a}),E.d(_,"style",function(){return s.b}),E.d(_,"touch",function(){return x.a}),E.d(_,"touches",function(){return o}),E.d(_,"window",function(){return u.a}),E.d(_,"event",function(){return C.c}),E.d(_,"customEvent",function(){return C.a})},function(Lt,_,E){"use strict";E.d(_,"d",function(){return U}),E.d(_,"c",function(){return z}),E.d(_,"b",function(){return at}),E.d(_,"a",function(){return J}),E.d(_,"e",function(){return tt});var U=1e3,z=6e4,at=36e5,J=864e5,tt=6048e5},function(Lt,_,E){"use strict";E.d(_,"c",function(){return at}),E.d(_,"b",function(){return J}),E.d(_,"a",function(){return tt});var U=E(48);function z(K,Z){return function(Q){return K+Q*Z}}function at(K,Z){var Q=Z-K;return Q?z(K,Q>180||Q<-180?Q-360*Math.round(Q/360):Q):Object(U.a)(isNaN(K)?Z:K)}function J(K){return(K=+K)==1?tt:function(Z,Q){return Q-Z?function(V,X,j){return V=Math.pow(V,j),X=Math.pow(X,j)-V,j=1/j,function(B){return Math.pow(V+B*X,j)}}(Z,Q,K):Object(U.a)(isNaN(Z)?Q:Z)}}function tt(K,Z){var Q=Z-K;return Q?z(K,Q):Object(U.a)(isNaN(K)?Z:K)}},function(Lt,_,E){"use strict";E.d(_,"g",function(){return J}),E.d(_,"c",function(){return tt}),E.d(_,"k",function(){return K}),E.d(_,"m",function(){return Z}),E.d(_,"i",function(){return Q}),E.d(_,"a",function(){return V}),E.d(_,"e",function(){return X}),E.d(_,"h",function(){return j}),E.d(_,"d",function(){return B}),E.d(_,"l",function(){return d}),E.d(_,"n",function(){return R}),E.d(_,"j",function(){return P}),E.d(_,"b",function(){return s}),E.d(_,"f",function(){return x});var U=E(1),z=E(3);function at(b){return Object(U.a)(function(o){o.setDate(o.getDate()-(o.getDay()+7-b)%7),o.setHours(0,0,0,0)},function(o,u){o.setDate(o.getDate()+7*u)},function(o,u){return(u-o-(u.getTimezoneOffset()-o.getTimezoneOffset())*z.c)/z.e})}var J=at(0),tt=at(1),K=at(2),Z=at(3),Q=at(4),V=at(5),X=at(6),j=J.range,B=tt.range,d=K.range,R=Z.range,P=Q.range,s=V.range,x=X.range},function(Lt,_,E){"use strict";E.d(_,"g",function(){return J}),E.d(_,"c",function(){return tt}),E.d(_,"k",function(){return K}),E.d(_,"m",function(){return Z}),E.d(_,"i",function(){return Q}),E.d(_,"a",function(){return V}),E.d(_,"e",function(){return X}),E.d(_,"h",function(){return j}),E.d(_,"d",function(){return B}),E.d(_,"l",function(){return d}),E.d(_,"n",function(){return R}),E.d(_,"j",function(){return P}),E.d(_,"b",function(){return s}),E.d(_,"f",function(){return x});var U=E(1),z=E(3);function at(b){return Object(U.a)(function(o){o.setUTCDate(o.getUTCDate()-(o.getUTCDay()+7-b)%7),o.setUTCHours(0,0,0,0)},function(o,u){o.setUTCDate(o.getUTCDate()+7*u)},function(o,u){return(u-o)/z.e})}var J=at(0),tt=at(1),K=at(2),Z=at(3),Q=at(4),V=at(5),X=at(6),j=J.range,B=tt.range,d=K.range,R=Z.range,P=Q.range,s=V.range,x=X.range},function(Lt,_,E){"use strict";E.d(_,"a",function(){return z}),E.d(_,"d",function(){return at}),E.d(_,"c",function(){return J}),E.d(_,"e",function(){return b}),E.d(_,"h",function(){return C}),E.d(_,"g",function(){return M}),E.d(_,"b",function(){return w}),E.d(_,"f",function(){return f});var U=E(15);function z(){}var at=.7,J=1/at,tt="\\s*([+-]?\\d+)\\s*",K="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Z="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Q=/^#([0-9a-f]{3,8})$/,V=new RegExp("^rgb\\("+[tt,tt,tt]+"\\)$"),X=new RegExp("^rgb\\("+[Z,Z,Z]+"\\)$"),j=new RegExp("^rgba\\("+[tt,tt,tt,K]+"\\)$"),B=new RegExp("^rgba\\("+[Z,Z,Z,K]+"\\)$"),d=new RegExp("^hsl\\("+[K,Z,Z]+"\\)$"),R=new RegExp("^hsla\\("+[K,Z,Z,K]+"\\)$"),P={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function s(){return this.rgb().formatHex()}function x(){return this.rgb().formatRgb()}function b(k){var T,G;return k=(k+"").trim().toLowerCase(),(T=Q.exec(k))?(G=T[1].length,T=parseInt(T[1],16),G===6?o(T):G===3?new w(T>>8&15|T>>4&240,T>>4&15|240&T,(15&T)<<4|15&T,1):G===8?new w(T>>24&255,T>>16&255,T>>8&255,(255&T)/255):G===4?new w(T>>12&15|T>>8&240,T>>8&15|T>>4&240,T>>4&15|240&T,((15&T)<<4|15&T)/255):null):(T=V.exec(k))?new w(T[1],T[2],T[3],1):(T=X.exec(k))?new w(255*T[1]/100,255*T[2]/100,255*T[3]/100,1):(T=j.exec(k))?u(T[1],T[2],T[3],T[4]):(T=B.exec(k))?u(255*T[1]/100,255*T[2]/100,255*T[3]/100,T[4]):(T=d.exec(k))?p(T[1],T[2]/100,T[3]/100,1):(T=R.exec(k))?p(T[1],T[2]/100,T[3]/100,T[4]):P.hasOwnProperty(k)?o(P[k]):k==="transparent"?new w(NaN,NaN,NaN,0):null}function o(k){return new w(k>>16&255,k>>8&255,255&k,1)}function u(k,T,G,st){return st<=0&&(k=T=G=NaN),new w(k,T,G,st)}function C(k){return k instanceof z||(k=b(k)),k?new w((k=k.rgb()).r,k.g,k.b,k.opacity):new w}function M(k,T,G,st){return arguments.length===1?C(k):new w(k,T,G,st==null?1:st)}function w(k,T,G,st){this.r=+k,this.g=+T,this.b=+G,this.opacity=+st}function y(){return"#"+g(this.r)+g(this.g)+g(this.b)}function m(){var k=this.opacity;return((k=isNaN(k)?1:Math.max(0,Math.min(1,k)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(k===1?")":", "+k+")")}function g(k){return((k=Math.max(0,Math.min(255,Math.round(k)||0)))<16?"0":"")+k.toString(16)}function p(k,T,G,st){return st<=0?k=T=G=NaN:G<=0||G>=1?k=T=NaN:T<=0&&(k=NaN),new v(k,T,G,st)}function l(k){if(k instanceof v)return new v(k.h,k.s,k.l,k.opacity);if(k instanceof z||(k=b(k)),!k)return new v;if(k instanceof v)return k;var T=(k=k.rgb()).r/255,G=k.g/255,st=k.b/255,et=Math.min(T,G,st),ft=Math.max(T,G,st),pt=NaN,St=ft-et,Ct=(ft+et)/2;return St?(pt=T===ft?(G-st)/St+6*(G<st):G===ft?(st-T)/St+2:(T-G)/St+4,St/=Ct<.5?ft+et:2-ft-et,pt*=60):St=Ct>0&&Ct<1?0:pt,new v(pt,St,Ct,k.opacity)}function f(k,T,G,st){return arguments.length===1?l(k):new v(k,T,G,st==null?1:st)}function v(k,T,G,st){this.h=+k,this.s=+T,this.l=+G,this.opacity=+st}function I(k,T,G){return 255*(k<60?T+(G-T)*k/60:k<180?G:k<240?T+(G-T)*(240-k)/60:T)}Object(U.a)(z,b,{copy:function(k){return Object.assign(new this.constructor,this,k)},displayable:function(){return this.rgb().displayable()},hex:s,formatHex:s,formatHsl:function(){return l(this).formatHsl()},formatRgb:x,toString:x}),Object(U.a)(w,M,Object(U.b)(z,{brighter:function(k){return k=k==null?J:Math.pow(J,k),new w(this.r*k,this.g*k,this.b*k,this.opacity)},darker:function(k){return k=k==null?at:Math.pow(at,k),new w(this.r*k,this.g*k,this.b*k,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:y,formatHex:y,formatRgb:m,toString:m})),Object(U.a)(v,f,Object(U.b)(z,{brighter:function(k){return k=k==null?J:Math.pow(J,k),new v(this.h,this.s,this.l*k,this.opacity)},darker:function(k){return k=k==null?at:Math.pow(at,k),new v(this.h,this.s,this.l*k,this.opacity)},rgb:function(){var k=this.h%360+360*(this.h<0),T=isNaN(k)||isNaN(this.s)?0:this.s,G=this.l,st=G+(G<.5?G:1-G)*T,et=2*G-st;return new w(I(k>=240?k-240:k+120,et,st),I(k,et,st),I(k<120?k+240:k-120,et,st),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var k=this.opacity;return((k=isNaN(k)?1:Math.max(0,Math.min(1,k)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(k===1?")":", "+k+")")}}))},function(Lt,_,E){"use strict";E.r(_);var U,z,at=E(23),J=E(79),tt=0,K=0,Z=0,Q=0,V=0,X=0,j=typeof performance=="object"&&performance.now?performance:Date,B=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Pt){setTimeout(Pt,17)};function d(){return V||(B(R),V=j.now()+X)}function R(){V=0}function P(){this._call=this._time=this._next=null}function s(Pt,Bt,Vt){var Ut=new P;return Ut.restart(Pt,Bt,Vt),Ut}function x(){V=(Q=j.now())+X,tt=K=0;try{(function(){d(),++tt;for(var Pt,Bt=U;Bt;)(Pt=V-Bt._time)>=0&&Bt._call.call(null,Pt),Bt=Bt._next;--tt})()}finally{tt=0,function(){for(var Pt,Bt,Vt=U,Ut=1/0;Vt;)Vt._call?(Ut>Vt._time&&(Ut=Vt._time),Pt=Vt,Vt=Vt._next):(Bt=Vt._next,Vt._next=null,Vt=Pt?Pt._next=Bt:U=Bt);z=Pt,o(Ut)}(),V=0}}function b(){var Pt=j.now(),Bt=Pt-Q;Bt>1e3&&(X-=Bt,Q=Pt)}function o(Pt){tt||(K&&(K=clearTimeout(K)),Pt-V>24?(Pt<1/0&&(K=setTimeout(x,Pt-j.now()-X)),Z&&(Z=clearInterval(Z))):(Z||(Q=j.now(),Z=setInterval(b,1e3)),tt=1,B(x)))}P.prototype=s.prototype={constructor:P,restart:function(Pt,Bt,Vt){if(typeof Pt!="function")throw new TypeError("callback is not a function");Vt=(Vt==null?d():+Vt)+(Bt==null?0:+Bt),this._next||z===this||(z?z._next=this:U=this,z=this),this._call=Pt,this._time=Vt,o()},stop:function(){this._call&&(this._call=null,this._time=1/0,o())}};var u=function(Pt,Bt,Vt){var Ut=new P;return Bt=Bt==null?0:+Bt,Ut.restart(function(fe){Ut.stop(),Pt(fe+Bt)},Bt,Vt),Ut},C=Object(J.a)("start","end","cancel","interrupt"),M=[],w=function(Pt,Bt,Vt,Ut,fe,Ce){var xe=Pt.__transition;if(xe){if(Vt in xe)return}else Pt.__transition={};(function(Qe,mn,xn){var In,vn=Qe.__transition;function An(be){var Fe,Xe,we,Be;if(xn.state!==1)return dr();for(Fe in vn)if((Be=vn[Fe]).name===xn.name){if(Be.state===3)return u(An);Be.state===4?(Be.state=6,Be.timer.stop(),Be.on.call("interrupt",Qe,Qe.__data__,Be.index,Be.group),delete vn[Fe]):+Fe<mn&&(Be.state=6,Be.timer.stop(),Be.on.call("cancel",Qe,Qe.__data__,Be.index,Be.group),delete vn[Fe])}if(u(function(){xn.state===3&&(xn.state=4,xn.timer.restart(Jn,xn.delay,xn.time),Jn(be))}),xn.state=2,xn.on.call("start",Qe,Qe.__data__,xn.index,xn.group),xn.state===2){for(xn.state=3,In=new Array(we=xn.tween.length),Fe=0,Xe=-1;Fe<we;++Fe)(Be=xn.tween[Fe].value.call(Qe,Qe.__data__,xn.index,xn.group))&&(In[++Xe]=Be);In.length=Xe+1}}function Jn(be){for(var Fe=be<xn.duration?xn.ease.call(null,be/xn.duration):(xn.timer.restart(dr),xn.state=5,1),Xe=-1,we=In.length;++Xe<we;)In[Xe].call(Qe,Fe);xn.state===5&&(xn.on.call("end",Qe,Qe.__data__,xn.index,xn.group),dr())}function dr(){for(var be in xn.state=6,xn.timer.stop(),delete vn[mn],vn)return;delete Qe.__transition}vn[mn]=xn,xn.timer=s(function(be){xn.state=1,xn.timer.restart(An,xn.delay,xn.time),xn.delay<=be&&An(be-xn.delay)},0,xn.time)})(Pt,Vt,{name:Bt,index:Ut,group:fe,on:C,tween:M,time:Ce.time,delay:Ce.delay,duration:Ce.duration,ease:Ce.ease,timer:null,state:0})};function y(Pt,Bt){var Vt=g(Pt,Bt);if(Vt.state>0)throw new Error("too late; already scheduled");return Vt}function m(Pt,Bt){var Vt=g(Pt,Bt);if(Vt.state>3)throw new Error("too late; already running");return Vt}function g(Pt,Bt){var Vt=Pt.__transition;if(!Vt||!(Vt=Vt[Bt]))throw new Error("transition not found");return Vt}var p=function(Pt,Bt){var Vt,Ut,fe,Ce=Pt.__transition,xe=!0;if(Ce){for(fe in Bt=Bt==null?null:Bt+"",Ce)(Vt=Ce[fe]).name===Bt?(Ut=Vt.state>2&&Vt.state<5,Vt.state=6,Vt.timer.stop(),Vt.on.call(Ut?"interrupt":"cancel",Pt,Pt.__data__,Vt.index,Vt.group),delete Ce[fe]):xe=!1;xe&&delete Pt.__transition}},l=E(77),f=E(44);function v(Pt,Bt){var Vt,Ut;return function(){var fe=m(this,Pt),Ce=fe.tween;if(Ce!==Vt){for(var xe=0,Qe=(Ut=Vt=Ce).length;xe<Qe;++xe)if(Ut[xe].name===Bt){(Ut=Ut.slice()).splice(xe,1);break}}fe.tween=Ut}}function I(Pt,Bt,Vt){var Ut,fe;if(typeof Vt!="function")throw new Error;return function(){var Ce=m(this,Pt),xe=Ce.tween;if(xe!==Ut){fe=(Ut=xe).slice();for(var Qe={name:Bt,value:Vt},mn=0,xn=fe.length;mn<xn;++mn)if(fe[mn].name===Bt){fe[mn]=Qe;break}mn===xn&&fe.push(Qe)}Ce.tween=fe}}function k(Pt,Bt,Vt){var Ut=Pt._id;return Pt.each(function(){var fe=m(this,Ut);(fe.value||(fe.value={}))[Bt]=Vt.apply(this,arguments)}),function(fe){return g(fe,Ut).value[Bt]}}var T=E(7),G=E(14),st=E(36),et=E(59),ft=function(Pt,Bt){var Vt;return(typeof Bt=="number"?G.a:Bt instanceof T.e?st.a:(Vt=Object(T.e)(Bt))?(Bt=Vt,st.a):et.a)(Pt,Bt)};function pt(Pt){return function(){this.removeAttribute(Pt)}}function St(Pt){return function(){this.removeAttributeNS(Pt.space,Pt.local)}}function Ct(Pt,Bt,Vt){var Ut,fe,Ce=Vt+"";return function(){var xe=this.getAttribute(Pt);return xe===Ce?null:xe===Ut?fe:fe=Bt(Ut=xe,Vt)}}function L(Pt,Bt,Vt){var Ut,fe,Ce=Vt+"";return function(){var xe=this.getAttributeNS(Pt.space,Pt.local);return xe===Ce?null:xe===Ut?fe:fe=Bt(Ut=xe,Vt)}}function q(Pt,Bt,Vt){var Ut,fe,Ce;return function(){var xe,Qe,mn=Vt(this);if(mn!=null)return(xe=this.getAttribute(Pt))===(Qe=mn+"")?null:xe===Ut&&Qe===fe?Ce:(fe=Qe,Ce=Bt(Ut=xe,mn));this.removeAttribute(Pt)}}function rt(Pt,Bt,Vt){var Ut,fe,Ce;return function(){var xe,Qe,mn=Vt(this);if(mn!=null)return(xe=this.getAttributeNS(Pt.space,Pt.local))===(Qe=mn+"")?null:xe===Ut&&Qe===fe?Ce:(fe=Qe,Ce=Bt(Ut=xe,mn));this.removeAttributeNS(Pt.space,Pt.local)}}function it(Pt,Bt){return function(Vt){this.setAttribute(Pt,Bt.call(this,Vt))}}function D(Pt,Bt){return function(Vt){this.setAttributeNS(Pt.space,Pt.local,Bt.call(this,Vt))}}function O(Pt,Bt){var Vt,Ut;function fe(){var Ce=Bt.apply(this,arguments);return Ce!==Ut&&(Vt=(Ut=Ce)&&D(Pt,Ce)),Vt}return fe._value=Bt,fe}function Y(Pt,Bt){var Vt,Ut;function fe(){var Ce=Bt.apply(this,arguments);return Ce!==Ut&&(Vt=(Ut=Ce)&&it(Pt,Ce)),Vt}return fe._value=Bt,fe}function lt(Pt,Bt){return function(){y(this,Pt).delay=+Bt.apply(this,arguments)}}function ot(Pt,Bt){return Bt=+Bt,function(){y(this,Pt).delay=Bt}}function xt(Pt,Bt){return function(){m(this,Pt).duration=+Bt.apply(this,arguments)}}function dt(Pt,Bt){return Bt=+Bt,function(){m(this,Pt).duration=Bt}}function vt(Pt,Bt){if(typeof Bt!="function")throw new Error;return function(){m(this,Pt).ease=Bt}}var Et=E(66);function kt(Pt,Bt,Vt){var Ut,fe,Ce=function(xe){return(xe+"").trim().split(/^|\s+/).every(function(Qe){var mn=Qe.indexOf(".");return mn>=0&&(Qe=Qe.slice(0,mn)),!Qe||Qe==="start"})}(Bt)?y:m;return function(){var xe=Ce(this,Pt),Qe=xe.on;Qe!==Ut&&(fe=(Ut=Qe).copy()).on(Bt,Vt),xe.on=fe}}var Nt=E(43),gt=E(65),wt=at.b.prototype.constructor,Dt=E(67);function jt(Pt){return function(){this.style.removeProperty(Pt)}}function Jt(Pt,Bt,Vt){return function(Ut){this.style.setProperty(Pt,Bt.call(this,Ut),Vt)}}function ie(Pt,Bt,Vt){var Ut,fe;function Ce(){var xe=Bt.apply(this,arguments);return xe!==fe&&(Ut=(fe=xe)&&Jt(Pt,xe,Vt)),Ut}return Ce._value=Bt,Ce}function $t(Pt){return function(Bt){this.textContent=Pt.call(this,Bt)}}function he(Pt){var Bt,Vt;function Ut(){var fe=Pt.apply(this,arguments);return fe!==Vt&&(Bt=(Vt=fe)&&$t(fe)),Bt}return Ut._value=Pt,Ut}var ve=0;function Se(Pt,Bt,Vt,Ut){this._groups=Pt,this._parents=Bt,this._name=Vt,this._id=Ut}function ke(Pt){return Object(at.b)().transition(Pt)}function Ge(){return++ve}var on=at.b.prototype;Se.prototype=ke.prototype={constructor:Se,select:function(Pt){var Bt=this._name,Vt=this._id;typeof Pt!="function"&&(Pt=Object(Nt.a)(Pt));for(var Ut=this._groups,fe=Ut.length,Ce=new Array(fe),xe=0;xe<fe;++xe)for(var Qe,mn,xn=Ut[xe],In=xn.length,vn=Ce[xe]=new Array(In),An=0;An<In;++An)(Qe=xn[An])&&(mn=Pt.call(Qe,Qe.__data__,An,xn))&&("__data__"in Qe&&(mn.__data__=Qe.__data__),vn[An]=mn,w(vn[An],Bt,Vt,An,vn,g(Qe,Vt)));return new Se(Ce,this._parents,Bt,Vt)},selectAll:function(Pt){var Bt=this._name,Vt=this._id;typeof Pt!="function"&&(Pt=Object(gt.a)(Pt));for(var Ut=this._groups,fe=Ut.length,Ce=[],xe=[],Qe=0;Qe<fe;++Qe)for(var mn,xn=Ut[Qe],In=xn.length,vn=0;vn<In;++vn)if(mn=xn[vn]){for(var An,Jn=Pt.call(mn,mn.__data__,vn,xn),dr=g(mn,Vt),be=0,Fe=Jn.length;be<Fe;++be)(An=Jn[be])&&w(An,Bt,Vt,be,Jn,dr);Ce.push(Jn),xe.push(mn)}return new Se(Ce,xe,Bt,Vt)},filter:function(Pt){typeof Pt!="function"&&(Pt=Object(Et.a)(Pt));for(var Bt=this._groups,Vt=Bt.length,Ut=new Array(Vt),fe=0;fe<Vt;++fe)for(var Ce,xe=Bt[fe],Qe=xe.length,mn=Ut[fe]=[],xn=0;xn<Qe;++xn)(Ce=xe[xn])&&Pt.call(Ce,Ce.__data__,xn,xe)&&mn.push(Ce);return new Se(Ut,this._parents,this._name,this._id)},merge:function(Pt){if(Pt._id!==this._id)throw new Error;for(var Bt=this._groups,Vt=Pt._groups,Ut=Bt.length,fe=Vt.length,Ce=Math.min(Ut,fe),xe=new Array(Ut),Qe=0;Qe<Ce;++Qe)for(var mn,xn=Bt[Qe],In=Vt[Qe],vn=xn.length,An=xe[Qe]=new Array(vn),Jn=0;Jn<vn;++Jn)(mn=xn[Jn]||In[Jn])&&(An[Jn]=mn);for(;Qe<Ut;++Qe)xe[Qe]=Bt[Qe];return new Se(xe,this._parents,this._name,this._id)},selection:function(){return new wt(this._groups,this._parents)},transition:function(){for(var Pt=this._name,Bt=this._id,Vt=Ge(),Ut=this._groups,fe=Ut.length,Ce=0;Ce<fe;++Ce)for(var xe,Qe=Ut[Ce],mn=Qe.length,xn=0;xn<mn;++xn)if(xe=Qe[xn]){var In=g(xe,Bt);w(xe,Pt,Vt,xn,Qe,{time:In.time+In.delay+In.duration,delay:0,duration:In.duration,ease:In.ease})}return new Se(Ut,this._parents,Pt,Vt)},call:on.call,nodes:on.nodes,node:on.node,size:on.size,empty:on.empty,each:on.each,on:function(Pt,Bt){var Vt=this._id;return arguments.length<2?g(this.node(),Vt).on.on(Pt):this.each(kt(Vt,Pt,Bt))},attr:function(Pt,Bt){var Vt=Object(f.a)(Pt),Ut=Vt==="transform"?l.b:ft;return this.attrTween(Pt,typeof Bt=="function"?(Vt.local?rt:q)(Vt,Ut,k(this,"attr."+Pt,Bt)):Bt==null?(Vt.local?St:pt)(Vt):(Vt.local?L:Ct)(Vt,Ut,Bt))},attrTween:function(Pt,Bt){var Vt="attr."+Pt;if(arguments.length<2)return(Vt=this.tween(Vt))&&Vt._value;if(Bt==null)return this.tween(Vt,null);if(typeof Bt!="function")throw new Error;var Ut=Object(f.a)(Pt);return this.tween(Vt,(Ut.local?O:Y)(Ut,Bt))},style:function(Pt,Bt,Vt){var Ut=(Pt+="")=="transform"?l.a:ft;return Bt==null?this.styleTween(Pt,function(fe,Ce){var xe,Qe,mn;return function(){var xn=Object(Dt.b)(this,fe),In=(this.style.removeProperty(fe),Object(Dt.b)(this,fe));return xn===In?null:xn===xe&&In===Qe?mn:mn=Ce(xe=xn,Qe=In)}}(Pt,Ut)).on("end.style."+Pt,jt(Pt)):typeof Bt=="function"?this.styleTween(Pt,function(fe,Ce,xe){var Qe,mn,xn;return function(){var In=Object(Dt.b)(this,fe),vn=xe(this),An=vn+"";return vn==null&&(this.style.removeProperty(fe),An=vn=Object(Dt.b)(this,fe)),In===An?null:In===Qe&&An===mn?xn:(mn=An,xn=Ce(Qe=In,vn))}}(Pt,Ut,k(this,"style."+Pt,Bt))).each(function(fe,Ce){var xe,Qe,mn,xn,In="style."+Ce,vn="end."+In;return function(){var An=m(this,fe),Jn=An.on,dr=An.value[In]==null?xn||(xn=jt(Ce)):void 0;Jn===xe&&mn===dr||(Qe=(xe=Jn).copy()).on(vn,mn=dr),An.on=Qe}}(this._id,Pt)):this.styleTween(Pt,function(fe,Ce,xe){var Qe,mn,xn=xe+"";return function(){var In=Object(Dt.b)(this,fe);return In===xn?null:In===Qe?mn:mn=Ce(Qe=In,xe)}}(Pt,Ut,Bt),Vt).on("end.style."+Pt,null)},styleTween:function(Pt,Bt,Vt){var Ut="style."+(Pt+="");if(arguments.length<2)return(Ut=this.tween(Ut))&&Ut._value;if(Bt==null)return this.tween(Ut,null);if(typeof Bt!="function")throw new Error;return this.tween(Ut,ie(Pt,Bt,Vt==null?"":Vt))},text:function(Pt){return this.tween("text",typeof Pt=="function"?function(Bt){return function(){var Vt=Bt(this);this.textContent=Vt==null?"":Vt}}(k(this,"text",Pt)):function(Bt){return function(){this.textContent=Bt}}(Pt==null?"":Pt+""))},textTween:function(Pt){var Bt="text";if(arguments.length<1)return(Bt=this.tween(Bt))&&Bt._value;if(Pt==null)return this.tween(Bt,null);if(typeof Pt!="function")throw new Error;return this.tween(Bt,he(Pt))},remove:function(){return this.on("end.remove",(Pt=this._id,function(){var Bt=this.parentNode;for(var Vt in this.__transition)if(+Vt!==Pt)return;Bt&&Bt.removeChild(this)}));var Pt},tween:function(Pt,Bt){var Vt=this._id;if(Pt+="",arguments.length<2){for(var Ut,fe=g(this.node(),Vt).tween,Ce=0,xe=fe.length;Ce<xe;++Ce)if((Ut=fe[Ce]).name===Pt)return Ut.value;return null}return this.each((Bt==null?v:I)(Vt,Pt,Bt))},delay:function(Pt){var Bt=this._id;return arguments.length?this.each((typeof Pt=="function"?lt:ot)(Bt,Pt)):g(this.node(),Bt).delay},duration:function(Pt){var Bt=this._id;return arguments.length?this.each((typeof Pt=="function"?xt:dt)(Bt,Pt)):g(this.node(),Bt).duration},ease:function(Pt){var Bt=this._id;return arguments.length?this.each(vt(Bt,Pt)):g(this.node(),Bt).ease},end:function(){var Pt,Bt,Vt=this,Ut=Vt._id,fe=Vt.size();return new Promise(function(Ce,xe){var Qe={value:xe},mn={value:function(){--fe==0&&Ce()}};Vt.each(function(){var xn=m(this,Ut),In=xn.on;In!==Pt&&((Bt=(Pt=In).copy())._.cancel.push(Qe),Bt._.interrupt.push(Qe),Bt._.end.push(mn)),xn.on=Bt})})}};var un={time:null,delay:0,duration:250,ease:E(49).b};function te(Pt,Bt){for(var Vt;!(Vt=Pt.__transition)||!(Vt=Vt[Bt]);)if(!(Pt=Pt.parentNode))return un.time=d(),un;return Vt}at.b.prototype.interrupt=function(Pt){return this.each(function(){p(this,Pt)})},at.b.prototype.transition=function(Pt){var Bt,Vt;Pt instanceof Se?(Bt=Pt._id,Pt=Pt._name):(Bt=Ge(),(Vt=un).time=d(),Pt=Pt==null?null:Pt+"");for(var Ut=this._groups,fe=Ut.length,Ce=0;Ce<fe;++Ce)for(var xe,Qe=Ut[Ce],mn=Qe.length,xn=0;xn<mn;++xn)(xe=Qe[xn])&&w(xe,Pt,Bt,xn,Qe,Vt||te(xe,Bt));return new Se(Ut,this._parents,Pt,Bt)};var Zt=[null],ee=function(Pt,Bt){var Vt,Ut,fe=Pt.__transition;if(fe){for(Ut in Bt=Bt==null?null:Bt+"",fe)if((Vt=fe[Ut]).state>1&&Vt.name===Bt)return new Se([[Pt]],Zt,Bt,+Ut)}return null};E.d(_,"transition",function(){return ke}),E.d(_,"active",function(){return ee}),E.d(_,"interrupt",function(){return p})},function(Lt,_,E){"use strict";E.r(_);var U=E(56);E.d(_,"formatDefaultLocale",function(){return U.a}),E.d(_,"format",function(){return U.b}),E.d(_,"formatPrefix",function(){return U.c});var z=E(68);E.d(_,"formatLocale",function(){return z.a});var at=E(40);E.d(_,"formatSpecifier",function(){return at.b}),E.d(_,"FormatSpecifier",function(){return at.a});var J=E(80);E.d(_,"precisionFixed",function(){return J.a});var tt=E(81);E.d(_,"precisionPrefix",function(){return tt.a});var K=E(82);E.d(_,"precisionRound",function(){return K.a})},function(Lt,_,E){"use strict";var U;(U=function(){return{colorSchemas:{britecharts:["#6aedc7","#39c2c9","#ffce00","#ffa71a","#f866b9","#998ce3"],grey:["#F8F8FA","#EFF2F5","#D2D6DF","#C3C6CF","#ADB0B6","#666A73","#45494E","#363A43","#282C35"],orange:["#fcc870","#ffa71a","#fb8825","#f6682f","#db5a2c","#bf4c28","#a43b1c","#892a10","#f9e9c5"],blueGreen:["#ccf7f6","#70e4e0","#00d8d2","#00acaf","#007f8c","#005e66","#003c3f","#002d2f","#0d2223"],teal:["#ccfffe","#94f7f4","#00fff8","#1de1e1","#39c2c9","#2e9a9d","#227270","#1a5957","#133f3e"],green:["#edfff7","#d7ffef","#c0ffe7","#95f5d7","#6aedc7","#59c3a3","#479980","#34816a","#206953"],yellow:["#f9f2b3","#fbe986","#fce05a","#fed72d","#ffce00","#fcc11c","#f9b438","#eda629","#e09819"],pink:["#fdd1ea","#fb9cd2","#f866b9","#fc40b6","#ff1ab3","#e3239d","#c62c86","#a62073","#85135f"],purple:["#ddd6fc","#bbb1f0","#998ce3","#8e6bc1","#824a9e","#77337f","#6b1c60","#591650","#470f3f"],red:["#ffd8d4","#ffb5b0","#ff938c","#ff766c","#ff584c","#f04b42","#e03d38","#be2e29","#9c1e19"]},colorSchemasHuman:{britecharts:"Britecharts Default",grey:"Britecharts Grey",orange:"Orange",blueGreen:"Blue",teal:"Light Blue",green:"Green",yellow:"Yellow",pink:"Pink",purple:"Purple",red:"Red"},colorGradients:{greenBlue:["#39C7EA","#4CDCBA"],orangePink:["#FBC670","#F766B8"],bluePurple:["#3DC3C9","#824a9e"]},colorGradientsHuman:{greenBlue:"Green to Blue",orangePink:"Orange to Pink",bluePurple:"Blue to Purple"},singleColors:{aloeGreen:["#7bdcc0"],greenColor:["#6aedc7"],blueColor:["#39c2c9"],yellowColor:["#ffce00"],orangeColor:["#ffa71a"],pinkColor:["#f866b9"],purpleColor:["#998ce3"]},singleColorsHuman:{aloeGreen:"Aloe Green",greenColor:"Green",blueColor:"Blue",yellowColor:"Yellow",orangeColor:"Orange",pinkColor:"Pink",purpleColor:"Purple"}}}.call(_,E,_,Lt))===void 0||(Lt.exports=U)},function(Lt,_,E){"use strict";function U(I){return+I}function z(I){return I*I}function at(I){return I*(2-I)}function J(I){return((I*=2)<=1?I*I:--I*(2-I)+1)/2}E.r(_);var tt=E(49),K=function I(k){function T(G){return Math.pow(G,k)}return k=+k,T.exponent=I,T}(3),Z=function I(k){function T(G){return 1-Math.pow(1-G,k)}return k=+k,T.exponent=I,T}(3),Q=function I(k){function T(G){return((G*=2)<=1?Math.pow(G,k):2-Math.pow(2-G,k))/2}return k=+k,T.exponent=I,T}(3),V=Math.PI,X=V/2;function j(I){return 1-Math.cos(I*X)}function B(I){return Math.sin(I*X)}function d(I){return(1-Math.cos(V*I))/2}function R(I){return Math.pow(2,10*I-10)}function P(I){return 1-Math.pow(2,-10*I)}function s(I){return((I*=2)<=1?Math.pow(2,10*I-10):2-Math.pow(2,10-10*I))/2}function x(I){return 1-Math.sqrt(1-I*I)}function b(I){return Math.sqrt(1- --I*I)}function o(I){return((I*=2)<=1?1-Math.sqrt(1-I*I):Math.sqrt(1-(I-=2)*I)+1)/2}var u=7.5625;function C(I){return 1-M(1-I)}function M(I){return(I=+I)<.36363636363636365?u*I*I:I<.7272727272727273?u*(I-=.5454545454545454)*I+.75:I<.9090909090909091?u*(I-=.8181818181818182)*I+.9375:u*(I-=.9545454545454546)*I+.984375}function w(I){return((I*=2)<=1?1-M(1-I):M(I-1)+1)/2}var y=function I(k){function T(G){return G*G*((k+1)*G-k)}return k=+k,T.overshoot=I,T}(1.70158),m=function I(k){function T(G){return--G*G*((k+1)*G+k)+1}return k=+k,T.overshoot=I,T}(1.70158),g=function I(k){function T(G){return((G*=2)<1?G*G*((k+1)*G-k):(G-=2)*G*((k+1)*G+k)+2)/2}return k=+k,T.overshoot=I,T}(1.70158),p=2*Math.PI,l=function I(k,T){var G=Math.asin(1/(k=Math.max(1,k)))*(T/=p);function st(et){return k*Math.pow(2,10*--et)*Math.sin((G-et)/T)}return st.amplitude=function(et){return I(et,T*p)},st.period=function(et){return I(k,et)},st}(1,.3),f=function I(k,T){var G=Math.asin(1/(k=Math.max(1,k)))*(T/=p);function st(et){return 1-k*Math.pow(2,-10*(et=+et))*Math.sin((et+G)/T)}return st.amplitude=function(et){return I(et,T*p)},st.period=function(et){return I(k,et)},st}(1,.3),v=function I(k,T){var G=Math.asin(1/(k=Math.max(1,k)))*(T/=p);function st(et){return((et=2*et-1)<0?k*Math.pow(2,10*et)*Math.sin((G-et)/T):2-k*Math.pow(2,-10*et)*Math.sin((G+et)/T))/2}return st.amplitude=function(et){return I(et,T*p)},st.period=function(et){return I(k,et)},st}(1,.3);E.d(_,"easeLinear",function(){return U}),E.d(_,"easeQuad",function(){return J}),E.d(_,"easeQuadIn",function(){return z}),E.d(_,"easeQuadOut",function(){return at}),E.d(_,"easeQuadInOut",function(){return J}),E.d(_,"easeCubic",function(){return tt.b}),E.d(_,"easeCubicIn",function(){return tt.a}),E.d(_,"easeCubicOut",function(){return tt.c}),E.d(_,"easeCubicInOut",function(){return tt.b}),E.d(_,"easePoly",function(){return Q}),E.d(_,"easePolyIn",function(){return K}),E.d(_,"easePolyOut",function(){return Z}),E.d(_,"easePolyInOut",function(){return Q}),E.d(_,"easeSin",function(){return d}),E.d(_,"easeSinIn",function(){return j}),E.d(_,"easeSinOut",function(){return B}),E.d(_,"easeSinInOut",function(){return d}),E.d(_,"easeExp",function(){return s}),E.d(_,"easeExpIn",function(){return R}),E.d(_,"easeExpOut",function(){return P}),E.d(_,"easeExpInOut",function(){return s}),E.d(_,"easeCircle",function(){return o}),E.d(_,"easeCircleIn",function(){return x}),E.d(_,"easeCircleOut",function(){return b}),E.d(_,"easeCircleInOut",function(){return o}),E.d(_,"easeBounce",function(){return M}),E.d(_,"easeBounceIn",function(){return C}),E.d(_,"easeBounceOut",function(){return M}),E.d(_,"easeBounceInOut",function(){return w}),E.d(_,"easeBack",function(){return g}),E.d(_,"easeBackIn",function(){return y}),E.d(_,"easeBackOut",function(){return m}),E.d(_,"easeBackInOut",function(){return g}),E.d(_,"easeElastic",function(){return f}),E.d(_,"easeElasticIn",function(){return l}),E.d(_,"easeElasticOut",function(){return f}),E.d(_,"easeElasticInOut",function(){return v})},function(Lt,_,E){"use strict";E.r(_);var U=E(0);function z(we,Be){switch(arguments.length){case 0:break;case 1:this.range(we);break;default:this.range(Be).domain(we)}return this}function at(we,Be){switch(arguments.length){case 0:break;case 1:this.interpolator(we);break;default:this.interpolator(Be).domain(we)}return this}var J=E(25),tt=Array.prototype,K=tt.map,Z=tt.slice,Q={name:"implicit"};function V(){var we=Object(J.map)(),Be=[],Ue=[],Le=Q;function je(en){var Mn=en+"",Ae=we.get(Mn);if(!Ae){if(Le!==Q)return Le;we.set(Mn,Ae=Be.push(en))}return Ue[(Ae-1)%Ue.length]}return je.domain=function(en){if(!arguments.length)return Be.slice();Be=[],we=Object(J.map)();for(var Mn,Ae,an=-1,_n=en.length;++an<_n;)we.has(Ae=(Mn=en[an])+"")||we.set(Ae,Be.push(Mn));return je},je.range=function(en){return arguments.length?(Ue=Z.call(en),je):Ue.slice()},je.unknown=function(en){return arguments.length?(Le=en,je):Le},je.copy=function(){return V(Be,Ue).unknown(Le)},z.apply(je,arguments),je}function X(){var we,Be,Ue=V().unknown(void 0),Le=Ue.domain,je=Ue.range,en=[0,1],Mn=!1,Ae=0,an=0,_n=.5;function Oe(){var Sn=Le().length,sn=en[1]<en[0],yn=en[sn-0],En=en[1-sn];we=(En-yn)/Math.max(1,Sn-Ae+2*an),Mn&&(we=Math.floor(we)),yn+=(En-yn-we*(Sn-Ae))*_n,Be=we*(1-Ae),Mn&&(yn=Math.round(yn),Be=Math.round(Be));var wn=Object(U.range)(Sn).map(function(fr){return yn+we*fr});return je(sn?wn.reverse():wn)}return delete Ue.unknown,Ue.domain=function(Sn){return arguments.length?(Le(Sn),Oe()):Le()},Ue.range=function(Sn){return arguments.length?(en=[+Sn[0],+Sn[1]],Oe()):en.slice()},Ue.rangeRound=function(Sn){return en=[+Sn[0],+Sn[1]],Mn=!0,Oe()},Ue.bandwidth=function(){return Be},Ue.step=function(){return we},Ue.round=function(Sn){return arguments.length?(Mn=!!Sn,Oe()):Mn},Ue.padding=function(Sn){return arguments.length?(Ae=Math.min(1,an=+Sn),Oe()):Ae},Ue.paddingInner=function(Sn){return arguments.length?(Ae=Math.min(1,Sn),Oe()):Ae},Ue.paddingOuter=function(Sn){return arguments.length?(an=+Sn,Oe()):an},Ue.align=function(Sn){return arguments.length?(_n=Math.max(0,Math.min(1,Sn)),Oe()):_n},Ue.copy=function(){return X(Le(),en).round(Mn).paddingInner(Ae).paddingOuter(an).align(_n)},z.apply(Oe(),arguments)}function j(we){var Be=we.copy;return we.padding=we.paddingOuter,delete we.paddingInner,delete we.paddingOuter,we.copy=function(){return j(Be())},we}function B(){return j(X.apply(null,arguments).paddingInner(1))}var d=E(41),R=E(14),P=E(83),s=function(we){return+we},x=[0,1];function b(we){return we}function o(we,Be){return(Be-=we=+we)?function(Le){return(Le-we)/Be}:(Ue=isNaN(Be)?NaN:.5,function(){return Ue});var Ue}function u(we){var Be,Ue=we[0],Le=we[we.length-1];return Ue>Le&&(Be=Ue,Ue=Le,Le=Be),function(je){return Math.max(Ue,Math.min(Le,je))}}function C(we,Be,Ue){var Le=we[0],je=we[1],en=Be[0],Mn=Be[1];return je<Le?(Le=o(je,Le),en=Ue(Mn,en)):(Le=o(Le,je),en=Ue(en,Mn)),function(Ae){return en(Le(Ae))}}function M(we,Be,Ue){var Le=Math.min(we.length,Be.length)-1,je=new Array(Le),en=new Array(Le),Mn=-1;for(we[Le]<we[0]&&(we=we.slice().reverse(),Be=Be.slice().reverse());++Mn<Le;)je[Mn]=o(we[Mn],we[Mn+1]),en[Mn]=Ue(Be[Mn],Be[Mn+1]);return function(Ae){var an=Object(U.bisect)(we,Ae,1,Le)-1;return en[an](je[an](Ae))}}function w(we,Be){return Be.domain(we.domain()).range(we.range()).interpolate(we.interpolate()).clamp(we.clamp()).unknown(we.unknown())}function y(){var we,Be,Ue,Le,je,en,Mn=x,Ae=x,an=d.a,_n=b;function Oe(){return Le=Math.min(Mn.length,Ae.length)>2?M:C,je=en=null,Sn}function Sn(sn){return isNaN(sn=+sn)?Ue:(je||(je=Le(Mn.map(we),Ae,an)))(we(_n(sn)))}return Sn.invert=function(sn){return _n(Be((en||(en=Le(Ae,Mn.map(we),R.a)))(sn)))},Sn.domain=function(sn){return arguments.length?(Mn=K.call(sn,s),_n===b||(_n=u(Mn)),Oe()):Mn.slice()},Sn.range=function(sn){return arguments.length?(Ae=Z.call(sn),Oe()):Ae.slice()},Sn.rangeRound=function(sn){return Ae=Z.call(sn),an=P.a,Oe()},Sn.clamp=function(sn){return arguments.length?(_n=sn?u(Mn):b,Sn):_n!==b},Sn.interpolate=function(sn){return arguments.length?(an=sn,Oe()):an},Sn.unknown=function(sn){return arguments.length?(Ue=sn,Sn):Ue},function(sn,yn){return we=sn,Be=yn,Oe()}}function m(we,Be){return y()(we,Be)}var g=E(40),p=E(81),l=E(56),f=E(82),v=E(80),I=function(we,Be,Ue,Le){var je,en=Object(U.tickStep)(we,Be,Ue);switch((Le=Object(g.b)(Le==null?",f":Le)).type){case"s":var Mn=Math.max(Math.abs(we),Math.abs(Be));return Le.precision!=null||isNaN(je=Object(p.a)(en,Mn))||(Le.precision=je),Object(l.c)(Le,Mn);case"":case"e":case"g":case"p":case"r":Le.precision!=null||isNaN(je=Object(f.a)(en,Math.max(Math.abs(we),Math.abs(Be))))||(Le.precision=je-(Le.type==="e"));break;case"f":case"%":Le.precision!=null||isNaN(je=Object(v.a)(en))||(Le.precision=je-2*(Le.type==="%"))}return Object(l.b)(Le)};function k(we){var Be=we.domain;return we.ticks=function(Ue){var Le=Be();return Object(U.ticks)(Le[0],Le[Le.length-1],Ue==null?10:Ue)},we.tickFormat=function(Ue,Le){var je=Be();return I(je[0],je[je.length-1],Ue==null?10:Ue,Le)},we.nice=function(Ue){Ue==null&&(Ue=10);var Le,je=Be(),en=0,Mn=je.length-1,Ae=je[en],an=je[Mn];return an<Ae&&(Le=Ae,Ae=an,an=Le,Le=en,en=Mn,Mn=Le),(Le=Object(U.tickIncrement)(Ae,an,Ue))>0?(Ae=Math.floor(Ae/Le)*Le,an=Math.ceil(an/Le)*Le,Le=Object(U.tickIncrement)(Ae,an,Ue)):Le<0&&(Ae=Math.ceil(Ae*Le)/Le,an=Math.floor(an*Le)/Le,Le=Object(U.tickIncrement)(Ae,an,Ue)),Le>0?(je[en]=Math.floor(Ae/Le)*Le,je[Mn]=Math.ceil(an/Le)*Le,Be(je)):Le<0&&(je[en]=Math.ceil(Ae*Le)/Le,je[Mn]=Math.floor(an*Le)/Le,Be(je)),we},we}function T(){var we=m(b,b);return we.copy=function(){return w(we,T())},z.apply(we,arguments),k(we)}function G(we){var Be;function Ue(Le){return isNaN(Le=+Le)?Be:Le}return Ue.invert=Ue,Ue.domain=Ue.range=function(Le){return arguments.length?(we=K.call(Le,s),Ue):we.slice()},Ue.unknown=function(Le){return arguments.length?(Be=Le,Ue):Be},Ue.copy=function(){return G(we).unknown(Be)},we=arguments.length?K.call(we,s):[0,1],k(Ue)}var st=function(we,Be){var Ue,Le=0,je=(we=we.slice()).length-1,en=we[Le],Mn=we[je];return Mn<en&&(Ue=Le,Le=je,je=Ue,Ue=en,en=Mn,Mn=Ue),we[Le]=Be.floor(en),we[je]=Be.ceil(Mn),we};function et(we){return Math.log(we)}function ft(we){return Math.exp(we)}function pt(we){return-Math.log(-we)}function St(we){return-Math.exp(-we)}function Ct(we){return isFinite(we)?+("1e"+we):we<0?0:we}function L(we){return function(Be){return-we(-Be)}}function q(we){var Be,Ue,Le=we(et,ft),je=Le.domain,en=10;function Mn(){return Be=function(Ae){return Ae===Math.E?Math.log:Ae===10&&Math.log10||Ae===2&&Math.log2||(Ae=Math.log(Ae),function(an){return Math.log(an)/Ae})}(en),Ue=function(Ae){return Ae===10?Ct:Ae===Math.E?Math.exp:function(an){return Math.pow(Ae,an)}}(en),je()[0]<0?(Be=L(Be),Ue=L(Ue),we(pt,St)):we(et,ft),Le}return Le.base=function(Ae){return arguments.length?(en=+Ae,Mn()):en},Le.domain=function(Ae){return arguments.length?(je(Ae),Mn()):je()},Le.ticks=function(Ae){var an,_n=je(),Oe=_n[0],Sn=_n[_n.length-1];(an=Sn<Oe)&&(wn=Oe,Oe=Sn,Sn=wn);var sn,yn,En,wn=Be(Oe),fr=Be(Sn),nr=Ae==null?10:+Ae,pr=[];if(!(en%1)&&fr-wn<nr){if(wn=Math.round(wn)-1,fr=Math.round(fr)+1,Oe>0){for(;wn<fr;++wn)for(yn=1,sn=Ue(wn);yn<en;++yn)if(!((En=sn*yn)<Oe)){if(En>Sn)break;pr.push(En)}}else for(;wn<fr;++wn)for(yn=en-1,sn=Ue(wn);yn>=1;--yn)if(!((En=sn*yn)<Oe)){if(En>Sn)break;pr.push(En)}}else pr=Object(U.ticks)(wn,fr,Math.min(fr-wn,nr)).map(Ue);return an?pr.reverse():pr},Le.tickFormat=function(Ae,an){if(an==null&&(an=en===10?".0e":","),typeof an!="function"&&(an=Object(l.b)(an)),Ae===1/0)return an;Ae==null&&(Ae=10);var _n=Math.max(1,en*Ae/Le.ticks().length);return function(Oe){var Sn=Oe/Ue(Math.round(Be(Oe)));return Sn*en<en-.5&&(Sn*=en),Sn<=_n?an(Oe):""}},Le.nice=function(){return je(st(je(),{floor:function(Ae){return Ue(Math.floor(Be(Ae)))},ceil:function(Ae){return Ue(Math.ceil(Be(Ae)))}}))},Le}function rt(){var we=q(y()).domain([1,10]);return we.copy=function(){return w(we,rt()).base(we.base())},z.apply(we,arguments),we}function it(we){return function(Be){return Math.sign(Be)*Math.log1p(Math.abs(Be/we))}}function D(we){return function(Be){return Math.sign(Be)*Math.expm1(Math.abs(Be))*we}}function O(we){var Be=1,Ue=we(it(Be),D(Be));return Ue.constant=function(Le){return arguments.length?we(it(Be=+Le),D(Be)):Be},k(Ue)}function Y(){var we=O(y());return we.copy=function(){return w(we,Y()).constant(we.constant())},z.apply(we,arguments)}function lt(we){return function(Be){return Be<0?-Math.pow(-Be,we):Math.pow(Be,we)}}function ot(we){return we<0?-Math.sqrt(-we):Math.sqrt(we)}function xt(we){return we<0?-we*we:we*we}function dt(we){var Be=we(b,b),Ue=1;function Le(){return Ue===1?we(b,b):Ue===.5?we(ot,xt):we(lt(Ue),lt(1/Ue))}return Be.exponent=function(je){return arguments.length?(Ue=+je,Le()):Ue},k(Be)}function vt(){var we=dt(y());return we.copy=function(){return w(we,vt()).exponent(we.exponent())},z.apply(we,arguments),we}function Et(){return vt.apply(null,arguments).exponent(.5)}function kt(){var we,Be=[],Ue=[],Le=[];function je(){var Mn=0,Ae=Math.max(1,Ue.length);for(Le=new Array(Ae-1);++Mn<Ae;)Le[Mn-1]=Object(U.quantile)(Be,Mn/Ae);return en}function en(Mn){return isNaN(Mn=+Mn)?we:Ue[Object(U.bisect)(Le,Mn)]}return en.invertExtent=function(Mn){var Ae=Ue.indexOf(Mn);return Ae<0?[NaN,NaN]:[Ae>0?Le[Ae-1]:Be[0],Ae<Le.length?Le[Ae]:Be[Be.length-1]]},en.domain=function(Mn){if(!arguments.length)return Be.slice();Be=[];for(var Ae,an=0,_n=Mn.length;an<_n;++an)(Ae=Mn[an])==null||isNaN(Ae=+Ae)||Be.push(Ae);return Be.sort(U.ascending),je()},en.range=function(Mn){return arguments.length?(Ue=Z.call(Mn),je()):Ue.slice()},en.unknown=function(Mn){return arguments.length?(we=Mn,en):we},en.quantiles=function(){return Le.slice()},en.copy=function(){return kt().domain(Be).range(Ue).unknown(we)},z.apply(en,arguments)}function Nt(){var we,Be=0,Ue=1,Le=1,je=[.5],en=[0,1];function Mn(an){return an<=an?en[Object(U.bisect)(je,an,0,Le)]:we}function Ae(){var an=-1;for(je=new Array(Le);++an<Le;)je[an]=((an+1)*Ue-(an-Le)*Be)/(Le+1);return Mn}return Mn.domain=function(an){return arguments.length?(Be=+an[0],Ue=+an[1],Ae()):[Be,Ue]},Mn.range=function(an){return arguments.length?(Le=(en=Z.call(an)).length-1,Ae()):en.slice()},Mn.invertExtent=function(an){var _n=en.indexOf(an);return _n<0?[NaN,NaN]:_n<1?[Be,je[0]]:_n>=Le?[je[Le-1],Ue]:[je[_n-1],je[_n]]},Mn.unknown=function(an){return arguments.length&&(we=an),Mn},Mn.thresholds=function(){return je.slice()},Mn.copy=function(){return Nt().domain([Be,Ue]).range(en).unknown(we)},z.apply(k(Mn),arguments)}function gt(){var we,Be=[.5],Ue=[0,1],Le=1;function je(en){return en<=en?Ue[Object(U.bisect)(Be,en,0,Le)]:we}return je.domain=function(en){return arguments.length?(Be=Z.call(en),Le=Math.min(Be.length,Ue.length-1),je):Be.slice()},je.range=function(en){return arguments.length?(Ue=Z.call(en),Le=Math.min(Be.length,Ue.length-1),je):Ue.slice()},je.invertExtent=function(en){var Mn=Ue.indexOf(en);return[Be[Mn-1],Be[Mn]]},je.unknown=function(en){return arguments.length?(we=en,je):we},je.copy=function(){return gt().domain(Be).range(Ue).unknown(we)},z.apply(je,arguments)}var wt=E(33),Dt=E(69),jt=E(5),Jt=E(53),ie=E(70),$t=E(71),he=E(51),ve=E(52),Se=E(21);function ke(we){return new Date(we)}function Ge(we){return we instanceof Date?+we:+new Date(+we)}function on(we,Be,Ue,Le,je,en,Mn,Ae,an){var _n=m(b,b),Oe=_n.invert,Sn=_n.domain,sn=an(".%L"),yn=an(":%S"),En=an("%I:%M"),wn=an("%I %p"),fr=an("%a %d"),nr=an("%b %d"),pr=an("%B"),gr=an("%Y"),ir=[[Mn,1,1e3],[Mn,5,5e3],[Mn,15,15e3],[Mn,30,3e4],[en,1,6e4],[en,5,3e5],[en,15,9e5],[en,30,18e5],[je,1,36e5],[je,3,108e5],[je,6,216e5],[je,12,432e5],[Le,1,864e5],[Le,2,1728e5],[Ue,1,6048e5],[Be,1,2592e6],[Be,3,7776e6],[we,1,31536e6]];function Lr(ur){return(Mn(ur)<ur?sn:en(ur)<ur?yn:je(ur)<ur?En:Le(ur)<ur?wn:Be(ur)<ur?Ue(ur)<ur?fr:nr:we(ur)<ur?pr:gr)(ur)}function Br(ur,Bn,Rr,di){if(ur==null&&(ur=10),typeof ur=="number"){var li=Math.abs(Rr-Bn)/ur,Jr=Object(U.bisector)(function(Mr){return Mr[2]}).right(ir,li);Jr===ir.length?(di=Object(U.tickStep)(Bn/31536e6,Rr/31536e6,ur),ur=we):Jr?(di=(Jr=ir[li/ir[Jr-1][2]<ir[Jr][2]/li?Jr-1:Jr])[1],ur=Jr[0]):(di=Math.max(Object(U.tickStep)(Bn,Rr,ur),1),ur=Ae)}return di==null?ur:ur.every(di)}return _n.invert=function(ur){return new Date(Oe(ur))},_n.domain=function(ur){return arguments.length?Sn(K.call(ur,Ge)):Sn().map(ke)},_n.ticks=function(ur,Bn){var Rr,di=Sn(),li=di[0],Jr=di[di.length-1],Mr=Jr<li;return Mr&&(Rr=li,li=Jr,Jr=Rr),Rr=(Rr=Br(ur,li,Jr,Bn))?Rr.range(li,Jr+1):[],Mr?Rr.reverse():Rr},_n.tickFormat=function(ur,Bn){return Bn==null?Lr:an(Bn)},_n.nice=function(ur,Bn){var Rr=Sn();return(ur=Br(ur,Rr[0],Rr[Rr.length-1],Bn))?Sn(st(Rr,ur)):_n},_n.copy=function(){return w(_n,on(we,Be,Ue,Le,je,en,Mn,Ae,an))},_n}var un=function(){return z.apply(on(wt.a,Dt.a,jt.g,Jt.b,ie.a,$t.a,he.a,ve.a,Se.b).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},te=E(34),Zt=E(72),ee=E(6),Pt=E(54),Bt=E(73),Vt=E(74),Ut=function(){return z.apply(on(te.a,Zt.a,ee.g,Pt.a,Bt.a,Vt.a,he.a,ve.a,Se.d).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)};function fe(){var we,Be,Ue,Le,je,en=0,Mn=1,Ae=b,an=!1;function _n(Oe){return isNaN(Oe=+Oe)?je:Ae(Ue===0?.5:(Oe=(Le(Oe)-we)*Ue,an?Math.max(0,Math.min(1,Oe)):Oe))}return _n.domain=function(Oe){return arguments.length?(we=Le(en=+Oe[0]),Be=Le(Mn=+Oe[1]),Ue=we===Be?0:1/(Be-we),_n):[en,Mn]},_n.clamp=function(Oe){return arguments.length?(an=!!Oe,_n):an},_n.interpolator=function(Oe){return arguments.length?(Ae=Oe,_n):Ae},_n.unknown=function(Oe){return arguments.length?(je=Oe,_n):je},function(Oe){return Le=Oe,we=Oe(en),Be=Oe(Mn),Ue=we===Be?0:1/(Be-we),_n}}function Ce(we,Be){return Be.domain(we.domain()).interpolator(we.interpolator()).clamp(we.clamp()).unknown(we.unknown())}function xe(){var we=k(fe()(b));return we.copy=function(){return Ce(we,xe())},at.apply(we,arguments)}function Qe(){var we=q(fe()).domain([1,10]);return we.copy=function(){return Ce(we,Qe()).base(we.base())},at.apply(we,arguments)}function mn(){var we=O(fe());return we.copy=function(){return Ce(we,mn()).constant(we.constant())},at.apply(we,arguments)}function xn(){var we=dt(fe());return we.copy=function(){return Ce(we,xn()).exponent(we.exponent())},at.apply(we,arguments)}function In(){return xn.apply(null,arguments).exponent(.5)}function vn(){var we=[],Be=b;function Ue(Le){if(!isNaN(Le=+Le))return Be((Object(U.bisect)(we,Le)-1)/(we.length-1))}return Ue.domain=function(Le){if(!arguments.length)return we.slice();we=[];for(var je,en=0,Mn=Le.length;en<Mn;++en)(je=Le[en])==null||isNaN(je=+je)||we.push(je);return we.sort(U.ascending),Ue},Ue.interpolator=function(Le){return arguments.length?(Be=Le,Ue):Be},Ue.copy=function(){return vn(Be).domain(we)},at.apply(Ue,arguments)}function An(){var we,Be,Ue,Le,je,en,Mn,Ae=0,an=.5,_n=1,Oe=b,Sn=!1;function sn(yn){return isNaN(yn=+yn)?Mn:(yn=.5+((yn=+en(yn))-Be)*(yn<Be?Le:je),Oe(Sn?Math.max(0,Math.min(1,yn)):yn))}return sn.domain=function(yn){return arguments.length?(we=en(Ae=+yn[0]),Be=en(an=+yn[1]),Ue=en(_n=+yn[2]),Le=we===Be?0:.5/(Be-we),je=Be===Ue?0:.5/(Ue-Be),sn):[Ae,an,_n]},sn.clamp=function(yn){return arguments.length?(Sn=!!yn,sn):Sn},sn.interpolator=function(yn){return arguments.length?(Oe=yn,sn):Oe},sn.unknown=function(yn){return arguments.length?(Mn=yn,sn):Mn},function(yn){return en=yn,we=yn(Ae),Be=yn(an),Ue=yn(_n),Le=we===Be?0:.5/(Be-we),je=Be===Ue?0:.5/(Ue-Be),sn}}function Jn(){var we=k(An()(b));return we.copy=function(){return Ce(we,Jn())},at.apply(we,arguments)}function dr(){var we=q(An()).domain([.1,1,10]);return we.copy=function(){return Ce(we,dr()).base(we.base())},at.apply(we,arguments)}function be(){var we=O(An());return we.copy=function(){return Ce(we,be()).constant(we.constant())},at.apply(we,arguments)}function Fe(){var we=dt(An());return we.copy=function(){return Ce(we,Fe()).exponent(we.exponent())},at.apply(we,arguments)}function Xe(){return Fe.apply(null,arguments).exponent(.5)}E.d(_,"scaleBand",function(){return X}),E.d(_,"scalePoint",function(){return B}),E.d(_,"scaleIdentity",function(){return G}),E.d(_,"scaleLinear",function(){return T}),E.d(_,"scaleLog",function(){return rt}),E.d(_,"scaleSymlog",function(){return Y}),E.d(_,"scaleOrdinal",function(){return V}),E.d(_,"scaleImplicit",function(){return Q}),E.d(_,"scalePow",function(){return vt}),E.d(_,"scaleSqrt",function(){return Et}),E.d(_,"scaleQuantile",function(){return kt}),E.d(_,"scaleQuantize",function(){return Nt}),E.d(_,"scaleThreshold",function(){return gt}),E.d(_,"scaleTime",function(){return un}),E.d(_,"scaleUtc",function(){return Ut}),E.d(_,"scaleSequential",function(){return xe}),E.d(_,"scaleSequentialLog",function(){return Qe}),E.d(_,"scaleSequentialPow",function(){return xn}),E.d(_,"scaleSequentialSqrt",function(){return In}),E.d(_,"scaleSequentialSymlog",function(){return mn}),E.d(_,"scaleSequentialQuantile",function(){return vn}),E.d(_,"scaleDiverging",function(){return Jn}),E.d(_,"scaleDivergingLog",function(){return dr}),E.d(_,"scaleDivergingPow",function(){return Fe}),E.d(_,"scaleDivergingSqrt",function(){return Xe}),E.d(_,"scaleDivergingSymlog",function(){return be}),E.d(_,"tickFormat",function(){return I})},function(Lt,_,E){"use strict";E.r(_);var U=E(79);E.d(_,"dispatch",function(){return U.a})},function(Lt,_,E){"use strict";_.a=function(U,z){return U=+U,z=+z,function(at){return U*(1-at)+z*at}}},function(Lt,_,E){"use strict";function U(z,at){var J=Object.create(z.prototype);for(var tt in at)J[tt]=at[tt];return J}E.d(_,"b",function(){return U}),_.a=function(z,at,J){z.prototype=at.prototype=J,J.constructor=z}},function(Lt,_,E){"use strict";E.r(_);var U=E(7);E.d(_,"color",function(){return U.e}),E.d(_,"rgb",function(){return U.g}),E.d(_,"hsl",function(){return U.f});var z=E(50);E.d(_,"lab",function(){return z.a}),E.d(_,"hcl",function(){return z.c}),E.d(_,"lch",function(){return z.d}),E.d(_,"gray",function(){return z.b});var at=E(78);E.d(_,"cubehelix",function(){return at.a})},function(Lt,_,E){"use strict";var U;(U=function(z){var at=E(91),J=E(10).colorSchemas,tt=(E(35),E(96)),K=typeof window!="undefined"&&window.btoa;K||(K=E(97).encode);var Z={styleClass:"britechartStyle",defaultFilename:"britechart.png",chartBackground:"#ffffff",imageSourceBase:"data:image/svg+xml;base64,",titleFontSize:"36px",titleFontFamily:"'Avenir Next', sans-serif",titleTopOffset:25,titleLeftOffset:10,get styleBackgroundString(){return"<style>svg{background:"+this.chartBackground+";padding: 20px;}</style>"}};function Q(d,R){if(d){d.attr("version",1.1).attr("xmlns","http://www.w3.org/2000/svg");var P=tt.initializeSerializer()(d.node());return P=function(s){return navigator.userAgent.search("FireFox")>-1?s.replace(/url.*&quot;\)/,'url(&quot;linearGradient[id*="-gradient-"]&quot;);'):s}(P),P=function(s){return s.replace(">",">"+Z.styleBackgroundString)}(P=B.call(this,P,R,parseInt(d.attr("width"),10)))}}function V(d){var R=new Image;return R.src=""+Z.imageSourceBase+K(encodeURIComponent(d).replace(/%([0-9A-F]{2})/g,function(P,s){return String.fromCharCode("0x"+s)})),R}function X(d,R){return R.getContext("2d").drawImage(d,0,0),R}function j(d,R,P){P.preventDefault(),function(s){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z.defaultFilename,b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"image/png",o=s.toDataURL(b),u=document.createElement("a");u.href=o,u.download=x,document.body.appendChild(u),u.click(),document.body.removeChild(u)}(X(this,d),R)}function B(d,R,P){if(!R||!P)return d;var s=J.grey;return d=d.replace(/<g/,'<text x="'+this.margin().left+'" y="'+Z.titleTopOffset+'" font-family="'+Z.titleFontFamily+'" font-size="'+Z.titleFontSize+'" fill="'+s[6]+'"> '+R+" </text><g ")}return{exportChart:function(d,R,P){var s=Q.call(this,d,P),x=function(o,u){var C=document.createElement("canvas");return C.height=u,C.width=o,C}(this.width(),this.height());if(navigator.msSaveOrOpenBlob)return at(x,s,{log:!1,ignoreMouse:!0}),navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob(x.msToBlob(),R);var b=V(s);b.onload=j.bind(b,x,R)},convertSvgToHtml:Q,createImage:V,drawImageOnCanvas:X}}.call(_,E,_,Lt))===void 0||(Lt.exports=U)},function(Lt,_,E){"use strict";var U;(U=function(){return{bar:`
1
+ var i$=Object.defineProperty,o$=Object.defineProperties;var a$=Object.getOwnPropertyDescriptors;var Vk=Object.getOwnPropertySymbols;var UR=Object.prototype.hasOwnProperty,HR=Object.prototype.propertyIsEnumerable;var VR=Math.pow,G5=(Jo,ba,Fn)=>ba in Jo?i$(Jo,ba,{enumerable:!0,configurable:!0,writable:!0,value:Fn}):Jo[ba]=Fn,xr=(Jo,ba)=>{for(var Fn in ba||(ba={}))UR.call(ba,Fn)&&G5(Jo,Fn,ba[Fn]);if(Vk)for(var Fn of Vk(ba))HR.call(ba,Fn)&&G5(Jo,Fn,ba[Fn]);return Jo},Mi=(Jo,ba)=>o$(Jo,a$(ba));var WR=Jo=>typeof Jo=="symbol"?Jo:Jo+"",io=(Jo,ba)=>{var Fn={};for(var Ju in Jo)UR.call(Jo,Ju)&&ba.indexOf(Ju)<0&&(Fn[Ju]=Jo[Ju]);if(Jo!=null&&Vk)for(var Ju of Vk(Jo))ba.indexOf(Ju)<0&&HR.call(Jo,Ju)&&(Fn[Ju]=Jo[Ju]);return Fn};var lo=(Jo,ba,Fn)=>G5(Jo,typeof ba!="symbol"?ba+"":ba,Fn);var Qi=(Jo,ba,Fn)=>new Promise((Ju,br)=>{var Pe=Lt=>{try{W(Fn.next(Lt))}catch(_){br(_)}},Mt=Lt=>{try{W(Fn.throw(Lt))}catch(_){br(_)}},W=Lt=>Lt.done?Ju(Lt.value):Promise.resolve(Lt.value).then(Pe,Mt);W((Fn=Fn.apply(Jo,ba)).next())});(()=>{var Jo={3861:(br,Pe,Mt)=>{(function(W,Lt){br.exports=Lt(Mt(3224))})(window,function(W){return function(Lt){var _={};function E(U){if(_[U])return _[U].exports;var z=_[U]={i:U,l:!1,exports:{}};return Lt[U].call(z.exports,z,z.exports,E),z.l=!0,z.exports}return E.m=Lt,E.c=_,E.d=function(U,z,at){E.o(U,z)||Object.defineProperty(U,z,{enumerable:!0,get:at})},E.r=function(U){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(U,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(U,"__esModule",{value:!0})},E.t=function(U,z){if(1&z&&(U=E(U)),8&z||4&z&&typeof U=="object"&&U&&U.__esModule)return U;var at=Object.create(null);if(E.r(at),Object.defineProperty(at,"default",{enumerable:!0,value:U}),2&z&&typeof U!="string")for(var J in U)E.d(at,J,function(tt){return U[tt]}.bind(null,J));return at},E.n=function(U){var z=U&&U.__esModule?function(){return U.default}:function(){return U};return E.d(z,"a",z),z},E.o=function(U,z){return Object.prototype.hasOwnProperty.call(U,z)},E.p="",E(E.s=88)}([function(Lt,_,E){"use strict";E.r(_);var U=function(it,D){return it<D?-1:it>D?1:it>=D?0:NaN},z=function(it){var D;return it.length===1&&(D=it,it=function(O,Y){return U(D(O),Y)}),{left:function(O,Y,lt,ot){for(lt==null&&(lt=0),ot==null&&(ot=O.length);lt<ot;){var xt=lt+ot>>>1;it(O[xt],Y)<0?lt=xt+1:ot=xt}return lt},right:function(O,Y,lt,ot){for(lt==null&&(lt=0),ot==null&&(ot=O.length);lt<ot;){var xt=lt+ot>>>1;it(O[xt],Y)>0?ot=xt:lt=xt+1}return lt}}},at=z(U),J=at.right,tt=at.left,K=J,Z=function(it,D){D==null&&(D=Q);for(var O=0,Y=it.length-1,lt=it[0],ot=new Array(Y<0?0:Y);O<Y;)ot[O]=D(lt,lt=it[++O]);return ot};function Q(it,D){return[it,D]}var V=function(it,D,O){var Y,lt,ot,xt,dt=it.length,vt=D.length,Et=new Array(dt*vt);for(O==null&&(O=Q),Y=ot=0;Y<dt;++Y)for(xt=it[Y],lt=0;lt<vt;++lt,++ot)Et[ot]=O(xt,D[lt]);return Et},X=function(it,D){return D<it?-1:D>it?1:D>=it?0:NaN},j=function(it){return it===null?NaN:+it},B=function(it,D){var O,Y,lt=it.length,ot=0,xt=-1,dt=0,vt=0;if(D==null)for(;++xt<lt;)isNaN(O=j(it[xt]))||(vt+=(Y=O-dt)*(O-(dt+=Y/++ot)));else for(;++xt<lt;)isNaN(O=j(D(it[xt],xt,it)))||(vt+=(Y=O-dt)*(O-(dt+=Y/++ot)));if(ot>1)return vt/(ot-1)},d=function(it,D){var O=B(it,D);return O&&Math.sqrt(O)},R=function(it,D){var O,Y,lt,ot=it.length,xt=-1;if(D==null){for(;++xt<ot;)if((O=it[xt])!=null&&O>=O)for(Y=lt=O;++xt<ot;)(O=it[xt])!=null&&(Y>O&&(Y=O),lt<O&&(lt=O))}else for(;++xt<ot;)if((O=D(it[xt],xt,it))!=null&&O>=O)for(Y=lt=O;++xt<ot;)(O=D(it[xt],xt,it))!=null&&(Y>O&&(Y=O),lt<O&&(lt=O));return[Y,lt]},P=Array.prototype,s=P.slice,x=P.map,b=function(it){return function(){return it}},o=function(it){return it},u=function(it,D,O){it=+it,D=+D,O=(lt=arguments.length)<2?(D=it,it=0,1):lt<3?1:+O;for(var Y=-1,lt=0|Math.max(0,Math.ceil((D-it)/O)),ot=new Array(lt);++Y<lt;)ot[Y]=it+Y*O;return ot},C=Math.sqrt(50),M=Math.sqrt(10),w=Math.sqrt(2),y=function(it,D,O){var Y,lt,ot,xt,dt=-1;if(O=+O,(it=+it)==(D=+D)&&O>0)return[it];if((Y=D<it)&&(lt=it,it=D,D=lt),(xt=m(it,D,O))===0||!isFinite(xt))return[];if(xt>0)for(it=Math.ceil(it/xt),D=Math.floor(D/xt),ot=new Array(lt=Math.ceil(D-it+1));++dt<lt;)ot[dt]=(it+dt)*xt;else for(it=Math.floor(it*xt),D=Math.ceil(D*xt),ot=new Array(lt=Math.ceil(it-D+1));++dt<lt;)ot[dt]=(it-dt)/xt;return Y&&ot.reverse(),ot};function m(it,D,O){var Y=(D-it)/Math.max(0,O),lt=Math.floor(Math.log(Y)/Math.LN10),ot=Y/Math.pow(10,lt);return lt>=0?(ot>=C?10:ot>=M?5:ot>=w?2:1)*Math.pow(10,lt):-Math.pow(10,-lt)/(ot>=C?10:ot>=M?5:ot>=w?2:1)}function g(it,D,O){var Y=Math.abs(D-it)/Math.max(0,O),lt=Math.pow(10,Math.floor(Math.log(Y)/Math.LN10)),ot=Y/lt;return ot>=C?lt*=10:ot>=M?lt*=5:ot>=w&&(lt*=2),D<it?-lt:lt}var p=function(it){return Math.ceil(Math.log(it.length)/Math.LN2)+1},l=function(){var it=o,D=R,O=p;function Y(lt){var ot,xt,dt=lt.length,vt=new Array(dt);for(ot=0;ot<dt;++ot)vt[ot]=it(lt[ot],ot,lt);var Et=D(vt),kt=Et[0],Nt=Et[1],gt=O(vt,kt,Nt);Array.isArray(gt)||(gt=g(kt,Nt,gt),gt=u(Math.ceil(kt/gt)*gt,Nt,gt));for(var wt=gt.length;gt[0]<=kt;)gt.shift(),--wt;for(;gt[wt-1]>Nt;)gt.pop(),--wt;var Dt,jt=new Array(wt+1);for(ot=0;ot<=wt;++ot)(Dt=jt[ot]=[]).x0=ot>0?gt[ot-1]:kt,Dt.x1=ot<wt?gt[ot]:Nt;for(ot=0;ot<dt;++ot)kt<=(xt=vt[ot])&&xt<=Nt&&jt[K(gt,xt,0,wt)].push(lt[ot]);return jt}return Y.value=function(lt){return arguments.length?(it=typeof lt=="function"?lt:b(lt),Y):it},Y.domain=function(lt){return arguments.length?(D=typeof lt=="function"?lt:b([lt[0],lt[1]]),Y):D},Y.thresholds=function(lt){return arguments.length?(O=typeof lt=="function"?lt:Array.isArray(lt)?b(s.call(lt)):b(lt),Y):O},Y},f=function(it,D,O){if(O==null&&(O=j),Y=it.length){if((D=+D)<=0||Y<2)return+O(it[0],0,it);if(D>=1)return+O(it[Y-1],Y-1,it);var Y,lt=(Y-1)*D,ot=Math.floor(lt),xt=+O(it[ot],ot,it);return xt+(+O(it[ot+1],ot+1,it)-xt)*(lt-ot)}},v=function(it,D,O){return it=x.call(it,j).sort(U),Math.ceil((O-D)/(2*(f(it,.75)-f(it,.25))*Math.pow(it.length,-1/3)))},I=function(it,D,O){return Math.ceil((O-D)/(3.5*d(it)*Math.pow(it.length,-1/3)))},k=function(it,D){var O,Y,lt=it.length,ot=-1;if(D==null){for(;++ot<lt;)if((O=it[ot])!=null&&O>=O)for(Y=O;++ot<lt;)(O=it[ot])!=null&&O>Y&&(Y=O)}else for(;++ot<lt;)if((O=D(it[ot],ot,it))!=null&&O>=O)for(Y=O;++ot<lt;)(O=D(it[ot],ot,it))!=null&&O>Y&&(Y=O);return Y},T=function(it,D){var O,Y=it.length,lt=Y,ot=-1,xt=0;if(D==null)for(;++ot<Y;)isNaN(O=j(it[ot]))?--lt:xt+=O;else for(;++ot<Y;)isNaN(O=j(D(it[ot],ot,it)))?--lt:xt+=O;if(lt)return xt/lt},G=function(it,D){var O,Y=it.length,lt=-1,ot=[];if(D==null)for(;++lt<Y;)isNaN(O=j(it[lt]))||ot.push(O);else for(;++lt<Y;)isNaN(O=j(D(it[lt],lt,it)))||ot.push(O);return f(ot.sort(U),.5)},st=function(it){for(var D,O,Y,lt=it.length,ot=-1,xt=0;++ot<lt;)xt+=it[ot].length;for(O=new Array(xt);--lt>=0;)for(D=(Y=it[lt]).length;--D>=0;)O[--xt]=Y[D];return O},et=function(it,D){var O,Y,lt=it.length,ot=-1;if(D==null){for(;++ot<lt;)if((O=it[ot])!=null&&O>=O)for(Y=O;++ot<lt;)(O=it[ot])!=null&&Y>O&&(Y=O)}else for(;++ot<lt;)if((O=D(it[ot],ot,it))!=null&&O>=O)for(Y=O;++ot<lt;)(O=D(it[ot],ot,it))!=null&&Y>O&&(Y=O);return Y},ft=function(it,D){for(var O=D.length,Y=new Array(O);O--;)Y[O]=it[D[O]];return Y},pt=function(it,D){if(O=it.length){var O,Y,lt=0,ot=0,xt=it[ot];for(D==null&&(D=U);++lt<O;)(D(Y=it[lt],xt)<0||D(xt,xt)!==0)&&(xt=Y,ot=lt);return D(xt,xt)===0?ot:void 0}},St=function(it,D,O){for(var Y,lt,ot=(O==null?it.length:O)-(D=D==null?0:+D);ot;)lt=Math.random()*ot--|0,Y=it[ot+D],it[ot+D]=it[lt+D],it[lt+D]=Y;return it},Ct=function(it,D){var O,Y=it.length,lt=-1,ot=0;if(D==null)for(;++lt<Y;)(O=+it[lt])&&(ot+=O);else for(;++lt<Y;)(O=+D(it[lt],lt,it))&&(ot+=O);return ot},L=function(it){if(!(lt=it.length))return[];for(var D=-1,O=et(it,q),Y=new Array(O);++D<O;)for(var lt,ot=-1,xt=Y[D]=new Array(lt);++ot<lt;)xt[ot]=it[ot][D];return Y};function q(it){return it.length}var rt=function(){return L(arguments)};E.d(_,"bisect",function(){return K}),E.d(_,"bisectRight",function(){return J}),E.d(_,"bisectLeft",function(){return tt}),E.d(_,"ascending",function(){return U}),E.d(_,"bisector",function(){return z}),E.d(_,"cross",function(){return V}),E.d(_,"descending",function(){return X}),E.d(_,"deviation",function(){return d}),E.d(_,"extent",function(){return R}),E.d(_,"histogram",function(){return l}),E.d(_,"thresholdFreedmanDiaconis",function(){return v}),E.d(_,"thresholdScott",function(){return I}),E.d(_,"thresholdSturges",function(){return p}),E.d(_,"max",function(){return k}),E.d(_,"mean",function(){return T}),E.d(_,"median",function(){return G}),E.d(_,"merge",function(){return st}),E.d(_,"min",function(){return et}),E.d(_,"pairs",function(){return Z}),E.d(_,"permute",function(){return ft}),E.d(_,"quantile",function(){return f}),E.d(_,"range",function(){return u}),E.d(_,"scan",function(){return pt}),E.d(_,"shuffle",function(){return St}),E.d(_,"sum",function(){return Ct}),E.d(_,"ticks",function(){return y}),E.d(_,"tickIncrement",function(){return m}),E.d(_,"tickStep",function(){return g}),E.d(_,"transpose",function(){return L}),E.d(_,"variance",function(){return B}),E.d(_,"zip",function(){return rt})},function(Lt,_,E){"use strict";E.d(_,"a",function(){return at});var U=new Date,z=new Date;function at(J,tt,K,Z){function Q(V){return J(V=arguments.length===0?new Date:new Date(+V)),V}return Q.floor=function(V){return J(V=new Date(+V)),V},Q.ceil=function(V){return J(V=new Date(V-1)),tt(V,1),J(V),V},Q.round=function(V){var X=Q(V),j=Q.ceil(V);return V-X<j-V?X:j},Q.offset=function(V,X){return tt(V=new Date(+V),X==null?1:Math.floor(X)),V},Q.range=function(V,X,j){var B,d=[];if(V=Q.ceil(V),j=j==null?1:Math.floor(j),!(V<X&&j>0))return d;do d.push(B=new Date(+V)),tt(V,j),J(V);while(B<V&&V<X);return d},Q.filter=function(V){return at(function(X){if(X>=X)for(;J(X),!V(X);)X.setTime(X-1)},function(X,j){if(X>=X)if(j<0)for(;++j<=0;)for(;tt(X,-1),!V(X););else for(;--j>=0;)for(;tt(X,1),!V(X););})},K&&(Q.count=function(V,X){return U.setTime(+V),z.setTime(+X),J(U),J(z),Math.floor(K(U,z))},Q.every=function(V){return V=Math.floor(V),isFinite(V)&&V>0?V>1?Q.filter(Z?function(X){return Z(X)%V==0}:function(X){return Q.count(0,X)%V==0}):Q:null}),Q}},function(Lt,_,E){"use strict";E.r(_);var U=E(29),z=E(64),at=function(M){return Object(z.a)(Object(U.a)(M).call(document.documentElement))},J=0;function tt(){return new K}function K(){this._="@"+(++J).toString(36)}K.prototype=tt.prototype={constructor:K,get:function(M){for(var w=this._;!(w in M);)if(!(M=M.parentNode))return;return M[w]},set:function(M,w){return M[this._]=w},remove:function(M){return this._ in M&&delete M[this._]},toString:function(){return this._}};var Z=E(66),Q=E(84),V=E(44),X=E(32),j=E(30),B=E(23),d=function(M){return typeof M=="string"?new B.a([document.querySelectorAll(M)],[document.documentElement]):new B.a([M==null?[]:M],B.c)},R=E(43),P=E(65),s=E(67),x=E(85),b=E(46),o=function(M,w){w==null&&(w=Object(b.a)().touches);for(var y=0,m=w?w.length:0,g=new Array(m);y<m;++y)g[y]=Object(j.a)(M,w[y]);return g},u=E(45),C=E(37);E.d(_,"create",function(){return at}),E.d(_,"creator",function(){return U.a}),E.d(_,"local",function(){return tt}),E.d(_,"matcher",function(){return Z.a}),E.d(_,"mouse",function(){return Q.a}),E.d(_,"namespace",function(){return V.a}),E.d(_,"namespaces",function(){return X.a}),E.d(_,"clientPoint",function(){return j.a}),E.d(_,"select",function(){return z.a}),E.d(_,"selectAll",function(){return d}),E.d(_,"selection",function(){return B.b}),E.d(_,"selector",function(){return R.a}),E.d(_,"selectorAll",function(){return P.a}),E.d(_,"style",function(){return s.b}),E.d(_,"touch",function(){return x.a}),E.d(_,"touches",function(){return o}),E.d(_,"window",function(){return u.a}),E.d(_,"event",function(){return C.c}),E.d(_,"customEvent",function(){return C.a})},function(Lt,_,E){"use strict";E.d(_,"d",function(){return U}),E.d(_,"c",function(){return z}),E.d(_,"b",function(){return at}),E.d(_,"a",function(){return J}),E.d(_,"e",function(){return tt});var U=1e3,z=6e4,at=36e5,J=864e5,tt=6048e5},function(Lt,_,E){"use strict";E.d(_,"c",function(){return at}),E.d(_,"b",function(){return J}),E.d(_,"a",function(){return tt});var U=E(48);function z(K,Z){return function(Q){return K+Q*Z}}function at(K,Z){var Q=Z-K;return Q?z(K,Q>180||Q<-180?Q-360*Math.round(Q/360):Q):Object(U.a)(isNaN(K)?Z:K)}function J(K){return(K=+K)==1?tt:function(Z,Q){return Q-Z?function(V,X,j){return V=Math.pow(V,j),X=Math.pow(X,j)-V,j=1/j,function(B){return Math.pow(V+B*X,j)}}(Z,Q,K):Object(U.a)(isNaN(Z)?Q:Z)}}function tt(K,Z){var Q=Z-K;return Q?z(K,Q):Object(U.a)(isNaN(K)?Z:K)}},function(Lt,_,E){"use strict";E.d(_,"g",function(){return J}),E.d(_,"c",function(){return tt}),E.d(_,"k",function(){return K}),E.d(_,"m",function(){return Z}),E.d(_,"i",function(){return Q}),E.d(_,"a",function(){return V}),E.d(_,"e",function(){return X}),E.d(_,"h",function(){return j}),E.d(_,"d",function(){return B}),E.d(_,"l",function(){return d}),E.d(_,"n",function(){return R}),E.d(_,"j",function(){return P}),E.d(_,"b",function(){return s}),E.d(_,"f",function(){return x});var U=E(1),z=E(3);function at(b){return Object(U.a)(function(o){o.setDate(o.getDate()-(o.getDay()+7-b)%7),o.setHours(0,0,0,0)},function(o,u){o.setDate(o.getDate()+7*u)},function(o,u){return(u-o-(u.getTimezoneOffset()-o.getTimezoneOffset())*z.c)/z.e})}var J=at(0),tt=at(1),K=at(2),Z=at(3),Q=at(4),V=at(5),X=at(6),j=J.range,B=tt.range,d=K.range,R=Z.range,P=Q.range,s=V.range,x=X.range},function(Lt,_,E){"use strict";E.d(_,"g",function(){return J}),E.d(_,"c",function(){return tt}),E.d(_,"k",function(){return K}),E.d(_,"m",function(){return Z}),E.d(_,"i",function(){return Q}),E.d(_,"a",function(){return V}),E.d(_,"e",function(){return X}),E.d(_,"h",function(){return j}),E.d(_,"d",function(){return B}),E.d(_,"l",function(){return d}),E.d(_,"n",function(){return R}),E.d(_,"j",function(){return P}),E.d(_,"b",function(){return s}),E.d(_,"f",function(){return x});var U=E(1),z=E(3);function at(b){return Object(U.a)(function(o){o.setUTCDate(o.getUTCDate()-(o.getUTCDay()+7-b)%7),o.setUTCHours(0,0,0,0)},function(o,u){o.setUTCDate(o.getUTCDate()+7*u)},function(o,u){return(u-o)/z.e})}var J=at(0),tt=at(1),K=at(2),Z=at(3),Q=at(4),V=at(5),X=at(6),j=J.range,B=tt.range,d=K.range,R=Z.range,P=Q.range,s=V.range,x=X.range},function(Lt,_,E){"use strict";E.d(_,"a",function(){return z}),E.d(_,"d",function(){return at}),E.d(_,"c",function(){return J}),E.d(_,"e",function(){return b}),E.d(_,"h",function(){return C}),E.d(_,"g",function(){return M}),E.d(_,"b",function(){return w}),E.d(_,"f",function(){return f});var U=E(15);function z(){}var at=.7,J=1/at,tt="\\s*([+-]?\\d+)\\s*",K="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Z="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Q=/^#([0-9a-f]{3,8})$/,V=new RegExp("^rgb\\("+[tt,tt,tt]+"\\)$"),X=new RegExp("^rgb\\("+[Z,Z,Z]+"\\)$"),j=new RegExp("^rgba\\("+[tt,tt,tt,K]+"\\)$"),B=new RegExp("^rgba\\("+[Z,Z,Z,K]+"\\)$"),d=new RegExp("^hsl\\("+[K,Z,Z]+"\\)$"),R=new RegExp("^hsla\\("+[K,Z,Z,K]+"\\)$"),P={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function s(){return this.rgb().formatHex()}function x(){return this.rgb().formatRgb()}function b(k){var T,G;return k=(k+"").trim().toLowerCase(),(T=Q.exec(k))?(G=T[1].length,T=parseInt(T[1],16),G===6?o(T):G===3?new w(T>>8&15|T>>4&240,T>>4&15|240&T,(15&T)<<4|15&T,1):G===8?new w(T>>24&255,T>>16&255,T>>8&255,(255&T)/255):G===4?new w(T>>12&15|T>>8&240,T>>8&15|T>>4&240,T>>4&15|240&T,((15&T)<<4|15&T)/255):null):(T=V.exec(k))?new w(T[1],T[2],T[3],1):(T=X.exec(k))?new w(255*T[1]/100,255*T[2]/100,255*T[3]/100,1):(T=j.exec(k))?u(T[1],T[2],T[3],T[4]):(T=B.exec(k))?u(255*T[1]/100,255*T[2]/100,255*T[3]/100,T[4]):(T=d.exec(k))?p(T[1],T[2]/100,T[3]/100,1):(T=R.exec(k))?p(T[1],T[2]/100,T[3]/100,T[4]):P.hasOwnProperty(k)?o(P[k]):k==="transparent"?new w(NaN,NaN,NaN,0):null}function o(k){return new w(k>>16&255,k>>8&255,255&k,1)}function u(k,T,G,st){return st<=0&&(k=T=G=NaN),new w(k,T,G,st)}function C(k){return k instanceof z||(k=b(k)),k?new w((k=k.rgb()).r,k.g,k.b,k.opacity):new w}function M(k,T,G,st){return arguments.length===1?C(k):new w(k,T,G,st==null?1:st)}function w(k,T,G,st){this.r=+k,this.g=+T,this.b=+G,this.opacity=+st}function y(){return"#"+g(this.r)+g(this.g)+g(this.b)}function m(){var k=this.opacity;return((k=isNaN(k)?1:Math.max(0,Math.min(1,k)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(k===1?")":", "+k+")")}function g(k){return((k=Math.max(0,Math.min(255,Math.round(k)||0)))<16?"0":"")+k.toString(16)}function p(k,T,G,st){return st<=0?k=T=G=NaN:G<=0||G>=1?k=T=NaN:T<=0&&(k=NaN),new v(k,T,G,st)}function l(k){if(k instanceof v)return new v(k.h,k.s,k.l,k.opacity);if(k instanceof z||(k=b(k)),!k)return new v;if(k instanceof v)return k;var T=(k=k.rgb()).r/255,G=k.g/255,st=k.b/255,et=Math.min(T,G,st),ft=Math.max(T,G,st),pt=NaN,St=ft-et,Ct=(ft+et)/2;return St?(pt=T===ft?(G-st)/St+6*(G<st):G===ft?(st-T)/St+2:(T-G)/St+4,St/=Ct<.5?ft+et:2-ft-et,pt*=60):St=Ct>0&&Ct<1?0:pt,new v(pt,St,Ct,k.opacity)}function f(k,T,G,st){return arguments.length===1?l(k):new v(k,T,G,st==null?1:st)}function v(k,T,G,st){this.h=+k,this.s=+T,this.l=+G,this.opacity=+st}function I(k,T,G){return 255*(k<60?T+(G-T)*k/60:k<180?G:k<240?T+(G-T)*(240-k)/60:T)}Object(U.a)(z,b,{copy:function(k){return Object.assign(new this.constructor,this,k)},displayable:function(){return this.rgb().displayable()},hex:s,formatHex:s,formatHsl:function(){return l(this).formatHsl()},formatRgb:x,toString:x}),Object(U.a)(w,M,Object(U.b)(z,{brighter:function(k){return k=k==null?J:Math.pow(J,k),new w(this.r*k,this.g*k,this.b*k,this.opacity)},darker:function(k){return k=k==null?at:Math.pow(at,k),new w(this.r*k,this.g*k,this.b*k,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:y,formatHex:y,formatRgb:m,toString:m})),Object(U.a)(v,f,Object(U.b)(z,{brighter:function(k){return k=k==null?J:Math.pow(J,k),new v(this.h,this.s,this.l*k,this.opacity)},darker:function(k){return k=k==null?at:Math.pow(at,k),new v(this.h,this.s,this.l*k,this.opacity)},rgb:function(){var k=this.h%360+360*(this.h<0),T=isNaN(k)||isNaN(this.s)?0:this.s,G=this.l,st=G+(G<.5?G:1-G)*T,et=2*G-st;return new w(I(k>=240?k-240:k+120,et,st),I(k,et,st),I(k<120?k+240:k-120,et,st),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var k=this.opacity;return((k=isNaN(k)?1:Math.max(0,Math.min(1,k)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(k===1?")":", "+k+")")}}))},function(Lt,_,E){"use strict";E.r(_);var U,z,at=E(23),J=E(79),tt=0,K=0,Z=0,Q=0,V=0,X=0,j=typeof performance=="object"&&performance.now?performance:Date,B=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(Pt){setTimeout(Pt,17)};function d(){return V||(B(R),V=j.now()+X)}function R(){V=0}function P(){this._call=this._time=this._next=null}function s(Pt,Bt,Vt){var Ut=new P;return Ut.restart(Pt,Bt,Vt),Ut}function x(){V=(Q=j.now())+X,tt=K=0;try{(function(){d(),++tt;for(var Pt,Bt=U;Bt;)(Pt=V-Bt._time)>=0&&Bt._call.call(null,Pt),Bt=Bt._next;--tt})()}finally{tt=0,function(){for(var Pt,Bt,Vt=U,Ut=1/0;Vt;)Vt._call?(Ut>Vt._time&&(Ut=Vt._time),Pt=Vt,Vt=Vt._next):(Bt=Vt._next,Vt._next=null,Vt=Pt?Pt._next=Bt:U=Bt);z=Pt,o(Ut)}(),V=0}}function b(){var Pt=j.now(),Bt=Pt-Q;Bt>1e3&&(X-=Bt,Q=Pt)}function o(Pt){tt||(K&&(K=clearTimeout(K)),Pt-V>24?(Pt<1/0&&(K=setTimeout(x,Pt-j.now()-X)),Z&&(Z=clearInterval(Z))):(Z||(Q=j.now(),Z=setInterval(b,1e3)),tt=1,B(x)))}P.prototype=s.prototype={constructor:P,restart:function(Pt,Bt,Vt){if(typeof Pt!="function")throw new TypeError("callback is not a function");Vt=(Vt==null?d():+Vt)+(Bt==null?0:+Bt),this._next||z===this||(z?z._next=this:U=this,z=this),this._call=Pt,this._time=Vt,o()},stop:function(){this._call&&(this._call=null,this._time=1/0,o())}};var u=function(Pt,Bt,Vt){var Ut=new P;return Bt=Bt==null?0:+Bt,Ut.restart(function(fe){Ut.stop(),Pt(fe+Bt)},Bt,Vt),Ut},C=Object(J.a)("start","end","cancel","interrupt"),M=[],w=function(Pt,Bt,Vt,Ut,fe,Ce){var xe=Pt.__transition;if(xe){if(Vt in xe)return}else Pt.__transition={};(function(Qe,mn,xn){var In,vn=Qe.__transition;function An(be){var Fe,Xe,we,Be;if(xn.state!==1)return dr();for(Fe in vn)if((Be=vn[Fe]).name===xn.name){if(Be.state===3)return u(An);Be.state===4?(Be.state=6,Be.timer.stop(),Be.on.call("interrupt",Qe,Qe.__data__,Be.index,Be.group),delete vn[Fe]):+Fe<mn&&(Be.state=6,Be.timer.stop(),Be.on.call("cancel",Qe,Qe.__data__,Be.index,Be.group),delete vn[Fe])}if(u(function(){xn.state===3&&(xn.state=4,xn.timer.restart(Jn,xn.delay,xn.time),Jn(be))}),xn.state=2,xn.on.call("start",Qe,Qe.__data__,xn.index,xn.group),xn.state===2){for(xn.state=3,In=new Array(we=xn.tween.length),Fe=0,Xe=-1;Fe<we;++Fe)(Be=xn.tween[Fe].value.call(Qe,Qe.__data__,xn.index,xn.group))&&(In[++Xe]=Be);In.length=Xe+1}}function Jn(be){for(var Fe=be<xn.duration?xn.ease.call(null,be/xn.duration):(xn.timer.restart(dr),xn.state=5,1),Xe=-1,we=In.length;++Xe<we;)In[Xe].call(Qe,Fe);xn.state===5&&(xn.on.call("end",Qe,Qe.__data__,xn.index,xn.group),dr())}function dr(){for(var be in xn.state=6,xn.timer.stop(),delete vn[mn],vn)return;delete Qe.__transition}vn[mn]=xn,xn.timer=s(function(be){xn.state=1,xn.timer.restart(An,xn.delay,xn.time),xn.delay<=be&&An(be-xn.delay)},0,xn.time)})(Pt,Vt,{name:Bt,index:Ut,group:fe,on:C,tween:M,time:Ce.time,delay:Ce.delay,duration:Ce.duration,ease:Ce.ease,timer:null,state:0})};function y(Pt,Bt){var Vt=g(Pt,Bt);if(Vt.state>0)throw new Error("too late; already scheduled");return Vt}function m(Pt,Bt){var Vt=g(Pt,Bt);if(Vt.state>3)throw new Error("too late; already running");return Vt}function g(Pt,Bt){var Vt=Pt.__transition;if(!Vt||!(Vt=Vt[Bt]))throw new Error("transition not found");return Vt}var p=function(Pt,Bt){var Vt,Ut,fe,Ce=Pt.__transition,xe=!0;if(Ce){for(fe in Bt=Bt==null?null:Bt+"",Ce)(Vt=Ce[fe]).name===Bt?(Ut=Vt.state>2&&Vt.state<5,Vt.state=6,Vt.timer.stop(),Vt.on.call(Ut?"interrupt":"cancel",Pt,Pt.__data__,Vt.index,Vt.group),delete Ce[fe]):xe=!1;xe&&delete Pt.__transition}},l=E(77),f=E(44);function v(Pt,Bt){var Vt,Ut;return function(){var fe=m(this,Pt),Ce=fe.tween;if(Ce!==Vt){for(var xe=0,Qe=(Ut=Vt=Ce).length;xe<Qe;++xe)if(Ut[xe].name===Bt){(Ut=Ut.slice()).splice(xe,1);break}}fe.tween=Ut}}function I(Pt,Bt,Vt){var Ut,fe;if(typeof Vt!="function")throw new Error;return function(){var Ce=m(this,Pt),xe=Ce.tween;if(xe!==Ut){fe=(Ut=xe).slice();for(var Qe={name:Bt,value:Vt},mn=0,xn=fe.length;mn<xn;++mn)if(fe[mn].name===Bt){fe[mn]=Qe;break}mn===xn&&fe.push(Qe)}Ce.tween=fe}}function k(Pt,Bt,Vt){var Ut=Pt._id;return Pt.each(function(){var fe=m(this,Ut);(fe.value||(fe.value={}))[Bt]=Vt.apply(this,arguments)}),function(fe){return g(fe,Ut).value[Bt]}}var T=E(7),G=E(14),st=E(36),et=E(59),ft=function(Pt,Bt){var Vt;return(typeof Bt=="number"?G.a:Bt instanceof T.e?st.a:(Vt=Object(T.e)(Bt))?(Bt=Vt,st.a):et.a)(Pt,Bt)};function pt(Pt){return function(){this.removeAttribute(Pt)}}function St(Pt){return function(){this.removeAttributeNS(Pt.space,Pt.local)}}function Ct(Pt,Bt,Vt){var Ut,fe,Ce=Vt+"";return function(){var xe=this.getAttribute(Pt);return xe===Ce?null:xe===Ut?fe:fe=Bt(Ut=xe,Vt)}}function L(Pt,Bt,Vt){var Ut,fe,Ce=Vt+"";return function(){var xe=this.getAttributeNS(Pt.space,Pt.local);return xe===Ce?null:xe===Ut?fe:fe=Bt(Ut=xe,Vt)}}function q(Pt,Bt,Vt){var Ut,fe,Ce;return function(){var xe,Qe,mn=Vt(this);if(mn!=null)return(xe=this.getAttribute(Pt))===(Qe=mn+"")?null:xe===Ut&&Qe===fe?Ce:(fe=Qe,Ce=Bt(Ut=xe,mn));this.removeAttribute(Pt)}}function rt(Pt,Bt,Vt){var Ut,fe,Ce;return function(){var xe,Qe,mn=Vt(this);if(mn!=null)return(xe=this.getAttributeNS(Pt.space,Pt.local))===(Qe=mn+"")?null:xe===Ut&&Qe===fe?Ce:(fe=Qe,Ce=Bt(Ut=xe,mn));this.removeAttributeNS(Pt.space,Pt.local)}}function it(Pt,Bt){return function(Vt){this.setAttribute(Pt,Bt.call(this,Vt))}}function D(Pt,Bt){return function(Vt){this.setAttributeNS(Pt.space,Pt.local,Bt.call(this,Vt))}}function O(Pt,Bt){var Vt,Ut;function fe(){var Ce=Bt.apply(this,arguments);return Ce!==Ut&&(Vt=(Ut=Ce)&&D(Pt,Ce)),Vt}return fe._value=Bt,fe}function Y(Pt,Bt){var Vt,Ut;function fe(){var Ce=Bt.apply(this,arguments);return Ce!==Ut&&(Vt=(Ut=Ce)&&it(Pt,Ce)),Vt}return fe._value=Bt,fe}function lt(Pt,Bt){return function(){y(this,Pt).delay=+Bt.apply(this,arguments)}}function ot(Pt,Bt){return Bt=+Bt,function(){y(this,Pt).delay=Bt}}function xt(Pt,Bt){return function(){m(this,Pt).duration=+Bt.apply(this,arguments)}}function dt(Pt,Bt){return Bt=+Bt,function(){m(this,Pt).duration=Bt}}function vt(Pt,Bt){if(typeof Bt!="function")throw new Error;return function(){m(this,Pt).ease=Bt}}var Et=E(66);function kt(Pt,Bt,Vt){var Ut,fe,Ce=function(xe){return(xe+"").trim().split(/^|\s+/).every(function(Qe){var mn=Qe.indexOf(".");return mn>=0&&(Qe=Qe.slice(0,mn)),!Qe||Qe==="start"})}(Bt)?y:m;return function(){var xe=Ce(this,Pt),Qe=xe.on;Qe!==Ut&&(fe=(Ut=Qe).copy()).on(Bt,Vt),xe.on=fe}}var Nt=E(43),gt=E(65),wt=at.b.prototype.constructor,Dt=E(67);function jt(Pt){return function(){this.style.removeProperty(Pt)}}function Jt(Pt,Bt,Vt){return function(Ut){this.style.setProperty(Pt,Bt.call(this,Ut),Vt)}}function ie(Pt,Bt,Vt){var Ut,fe;function Ce(){var xe=Bt.apply(this,arguments);return xe!==fe&&(Ut=(fe=xe)&&Jt(Pt,xe,Vt)),Ut}return Ce._value=Bt,Ce}function $t(Pt){return function(Bt){this.textContent=Pt.call(this,Bt)}}function he(Pt){var Bt,Vt;function Ut(){var fe=Pt.apply(this,arguments);return fe!==Vt&&(Bt=(Vt=fe)&&$t(fe)),Bt}return Ut._value=Pt,Ut}var ve=0;function Se(Pt,Bt,Vt,Ut){this._groups=Pt,this._parents=Bt,this._name=Vt,this._id=Ut}function ke(Pt){return Object(at.b)().transition(Pt)}function Ge(){return++ve}var on=at.b.prototype;Se.prototype=ke.prototype={constructor:Se,select:function(Pt){var Bt=this._name,Vt=this._id;typeof Pt!="function"&&(Pt=Object(Nt.a)(Pt));for(var Ut=this._groups,fe=Ut.length,Ce=new Array(fe),xe=0;xe<fe;++xe)for(var Qe,mn,xn=Ut[xe],In=xn.length,vn=Ce[xe]=new Array(In),An=0;An<In;++An)(Qe=xn[An])&&(mn=Pt.call(Qe,Qe.__data__,An,xn))&&("__data__"in Qe&&(mn.__data__=Qe.__data__),vn[An]=mn,w(vn[An],Bt,Vt,An,vn,g(Qe,Vt)));return new Se(Ce,this._parents,Bt,Vt)},selectAll:function(Pt){var Bt=this._name,Vt=this._id;typeof Pt!="function"&&(Pt=Object(gt.a)(Pt));for(var Ut=this._groups,fe=Ut.length,Ce=[],xe=[],Qe=0;Qe<fe;++Qe)for(var mn,xn=Ut[Qe],In=xn.length,vn=0;vn<In;++vn)if(mn=xn[vn]){for(var An,Jn=Pt.call(mn,mn.__data__,vn,xn),dr=g(mn,Vt),be=0,Fe=Jn.length;be<Fe;++be)(An=Jn[be])&&w(An,Bt,Vt,be,Jn,dr);Ce.push(Jn),xe.push(mn)}return new Se(Ce,xe,Bt,Vt)},filter:function(Pt){typeof Pt!="function"&&(Pt=Object(Et.a)(Pt));for(var Bt=this._groups,Vt=Bt.length,Ut=new Array(Vt),fe=0;fe<Vt;++fe)for(var Ce,xe=Bt[fe],Qe=xe.length,mn=Ut[fe]=[],xn=0;xn<Qe;++xn)(Ce=xe[xn])&&Pt.call(Ce,Ce.__data__,xn,xe)&&mn.push(Ce);return new Se(Ut,this._parents,this._name,this._id)},merge:function(Pt){if(Pt._id!==this._id)throw new Error;for(var Bt=this._groups,Vt=Pt._groups,Ut=Bt.length,fe=Vt.length,Ce=Math.min(Ut,fe),xe=new Array(Ut),Qe=0;Qe<Ce;++Qe)for(var mn,xn=Bt[Qe],In=Vt[Qe],vn=xn.length,An=xe[Qe]=new Array(vn),Jn=0;Jn<vn;++Jn)(mn=xn[Jn]||In[Jn])&&(An[Jn]=mn);for(;Qe<Ut;++Qe)xe[Qe]=Bt[Qe];return new Se(xe,this._parents,this._name,this._id)},selection:function(){return new wt(this._groups,this._parents)},transition:function(){for(var Pt=this._name,Bt=this._id,Vt=Ge(),Ut=this._groups,fe=Ut.length,Ce=0;Ce<fe;++Ce)for(var xe,Qe=Ut[Ce],mn=Qe.length,xn=0;xn<mn;++xn)if(xe=Qe[xn]){var In=g(xe,Bt);w(xe,Pt,Vt,xn,Qe,{time:In.time+In.delay+In.duration,delay:0,duration:In.duration,ease:In.ease})}return new Se(Ut,this._parents,Pt,Vt)},call:on.call,nodes:on.nodes,node:on.node,size:on.size,empty:on.empty,each:on.each,on:function(Pt,Bt){var Vt=this._id;return arguments.length<2?g(this.node(),Vt).on.on(Pt):this.each(kt(Vt,Pt,Bt))},attr:function(Pt,Bt){var Vt=Object(f.a)(Pt),Ut=Vt==="transform"?l.b:ft;return this.attrTween(Pt,typeof Bt=="function"?(Vt.local?rt:q)(Vt,Ut,k(this,"attr."+Pt,Bt)):Bt==null?(Vt.local?St:pt)(Vt):(Vt.local?L:Ct)(Vt,Ut,Bt))},attrTween:function(Pt,Bt){var Vt="attr."+Pt;if(arguments.length<2)return(Vt=this.tween(Vt))&&Vt._value;if(Bt==null)return this.tween(Vt,null);if(typeof Bt!="function")throw new Error;var Ut=Object(f.a)(Pt);return this.tween(Vt,(Ut.local?O:Y)(Ut,Bt))},style:function(Pt,Bt,Vt){var Ut=(Pt+="")=="transform"?l.a:ft;return Bt==null?this.styleTween(Pt,function(fe,Ce){var xe,Qe,mn;return function(){var xn=Object(Dt.b)(this,fe),In=(this.style.removeProperty(fe),Object(Dt.b)(this,fe));return xn===In?null:xn===xe&&In===Qe?mn:mn=Ce(xe=xn,Qe=In)}}(Pt,Ut)).on("end.style."+Pt,jt(Pt)):typeof Bt=="function"?this.styleTween(Pt,function(fe,Ce,xe){var Qe,mn,xn;return function(){var In=Object(Dt.b)(this,fe),vn=xe(this),An=vn+"";return vn==null&&(this.style.removeProperty(fe),An=vn=Object(Dt.b)(this,fe)),In===An?null:In===Qe&&An===mn?xn:(mn=An,xn=Ce(Qe=In,vn))}}(Pt,Ut,k(this,"style."+Pt,Bt))).each(function(fe,Ce){var xe,Qe,mn,xn,In="style."+Ce,vn="end."+In;return function(){var An=m(this,fe),Jn=An.on,dr=An.value[In]==null?xn||(xn=jt(Ce)):void 0;Jn===xe&&mn===dr||(Qe=(xe=Jn).copy()).on(vn,mn=dr),An.on=Qe}}(this._id,Pt)):this.styleTween(Pt,function(fe,Ce,xe){var Qe,mn,xn=xe+"";return function(){var In=Object(Dt.b)(this,fe);return In===xn?null:In===Qe?mn:mn=Ce(Qe=In,xe)}}(Pt,Ut,Bt),Vt).on("end.style."+Pt,null)},styleTween:function(Pt,Bt,Vt){var Ut="style."+(Pt+="");if(arguments.length<2)return(Ut=this.tween(Ut))&&Ut._value;if(Bt==null)return this.tween(Ut,null);if(typeof Bt!="function")throw new Error;return this.tween(Ut,ie(Pt,Bt,Vt==null?"":Vt))},text:function(Pt){return this.tween("text",typeof Pt=="function"?function(Bt){return function(){var Vt=Bt(this);this.textContent=Vt==null?"":Vt}}(k(this,"text",Pt)):function(Bt){return function(){this.textContent=Bt}}(Pt==null?"":Pt+""))},textTween:function(Pt){var Bt="text";if(arguments.length<1)return(Bt=this.tween(Bt))&&Bt._value;if(Pt==null)return this.tween(Bt,null);if(typeof Pt!="function")throw new Error;return this.tween(Bt,he(Pt))},remove:function(){return this.on("end.remove",(Pt=this._id,function(){var Bt=this.parentNode;for(var Vt in this.__transition)if(+Vt!==Pt)return;Bt&&Bt.removeChild(this)}));var Pt},tween:function(Pt,Bt){var Vt=this._id;if(Pt+="",arguments.length<2){for(var Ut,fe=g(this.node(),Vt).tween,Ce=0,xe=fe.length;Ce<xe;++Ce)if((Ut=fe[Ce]).name===Pt)return Ut.value;return null}return this.each((Bt==null?v:I)(Vt,Pt,Bt))},delay:function(Pt){var Bt=this._id;return arguments.length?this.each((typeof Pt=="function"?lt:ot)(Bt,Pt)):g(this.node(),Bt).delay},duration:function(Pt){var Bt=this._id;return arguments.length?this.each((typeof Pt=="function"?xt:dt)(Bt,Pt)):g(this.node(),Bt).duration},ease:function(Pt){var Bt=this._id;return arguments.length?this.each(vt(Bt,Pt)):g(this.node(),Bt).ease},end:function(){var Pt,Bt,Vt=this,Ut=Vt._id,fe=Vt.size();return new Promise(function(Ce,xe){var Qe={value:xe},mn={value:function(){--fe==0&&Ce()}};Vt.each(function(){var xn=m(this,Ut),In=xn.on;In!==Pt&&((Bt=(Pt=In).copy())._.cancel.push(Qe),Bt._.interrupt.push(Qe),Bt._.end.push(mn)),xn.on=Bt})})}};var un={time:null,delay:0,duration:250,ease:E(49).b};function te(Pt,Bt){for(var Vt;!(Vt=Pt.__transition)||!(Vt=Vt[Bt]);)if(!(Pt=Pt.parentNode))return un.time=d(),un;return Vt}at.b.prototype.interrupt=function(Pt){return this.each(function(){p(this,Pt)})},at.b.prototype.transition=function(Pt){var Bt,Vt;Pt instanceof Se?(Bt=Pt._id,Pt=Pt._name):(Bt=Ge(),(Vt=un).time=d(),Pt=Pt==null?null:Pt+"");for(var Ut=this._groups,fe=Ut.length,Ce=0;Ce<fe;++Ce)for(var xe,Qe=Ut[Ce],mn=Qe.length,xn=0;xn<mn;++xn)(xe=Qe[xn])&&w(xe,Pt,Bt,xn,Qe,Vt||te(xe,Bt));return new Se(Ut,this._parents,Pt,Bt)};var Zt=[null],ee=function(Pt,Bt){var Vt,Ut,fe=Pt.__transition;if(fe){for(Ut in Bt=Bt==null?null:Bt+"",fe)if((Vt=fe[Ut]).state>1&&Vt.name===Bt)return new Se([[Pt]],Zt,Bt,+Ut)}return null};E.d(_,"transition",function(){return ke}),E.d(_,"active",function(){return ee}),E.d(_,"interrupt",function(){return p})},function(Lt,_,E){"use strict";E.r(_);var U=E(56);E.d(_,"formatDefaultLocale",function(){return U.a}),E.d(_,"format",function(){return U.b}),E.d(_,"formatPrefix",function(){return U.c});var z=E(68);E.d(_,"formatLocale",function(){return z.a});var at=E(40);E.d(_,"formatSpecifier",function(){return at.b}),E.d(_,"FormatSpecifier",function(){return at.a});var J=E(80);E.d(_,"precisionFixed",function(){return J.a});var tt=E(81);E.d(_,"precisionPrefix",function(){return tt.a});var K=E(82);E.d(_,"precisionRound",function(){return K.a})},function(Lt,_,E){"use strict";var U;(U=function(){return{colorSchemas:{britecharts:["#6aedc7","#39c2c9","#ffce00","#ffa71a","#f866b9","#998ce3"],grey:["#F8F8FA","#EFF2F5","#D2D6DF","#C3C6CF","#ADB0B6","#666A73","#45494E","#363A43","#282C35"],orange:["#fcc870","#ffa71a","#fb8825","#f6682f","#db5a2c","#bf4c28","#a43b1c","#892a10","#f9e9c5"],blueGreen:["#ccf7f6","#70e4e0","#00d8d2","#00acaf","#007f8c","#005e66","#003c3f","#002d2f","#0d2223"],teal:["#ccfffe","#94f7f4","#00fff8","#1de1e1","#39c2c9","#2e9a9d","#227270","#1a5957","#133f3e"],green:["#edfff7","#d7ffef","#c0ffe7","#95f5d7","#6aedc7","#59c3a3","#479980","#34816a","#206953"],yellow:["#f9f2b3","#fbe986","#fce05a","#fed72d","#ffce00","#fcc11c","#f9b438","#eda629","#e09819"],pink:["#fdd1ea","#fb9cd2","#f866b9","#fc40b6","#ff1ab3","#e3239d","#c62c86","#a62073","#85135f"],purple:["#ddd6fc","#bbb1f0","#998ce3","#8e6bc1","#824a9e","#77337f","#6b1c60","#591650","#470f3f"],red:["#ffd8d4","#ffb5b0","#ff938c","#ff766c","#ff584c","#f04b42","#e03d38","#be2e29","#9c1e19"]},colorSchemasHuman:{britecharts:"Britecharts Default",grey:"Britecharts Grey",orange:"Orange",blueGreen:"Blue",teal:"Light Blue",green:"Green",yellow:"Yellow",pink:"Pink",purple:"Purple",red:"Red"},colorGradients:{greenBlue:["#39C7EA","#4CDCBA"],orangePink:["#FBC670","#F766B8"],bluePurple:["#3DC3C9","#824a9e"]},colorGradientsHuman:{greenBlue:"Green to Blue",orangePink:"Orange to Pink",bluePurple:"Blue to Purple"},singleColors:{aloeGreen:["#7bdcc0"],greenColor:["#6aedc7"],blueColor:["#39c2c9"],yellowColor:["#ffce00"],orangeColor:["#ffa71a"],pinkColor:["#f866b9"],purpleColor:["#998ce3"]},singleColorsHuman:{aloeGreen:"Aloe Green",greenColor:"Green",blueColor:"Blue",yellowColor:"Yellow",orangeColor:"Orange",pinkColor:"Pink",purpleColor:"Purple"}}}.call(_,E,_,Lt))===void 0||(Lt.exports=U)},function(Lt,_,E){"use strict";function U(I){return+I}function z(I){return I*I}function at(I){return I*(2-I)}function J(I){return((I*=2)<=1?I*I:--I*(2-I)+1)/2}E.r(_);var tt=E(49),K=function I(k){function T(G){return Math.pow(G,k)}return k=+k,T.exponent=I,T}(3),Z=function I(k){function T(G){return 1-Math.pow(1-G,k)}return k=+k,T.exponent=I,T}(3),Q=function I(k){function T(G){return((G*=2)<=1?Math.pow(G,k):2-Math.pow(2-G,k))/2}return k=+k,T.exponent=I,T}(3),V=Math.PI,X=V/2;function j(I){return 1-Math.cos(I*X)}function B(I){return Math.sin(I*X)}function d(I){return(1-Math.cos(V*I))/2}function R(I){return Math.pow(2,10*I-10)}function P(I){return 1-Math.pow(2,-10*I)}function s(I){return((I*=2)<=1?Math.pow(2,10*I-10):2-Math.pow(2,10-10*I))/2}function x(I){return 1-Math.sqrt(1-I*I)}function b(I){return Math.sqrt(1- --I*I)}function o(I){return((I*=2)<=1?1-Math.sqrt(1-I*I):Math.sqrt(1-(I-=2)*I)+1)/2}var u=7.5625;function C(I){return 1-M(1-I)}function M(I){return(I=+I)<.36363636363636365?u*I*I:I<.7272727272727273?u*(I-=.5454545454545454)*I+.75:I<.9090909090909091?u*(I-=.8181818181818182)*I+.9375:u*(I-=.9545454545454546)*I+.984375}function w(I){return((I*=2)<=1?1-M(1-I):M(I-1)+1)/2}var y=function I(k){function T(G){return G*G*((k+1)*G-k)}return k=+k,T.overshoot=I,T}(1.70158),m=function I(k){function T(G){return--G*G*((k+1)*G+k)+1}return k=+k,T.overshoot=I,T}(1.70158),g=function I(k){function T(G){return((G*=2)<1?G*G*((k+1)*G-k):(G-=2)*G*((k+1)*G+k)+2)/2}return k=+k,T.overshoot=I,T}(1.70158),p=2*Math.PI,l=function I(k,T){var G=Math.asin(1/(k=Math.max(1,k)))*(T/=p);function st(et){return k*Math.pow(2,10*--et)*Math.sin((G-et)/T)}return st.amplitude=function(et){return I(et,T*p)},st.period=function(et){return I(k,et)},st}(1,.3),f=function I(k,T){var G=Math.asin(1/(k=Math.max(1,k)))*(T/=p);function st(et){return 1-k*Math.pow(2,-10*(et=+et))*Math.sin((et+G)/T)}return st.amplitude=function(et){return I(et,T*p)},st.period=function(et){return I(k,et)},st}(1,.3),v=function I(k,T){var G=Math.asin(1/(k=Math.max(1,k)))*(T/=p);function st(et){return((et=2*et-1)<0?k*Math.pow(2,10*et)*Math.sin((G-et)/T):2-k*Math.pow(2,-10*et)*Math.sin((G+et)/T))/2}return st.amplitude=function(et){return I(et,T*p)},st.period=function(et){return I(k,et)},st}(1,.3);E.d(_,"easeLinear",function(){return U}),E.d(_,"easeQuad",function(){return J}),E.d(_,"easeQuadIn",function(){return z}),E.d(_,"easeQuadOut",function(){return at}),E.d(_,"easeQuadInOut",function(){return J}),E.d(_,"easeCubic",function(){return tt.b}),E.d(_,"easeCubicIn",function(){return tt.a}),E.d(_,"easeCubicOut",function(){return tt.c}),E.d(_,"easeCubicInOut",function(){return tt.b}),E.d(_,"easePoly",function(){return Q}),E.d(_,"easePolyIn",function(){return K}),E.d(_,"easePolyOut",function(){return Z}),E.d(_,"easePolyInOut",function(){return Q}),E.d(_,"easeSin",function(){return d}),E.d(_,"easeSinIn",function(){return j}),E.d(_,"easeSinOut",function(){return B}),E.d(_,"easeSinInOut",function(){return d}),E.d(_,"easeExp",function(){return s}),E.d(_,"easeExpIn",function(){return R}),E.d(_,"easeExpOut",function(){return P}),E.d(_,"easeExpInOut",function(){return s}),E.d(_,"easeCircle",function(){return o}),E.d(_,"easeCircleIn",function(){return x}),E.d(_,"easeCircleOut",function(){return b}),E.d(_,"easeCircleInOut",function(){return o}),E.d(_,"easeBounce",function(){return M}),E.d(_,"easeBounceIn",function(){return C}),E.d(_,"easeBounceOut",function(){return M}),E.d(_,"easeBounceInOut",function(){return w}),E.d(_,"easeBack",function(){return g}),E.d(_,"easeBackIn",function(){return y}),E.d(_,"easeBackOut",function(){return m}),E.d(_,"easeBackInOut",function(){return g}),E.d(_,"easeElastic",function(){return f}),E.d(_,"easeElasticIn",function(){return l}),E.d(_,"easeElasticOut",function(){return f}),E.d(_,"easeElasticInOut",function(){return v})},function(Lt,_,E){"use strict";E.r(_);var U=E(0);function z(we,Be){switch(arguments.length){case 0:break;case 1:this.range(we);break;default:this.range(Be).domain(we)}return this}function at(we,Be){switch(arguments.length){case 0:break;case 1:this.interpolator(we);break;default:this.interpolator(Be).domain(we)}return this}var J=E(25),tt=Array.prototype,K=tt.map,Z=tt.slice,Q={name:"implicit"};function V(){var we=Object(J.map)(),Be=[],Ue=[],Le=Q;function je(en){var Mn=en+"",Ae=we.get(Mn);if(!Ae){if(Le!==Q)return Le;we.set(Mn,Ae=Be.push(en))}return Ue[(Ae-1)%Ue.length]}return je.domain=function(en){if(!arguments.length)return Be.slice();Be=[],we=Object(J.map)();for(var Mn,Ae,an=-1,_n=en.length;++an<_n;)we.has(Ae=(Mn=en[an])+"")||we.set(Ae,Be.push(Mn));return je},je.range=function(en){return arguments.length?(Ue=Z.call(en),je):Ue.slice()},je.unknown=function(en){return arguments.length?(Le=en,je):Le},je.copy=function(){return V(Be,Ue).unknown(Le)},z.apply(je,arguments),je}function X(){var we,Be,Ue=V().unknown(void 0),Le=Ue.domain,je=Ue.range,en=[0,1],Mn=!1,Ae=0,an=0,_n=.5;function Oe(){var Sn=Le().length,sn=en[1]<en[0],yn=en[sn-0],En=en[1-sn];we=(En-yn)/Math.max(1,Sn-Ae+2*an),Mn&&(we=Math.floor(we)),yn+=(En-yn-we*(Sn-Ae))*_n,Be=we*(1-Ae),Mn&&(yn=Math.round(yn),Be=Math.round(Be));var wn=Object(U.range)(Sn).map(function(fr){return yn+we*fr});return je(sn?wn.reverse():wn)}return delete Ue.unknown,Ue.domain=function(Sn){return arguments.length?(Le(Sn),Oe()):Le()},Ue.range=function(Sn){return arguments.length?(en=[+Sn[0],+Sn[1]],Oe()):en.slice()},Ue.rangeRound=function(Sn){return en=[+Sn[0],+Sn[1]],Mn=!0,Oe()},Ue.bandwidth=function(){return Be},Ue.step=function(){return we},Ue.round=function(Sn){return arguments.length?(Mn=!!Sn,Oe()):Mn},Ue.padding=function(Sn){return arguments.length?(Ae=Math.min(1,an=+Sn),Oe()):Ae},Ue.paddingInner=function(Sn){return arguments.length?(Ae=Math.min(1,Sn),Oe()):Ae},Ue.paddingOuter=function(Sn){return arguments.length?(an=+Sn,Oe()):an},Ue.align=function(Sn){return arguments.length?(_n=Math.max(0,Math.min(1,Sn)),Oe()):_n},Ue.copy=function(){return X(Le(),en).round(Mn).paddingInner(Ae).paddingOuter(an).align(_n)},z.apply(Oe(),arguments)}function j(we){var Be=we.copy;return we.padding=we.paddingOuter,delete we.paddingInner,delete we.paddingOuter,we.copy=function(){return j(Be())},we}function B(){return j(X.apply(null,arguments).paddingInner(1))}var d=E(41),R=E(14),P=E(83),s=function(we){return+we},x=[0,1];function b(we){return we}function o(we,Be){return(Be-=we=+we)?function(Le){return(Le-we)/Be}:(Ue=isNaN(Be)?NaN:.5,function(){return Ue});var Ue}function u(we){var Be,Ue=we[0],Le=we[we.length-1];return Ue>Le&&(Be=Ue,Ue=Le,Le=Be),function(je){return Math.max(Ue,Math.min(Le,je))}}function C(we,Be,Ue){var Le=we[0],je=we[1],en=Be[0],Mn=Be[1];return je<Le?(Le=o(je,Le),en=Ue(Mn,en)):(Le=o(Le,je),en=Ue(en,Mn)),function(Ae){return en(Le(Ae))}}function M(we,Be,Ue){var Le=Math.min(we.length,Be.length)-1,je=new Array(Le),en=new Array(Le),Mn=-1;for(we[Le]<we[0]&&(we=we.slice().reverse(),Be=Be.slice().reverse());++Mn<Le;)je[Mn]=o(we[Mn],we[Mn+1]),en[Mn]=Ue(Be[Mn],Be[Mn+1]);return function(Ae){var an=Object(U.bisect)(we,Ae,1,Le)-1;return en[an](je[an](Ae))}}function w(we,Be){return Be.domain(we.domain()).range(we.range()).interpolate(we.interpolate()).clamp(we.clamp()).unknown(we.unknown())}function y(){var we,Be,Ue,Le,je,en,Mn=x,Ae=x,an=d.a,_n=b;function Oe(){return Le=Math.min(Mn.length,Ae.length)>2?M:C,je=en=null,Sn}function Sn(sn){return isNaN(sn=+sn)?Ue:(je||(je=Le(Mn.map(we),Ae,an)))(we(_n(sn)))}return Sn.invert=function(sn){return _n(Be((en||(en=Le(Ae,Mn.map(we),R.a)))(sn)))},Sn.domain=function(sn){return arguments.length?(Mn=K.call(sn,s),_n===b||(_n=u(Mn)),Oe()):Mn.slice()},Sn.range=function(sn){return arguments.length?(Ae=Z.call(sn),Oe()):Ae.slice()},Sn.rangeRound=function(sn){return Ae=Z.call(sn),an=P.a,Oe()},Sn.clamp=function(sn){return arguments.length?(_n=sn?u(Mn):b,Sn):_n!==b},Sn.interpolate=function(sn){return arguments.length?(an=sn,Oe()):an},Sn.unknown=function(sn){return arguments.length?(Ue=sn,Sn):Ue},function(sn,yn){return we=sn,Be=yn,Oe()}}function m(we,Be){return y()(we,Be)}var g=E(40),p=E(81),l=E(56),f=E(82),v=E(80),I=function(we,Be,Ue,Le){var je,en=Object(U.tickStep)(we,Be,Ue);switch((Le=Object(g.b)(Le==null?",f":Le)).type){case"s":var Mn=Math.max(Math.abs(we),Math.abs(Be));return Le.precision!=null||isNaN(je=Object(p.a)(en,Mn))||(Le.precision=je),Object(l.c)(Le,Mn);case"":case"e":case"g":case"p":case"r":Le.precision!=null||isNaN(je=Object(f.a)(en,Math.max(Math.abs(we),Math.abs(Be))))||(Le.precision=je-(Le.type==="e"));break;case"f":case"%":Le.precision!=null||isNaN(je=Object(v.a)(en))||(Le.precision=je-2*(Le.type==="%"))}return Object(l.b)(Le)};function k(we){var Be=we.domain;return we.ticks=function(Ue){var Le=Be();return Object(U.ticks)(Le[0],Le[Le.length-1],Ue==null?10:Ue)},we.tickFormat=function(Ue,Le){var je=Be();return I(je[0],je[je.length-1],Ue==null?10:Ue,Le)},we.nice=function(Ue){Ue==null&&(Ue=10);var Le,je=Be(),en=0,Mn=je.length-1,Ae=je[en],an=je[Mn];return an<Ae&&(Le=Ae,Ae=an,an=Le,Le=en,en=Mn,Mn=Le),(Le=Object(U.tickIncrement)(Ae,an,Ue))>0?(Ae=Math.floor(Ae/Le)*Le,an=Math.ceil(an/Le)*Le,Le=Object(U.tickIncrement)(Ae,an,Ue)):Le<0&&(Ae=Math.ceil(Ae*Le)/Le,an=Math.floor(an*Le)/Le,Le=Object(U.tickIncrement)(Ae,an,Ue)),Le>0?(je[en]=Math.floor(Ae/Le)*Le,je[Mn]=Math.ceil(an/Le)*Le,Be(je)):Le<0&&(je[en]=Math.ceil(Ae*Le)/Le,je[Mn]=Math.floor(an*Le)/Le,Be(je)),we},we}function T(){var we=m(b,b);return we.copy=function(){return w(we,T())},z.apply(we,arguments),k(we)}function G(we){var Be;function Ue(Le){return isNaN(Le=+Le)?Be:Le}return Ue.invert=Ue,Ue.domain=Ue.range=function(Le){return arguments.length?(we=K.call(Le,s),Ue):we.slice()},Ue.unknown=function(Le){return arguments.length?(Be=Le,Ue):Be},Ue.copy=function(){return G(we).unknown(Be)},we=arguments.length?K.call(we,s):[0,1],k(Ue)}var st=function(we,Be){var Ue,Le=0,je=(we=we.slice()).length-1,en=we[Le],Mn=we[je];return Mn<en&&(Ue=Le,Le=je,je=Ue,Ue=en,en=Mn,Mn=Ue),we[Le]=Be.floor(en),we[je]=Be.ceil(Mn),we};function et(we){return Math.log(we)}function ft(we){return Math.exp(we)}function pt(we){return-Math.log(-we)}function St(we){return-Math.exp(-we)}function Ct(we){return isFinite(we)?+("1e"+we):we<0?0:we}function L(we){return function(Be){return-we(-Be)}}function q(we){var Be,Ue,Le=we(et,ft),je=Le.domain,en=10;function Mn(){return Be=function(Ae){return Ae===Math.E?Math.log:Ae===10&&Math.log10||Ae===2&&Math.log2||(Ae=Math.log(Ae),function(an){return Math.log(an)/Ae})}(en),Ue=function(Ae){return Ae===10?Ct:Ae===Math.E?Math.exp:function(an){return Math.pow(Ae,an)}}(en),je()[0]<0?(Be=L(Be),Ue=L(Ue),we(pt,St)):we(et,ft),Le}return Le.base=function(Ae){return arguments.length?(en=+Ae,Mn()):en},Le.domain=function(Ae){return arguments.length?(je(Ae),Mn()):je()},Le.ticks=function(Ae){var an,_n=je(),Oe=_n[0],Sn=_n[_n.length-1];(an=Sn<Oe)&&(wn=Oe,Oe=Sn,Sn=wn);var sn,yn,En,wn=Be(Oe),fr=Be(Sn),nr=Ae==null?10:+Ae,pr=[];if(!(en%1)&&fr-wn<nr){if(wn=Math.round(wn)-1,fr=Math.round(fr)+1,Oe>0){for(;wn<fr;++wn)for(yn=1,sn=Ue(wn);yn<en;++yn)if(!((En=sn*yn)<Oe)){if(En>Sn)break;pr.push(En)}}else for(;wn<fr;++wn)for(yn=en-1,sn=Ue(wn);yn>=1;--yn)if(!((En=sn*yn)<Oe)){if(En>Sn)break;pr.push(En)}}else pr=Object(U.ticks)(wn,fr,Math.min(fr-wn,nr)).map(Ue);return an?pr.reverse():pr},Le.tickFormat=function(Ae,an){if(an==null&&(an=en===10?".0e":","),typeof an!="function"&&(an=Object(l.b)(an)),Ae===1/0)return an;Ae==null&&(Ae=10);var _n=Math.max(1,en*Ae/Le.ticks().length);return function(Oe){var Sn=Oe/Ue(Math.round(Be(Oe)));return Sn*en<en-.5&&(Sn*=en),Sn<=_n?an(Oe):""}},Le.nice=function(){return je(st(je(),{floor:function(Ae){return Ue(Math.floor(Be(Ae)))},ceil:function(Ae){return Ue(Math.ceil(Be(Ae)))}}))},Le}function rt(){var we=q(y()).domain([1,10]);return we.copy=function(){return w(we,rt()).base(we.base())},z.apply(we,arguments),we}function it(we){return function(Be){return Math.sign(Be)*Math.log1p(Math.abs(Be/we))}}function D(we){return function(Be){return Math.sign(Be)*Math.expm1(Math.abs(Be))*we}}function O(we){var Be=1,Ue=we(it(Be),D(Be));return Ue.constant=function(Le){return arguments.length?we(it(Be=+Le),D(Be)):Be},k(Ue)}function Y(){var we=O(y());return we.copy=function(){return w(we,Y()).constant(we.constant())},z.apply(we,arguments)}function lt(we){return function(Be){return Be<0?-Math.pow(-Be,we):Math.pow(Be,we)}}function ot(we){return we<0?-Math.sqrt(-we):Math.sqrt(we)}function xt(we){return we<0?-we*we:we*we}function dt(we){var Be=we(b,b),Ue=1;function Le(){return Ue===1?we(b,b):Ue===.5?we(ot,xt):we(lt(Ue),lt(1/Ue))}return Be.exponent=function(je){return arguments.length?(Ue=+je,Le()):Ue},k(Be)}function vt(){var we=dt(y());return we.copy=function(){return w(we,vt()).exponent(we.exponent())},z.apply(we,arguments),we}function Et(){return vt.apply(null,arguments).exponent(.5)}function kt(){var we,Be=[],Ue=[],Le=[];function je(){var Mn=0,Ae=Math.max(1,Ue.length);for(Le=new Array(Ae-1);++Mn<Ae;)Le[Mn-1]=Object(U.quantile)(Be,Mn/Ae);return en}function en(Mn){return isNaN(Mn=+Mn)?we:Ue[Object(U.bisect)(Le,Mn)]}return en.invertExtent=function(Mn){var Ae=Ue.indexOf(Mn);return Ae<0?[NaN,NaN]:[Ae>0?Le[Ae-1]:Be[0],Ae<Le.length?Le[Ae]:Be[Be.length-1]]},en.domain=function(Mn){if(!arguments.length)return Be.slice();Be=[];for(var Ae,an=0,_n=Mn.length;an<_n;++an)(Ae=Mn[an])==null||isNaN(Ae=+Ae)||Be.push(Ae);return Be.sort(U.ascending),je()},en.range=function(Mn){return arguments.length?(Ue=Z.call(Mn),je()):Ue.slice()},en.unknown=function(Mn){return arguments.length?(we=Mn,en):we},en.quantiles=function(){return Le.slice()},en.copy=function(){return kt().domain(Be).range(Ue).unknown(we)},z.apply(en,arguments)}function Nt(){var we,Be=0,Ue=1,Le=1,je=[.5],en=[0,1];function Mn(an){return an<=an?en[Object(U.bisect)(je,an,0,Le)]:we}function Ae(){var an=-1;for(je=new Array(Le);++an<Le;)je[an]=((an+1)*Ue-(an-Le)*Be)/(Le+1);return Mn}return Mn.domain=function(an){return arguments.length?(Be=+an[0],Ue=+an[1],Ae()):[Be,Ue]},Mn.range=function(an){return arguments.length?(Le=(en=Z.call(an)).length-1,Ae()):en.slice()},Mn.invertExtent=function(an){var _n=en.indexOf(an);return _n<0?[NaN,NaN]:_n<1?[Be,je[0]]:_n>=Le?[je[Le-1],Ue]:[je[_n-1],je[_n]]},Mn.unknown=function(an){return arguments.length&&(we=an),Mn},Mn.thresholds=function(){return je.slice()},Mn.copy=function(){return Nt().domain([Be,Ue]).range(en).unknown(we)},z.apply(k(Mn),arguments)}function gt(){var we,Be=[.5],Ue=[0,1],Le=1;function je(en){return en<=en?Ue[Object(U.bisect)(Be,en,0,Le)]:we}return je.domain=function(en){return arguments.length?(Be=Z.call(en),Le=Math.min(Be.length,Ue.length-1),je):Be.slice()},je.range=function(en){return arguments.length?(Ue=Z.call(en),Le=Math.min(Be.length,Ue.length-1),je):Ue.slice()},je.invertExtent=function(en){var Mn=Ue.indexOf(en);return[Be[Mn-1],Be[Mn]]},je.unknown=function(en){return arguments.length?(we=en,je):we},je.copy=function(){return gt().domain(Be).range(Ue).unknown(we)},z.apply(je,arguments)}var wt=E(33),Dt=E(69),jt=E(5),Jt=E(53),ie=E(70),$t=E(71),he=E(51),ve=E(52),Se=E(21);function ke(we){return new Date(we)}function Ge(we){return we instanceof Date?+we:+new Date(+we)}function on(we,Be,Ue,Le,je,en,Mn,Ae,an){var _n=m(b,b),Oe=_n.invert,Sn=_n.domain,sn=an(".%L"),yn=an(":%S"),En=an("%I:%M"),wn=an("%I %p"),fr=an("%a %d"),nr=an("%b %d"),pr=an("%B"),gr=an("%Y"),ir=[[Mn,1,1e3],[Mn,5,5e3],[Mn,15,15e3],[Mn,30,3e4],[en,1,6e4],[en,5,3e5],[en,15,9e5],[en,30,18e5],[je,1,36e5],[je,3,108e5],[je,6,216e5],[je,12,432e5],[Le,1,864e5],[Le,2,1728e5],[Ue,1,6048e5],[Be,1,2592e6],[Be,3,7776e6],[we,1,31536e6]];function Lr(ur){return(Mn(ur)<ur?sn:en(ur)<ur?yn:je(ur)<ur?En:Le(ur)<ur?wn:Be(ur)<ur?Ue(ur)<ur?fr:nr:we(ur)<ur?pr:gr)(ur)}function Br(ur,Bn,Rr,di){if(ur==null&&(ur=10),typeof ur=="number"){var li=Math.abs(Rr-Bn)/ur,Jr=Object(U.bisector)(function(Mr){return Mr[2]}).right(ir,li);Jr===ir.length?(di=Object(U.tickStep)(Bn/31536e6,Rr/31536e6,ur),ur=we):Jr?(di=(Jr=ir[li/ir[Jr-1][2]<ir[Jr][2]/li?Jr-1:Jr])[1],ur=Jr[0]):(di=Math.max(Object(U.tickStep)(Bn,Rr,ur),1),ur=Ae)}return di==null?ur:ur.every(di)}return _n.invert=function(ur){return new Date(Oe(ur))},_n.domain=function(ur){return arguments.length?Sn(K.call(ur,Ge)):Sn().map(ke)},_n.ticks=function(ur,Bn){var Rr,di=Sn(),li=di[0],Jr=di[di.length-1],Mr=Jr<li;return Mr&&(Rr=li,li=Jr,Jr=Rr),Rr=(Rr=Br(ur,li,Jr,Bn))?Rr.range(li,Jr+1):[],Mr?Rr.reverse():Rr},_n.tickFormat=function(ur,Bn){return Bn==null?Lr:an(Bn)},_n.nice=function(ur,Bn){var Rr=Sn();return(ur=Br(ur,Rr[0],Rr[Rr.length-1],Bn))?Sn(st(Rr,ur)):_n},_n.copy=function(){return w(_n,on(we,Be,Ue,Le,je,en,Mn,Ae,an))},_n}var un=function(){return z.apply(on(wt.a,Dt.a,jt.g,Jt.b,ie.a,$t.a,he.a,ve.a,Se.b).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},te=E(34),Zt=E(72),ee=E(6),Pt=E(54),Bt=E(73),Vt=E(74),Ut=function(){return z.apply(on(te.a,Zt.a,ee.g,Pt.a,Bt.a,Vt.a,he.a,ve.a,Se.d).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)};function fe(){var we,Be,Ue,Le,je,en=0,Mn=1,Ae=b,an=!1;function _n(Oe){return isNaN(Oe=+Oe)?je:Ae(Ue===0?.5:(Oe=(Le(Oe)-we)*Ue,an?Math.max(0,Math.min(1,Oe)):Oe))}return _n.domain=function(Oe){return arguments.length?(we=Le(en=+Oe[0]),Be=Le(Mn=+Oe[1]),Ue=we===Be?0:1/(Be-we),_n):[en,Mn]},_n.clamp=function(Oe){return arguments.length?(an=!!Oe,_n):an},_n.interpolator=function(Oe){return arguments.length?(Ae=Oe,_n):Ae},_n.unknown=function(Oe){return arguments.length?(je=Oe,_n):je},function(Oe){return Le=Oe,we=Oe(en),Be=Oe(Mn),Ue=we===Be?0:1/(Be-we),_n}}function Ce(we,Be){return Be.domain(we.domain()).interpolator(we.interpolator()).clamp(we.clamp()).unknown(we.unknown())}function xe(){var we=k(fe()(b));return we.copy=function(){return Ce(we,xe())},at.apply(we,arguments)}function Qe(){var we=q(fe()).domain([1,10]);return we.copy=function(){return Ce(we,Qe()).base(we.base())},at.apply(we,arguments)}function mn(){var we=O(fe());return we.copy=function(){return Ce(we,mn()).constant(we.constant())},at.apply(we,arguments)}function xn(){var we=dt(fe());return we.copy=function(){return Ce(we,xn()).exponent(we.exponent())},at.apply(we,arguments)}function In(){return xn.apply(null,arguments).exponent(.5)}function vn(){var we=[],Be=b;function Ue(Le){if(!isNaN(Le=+Le))return Be((Object(U.bisect)(we,Le)-1)/(we.length-1))}return Ue.domain=function(Le){if(!arguments.length)return we.slice();we=[];for(var je,en=0,Mn=Le.length;en<Mn;++en)(je=Le[en])==null||isNaN(je=+je)||we.push(je);return we.sort(U.ascending),Ue},Ue.interpolator=function(Le){return arguments.length?(Be=Le,Ue):Be},Ue.copy=function(){return vn(Be).domain(we)},at.apply(Ue,arguments)}function An(){var we,Be,Ue,Le,je,en,Mn,Ae=0,an=.5,_n=1,Oe=b,Sn=!1;function sn(yn){return isNaN(yn=+yn)?Mn:(yn=.5+((yn=+en(yn))-Be)*(yn<Be?Le:je),Oe(Sn?Math.max(0,Math.min(1,yn)):yn))}return sn.domain=function(yn){return arguments.length?(we=en(Ae=+yn[0]),Be=en(an=+yn[1]),Ue=en(_n=+yn[2]),Le=we===Be?0:.5/(Be-we),je=Be===Ue?0:.5/(Ue-Be),sn):[Ae,an,_n]},sn.clamp=function(yn){return arguments.length?(Sn=!!yn,sn):Sn},sn.interpolator=function(yn){return arguments.length?(Oe=yn,sn):Oe},sn.unknown=function(yn){return arguments.length?(Mn=yn,sn):Mn},function(yn){return en=yn,we=yn(Ae),Be=yn(an),Ue=yn(_n),Le=we===Be?0:.5/(Be-we),je=Be===Ue?0:.5/(Ue-Be),sn}}function Jn(){var we=k(An()(b));return we.copy=function(){return Ce(we,Jn())},at.apply(we,arguments)}function dr(){var we=q(An()).domain([.1,1,10]);return we.copy=function(){return Ce(we,dr()).base(we.base())},at.apply(we,arguments)}function be(){var we=O(An());return we.copy=function(){return Ce(we,be()).constant(we.constant())},at.apply(we,arguments)}function Fe(){var we=dt(An());return we.copy=function(){return Ce(we,Fe()).exponent(we.exponent())},at.apply(we,arguments)}function Xe(){return Fe.apply(null,arguments).exponent(.5)}E.d(_,"scaleBand",function(){return X}),E.d(_,"scalePoint",function(){return B}),E.d(_,"scaleIdentity",function(){return G}),E.d(_,"scaleLinear",function(){return T}),E.d(_,"scaleLog",function(){return rt}),E.d(_,"scaleSymlog",function(){return Y}),E.d(_,"scaleOrdinal",function(){return V}),E.d(_,"scaleImplicit",function(){return Q}),E.d(_,"scalePow",function(){return vt}),E.d(_,"scaleSqrt",function(){return Et}),E.d(_,"scaleQuantile",function(){return kt}),E.d(_,"scaleQuantize",function(){return Nt}),E.d(_,"scaleThreshold",function(){return gt}),E.d(_,"scaleTime",function(){return un}),E.d(_,"scaleUtc",function(){return Ut}),E.d(_,"scaleSequential",function(){return xe}),E.d(_,"scaleSequentialLog",function(){return Qe}),E.d(_,"scaleSequentialPow",function(){return xn}),E.d(_,"scaleSequentialSqrt",function(){return In}),E.d(_,"scaleSequentialSymlog",function(){return mn}),E.d(_,"scaleSequentialQuantile",function(){return vn}),E.d(_,"scaleDiverging",function(){return Jn}),E.d(_,"scaleDivergingLog",function(){return dr}),E.d(_,"scaleDivergingPow",function(){return Fe}),E.d(_,"scaleDivergingSqrt",function(){return Xe}),E.d(_,"scaleDivergingSymlog",function(){return be}),E.d(_,"tickFormat",function(){return I})},function(Lt,_,E){"use strict";E.r(_);var U=E(79);E.d(_,"dispatch",function(){return U.a})},function(Lt,_,E){"use strict";_.a=function(U,z){return U=+U,z=+z,function(at){return U*(1-at)+z*at}}},function(Lt,_,E){"use strict";function U(z,at){var J=Object.create(z.prototype);for(var tt in at)J[tt]=at[tt];return J}E.d(_,"b",function(){return U}),_.a=function(z,at,J){z.prototype=at.prototype=J,J.constructor=z}},function(Lt,_,E){"use strict";E.r(_);var U=E(7);E.d(_,"color",function(){return U.e}),E.d(_,"rgb",function(){return U.g}),E.d(_,"hsl",function(){return U.f});var z=E(50);E.d(_,"lab",function(){return z.a}),E.d(_,"hcl",function(){return z.c}),E.d(_,"lch",function(){return z.d}),E.d(_,"gray",function(){return z.b});var at=E(78);E.d(_,"cubehelix",function(){return at.a})},function(Lt,_,E){"use strict";var U;(U=function(z){var at=E(91),J=E(10).colorSchemas,tt=(E(35),E(96)),K=typeof window!="undefined"&&window.btoa;K||(K=E(97).encode);var Z={styleClass:"britechartStyle",defaultFilename:"britechart.png",chartBackground:"#ffffff",imageSourceBase:"data:image/svg+xml;base64,",titleFontSize:"36px",titleFontFamily:"'Avenir Next', sans-serif",titleTopOffset:25,titleLeftOffset:10,get styleBackgroundString(){return"<style>svg{background:"+this.chartBackground+";padding: 20px;}</style>"}};function Q(d,R){if(d){d.attr("version",1.1).attr("xmlns","http://www.w3.org/2000/svg");var P=tt.initializeSerializer()(d.node());return P=function(s){return navigator.userAgent.search("FireFox")>-1?s.replace(/url.*&quot;\)/,'url(&quot;linearGradient[id*="-gradient-"]&quot;);'):s}(P),P=function(s){return s.replace(">",">"+Z.styleBackgroundString)}(P=B.call(this,P,R,parseInt(d.attr("width"),10)))}}function V(d){var R=new Image;return R.src=""+Z.imageSourceBase+K(encodeURIComponent(d).replace(/%([0-9A-F]{2})/g,function(P,s){return String.fromCharCode("0x"+s)})),R}function X(d,R){return R.getContext("2d").drawImage(d,0,0),R}function j(d,R,P){P.preventDefault(),function(s){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z.defaultFilename,b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"image/png",o=s.toDataURL(b),u=document.createElement("a");u.href=o,u.download=x,document.body.appendChild(u),u.click(),document.body.removeChild(u)}(X(this,d),R)}function B(d,R,P){if(!R||!P)return d;var s=J.grey;return d=d.replace(/<g/,'<text x="'+this.margin().left+'" y="'+Z.titleTopOffset+'" font-family="'+Z.titleFontFamily+'" font-size="'+Z.titleFontSize+'" fill="'+s[6]+'"> '+R+" </text><g ")}return{exportChart:function(d,R,P){var s=Q.call(this,d,P),x=function(o,u){var C=document.createElement("canvas");return C.height=u,C.width=o,C}(this.width(),this.height());if(navigator.msSaveOrOpenBlob)return at(x,s,{log:!1,ignoreMouse:!0}),navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob(x.msToBlob(),R);var b=V(s);b.onload=j.bind(b,x,R)},convertSvgToHtml:Q,createImage:V,drawImageOnCanvas:X}}.call(_,E,_,Lt))===void 0||(Lt.exports=U)},function(Lt,_,E){"use strict";var U;(U=function(){return{bar:`
2
2
  <svg class="load-state bar-load-state" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 711 325">
3
3
 
4
4
  <defs>
@@ -436,7 +436,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof U.getDerivedStat
436
436
  * LICENSE.md file in the root directory of this source tree.
437
437
  *
438
438
  * @license MIT
439
- */function U(){return U=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},U.apply(this,arguments)}var z;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(z||(z={}));const at="popstate";function J(t){t===void 0&&(t={});let{initialEntries:e=["/"],initialIndex:n,v5Compat:i=!1}=t,c;c=e.map((Yt,re)=>_t(Yt,typeof Yt=="string"?null:Yt.state,re===0?"default":void 0));let S=ut(n==null?c.length-1:n),F=z.Pop,nt=null;function ut(Yt){return Math.min(Math.max(Yt,0),c.length-1)}function yt(){return c[S]}function _t(Yt,re,ue){re===void 0&&(re=null);let oe=j(c?yt().pathname:"/",Yt,re,ue);return Q(oe.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(Yt)),oe}function zt(Yt){return typeof Yt=="string"?Yt:B(Yt)}return{get index(){return S},get action(){return F},get location(){return yt()},createHref:zt,createURL(Yt){return new URL(zt(Yt),"http://localhost")},encodeLocation(Yt){let re=typeof Yt=="string"?d(Yt):Yt;return{pathname:re.pathname||"",search:re.search||"",hash:re.hash||""}},push(Yt,re){F=z.Push;let ue=_t(Yt,re);S+=1,c.splice(S,c.length,ue),i&&nt&&nt({action:F,location:ue,delta:1})},replace(Yt,re){F=z.Replace;let ue=_t(Yt,re);c[S]=ue,i&&nt&&nt({action:F,location:ue,delta:0})},go(Yt){F=z.Pop;let re=ut(S+Yt),ue=c[re];S=re,nt&&nt({action:F,location:ue,delta:Yt})},listen(Yt){return nt=Yt,()=>{nt=null}}}}function tt(t){t===void 0&&(t={});function e(i,c){let{pathname:S,search:F,hash:nt}=i.location;return j("",{pathname:S,search:F,hash:nt},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function n(i,c){return typeof c=="string"?c:B(c)}return R(e,n,null,t)}function K(t){t===void 0&&(t={});function e(c,S){let{pathname:F="/",search:nt="",hash:ut=""}=d(c.location.hash.substr(1));return!F.startsWith("/")&&!F.startsWith(".")&&(F="/"+F),j("",{pathname:F,search:nt,hash:ut},S.state&&S.state.usr||null,S.state&&S.state.key||"default")}function n(c,S){let F=c.document.querySelector("base"),nt="";if(F&&F.getAttribute("href")){let ut=c.location.href,yt=ut.indexOf("#");nt=yt===-1?ut:ut.slice(0,yt)}return nt+"#"+(typeof S=="string"?S:B(S))}function i(c,S){Q(c.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(S)+")")}return R(e,n,i,t)}function Z(t,e){if(t===!1||t===null||typeof t=="undefined")throw new Error(e)}function Q(t,e){if(!t){typeof console!="undefined"&&console.warn(e);try{throw new Error(e)}catch(n){}}}function V(){return Math.random().toString(36).substr(2,8)}function X(t,e){return{usr:t.state,key:t.key,idx:e}}function j(t,e,n,i){return n===void 0&&(n=null),U({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?d(e):e,{state:n,key:e&&e.key||i||V()})}function B(t){let{pathname:e="/",search:n="",hash:i=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function d(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}function R(t,e,n,i){i===void 0&&(i={});let{window:c=document.defaultView,v5Compat:S=!1}=i,F=c.history,nt=z.Pop,ut=null,yt=_t();yt==null&&(yt=0,F.replaceState(U({},F.state,{idx:yt}),""));function _t(){return(F.state||{idx:null}).idx}function zt(){nt=z.Pop;let oe=_t(),de=oe==null?null:oe-yt;yt=oe,ut&&ut({action:nt,location:ue.location,delta:de})}function Ht(oe,de){nt=z.Push;let pe=j(ue.location,oe,de);n&&n(pe,oe),yt=_t()+1;let _e=X(pe,yt),ge=ue.createHref(pe);try{F.pushState(_e,"",ge)}catch(qe){if(qe instanceof DOMException&&qe.name==="DataCloneError")throw qe;c.location.assign(ge)}S&&ut&&ut({action:nt,location:ue.location,delta:1})}function Yt(oe,de){nt=z.Replace;let pe=j(ue.location,oe,de);n&&n(pe,oe),yt=_t();let _e=X(pe,yt),ge=ue.createHref(pe);F.replaceState(_e,"",ge),S&&ut&&ut({action:nt,location:ue.location,delta:0})}function re(oe){let de=c.location.origin!=="null"?c.location.origin:c.location.href,pe=typeof oe=="string"?oe:B(oe);return pe=pe.replace(/ $/,"%20"),Z(de,"No window.location.(origin|href) available to create URL for href: "+pe),new URL(pe,de)}let ue={get action(){return nt},get location(){return t(c,F)},listen(oe){if(ut)throw new Error("A history only accepts one active listener");return c.addEventListener(at,zt),ut=oe,()=>{c.removeEventListener(at,zt),ut=null}},createHref(oe){return e(c,oe)},createURL:re,encodeLocation(oe){let de=re(oe);return{pathname:de.pathname,search:de.search,hash:de.hash}},push:Ht,replace:Yt,go(oe){return F.go(oe)}};return ue}var P;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(P||(P={}));const s=new Set(["lazy","caseSensitive","path","id","index","children"]);function x(t){return t.index===!0}function b(t,e,n,i){return n===void 0&&(n=[]),i===void 0&&(i={}),t.map((c,S)=>{let F=[...n,String(S)],nt=typeof c.id=="string"?c.id:F.join("-");if(Z(c.index!==!0||!c.children,"Cannot specify children on an index route"),Z(!i[nt],'Found a route id collision on id "'+nt+`". Route id's must be globally unique within Data Router usages`),x(c)){let ut=U({},c,e(c),{id:nt});return i[nt]=ut,ut}else{let ut=U({},c,e(c),{id:nt,children:void 0});return i[nt]=ut,c.children&&(ut.children=b(c.children,e,F,i)),ut}})}function o(t,e,n){return n===void 0&&(n="/"),u(t,e,n,!1)}function u(t,e,n,i){let c=typeof e=="string"?d(e):e,S=St(c.pathname||"/",n);if(S==null)return null;let F=M(t);y(F);let nt=null;for(let ut=0;nt==null&&ut<F.length;++ut){let yt=pt(S);nt=G(F[ut],yt,i)}return nt}function C(t,e){let{route:n,pathname:i,params:c}=t;return{id:n.id,pathname:i,params:c,data:e[n.id],handle:n.handle}}function M(t,e,n,i){e===void 0&&(e=[]),n===void 0&&(n=[]),i===void 0&&(i="");let c=(S,F,nt)=>{let ut={relativePath:nt===void 0?S.path||"":nt,caseSensitive:S.caseSensitive===!0,childrenIndex:F,route:S};ut.relativePath.startsWith("/")&&(Z(ut.relativePath.startsWith(i),'Absolute route path "'+ut.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),ut.relativePath=ut.relativePath.slice(i.length));let yt=Y([i,ut.relativePath]),_t=n.concat(ut);S.children&&S.children.length>0&&(Z(S.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+yt+'".')),M(S.children,e,_t,yt)),!(S.path==null&&!S.index)&&e.push({path:yt,score:k(yt,S.index),routesMeta:_t})};return t.forEach((S,F)=>{var nt;if(S.path===""||!((nt=S.path)!=null&&nt.includes("?")))c(S,F);else for(let ut of w(S.path))c(S,F,ut)}),e}function w(t){let e=t.split("/");if(e.length===0)return[];let[n,...i]=e,c=n.endsWith("?"),S=n.replace(/\?$/,"");if(i.length===0)return c?[S,""]:[S];let F=w(i.join("/")),nt=[];return nt.push(...F.map(ut=>ut===""?S:[S,ut].join("/"))),c&&nt.push(...F),nt.map(ut=>t.startsWith("/")&&ut===""?"/":ut)}function y(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:T(e.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const m=/^:[\w-]+$/,g=3,p=2,l=1,f=10,v=-2,I=t=>t==="*";function k(t,e){let n=t.split("/"),i=n.length;return n.some(I)&&(i+=v),e&&(i+=p),n.filter(c=>!I(c)).reduce((c,S)=>c+(m.test(S)?g:S===""?l:f),i)}function T(t,e){return t.length===e.length&&t.slice(0,-1).every((i,c)=>i===e[c])?t[t.length-1]-e[e.length-1]:0}function G(t,e,n){n===void 0&&(n=!1);let{routesMeta:i}=t,c={},S="/",F=[];for(let nt=0;nt<i.length;++nt){let ut=i[nt],yt=nt===i.length-1,_t=S==="/"?e:e.slice(S.length)||"/",zt=et({path:ut.relativePath,caseSensitive:ut.caseSensitive,end:yt},_t),Ht=ut.route;if(!zt&&yt&&n&&!i[i.length-1].route.index&&(zt=et({path:ut.relativePath,caseSensitive:ut.caseSensitive,end:!1},_t)),!zt)return null;Object.assign(c,zt.params),F.push({params:c,pathname:Y([S,zt.pathname]),pathnameBase:lt(Y([S,zt.pathnameBase])),route:Ht}),zt.pathnameBase!=="/"&&(S=Y([S,zt.pathnameBase]))}return F}function st(t,e){e===void 0&&(e={});let n=t;n.endsWith("*")&&n!=="*"&&!n.endsWith("/*")&&(Q(!1,'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".')),n=n.replace(/\*$/,"/*"));const i=n.startsWith("/")?"/":"",c=F=>F==null?"":typeof F=="string"?F:String(F),S=n.split(/\/+/).map((F,nt,ut)=>{if(nt===ut.length-1&&F==="*")return c(e["*"]);const _t=F.match(/^:([\w-]+)(\??)$/);if(_t){const[,zt,Ht]=_t;let Yt=e[zt];return Z(Ht==="?"||Yt!=null,'Missing ":'+zt+'" param'),c(Yt)}return F.replace(/\?$/g,"")}).filter(F=>!!F);return i+S.join("/")}function et(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,i]=ft(t.path,t.caseSensitive,t.end),c=e.match(n);if(!c)return null;let S=c[0],F=S.replace(/(.)\/+$/,"$1"),nt=c.slice(1);return{params:i.reduce((yt,_t,zt)=>{let{paramName:Ht,isOptional:Yt}=_t;if(Ht==="*"){let ue=nt[zt]||"";F=S.slice(0,S.length-ue.length).replace(/(.)\/+$/,"$1")}const re=nt[zt];return Yt&&!re?yt[Ht]=void 0:yt[Ht]=(re||"").replace(/%2F/g,"/"),yt},{}),pathname:S,pathnameBase:F,pattern:t}}function ft(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),Q(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let i=[],c="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(F,nt,ut)=>(i.push({paramName:nt,isOptional:ut!=null}),ut?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(i.push({paramName:"*"}),c+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?c+="\\/*$":t!==""&&t!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,e?void 0:"i"),i]}function pt(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Q(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function St(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&i!=="/"?null:t.slice(n)||"/"}function Ct(t,e){e===void 0&&(e="/");let{pathname:n,search:i="",hash:c=""}=typeof t=="string"?d(t):t;return{pathname:n?n.startsWith("/")?n:L(n,e):e,search:ot(i),hash:xt(c)}}function L(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(c=>{c===".."?n.length>1&&n.pop():c!=="."&&n.push(c)}),n.length>1?n.join("/"):"/"}function q(t,e,n,i){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(i)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function rt(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function it(t,e){let n=rt(t);return e?n.map((i,c)=>c===n.length-1?i.pathname:i.pathnameBase):n.map(i=>i.pathnameBase)}function D(t,e,n,i){i===void 0&&(i=!1);let c;typeof t=="string"?c=d(t):(c=U({},t),Z(!c.pathname||!c.pathname.includes("?"),q("?","pathname","search",c)),Z(!c.pathname||!c.pathname.includes("#"),q("#","pathname","hash",c)),Z(!c.search||!c.search.includes("#"),q("#","search","hash",c)));let S=t===""||c.pathname==="",F=S?"/":c.pathname,nt;if(F==null)nt=n;else{let zt=e.length-1;if(!i&&F.startsWith("..")){let Ht=F.split("/");for(;Ht[0]==="..";)Ht.shift(),zt-=1;c.pathname=Ht.join("/")}nt=zt>=0?e[zt]:"/"}let ut=Ct(c,nt),yt=F&&F!=="/"&&F.endsWith("/"),_t=(S||F===".")&&n.endsWith("/");return!ut.pathname.endsWith("/")&&(yt||_t)&&(ut.pathname+="/"),ut}function O(t){return t===""||t.pathname===""?"/":typeof t=="string"?d(t).pathname:t.pathname}const Y=t=>t.join("/").replace(/\/\/+/g,"/"),lt=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),ot=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,xt=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,dt=function(e,n){n===void 0&&(n={});let i=typeof n=="number"?{status:n}:n,c=new Headers(i.headers);return c.has("Content-Type")||c.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),U({},i,{headers:c}))};class vt{constructor(e,n){this.type="DataWithResponseInit",this.data=e,this.init=n||null}}function Et(t,e){return new vt(t,typeof e=="number"?{status:e}:e)}class kt extends Error{}class Nt{constructor(e,n){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],Z(e&&typeof e=="object"&&!Array.isArray(e),"defer() only accepts plain objects");let i;this.abortPromise=new Promise((S,F)=>i=F),this.controller=new AbortController;let c=()=>i(new kt("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",c),this.controller.signal.addEventListener("abort",c),this.data=Object.entries(e).reduce((S,F)=>{let[nt,ut]=F;return Object.assign(S,{[nt]:this.trackPromise(nt,ut)})},{}),this.done&&this.unlistenAbortSignal(),this.init=n}trackPromise(e,n){if(!(n instanceof Promise))return n;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let i=Promise.race([n,this.abortPromise]).then(c=>this.onSettle(i,e,void 0,c),c=>this.onSettle(i,e,c));return i.catch(()=>{}),Object.defineProperty(i,"_tracked",{get:()=>!0}),i}onSettle(e,n,i,c){if(this.controller.signal.aborted&&i instanceof kt)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>i}),Promise.reject(i);if(this.pendingKeysSet.delete(n),this.done&&this.unlistenAbortSignal(),i===void 0&&c===void 0){let S=new Error('Deferred data for key "'+n+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>S}),this.emit(!1,n),Promise.reject(S)}return c===void 0?(Object.defineProperty(e,"_error",{get:()=>i}),this.emit(!1,n),Promise.reject(i)):(Object.defineProperty(e,"_data",{get:()=>c}),this.emit(!1,n),c)}emit(e,n){this.subscribers.forEach(i=>i(e,n))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,n)=>this.pendingKeysSet.delete(n)),this.emit(!0)}resolveData(e){return Qi(this,null,function*(){let n=!1;if(!this.done){let i=()=>this.cancel();e.addEventListener("abort",i),n=yield new Promise(c=>{this.subscribe(S=>{e.removeEventListener("abort",i),(S||this.done)&&c(S)})})}return n})}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return Z(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,n)=>{let[i,c]=n;return Object.assign(e,{[i]:wt(c)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function gt(t){return t instanceof Promise&&t._tracked===!0}function wt(t){if(!gt(t))return t;if(t._error)throw t._error;return t._data}const Dt=function(e,n){n===void 0&&(n={});let i=typeof n=="number"?{status:n}:n;return new Nt(e,i)},jt=function(e,n){n===void 0&&(n=302);let i=n;typeof i=="number"?i={status:i}:typeof i.status=="undefined"&&(i.status=302);let c=new Headers(i.headers);return c.set("Location",e),new Response(null,U({},i,{headers:c}))},Jt=(t,e)=>{let n=jt(t,e);return n.headers.set("X-Remix-Reload-Document","true"),n},ie=(t,e)=>{let n=jt(t,e);return n.headers.set("X-Remix-Replace","true"),n};class $t{constructor(e,n,i,c){c===void 0&&(c=!1),this.status=e,this.statusText=n||"",this.internal=c,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}}function he(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const ve=["post","put","patch","delete"],Se=new Set(ve),ke=["get",...ve],Ge=new Set(ke),on=new Set([301,302,303,307,308]),un=new Set([307,308]),te={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Zt={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ee={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Pt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Bt=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),Vt="remix-router-transitions";function Ut(t){const e=t.window?t.window:typeof window!="undefined"?window:void 0,n=typeof e!="undefined"&&typeof e.document!="undefined"&&typeof e.document.createElement!="undefined",i=!n;Z(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let c;if(t.mapRouteProperties)c=t.mapRouteProperties;else if(t.detectErrorBoundary){let Dn=t.detectErrorBoundary;c=Kn=>({hasErrorBoundary:Dn(Kn)})}else c=Bt;let S={},F=b(t.routes,c,void 0,S),nt,ut=t.basename||"/",yt=t.dataStrategy||Ue,_t=t.patchRoutesOnNavigation,zt=U({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},t.future),Ht=null,Yt=new Set,re=null,ue=null,oe=null,de=t.hydrationData!=null,pe=o(F,t.history.location,ut),_e=null;if(pe==null&&!_t){let Dn=nr(404,{pathname:t.history.location.pathname}),{matches:Kn,route:lr}=fr(F);pe=Kn,_e={[lr.id]:Dn}}pe&&!t.hydrationData&&Fk(pe,F,t.history.location.pathname).active&&(pe=null);let ge;if(pe)if(pe.some(Dn=>Dn.route.lazy))ge=!1;else if(!pe.some(Dn=>Dn.route.loader))ge=!0;else if(zt.v7_partialHydration){let Dn=t.hydrationData?t.hydrationData.loaderData:null,Kn=t.hydrationData?t.hydrationData.errors:null;if(Kn){let lr=pe.findIndex(Dr=>Kn[Dr.route.id]!==void 0);ge=pe.slice(0,lr+1).every(Dr=>!Jn(Dr.route,Dn,Kn))}else ge=pe.every(lr=>!Jn(lr.route,Dn,Kn))}else ge=t.hydrationData!=null;else if(ge=!1,pe=[],zt.v7_partialHydration){let Dn=Fk(null,F,t.history.location.pathname);Dn.active&&Dn.matches&&(pe=Dn.matches)}let qe,De={historyAction:t.history.action,location:t.history.location,matches:pe,initialized:ge,navigation:te,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||_e,fetchers:new Map,blockers:new Map},$e=z.Pop,Ye=!1,tn,gn=!1,Cn=new Map,kn=null,Zn=!1,fn=!1,jn=[],On=new Set,Vn=new Map,wr=0,Pr=-1,_r=new Map,Ur=new Set,Hr=new Map,Li=new Map,ai=new Set,Ei=new Map,Zi=new Map,$r;function Fi(){if(Ht=t.history.listen(Dn=>{let{action:Kn,location:lr,delta:Dr}=Dn;if($r){$r(),$r=void 0;return}Q(Zi.size===0||Dr!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ri=IR({currentLocation:De.location,nextLocation:lr,historyAction:Kn});if(ri&&Dr!=null){let xi=new Promise(Hi=>{$r=Hi});t.history.go(Dr*-1),Bk(ri,{state:"blocked",location:lr,proceed(){Bk(ri,{state:"proceeding",proceed:void 0,reset:void 0,location:lr}),xi.then(()=>t.history.go(Dr))},reset(){let Hi=new Map(De.blockers);Hi.set(ri,ee),zo({blockers:Hi})}});return}return yu(Kn,lr)}),n){Ne(e,Cn);let Dn=()=>Je(e,Cn);e.addEventListener("pagehide",Dn),kn=()=>e.removeEventListener("pagehide",Dn)}return De.initialized||yu(z.Pop,De.location,{initialHydration:!0}),qe}function qo(){Ht&&Ht(),kn&&kn(),Yt.clear(),tn&&tn.abort(),De.fetchers.forEach((Dn,Kn)=>jk(Kn)),De.blockers.forEach((Dn,Kn)=>LR(Kn))}function Ea(Dn){return Yt.add(Dn),()=>Yt.delete(Dn)}function zo(Dn,Kn){Kn===void 0&&(Kn={}),De=U({},De,Dn);let lr=[],Dr=[];zt.v7_fetcherPersist&&De.fetchers.forEach((ri,xi)=>{ri.state==="idle"&&(ai.has(xi)?Dr.push(xi):lr.push(xi))}),[...Yt].forEach(ri=>ri(De,{deletedFetchers:Dr,viewTransitionOpts:Kn.viewTransitionOpts,flushSync:Kn.flushSync===!0})),zt.v7_fetcherPersist&&(lr.forEach(ri=>De.fetchers.delete(ri)),Dr.forEach(ri=>jk(ri)))}function $o(Dn,Kn,lr){var Dr,ri;let{flushSync:xi}=lr===void 0?{}:lr,Hi=De.actionData!=null&&De.navigation.formMethod!=null&&ne(De.navigation.formMethod)&&De.navigation.state==="loading"&&((Dr=Dn.state)==null?void 0:Dr._isRedirect)!==!0,si;Kn.actionData?Object.keys(Kn.actionData).length>0?si=Kn.actionData:si=null:Hi?si=De.actionData:si=null;let ui=Kn.loaderData?yn(De.loaderData,Kn.loaderData,Kn.matches||[],Kn.errors):De.loaderData,ii=De.blockers;ii.size>0&&(ii=new Map(ii),ii.forEach((Mo,Ks)=>ii.set(Ks,ee)));let wi=Ye===!0||De.navigation.formMethod!=null&&ne(De.navigation.formMethod)&&((ri=Dn.state)==null?void 0:ri._isRedirect)!==!0;nt&&(F=nt,nt=void 0),Zn||$e===z.Pop||($e===z.Push?t.history.push(Dn,Dn.state):$e===z.Replace&&t.history.replace(Dn,Dn.state));let mo;if($e===z.Pop){let Mo=Cn.get(De.location.pathname);Mo&&Mo.has(Dn.pathname)?mo={currentLocation:De.location,nextLocation:Dn}:Cn.has(Dn.pathname)&&(mo={currentLocation:Dn,nextLocation:De.location})}else if(gn){let Mo=Cn.get(De.location.pathname);Mo?Mo.add(Dn.pathname):(Mo=new Set([Dn.pathname]),Cn.set(De.location.pathname,Mo)),mo={currentLocation:De.location,nextLocation:Dn}}zo(U({},Kn,{actionData:si,loaderData:ui,historyAction:$e,location:Dn,initialized:!0,navigation:te,revalidation:"idle",restoreScrollPosition:BR(Dn,Kn.matches||De.matches),preventScrollReset:wi,blockers:ii}),{viewTransitionOpts:mo,flushSync:xi===!0}),$e=z.Pop,Ye=!1,gn=!1,Zn=!1,fn=!1,jn=[]}function Da(Dn,Kn){return Qi(this,null,function*(){if(typeof Dn=="number"){t.history.go(Dn);return}let lr=xn(De.location,De.matches,ut,zt.v7_prependBasename,Dn,zt.v7_relativeSplatPath,Kn==null?void 0:Kn.fromRouteId,Kn==null?void 0:Kn.relative),{path:Dr,submission:ri,error:xi}=In(zt.v7_normalizeFormMethod,!1,lr,Kn),Hi=De.location,si=j(De.location,Dr,Kn&&Kn.state);si=U({},si,t.history.encodeLocation(si));let ui=Kn&&Kn.replace!=null?Kn.replace:void 0,ii=z.Push;ui===!0?ii=z.Replace:ui===!1||ri!=null&&ne(ri.formMethod)&&ri.formAction===De.location.pathname+De.location.search&&(ii=z.Replace);let wi=Kn&&"preventScrollReset"in Kn?Kn.preventScrollReset===!0:void 0,mo=(Kn&&Kn.flushSync)===!0,Mo=IR({currentLocation:Hi,nextLocation:si,historyAction:ii});if(Mo){Bk(Mo,{state:"blocked",location:si,proceed(){Bk(Mo,{state:"proceeding",proceed:void 0,reset:void 0,location:si}),Da(Dn,Kn)},reset(){let Ks=new Map(De.blockers);Ks.set(Mo,ee),zo({blockers:Ks})}});return}return yield yu(ii,si,{submission:ri,pendingError:xi,preventScrollReset:wi,replace:Kn&&Kn.replace,enableViewTransition:Kn&&Kn.viewTransition,flushSync:mo})})}function Qu(){if(Gb(),zo({revalidation:"loading"}),De.navigation.state!=="submitting"){if(De.navigation.state==="idle"){yu(De.historyAction,De.location,{startUninterruptedRevalidation:!0});return}yu($e||De.historyAction,De.navigation.location,{overrideNavigation:De.navigation,enableViewTransition:gn===!0})}}function yu(Dn,Kn,lr){return Qi(this,null,function*(){tn&&tn.abort(),tn=null,$e=Dn,Zn=(lr&&lr.startUninterruptedRevalidation)===!0,t$(De.location,De.matches),Ye=(lr&&lr.preventScrollReset)===!0,gn=(lr&&lr.enableViewTransition)===!0;let Dr=nt||F,ri=lr&&lr.overrideNavigation,xi=o(Dr,Kn,ut),Hi=(lr&&lr.flushSync)===!0,si=Fk(xi,Dr,Kn.pathname);if(si.active&&si.matches&&(xi=si.matches),!xi){let{error:pa,notFoundMatches:Ro,route:Ha}=q5(Kn.pathname);$o(Kn,{matches:Ro,loaderData:{},errors:{[Ha.id]:pa}},{flushSync:Hi});return}if(De.initialized&&!fn&&ir(De.location,Kn)&&!(lr&&lr.submission&&ne(lr.submission.formMethod))){$o(Kn,{matches:xi},{flushSync:Hi});return}tn=new AbortController;let ui=an(t.history,Kn,tn.signal,lr&&lr.submission),ii;if(lr&&lr.pendingError)ii=[wn(xi).route.id,{type:P.error,error:lr.pendingError}];else if(lr&&lr.submission&&ne(lr.submission.formMethod)){let pa=yield Up(ui,Kn,lr.submission,xi,si.active,{replace:lr.replace,flushSync:Hi});if(pa.shortCircuited)return;if(pa.pendingActionResult){let[Ro,Ha]=pa.pendingActionResult;if(Bn(Ha)&&he(Ha.error)&&Ha.error.status===404){tn=null,$o(Kn,{matches:pa.matches,loaderData:{},errors:{[Ro]:Ha.error}});return}}xi=pa.matches||xi,ii=pa.pendingActionResult,ri=Tt(Kn,lr.submission),Hi=!1,si.active=!1,ui=an(t.history,ui.url,ui.signal)}let{shortCircuited:wi,matches:mo,loaderData:Mo,errors:Ks}=yield Bi(ui,Kn,xi,si.active,ri,lr&&lr.submission,lr&&lr.fetcherSubmission,lr&&lr.replace,lr&&lr.initialHydration===!0,Hi,ii);wi||(tn=null,$o(Kn,U({matches:mo||xi},En(ii),{loaderData:Mo,errors:Ks})))})}function Up(Dn,Kn,lr,Dr,ri,xi){return Qi(this,null,function*(){xi===void 0&&(xi={}),Gb();let Hi=qt(Kn,lr);if(zo({navigation:Hi},{flushSync:xi.flushSync===!0}),ri){let ii=yield zk(Dr,Kn.pathname,Dn.signal);if(ii.type==="aborted")return{shortCircuited:!0};if(ii.type==="error"){let wi=wn(ii.partialMatches).route.id;return{matches:ii.partialMatches,pendingActionResult:[wi,{type:P.error,error:ii.error}]}}else if(ii.matches)Dr=ii.matches;else{let{notFoundMatches:wi,error:mo,route:Mo}=q5(Kn.pathname);return{matches:wi,pendingActionResult:[Mo.id,{type:P.error,error:mo}]}}}let si,ui=It(Dr,Kn);if(!ui.route.action&&!ui.route.lazy)si={type:P.error,error:nr(405,{method:Dn.method,pathname:Kn.pathname,routeId:ui.route.id})};else if(si=(yield Vp("action",De,Dn,[ui],Dr,null))[ui.route.id],Dn.signal.aborted)return{shortCircuited:!0};if(Rr(si)){let ii;return xi&&xi.replace!=null?ii=xi.replace:ii=Ae(si.response.headers.get("Location"),new URL(Dn.url),ut)===De.location.pathname+De.location.search,yield Qf(Dn,si,!0,{submission:lr,replace:ii}),{shortCircuited:!0}}if(ur(si))throw nr(400,{type:"defer-action"});if(Bn(si)){let ii=wn(Dr,ui.route.id);return(xi&&xi.replace)!==!0&&($e=z.Push),{matches:Dr,pendingActionResult:[ii.route.id,si]}}return{matches:Dr,pendingActionResult:[ui.route.id,si]}})}function Bi(Dn,Kn,lr,Dr,ri,xi,Hi,si,ui,ii,wi){return Qi(this,null,function*(){let mo=ri||Tt(Kn,xi),Mo=xi||Hi||Gt(mo),Ks=!Zn&&(!zt.v7_partialHydration||!ui);if(Dr){if(Ks){let Va=Ca(wi);zo(U({navigation:mo},Va!==void 0?{actionData:Va}:{}),{flushSync:ii})}let No=yield zk(lr,Kn.pathname,Dn.signal);if(No.type==="aborted")return{shortCircuited:!0};if(No.type==="error"){let Va=wn(No.partialMatches).route.id;return{matches:No.partialMatches,loaderData:{},errors:{[Va]:No.error}}}else if(No.matches)lr=No.matches;else{let{error:Va,notFoundMatches:Zb,route:L2}=q5(Kn.pathname);return{matches:Zb,loaderData:{},errors:{[L2.id]:Va}}}}let pa=nt||F,[Ro,Ha]=An(t.history,De,lr,Mo,Kn,zt.v7_partialHydration&&ui===!0,zt.v7_skipActionErrorRevalidation,fn,jn,On,ai,Hr,Ur,pa,ut,wi);if($5(No=>!(lr&&lr.some(Va=>Va.route.id===No))||Ro&&Ro.some(Va=>Va.route.id===No)),Pr=++wr,Ro.length===0&&Ha.length===0){let No=DR();return $o(Kn,U({matches:lr,loaderData:{},errors:wi&&Bn(wi[1])?{[wi[0]]:wi[1].error}:null},En(wi),No?{fetchers:new Map(De.fetchers)}:{}),{flushSync:ii}),{shortCircuited:!0}}if(Ks){let No={};if(!Dr){No.navigation=mo;let Va=Ca(wi);Va!==void 0&&(No.actionData=Va)}Ha.length>0&&(No.fetchers=Hp(Ha)),zo(No,{flushSync:ii})}Ha.forEach(No=>{Pg(No.key),No.controller&&Vn.set(No.key,No.controller)});let Kb=()=>Ha.forEach(No=>Pg(No.key));tn&&tn.signal.addEventListener("abort",Kb);let{loaderResults:D2,fetcherResults:Wp}=yield N2(De,lr,Ro,Ha,Dn);if(Dn.signal.aborted)return{shortCircuited:!0};tn&&tn.signal.removeEventListener("abort",Kb),Ha.forEach(No=>Vn.delete(No.key));let Jf=pr(D2);if(Jf)return yield Qf(Dn,Jf.result,!0,{replace:si}),{shortCircuited:!0};if(Jf=pr(Wp),Jf)return Ur.add(Jf.key),yield Qf(Dn,Jf.result,!0,{replace:si}),{shortCircuited:!0};let{loaderData:X5,errors:R2}=sn(De,lr,D2,wi,Ha,Wp,Ei);Ei.forEach((No,Va)=>{No.subscribe(Zb=>{(Zb||No.done)&&Ei.delete(Va)})}),zt.v7_partialHydration&&ui&&De.errors&&(R2=U({},De.errors,R2));let Jy=DR(),Uk=RR(Pr),Hk=Jy||Uk||Ha.length>0;return U({matches:lr,loaderData:X5,errors:R2},Hk?{fetchers:new Map(De.fetchers)}:{})})}function Ca(Dn){if(Dn&&!Bn(Dn[1]))return{[Dn[0]]:Dn[1].data};if(De.actionData)return Object.keys(De.actionData).length===0?null:De.actionData}function Hp(Dn){return Dn.forEach(Kn=>{let lr=De.fetchers.get(Kn.key),Dr=le(void 0,lr?lr.data:void 0);De.fetchers.set(Kn.key,Dr)}),new Map(De.fetchers)}function Rs(Dn,Kn,lr,Dr){if(i)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Pg(Dn);let ri=(Dr&&Dr.flushSync)===!0,xi=nt||F,Hi=xn(De.location,De.matches,ut,zt.v7_prependBasename,lr,zt.v7_relativeSplatPath,Kn,Dr==null?void 0:Dr.relative),si=o(xi,Hi,ut),ui=Fk(si,xi,Hi);if(ui.active&&ui.matches&&(si=ui.matches),!si){zc(Dn,Kn,nr(404,{pathname:Hi}),{flushSync:ri});return}let{path:ii,submission:wi,error:mo}=In(zt.v7_normalizeFormMethod,!0,Hi,Dr);if(mo){zc(Dn,Kn,mo,{flushSync:ri});return}let Mo=It(si,ii),Ks=(Dr&&Dr.preventScrollReset)===!0;if(wi&&ne(wi.formMethod)){Xb(Dn,Kn,ii,Mo,si,ui.active,ri,Ks,wi);return}Hr.set(Dn,{routeId:Kn,path:ii}),Ik(Dn,Kn,ii,Mo,si,ui.active,ri,Ks,wi)}function Xb(Dn,Kn,lr,Dr,ri,xi,Hi,si,ui){return Qi(this,null,function*(){Gb(),Hr.delete(Dn);function ii(ls){if(!ls.route.action&&!ls.route.lazy){let Qb=nr(405,{method:ui.formMethod,pathname:lr,routeId:Kn});return zc(Dn,Kn,Qb,{flushSync:Hi}),!0}return!1}if(!xi&&ii(Dr))return;let wi=De.fetchers.get(Dn);Lh(Dn,me(ui,wi),{flushSync:Hi});let mo=new AbortController,Mo=an(t.history,lr,mo.signal,ui);if(xi){let ls=yield zk(ri,lr,Mo.signal);if(ls.type==="aborted")return;if(ls.type==="error"){zc(Dn,Kn,ls.error,{flushSync:Hi});return}else if(ls.matches){if(ri=ls.matches,Dr=It(ri,lr),ii(Dr))return}else{zc(Dn,Kn,nr(404,{pathname:lr}),{flushSync:Hi});return}}Vn.set(Dn,mo);let Ks=wr,Ro=(yield Vp("action",De,Mo,[Dr],ri,Dn))[Dr.route.id];if(Mo.signal.aborted){Vn.get(Dn)===mo&&Vn.delete(Dn);return}if(zt.v7_fetcherPersist&&ai.has(Dn)){if(Rr(Ro)||Bn(Ro)){Lh(Dn,ye(void 0));return}}else{if(Rr(Ro))if(Vn.delete(Dn),Pr>Ks){Lh(Dn,ye(void 0));return}else return Ur.add(Dn),Lh(Dn,le(ui)),Qf(Mo,Ro,!1,{fetcherSubmission:ui,preventScrollReset:si});if(Bn(Ro)){zc(Dn,Kn,Ro.error);return}}if(ur(Ro))throw nr(400,{type:"defer-action"});let Ha=De.navigation.location||De.location,Kb=an(t.history,Ha,mo.signal),D2=nt||F,Wp=De.navigation.state!=="idle"?o(D2,De.navigation.location,ut):De.matches;Z(Wp,"Didn't find any matches after fetcher action");let Jf=++wr;_r.set(Dn,Jf);let X5=le(ui,Ro.data);De.fetchers.set(Dn,X5);let[R2,Jy]=An(t.history,De,Wp,ui,Ha,!1,zt.v7_skipActionErrorRevalidation,fn,jn,On,ai,Hr,Ur,D2,ut,[Dr.route.id,Ro]);Jy.filter(ls=>ls.key!==Dn).forEach(ls=>{let Qb=ls.key,FR=De.fetchers.get(Qb),r$=le(void 0,FR?FR.data:void 0);De.fetchers.set(Qb,r$),Pg(Qb),ls.controller&&Vn.set(Qb,ls.controller)}),zo({fetchers:new Map(De.fetchers)});let Uk=()=>Jy.forEach(ls=>Pg(ls.key));mo.signal.addEventListener("abort",Uk);let{loaderResults:Hk,fetcherResults:No}=yield N2(De,Wp,R2,Jy,Kb);if(mo.signal.aborted)return;mo.signal.removeEventListener("abort",Uk),_r.delete(Dn),Vn.delete(Dn),Jy.forEach(ls=>Vn.delete(ls.key));let Va=pr(Hk);if(Va)return Qf(Kb,Va.result,!1,{preventScrollReset:si});if(Va=pr(No),Va)return Ur.add(Va.key),Qf(Kb,Va.result,!1,{preventScrollReset:si});let{loaderData:Zb,errors:L2}=sn(De,Wp,Hk,void 0,Jy,No,Ei);if(De.fetchers.has(Dn)){let ls=ye(Ro.data);De.fetchers.set(Dn,ls)}RR(Jf),De.navigation.state==="loading"&&Jf>Pr?(Z($e,"Expected pending action"),tn&&tn.abort(),$o(De.navigation.location,{matches:Wp,loaderData:Zb,errors:L2,fetchers:new Map(De.fetchers)})):(zo({errors:L2,loaderData:yn(De.loaderData,Zb,Wp,L2),fetchers:new Map(De.fetchers)}),fn=!1)})}function Ik(Dn,Kn,lr,Dr,ri,xi,Hi,si,ui){return Qi(this,null,function*(){let ii=De.fetchers.get(Dn);Lh(Dn,le(ui,ii?ii.data:void 0),{flushSync:Hi});let wi=new AbortController,mo=an(t.history,lr,wi.signal);if(xi){let Ro=yield zk(ri,lr,mo.signal);if(Ro.type==="aborted")return;if(Ro.type==="error"){zc(Dn,Kn,Ro.error,{flushSync:Hi});return}else if(Ro.matches)ri=Ro.matches,Dr=It(ri,lr);else{zc(Dn,Kn,nr(404,{pathname:lr}),{flushSync:Hi});return}}Vn.set(Dn,wi);let Mo=wr,pa=(yield Vp("loader",De,mo,[Dr],ri,Dn))[Dr.route.id];if(ur(pa)&&(pa=(yield nn(pa,mo.signal,!0))||pa),Vn.get(Dn)===wi&&Vn.delete(Dn),!mo.signal.aborted){if(ai.has(Dn)){Lh(Dn,ye(void 0));return}if(Rr(pa))if(Pr>Mo){Lh(Dn,ye(void 0));return}else{Ur.add(Dn),yield Qf(mo,pa,!1,{preventScrollReset:si});return}if(Bn(pa)){zc(Dn,Kn,pa.error);return}Z(!ur(pa),"Unhandled fetcher deferred data"),Lh(Dn,ye(pa.data))}})}function Qf(Dn,Kn,lr,Dr){return Qi(this,null,function*(){let{submission:ri,fetcherSubmission:xi,preventScrollReset:Hi,replace:si}=Dr===void 0?{}:Dr;Kn.response.headers.has("X-Remix-Revalidate")&&(fn=!0);let ui=Kn.response.headers.get("Location");Z(ui,"Expected a Location header on the redirect Response"),ui=Ae(ui,new URL(Dn.url),ut);let ii=j(De.location,ui,{_isRedirect:!0});if(n){let Ro=!1;if(Kn.response.headers.has("X-Remix-Reload-Document"))Ro=!0;else if(Pt.test(ui)){const Ha=t.history.createURL(ui);Ro=Ha.origin!==e.location.origin||St(Ha.pathname,ut)==null}if(Ro){si?e.location.replace(ui):e.location.assign(ui);return}}tn=null;let wi=si===!0||Kn.response.headers.has("X-Remix-Replace")?z.Replace:z.Push,{formMethod:mo,formAction:Mo,formEncType:Ks}=De.navigation;!ri&&!xi&&mo&&Mo&&Ks&&(ri=Gt(De.navigation));let pa=ri||xi;if(un.has(Kn.response.status)&&pa&&ne(pa.formMethod))yield yu(wi,ii,{submission:U({},pa,{formAction:ui}),preventScrollReset:Hi||Ye,enableViewTransition:lr?gn:void 0});else{let Ro=Tt(ii,ri);yield yu(wi,ii,{overrideNavigation:Ro,fetcherSubmission:xi,preventScrollReset:Hi||Ye,enableViewTransition:lr?gn:void 0})}})}function Vp(Dn,Kn,lr,Dr,ri,xi){return Qi(this,null,function*(){let Hi,si={};try{Hi=yield Le(yt,Dn,Kn,lr,Dr,ri,xi,S,c)}catch(ui){return Dr.forEach(ii=>{si[ii.route.id]={type:P.error,error:ui}}),si}for(let[ui,ii]of Object.entries(Hi))if(Br(ii)){let wi=ii.result;si[ui]={type:P.redirect,response:Mn(wi,lr,ui,ri,ut,zt.v7_relativeSplatPath)}}else si[ui]=yield en(ii);return si})}function N2(Dn,Kn,lr,Dr,ri){return Qi(this,null,function*(){let xi=Dn.matches,Hi=Vp("loader",Dn,ri,lr,Kn,null),si=Promise.all(Dr.map(wi=>Qi(this,null,function*(){if(wi.matches&&wi.match&&wi.controller){let Mo=(yield Vp("loader",Dn,an(t.history,wi.path,wi.controller.signal),[wi.match],wi.matches,wi.key))[wi.match.route.id];return{[wi.key]:Mo}}else return Promise.resolve({[wi.key]:{type:P.error,error:nr(404,{pathname:wi.path})}})}))),ui=yield Hi,ii=(yield si).reduce((wi,mo)=>Object.assign(wi,mo),{});return yield Promise.all([Me(Kn,ui,ri.signal,xi,Dn.loaderData),Ke(Kn,ii,Dr)]),{loaderResults:ui,fetcherResults:ii}})}function Gb(){fn=!0,jn.push(...$5()),Hr.forEach((Dn,Kn)=>{Vn.has(Kn)&&On.add(Kn),Pg(Kn)})}function Lh(Dn,Kn,lr){lr===void 0&&(lr={}),De.fetchers.set(Dn,Kn),zo({fetchers:new Map(De.fetchers)},{flushSync:(lr&&lr.flushSync)===!0})}function zc(Dn,Kn,lr,Dr){Dr===void 0&&(Dr={});let ri=wn(De.matches,Kn);jk(Dn),zo({errors:{[ri.route.id]:lr},fetchers:new Map(De.fetchers)},{flushSync:(Dr&&Dr.flushSync)===!0})}function OR(Dn){return zt.v7_fetcherPersist&&(Li.set(Dn,(Li.get(Dn)||0)+1),ai.has(Dn)&&ai.delete(Dn)),De.fetchers.get(Dn)||Zt}function jk(Dn){let Kn=De.fetchers.get(Dn);Vn.has(Dn)&&!(Kn&&Kn.state==="loading"&&_r.has(Dn))&&Pg(Dn),Hr.delete(Dn),_r.delete(Dn),Ur.delete(Dn),ai.delete(Dn),On.delete(Dn),De.fetchers.delete(Dn)}function Zq(Dn){if(zt.v7_fetcherPersist){let Kn=(Li.get(Dn)||0)-1;Kn<=0?(Li.delete(Dn),ai.add(Dn)):Li.set(Dn,Kn)}else jk(Dn);zo({fetchers:new Map(De.fetchers)})}function Pg(Dn){let Kn=Vn.get(Dn);Kn&&(Kn.abort(),Vn.delete(Dn))}function NR(Dn){for(let Kn of Dn){let lr=OR(Kn),Dr=ye(lr.data);De.fetchers.set(Kn,Dr)}}function DR(){let Dn=[],Kn=!1;for(let lr of Ur){let Dr=De.fetchers.get(lr);Z(Dr,"Expected fetcher: "+lr),Dr.state==="loading"&&(Ur.delete(lr),Dn.push(lr),Kn=!0)}return NR(Dn),Kn}function RR(Dn){let Kn=[];for(let[lr,Dr]of _r)if(Dr<Dn){let ri=De.fetchers.get(lr);Z(ri,"Expected fetcher: "+lr),ri.state==="loading"&&(Pg(lr),_r.delete(lr),Kn.push(lr))}return NR(Kn),Kn.length>0}function Qq(Dn,Kn){let lr=De.blockers.get(Dn)||ee;return Zi.get(Dn)!==Kn&&Zi.set(Dn,Kn),lr}function LR(Dn){De.blockers.delete(Dn),Zi.delete(Dn)}function Bk(Dn,Kn){let lr=De.blockers.get(Dn)||ee;Z(lr.state==="unblocked"&&Kn.state==="blocked"||lr.state==="blocked"&&Kn.state==="blocked"||lr.state==="blocked"&&Kn.state==="proceeding"||lr.state==="blocked"&&Kn.state==="unblocked"||lr.state==="proceeding"&&Kn.state==="unblocked","Invalid blocker state transition: "+lr.state+" -> "+Kn.state);let Dr=new Map(De.blockers);Dr.set(Dn,Kn),zo({blockers:Dr})}function IR(Dn){let{currentLocation:Kn,nextLocation:lr,historyAction:Dr}=Dn;if(Zi.size===0)return;Zi.size>1&&Q(!1,"A router only supports one blocker at a time");let ri=Array.from(Zi.entries()),[xi,Hi]=ri[ri.length-1],si=De.blockers.get(xi);if(!(si&&si.state==="proceeding")&&Hi({currentLocation:Kn,nextLocation:lr,historyAction:Dr}))return xi}function q5(Dn){let Kn=nr(404,{pathname:Dn}),lr=nt||F,{matches:Dr,route:ri}=fr(lr);return $5(),{notFoundMatches:Dr,route:ri,error:Kn}}function $5(Dn){let Kn=[];return Ei.forEach((lr,Dr)=>{(!Dn||Dn(Dr))&&(lr.cancel(),Kn.push(Dr),Ei.delete(Dr))}),Kn}function Jq(Dn,Kn,lr){if(re=Dn,oe=Kn,ue=lr||null,!de&&De.navigation===te){de=!0;let Dr=BR(De.location,De.matches);Dr!=null&&zo({restoreScrollPosition:Dr})}return()=>{re=null,oe=null,ue=null}}function jR(Dn,Kn){return ue&&ue(Dn,Kn.map(Dr=>C(Dr,De.loaderData)))||Dn.key}function t$(Dn,Kn){if(re&&oe){let lr=jR(Dn,Kn);re[lr]=oe()}}function BR(Dn,Kn){if(re){let lr=jR(Dn,Kn),Dr=re[lr];if(typeof Dr=="number")return Dr}return null}function Fk(Dn,Kn,lr){if(_t)if(Dn){if(Object.keys(Dn[0].params).length>0)return{active:!0,matches:u(Kn,lr,ut,!0)}}else return{active:!0,matches:u(Kn,lr,ut,!0)||[]};return{active:!1,matches:null}}function zk(Dn,Kn,lr){return Qi(this,null,function*(){if(!_t)return{type:"success",matches:Dn};let Dr=Dn;for(;;){let ri=nt==null,xi=nt||F,Hi=S;try{yield _t({path:Kn,matches:Dr,patch:(ii,wi)=>{lr.aborted||Xe(ii,wi,xi,Hi,c)}})}catch(ii){return{type:"error",error:ii,partialMatches:Dr}}finally{ri&&!lr.aborted&&(F=[...F])}if(lr.aborted)return{type:"aborted"};let si=o(xi,Kn,ut);if(si)return{type:"success",matches:si};let ui=u(xi,Kn,ut,!0);if(!ui||Dr.length===ui.length&&Dr.every((ii,wi)=>ii.route.id===ui[wi].route.id))return{type:"success",matches:null};Dr=ui}})}function e$(Dn){S={},nt=b(Dn,c,void 0,S)}function n$(Dn,Kn){let lr=nt==null;Xe(Dn,Kn,nt||F,S,c),lr&&(F=[...F],zo({}))}return qe={get basename(){return ut},get future(){return zt},get state(){return De},get routes(){return F},get window(){return e},initialize:Fi,subscribe:Ea,enableScrollRestoration:Jq,navigate:Da,fetch:Rs,revalidate:Qu,createHref:Dn=>t.history.createHref(Dn),encodeLocation:Dn=>t.history.encodeLocation(Dn),getFetcher:OR,deleteFetcher:Zq,dispose:qo,getBlocker:Qq,deleteBlocker:LR,patchRoutes:n$,_internalFetchControllers:Vn,_internalActiveDeferreds:Ei,_internalSetRoutes:e$},qe}const fe=Symbol("deferred");function Ce(t,e){Z(t.length>0,"You must provide a non-empty routes array to createStaticHandler");let n={},i=(e?e.basename:null)||"/",c;if(e!=null&&e.mapRouteProperties)c=e.mapRouteProperties;else if(e!=null&&e.detectErrorBoundary){let Yt=e.detectErrorBoundary;c=re=>({hasErrorBoundary:Yt(re)})}else c=Bt;let S=U({v7_relativeSplatPath:!1,v7_throwAbortReason:!1},e?e.future:null),F=b(t,c,void 0,n);function nt(Yt,re){return Qi(this,null,function*(){let{requestContext:ue,skipLoaderErrorBubbling:oe,dataStrategy:de}=re===void 0?{}:re,pe=new URL(Yt.url),_e=Yt.method,ge=j("",B(pe),null,"default"),qe=o(F,ge,i);if(!zi(_e)&&_e!=="HEAD"){let $e=nr(405,{method:_e}),{matches:Ye,route:tn}=fr(F);return{basename:i,location:ge,matches:Ye,loaderData:{},actionData:null,errors:{[tn.id]:$e},statusCode:$e.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}else if(!qe){let $e=nr(404,{pathname:ge.pathname}),{matches:Ye,route:tn}=fr(F);return{basename:i,location:ge,matches:Ye,loaderData:{},actionData:null,errors:{[tn.id]:$e},statusCode:$e.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let De=yield yt(Yt,ge,qe,ue,de||null,oe===!0,null);return Jr(De)?De:U({location:ge,basename:i},De)})}function ut(Yt,re){return Qi(this,null,function*(){let{routeId:ue,requestContext:oe,dataStrategy:de}=re===void 0?{}:re,pe=new URL(Yt.url),_e=Yt.method,ge=j("",B(pe),null,"default"),qe=o(F,ge,i);if(!zi(_e)&&_e!=="HEAD"&&_e!=="OPTIONS")throw nr(405,{method:_e});if(!qe)throw nr(404,{pathname:ge.pathname});let De=ue?qe.find(gn=>gn.route.id===ue):It(qe,ge);if(ue&&!De)throw nr(403,{pathname:ge.pathname,routeId:ue});if(!De)throw nr(404,{pathname:ge.pathname});let $e=yield yt(Yt,ge,qe,oe,de||null,!1,De);if(Jr($e))return $e;let Ye=$e.errors?Object.values($e.errors)[0]:void 0;if(Ye!==void 0)throw Ye;if($e.actionData)return Object.values($e.actionData)[0];if($e.loaderData){var tn;let gn=Object.values($e.loaderData)[0];return(tn=$e.activeDeferreds)!=null&&tn[De.route.id]&&(gn[fe]=$e.activeDeferreds[De.route.id]),gn}})}function yt(Yt,re,ue,oe,de,pe,_e){return Qi(this,null,function*(){Z(Yt.signal,"query()/queryRoute() requests must contain an AbortController signal");try{if(ne(Yt.method.toLowerCase()))return yield _t(Yt,ue,_e||It(ue,re),oe,de,pe,_e!=null);let ge=yield zt(Yt,ue,oe,de,pe,_e);return Jr(ge)?ge:U({},ge,{actionData:null,actionHeaders:{}})}catch(ge){if(Lr(ge)&&Jr(ge.result)){if(ge.type===P.error)throw ge.result;return ge.result}if(Mr(ge))return ge;throw ge}})}function _t(Yt,re,ue,oe,de,pe,_e){return Qi(this,null,function*(){let ge;if(!ue.route.action&&!ue.route.lazy){let $e=nr(405,{method:Yt.method,pathname:new URL(Yt.url).pathname,routeId:ue.route.id});if(_e)throw $e;ge={type:P.error,error:$e}}else ge=(yield Ht("action",Yt,[ue],re,_e,oe,de))[ue.route.id],Yt.signal.aborted&&Qe(Yt,_e,S);if(Rr(ge))throw new Response(null,{status:ge.response.status,headers:{Location:ge.response.headers.get("Location")}});if(ur(ge)){let $e=nr(400,{type:"defer-action"});if(_e)throw $e;ge={type:P.error,error:$e}}if(_e){if(Bn(ge))throw ge.error;return{matches:[ue],loaderData:{},actionData:{[ue.route.id]:ge.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let qe=new Request(Yt.url,{headers:Yt.headers,redirect:Yt.redirect,signal:Yt.signal});if(Bn(ge)){let $e=pe?ue:wn(re,ue.route.id),Ye=yield zt(qe,re,oe,de,pe,null,[$e.route.id,ge]);return U({},Ye,{statusCode:he(ge.error)?ge.error.status:ge.statusCode!=null?ge.statusCode:500,actionData:null,actionHeaders:U({},ge.headers?{[ue.route.id]:ge.headers}:{})})}let De=yield zt(qe,re,oe,de,pe,null);return U({},De,{actionData:{[ue.route.id]:ge.data}},ge.statusCode?{statusCode:ge.statusCode}:{},{actionHeaders:ge.headers?{[ue.route.id]:ge.headers}:{}})})}function zt(Yt,re,ue,oe,de,pe,_e){return Qi(this,null,function*(){let ge=pe!=null;if(ge&&!(pe!=null&&pe.route.loader)&&!(pe!=null&&pe.route.lazy))throw nr(400,{method:Yt.method,pathname:new URL(Yt.url).pathname,routeId:pe==null?void 0:pe.route.id});let De=(pe?[pe]:_e&&Bn(_e[1])?vn(re,_e[0]):re).filter(Cn=>Cn.route.loader||Cn.route.lazy);if(De.length===0)return{matches:re,loaderData:re.reduce((Cn,kn)=>Object.assign(Cn,{[kn.route.id]:null}),{}),errors:_e&&Bn(_e[1])?{[_e[0]]:_e[1].error}:null,statusCode:200,loaderHeaders:{},activeDeferreds:null};let $e=yield Ht("loader",Yt,De,re,ge,ue,oe);Yt.signal.aborted&&Qe(Yt,ge,S);let Ye=new Map,tn=Sn(re,$e,_e,Ye,de),gn=new Set(De.map(Cn=>Cn.route.id));return re.forEach(Cn=>{gn.has(Cn.route.id)||(tn.loaderData[Cn.route.id]=null)}),U({},tn,{matches:re,activeDeferreds:Ye.size>0?Object.fromEntries(Ye.entries()):null})})}function Ht(Yt,re,ue,oe,de,pe,_e){return Qi(this,null,function*(){let ge=yield Le(_e||Ue,Yt,null,re,ue,oe,null,n,c,pe),qe={};return yield Promise.all(oe.map(De=>Qi(this,null,function*(){if(!(De.route.id in ge))return;let $e=ge[De.route.id];if(Br($e)){let Ye=$e.result;throw Mn(Ye,re,De.route.id,oe,i,S.v7_relativeSplatPath)}if(Jr($e.result)&&de)throw $e;qe[De.route.id]=yield en($e)}))),qe})}return{dataRoutes:F,query:nt,queryRoute:ut}}function xe(t,e,n){return U({},e,{statusCode:he(n)?n.status:500,errors:{[e._deepestRenderedBoundaryId||t[0].id]:n}})}function Qe(t,e,n){if(n.v7_throwAbortReason&&t.signal.reason!==void 0)throw t.signal.reason;let i=e?"queryRoute":"query";throw new Error(i+"() call aborted: "+t.method+" "+t.url)}function mn(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function xn(t,e,n,i,c,S,F,nt){let ut,yt;if(F){ut=[];for(let zt of e)if(ut.push(zt),zt.route.id===F){yt=zt;break}}else ut=e,yt=e[e.length-1];let _t=D(c||".",it(ut,S),St(t.pathname,n)||t.pathname,nt==="path");if(c==null&&(_t.search=t.search,_t.hash=t.hash),(c==null||c===""||c===".")&&yt){let zt=mt(_t.search);if(yt.route.index&&!zt)_t.search=_t.search?_t.search.replace(/^\?/,"?index&"):"?index";else if(!yt.route.index&&zt){let Ht=new URLSearchParams(_t.search),Yt=Ht.getAll("index");Ht.delete("index"),Yt.filter(ue=>ue).forEach(ue=>Ht.append("index",ue));let re=Ht.toString();_t.search=re?"?"+re:""}}return i&&n!=="/"&&(_t.pathname=_t.pathname==="/"?n:Y([n,_t.pathname])),B(_t)}function In(t,e,n,i){if(!i||!mn(i))return{path:n};if(i.formMethod&&!zi(i.formMethod))return{path:n,error:nr(405,{method:i.formMethod})};let c=()=>({path:n,error:nr(400,{type:"invalid-body"})}),S=i.formMethod||"get",F=t?S.toUpperCase():S.toLowerCase(),nt=gr(n);if(i.body!==void 0){if(i.formEncType==="text/plain"){if(!ne(F))return c();let Ht=typeof i.body=="string"?i.body:i.body instanceof FormData||i.body instanceof URLSearchParams?Array.from(i.body.entries()).reduce((Yt,re)=>{let[ue,oe]=re;return""+Yt+ue+"="+oe+`
439
+ */function U(){return U=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},U.apply(this,arguments)}var z;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(z||(z={}));const at="popstate";function J(t){t===void 0&&(t={});let{initialEntries:e=["/"],initialIndex:n,v5Compat:i=!1}=t,c;c=e.map((Yt,re)=>_t(Yt,typeof Yt=="string"?null:Yt.state,re===0?"default":void 0));let S=ut(n==null?c.length-1:n),F=z.Pop,nt=null;function ut(Yt){return Math.min(Math.max(Yt,0),c.length-1)}function yt(){return c[S]}function _t(Yt,re,ue){re===void 0&&(re=null);let oe=j(c?yt().pathname:"/",Yt,re,ue);return Q(oe.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(Yt)),oe}function zt(Yt){return typeof Yt=="string"?Yt:B(Yt)}return{get index(){return S},get action(){return F},get location(){return yt()},createHref:zt,createURL(Yt){return new URL(zt(Yt),"http://localhost")},encodeLocation(Yt){let re=typeof Yt=="string"?d(Yt):Yt;return{pathname:re.pathname||"",search:re.search||"",hash:re.hash||""}},push(Yt,re){F=z.Push;let ue=_t(Yt,re);S+=1,c.splice(S,c.length,ue),i&&nt&&nt({action:F,location:ue,delta:1})},replace(Yt,re){F=z.Replace;let ue=_t(Yt,re);c[S]=ue,i&&nt&&nt({action:F,location:ue,delta:0})},go(Yt){F=z.Pop;let re=ut(S+Yt),ue=c[re];S=re,nt&&nt({action:F,location:ue,delta:Yt})},listen(Yt){return nt=Yt,()=>{nt=null}}}}function tt(t){t===void 0&&(t={});function e(i,c){let{pathname:S,search:F,hash:nt}=i.location;return j("",{pathname:S,search:F,hash:nt},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function n(i,c){return typeof c=="string"?c:B(c)}return R(e,n,null,t)}function K(t){t===void 0&&(t={});function e(c,S){let{pathname:F="/",search:nt="",hash:ut=""}=d(c.location.hash.substr(1));return!F.startsWith("/")&&!F.startsWith(".")&&(F="/"+F),j("",{pathname:F,search:nt,hash:ut},S.state&&S.state.usr||null,S.state&&S.state.key||"default")}function n(c,S){let F=c.document.querySelector("base"),nt="";if(F&&F.getAttribute("href")){let ut=c.location.href,yt=ut.indexOf("#");nt=yt===-1?ut:ut.slice(0,yt)}return nt+"#"+(typeof S=="string"?S:B(S))}function i(c,S){Q(c.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(S)+")")}return R(e,n,i,t)}function Z(t,e){if(t===!1||t===null||typeof t=="undefined")throw new Error(e)}function Q(t,e){if(!t){typeof console!="undefined"&&console.warn(e);try{throw new Error(e)}catch(n){}}}function V(){return Math.random().toString(36).substr(2,8)}function X(t,e){return{usr:t.state,key:t.key,idx:e}}function j(t,e,n,i){return n===void 0&&(n=null),U({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?d(e):e,{state:n,key:e&&e.key||i||V()})}function B(t){let{pathname:e="/",search:n="",hash:i=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function d(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}function R(t,e,n,i){i===void 0&&(i={});let{window:c=document.defaultView,v5Compat:S=!1}=i,F=c.history,nt=z.Pop,ut=null,yt=_t();yt==null&&(yt=0,F.replaceState(U({},F.state,{idx:yt}),""));function _t(){return(F.state||{idx:null}).idx}function zt(){nt=z.Pop;let oe=_t(),de=oe==null?null:oe-yt;yt=oe,ut&&ut({action:nt,location:ue.location,delta:de})}function Ht(oe,de){nt=z.Push;let pe=j(ue.location,oe,de);n&&n(pe,oe),yt=_t()+1;let _e=X(pe,yt),ge=ue.createHref(pe);try{F.pushState(_e,"",ge)}catch(qe){if(qe instanceof DOMException&&qe.name==="DataCloneError")throw qe;c.location.assign(ge)}S&&ut&&ut({action:nt,location:ue.location,delta:1})}function Yt(oe,de){nt=z.Replace;let pe=j(ue.location,oe,de);n&&n(pe,oe),yt=_t();let _e=X(pe,yt),ge=ue.createHref(pe);F.replaceState(_e,"",ge),S&&ut&&ut({action:nt,location:ue.location,delta:0})}function re(oe){let de=c.location.origin!=="null"?c.location.origin:c.location.href,pe=typeof oe=="string"?oe:B(oe);return pe=pe.replace(/ $/,"%20"),Z(de,"No window.location.(origin|href) available to create URL for href: "+pe),new URL(pe,de)}let ue={get action(){return nt},get location(){return t(c,F)},listen(oe){if(ut)throw new Error("A history only accepts one active listener");return c.addEventListener(at,zt),ut=oe,()=>{c.removeEventListener(at,zt),ut=null}},createHref(oe){return e(c,oe)},createURL:re,encodeLocation(oe){let de=re(oe);return{pathname:de.pathname,search:de.search,hash:de.hash}},push:Ht,replace:Yt,go(oe){return F.go(oe)}};return ue}var P;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(P||(P={}));const s=new Set(["lazy","caseSensitive","path","id","index","children"]);function x(t){return t.index===!0}function b(t,e,n,i){return n===void 0&&(n=[]),i===void 0&&(i={}),t.map((c,S)=>{let F=[...n,String(S)],nt=typeof c.id=="string"?c.id:F.join("-");if(Z(c.index!==!0||!c.children,"Cannot specify children on an index route"),Z(!i[nt],'Found a route id collision on id "'+nt+`". Route id's must be globally unique within Data Router usages`),x(c)){let ut=U({},c,e(c),{id:nt});return i[nt]=ut,ut}else{let ut=U({},c,e(c),{id:nt,children:void 0});return i[nt]=ut,c.children&&(ut.children=b(c.children,e,F,i)),ut}})}function o(t,e,n){return n===void 0&&(n="/"),u(t,e,n,!1)}function u(t,e,n,i){let c=typeof e=="string"?d(e):e,S=St(c.pathname||"/",n);if(S==null)return null;let F=M(t);y(F);let nt=null;for(let ut=0;nt==null&&ut<F.length;++ut){let yt=pt(S);nt=G(F[ut],yt,i)}return nt}function C(t,e){let{route:n,pathname:i,params:c}=t;return{id:n.id,pathname:i,params:c,data:e[n.id],handle:n.handle}}function M(t,e,n,i){e===void 0&&(e=[]),n===void 0&&(n=[]),i===void 0&&(i="");let c=(S,F,nt)=>{let ut={relativePath:nt===void 0?S.path||"":nt,caseSensitive:S.caseSensitive===!0,childrenIndex:F,route:S};ut.relativePath.startsWith("/")&&(Z(ut.relativePath.startsWith(i),'Absolute route path "'+ut.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),ut.relativePath=ut.relativePath.slice(i.length));let yt=Y([i,ut.relativePath]),_t=n.concat(ut);S.children&&S.children.length>0&&(Z(S.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+yt+'".')),M(S.children,e,_t,yt)),!(S.path==null&&!S.index)&&e.push({path:yt,score:k(yt,S.index),routesMeta:_t})};return t.forEach((S,F)=>{var nt;if(S.path===""||!((nt=S.path)!=null&&nt.includes("?")))c(S,F);else for(let ut of w(S.path))c(S,F,ut)}),e}function w(t){let e=t.split("/");if(e.length===0)return[];let[n,...i]=e,c=n.endsWith("?"),S=n.replace(/\?$/,"");if(i.length===0)return c?[S,""]:[S];let F=w(i.join("/")),nt=[];return nt.push(...F.map(ut=>ut===""?S:[S,ut].join("/"))),c&&nt.push(...F),nt.map(ut=>t.startsWith("/")&&ut===""?"/":ut)}function y(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:T(e.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const m=/^:[\w-]+$/,g=3,p=2,l=1,f=10,v=-2,I=t=>t==="*";function k(t,e){let n=t.split("/"),i=n.length;return n.some(I)&&(i+=v),e&&(i+=p),n.filter(c=>!I(c)).reduce((c,S)=>c+(m.test(S)?g:S===""?l:f),i)}function T(t,e){return t.length===e.length&&t.slice(0,-1).every((i,c)=>i===e[c])?t[t.length-1]-e[e.length-1]:0}function G(t,e,n){n===void 0&&(n=!1);let{routesMeta:i}=t,c={},S="/",F=[];for(let nt=0;nt<i.length;++nt){let ut=i[nt],yt=nt===i.length-1,_t=S==="/"?e:e.slice(S.length)||"/",zt=et({path:ut.relativePath,caseSensitive:ut.caseSensitive,end:yt},_t),Ht=ut.route;if(!zt&&yt&&n&&!i[i.length-1].route.index&&(zt=et({path:ut.relativePath,caseSensitive:ut.caseSensitive,end:!1},_t)),!zt)return null;Object.assign(c,zt.params),F.push({params:c,pathname:Y([S,zt.pathname]),pathnameBase:lt(Y([S,zt.pathnameBase])),route:Ht}),zt.pathnameBase!=="/"&&(S=Y([S,zt.pathnameBase]))}return F}function st(t,e){e===void 0&&(e={});let n=t;n.endsWith("*")&&n!=="*"&&!n.endsWith("/*")&&(Q(!1,'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".')),n=n.replace(/\*$/,"/*"));const i=n.startsWith("/")?"/":"",c=F=>F==null?"":typeof F=="string"?F:String(F),S=n.split(/\/+/).map((F,nt,ut)=>{if(nt===ut.length-1&&F==="*")return c(e["*"]);const _t=F.match(/^:([\w-]+)(\??)$/);if(_t){const[,zt,Ht]=_t;let Yt=e[zt];return Z(Ht==="?"||Yt!=null,'Missing ":'+zt+'" param'),c(Yt)}return F.replace(/\?$/g,"")}).filter(F=>!!F);return i+S.join("/")}function et(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,i]=ft(t.path,t.caseSensitive,t.end),c=e.match(n);if(!c)return null;let S=c[0],F=S.replace(/(.)\/+$/,"$1"),nt=c.slice(1);return{params:i.reduce((yt,_t,zt)=>{let{paramName:Ht,isOptional:Yt}=_t;if(Ht==="*"){let ue=nt[zt]||"";F=S.slice(0,S.length-ue.length).replace(/(.)\/+$/,"$1")}const re=nt[zt];return Yt&&!re?yt[Ht]=void 0:yt[Ht]=(re||"").replace(/%2F/g,"/"),yt},{}),pathname:S,pathnameBase:F,pattern:t}}function ft(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),Q(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let i=[],c="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(F,nt,ut)=>(i.push({paramName:nt,isOptional:ut!=null}),ut?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(i.push({paramName:"*"}),c+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?c+="\\/*$":t!==""&&t!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,e?void 0:"i"),i]}function pt(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Q(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function St(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&i!=="/"?null:t.slice(n)||"/"}function Ct(t,e){e===void 0&&(e="/");let{pathname:n,search:i="",hash:c=""}=typeof t=="string"?d(t):t;return{pathname:n?n.startsWith("/")?n:L(n,e):e,search:ot(i),hash:xt(c)}}function L(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(c=>{c===".."?n.length>1&&n.pop():c!=="."&&n.push(c)}),n.length>1?n.join("/"):"/"}function q(t,e,n,i){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(i)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function rt(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function it(t,e){let n=rt(t);return e?n.map((i,c)=>c===n.length-1?i.pathname:i.pathnameBase):n.map(i=>i.pathnameBase)}function D(t,e,n,i){i===void 0&&(i=!1);let c;typeof t=="string"?c=d(t):(c=U({},t),Z(!c.pathname||!c.pathname.includes("?"),q("?","pathname","search",c)),Z(!c.pathname||!c.pathname.includes("#"),q("#","pathname","hash",c)),Z(!c.search||!c.search.includes("#"),q("#","search","hash",c)));let S=t===""||c.pathname==="",F=S?"/":c.pathname,nt;if(F==null)nt=n;else{let zt=e.length-1;if(!i&&F.startsWith("..")){let Ht=F.split("/");for(;Ht[0]==="..";)Ht.shift(),zt-=1;c.pathname=Ht.join("/")}nt=zt>=0?e[zt]:"/"}let ut=Ct(c,nt),yt=F&&F!=="/"&&F.endsWith("/"),_t=(S||F===".")&&n.endsWith("/");return!ut.pathname.endsWith("/")&&(yt||_t)&&(ut.pathname+="/"),ut}function O(t){return t===""||t.pathname===""?"/":typeof t=="string"?d(t).pathname:t.pathname}const Y=t=>t.join("/").replace(/\/\/+/g,"/"),lt=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),ot=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,xt=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,dt=function(e,n){n===void 0&&(n={});let i=typeof n=="number"?{status:n}:n,c=new Headers(i.headers);return c.has("Content-Type")||c.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),U({},i,{headers:c}))};class vt{constructor(e,n){this.type="DataWithResponseInit",this.data=e,this.init=n||null}}function Et(t,e){return new vt(t,typeof e=="number"?{status:e}:e)}class kt extends Error{}class Nt{constructor(e,n){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],Z(e&&typeof e=="object"&&!Array.isArray(e),"defer() only accepts plain objects");let i;this.abortPromise=new Promise((S,F)=>i=F),this.controller=new AbortController;let c=()=>i(new kt("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",c),this.controller.signal.addEventListener("abort",c),this.data=Object.entries(e).reduce((S,F)=>{let[nt,ut]=F;return Object.assign(S,{[nt]:this.trackPromise(nt,ut)})},{}),this.done&&this.unlistenAbortSignal(),this.init=n}trackPromise(e,n){if(!(n instanceof Promise))return n;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let i=Promise.race([n,this.abortPromise]).then(c=>this.onSettle(i,e,void 0,c),c=>this.onSettle(i,e,c));return i.catch(()=>{}),Object.defineProperty(i,"_tracked",{get:()=>!0}),i}onSettle(e,n,i,c){if(this.controller.signal.aborted&&i instanceof kt)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>i}),Promise.reject(i);if(this.pendingKeysSet.delete(n),this.done&&this.unlistenAbortSignal(),i===void 0&&c===void 0){let S=new Error('Deferred data for key "'+n+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>S}),this.emit(!1,n),Promise.reject(S)}return c===void 0?(Object.defineProperty(e,"_error",{get:()=>i}),this.emit(!1,n),Promise.reject(i)):(Object.defineProperty(e,"_data",{get:()=>c}),this.emit(!1,n),c)}emit(e,n){this.subscribers.forEach(i=>i(e,n))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,n)=>this.pendingKeysSet.delete(n)),this.emit(!0)}resolveData(e){return Qi(this,null,function*(){let n=!1;if(!this.done){let i=()=>this.cancel();e.addEventListener("abort",i),n=yield new Promise(c=>{this.subscribe(S=>{e.removeEventListener("abort",i),(S||this.done)&&c(S)})})}return n})}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return Z(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,n)=>{let[i,c]=n;return Object.assign(e,{[i]:wt(c)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function gt(t){return t instanceof Promise&&t._tracked===!0}function wt(t){if(!gt(t))return t;if(t._error)throw t._error;return t._data}const Dt=function(e,n){n===void 0&&(n={});let i=typeof n=="number"?{status:n}:n;return new Nt(e,i)},jt=function(e,n){n===void 0&&(n=302);let i=n;typeof i=="number"?i={status:i}:typeof i.status=="undefined"&&(i.status=302);let c=new Headers(i.headers);return c.set("Location",e),new Response(null,U({},i,{headers:c}))},Jt=(t,e)=>{let n=jt(t,e);return n.headers.set("X-Remix-Reload-Document","true"),n},ie=(t,e)=>{let n=jt(t,e);return n.headers.set("X-Remix-Replace","true"),n};class $t{constructor(e,n,i,c){c===void 0&&(c=!1),this.status=e,this.statusText=n||"",this.internal=c,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}}function he(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const ve=["post","put","patch","delete"],Se=new Set(ve),ke=["get",...ve],Ge=new Set(ke),on=new Set([301,302,303,307,308]),un=new Set([307,308]),te={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Zt={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ee={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Pt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Bt=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),Vt="remix-router-transitions";function Ut(t){const e=t.window?t.window:typeof window!="undefined"?window:void 0,n=typeof e!="undefined"&&typeof e.document!="undefined"&&typeof e.document.createElement!="undefined",i=!n;Z(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let c;if(t.mapRouteProperties)c=t.mapRouteProperties;else if(t.detectErrorBoundary){let Dn=t.detectErrorBoundary;c=Kn=>({hasErrorBoundary:Dn(Kn)})}else c=Bt;let S={},F=b(t.routes,c,void 0,S),nt,ut=t.basename||"/",yt=t.dataStrategy||Ue,_t=t.patchRoutesOnNavigation,zt=U({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},t.future),Ht=null,Yt=new Set,re=null,ue=null,oe=null,de=t.hydrationData!=null,pe=o(F,t.history.location,ut),_e=null;if(pe==null&&!_t){let Dn=nr(404,{pathname:t.history.location.pathname}),{matches:Kn,route:lr}=fr(F);pe=Kn,_e={[lr.id]:Dn}}pe&&!t.hydrationData&&Fk(pe,F,t.history.location.pathname).active&&(pe=null);let ge;if(pe)if(pe.some(Dn=>Dn.route.lazy))ge=!1;else if(!pe.some(Dn=>Dn.route.loader))ge=!0;else if(zt.v7_partialHydration){let Dn=t.hydrationData?t.hydrationData.loaderData:null,Kn=t.hydrationData?t.hydrationData.errors:null;if(Kn){let lr=pe.findIndex(Dr=>Kn[Dr.route.id]!==void 0);ge=pe.slice(0,lr+1).every(Dr=>!Jn(Dr.route,Dn,Kn))}else ge=pe.every(lr=>!Jn(lr.route,Dn,Kn))}else ge=t.hydrationData!=null;else if(ge=!1,pe=[],zt.v7_partialHydration){let Dn=Fk(null,F,t.history.location.pathname);Dn.active&&Dn.matches&&(pe=Dn.matches)}let qe,De={historyAction:t.history.action,location:t.history.location,matches:pe,initialized:ge,navigation:te,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||_e,fetchers:new Map,blockers:new Map},$e=z.Pop,Ye=!1,tn,gn=!1,Cn=new Map,kn=null,Zn=!1,fn=!1,jn=[],On=new Set,Vn=new Map,wr=0,Pr=-1,_r=new Map,Ur=new Set,Hr=new Map,Li=new Map,ai=new Set,Ei=new Map,Zi=new Map,$r;function Fi(){if(Ht=t.history.listen(Dn=>{let{action:Kn,location:lr,delta:Dr}=Dn;if($r){$r(),$r=void 0;return}Q(Zi.size===0||Dr!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ri=jR({currentLocation:De.location,nextLocation:lr,historyAction:Kn});if(ri&&Dr!=null){let xi=new Promise(Hi=>{$r=Hi});t.history.go(Dr*-1),Bk(ri,{state:"blocked",location:lr,proceed(){Bk(ri,{state:"proceeding",proceed:void 0,reset:void 0,location:lr}),xi.then(()=>t.history.go(Dr))},reset(){let Hi=new Map(De.blockers);Hi.set(ri,ee),zo({blockers:Hi})}});return}return yu(Kn,lr)}),n){Ne(e,Cn);let Dn=()=>Je(e,Cn);e.addEventListener("pagehide",Dn),kn=()=>e.removeEventListener("pagehide",Dn)}return De.initialized||yu(z.Pop,De.location,{initialHydration:!0}),qe}function qo(){Ht&&Ht(),kn&&kn(),Yt.clear(),tn&&tn.abort(),De.fetchers.forEach((Dn,Kn)=>jk(Kn)),De.blockers.forEach((Dn,Kn)=>IR(Kn))}function Ea(Dn){return Yt.add(Dn),()=>Yt.delete(Dn)}function zo(Dn,Kn){Kn===void 0&&(Kn={}),De=U({},De,Dn);let lr=[],Dr=[];zt.v7_fetcherPersist&&De.fetchers.forEach((ri,xi)=>{ri.state==="idle"&&(ai.has(xi)?Dr.push(xi):lr.push(xi))}),[...Yt].forEach(ri=>ri(De,{deletedFetchers:Dr,viewTransitionOpts:Kn.viewTransitionOpts,flushSync:Kn.flushSync===!0})),zt.v7_fetcherPersist&&(lr.forEach(ri=>De.fetchers.delete(ri)),Dr.forEach(ri=>jk(ri)))}function $o(Dn,Kn,lr){var Dr,ri;let{flushSync:xi}=lr===void 0?{}:lr,Hi=De.actionData!=null&&De.navigation.formMethod!=null&&ne(De.navigation.formMethod)&&De.navigation.state==="loading"&&((Dr=Dn.state)==null?void 0:Dr._isRedirect)!==!0,si;Kn.actionData?Object.keys(Kn.actionData).length>0?si=Kn.actionData:si=null:Hi?si=De.actionData:si=null;let ui=Kn.loaderData?yn(De.loaderData,Kn.loaderData,Kn.matches||[],Kn.errors):De.loaderData,ii=De.blockers;ii.size>0&&(ii=new Map(ii),ii.forEach((Mo,Ks)=>ii.set(Ks,ee)));let wi=Ye===!0||De.navigation.formMethod!=null&&ne(De.navigation.formMethod)&&((ri=Dn.state)==null?void 0:ri._isRedirect)!==!0;nt&&(F=nt,nt=void 0),Zn||$e===z.Pop||($e===z.Push?t.history.push(Dn,Dn.state):$e===z.Replace&&t.history.replace(Dn,Dn.state));let mo;if($e===z.Pop){let Mo=Cn.get(De.location.pathname);Mo&&Mo.has(Dn.pathname)?mo={currentLocation:De.location,nextLocation:Dn}:Cn.has(Dn.pathname)&&(mo={currentLocation:Dn,nextLocation:De.location})}else if(gn){let Mo=Cn.get(De.location.pathname);Mo?Mo.add(Dn.pathname):(Mo=new Set([Dn.pathname]),Cn.set(De.location.pathname,Mo)),mo={currentLocation:De.location,nextLocation:Dn}}zo(U({},Kn,{actionData:si,loaderData:ui,historyAction:$e,location:Dn,initialized:!0,navigation:te,revalidation:"idle",restoreScrollPosition:FR(Dn,Kn.matches||De.matches),preventScrollReset:wi,blockers:ii}),{viewTransitionOpts:mo,flushSync:xi===!0}),$e=z.Pop,Ye=!1,gn=!1,Zn=!1,fn=!1,jn=[]}function Da(Dn,Kn){return Qi(this,null,function*(){if(typeof Dn=="number"){t.history.go(Dn);return}let lr=xn(De.location,De.matches,ut,zt.v7_prependBasename,Dn,zt.v7_relativeSplatPath,Kn==null?void 0:Kn.fromRouteId,Kn==null?void 0:Kn.relative),{path:Dr,submission:ri,error:xi}=In(zt.v7_normalizeFormMethod,!1,lr,Kn),Hi=De.location,si=j(De.location,Dr,Kn&&Kn.state);si=U({},si,t.history.encodeLocation(si));let ui=Kn&&Kn.replace!=null?Kn.replace:void 0,ii=z.Push;ui===!0?ii=z.Replace:ui===!1||ri!=null&&ne(ri.formMethod)&&ri.formAction===De.location.pathname+De.location.search&&(ii=z.Replace);let wi=Kn&&"preventScrollReset"in Kn?Kn.preventScrollReset===!0:void 0,mo=(Kn&&Kn.flushSync)===!0,Mo=jR({currentLocation:Hi,nextLocation:si,historyAction:ii});if(Mo){Bk(Mo,{state:"blocked",location:si,proceed(){Bk(Mo,{state:"proceeding",proceed:void 0,reset:void 0,location:si}),Da(Dn,Kn)},reset(){let Ks=new Map(De.blockers);Ks.set(Mo,ee),zo({blockers:Ks})}});return}return yield yu(ii,si,{submission:ri,pendingError:xi,preventScrollReset:wi,replace:Kn&&Kn.replace,enableViewTransition:Kn&&Kn.viewTransition,flushSync:mo})})}function Qu(){if(Gb(),zo({revalidation:"loading"}),De.navigation.state!=="submitting"){if(De.navigation.state==="idle"){yu(De.historyAction,De.location,{startUninterruptedRevalidation:!0});return}yu($e||De.historyAction,De.navigation.location,{overrideNavigation:De.navigation,enableViewTransition:gn===!0})}}function yu(Dn,Kn,lr){return Qi(this,null,function*(){tn&&tn.abort(),tn=null,$e=Dn,Zn=(lr&&lr.startUninterruptedRevalidation)===!0,t$(De.location,De.matches),Ye=(lr&&lr.preventScrollReset)===!0,gn=(lr&&lr.enableViewTransition)===!0;let Dr=nt||F,ri=lr&&lr.overrideNavigation,xi=o(Dr,Kn,ut),Hi=(lr&&lr.flushSync)===!0,si=Fk(xi,Dr,Kn.pathname);if(si.active&&si.matches&&(xi=si.matches),!xi){let{error:pa,notFoundMatches:Ro,route:Ha}=q5(Kn.pathname);$o(Kn,{matches:Ro,loaderData:{},errors:{[Ha.id]:pa}},{flushSync:Hi});return}if(De.initialized&&!fn&&ir(De.location,Kn)&&!(lr&&lr.submission&&ne(lr.submission.formMethod))){$o(Kn,{matches:xi},{flushSync:Hi});return}tn=new AbortController;let ui=an(t.history,Kn,tn.signal,lr&&lr.submission),ii;if(lr&&lr.pendingError)ii=[wn(xi).route.id,{type:P.error,error:lr.pendingError}];else if(lr&&lr.submission&&ne(lr.submission.formMethod)){let pa=yield Up(ui,Kn,lr.submission,xi,si.active,{replace:lr.replace,flushSync:Hi});if(pa.shortCircuited)return;if(pa.pendingActionResult){let[Ro,Ha]=pa.pendingActionResult;if(Bn(Ha)&&he(Ha.error)&&Ha.error.status===404){tn=null,$o(Kn,{matches:pa.matches,loaderData:{},errors:{[Ro]:Ha.error}});return}}xi=pa.matches||xi,ii=pa.pendingActionResult,ri=Tt(Kn,lr.submission),Hi=!1,si.active=!1,ui=an(t.history,ui.url,ui.signal)}let{shortCircuited:wi,matches:mo,loaderData:Mo,errors:Ks}=yield Bi(ui,Kn,xi,si.active,ri,lr&&lr.submission,lr&&lr.fetcherSubmission,lr&&lr.replace,lr&&lr.initialHydration===!0,Hi,ii);wi||(tn=null,$o(Kn,U({matches:mo||xi},En(ii),{loaderData:Mo,errors:Ks})))})}function Up(Dn,Kn,lr,Dr,ri,xi){return Qi(this,null,function*(){xi===void 0&&(xi={}),Gb();let Hi=qt(Kn,lr);if(zo({navigation:Hi},{flushSync:xi.flushSync===!0}),ri){let ii=yield zk(Dr,Kn.pathname,Dn.signal);if(ii.type==="aborted")return{shortCircuited:!0};if(ii.type==="error"){let wi=wn(ii.partialMatches).route.id;return{matches:ii.partialMatches,pendingActionResult:[wi,{type:P.error,error:ii.error}]}}else if(ii.matches)Dr=ii.matches;else{let{notFoundMatches:wi,error:mo,route:Mo}=q5(Kn.pathname);return{matches:wi,pendingActionResult:[Mo.id,{type:P.error,error:mo}]}}}let si,ui=It(Dr,Kn);if(!ui.route.action&&!ui.route.lazy)si={type:P.error,error:nr(405,{method:Dn.method,pathname:Kn.pathname,routeId:ui.route.id})};else if(si=(yield Vp("action",De,Dn,[ui],Dr,null))[ui.route.id],Dn.signal.aborted)return{shortCircuited:!0};if(Rr(si)){let ii;return xi&&xi.replace!=null?ii=xi.replace:ii=Ae(si.response.headers.get("Location"),new URL(Dn.url),ut)===De.location.pathname+De.location.search,yield Qf(Dn,si,!0,{submission:lr,replace:ii}),{shortCircuited:!0}}if(ur(si))throw nr(400,{type:"defer-action"});if(Bn(si)){let ii=wn(Dr,ui.route.id);return(xi&&xi.replace)!==!0&&($e=z.Push),{matches:Dr,pendingActionResult:[ii.route.id,si]}}return{matches:Dr,pendingActionResult:[ui.route.id,si]}})}function Bi(Dn,Kn,lr,Dr,ri,xi,Hi,si,ui,ii,wi){return Qi(this,null,function*(){let mo=ri||Tt(Kn,xi),Mo=xi||Hi||Gt(mo),Ks=!Zn&&(!zt.v7_partialHydration||!ui);if(Dr){if(Ks){let Va=Ca(wi);zo(U({navigation:mo},Va!==void 0?{actionData:Va}:{}),{flushSync:ii})}let No=yield zk(lr,Kn.pathname,Dn.signal);if(No.type==="aborted")return{shortCircuited:!0};if(No.type==="error"){let Va=wn(No.partialMatches).route.id;return{matches:No.partialMatches,loaderData:{},errors:{[Va]:No.error}}}else if(No.matches)lr=No.matches;else{let{error:Va,notFoundMatches:Zb,route:L2}=q5(Kn.pathname);return{matches:Zb,loaderData:{},errors:{[L2.id]:Va}}}}let pa=nt||F,[Ro,Ha]=An(t.history,De,lr,Mo,Kn,zt.v7_partialHydration&&ui===!0,zt.v7_skipActionErrorRevalidation,fn,jn,On,ai,Hr,Ur,pa,ut,wi);if($5(No=>!(lr&&lr.some(Va=>Va.route.id===No))||Ro&&Ro.some(Va=>Va.route.id===No)),Pr=++wr,Ro.length===0&&Ha.length===0){let No=RR();return $o(Kn,U({matches:lr,loaderData:{},errors:wi&&Bn(wi[1])?{[wi[0]]:wi[1].error}:null},En(wi),No?{fetchers:new Map(De.fetchers)}:{}),{flushSync:ii}),{shortCircuited:!0}}if(Ks){let No={};if(!Dr){No.navigation=mo;let Va=Ca(wi);Va!==void 0&&(No.actionData=Va)}Ha.length>0&&(No.fetchers=Hp(Ha)),zo(No,{flushSync:ii})}Ha.forEach(No=>{Pg(No.key),No.controller&&Vn.set(No.key,No.controller)});let Kb=()=>Ha.forEach(No=>Pg(No.key));tn&&tn.signal.addEventListener("abort",Kb);let{loaderResults:D2,fetcherResults:Wp}=yield N2(De,lr,Ro,Ha,Dn);if(Dn.signal.aborted)return{shortCircuited:!0};tn&&tn.signal.removeEventListener("abort",Kb),Ha.forEach(No=>Vn.delete(No.key));let Jf=pr(D2);if(Jf)return yield Qf(Dn,Jf.result,!0,{replace:si}),{shortCircuited:!0};if(Jf=pr(Wp),Jf)return Ur.add(Jf.key),yield Qf(Dn,Jf.result,!0,{replace:si}),{shortCircuited:!0};let{loaderData:X5,errors:R2}=sn(De,lr,D2,wi,Ha,Wp,Ei);Ei.forEach((No,Va)=>{No.subscribe(Zb=>{(Zb||No.done)&&Ei.delete(Va)})}),zt.v7_partialHydration&&ui&&De.errors&&(R2=U({},De.errors,R2));let Jy=RR(),Uk=LR(Pr),Hk=Jy||Uk||Ha.length>0;return U({matches:lr,loaderData:X5,errors:R2},Hk?{fetchers:new Map(De.fetchers)}:{})})}function Ca(Dn){if(Dn&&!Bn(Dn[1]))return{[Dn[0]]:Dn[1].data};if(De.actionData)return Object.keys(De.actionData).length===0?null:De.actionData}function Hp(Dn){return Dn.forEach(Kn=>{let lr=De.fetchers.get(Kn.key),Dr=le(void 0,lr?lr.data:void 0);De.fetchers.set(Kn.key,Dr)}),new Map(De.fetchers)}function Rs(Dn,Kn,lr,Dr){if(i)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Pg(Dn);let ri=(Dr&&Dr.flushSync)===!0,xi=nt||F,Hi=xn(De.location,De.matches,ut,zt.v7_prependBasename,lr,zt.v7_relativeSplatPath,Kn,Dr==null?void 0:Dr.relative),si=o(xi,Hi,ut),ui=Fk(si,xi,Hi);if(ui.active&&ui.matches&&(si=ui.matches),!si){zc(Dn,Kn,nr(404,{pathname:Hi}),{flushSync:ri});return}let{path:ii,submission:wi,error:mo}=In(zt.v7_normalizeFormMethod,!0,Hi,Dr);if(mo){zc(Dn,Kn,mo,{flushSync:ri});return}let Mo=It(si,ii),Ks=(Dr&&Dr.preventScrollReset)===!0;if(wi&&ne(wi.formMethod)){Xb(Dn,Kn,ii,Mo,si,ui.active,ri,Ks,wi);return}Hr.set(Dn,{routeId:Kn,path:ii}),Ik(Dn,Kn,ii,Mo,si,ui.active,ri,Ks,wi)}function Xb(Dn,Kn,lr,Dr,ri,xi,Hi,si,ui){return Qi(this,null,function*(){Gb(),Hr.delete(Dn);function ii(ls){if(!ls.route.action&&!ls.route.lazy){let Qb=nr(405,{method:ui.formMethod,pathname:lr,routeId:Kn});return zc(Dn,Kn,Qb,{flushSync:Hi}),!0}return!1}if(!xi&&ii(Dr))return;let wi=De.fetchers.get(Dn);Lh(Dn,me(ui,wi),{flushSync:Hi});let mo=new AbortController,Mo=an(t.history,lr,mo.signal,ui);if(xi){let ls=yield zk(ri,lr,Mo.signal);if(ls.type==="aborted")return;if(ls.type==="error"){zc(Dn,Kn,ls.error,{flushSync:Hi});return}else if(ls.matches){if(ri=ls.matches,Dr=It(ri,lr),ii(Dr))return}else{zc(Dn,Kn,nr(404,{pathname:lr}),{flushSync:Hi});return}}Vn.set(Dn,mo);let Ks=wr,Ro=(yield Vp("action",De,Mo,[Dr],ri,Dn))[Dr.route.id];if(Mo.signal.aborted){Vn.get(Dn)===mo&&Vn.delete(Dn);return}if(zt.v7_fetcherPersist&&ai.has(Dn)){if(Rr(Ro)||Bn(Ro)){Lh(Dn,ye(void 0));return}}else{if(Rr(Ro))if(Vn.delete(Dn),Pr>Ks){Lh(Dn,ye(void 0));return}else return Ur.add(Dn),Lh(Dn,le(ui)),Qf(Mo,Ro,!1,{fetcherSubmission:ui,preventScrollReset:si});if(Bn(Ro)){zc(Dn,Kn,Ro.error);return}}if(ur(Ro))throw nr(400,{type:"defer-action"});let Ha=De.navigation.location||De.location,Kb=an(t.history,Ha,mo.signal),D2=nt||F,Wp=De.navigation.state!=="idle"?o(D2,De.navigation.location,ut):De.matches;Z(Wp,"Didn't find any matches after fetcher action");let Jf=++wr;_r.set(Dn,Jf);let X5=le(ui,Ro.data);De.fetchers.set(Dn,X5);let[R2,Jy]=An(t.history,De,Wp,ui,Ha,!1,zt.v7_skipActionErrorRevalidation,fn,jn,On,ai,Hr,Ur,D2,ut,[Dr.route.id,Ro]);Jy.filter(ls=>ls.key!==Dn).forEach(ls=>{let Qb=ls.key,zR=De.fetchers.get(Qb),r$=le(void 0,zR?zR.data:void 0);De.fetchers.set(Qb,r$),Pg(Qb),ls.controller&&Vn.set(Qb,ls.controller)}),zo({fetchers:new Map(De.fetchers)});let Uk=()=>Jy.forEach(ls=>Pg(ls.key));mo.signal.addEventListener("abort",Uk);let{loaderResults:Hk,fetcherResults:No}=yield N2(De,Wp,R2,Jy,Kb);if(mo.signal.aborted)return;mo.signal.removeEventListener("abort",Uk),_r.delete(Dn),Vn.delete(Dn),Jy.forEach(ls=>Vn.delete(ls.key));let Va=pr(Hk);if(Va)return Qf(Kb,Va.result,!1,{preventScrollReset:si});if(Va=pr(No),Va)return Ur.add(Va.key),Qf(Kb,Va.result,!1,{preventScrollReset:si});let{loaderData:Zb,errors:L2}=sn(De,Wp,Hk,void 0,Jy,No,Ei);if(De.fetchers.has(Dn)){let ls=ye(Ro.data);De.fetchers.set(Dn,ls)}LR(Jf),De.navigation.state==="loading"&&Jf>Pr?(Z($e,"Expected pending action"),tn&&tn.abort(),$o(De.navigation.location,{matches:Wp,loaderData:Zb,errors:L2,fetchers:new Map(De.fetchers)})):(zo({errors:L2,loaderData:yn(De.loaderData,Zb,Wp,L2),fetchers:new Map(De.fetchers)}),fn=!1)})}function Ik(Dn,Kn,lr,Dr,ri,xi,Hi,si,ui){return Qi(this,null,function*(){let ii=De.fetchers.get(Dn);Lh(Dn,le(ui,ii?ii.data:void 0),{flushSync:Hi});let wi=new AbortController,mo=an(t.history,lr,wi.signal);if(xi){let Ro=yield zk(ri,lr,mo.signal);if(Ro.type==="aborted")return;if(Ro.type==="error"){zc(Dn,Kn,Ro.error,{flushSync:Hi});return}else if(Ro.matches)ri=Ro.matches,Dr=It(ri,lr);else{zc(Dn,Kn,nr(404,{pathname:lr}),{flushSync:Hi});return}}Vn.set(Dn,wi);let Mo=wr,pa=(yield Vp("loader",De,mo,[Dr],ri,Dn))[Dr.route.id];if(ur(pa)&&(pa=(yield nn(pa,mo.signal,!0))||pa),Vn.get(Dn)===wi&&Vn.delete(Dn),!mo.signal.aborted){if(ai.has(Dn)){Lh(Dn,ye(void 0));return}if(Rr(pa))if(Pr>Mo){Lh(Dn,ye(void 0));return}else{Ur.add(Dn),yield Qf(mo,pa,!1,{preventScrollReset:si});return}if(Bn(pa)){zc(Dn,Kn,pa.error);return}Z(!ur(pa),"Unhandled fetcher deferred data"),Lh(Dn,ye(pa.data))}})}function Qf(Dn,Kn,lr,Dr){return Qi(this,null,function*(){let{submission:ri,fetcherSubmission:xi,preventScrollReset:Hi,replace:si}=Dr===void 0?{}:Dr;Kn.response.headers.has("X-Remix-Revalidate")&&(fn=!0);let ui=Kn.response.headers.get("Location");Z(ui,"Expected a Location header on the redirect Response"),ui=Ae(ui,new URL(Dn.url),ut);let ii=j(De.location,ui,{_isRedirect:!0});if(n){let Ro=!1;if(Kn.response.headers.has("X-Remix-Reload-Document"))Ro=!0;else if(Pt.test(ui)){const Ha=t.history.createURL(ui);Ro=Ha.origin!==e.location.origin||St(Ha.pathname,ut)==null}if(Ro){si?e.location.replace(ui):e.location.assign(ui);return}}tn=null;let wi=si===!0||Kn.response.headers.has("X-Remix-Replace")?z.Replace:z.Push,{formMethod:mo,formAction:Mo,formEncType:Ks}=De.navigation;!ri&&!xi&&mo&&Mo&&Ks&&(ri=Gt(De.navigation));let pa=ri||xi;if(un.has(Kn.response.status)&&pa&&ne(pa.formMethod))yield yu(wi,ii,{submission:U({},pa,{formAction:ui}),preventScrollReset:Hi||Ye,enableViewTransition:lr?gn:void 0});else{let Ro=Tt(ii,ri);yield yu(wi,ii,{overrideNavigation:Ro,fetcherSubmission:xi,preventScrollReset:Hi||Ye,enableViewTransition:lr?gn:void 0})}})}function Vp(Dn,Kn,lr,Dr,ri,xi){return Qi(this,null,function*(){let Hi,si={};try{Hi=yield Le(yt,Dn,Kn,lr,Dr,ri,xi,S,c)}catch(ui){return Dr.forEach(ii=>{si[ii.route.id]={type:P.error,error:ui}}),si}for(let[ui,ii]of Object.entries(Hi))if(Br(ii)){let wi=ii.result;si[ui]={type:P.redirect,response:Mn(wi,lr,ui,ri,ut,zt.v7_relativeSplatPath)}}else si[ui]=yield en(ii);return si})}function N2(Dn,Kn,lr,Dr,ri){return Qi(this,null,function*(){let xi=Dn.matches,Hi=Vp("loader",Dn,ri,lr,Kn,null),si=Promise.all(Dr.map(wi=>Qi(this,null,function*(){if(wi.matches&&wi.match&&wi.controller){let Mo=(yield Vp("loader",Dn,an(t.history,wi.path,wi.controller.signal),[wi.match],wi.matches,wi.key))[wi.match.route.id];return{[wi.key]:Mo}}else return Promise.resolve({[wi.key]:{type:P.error,error:nr(404,{pathname:wi.path})}})}))),ui=yield Hi,ii=(yield si).reduce((wi,mo)=>Object.assign(wi,mo),{});return yield Promise.all([Me(Kn,ui,ri.signal,xi,Dn.loaderData),Ke(Kn,ii,Dr)]),{loaderResults:ui,fetcherResults:ii}})}function Gb(){fn=!0,jn.push(...$5()),Hr.forEach((Dn,Kn)=>{Vn.has(Kn)&&On.add(Kn),Pg(Kn)})}function Lh(Dn,Kn,lr){lr===void 0&&(lr={}),De.fetchers.set(Dn,Kn),zo({fetchers:new Map(De.fetchers)},{flushSync:(lr&&lr.flushSync)===!0})}function zc(Dn,Kn,lr,Dr){Dr===void 0&&(Dr={});let ri=wn(De.matches,Kn);jk(Dn),zo({errors:{[ri.route.id]:lr},fetchers:new Map(De.fetchers)},{flushSync:(Dr&&Dr.flushSync)===!0})}function NR(Dn){return zt.v7_fetcherPersist&&(Li.set(Dn,(Li.get(Dn)||0)+1),ai.has(Dn)&&ai.delete(Dn)),De.fetchers.get(Dn)||Zt}function jk(Dn){let Kn=De.fetchers.get(Dn);Vn.has(Dn)&&!(Kn&&Kn.state==="loading"&&_r.has(Dn))&&Pg(Dn),Hr.delete(Dn),_r.delete(Dn),Ur.delete(Dn),ai.delete(Dn),On.delete(Dn),De.fetchers.delete(Dn)}function Zq(Dn){if(zt.v7_fetcherPersist){let Kn=(Li.get(Dn)||0)-1;Kn<=0?(Li.delete(Dn),ai.add(Dn)):Li.set(Dn,Kn)}else jk(Dn);zo({fetchers:new Map(De.fetchers)})}function Pg(Dn){let Kn=Vn.get(Dn);Kn&&(Kn.abort(),Vn.delete(Dn))}function DR(Dn){for(let Kn of Dn){let lr=NR(Kn),Dr=ye(lr.data);De.fetchers.set(Kn,Dr)}}function RR(){let Dn=[],Kn=!1;for(let lr of Ur){let Dr=De.fetchers.get(lr);Z(Dr,"Expected fetcher: "+lr),Dr.state==="loading"&&(Ur.delete(lr),Dn.push(lr),Kn=!0)}return DR(Dn),Kn}function LR(Dn){let Kn=[];for(let[lr,Dr]of _r)if(Dr<Dn){let ri=De.fetchers.get(lr);Z(ri,"Expected fetcher: "+lr),ri.state==="loading"&&(Pg(lr),_r.delete(lr),Kn.push(lr))}return DR(Kn),Kn.length>0}function Qq(Dn,Kn){let lr=De.blockers.get(Dn)||ee;return Zi.get(Dn)!==Kn&&Zi.set(Dn,Kn),lr}function IR(Dn){De.blockers.delete(Dn),Zi.delete(Dn)}function Bk(Dn,Kn){let lr=De.blockers.get(Dn)||ee;Z(lr.state==="unblocked"&&Kn.state==="blocked"||lr.state==="blocked"&&Kn.state==="blocked"||lr.state==="blocked"&&Kn.state==="proceeding"||lr.state==="blocked"&&Kn.state==="unblocked"||lr.state==="proceeding"&&Kn.state==="unblocked","Invalid blocker state transition: "+lr.state+" -> "+Kn.state);let Dr=new Map(De.blockers);Dr.set(Dn,Kn),zo({blockers:Dr})}function jR(Dn){let{currentLocation:Kn,nextLocation:lr,historyAction:Dr}=Dn;if(Zi.size===0)return;Zi.size>1&&Q(!1,"A router only supports one blocker at a time");let ri=Array.from(Zi.entries()),[xi,Hi]=ri[ri.length-1],si=De.blockers.get(xi);if(!(si&&si.state==="proceeding")&&Hi({currentLocation:Kn,nextLocation:lr,historyAction:Dr}))return xi}function q5(Dn){let Kn=nr(404,{pathname:Dn}),lr=nt||F,{matches:Dr,route:ri}=fr(lr);return $5(),{notFoundMatches:Dr,route:ri,error:Kn}}function $5(Dn){let Kn=[];return Ei.forEach((lr,Dr)=>{(!Dn||Dn(Dr))&&(lr.cancel(),Kn.push(Dr),Ei.delete(Dr))}),Kn}function Jq(Dn,Kn,lr){if(re=Dn,oe=Kn,ue=lr||null,!de&&De.navigation===te){de=!0;let Dr=FR(De.location,De.matches);Dr!=null&&zo({restoreScrollPosition:Dr})}return()=>{re=null,oe=null,ue=null}}function BR(Dn,Kn){return ue&&ue(Dn,Kn.map(Dr=>C(Dr,De.loaderData)))||Dn.key}function t$(Dn,Kn){if(re&&oe){let lr=BR(Dn,Kn);re[lr]=oe()}}function FR(Dn,Kn){if(re){let lr=BR(Dn,Kn),Dr=re[lr];if(typeof Dr=="number")return Dr}return null}function Fk(Dn,Kn,lr){if(_t)if(Dn){if(Object.keys(Dn[0].params).length>0)return{active:!0,matches:u(Kn,lr,ut,!0)}}else return{active:!0,matches:u(Kn,lr,ut,!0)||[]};return{active:!1,matches:null}}function zk(Dn,Kn,lr){return Qi(this,null,function*(){if(!_t)return{type:"success",matches:Dn};let Dr=Dn;for(;;){let ri=nt==null,xi=nt||F,Hi=S;try{yield _t({path:Kn,matches:Dr,patch:(ii,wi)=>{lr.aborted||Xe(ii,wi,xi,Hi,c)}})}catch(ii){return{type:"error",error:ii,partialMatches:Dr}}finally{ri&&!lr.aborted&&(F=[...F])}if(lr.aborted)return{type:"aborted"};let si=o(xi,Kn,ut);if(si)return{type:"success",matches:si};let ui=u(xi,Kn,ut,!0);if(!ui||Dr.length===ui.length&&Dr.every((ii,wi)=>ii.route.id===ui[wi].route.id))return{type:"success",matches:null};Dr=ui}})}function e$(Dn){S={},nt=b(Dn,c,void 0,S)}function n$(Dn,Kn){let lr=nt==null;Xe(Dn,Kn,nt||F,S,c),lr&&(F=[...F],zo({}))}return qe={get basename(){return ut},get future(){return zt},get state(){return De},get routes(){return F},get window(){return e},initialize:Fi,subscribe:Ea,enableScrollRestoration:Jq,navigate:Da,fetch:Rs,revalidate:Qu,createHref:Dn=>t.history.createHref(Dn),encodeLocation:Dn=>t.history.encodeLocation(Dn),getFetcher:NR,deleteFetcher:Zq,dispose:qo,getBlocker:Qq,deleteBlocker:IR,patchRoutes:n$,_internalFetchControllers:Vn,_internalActiveDeferreds:Ei,_internalSetRoutes:e$},qe}const fe=Symbol("deferred");function Ce(t,e){Z(t.length>0,"You must provide a non-empty routes array to createStaticHandler");let n={},i=(e?e.basename:null)||"/",c;if(e!=null&&e.mapRouteProperties)c=e.mapRouteProperties;else if(e!=null&&e.detectErrorBoundary){let Yt=e.detectErrorBoundary;c=re=>({hasErrorBoundary:Yt(re)})}else c=Bt;let S=U({v7_relativeSplatPath:!1,v7_throwAbortReason:!1},e?e.future:null),F=b(t,c,void 0,n);function nt(Yt,re){return Qi(this,null,function*(){let{requestContext:ue,skipLoaderErrorBubbling:oe,dataStrategy:de}=re===void 0?{}:re,pe=new URL(Yt.url),_e=Yt.method,ge=j("",B(pe),null,"default"),qe=o(F,ge,i);if(!zi(_e)&&_e!=="HEAD"){let $e=nr(405,{method:_e}),{matches:Ye,route:tn}=fr(F);return{basename:i,location:ge,matches:Ye,loaderData:{},actionData:null,errors:{[tn.id]:$e},statusCode:$e.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}else if(!qe){let $e=nr(404,{pathname:ge.pathname}),{matches:Ye,route:tn}=fr(F);return{basename:i,location:ge,matches:Ye,loaderData:{},actionData:null,errors:{[tn.id]:$e},statusCode:$e.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let De=yield yt(Yt,ge,qe,ue,de||null,oe===!0,null);return Jr(De)?De:U({location:ge,basename:i},De)})}function ut(Yt,re){return Qi(this,null,function*(){let{routeId:ue,requestContext:oe,dataStrategy:de}=re===void 0?{}:re,pe=new URL(Yt.url),_e=Yt.method,ge=j("",B(pe),null,"default"),qe=o(F,ge,i);if(!zi(_e)&&_e!=="HEAD"&&_e!=="OPTIONS")throw nr(405,{method:_e});if(!qe)throw nr(404,{pathname:ge.pathname});let De=ue?qe.find(gn=>gn.route.id===ue):It(qe,ge);if(ue&&!De)throw nr(403,{pathname:ge.pathname,routeId:ue});if(!De)throw nr(404,{pathname:ge.pathname});let $e=yield yt(Yt,ge,qe,oe,de||null,!1,De);if(Jr($e))return $e;let Ye=$e.errors?Object.values($e.errors)[0]:void 0;if(Ye!==void 0)throw Ye;if($e.actionData)return Object.values($e.actionData)[0];if($e.loaderData){var tn;let gn=Object.values($e.loaderData)[0];return(tn=$e.activeDeferreds)!=null&&tn[De.route.id]&&(gn[fe]=$e.activeDeferreds[De.route.id]),gn}})}function yt(Yt,re,ue,oe,de,pe,_e){return Qi(this,null,function*(){Z(Yt.signal,"query()/queryRoute() requests must contain an AbortController signal");try{if(ne(Yt.method.toLowerCase()))return yield _t(Yt,ue,_e||It(ue,re),oe,de,pe,_e!=null);let ge=yield zt(Yt,ue,oe,de,pe,_e);return Jr(ge)?ge:U({},ge,{actionData:null,actionHeaders:{}})}catch(ge){if(Lr(ge)&&Jr(ge.result)){if(ge.type===P.error)throw ge.result;return ge.result}if(Mr(ge))return ge;throw ge}})}function _t(Yt,re,ue,oe,de,pe,_e){return Qi(this,null,function*(){let ge;if(!ue.route.action&&!ue.route.lazy){let $e=nr(405,{method:Yt.method,pathname:new URL(Yt.url).pathname,routeId:ue.route.id});if(_e)throw $e;ge={type:P.error,error:$e}}else ge=(yield Ht("action",Yt,[ue],re,_e,oe,de))[ue.route.id],Yt.signal.aborted&&Qe(Yt,_e,S);if(Rr(ge))throw new Response(null,{status:ge.response.status,headers:{Location:ge.response.headers.get("Location")}});if(ur(ge)){let $e=nr(400,{type:"defer-action"});if(_e)throw $e;ge={type:P.error,error:$e}}if(_e){if(Bn(ge))throw ge.error;return{matches:[ue],loaderData:{},actionData:{[ue.route.id]:ge.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let qe=new Request(Yt.url,{headers:Yt.headers,redirect:Yt.redirect,signal:Yt.signal});if(Bn(ge)){let $e=pe?ue:wn(re,ue.route.id),Ye=yield zt(qe,re,oe,de,pe,null,[$e.route.id,ge]);return U({},Ye,{statusCode:he(ge.error)?ge.error.status:ge.statusCode!=null?ge.statusCode:500,actionData:null,actionHeaders:U({},ge.headers?{[ue.route.id]:ge.headers}:{})})}let De=yield zt(qe,re,oe,de,pe,null);return U({},De,{actionData:{[ue.route.id]:ge.data}},ge.statusCode?{statusCode:ge.statusCode}:{},{actionHeaders:ge.headers?{[ue.route.id]:ge.headers}:{}})})}function zt(Yt,re,ue,oe,de,pe,_e){return Qi(this,null,function*(){let ge=pe!=null;if(ge&&!(pe!=null&&pe.route.loader)&&!(pe!=null&&pe.route.lazy))throw nr(400,{method:Yt.method,pathname:new URL(Yt.url).pathname,routeId:pe==null?void 0:pe.route.id});let De=(pe?[pe]:_e&&Bn(_e[1])?vn(re,_e[0]):re).filter(Cn=>Cn.route.loader||Cn.route.lazy);if(De.length===0)return{matches:re,loaderData:re.reduce((Cn,kn)=>Object.assign(Cn,{[kn.route.id]:null}),{}),errors:_e&&Bn(_e[1])?{[_e[0]]:_e[1].error}:null,statusCode:200,loaderHeaders:{},activeDeferreds:null};let $e=yield Ht("loader",Yt,De,re,ge,ue,oe);Yt.signal.aborted&&Qe(Yt,ge,S);let Ye=new Map,tn=Sn(re,$e,_e,Ye,de),gn=new Set(De.map(Cn=>Cn.route.id));return re.forEach(Cn=>{gn.has(Cn.route.id)||(tn.loaderData[Cn.route.id]=null)}),U({},tn,{matches:re,activeDeferreds:Ye.size>0?Object.fromEntries(Ye.entries()):null})})}function Ht(Yt,re,ue,oe,de,pe,_e){return Qi(this,null,function*(){let ge=yield Le(_e||Ue,Yt,null,re,ue,oe,null,n,c,pe),qe={};return yield Promise.all(oe.map(De=>Qi(this,null,function*(){if(!(De.route.id in ge))return;let $e=ge[De.route.id];if(Br($e)){let Ye=$e.result;throw Mn(Ye,re,De.route.id,oe,i,S.v7_relativeSplatPath)}if(Jr($e.result)&&de)throw $e;qe[De.route.id]=yield en($e)}))),qe})}return{dataRoutes:F,query:nt,queryRoute:ut}}function xe(t,e,n){return U({},e,{statusCode:he(n)?n.status:500,errors:{[e._deepestRenderedBoundaryId||t[0].id]:n}})}function Qe(t,e,n){if(n.v7_throwAbortReason&&t.signal.reason!==void 0)throw t.signal.reason;let i=e?"queryRoute":"query";throw new Error(i+"() call aborted: "+t.method+" "+t.url)}function mn(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function xn(t,e,n,i,c,S,F,nt){let ut,yt;if(F){ut=[];for(let zt of e)if(ut.push(zt),zt.route.id===F){yt=zt;break}}else ut=e,yt=e[e.length-1];let _t=D(c||".",it(ut,S),St(t.pathname,n)||t.pathname,nt==="path");if(c==null&&(_t.search=t.search,_t.hash=t.hash),(c==null||c===""||c===".")&&yt){let zt=mt(_t.search);if(yt.route.index&&!zt)_t.search=_t.search?_t.search.replace(/^\?/,"?index&"):"?index";else if(!yt.route.index&&zt){let Ht=new URLSearchParams(_t.search),Yt=Ht.getAll("index");Ht.delete("index"),Yt.filter(ue=>ue).forEach(ue=>Ht.append("index",ue));let re=Ht.toString();_t.search=re?"?"+re:""}}return i&&n!=="/"&&(_t.pathname=_t.pathname==="/"?n:Y([n,_t.pathname])),B(_t)}function In(t,e,n,i){if(!i||!mn(i))return{path:n};if(i.formMethod&&!zi(i.formMethod))return{path:n,error:nr(405,{method:i.formMethod})};let c=()=>({path:n,error:nr(400,{type:"invalid-body"})}),S=i.formMethod||"get",F=t?S.toUpperCase():S.toLowerCase(),nt=gr(n);if(i.body!==void 0){if(i.formEncType==="text/plain"){if(!ne(F))return c();let Ht=typeof i.body=="string"?i.body:i.body instanceof FormData||i.body instanceof URLSearchParams?Array.from(i.body.entries()).reduce((Yt,re)=>{let[ue,oe]=re;return""+Yt+ue+"="+oe+`
440
440
  `},""):String(i.body);return{path:n,submission:{formMethod:F,formAction:nt,formEncType:i.formEncType,formData:void 0,json:void 0,text:Ht}}}else if(i.formEncType==="application/json"){if(!ne(F))return c();try{let Ht=typeof i.body=="string"?JSON.parse(i.body):i.body;return{path:n,submission:{formMethod:F,formAction:nt,formEncType:i.formEncType,formData:void 0,json:Ht,text:void 0}}}catch(Ht){return c()}}}Z(typeof FormData=="function","FormData is not available in this environment");let ut,yt;if(i.formData)ut=_n(i.formData),yt=i.formData;else if(i.body instanceof FormData)ut=_n(i.body),yt=i.body;else if(i.body instanceof URLSearchParams)ut=i.body,yt=Oe(ut);else if(i.body==null)ut=new URLSearchParams,yt=new FormData;else try{ut=new URLSearchParams(i.body),yt=Oe(ut)}catch(Ht){return c()}let _t={formMethod:F,formAction:nt,formEncType:i&&i.formEncType||"application/x-www-form-urlencoded",formData:yt,json:void 0,text:void 0};if(ne(_t.formMethod))return{path:n,submission:_t};let zt=d(n);return e&&zt.search&&mt(zt.search)&&ut.append("index",""),zt.search="?"+ut,{path:B(zt),submission:_t}}function vn(t,e,n){n===void 0&&(n=!1);let i=t.findIndex(c=>c.route.id===e);return i>=0?t.slice(0,n?i+1:i):t}function An(t,e,n,i,c,S,F,nt,ut,yt,_t,zt,Ht,Yt,re,ue){let oe=ue?Bn(ue[1])?ue[1].error:ue[1].data:void 0,de=t.createURL(e.location),pe=t.createURL(c),_e=n;S&&e.errors?_e=vn(n,Object.keys(e.errors)[0],!0):ue&&Bn(ue[1])&&(_e=vn(n,ue[0]));let ge=ue?ue[1].statusCode:void 0,qe=F&&ge&&ge>=400,De=_e.filter((Ye,tn)=>{let{route:gn}=Ye;if(gn.lazy)return!0;if(gn.loader==null)return!1;if(S)return Jn(gn,e.loaderData,e.errors);if(dr(e.loaderData,e.matches[tn],Ye)||ut.some(Zn=>Zn===Ye.route.id))return!0;let Cn=e.matches[tn],kn=Ye;return Fe(Ye,U({currentUrl:de,currentParams:Cn.params,nextUrl:pe,nextParams:kn.params},i,{actionResult:oe,actionStatus:ge,defaultShouldRevalidate:qe?!1:nt||de.pathname+de.search===pe.pathname+pe.search||de.search!==pe.search||be(Cn,kn)}))}),$e=[];return zt.forEach((Ye,tn)=>{if(S||!n.some(fn=>fn.route.id===Ye.routeId)||_t.has(tn))return;let gn=o(Yt,Ye.path,re);if(!gn){$e.push({key:tn,routeId:Ye.routeId,path:Ye.path,matches:null,match:null,controller:null});return}let Cn=e.fetchers.get(tn),kn=It(gn,Ye.path),Zn=!1;Ht.has(tn)?Zn=!1:yt.has(tn)?(yt.delete(tn),Zn=!0):Cn&&Cn.state!=="idle"&&Cn.data===void 0?Zn=nt:Zn=Fe(kn,U({currentUrl:de,currentParams:e.matches[e.matches.length-1].params,nextUrl:pe,nextParams:n[n.length-1].params},i,{actionResult:oe,actionStatus:ge,defaultShouldRevalidate:qe?!1:nt})),Zn&&$e.push({key:tn,routeId:Ye.routeId,path:Ye.path,matches:gn,match:kn,controller:new AbortController})}),[De,$e]}function Jn(t,e,n){if(t.lazy)return!0;if(!t.loader)return!1;let i=e!=null&&e[t.id]!==void 0,c=n!=null&&n[t.id]!==void 0;return!i&&c?!1:typeof t.loader=="function"&&t.loader.hydrate===!0?!0:!i&&!c}function dr(t,e,n){let i=!e||n.route.id!==e.route.id,c=t[n.route.id]===void 0;return i||c}function be(t,e){let n=t.route.path;return t.pathname!==e.pathname||n!=null&&n.endsWith("*")&&t.params["*"]!==e.params["*"]}function Fe(t,e){if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate(e);if(typeof n=="boolean")return n}return e.defaultShouldRevalidate}function Xe(t,e,n,i,c){var S;let F;if(t){let yt=i[t];Z(yt,"No route found to patch children into: routeId = "+t),yt.children||(yt.children=[]),F=yt.children}else F=n;let nt=e.filter(yt=>!F.some(_t=>we(yt,_t))),ut=b(nt,c,[t||"_","patch",String(((S=F)==null?void 0:S.length)||"0")],i);F.push(...ut)}function we(t,e){return"id"in t&&"id"in e&&t.id===e.id?!0:t.index===e.index&&t.path===e.path&&t.caseSensitive===e.caseSensitive?(!t.children||t.children.length===0)&&(!e.children||e.children.length===0)?!0:t.children.every((n,i)=>{var c;return(c=e.children)==null?void 0:c.some(S=>we(n,S))}):!1}function Be(t,e,n){return Qi(this,null,function*(){if(!t.lazy)return;let i=yield t.lazy();if(!t.lazy)return;let c=n[t.id];Z(c,"No route found in manifest");let S={};for(let F in i){let ut=c[F]!==void 0&&F!=="hasErrorBoundary";Q(!ut,'Route "'+c.id+'" has a static property "'+F+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+F+'" will be ignored.')),!ut&&!s.has(F)&&(S[F]=i[F])}Object.assign(c,S),Object.assign(c,U({},e(c),{lazy:void 0}))})}function Ue(t){return Qi(this,null,function*(){let{matches:e}=t,n=e.filter(c=>c.shouldLoad);return(yield Promise.all(n.map(c=>c.resolve()))).reduce((c,S,F)=>Object.assign(c,{[n[F].route.id]:S}),{})})}function Le(t,e,n,i,c,S,F,nt,ut,yt){return Qi(this,null,function*(){let _t=S.map(Yt=>Yt.route.lazy?Be(Yt.route,ut,nt):void 0),zt=S.map((Yt,re)=>{let ue=_t[re],oe=c.some(pe=>pe.route.id===Yt.route.id);return U({},Yt,{shouldLoad:oe,resolve:pe=>Qi(this,null,function*(){return pe&&i.method==="GET"&&(Yt.route.lazy||Yt.route.loader)&&(oe=!0),oe?je(e,i,Yt,ue,pe,yt):Promise.resolve({type:P.data,result:void 0})})})}),Ht=yield t({matches:zt,request:i,params:S[0].params,fetcherKey:F,context:yt});try{yield Promise.all(_t)}catch(Yt){}return Ht})}function je(t,e,n,i,c,S){return Qi(this,null,function*(){let F,nt,ut=yt=>{let _t,zt=new Promise((re,ue)=>_t=ue);nt=()=>_t(),e.signal.addEventListener("abort",nt);let Ht=re=>typeof yt!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+t+'" [routeId: '+n.route.id+"]"))):yt({request:e,params:n.params,context:S},...re!==void 0?[re]:[]),Yt=Qi(this,null,function*(){try{return{type:"data",result:yield c?c(ue=>Ht(ue)):Ht()}}catch(re){return{type:"error",result:re}}});return Promise.race([Yt,zt])};try{let yt=n.route[t];if(i)if(yt){let _t,[zt]=yield Promise.all([ut(yt).catch(Ht=>{_t=Ht}),i]);if(_t!==void 0)throw _t;F=zt}else if(yield i,yt=n.route[t],yt)F=yield ut(yt);else if(t==="action"){let _t=new URL(e.url),zt=_t.pathname+_t.search;throw nr(405,{method:e.method,pathname:zt,routeId:n.route.id})}else return{type:P.data,result:void 0};else if(yt)F=yield ut(yt);else{let _t=new URL(e.url),zt=_t.pathname+_t.search;throw nr(404,{pathname:zt})}Z(F.result!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(yt){return{type:P.error,result:yt}}finally{nt&&e.signal.removeEventListener("abort",nt)}return F})}function en(t){return Qi(this,null,function*(){let{result:e,type:n}=t;if(Jr(e)){let yt;try{let _t=e.headers.get("Content-Type");_t&&/\bapplication\/json\b/.test(_t)?e.body==null?yt=null:yt=yield e.json():yt=yield e.text()}catch(_t){return{type:P.error,error:_t}}return n===P.error?{type:P.error,error:new $t(e.status,e.statusText,yt),statusCode:e.status,headers:e.headers}:{type:P.data,data:yt,statusCode:e.status,headers:e.headers}}if(n===P.error){if(di(e)){var i;if(e.data instanceof Error){var c;return{type:P.error,error:e.data,statusCode:(c=e.init)==null?void 0:c.status}}e=new $t(((i=e.init)==null?void 0:i.status)||500,void 0,e.data)}return{type:P.error,error:e,statusCode:he(e)?e.status:void 0}}if(li(e)){var S,F;return{type:P.deferred,deferredData:e,statusCode:(S=e.init)==null?void 0:S.status,headers:((F=e.init)==null?void 0:F.headers)&&new Headers(e.init.headers)}}if(di(e)){var nt,ut;return{type:P.data,data:e.data,statusCode:(nt=e.init)==null?void 0:nt.status,headers:(ut=e.init)!=null&&ut.headers?new Headers(e.init.headers):void 0}}return{type:P.data,data:e}})}function Mn(t,e,n,i,c,S){let F=t.headers.get("Location");if(Z(F,"Redirects returned/thrown from loaders/actions must have a Location header"),!Pt.test(F)){let nt=i.slice(0,i.findIndex(ut=>ut.route.id===n)+1);F=xn(new URL(e.url),nt,c,!0,F,S),t.headers.set("Location",F)}return t}function Ae(t,e,n){if(Pt.test(t)){let i=t,c=i.startsWith("//")?new URL(e.protocol+i):new URL(i),S=St(c.pathname,n)!=null;if(c.origin===e.origin&&S)return c.pathname+c.search+c.hash}return t}function an(t,e,n,i){let c=t.createURL(gr(e)).toString(),S={signal:n};if(i&&ne(i.formMethod)){let{formMethod:F,formEncType:nt}=i;S.method=F.toUpperCase(),nt==="application/json"?(S.headers=new Headers({"Content-Type":nt}),S.body=JSON.stringify(i.json)):nt==="text/plain"?S.body=i.text:nt==="application/x-www-form-urlencoded"&&i.formData?S.body=_n(i.formData):S.body=i.formData}return new Request(c,S)}function _n(t){let e=new URLSearchParams;for(let[n,i]of t.entries())e.append(n,typeof i=="string"?i:i.name);return e}function Oe(t){let e=new FormData;for(let[n,i]of t.entries())e.append(n,i);return e}function Sn(t,e,n,i,c){let S={},F=null,nt,ut=!1,yt={},_t=n&&Bn(n[1])?n[1].error:void 0;return t.forEach(zt=>{if(!(zt.route.id in e))return;let Ht=zt.route.id,Yt=e[Ht];if(Z(!Rr(Yt),"Cannot handle redirect results in processLoaderData"),Bn(Yt)){let re=Yt.error;if(_t!==void 0&&(re=_t,_t=void 0),F=F||{},c)F[Ht]=re;else{let ue=wn(t,Ht);F[ue.route.id]==null&&(F[ue.route.id]=re)}S[Ht]=void 0,ut||(ut=!0,nt=he(Yt.error)?Yt.error.status:500),Yt.headers&&(yt[Ht]=Yt.headers)}else ur(Yt)?(i.set(Ht,Yt.deferredData),S[Ht]=Yt.deferredData.data,Yt.statusCode!=null&&Yt.statusCode!==200&&!ut&&(nt=Yt.statusCode),Yt.headers&&(yt[Ht]=Yt.headers)):(S[Ht]=Yt.data,Yt.statusCode&&Yt.statusCode!==200&&!ut&&(nt=Yt.statusCode),Yt.headers&&(yt[Ht]=Yt.headers))}),_t!==void 0&&n&&(F={[n[0]]:_t},S[n[0]]=void 0),{loaderData:S,errors:F,statusCode:nt||200,loaderHeaders:yt}}function sn(t,e,n,i,c,S,F){let{loaderData:nt,errors:ut}=Sn(e,n,i,F,!1);return c.forEach(yt=>{let{key:_t,match:zt,controller:Ht}=yt,Yt=S[_t];if(Z(Yt,"Did not find corresponding fetcher result"),!(Ht&&Ht.signal.aborted))if(Bn(Yt)){let re=wn(t.matches,zt==null?void 0:zt.route.id);ut&&ut[re.route.id]||(ut=U({},ut,{[re.route.id]:Yt.error})),t.fetchers.delete(_t)}else if(Rr(Yt))Z(!1,"Unhandled fetcher revalidation redirect");else if(ur(Yt))Z(!1,"Unhandled fetcher deferred data");else{let re=ye(Yt.data);t.fetchers.set(_t,re)}}),{loaderData:nt,errors:ut}}function yn(t,e,n,i){let c=U({},e);for(let S of n){let F=S.route.id;if(e.hasOwnProperty(F)?e[F]!==void 0&&(c[F]=e[F]):t[F]!==void 0&&S.route.loader&&(c[F]=t[F]),i&&i.hasOwnProperty(F))break}return c}function En(t){return t?Bn(t[1])?{actionData:{}}:{actionData:{[t[0]]:t[1].data}}:{}}function wn(t,e){return(e?t.slice(0,t.findIndex(i=>i.route.id===e)+1):[...t]).reverse().find(i=>i.route.hasErrorBoundary===!0)||t[0]}function fr(t){let e=t.length===1?t[0]:t.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function nr(t,e){let{pathname:n,routeId:i,method:c,type:S,message:F}=e===void 0?{}:e,nt="Unknown Server Error",ut="Unknown @remix-run/router error";return t===400?(nt="Bad Request",c&&n&&i?ut="You made a "+c+' request to "'+n+'" but '+('did not provide a `loader` for route "'+i+'", ')+"so there is no way to handle the request.":S==="defer-action"?ut="defer() is not supported in actions":S==="invalid-body"&&(ut="Unable to encode submission body")):t===403?(nt="Forbidden",ut='Route "'+i+'" does not match URL "'+n+'"'):t===404?(nt="Not Found",ut='No route matches URL "'+n+'"'):t===405&&(nt="Method Not Allowed",c&&n&&i?ut="You made a "+c.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+i+'", ')+"so there is no way to handle the request.":c&&(ut='Invalid request method "'+c.toUpperCase()+'"')),new $t(t||500,nt,new Error(ut),!0)}function pr(t){let e=Object.entries(t);for(let n=e.length-1;n>=0;n--){let[i,c]=e[n];if(Rr(c))return{key:i,result:c}}}function gr(t){let e=typeof t=="string"?d(t):t;return B(U({},e,{hash:""}))}function ir(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function Lr(t){return t!=null&&typeof t=="object"&&"type"in t&&"result"in t&&(t.type===P.data||t.type===P.error)}function Br(t){return Jr(t.result)&&on.has(t.result.status)}function ur(t){return t.type===P.deferred}function Bn(t){return t.type===P.error}function Rr(t){return(t&&t.type)===P.redirect}function di(t){return typeof t=="object"&&t!=null&&"type"in t&&"data"in t&&"init"in t&&t.type==="DataWithResponseInit"}function li(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function Jr(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body!="undefined"}function Mr(t){if(!Jr(t))return!1;let e=t.status,n=t.headers.get("Location");return e>=300&&e<=399&&n!=null}function zi(t){return Ge.has(t.toLowerCase())}function ne(t){return Se.has(t.toLowerCase())}function Me(t,e,n,i,c){return Qi(this,null,function*(){let S=Object.entries(e);for(let F=0;F<S.length;F++){let[nt,ut]=S[F],yt=t.find(Ht=>(Ht==null?void 0:Ht.route.id)===nt);if(!yt)continue;let _t=i.find(Ht=>Ht.route.id===yt.route.id),zt=_t!=null&&!be(_t,yt)&&(c&&c[yt.route.id])!==void 0;ur(ut)&&zt&&(yield nn(ut,n,!1).then(Ht=>{Ht&&(e[nt]=Ht)}))}})}function Ke(t,e,n){return Qi(this,null,function*(){for(let i=0;i<n.length;i++){let{key:c,routeId:S,controller:F}=n[i],nt=e[c];t.find(yt=>(yt==null?void 0:yt.route.id)===S)&&ur(nt)&&(Z(F,"Expected an AbortController for revalidating fetcher deferred result"),yield nn(nt,F.signal,!0).then(yt=>{yt&&(e[c]=yt)}))}})}function nn(t,e,n){return Qi(this,null,function*(){if(n===void 0&&(n=!1),!(yield t.deferredData.resolveData(e))){if(n)try{return{type:P.data,data:t.deferredData.unwrappedData}}catch(c){return{type:P.error,error:c}}return{type:P.data,data:t.deferredData.data}}})}function mt(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function It(t,e){let n=typeof e=="string"?d(e).search:e.search;if(t[t.length-1].route.index&&mt(n||""))return t[t.length-1];let i=rt(t);return i[i.length-1]}function Gt(t){let{formMethod:e,formAction:n,formEncType:i,text:c,formData:S,json:F}=t;if(!(!e||!n||!i)){if(c!=null)return{formMethod:e,formAction:n,formEncType:i,formData:void 0,json:void 0,text:c};if(S!=null)return{formMethod:e,formAction:n,formEncType:i,formData:S,json:void 0,text:void 0};if(F!==void 0)return{formMethod:e,formAction:n,formEncType:i,formData:void 0,json:F,text:void 0}}}function Tt(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function qt(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function le(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function me(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function ye(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Ne(t,e){try{let n=t.sessionStorage.getItem(Vt);if(n){let i=JSON.parse(n);for(let[c,S]of Object.entries(i||{}))S&&Array.isArray(S)&&e.set(c,new Set(S||[]))}}catch(n){}}function Je(t,e){if(e.size>0){let n={};for(let[i,c]of e)n[i]=[...c];try{t.sessionStorage.setItem(Vt,JSON.stringify(n))}catch(i){Q(!1,"Failed to save applied view transitions in sessionStorage ("+i+").")}}}/**
441
441
  * React Router v6.28.0
442
442
  *
@@ -468,11 +468,11 @@ This could lead to inefficient memoization and unnecessary re-renders.
468
468
  Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:c})}}},Dv=(t,e,n)=>{const{memoize:i,memoizeOptions:c}=e,{inputSelectorResults:S,inputSelectorResultsCopy:F}=t,nt=i(()=>({}),...c);if(!(nt.apply(null,S)===nt.apply(null,F))){let yt;try{throw new Error}catch(_t){({stack:yt}=_t)}console.warn(`An input selector returned a different result when passed same arguments.
469
469
  This means your output selector will likely run more frequently than intended.
470
470
  Avoid returning a new reference inside your input selector, e.g.
471
- \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:S,secondInputs:F,stack:yt})}},M0={inputStabilityCheck:"once",identityFunctionCheck:"once"},il=t=>{Object.assign(M0,t)},lh=null;function k0(t,e=`expected a function, instead received ${typeof t}`){if(typeof t!="function")throw new TypeError(e)}function zu(t,e=`expected an object, instead received ${typeof t}`){if(typeof t!="object")throw new TypeError(e)}function $d(t,e="expected all items to be functions, instead received the following types: "){if(!t.every(n=>typeof n=="function")){const n=t.map(i=>typeof i=="function"?`function ${i.name||"unnamed"}()`:typeof i).join(", ");throw new TypeError(`${e}[${n}]`)}}var Nl=t=>Array.isArray(t)?t:[t];function uh(t){const e=Array.isArray(t[0])?t[0]:t;return $d(e,"createSelector expects all input-selectors to be functions, but received the following types: "),e}function Xd(t,e){const n=[],{length:i}=t;for(let c=0;c<i;c++)n.push(t[c].apply(null,e));return n}var T0=(t,e)=>{const{identityFunctionCheck:n,inputStabilityCheck:i}=xr(xr({},M0),e);return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&t,run:C0},inputStabilityCheck:{shouldRun:i==="always"||i==="once"&&t,run:Dv}}},A0=0,ol=null,Pm=class{constructor(t,e=Dl){lo(this,"revision",A0);lo(this,"_value");lo(this,"_lastValue");lo(this,"_isEqual",Dl);this._value=this._lastValue=t,this._isEqual=e}get value(){return ol==null||ol.add(this),this._value}set value(t){this.value!==t&&(this._value=t,this.revision=++A0)}};function Dl(t,e){return t===e}var Gd=class{constructor(t){lo(this,"_cachedValue");lo(this,"_cachedRevision",-1);lo(this,"_deps",[]);lo(this,"hits",0);lo(this,"fn");this.fn=t}clear(){this._cachedValue=void 0,this._cachedRevision=-1,this._deps=[],this.hits=0}get value(){if(this.revision>this._cachedRevision){const{fn:t}=this,e=new Set,n=ol;ol=e,this._cachedValue=t(),ol=n,this.hits++,this._deps=Array.from(e),this._cachedRevision=this.revision}return ol==null||ol.add(this),this._cachedValue}get revision(){return Math.max(...this._deps.map(t=>t.revision),0)}};function Uu(t){return t instanceof Pm||console.warn("Not a valid cell! ",t),t.value}function Kd(t,e){if(!(t instanceof Pm))throw new TypeError("setValue must be passed a tracked store created with `createStorage`.");t.value=t._lastValue=e}function fi(t,e=Dl){return new Pm(t,e)}function Ef(t){return k0(t,"the first parameter to `createCache` must be a function"),new Gd(t)}var Vi=(t,e)=>!1;function jo(){return fi(null,Vi)}function Hu(t,e){Kd(t,e)}var Oa=t=>{let e=t.collectionTag;e===null&&(e=t.collectionTag=jo()),Uu(e)},fo=t=>{const e=t.collectionTag;e!==null&&Hu(e,null)},pi=Symbol(),to=0,Cf=Object.getPrototypeOf({}),Fa=class{constructor(t){lo(this,"proxy",new Proxy(this,ti));lo(this,"tag",jo());lo(this,"tags",{});lo(this,"children",{});lo(this,"collectionTag",null);lo(this,"id",to++);this.value=t,this.value=t,this.tag.value=t}},ti={get(t,e){function n(){const{value:c}=t,S=Reflect.get(c,e);if(typeof e=="symbol"||e in Cf)return S;if(typeof S=="object"&&S!==null){let F=t.children[e];return F===void 0&&(F=t.children[e]=Om(S)),F.tag&&Uu(F.tag),F.proxy}else{let F=t.tags[e];return F===void 0&&(F=t.tags[e]=jo(),F.value=S),Uu(F),S}}return n()},ownKeys(t){return Oa(t),Reflect.ownKeys(t.value)},getOwnPropertyDescriptor(t,e){return Reflect.getOwnPropertyDescriptor(t.value,e)},has(t,e){return Reflect.has(t.value,e)}},_c=class{constructor(t){lo(this,"proxy",new Proxy([this],Rv));lo(this,"tag",jo());lo(this,"tags",{});lo(this,"children",{});lo(this,"collectionTag",null);lo(this,"id",to++);this.value=t,this.value=t,this.tag.value=t}},Rv={get([t],e){return e==="length"&&Oa(t),ti.get(t,e)},ownKeys([t]){return ti.ownKeys(t)},getOwnPropertyDescriptor([t],e){return ti.getOwnPropertyDescriptor(t,e)},has([t],e){return ti.has(t,e)}};function Om(t){return Array.isArray(t)?new _c(t):new Fa(t)}function h(t,e){const{value:n,tags:i,children:c}=t;if(t.value=e,Array.isArray(n)&&Array.isArray(e)&&n.length!==e.length)fo(t);else if(n!==e){let S=0,F=0,nt=!1;for(const yt in n)S++;for(const yt in e)if(F++,!(yt in n)){nt=!0;break}(nt||S!==F)&&fo(t)}for(const S in i){const F=n[S],nt=e[S];F!==nt&&(fo(t),Hu(i[S],nt)),typeof nt=="object"&&nt!==null&&delete i[S]}for(const S in c){const F=c[S],nt=e[S];F.value!==nt&&(typeof nt=="object"&&nt!==null?h(F,nt):(N(F),delete c[S]))}}function N(t){t.tag&&Hu(t.tag,null),fo(t);for(const e in t.tags)Hu(t.tags[e],null);for(const e in t.children)N(t.children[e])}function ht(t){let e;return{get(n){return e&&t(e.key,n)?e.value:lh},put(n,i){e={key:n,value:i}},getEntries(){return e?[e]:[]},clear(){e=void 0}}}function Rt(t,e){let n=[];function i(nt){const ut=n.findIndex(yt=>e(nt,yt.key));if(ut>-1){const yt=n[ut];return ut>0&&(n.splice(ut,1),n.unshift(yt)),yt.value}return lh}function c(nt,ut){i(nt)===lh&&(n.unshift({key:nt,value:ut}),n.length>t&&n.pop())}function S(){return n}function F(){n=[]}return{get:i,put:c,getEntries:S,clear:F}}var Xt=(t,e)=>t===e;function ce(t){return function(n,i){if(n===null||i===null||n.length!==i.length)return!1;const{length:c}=n;for(let S=0;S<c;S++)if(!t(n[S],i[S]))return!1;return!0}}function He(t,e){const n=typeof e=="object"?e:{equalityCheck:e},{equalityCheck:i=Xt,maxSize:c=1,resultEqualityCheck:S}=n,F=ce(i);let nt=0;const ut=c<=1?ht(F):Rt(c,F);function yt(){let _t=ut.get(arguments);if(_t===lh){if(_t=t.apply(null,arguments),nt++,S){const Ht=ut.getEntries().find(Yt=>S(Yt.value,_t));Ht&&(_t=Ht.value,nt!==0&&nt--)}ut.put(arguments,_t)}return _t}return yt.clearCache=()=>{ut.clear(),yt.resetResultsCount()},yt.resultsCount=()=>nt,yt.resetResultsCount=()=>{nt=0},yt}function bn(t){const e=Om([]);let n=null;const i=ce(Xt),c=Ef(()=>t.apply(null,e.proxy));function S(){return i(n,arguments)||(h(e,arguments),n=arguments),c.value}return S.clearCache=()=>c.clear(),S}var Pn=class{constructor(t){this.value=t}deref(){return this.value}},qn=typeof WeakRef!="undefined"?WeakRef:Pn,kr=0,Nr=1;function Cr(){return{s:kr,v:void 0,o:null,p:null}}function Vr(t,e={}){let n=Cr();const{resultEqualityCheck:i}=e;let c,S=0;function F(){var zt,Ht;let nt=n;const{length:ut}=arguments;for(let Yt=0,re=ut;Yt<re;Yt++){const ue=arguments[Yt];if(typeof ue=="function"||typeof ue=="object"&&ue!==null){let oe=nt.o;oe===null&&(nt.o=oe=new WeakMap);const de=oe.get(ue);de===void 0?(nt=Cr(),oe.set(ue,nt)):nt=de}else{let oe=nt.p;oe===null&&(nt.p=oe=new Map);const de=oe.get(ue);de===void 0?(nt=Cr(),oe.set(ue,nt)):nt=de}}const yt=nt;let _t;if(nt.s===Nr)_t=nt.v;else if(_t=t.apply(null,arguments),S++,i){const Yt=(Ht=(zt=c==null?void 0:c.deref)==null?void 0:zt.call(c))!=null?Ht:c;Yt!=null&&i(Yt,_t)&&(_t=Yt,S!==0&&S--),c=typeof _t=="object"&&_t!==null||typeof _t=="function"?new qn(_t):_t}return yt.s=Nr,yt.v=_t,_t}return F.clearCache=()=>{n=Cr(),F.resetResultsCount()},F.resultsCount=()=>S,F.resetResultsCount=()=>{S=0},F}function Qr(t,...e){const n=typeof t=="function"?{memoize:t,memoizeOptions:e}:t,i=(...c)=>{let S=0,F=0,nt,ut={},yt=c.pop();typeof yt=="object"&&(ut=yt,yt=c.pop()),k0(yt,`createSelector expects an output function after the inputs, but received: [${typeof yt}]`);const _t=xr(xr({},n),ut),{memoize:zt,memoizeOptions:Ht=[],argsMemoize:Yt=Vr,argsMemoizeOptions:re=[],devModeChecks:ue={}}=_t,oe=Nl(Ht),de=Nl(re),pe=uh(c),_e=zt(function(){return S++,yt.apply(null,arguments)},...oe);let ge=!0;const qe=Yt(function(){F++;const $e=Xd(pe,arguments);return nt=_e.apply(null,$e),nt},...de);return Object.assign(qe,{resultFunc:yt,memoizedResultFunc:_e,dependencies:pe,dependencyRecomputations:()=>F,resetDependencyRecomputations:()=>{F=0},lastResult:()=>nt,recomputations:()=>S,resetRecomputations:()=>{S=0},memoize:zt,argsMemoize:Yt})};return Object.assign(i,{withTypes:()=>i}),i}var Yr=Qr(Vr),Qo=Object.assign((t,e=Yr)=>{zu(t,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof t}`);const n=Object.keys(t),i=n.map(S=>t[S]);return e(i,(...S)=>S.reduce((F,nt,ut)=>(F[n[ut]]=nt,F),{}))},{withTypes:()=>Qo}),$n=(t=>(t.uninitialized="uninitialized",t.pending="pending",t.fulfilled="fulfilled",t.rejected="rejected",t))($n||{});function Ln(t){return{status:t,isUninitialized:t==="uninitialized",isLoading:t==="pending",isSuccess:t==="fulfilled",isError:t==="rejected"}}var tr=Aa;function Ir(t,e){if(t===e||!(tr(t)&&tr(e)||Array.isArray(t)&&Array.isArray(e)))return e;const n=Object.keys(e),i=Object.keys(t);let c=n.length===i.length;const S=Array.isArray(e)?[]:{};for(const F of n)S[F]=Ir(t[F],e[F]),c&&(c=t[F]===S[F]);return c?t:S}function Kr(t){let e=0;for(const n in t)e++;return e}var mi=t=>[].concat(...t);function ni(t){return new RegExp("(^|:)//").test(t)}function ki(){return typeof document=="undefined"?!0:document.visibilityState!=="hidden"}function ya(t){return t!=null}function po(){return typeof navigator=="undefined"||navigator.onLine===void 0?!0:navigator.onLine}var Vu=t=>t.replace(/\/$/,""),Mx=t=>t.replace(/^\//,"");function Lv(t,e){if(!t)return e;if(!e)return t;if(ni(e))return e;const n=t.endsWith("/")||!e.startsWith("?")?"/":"";return t=Vu(t),e=Mx(e),`${t}${n}${e}`}function Zd(t,e,n){return t.has(e)?t.get(e):t.set(e,n).get(e)}var P0=(...t)=>fetch(...t),Nm=t=>t.status>=200&&t.status<=299,kx=t=>/ion\/(vnd\.api\+)?json/.test(t.get("content-type")||"");function O0(t){if(!Aa(t))return t;const e=xr({},t);for(const[n,i]of Object.entries(e))i===void 0&&delete e[n];return e}function Iv(zt={}){var Ht=zt,{baseUrl:t,prepareHeaders:e=Yt=>Yt,fetchFn:n=P0,paramsSerializer:i,isJsonContentType:c=kx,jsonContentType:S="application/json",jsonReplacer:F,timeout:nt,responseHandler:ut,validateStatus:yt}=Ht,_t=io(Ht,["baseUrl","prepareHeaders","fetchFn","paramsSerializer","isJsonContentType","jsonContentType","jsonReplacer","timeout","responseHandler","validateStatus"]);return typeof fetch=="undefined"&&n===P0&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),(re,ue,oe)=>Qi(this,null,function*(){const{getState:de,extra:pe,endpoint:_e,forced:ge,type:qe}=ue;let De,Zi=typeof re=="string"?{url:re}:re,{url:$e,headers:Ye=new Headers(_t.headers),params:tn=void 0,responseHandler:gn=ut!=null?ut:"json",validateStatus:Cn=yt!=null?yt:Nm,timeout:kn=nt}=Zi,Zn=io(Zi,["url","headers","params","responseHandler","validateStatus","timeout"]),fn,jn=ue.signal;kn&&(fn=new AbortController,ue.signal.addEventListener("abort",fn.abort),jn=fn.signal);let On=xr(Mi(xr({},_t),{signal:jn}),Zn);Ye=new Headers(O0(Ye)),On.headers=(yield e(Ye,{getState:de,arg:re,extra:pe,endpoint:_e,forced:ge,type:qe,extraOptions:oe}))||Ye;const Vn=$r=>typeof $r=="object"&&(Aa($r)||Array.isArray($r)||typeof $r.toJSON=="function");if(!On.headers.has("content-type")&&Vn(On.body)&&On.headers.set("content-type",S),Vn(On.body)&&c(On.headers)&&(On.body=JSON.stringify(On.body,F)),tn){const $r=~$e.indexOf("?")?"&":"?",Fi=i?i(tn):new URLSearchParams(O0(tn));$e+=$r+Fi}$e=Lv(t,$e);const wr=new Request($e,On);De={request:new Request($e,On)};let _r,Ur=!1,Hr=fn&&setTimeout(()=>{Ur=!0,fn.abort()},kn);try{_r=yield n(wr)}catch($r){return{error:{status:Ur?"TIMEOUT_ERROR":"FETCH_ERROR",error:String($r)},meta:De}}finally{Hr&&clearTimeout(Hr),fn==null||fn.signal.removeEventListener("abort",fn.abort)}const Li=_r.clone();De.response=Li;let ai,Ei="";try{let $r;if(yield Promise.all([Yt(_r,gn).then(Fi=>ai=Fi,Fi=>$r=Fi),Li.text().then(Fi=>Ei=Fi,()=>{})]),$r)throw $r}catch($r){return{error:{status:"PARSING_ERROR",originalStatus:_r.status,data:Ei,error:String($r)},meta:De}}return Cn(_r,ai)?{data:ai,meta:De}:{error:{status:_r.status,data:ai},meta:De}});function Yt(re,ue){return Qi(this,null,function*(){if(typeof ue=="function")return ue(re);if(ue==="content-type"&&(ue=c(re.headers)?"json":"text"),ue==="json"){const oe=yield re.text();return oe.length?JSON.parse(oe):null}return re.text()})}}var Bo=class{constructor(t,e=void 0){this.value=t,this.meta=e}};function al(t=0,e=5){return Qi(this,null,function*(){const n=Math.min(t,e),i=~~((Math.random()+.4)*(300<<n));yield new Promise(c=>setTimeout(S=>c(S),i))})}function wa(t,e){throw Object.assign(new Bo({error:t,meta:e}),{throwImmediately:!0})}var sl={},Qd=(t,e)=>(n,i,c)=>Qi(this,null,function*(){const S=[5,(e||sl).maxRetries,(c||sl).maxRetries].filter(_t=>_t!==void 0),[F]=S.slice(-1),ut=xr(xr({maxRetries:F,backoff:al,retryCondition:(_t,zt,{attempt:Ht})=>Ht<=F},e),c);let yt=0;for(;;)try{const _t=yield t(n,i,c);if(_t.error)throw new Bo(_t);return _t}catch(_t){if(yt++,_t.throwImmediately){if(_t instanceof Bo)return _t.value;throw _t}if(_t instanceof Bo&&!ut.retryCondition(_t.value.error,n,{attempt:yt,baseQueryApi:i,extraOptions:c}))return _t.value;yield ut.backoff(yt,ut.maxRetries)}}),Wk=Object.assign(Qd,{fail:wa}),Dm=es("__rtkq/focused"),ch=es("__rtkq/unfocused"),hh=es("__rtkq/online"),Wu=es("__rtkq/offline"),Yu=!1;function fh(t,e){function n(){const i=()=>t(Dm()),c=()=>t(ch()),S=()=>t(hh()),F=()=>t(Wu()),nt=()=>{window.document.visibilityState==="visible"?i():c()};return Yu||typeof window!="undefined"&&window.addEventListener&&(window.addEventListener("visibilitychange",nt,!1),window.addEventListener("focus",i,!1),window.addEventListener("online",S,!1),window.addEventListener("offline",F,!1),Yu=!0),()=>{window.removeEventListener("focus",i),window.removeEventListener("visibilitychange",nt),window.removeEventListener("online",S),window.removeEventListener("offline",F),Yu=!1}}return e?e(t,{onFocus:Dm,onFocusLost:ch,onOffline:Wu,onOnline:hh}):n()}function jv(t){return t.type==="query"}function F2(t){return t.type==="mutation"}function Bv(t,e,n,i,c,S){return z2(t)?t(e,n,i,c).filter(ya).map(Fv).map(S):Array.isArray(t)?t.map(Fv).map(S):[]}function z2(t){return typeof t=="function"}function Fv(t){return typeof t=="string"?{type:t}:t}function Yk(t,e){return t.catch(e)}var Rm=Symbol("forceQueryFn"),Vs=t=>typeof t[Rm]=="function";function qk({serializeQueryArgs:t,queryThunk:e,mutationThunk:n,api:i,context:c}){const S=new Map,F=new Map,{unsubscribeQueryResult:nt,removeMutationResult:ut,updateSubscriptionOptions:yt}=i.internalActions;return{buildInitiateQuery:ue,buildInitiateMutation:oe,getRunningQueryThunk:_t,getRunningMutationThunk:zt,getRunningQueriesThunk:Ht,getRunningMutationsThunk:Yt};function _t(de,pe){return _e=>{var De;const ge=c.endpointDefinitions[de],qe=t({queryArgs:pe,endpointDefinition:ge,endpointName:de});return(De=S.get(_e))==null?void 0:De[qe]}}function zt(de,pe){return _e=>{var ge;return(ge=F.get(_e))==null?void 0:ge[pe]}}function Ht(){return de=>Object.values(S.get(de)||{}).filter(ya)}function Yt(){return de=>Object.values(F.get(de)||{}).filter(ya)}function re(de){}function ue(de,pe){const _e=(ge,gn={})=>{var Cn=gn,{subscribe:qe=!0,forceRefetch:De,subscriptionOptions:$e,[Rm]:Ye}=Cn,tn=io(Cn,["subscribe","forceRefetch","subscriptionOptions",VR(Rm)]);return(kn,Zn)=>{var Ei;const fn=t({queryArgs:ge,endpointDefinition:pe,endpointName:de}),jn=e(Mi(xr({},tn),{type:"query",subscribe:qe,forceRefetch:De,subscriptionOptions:$e,endpointName:de,originalArgs:ge,queryCacheKey:fn,[Rm]:Ye})),On=i.endpoints[de].select(ge),Vn=kn(jn),wr=On(Zn());const{requestId:Pr,abort:_r}=Vn,Ur=wr.requestId!==Pr,Hr=(Ei=S.get(kn))==null?void 0:Ei[fn],Li=()=>On(Zn()),ai=Object.assign(Ye?Vn.then(Li):Ur&&!Hr?Promise.resolve(wr):Promise.all([Hr,Vn]).then(Li),{arg:ge,requestId:Pr,subscriptionOptions:$e,queryCacheKey:fn,abort:_r,unwrap(){return Qi(this,null,function*(){const $r=yield ai;if($r.isError)throw $r.error;return $r.data})},refetch:()=>kn(_e(ge,{subscribe:!1,forceRefetch:!0})),unsubscribe(){qe&&kn(nt({queryCacheKey:fn,requestId:Pr}))},updateSubscriptionOptions($r){ai.subscriptionOptions=$r,kn(yt({endpointName:de,requestId:Pr,queryCacheKey:fn,options:$r}))}});if(!Hr&&!Ur&&!Ye){const $r=Zd(S,kn,{});$r[fn]=ai,ai.then(()=>{delete $r[fn],Kr($r)||S.delete(kn)})}return ai}};return _e}function oe(de){return(pe,{track:_e=!0,fixedCacheKey:ge}={})=>(qe,De)=>{const $e=n({type:"mutation",endpointName:de,originalArgs:pe,track:_e,fixedCacheKey:ge}),Ye=qe($e);const{requestId:tn,abort:gn,unwrap:Cn}=Ye,kn=Yk(Ye.unwrap().then(On=>({data:On})),On=>({error:On})),Zn=()=>{qe(ut({requestId:tn,fixedCacheKey:ge}))},fn=Object.assign(kn,{arg:Ye.arg,requestId:tn,abort:gn,unwrap:Cn,reset:Zn}),jn=F.get(qe)||{};return F.set(qe,jn),jn[tn]=fn,fn.then(()=>{delete jn[tn],Kr(jn)||F.delete(qe)}),ge&&(jn[ge]=fn,fn.then(()=>{jn[ge]===fn&&(delete jn[ge],Kr(jn)||F.delete(qe))})),fn}}}function Tx(t){return t}function $k({reducerPath:t,baseQuery:e,context:{endpointDefinitions:n},serializeQueryArgs:i,api:c,assertTagType:S}){const F=(pe,_e,ge,qe)=>(De,$e)=>{const Ye=n[pe],tn=i({queryArgs:_e,endpointDefinition:Ye,endpointName:pe});if(De(c.internalActions.queryResultPatched({queryCacheKey:tn,patches:ge})),!qe)return;const gn=c.endpoints[pe].select(_e)($e()),Cn=Bv(Ye.providesTags,gn.data,void 0,_e,{},S);De(c.internalActions.updateProvidedBy({queryCacheKey:tn,providedTags:Cn}))},nt=(pe,_e,ge,qe=!0)=>(De,$e)=>{const tn=c.endpoints[pe].select(_e)($e()),gn={patches:[],inversePatches:[],undo:()=>De(c.util.patchQueryData(pe,_e,gn.inversePatches,qe))};if(tn.status==="uninitialized")return gn;let Cn;if("data"in tn)if(Ui(tn.data)){const[kn,Zn,fn]=ff(tn.data,ge);gn.patches.push(...Zn),gn.inversePatches.push(...fn),Cn=kn}else Cn=ge(tn.data),gn.patches.push({op:"replace",path:[],value:Cn}),gn.inversePatches.push({op:"replace",path:[],value:tn.data});return gn.patches.length===0||De(c.util.patchQueryData(pe,_e,gn.patches,qe)),gn},ut=(pe,_e,ge)=>qe=>qe(c.endpoints[pe].initiate(_e,{subscribe:!1,forceRefetch:!0,[Rm]:()=>({data:ge})})),yt=(gn,Cn)=>Qi(this,[gn,Cn],function*(pe,{signal:_e,abort:ge,rejectWithValue:qe,fulfillWithValue:De,dispatch:$e,getState:Ye,extra:tn}){const kn=n[pe.endpointName];try{let Zn=Tx,fn;const jn={signal:_e,abort:ge,dispatch:$e,getState:Ye,extra:tn,endpoint:pe.endpointName,type:pe.type,forced:pe.type==="query"?_t(pe,Ye()):void 0,queryCacheKey:pe.type==="query"?pe.queryCacheKey:void 0},On=pe.type==="query"?pe[Rm]:void 0;if(On?fn=On():kn.query?(fn=yield e(kn.query(pe.originalArgs),jn,kn.extraOptions),kn.transformResponse&&(Zn=kn.transformResponse)):fn=yield kn.queryFn(pe.originalArgs,jn,kn.extraOptions,Vn=>e(Vn,jn,kn.extraOptions)),fn.error)throw new Bo(fn.error,fn.meta);return De(yield Zn(fn.data,fn.meta,pe.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:fn.meta,[vc]:!0})}catch(Zn){let fn=Zn;if(fn instanceof Bo){let jn=Tx;kn.query&&kn.transformErrorResponse&&(jn=kn.transformErrorResponse);try{return qe(yield jn(fn.value,fn.meta,pe.originalArgs),{baseQueryMeta:fn.meta,[vc]:!0})}catch(On){fn=On}}throw console.error(fn),fn}});function _t(pe,_e){var Ye,tn,gn,Cn;const ge=(tn=(Ye=_e[t])==null?void 0:Ye.queries)==null?void 0:tn[pe.queryCacheKey],qe=(gn=_e[t])==null?void 0:gn.config.refetchOnMountOrArgChange,De=ge==null?void 0:ge.fulfilledTimeStamp,$e=(Cn=pe.forceRefetch)!=null?Cn:pe.subscribe&&qe;return $e?$e===!0||(Number(new Date)-Number(De))/1e3>=$e:!1}const zt=_m(`${t}/executeQuery`,yt,{getPendingMeta(){return{startedTimeStamp:Date.now(),[vc]:!0}},condition(pe,{getState:_e}){var gn,Cn,kn;const ge=_e(),qe=(Cn=(gn=ge[t])==null?void 0:gn.queries)==null?void 0:Cn[pe.queryCacheKey],De=qe==null?void 0:qe.fulfilledTimeStamp,$e=pe.originalArgs,Ye=qe==null?void 0:qe.originalArgs,tn=n[pe.endpointName];return Vs(pe)?!0:(qe==null?void 0:qe.status)==="pending"?!1:_t(pe,ge)||jv(tn)&&((kn=tn==null?void 0:tn.forceRefetch)!=null&&kn.call(tn,{currentArg:$e,previousArg:Ye,endpointState:qe,state:ge}))?!0:!De},dispatchConditionRejection:!0}),Ht=_m(`${t}/executeMutation`,yt,{getPendingMeta(){return{startedTimeStamp:Date.now(),[vc]:!0}}}),Yt=pe=>"force"in pe,re=pe=>"ifOlderThan"in pe,ue=(pe,_e,ge)=>(qe,De)=>{const $e=Yt(ge)&&ge.force,Ye=re(ge)&&ge.ifOlderThan,tn=(Cn=!0)=>{const kn={forceRefetch:Cn,isPrefetch:!0};return c.endpoints[pe].initiate(_e,kn)},gn=c.endpoints[pe].select(_e)(De());if($e)qe(tn());else if(Ye){const Cn=gn==null?void 0:gn.fulfilledTimeStamp;if(!Cn){qe(tn());return}(Number(new Date)-Number(new Date(Cn)))/1e3>=Ye&&qe(tn())}else qe(tn(!1))};function oe(pe){return _e=>{var ge,qe;return((qe=(ge=_e==null?void 0:_e.meta)==null?void 0:ge.arg)==null?void 0:qe.endpointName)===pe}}function de(pe,_e){return{matchPending:ua(rh(pe),oe(_e)),matchFulfilled:ua(qr(pe),oe(_e)),matchRejected:ua(ra(pe),oe(_e))}}return{queryThunk:zt,mutationThunk:Ht,prefetch:ue,updateQueryData:nt,upsertQueryData:ut,patchQueryData:F,buildMatchThunkActions:de}}function Lm(t,e,n,i){return Bv(n[t.meta.arg.endpointName][e],qr(t)?t.payload:void 0,wm(t)?t.payload:void 0,t.meta.arg.originalArgs,"baseQueryMeta"in t.meta?t.meta.baseQueryMeta:void 0,i)}function Jd(t,e,n){const i=t[e];i&&n(i)}function Mf(t){var e;return(e="arg"in t?t.arg.fixedCacheKey:t.fixedCacheKey)!=null?e:t.requestId}function N0(t,e,n){const i=t[Mf(e)];i&&n(i)}var kf={};function zv({reducerPath:t,queryThunk:e,mutationThunk:n,serializeQueryArgs:i,context:{endpointDefinitions:c,apiUid:S,extractRehydrationInfo:F,hasRehydrationInfo:nt},assertTagType:ut,config:yt}){const _t=es(`${t}/resetApiState`);function zt(De,$e,Ye,tn){var gn,Cn;(Cn=De[gn=$e.queryCacheKey])!=null||(De[gn]={status:"uninitialized",endpointName:$e.endpointName}),Jd(De,$e.queryCacheKey,kn=>{kn.status="pending",kn.requestId=Ye&&kn.requestId?kn.requestId:tn.requestId,$e.originalArgs!==void 0&&(kn.originalArgs=$e.originalArgs),kn.startedTimeStamp=tn.startedTimeStamp})}function Ht(De,$e,Ye){Jd(De,$e.arg.queryCacheKey,tn=>{var Cn;if(tn.requestId!==$e.requestId&&!Vs($e.arg))return;const{merge:gn}=c[$e.arg.endpointName];if(tn.status="fulfilled",gn)if(tn.data!==void 0){const{fulfilledTimeStamp:kn,arg:Zn,baseQueryMeta:fn,requestId:jn}=$e;let On=ts(tn.data,Vn=>gn(Vn,Ye,{arg:Zn.originalArgs,baseQueryMeta:fn,fulfilledTimeStamp:kn,requestId:jn}));tn.data=On}else tn.data=Ye;else tn.data=(Cn=c[$e.arg.endpointName].structuralSharing)==null||Cn?Ir(yo(tn.data)?Qc(tn.data):tn.data,Ye):Ye;delete tn.error,tn.fulfilledTimeStamp=$e.fulfilledTimeStamp})}const Yt=Ts({name:`${t}/queries`,initialState:kf,reducers:{removeQueryResult:{reducer(De,{payload:{queryCacheKey:$e}}){delete De[$e]},prepare:nh()},cacheEntriesUpserted:{reducer(De,$e){for(const Ye of $e.payload){const{queryDescription:tn,value:gn}=Ye;zt(De,tn,!0,{arg:tn,requestId:$e.meta.requestId,startedTimeStamp:$e.meta.timestamp}),Ht(De,{arg:tn,requestId:$e.meta.requestId,fulfilledTimeStamp:$e.meta.timestamp,baseQueryMeta:{}},gn)}},prepare:De=>({payload:De.map(tn=>{const{endpointName:gn,arg:Cn,value:kn}=tn,Zn=c[gn];return{queryDescription:{type:"query",endpointName:gn,originalArgs:tn.arg,queryCacheKey:i({queryArgs:Cn,endpointDefinition:Zn,endpointName:gn})},value:kn}}),meta:{[vc]:!0,requestId:ih(),timestamp:Date.now()}})},queryResultPatched:{reducer(De,{payload:{queryCacheKey:$e,patches:Ye}}){Jd(De,$e,tn=>{tn.data=Ld(tn.data,Ye.concat())})},prepare:nh()}},extraReducers(De){De.addCase(e.pending,($e,{meta:Ye,meta:{arg:tn}})=>{const gn=Vs(tn);zt($e,tn,gn,Ye)}).addCase(e.fulfilled,($e,{meta:Ye,payload:tn})=>{Ht($e,Ye,tn)}).addCase(e.rejected,($e,{meta:{condition:Ye,arg:tn,requestId:gn},error:Cn,payload:kn})=>{Jd($e,tn.queryCacheKey,Zn=>{if(!Ye){if(Zn.requestId!==gn)return;Zn.status="rejected",Zn.error=kn!=null?kn:Cn}})}).addMatcher(nt,($e,Ye)=>{const{queries:tn}=F(Ye);for(const[gn,Cn]of Object.entries(tn))((Cn==null?void 0:Cn.status)==="fulfilled"||(Cn==null?void 0:Cn.status)==="rejected")&&($e[gn]=Cn)})}}),re=Ts({name:`${t}/mutations`,initialState:kf,reducers:{removeMutationResult:{reducer(De,{payload:$e}){const Ye=Mf($e);Ye in De&&delete De[Ye]},prepare:nh()}},extraReducers(De){De.addCase(n.pending,($e,{meta:Ye,meta:{requestId:tn,arg:gn,startedTimeStamp:Cn}})=>{gn.track&&($e[Mf(Ye)]={requestId:tn,status:"pending",endpointName:gn.endpointName,startedTimeStamp:Cn})}).addCase(n.fulfilled,($e,{payload:Ye,meta:tn})=>{tn.arg.track&&N0($e,tn,gn=>{gn.requestId===tn.requestId&&(gn.status="fulfilled",gn.data=Ye,gn.fulfilledTimeStamp=tn.fulfilledTimeStamp)})}).addCase(n.rejected,($e,{payload:Ye,error:tn,meta:gn})=>{gn.arg.track&&N0($e,gn,Cn=>{Cn.requestId===gn.requestId&&(Cn.status="rejected",Cn.error=Ye!=null?Ye:tn)})}).addMatcher(nt,($e,Ye)=>{const{mutations:tn}=F(Ye);for(const[gn,Cn]of Object.entries(tn))((Cn==null?void 0:Cn.status)==="fulfilled"||(Cn==null?void 0:Cn.status)==="rejected")&&gn!==(Cn==null?void 0:Cn.requestId)&&($e[gn]=Cn)})}}),ue=Ts({name:`${t}/invalidation`,initialState:kf,reducers:{updateProvidedBy:{reducer(De,$e){var gn,Cn,kn,Zn;const{queryCacheKey:Ye,providedTags:tn}=$e.payload;for(const fn of Object.values(De))for(const jn of Object.values(fn)){const On=jn.indexOf(Ye);On!==-1&&jn.splice(On,1)}for(const{type:fn,id:jn}of tn){const On=(Zn=(Cn=(gn=De[fn])!=null?gn:De[fn]={})[kn=jn||"__internal_without_id"])!=null?Zn:Cn[kn]=[];On.includes(Ye)||On.push(Ye)}},prepare:nh()}},extraReducers(De){De.addCase(Yt.actions.removeQueryResult,($e,{payload:{queryCacheKey:Ye}})=>{for(const tn of Object.values($e))for(const gn of Object.values(tn)){const Cn=gn.indexOf(Ye);Cn!==-1&&gn.splice(Cn,1)}}).addMatcher(nt,($e,Ye)=>{var gn,Cn,kn,Zn;const{provided:tn}=F(Ye);for(const[fn,jn]of Object.entries(tn))for(const[On,Vn]of Object.entries(jn)){const wr=(Zn=(Cn=(gn=$e[fn])!=null?gn:$e[fn]={})[kn=On||"__internal_without_id"])!=null?Zn:Cn[kn]=[];for(const Pr of Vn)wr.includes(Pr)||wr.push(Pr)}}).addMatcher(ps(qr(e),wm(e)),($e,Ye)=>{const tn=Lm(Ye,"providesTags",c,ut),{queryCacheKey:gn}=Ye.meta.arg;ue.caseReducers.updateProvidedBy($e,ue.actions.updateProvidedBy({queryCacheKey:gn,providedTags:tn}))})}}),oe=Ts({name:`${t}/subscriptions`,initialState:kf,reducers:{updateSubscriptionOptions(De,$e){},unsubscribeQueryResult(De,$e){},internal_getRTKQSubscriptions(){}}}),de=Ts({name:`${t}/internalSubscriptions`,initialState:kf,reducers:{subscriptionsUpdated:{reducer(De,$e){return Ld(De,$e.payload)},prepare:nh()}}}),pe=Ts({name:`${t}/config`,initialState:xr({online:po(),focused:ki(),middlewareRegistered:!1},yt),reducers:{middlewareRegistered(De,{payload:$e}){De.middlewareRegistered=De.middlewareRegistered==="conflict"||S!==$e?"conflict":!0}},extraReducers:De=>{De.addCase(hh,$e=>{$e.online=!0}).addCase(Wu,$e=>{$e.online=!1}).addCase(Dm,$e=>{$e.focused=!0}).addCase(ch,$e=>{$e.focused=!1}).addMatcher(nt,$e=>xr({},$e))}}),_e=ef({queries:Yt.reducer,mutations:re.reducer,provided:ue.reducer,subscriptions:de.reducer,config:pe.reducer}),ge=(De,$e)=>_e(_t.match($e)?void 0:De,$e),qe=Mi(xr(xr(xr(xr(xr(xr({},pe.actions),Yt.actions),oe.actions),de.actions),re.actions),ue.actions),{resetApiState:_t});return{reducer:ge,actions:qe}}var qu=Symbol.for("RTKQ/skipToken"),D0={status:"uninitialized"},Uv=ts(D0,()=>{}),Hv=ts(D0,()=>{});function Ax({serializeQueryArgs:t,reducerPath:e,createSelector:n}){const i=zt=>Uv,c=zt=>Hv;return{buildQuerySelector:nt,buildMutationSelector:ut,selectInvalidatedBy:yt,selectCachedArgsForQuery:_t};function S(zt){return xr(xr({},zt),Ln(zt.status))}function F(zt){return zt[e]}function nt(zt,Ht){return Yt=>{if(Yt===qu)return n(i,S);const re=t({queryArgs:Yt,endpointDefinition:Ht,endpointName:zt});return n(oe=>{var de,pe,_e;return(_e=(pe=(de=F(oe))==null?void 0:de.queries)==null?void 0:pe[re])!=null?_e:Uv},S)}}function ut(){return zt=>{var ue;let Ht;return typeof zt=="object"?Ht=(ue=Mf(zt))!=null?ue:qu:Ht=zt,n(Ht===qu?c:oe=>{var de,pe,_e;return(_e=(pe=(de=F(oe))==null?void 0:de.mutations)==null?void 0:pe[Ht])!=null?_e:Hv},S)}}function yt(zt,Ht){var ue;const Yt=zt[e],re=new Set;for(const oe of Ht.filter(ya).map(Fv)){const de=Yt.provided[oe.type];if(!de)continue;let pe=(ue=oe.id!==void 0?de[oe.id]:mi(Object.values(de)))!=null?ue:[];for(const _e of pe)re.add(_e)}return mi(Array.from(re.values()).map(oe=>{const de=Yt.queries[oe];return de?[{queryCacheKey:oe,endpointName:de.endpointName,originalArgs:de.originalArgs}]:[]}))}function _t(zt,Ht){return Object.values(zt[e].queries).filter(Yt=>(Yt==null?void 0:Yt.endpointName)===Ht&&Yt.status!=="uninitialized").map(Yt=>Yt.originalArgs)}}var tp=WeakMap?new WeakMap:void 0,Px=({endpointName:t,queryArgs:e})=>{let n="";const i=tp==null?void 0:tp.get(e);if(typeof i=="string")n=i;else{const c=JSON.stringify(e,(S,F)=>(F=typeof F=="bigint"?{$bigint:F.toString()}:F,F=Aa(F)?Object.keys(F).sort().reduce((nt,ut)=>(nt[ut]=F[ut],nt),{}):F,F));Aa(e)&&(tp==null||tp.set(e,c)),n=c}return`${t}(${n})`};function As(...t){return function(n){const i=Vr(yt=>{var _t,zt;return(zt=n.extractRehydrationInfo)==null?void 0:zt.call(n,yt,{reducerPath:(_t=n.reducerPath)!=null?_t:"api"})}),c=Mi(xr({reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed"},n),{extractRehydrationInfo:i,serializeQueryArgs(yt){let _t=Px;if("serializeQueryArgs"in yt.endpointDefinition){const zt=yt.endpointDefinition.serializeQueryArgs;_t=Ht=>{const Yt=zt(Ht);return typeof Yt=="string"?Yt:Px(Mi(xr({},Ht),{queryArgs:Yt}))}}else n.serializeQueryArgs&&(_t=n.serializeQueryArgs);return _t(yt)},tagTypes:[...n.tagTypes||[]]}),S={endpointDefinitions:{},batch(yt){yt()},apiUid:ih(),extractRehydrationInfo:i,hasRehydrationInfo:Vr(yt=>i(yt)!=null)},F={injectEndpoints:ut,enhanceEndpoints({addTagTypes:yt,endpoints:_t}){if(yt)for(const zt of yt)c.tagTypes.includes(zt)||c.tagTypes.push(zt);if(_t)for(const[zt,Ht]of Object.entries(_t))typeof Ht=="function"?Ht(S.endpointDefinitions[zt]):Object.assign(S.endpointDefinitions[zt]||{},Ht);return F}},nt=t.map(yt=>yt.init(F,c,S));function ut(yt){const _t=yt.endpoints({query:zt=>Mi(xr({},zt),{type:"query"}),mutation:zt=>Mi(xr({},zt),{type:"mutation"})});for(const[zt,Ht]of Object.entries(_t)){if(yt.overrideExisting!==!0&&zt in S.endpointDefinitions){if(yt.overrideExisting==="throw")throw new Error(Ka(39));continue}S.endpointDefinitions[zt]=Ht;for(const Yt of nt)Yt.injectEndpoint(zt,Ht)}return F}return F.injectEndpoints({endpoints:n.endpoints})}}var ll=null;function ul(){return function(){throw new Error(_formatProdErrorMessage3(33))}}function Sc(t){}function Ec(t,...e){return Object.assign(t,...e)}var R0=({api:t,queryThunk:e,internalState:n})=>{const i=`${t.reducerPath}/subscriptions`;let c=null,S=null;const{updateSubscriptionOptions:F,unsubscribeQueryResult:nt}=t.internalActions,ut=(Yt,re)=>{var oe,de,pe,_e,ge,qe,De,$e,Ye;if(F.match(re)){const{queryCacheKey:tn,requestId:gn,options:Cn}=re.payload;return(oe=Yt==null?void 0:Yt[tn])!=null&&oe[gn]&&(Yt[tn][gn]=Cn),!0}if(nt.match(re)){const{queryCacheKey:tn,requestId:gn}=re.payload;return Yt[tn]&&delete Yt[tn][gn],!0}if(t.internalActions.removeQueryResult.match(re))return delete Yt[re.payload.queryCacheKey],!0;if(e.pending.match(re)){const{meta:{arg:tn,requestId:gn}}=re,Cn=(pe=Yt[de=tn.queryCacheKey])!=null?pe:Yt[de]={};return Cn[`${gn}_running`]={},tn.subscribe&&(Cn[gn]=(ge=(_e=tn.subscriptionOptions)!=null?_e:Cn[gn])!=null?ge:{}),!0}let ue=!1;if(e.fulfilled.match(re)||e.rejected.match(re)){const tn=Yt[re.meta.arg.queryCacheKey]||{},gn=`${re.meta.requestId}_running`;ue||(ue=!!tn[gn]),delete tn[gn]}if(e.rejected.match(re)){const{meta:{condition:tn,arg:gn,requestId:Cn}}=re;if(tn&&gn.subscribe){const kn=(De=Yt[qe=gn.queryCacheKey])!=null?De:Yt[qe]={};kn[Cn]=(Ye=($e=gn.subscriptionOptions)!=null?$e:kn[Cn])!=null?Ye:{},ue=!0}}return ue},yt=()=>n.currentSubscriptions,Ht={getSubscriptions:yt,getSubscriptionCount:Yt=>{var oe;const ue=(oe=yt()[Yt])!=null?oe:{};return Kr(ue)},isRequestSubscribed:(Yt,re)=>{var oe;const ue=yt();return!!((oe=ue==null?void 0:ue[Yt])!=null&&oe[re])}};return(Yt,re)=>{if(c||(c=JSON.parse(JSON.stringify(n.currentSubscriptions))),t.util.resetApiState.match(Yt))return c=n.currentSubscriptions={},S=null,[!0,!1];if(t.internalActions.internal_getRTKQSubscriptions.match(Yt))return[!1,Ht];const ue=ut(n.currentSubscriptions,Yt);let oe=!0;if(ue){S||(S=setTimeout(()=>{const _e=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,ge]=ff(c,()=>_e);re.next(t.internalActions.subscriptionsUpdated(ge)),c=_e,S=null},500));const de=typeof Yt.type=="string"&&!!Yt.type.startsWith(i),pe=e.rejected.match(Yt)&&Yt.meta.condition&&!!Yt.meta.arg.subscribe;oe=!de&&!pe}return[oe,!1]}};function U2(t){for(const e in t)return!1;return!0}var Xk=2147483647/1e3-1,Gk=({reducerPath:t,api:e,queryThunk:n,context:i,internalState:c})=>{const{removeQueryResult:S,unsubscribeQueryResult:F,cacheEntriesUpserted:nt}=e.internalActions,ut=ps(F.match,n.fulfilled,n.rejected,nt.match);function yt(Yt){const re=c.currentSubscriptions[Yt];return!!re&&!U2(re)}const _t={},zt=(Yt,re,ue)=>{var oe;if(ut(Yt)){const de=re.getState()[t];let pe;if(nt.match(Yt))pe=Yt.payload.map(_e=>_e.queryDescription.queryCacheKey);else{const{queryCacheKey:_e}=F.match(Yt)?Yt.payload:Yt.meta.arg;pe=[_e]}for(const _e of pe)Ht(_e,(oe=de.queries[_e])==null?void 0:oe.endpointName,re,de.config)}if(e.util.resetApiState.match(Yt))for(const[de,pe]of Object.entries(_t))pe&&clearTimeout(pe),delete _t[de];if(i.hasRehydrationInfo(Yt)){const de=re.getState()[t],{queries:pe}=i.extractRehydrationInfo(Yt);for(const[_e,ge]of Object.entries(pe))Ht(_e,ge==null?void 0:ge.endpointName,re,de.config)}};function Ht(Yt,re,ue,oe){var ge;const de=i.endpointDefinitions[re],pe=(ge=de==null?void 0:de.keepUnusedDataFor)!=null?ge:oe.keepUnusedDataFor;if(pe===1/0)return;const _e=Math.max(0,Math.min(pe,Xk));if(!yt(Yt)){const qe=_t[Yt];qe&&clearTimeout(qe),_t[Yt]=setTimeout(()=>{yt(Yt)||ue.dispatch(S({queryCacheKey:Yt})),delete _t[Yt]},_e*1e3)}}return zt},Ox=new Error("Promise never resolved before cacheEntryRemoved."),Kk=({api:t,reducerPath:e,context:n,queryThunk:i,mutationThunk:c,internalState:S})=>{const F=bc(i),nt=bc(c),ut=qr(i,c),yt={};function _t(ue,oe,de){const pe=yt[ue];pe!=null&&pe.valueResolved&&(pe.valueResolved({data:oe,meta:de}),delete pe.valueResolved)}function zt(ue){const oe=yt[ue];oe&&(delete yt[ue],oe.cacheEntryRemoved())}const Ht=(ue,oe,de)=>{const pe=Yt(ue);function _e(ge,qe,De,$e){const Ye=de[e].queries[qe],tn=oe.getState()[e].queries[qe];!Ye&&tn&&re(ge,$e,qe,oe,De)}if(i.pending.match(ue))_e(ue.meta.arg.endpointName,pe,ue.meta.requestId,ue.meta.arg.originalArgs);else if(t.internalActions.cacheEntriesUpserted.match(ue))for(const{queryDescription:ge,value:qe}of ue.payload){const{endpointName:De,originalArgs:$e,queryCacheKey:Ye}=ge;_e(De,Ye,ue.meta.requestId,$e),_t(Ye,qe,{})}else if(c.pending.match(ue))oe.getState()[e].mutations[pe]&&re(ue.meta.arg.endpointName,ue.meta.arg.originalArgs,pe,oe,ue.meta.requestId);else if(ut(ue))_t(pe,ue.payload,ue.meta.baseQueryMeta);else if(t.internalActions.removeQueryResult.match(ue)||t.internalActions.removeMutationResult.match(ue))zt(pe);else if(t.util.resetApiState.match(ue))for(const ge of Object.keys(yt))zt(ge)};function Yt(ue){var oe;return F(ue)?ue.meta.arg.queryCacheKey:nt(ue)?(oe=ue.meta.arg.fixedCacheKey)!=null?oe:ue.meta.requestId:t.internalActions.removeQueryResult.match(ue)?ue.payload.queryCacheKey:t.internalActions.removeMutationResult.match(ue)?Mf(ue.payload):""}function re(ue,oe,de,pe,_e){const ge=n.endpointDefinitions[ue],qe=ge==null?void 0:ge.onCacheEntryAdded;if(!qe)return;const De={},$e=new Promise(Zn=>{De.cacheEntryRemoved=Zn}),Ye=Promise.race([new Promise(Zn=>{De.valueResolved=Zn}),$e.then(()=>{throw Ox})]);Ye.catch(()=>{}),yt[de]=De;const tn=t.endpoints[ue].select(ge.type==="query"?oe:de),gn=pe.dispatch((Zn,fn,jn)=>jn),Cn=Mi(xr({},pe),{getCacheEntry:()=>tn(pe.getState()),requestId:_e,extra:gn,updateCachedData:ge.type==="query"?Zn=>pe.dispatch(t.util.updateQueryData(ue,oe,Zn)):void 0,cacheDataLoaded:Ye,cacheEntryRemoved:$e}),kn=qe(oe,Cn);Promise.resolve(kn).catch(Zn=>{if(Zn!==Ox)throw Zn})}return Ht},Zk=({api:t,context:{apiUid:e},reducerPath:n})=>(i,c)=>{t.util.resetApiState.match(i)&&c.dispatch(t.internalActions.middlewareRegistered(e))},Qk=({reducerPath:t,context:e,context:{endpointDefinitions:n},mutationThunk:i,queryThunk:c,api:S,assertTagType:F,refetchQuery:nt,internalState:ut})=>{const{removeQueryResult:yt}=S.internalActions,_t=ps(qr(i),wm(i)),zt=ps(qr(i,c),ra(i,c));let Ht=[];const Yt=(oe,de)=>{_t(oe)?ue(Lm(oe,"invalidatesTags",n,F),de):zt(oe)?ue([],de):S.util.invalidateTags.match(oe)&&ue(Bv(oe.payload,void 0,void 0,void 0,void 0,F),de)};function re(oe){var de,pe;for(const _e in oe.queries)if(((de=oe.queries[_e])==null?void 0:de.status)==="pending")return!0;for(const _e in oe.mutations)if(((pe=oe.mutations[_e])==null?void 0:pe.status)==="pending")return!0;return!1}function ue(oe,de){const pe=de.getState(),_e=pe[t];if(Ht.push(...oe),_e.config.invalidationBehavior==="delayed"&&re(_e))return;const ge=Ht;if(Ht=[],ge.length===0)return;const qe=S.util.selectInvalidatedBy(pe,ge);e.batch(()=>{var $e;const De=Array.from(qe.values());for(const{queryCacheKey:Ye}of De){const tn=_e.queries[Ye],gn=($e=ut.currentSubscriptions[Ye])!=null?$e:{};tn&&(Kr(gn)===0?de.dispatch(yt({queryCacheKey:Ye})):tn.status!=="uninitialized"&&de.dispatch(nt(tn)))}})}return Yt},H2=({reducerPath:t,queryThunk:e,api:n,refetchQuery:i,internalState:c})=>{const S={},F=(Ht,Yt)=>{(n.internalActions.updateSubscriptionOptions.match(Ht)||n.internalActions.unsubscribeQueryResult.match(Ht))&&ut(Ht.payload,Yt),(e.pending.match(Ht)||e.rejected.match(Ht)&&Ht.meta.condition)&&ut(Ht.meta.arg,Yt),(e.fulfilled.match(Ht)||e.rejected.match(Ht)&&!Ht.meta.condition)&&nt(Ht.meta.arg,Yt),n.util.resetApiState.match(Ht)&&_t()};function nt({queryCacheKey:Ht},Yt){const re=Yt.getState()[t],ue=re.queries[Ht],oe=c.currentSubscriptions[Ht];if(!ue||ue.status==="uninitialized")return;const{lowestPollingInterval:de,skipPollingIfUnfocused:pe}=zt(oe);if(!Number.isFinite(de))return;const _e=S[Ht];_e!=null&&_e.timeout&&(clearTimeout(_e.timeout),_e.timeout=void 0);const ge=Date.now()+de;S[Ht]={nextPollTimestamp:ge,pollingInterval:de,timeout:setTimeout(()=>{(re.config.focused||!pe)&&Yt.dispatch(i(ue)),nt({queryCacheKey:Ht},Yt)},de)}}function ut({queryCacheKey:Ht},Yt){const ue=Yt.getState()[t].queries[Ht],oe=c.currentSubscriptions[Ht];if(!ue||ue.status==="uninitialized")return;const{lowestPollingInterval:de}=zt(oe);if(!Number.isFinite(de)){yt(Ht);return}const pe=S[Ht],_e=Date.now()+de;(!pe||_e<pe.nextPollTimestamp)&&nt({queryCacheKey:Ht},Yt)}function yt(Ht){const Yt=S[Ht];Yt!=null&&Yt.timeout&&clearTimeout(Yt.timeout),delete S[Ht]}function _t(){for(const Ht of Object.keys(S))yt(Ht)}function zt(Ht={}){let Yt=!1,re=Number.POSITIVE_INFINITY;for(let ue in Ht)Ht[ue].pollingInterval&&(re=Math.min(Ht[ue].pollingInterval,re),Yt=Ht[ue].skipPollingIfUnfocused||Yt);return{lowestPollingInterval:re,skipPollingIfUnfocused:Yt}}return F},Jk=({api:t,context:e,queryThunk:n,mutationThunk:i})=>{const c=rh(n,i),S=ra(n,i),F=qr(n,i),nt={};return(yt,_t)=>{var zt,Ht,Yt;if(c(yt)){const{requestId:re,arg:{endpointName:ue,originalArgs:oe}}=yt.meta,de=e.endpointDefinitions[ue],pe=de==null?void 0:de.onQueryStarted;if(pe){const _e={},ge=new Promise((Ye,tn)=>{_e.resolve=Ye,_e.reject=tn});ge.catch(()=>{}),nt[re]=_e;const qe=t.endpoints[ue].select(de.type==="query"?oe:re),De=_t.dispatch((Ye,tn,gn)=>gn),$e=Mi(xr({},_t),{getCacheEntry:()=>qe(_t.getState()),requestId:re,extra:De,updateCachedData:de.type==="query"?Ye=>_t.dispatch(t.util.updateQueryData(ue,oe,Ye)):void 0,queryFulfilled:ge});pe(oe,$e)}}else if(F(yt)){const{requestId:re,baseQueryMeta:ue}=yt.meta;(zt=nt[re])==null||zt.resolve({data:yt.payload,meta:ue}),delete nt[re]}else if(S(yt)){const{requestId:re,rejectedWithValue:ue,baseQueryMeta:oe}=yt.meta;(Yt=nt[re])==null||Yt.reject({error:(Ht=yt.payload)!=null?Ht:yt.error,isUnhandledError:!ue,meta:oe}),delete nt[re]}}},Im=({reducerPath:t,context:e,api:n,refetchQuery:i,internalState:c})=>{const{removeQueryResult:S}=n.internalActions,F=(ut,yt)=>{Dm.match(ut)&&nt(yt,"refetchOnFocus"),hh.match(ut)&&nt(yt,"refetchOnReconnect")};function nt(ut,yt){const _t=ut.getState()[t],zt=_t.queries,Ht=c.currentSubscriptions;e.batch(()=>{for(const Yt of Object.keys(Ht)){const re=zt[Yt],ue=Ht[Yt];if(!ue||!re)continue;(Object.values(ue).some(de=>de[yt]===!0)||Object.values(ue).every(de=>de[yt]===void 0)&&_t.config[yt])&&(Kr(ue)===0?ut.dispatch(S({queryCacheKey:Yt})):re.status!=="uninitialized"&&ut.dispatch(i(re)))}})}return F};function Nx(t){const{reducerPath:e,queryThunk:n,api:i,context:c}=t,{apiUid:S}=c,F={invalidateTags:es(`${e}/invalidateTags`)},nt=zt=>zt.type.startsWith(`${e}/`),ut=[Zk,Gk,Qk,H2,Kk,Jk];return{middleware:zt=>{let Ht=!1;const Yt={currentSubscriptions:{}},re=Mi(xr({},t),{internalState:Yt,refetchQuery:_t,isThisApiSliceAction:nt}),ue=ut.map(pe=>pe(re)),oe=R0(re),de=Im(re);return pe=>_e=>{if(!of(_e))return pe(_e);Ht||(Ht=!0,zt.dispatch(i.internalActions.middlewareRegistered(S)));const ge=Mi(xr({},zt),{next:pe}),qe=zt.getState(),[De,$e]=oe(_e,ge,qe);let Ye;if(De?Ye=pe(_e):Ye=$e,zt.getState()[e]&&(de(_e,ge,qe),nt(_e)||c.hasRehydrationInfo(_e)))for(const tn of ue)tn(_e,ge,qe);return Ye}},actions:F};function _t(zt){return t.api.endpoints[zt.endpointName].initiate(zt.originalArgs,{subscribe:!1,forceRefetch:!0})}}var Vv=Symbol(),Wv=({createSelector:t=Yr}={})=>({name:Vv,init(e,{baseQuery:n,tagTypes:i,reducerPath:c,serializeQueryArgs:S,keepUnusedDataFor:F,refetchOnMountOrArgChange:nt,refetchOnFocus:ut,refetchOnReconnect:yt,invalidationBehavior:_t},zt){dx();const Ht=wr=>wr;Object.assign(e,{reducerPath:c,endpoints:{},internalActions:{onOnline:hh,onOffline:Wu,onFocus:Dm,onFocusLost:ch},util:{}});const{queryThunk:Yt,mutationThunk:re,patchQueryData:ue,updateQueryData:oe,upsertQueryData:de,prefetch:pe,buildMatchThunkActions:_e}=$k({baseQuery:n,reducerPath:c,context:zt,api:e,serializeQueryArgs:S,assertTagType:Ht}),{reducer:ge,actions:qe}=zv({context:zt,queryThunk:Yt,mutationThunk:re,serializeQueryArgs:S,reducerPath:c,assertTagType:Ht,config:{refetchOnFocus:ut,refetchOnReconnect:yt,refetchOnMountOrArgChange:nt,keepUnusedDataFor:F,reducerPath:c,invalidationBehavior:_t}});Ec(e.util,{patchQueryData:ue,updateQueryData:oe,upsertQueryData:de,prefetch:pe,resetApiState:qe.resetApiState,upsertQueryEntries:qe.cacheEntriesUpserted}),Ec(e.internalActions,qe);const{middleware:De,actions:$e}=Nx({reducerPath:c,context:zt,queryThunk:Yt,mutationThunk:re,api:e,assertTagType:Ht});Ec(e.util,$e),Ec(e,{reducer:ge,middleware:De});const{buildQuerySelector:Ye,buildMutationSelector:tn,selectInvalidatedBy:gn,selectCachedArgsForQuery:Cn}=Ax({serializeQueryArgs:S,reducerPath:c,createSelector:t});Ec(e.util,{selectInvalidatedBy:gn,selectCachedArgsForQuery:Cn});const{buildInitiateQuery:kn,buildInitiateMutation:Zn,getRunningMutationThunk:fn,getRunningMutationsThunk:jn,getRunningQueriesThunk:On,getRunningQueryThunk:Vn}=qk({queryThunk:Yt,mutationThunk:re,api:e,serializeQueryArgs:S,context:zt});return Ec(e.util,{getRunningMutationThunk:fn,getRunningMutationsThunk:jn,getRunningQueryThunk:Vn,getRunningQueriesThunk:On}),{name:Vv,injectEndpoint(wr,Pr){var Ur,Hr;const _r=e;(Hr=(Ur=_r.endpoints)[wr])!=null||(Ur[wr]={}),jv(Pr)?Ec(_r.endpoints[wr],{name:wr,select:Ye(wr,Pr),initiate:kn(wr,Pr)},_e(Yt,wr)):F2(Pr)&&Ec(_r.endpoints[wr],{name:wr,select:tn(),initiate:Zn(wr)},_e(re,wr))}}}}),tT=As(Wv());function Yv(t){return t.replace(t[0],t[0].toUpperCase())}function eT(t){let e=0;for(const n in t)e++;return e}function V2(t){return t.type==="query"}function W2(t){return t.type==="mutation"}function L0(t,...e){return Object.assign(t,...e)}var jm=WeakMap?new WeakMap:void 0,Y2=({endpointName:t,queryArgs:e})=>{let n="";const i=jm==null?void 0:jm.get(e);if(typeof i=="string")n=i;else{const c=JSON.stringify(e,(S,F)=>(F=typeof F=="bigint"?{$bigint:F.toString()}:F,F=Aa(F)?Object.keys(F).sort().reduce((nt,ut)=>(nt[ut]=F[ut],nt),{}):F,F));Aa(e)&&(jm==null||jm.set(e,c)),n=c}return`${t}(${n})`},Bm=Symbol();function I0(t,e,n,i){const c=(0,W.useMemo)(()=>({queryArgs:t,serialized:typeof t=="object"?e({queryArgs:t,endpointDefinition:n,endpointName:i}):t}),[t,e,n,i]),S=(0,W.useRef)(c);return(0,W.useEffect)(()=>{S.current.serialized!==c.serialized&&(S.current=c)},[c]),S.current.serialized===c.serialized?S.current.queryArgs:t}function qv(t){const e=(0,W.useRef)(t);return(0,W.useEffect)(()=>{Ls(e.current,t)||(e.current=t)},[t]),Ls(e.current,t)?e.current:t}var q2=()=>typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",Dx=q2(),Rx=()=>typeof navigator!="undefined"&&navigator.product==="ReactNative",$2=Rx(),X2=()=>Dx||$2?W.useLayoutEffect:W.useEffect,nT=X2(),rT=t=>t.isUninitialized?Mi(xr({},t),{isUninitialized:!1,isFetching:!0,isLoading:t.data===void 0,status:$n.pending}):t;function Lx({api:t,moduleOptions:{batch:e,hooks:{useDispatch:n,useSelector:i,useStore:c},unstable__sideEffectsInRender:S,createSelector:F},serializeQueryArgs:nt,context:ut}){const yt=S?re=>re():W.useEffect;return{buildQueryHooks:Ht,buildMutationHook:Yt,usePrefetch:zt};function _t(re,ue,oe){if(ue!=null&&ue.endpointName&&re.isUninitialized){const{endpointName:De}=ue,$e=ut.endpointDefinitions[De];oe!==qu&&nt({queryArgs:ue.originalArgs,endpointDefinition:$e,endpointName:De})===nt({queryArgs:oe,endpointDefinition:$e,endpointName:De})&&(ue=void 0)}let de=re.isSuccess?re.data:ue==null?void 0:ue.data;de===void 0&&(de=re.data);const pe=de!==void 0,_e=re.isLoading,ge=(!ue||ue.isLoading||ue.isUninitialized)&&!pe&&_e,qe=re.isSuccess||pe&&(_e&&!(ue!=null&&ue.isError)||re.isUninitialized);return Mi(xr({},re),{data:de,currentData:re.data,isFetching:_e,isLoading:ge,isSuccess:qe})}function zt(re,ue){const oe=n(),de=qv(ue);return(0,W.useCallback)((pe,_e)=>oe(t.util.prefetch(re,pe,xr(xr({},de),_e))),[re,oe,de])}function Ht(re){const ue=(pe,{refetchOnReconnect:_e,refetchOnFocus:ge,refetchOnMountOrArgChange:qe,skip:De=!1,pollingInterval:$e=0,skipPollingIfUnfocused:Ye=!1}={})=>{const{initiate:tn}=t.endpoints[re],gn=n(),Cn=(0,W.useRef)(void 0);if(!Cn.current){const _r=gn(t.internalActions.internal_getRTKQSubscriptions());Cn.current=_r}const kn=I0(De?qu:pe,Y2,ut.endpointDefinitions[re],re),Zn=qv({refetchOnReconnect:_e,refetchOnFocus:ge,pollingInterval:$e,skipPollingIfUnfocused:Ye}),fn=(0,W.useRef)(!1),jn=(0,W.useRef)(void 0);let{queryCacheKey:On,requestId:Vn}=jn.current||{},wr=!1;On&&Vn&&(wr=Cn.current.isRequestSubscribed(On,Vn));const Pr=!wr&&fn.current;return yt(()=>{fn.current=wr}),yt(()=>{Pr&&(jn.current=void 0)},[Pr]),yt(()=>{var Hr;const _r=jn.current;if(kn===qu){_r==null||_r.unsubscribe(),jn.current=void 0;return}const Ur=(Hr=jn.current)==null?void 0:Hr.subscriptionOptions;if(!_r||_r.arg!==kn){_r==null||_r.unsubscribe();const Li=gn(tn(kn,{subscriptionOptions:Zn,forceRefetch:qe}));jn.current=Li}else Zn!==Ur&&_r.updateSubscriptionOptions(Zn)},[gn,tn,qe,kn,Zn,Pr]),(0,W.useEffect)(()=>()=>{var _r;(_r=jn.current)==null||_r.unsubscribe(),jn.current=void 0},[]),(0,W.useMemo)(()=>({refetch:()=>{var _r;if(!jn.current)throw new Error(Ka(38));return(_r=jn.current)==null?void 0:_r.refetch()}}),[])},oe=({refetchOnReconnect:pe,refetchOnFocus:_e,pollingInterval:ge=0,skipPollingIfUnfocused:qe=!1}={})=>{const{initiate:De}=t.endpoints[re],$e=n(),[Ye,tn]=(0,W.useState)(Bm),gn=(0,W.useRef)(void 0),Cn=qv({refetchOnReconnect:pe,refetchOnFocus:_e,pollingInterval:ge,skipPollingIfUnfocused:qe});yt(()=>{var On,Vn;const jn=(On=gn.current)==null?void 0:On.subscriptionOptions;Cn!==jn&&((Vn=gn.current)==null||Vn.updateSubscriptionOptions(Cn))},[Cn]);const kn=(0,W.useRef)(Cn);yt(()=>{kn.current=Cn},[Cn]);const Zn=(0,W.useCallback)(function(jn,On=!1){let Vn;return e(()=>{var wr;(wr=gn.current)==null||wr.unsubscribe(),gn.current=Vn=$e(De(jn,{subscriptionOptions:kn.current,forceRefetch:!On})),tn(jn)}),Vn},[$e,De]),fn=(0,W.useCallback)(()=>{var jn,On;(jn=gn.current)!=null&&jn.queryCacheKey&&$e(t.internalActions.removeQueryResult({queryCacheKey:(On=gn.current)==null?void 0:On.queryCacheKey}))},[$e]);return(0,W.useEffect)(()=>()=>{var jn;(jn=gn==null?void 0:gn.current)==null||jn.unsubscribe()},[]),(0,W.useEffect)(()=>{Ye!==Bm&&!gn.current&&Zn(Ye,!0)},[Ye,Zn]),(0,W.useMemo)(()=>[Zn,Ye,{reset:fn}],[Zn,Ye,fn])},de=(pe,{skip:_e=!1,selectFromResult:ge}={})=>{const{select:qe}=t.endpoints[re],De=I0(_e?qu:pe,nt,ut.endpointDefinitions[re],re),$e=(0,W.useRef)(void 0),Ye=(0,W.useMemo)(()=>F([qe(De),(Zn,fn)=>fn,Zn=>De],_t,{memoizeOptions:{resultEqualityCheck:Ls}}),[qe,De]),tn=(0,W.useMemo)(()=>ge?F([Ye],ge,{devModeChecks:{identityFunctionCheck:"never"}}):Ye,[Ye,ge]),gn=i(Zn=>tn(Zn,$e.current),Ls),Cn=c(),kn=Ye(Cn.getState(),$e.current);return nT(()=>{$e.current=kn},[kn]),gn};return{useQueryState:de,useQuerySubscription:ue,useLazyQuerySubscription:oe,useLazyQuery(pe){const[_e,ge,{reset:qe}]=oe(pe),De=de(ge,Mi(xr({},pe),{skip:ge===Bm})),$e=(0,W.useMemo)(()=>({lastArg:ge}),[ge]);return(0,W.useMemo)(()=>[_e,Mi(xr({},De),{reset:qe}),$e],[_e,De,qe,$e])},useQuery(pe,_e){const ge=ue(pe,_e),qe=de(pe,xr({selectFromResult:pe===qu||_e!=null&&_e.skip?void 0:rT},_e)),{data:De,status:$e,isLoading:Ye,isSuccess:tn,isError:gn,error:Cn}=qe;return(0,W.useDebugValue)({data:De,status:$e,isLoading:Ye,isSuccess:tn,isError:gn,error:Cn}),(0,W.useMemo)(()=>xr(xr({},qe),ge),[qe,ge])}}}function Yt(re){return({selectFromResult:ue,fixedCacheKey:oe}={})=>{const{select:de,initiate:pe}=t.endpoints[re],_e=n(),[ge,qe]=(0,W.useState)();(0,W.useEffect)(()=>()=>{ge!=null&&ge.arg.fixedCacheKey||ge==null||ge.reset()},[ge]);const De=(0,W.useCallback)(function(Ur){const Hr=_e(pe(Ur,{fixedCacheKey:oe}));return qe(Hr),Hr},[_e,pe,oe]),{requestId:$e}=ge||{},Ye=(0,W.useMemo)(()=>de({fixedCacheKey:oe,requestId:ge==null?void 0:ge.requestId}),[oe,ge,de]),tn=(0,W.useMemo)(()=>ue?F([Ye],ue):Ye,[ue,Ye]),gn=i(tn,Ls),Cn=oe==null?ge==null?void 0:ge.arg.originalArgs:void 0,kn=(0,W.useCallback)(()=>{e(()=>{ge&&qe(void 0),oe&&_e(t.internalActions.removeMutationResult({requestId:$e,fixedCacheKey:oe}))})},[_e,oe,ge,$e]),{endpointName:Zn,data:fn,status:jn,isLoading:On,isSuccess:Vn,isError:wr,error:Pr}=gn;(0,W.useDebugValue)({endpointName:Zn,data:fn,status:jn,isLoading:On,isSuccess:Vn,isError:wr,error:Pr});const _r=(0,W.useMemo)(()=>Mi(xr({},gn),{originalArgs:Cn,reset:kn}),[gn,Cn,kn]);return(0,W.useMemo)(()=>[De,_r],[De,_r])}}}var iT=Symbol(),oT=(S={})=>{var F=S,{batch:t=Jg,hooks:e={useDispatch:Si,useSelector:sr,useStore:El},createSelector:n=Yr,unstable__sideEffectsInRender:i=!1}=F,c=io(F,["batch","hooks","createSelector","unstable__sideEffectsInRender"]);return{name:iT,init(nt,{serializeQueryArgs:ut},yt){const _t=nt,{buildQueryHooks:zt,buildMutationHook:Ht,usePrefetch:Yt}=Lx({api:nt,moduleOptions:{batch:t,hooks:e,unstable__sideEffectsInRender:i,createSelector:n},serializeQueryArgs:ut,context:yt});return L0(_t,{usePrefetch:Yt}),L0(yt,{batch:t}),{injectEndpoint(re,ue){if(V2(ue)){const{useQuery:oe,useLazyQuery:de,useLazyQuerySubscription:pe,useQueryState:_e,useQuerySubscription:ge}=zt(re);L0(_t.endpoints[re],{useQuery:oe,useLazyQuery:de,useLazyQuerySubscription:pe,useQueryState:_e,useQuerySubscription:ge}),nt[`use${Yv(re)}Query`]=oe,nt[`useLazy${Yv(re)}Query`]=de}else if(W2(ue)){const oe=Ht(re);L0(_t.endpoints[re],{useMutation:oe}),nt[`use${Yv(re)}Mutation`]=oe}}}}}};function K5(t){const e=t.context||ReactReduxContext;if(useContext(e))throw new Error(_formatProdErrorMessage4(35));const[i]=React.useState(()=>configureStore({reducer:{[t.api.reducerPath]:t.api.reducer},middleware:c=>c().concat(t.api.middleware)}));return useEffect4(()=>t.setupListeners===!1?void 0:setupListeners(i.dispatch,t.setupListeners),[t.setupListeners,i.dispatch]),React.createElement(Provider,{store:i,context:e},t.children)}var G2=As(Wv(),oT()),aT=Fn(7059),Fr=Fn.n(aT),$v=Fn(2976),Xv=Fn.n($v),sT=Fn(4112),j0=Fn.n(sT);Fr().extend(Xv()),Fr().extend(j0());const Na=t=>!t||typeof t=="string"&&t.length===10?t:Fr()(new Date(t)).format("YYYY-MM-DD"),Kl=t=>Fr()(new Date(t)).utc().format("M/D/YYYY"),Gv=t=>Fr()(new Date(t)).utc().add(5.5,"hours").format(),dh=t=>Fr()(new Date(t)).utc().add(5.5,"hours").format("YYYY-MM-DD"),Z5=t=>dayjs(t).toISOString(),Q5=t=>dayjs(new Date(t)).utc().add(5.5,"hours").format("ll"),B0=(t,e)=>Fr()(new Date(t)).isSame(new Date(e),"day"),J5=(t,e)=>B0(t,e)?0:new Date(t)<new Date(e)?-1:1,Fm="2011-12-01",Tf="M/D/YYYY",Zl=Na(new Date),gs=Na(Fm),Ix="MODAL_TYPE_DATA_EXPORT",jx="MODAL_TYPE_EXPORT_CONFIRMATION",F0="MODAL_TYPE_MORE_ABOUT",ep="Map",np="List",Rl="Trends",Cc="None",z0="Per 1000 pop.",K2="complaint_what_happened",zm=["company","company_public_response","company_response","consumer_consent_provided","consumer_disputed","issue","product","state","submitted_via","tags","timely","zip_code"],Kv=["company_received_max","company_received_min","date_received_max","date_received_min"],Bx=["Day","Week","Month","Quarter","Year"],Zv={"3m":"3 months","6m":"6 months","1y":"1 year","3y":"3 years",All:"Full date range"},tO=null,Af=["has_narrative"],Um=["issue","product"],Qv=["Overview","Company","Product"],rp={};rp[10]="10 results",rp[25]="25 results",rp[50]="50 results",rp[100]="100 results";const Jv={created_date_desc:"Newest to oldest",created_date_asc:"Oldest to newest",relevance_desc:"Relevance",relevance_asc:"Relevance (asc)"},Ws="\u2022",Z2=40,ip=14,eO=27,nO=13,lT=9,rO=38,U0={AA:"Armed Forces Americas",AE:"Armed Forces Europe",AL:"Alabama",AK:"Alaska",AS:"American Samoa",AP:"Armed Forces Pacific",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District Of Columbia",FM:"Federated States Of Micronesia",FL:"Florida",GA:"Georgia",GU:"Guam",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MH:"Marshall Islands",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",MP:"Northern Mariana Islands",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PW:"Palau",PA:"Pennsylvania",PR:"Puerto Rico",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VI:"Virgin Islands",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming"},op=["AK","AL","AR","AZ","CA","CO","CT","DC","DE","FL","GA","HI","IA","ID","IL","IN","KS","KY","LA","MA","MD","ME","MI","MN","MO","MS","MT","NC","ND","NE","NH","NJ","NM","NV","NY","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VA","VT","WA","WI","WV","WY"],t1={AL:{abbr:"AL",name:"Alabama",population:"4850771",id:"01"},AK:{abbr:"AK",name:"Alaska",population:"738565",id:"02"},AZ:{abbr:"AZ",name:"Arizona",population:"6809946",id:"04"},AR:{abbr:"AR",name:"Arkansas",population:"2977944",id:"05"},CA:{abbr:"CA",name:"California",population:"38982847",id:"06"},CO:{abbr:"CO",name:"Colorado",population:"5436519",id:"08"},CT:{abbr:"CT",name:"Connecticut",population:"3594478",id:"09"},DE:{abbr:"DE",name:"Delaware",population:"943732",id:"10"},DC:{abbr:"DC",name:"District of Columbia",population:"672391",id:"11"},FL:{abbr:"FL",name:"Florida",population:"20278447",id:"12"},GA:{abbr:"GA",name:"Georgia",population:"10201635",id:"13"},HI:{abbr:"HI",name:"Hawaii",population:"1421658",id:"15"},ID:{abbr:"ID",name:"Idaho",population:"1657375",id:"16"},IL:{abbr:"IL",name:"Illinois",population:"12854526",id:"17"},IN:{abbr:"IN",name:"Indiana",population:"6614418",id:"18"},IA:{abbr:"IA",name:"Iowa",population:"3118102",id:"19"},KS:{abbr:"KS",name:"Kansas",population:"2903820",id:"20"},KY:{abbr:"KY",name:"Kentucky",population:"4424376",id:"21"},LA:{abbr:"LA",name:"Louisiana",population:"4663461",id:"22"},ME:{abbr:"ME",name:"Maine",population:"1330158",id:"23"},MD:{abbr:"MD",name:"Maryland",population:"5996079",id:"24"},MA:{abbr:"MA",name:"Massachusetts",population:"6789319",id:"25"},MI:{abbr:"MI",name:"Michigan",population:"9925568",id:"26"},MN:{abbr:"MN",name:"Minnesota",population:"5490726",id:"27"},MS:{abbr:"MS",name:"Mississippi",population:"2986220",id:"28"},MO:{abbr:"MO",name:"Missouri",population:"6075300",id:"29"},MT:{abbr:"MT",name:"Montana",population:"1029862",id:"30"},NE:{abbr:"NE",name:"Nebraska",population:"1893921",id:"31"},NV:{abbr:"NV",name:"Nevada",population:"2887725",id:"32"},NH:{abbr:"NH",name:"New Hampshire",population:"1331848",id:"33"},NJ:{abbr:"NJ",name:"New Jersey",population:"8960161",id:"34"},NM:{abbr:"NM",name:"New Mexico",population:"2084828",id:"35"},NY:{abbr:"NY",name:"New York",population:"19798228",id:"36"},NC:{abbr:"NC",name:"North Carolina",population:"10052564",id:"37"},ND:{abbr:"ND",name:"North Dakota",population:"745475",id:"38"},OH:{abbr:"OH",name:"Ohio",population:"11609756",id:"39"},OK:{abbr:"OK",name:"Oklahoma",population:"3896251",id:"40"},OR:{abbr:"OR",name:"Oregon",population:"4025127",id:"41"},PA:{abbr:"PA",name:"Pennsylvania",population:"12790505",id:"42"},PR:{abbr:"PR",name:"Puerto Rico",population:"3468963",id:"72"},RI:{abbr:"RI",name:"Rhode Island",population:"1056138",id:"44"},SC:{abbr:"SC",name:"South Carolina",population:"4893444",id:"45"},SD:{abbr:"SD",name:"South Dakota",population:"855444",id:"46"},TN:{abbr:"TN",name:"Tennessee",population:"6597381",id:"47"},TX:{abbr:"TX",name:"Texas",population:"27419612",id:"48"},UT:{abbr:"UT",name:"Utah",population:"2993941",id:"49"},VT:{abbr:"VT",name:"Vermont",population:"624636",id:"50"},VA:{abbr:"VA",name:"Virginia",population:"8365952",id:"51"},WA:{abbr:"WA",name:"Washington",population:"7169967",id:"53"},WV:{abbr:"WV",name:"West Virginia",population:"1836843",id:"54"},WI:{abbr:"WI",name:"Wisconsin",population:"5763217",id:"55"},WY:{abbr:"WY",name:"Wyoming",population:"583200",id:"56"}},ph="/data-research/consumer-complaints/search/api/v1/",H0=window.location.origin.indexOf("localhost")>-1?"https://www.consumerfinance.gov/complaint/data-use/":"/complaint/data-use/";var Pf=Fn(8210);const Hm={tagManagerIsLoaded:!1,EVENT_CATEGORY:"Consumer Complaint Search",getDataLayerOptions:function(t,e,n,i,c){return{event:n||Hm.EVENT_CATEGORY,action:t,label:e||"",eventCallback:i,eventTimeout:c||500}},init:function(){if(Object.prototype.hasOwnProperty.call(window,"google_tag_manager"))Hm.tagManagerIsLoaded=!0;else{let t;Object.defineProperty(window,"google_tag_manager",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e,Hm.tagManagerIsLoaded=!0}})}},sendEvent:function(t){const e=t.eventCallback;Hm.tagManagerIsLoaded?window.dataLayer.push(t):e&&typeof e=="function"&&e()}};Hm.init();const V0=Hm,e1="%[a-f0-9]{2}",n1=new RegExp("("+e1+")|([^%]+?)","gi"),Vm=new RegExp("("+e1+")+","gi");function Wm(t,e){try{return[decodeURIComponent(t.join(""))]}catch(c){}if(t.length===1)return t;e=e||1;const n=t.slice(0,e),i=t.slice(e);return Array.prototype.concat.call([],Wm(n),Wm(i))}function r1(t){try{return decodeURIComponent(t)}catch(e){let n=t.match(n1)||[];for(let i=1;i<n.length;i++)t=Wm(n,i).join(""),n=t.match(n1)||[];return t}}function Ym(t){const e={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"};let n=Vm.exec(t);for(;n;){try{e[n[0]]=decodeURIComponent(n[0])}catch(c){const S=r1(n[0]);S!==n[0]&&(e[n[0]]=S)}n=Vm.exec(t)}e["%C2"]="\uFFFD";const i=Object.keys(e);for(const c of i)t=t.replace(new RegExp(c,"g"),e[c]);return t}function Fx(t){if(typeof t!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return decodeURIComponent(t)}catch(e){return Ym(t)}}function W0(t,e){const n={};if(Array.isArray(e))for(const i of e){const c=Object.getOwnPropertyDescriptor(t,i);c!=null&&c.enumerable&&Object.defineProperty(n,i,c)}else for(const i of Reflect.ownKeys(t)){const c=Object.getOwnPropertyDescriptor(t,i);if(c.enumerable){const S=t[i];e(i,S,t)&&Object.defineProperty(n,i,c)}}return n}function i1(t,e){if(Array.isArray(e)){const n=new Set(e);return W0(t,i=>!n.has(i))}return W0(t,(n,i,c)=>!e(n,i,c))}function zx(t,e){if(!(typeof t=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t===""||e==="")return[];const n=t.indexOf(e);return n===-1?[]:[t.slice(0,n),t.slice(n+e.length)]}const Q2=t=>t==null,Mc=t=>encodeURIComponent(t).replaceAll(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),Ql=Symbol("encodeFragmentIdentifier");function $u(t){switch(t.arrayFormat){case"index":return e=>(n,i)=>{const c=n.length;return i===void 0||t.skipNull&&i===null||t.skipEmptyString&&i===""?n:i===null?[...n,[za(e,t),"[",c,"]"].join("")]:[...n,[za(e,t),"[",za(c,t),"]=",za(i,t)].join("")]};case"bracket":return e=>(n,i)=>i===void 0||t.skipNull&&i===null||t.skipEmptyString&&i===""?n:i===null?[...n,[za(e,t),"[]"].join("")]:[...n,[za(e,t),"[]=",za(i,t)].join("")];case"colon-list-separator":return e=>(n,i)=>i===void 0||t.skipNull&&i===null||t.skipEmptyString&&i===""?n:i===null?[...n,[za(e,t),":list="].join("")]:[...n,[za(e,t),":list=",za(i,t)].join("")];case"comma":case"separator":case"bracket-separator":{const e=t.arrayFormat==="bracket-separator"?"[]=":"=";return n=>(i,c)=>c===void 0||t.skipNull&&c===null||t.skipEmptyString&&c===""?i:(c=c===null?"":c,i.length===0?[[za(n,t),e,za(c,t)].join("")]:[[i,za(c,t)].join(t.arrayFormatSeparator)])}default:return e=>(n,i)=>i===void 0||t.skipNull&&i===null||t.skipEmptyString&&i===""?n:i===null?[...n,za(e,t)]:[...n,[za(e,t),"=",za(i,t)].join("")]}}function ap(t){let e;switch(t.arrayFormat){case"index":return(n,i,c)=>{if(e=/\[(\d*)]$/.exec(n),n=n.replace(/\[\d*]$/,""),!e){c[n]=i;return}c[n]===void 0&&(c[n]={}),c[n][e[1]]=i};case"bracket":return(n,i,c)=>{if(e=/(\[])$/.exec(n),n=n.replace(/\[]$/,""),!e){c[n]=i;return}if(c[n]===void 0){c[n]=[i];return}c[n]=[...c[n],i]};case"colon-list-separator":return(n,i,c)=>{if(e=/(:list)$/.exec(n),n=n.replace(/:list$/,""),!e){c[n]=i;return}if(c[n]===void 0){c[n]=[i];return}c[n]=[...c[n],i]};case"comma":case"separator":return(n,i,c)=>{const S=typeof i=="string"&&i.includes(t.arrayFormatSeparator),F=typeof i=="string"&&!S&&mh(i,t).includes(t.arrayFormatSeparator);i=F?mh(i,t):i;const nt=S||F?i.split(t.arrayFormatSeparator).map(ut=>mh(ut,t)):i===null?i:mh(i,t);c[n]=nt};case"bracket-separator":return(n,i,c)=>{const S=/(\[])$/.test(n);if(n=n.replace(/\[]$/,""),!S){c[n]=i&&mh(i,t);return}const F=i===null?[]:mh(i,t).split(t.arrayFormatSeparator);if(c[n]===void 0){c[n]=F;return}c[n]=[...c[n],...F]};default:return(n,i,c)=>{if(c[n]===void 0){c[n]=i;return}c[n]=[...[c[n]].flat(),i]}}}function Ux(t){if(typeof t!="string"||t.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function za(t,e){return e.encode?e.strict?Mc(t):encodeURIComponent(t):t}function mh(t,e){return e.decode?Fx(t):t}function Hx(t){return Array.isArray(t)?t.sort():typeof t=="object"?Hx(Object.keys(t)).sort((e,n)=>Number(e)-Number(n)).map(e=>t[e]):t}function J2(t){const e=t.indexOf("#");return e!==-1&&(t=t.slice(0,e)),t}function uT(t){let e="";const n=t.indexOf("#");return n!==-1&&(e=t.slice(n)),e}function tS(t,e,n){return n==="string"&&typeof t=="string"?t:typeof n=="function"&&typeof t=="string"?n(t):e.parseBooleans&&t!==null&&(t.toLowerCase()==="true"||t.toLowerCase()==="false")?t.toLowerCase()==="true":n==="number"&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""||e.parseNumbers&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""?Number(t):t}function o1(t){t=J2(t);const e=t.indexOf("?");return e===-1?"":t.slice(e+1)}function a1(t,e){e=xr({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null)},e),Ux(e.arrayFormatSeparator);const n=ap(e),i=Object.create(null);if(typeof t!="string"||(t=t.trim().replace(/^[?#&]/,""),!t))return i;for(const c of t.split("&")){if(c==="")continue;const S=e.decode?c.replaceAll("+"," "):c;let[F,nt]=zx(S,"=");F===void 0&&(F=S),nt=nt===void 0?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?nt:mh(nt,e),n(mh(F,e),nt,i)}for(const[c,S]of Object.entries(i))if(typeof S=="object"&&S!==null&&e.types[c]!=="string")for(const[F,nt]of Object.entries(S)){const ut=e.types[c]?e.types[c].replace("[]",""):void 0;S[F]=tS(nt,e,ut)}else typeof S=="object"&&S!==null&&e.types[c]==="string"?i[c]=Object.values(S).join(e.arrayFormatSeparator):i[c]=tS(S,e,e.types[c]);return e.sort===!1?i:(e.sort===!0?Object.keys(i).sort():Object.keys(i).sort(e.sort)).reduce((c,S)=>{const F=i[S];return c[S]=F&&typeof F=="object"&&!Array.isArray(F)?Hx(F):F,c},Object.create(null))}function Vx(t,e){if(!t)return"";e=xr({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e),Ux(e.arrayFormatSeparator);const n=F=>e.skipNull&&Q2(t[F])||e.skipEmptyString&&t[F]==="",i=$u(e),c={};for(const[F,nt]of Object.entries(t))n(F)||(c[F]=nt);const S=Object.keys(c);return e.sort!==!1&&S.sort(e.sort),S.map(F=>{const nt=t[F];return nt===void 0?"":nt===null?za(F,e):Array.isArray(nt)?nt.length===0&&e.arrayFormat==="bracket-separator"?za(F,e)+"[]":nt.reduce(i(F),[]).join("&"):za(F,e)+"="+za(nt,e)}).filter(F=>F.length>0).join("&")}function s1(t,e){var c,S;e=xr({decode:!0},e);let[n,i]=zx(t,"#");return n===void 0&&(n=t),xr({url:(S=(c=n==null?void 0:n.split("?"))==null?void 0:c[0])!=null?S:"",query:a1(o1(t),e)},e&&e.parseFragmentIdentifier&&i?{fragmentIdentifier:mh(i,e)}:{})}function l1(t,e){e=xr({encode:!0,strict:!0,[Ql]:!0},e);const n=J2(t.url).split("?")[0]||"",i=o1(t.url),c=xr(xr({},a1(i,{sort:!1})),t.query);let S=Vx(c,e);S&&(S=`?${S}`);let F=uT(t.url);if(typeof t.fragmentIdentifier=="string"){const nt=new URL(n);nt.hash=t.fragmentIdentifier,F=e[Ql]?nt.hash:`#${t.fragmentIdentifier}`}return`${n}${S}${F}`}function Wx(t,e,n){n=xr({parseFragmentIdentifier:!0,[Ql]:!1},n);const{url:i,query:c,fragmentIdentifier:S}=s1(t,n);return l1({url:i,query:W0(c,e),fragmentIdentifier:S},n)}function eS(t,e,n){const i=Array.isArray(e)?c=>!e.includes(c):(c,S)=>!e(c,S);return Wx(t,i,n)}const Ll=br;function qm(t){return Array.from(t||"").join(" ")}const u1=(t,e)=>{const n=Fr()(lp()),i=Fr()(e).startOf("day"),c=Fr()(t).startOf("day");if(i.diff(n,"days")!==0)return"";if(Fr()(t).isSame(Fm,"day"))return"All";const S=i.diff(c,"years",!0);if(S===3||S===1)return S+"y";const F=i.diff(c,"months",!0);return F===6||F===3?F+"m":""},Yx=(t,e,n)=>{if(n){if(Math.min(t,e)===t)return e;if(Math.max(t,n)===t)return n}else return Math.max(t,e)===e?e:t;return t},nS=(t,e,n)=>{let i=new Date(t);const c=new Date(e),S=new Date(n);return i<c?i=c:i>S&&(i=S),i},is=(t,e,n)=>typeof t!="object"?n:e in t&&t[e]?t[e]:n;function cT(t){const e=String(t);let n=0,i,c;if(e.length===0)return n;for(i=0;i<e.length;i++)c=e.charCodeAt(i),n=(n<<5)-n+c,n|=0;return n}function rS(t){const e=[];let n;const i=zm.concat(Af);for(let S=0;S<i.length;S++)n=i[S],(Array.isArray(t[n])&&t[n].length||t[n]===!0)&&e.push(n);const c=["company_received_max","company_received_min"];for(let S=0;S<c.length;S++)n=c[S],t[n]&&e.push(n);return e.length?e.length===1&&e[0]==="state":!0}const iS=t=>t.toLowerCase(),Y0=t=>t.replace(/\s+|\W/g,"-").toLowerCase(),sp=(t,e)=>t+Ws+e,c1=(t,e)=>{const n=(structuredClone(t)||[]).slice();return n.sort((i,c)=>{const S=e.indexOf(i.key)!==-1,F=e.indexOf(c.key)!==-1;return S&&!F?-1:!S&&F?1:c.doc_count-i.doc_count}),n};function h1(t){const e=Fr()(t);return t?e.format("M/D/YYYY"):""}function f1(t){return typeof t=="string"?t.slice(0,10):typeof t=="object"&&t!==null?Fr()(t).toISOString().slice(0,10):""}function lp(){if(!Object.prototype.hasOwnProperty.call(window,"MAX_DATE"))if(Object.prototype.hasOwnProperty.call(window,"complaint_public_metadata")){const{metadata_timestamp:t}=window.complaint_public_metadata;window.MAX_DATE=new Date(Fr()(t).startOf("day").toString())}else console.error("complaint_public_metadata is missing"),window.MAX_DATE=new Date(Fr()().startOf("day").toString());return new Date(window.MAX_DATE.valueOf())}function q0(t,e,n){let i;return function(){const c=this,S=arguments;clearTimeout(i),i=setTimeout(function(){i=null,n||t.apply(c,S)},e),n&&!i&&t.apply(c,S)}}function qx(t){if(!t)return t;const e=document.createElement("a");return e.href=t,e.href}function hT(t){return{name:t.name,message:t.message}}function iO(t){const e=parseFloat(parseFloat(t*100).toFixed(2));return isNaN(e)?0:e}const $x=t=>{for(const e in t)if(e!=="trend_period"&&t[e].buckets)return e;return""},oS=(t,e,n)=>{n.forEach(i=>{typeof t[i]!="undefined"&&(typeof t[i]=="string"?e[i]=[t[i]]:e[i]=t[i])}),t.has_narrative?e.has_narrative=!!t.has_narrative:delete e.has_narrative},aS=(t,e)=>{const n=new Set;return n.add(t),e.forEach(i=>{n.add(sp(t,i.key))}),n},Ps=(t,e)=>{V0.sendEvent(V0.getDataLayerOptions(t,e))},$m=(t,e,n="selected")=>t===e?" "+n:"";function fT(t){const e=Object.keys(t).reduce((n,i)=>(t[i]!==null&&t[i]!==void 0&&t[i]!==""&&!Number.isNaN(t[i])&&(n[i]=t[i]),n),{});for(const n in e)Array.isArray(e[n])&&e[n].length===0&&delete e[n];return e}function sS(t,e){return t+"?"+Ll.stringify(e)}const kc=(t,e,n)=>n?!1:t==="Company"?!e||e.length===0:!1,Xx=t=>{if(!t)return"";switch(t){case"Overview":return"";case"Company":return"product";default:return"sub_"+t.toLowerCase()}},Gx=t=>t.filter(n=>n.name==="Other").reduce((n,i)=>n+i.value,0)>0?t:t.filter(n=>n.name!=="Other"),Kx=(t,e)=>{const n=Fr()(t);return Fr()(e).diff(n,"days")>366},lS=(t,e)=>Bx.map(n=>({name:n,disabled:Kx(t,e)&&n==="Day"})),d1=()=>{const t=document.getElementById("search-summary");t&&t.scrollIntoView()},Ys=(t,e)=>{const n={chartType:{defaultVal:"line",values:["line","area"]},dataNormalization:{defaultVal:Cc,values:[Cc,z0]},dateInterval:{defaultVal:"Month",values:Bx},dateRange:{defaultVal:"3y",values:Object.keys(Zv)},lens:{defaultVal:"Product",values:Qv},searchField:{defaultVal:"all",values:["all","company","complaint_what_happened"]},size:{defaultVal:25,values:Object.keys(rp)},sort:{defaultVal:"created_date_desc",values:Object.keys(Jv)},tab:{defaultVal:Rl,values:[Rl,np,ep]}};if(n[e]){const i=n[e];return i.values.includes(t)?t:i.defaultVal}return t},uS=t=>{t.chartType=Ys(t.chartType,"chartType"),t.chartType=t.lens==="Overview"?"line":t.chartType;const e={Overview:[""],Company:["product"],Product:["sub_product","issue"]};e[t.lens]&&!e[t.lens].includes(t.subLens)&&(t.subLens=Xx(t.lens))};var dT=Fn(1398),cS=Fn.n(dT),$0=Fn(4843),Zx=Fn.n($0),pT=Object.defineProperty,Qx=Object.defineProperties,mT=Object.getOwnPropertyDescriptors,Xm=Object.getOwnPropertySymbols,gT=Object.prototype.hasOwnProperty,hS=Object.prototype.propertyIsEnumerable,X0=(t,e,n)=>e in t?pT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fS=(t,e)=>{for(var n in e||(e={}))gT.call(e,n)&&X0(t,n,e[n]);if(Xm)for(var n of Xm(e))hS.call(e,n)&&X0(t,n,e[n]);return t},yT=(t,e)=>Qx(t,mT(e));Fr().extend(cS()),Fr().extend(j0()),Fr().extend(Zx()),Fr().tz.setDefault("America/New_York");const G0=(t,e)=>{if(!t||t.length===0)return null;const i=[...new Set(t.map(S=>Fr()(S.date).toISOString()))].sort().pop(),c=t.filter(S=>B0(S.date,i));return{key:i,date:i,dateRange:e.dateRange,interval:e.interval,values:c}},vT=(t,e)=>{if(!t||!t.dataByTopic||t.dataByTopic.length===0)return null;let n=[];t.dataByTopic.forEach(nt=>{n=n.concat(nt.dates)});const c=[...new Set(n.map(nt=>nt.date))].sort().pop(),S=t.dataByTopic.map(nt=>{const ut=nt.dates.find(_t=>B0(_t.date,c)),yt=ut?ut.value:0;return{name:nt.topic,date:c,value:yt}});return{key:c,date:c,dateRange:e.dateRange,interval:e.interval,values:S}},Jx=(t,e)=>{const n=Gv(t),i=nS(n,e.from,e.to);return Kl(i)},dS=(t,e,n,i)=>{e=e.toLowerCase();const c=Jx(t,n);let S=Fr()(t).utc();switch(e){case"day":S=S.format();break;case"week":case"year":S=S.add(1,e).subtract(1,"day").format();break;case"quarter":case"month":default:S=S.endOf(e).subtract(1,"day").format();break}return S=Jx(S,n),e==="day"?`Date: ${S}`:i?`Date range: ${c} - ${S}`:`${c} - ${S}`},K0=(t,e,n)=>t.map(i=>{if(!e)return"#20aa3f";const c=i.name.trim(),S=i.parent?i.parent.trim():"";return e[S]?e[S]:e[c]?e[c]:n==="Overview"?"#20aa3f":"#a2a3a4"}),Z0=(t,e)=>{let n=t.key;for(;e[n];)n+=" ";return e[n]=!0,t.splitterText?t:{hasChildren:!!t.hasChildren,isNotFilter:!1,isParent:!!t.isParent,name:n,value:Number(t.doc_count),parent:t.parent||!1,width:t.parent?.4:.5}},Of=(t,e,n,i)=>{const c=structuredClone(t);if(c){let S=c;return S=S.filter(nt=>nt.isParent||i.includes(nt.parent)),{colorScheme:K0(S,e,n),data:S}}return{colorScheme:[],data:[]}},Q0=(t,e,n)=>(n.forEach(i=>{e.find(c=>c.key_as_string===i.key_as_string)||e.push({name:t,doc_count:0,key_as_string:i.key_as_string})}),e.sort((i,c)=>i.key_as_string>c.key_as_string?1:-1).map(i=>({name:t,date:i.key_as_string,value:i.doc_count}))),p1=(t,e)=>{if(!t)return t;const n=structuredClone(t),i=t.title.split(":"),c=Object.values(Pf.DataLens);return n.values.forEach(S=>{Object.hasOwn(S,"colorIndex")||(S.colorIndex=c.indexOf(e[S.name])||0),Object.hasOwn(S,"value")||(S.value=is(S,"value",0))}),yT(fS({},n),{heading:i[0]+":",date:i[1]?i[1].trim():""})},pS=(t,e,n)=>{const i=Fr()(e).utc().startOf(n.toLowerCase());return!Fr()(t).utc().isSame(i,"day")},m1=(t,e,n)=>{const i=Fr()(e).utc().endOf(n.toLowerCase()),c=Fr()(t).utc(),S=c.isSame(i,"day");return i.isAfter(c)&&!S},mS=t=>!t||!t.dataByTopic||!t.dataByTopic.length||!t.dataByTopic[0].dates.length||t.dataByTopic[0].dates.length<2,tw=t=>!t||!t.length?!0:[...new Set(t.map(n=>n.date))].length<2,bT=(t,e,n)=>{const i=structuredClone(t),{from:c,to:S}=e;if(!i.dataByTopic)return t;const F=i.dataByTopic[0].dates,nt=i.dataByTopic[0].dates[0].date,ut=i.dataByTopic[0].dates[F.length-1].date;return pS(c,nt,n)&&i.dataByTopic.forEach(yt=>{yt.dates=yt.dates.filter(_t=>_t.date!==nt)}),m1(S,ut,n)&&i.dataByTopic.forEach(yt=>{yt.dates=yt.dates.filter(_t=>_t.date!==ut)}),i},xT=(t,e,n)=>{const{from:i,to:c}=e;let S=structuredClone(t);const F=[...new Set(S.map(yt=>yt.date))];F.sort();const nt=F[0],ut=F[F.length-1];return pS(i,nt,n)&&(S=S.filter(yt=>yt.date!==nt)),m1(c,ut,n)&&(S=S.filter(yt=>yt.date!==ut)),S};var ew=Object.defineProperty,wT=Object.defineProperties,nw=Object.getOwnPropertyDescriptors,gS=Object.getOwnPropertySymbols,rw=Object.prototype.hasOwnProperty,_T=Object.prototype.propertyIsEnumerable,g1=(t,e,n)=>e in t?ew(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Gm=(t,e)=>{for(var n in e||(e={}))rw.call(e,n)&&g1(t,n,e[n]);if(gS)for(var n of gS(e))_T.call(e,n)&&g1(t,n,e[n]);return t},J0=(t,e)=>wT(t,nw(e));const yS=Ts({name:"trends",initialState:{chartType:"line",focus:"",lens:"Product",subLens:"sub_product",tooltip:!1,trendDepth:5},reducers:{chartTypeUpdated:{reducer:(t,e)=>{t.chartType=t.lens==="Overview"?"line":e.payload,t.tooltip=!1}},dataLensChanged:{reducer:(t,e)=>{t.subLens="";const n=Ys(e.payload,"lens");switch(n){case"Company":t.subLens="product";break;case"Overview":t.subLens="product",t.chartType="line";break;case"Product":t.subLens="sub_product";break;default:break}t.focus="",t.lens=n,t.tooltip=!1,t.trendDepth=n==="Company"?10:5}},dataSubLensChanged:{reducer:(t,e)=>J0(Gm({},t),{subLens:e.payload.toLowerCase()})},depthChanged:{reducer:(t,e)=>{t.trendDepth=e.payload}},depthReset:{reducer:t=>{t.trendDepth=5}},focusChanged:{reducer:(t,e)=>{const{focus:n,lens:i}=e.payload;t.focus=n,t.lens=Ys(i,"lens"),t.tooltip=!1,t.trendDepth=25,uS(t)},prepare:(t,e,n)=>({payload:{focus:t,lens:e,filterValues:n}})},focusRemoved:{reducer:t=>J0(Gm({},t),{focus:"",tooltip:!1,trendDepth:5})},tooltipUpdated:{reducer:(t,e)=>{const n=e.payload.date?e.payload:!1;if(n&&(n.title=dS(n.date,n.interval,n.dateRange,!0),n.values)){let i=0;i=n.values.reduce((c,S)=>c+S.value,i),n.total=i}return J0(Gm({},t),{tooltip:n})}}},extraReducers:t=>{t.addCase("filters/filtersCleared",e=>{e.focus=""}).addCase("filters/multipleFiltersRemoved",(e,n)=>{e.focus=n.payload.values.includes(e.focus)?"":e.focus}).addCase("routes/routeChanged",(e,n)=>{const i=n.payload.params,c=["chartType","focus","lens","subLens"];for(const S of c)i[S]&&(e[S]=Ys(i[S],S));uS(e)}).addCase("view/tabChanged",(e,n)=>J0(Gm({},e),{focus:n.payload===Rl?e.focus:""}))}});function ST(t,e){const n=Gm({},e),{focus:i,lens:c,subLens:S}=t,F={dateRangeArea:[],dateRangeLine:[]},nt="dateRangeArea";if(n[nt].doc_count===0)return J0(Gm({},t),{results:{},tooltip:!1,total:0});const yt=n[nt].doc_count;c!=="Overview"&&(F[nt]=CT(t,n)),F.dateRangeLine=MT(c,n,i,S);const _t={Overview:["product"],Company:["company"],Product:["product"],"Product-focus":["sub-product","issue"],"Company-focus":["product"]};let zt=c;i&&(zt+="-focus");const Ht=_t[zt];return vS(Ht,t,n,F),t.colorMap=kT(c,F.dateRangeArea),t.results=F,t.total=yt,t.subLens=c==="Company"?"product":t.subLens,t}function vS(t,e,n,i){t.forEach(c=>{n[c]&&(i[c]=ET(e,n[c][c].buckets))})}function ET(t,e){const n=[],i=t.lens==="Company"?"product":"sub-product and issue";for(let S=0;S<e.length;S++){bS(e[S]);const F=e[S],nt=$x(F);F.isParent=!0;const ut=F[nt];F.hasChildren=!!(ut&&ut.buckets.length);const yt=Object.assign({},F);if(delete yt[nt],n.push(yt),ut&&ut.buckets&&ut.buckets.length){const _t=ut.buckets,zt=`Visualize ${i} trends for ${F.key} >`;_t.push({hasChildren:!1,isParent:!1,key:zt,name:zt,splitterText:zt,value:"",parent:F.key,width:.5}),n.push(_t)}}const c=[];return[].concat(...n).map(S=>Z0(S,c))}function CT(t,e){const{focus:n,lens:i,subLens:c}=t,S=n?c.replace("_","-").toLowerCase():i.toLowerCase(),F="Other",nt=e.dateRangeArea.dateRangeArea.buckets.map(_t=>({name:F,value:_t.doc_count,date:_t.key_as_string}));e.dateRangeBuckets.dateRangeBuckets.buckets.forEach(_t=>{nt.find(zt=>_t.key_as_string===zt.date)||nt.push({name:F,value:0,date:_t.key_as_string})});const ut=Object.assign({},nt),yt=e[S][S].buckets.slice(0,5);for(let _t=0;_t<yt.length;_t++){const zt=yt[_t],Ht=zt.trend_period.buckets.reverse();for(let re=0;re<Ht.length;re++){const ue=Ht[re];nt.push({name:zt.key,value:ue.doc_count,date:ue.key_as_string});const oe=nt.findIndex(de=>de.name===F&&B0(de.date,ue.key_as_string));oe>-1&&(nt[oe].value-=ue.doc_count)}const Yt=Object.values(ut);if(zt.trend_period.buckets.length!==Yt.length)for(let re=0;re<Yt.length;re++){const ue=Yt[re];nt.filter(de=>de.name===zt.key).find(de=>B0(de.date,ue.date))||nt.push({name:zt.key,value:0,date:ue.date})}}return Gx(nt)}function MT(t,e,n,i){const c=e.dateRangeArea.dateRangeArea.buckets,S=e.dateRangeBuckets.dateRangeBuckets.buckets,F=[];if(t==="Overview"&&(F.push({topic:"Complaints",topicName:"Complaints",dashed:!1,show:!0,dates:c.map(nt=>({date:nt.key_as_string,value:nt.doc_count}))}),S.forEach(nt=>{F[0].dates.find(ut=>nt.key_as_string===ut.date)||F[0].dates.push({date:nt.key_as_string,value:0})}),F[0].dates.sort((nt,ut)=>new Date(nt.date)-new Date(ut.date))),t!=="Overview"){const nt=n?i.replace("_","-"):t.toLowerCase(),ut=e[nt][nt].buckets;for(let yt=0;yt<ut.length;yt++){const _t=ut[yt].key,zt=Q0(_t,ut[yt].trend_period.buckets,S);F.push({topic:_t,topicName:_t,dashed:!1,show:!0,dates:zt})}}return{dataByTopic:F.slice(0,5)}}function bS(t){const e=$x(t);if(t[e]){const n=t[e].buckets;for(let i=0;i<n.length;i++)n[i].parent=t.key,bS(n[i])}}const kT=(t,e)=>{const n={},i=Pf.DataLens,c=[...new Set(e.filter(S=>S.name!=="Other").map(S=>S.name))];for(let S=0;S<c.length;S++){const F=c[S],nt=Yx(S,0,10);n[F]=i[nt]}return n.Complaints=Pf.BriteCharts.regular,n.Other=Pf.DataLens[10],n["All other products"]=Pf.DataLens[10],n["All other companies"]=Pf.DataLens[10],n["All other values"]=Pf.DataLens[10],n},{chartTypeUpdated:TT,dataLensChanged:AT,dataSubLensChanged:PT,depthChanged:OT,depthReset:NT,focusChanged:DT,focusRemoved:RT,tooltipUpdated:y1}=yS.actions,LT=yS.reducer,IT=t=>{const e=Object.values(t.state.buckets).filter(i=>op.includes(i.key)).map(i=>({name:i.key,value:i.doc_count,issue:i.issue.buckets[0].key,product:i.product.buckets[0].key})),n=e.map(i=>i.name);return n.length>0&&op.forEach(i=>{n.includes(i)||e.push({name:i,value:0,issue:"",product:""})}),e};var jT=Object.defineProperty,v1=Object.getOwnPropertySymbols,BT=Object.prototype.hasOwnProperty,FT=Object.prototype.propertyIsEnumerable,xS=(t,e,n)=>e in t?jT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,b1=(t,e)=>{for(var n in e||(e={}))BT.call(e,n)&&xS(t,n,e[n]);if(v1)for(var n of v1(e))FT.call(e,n)&&xS(t,n,e[n]);return t};const gh=G2({baseQuery:Iv({baseUrl:ph}),keepUnusedDataFor:60*60,endpoints:t=>({getAggregations:t.query({query:e=>({url:`?${Ll.stringify(e)}`}),transformResponse:e=>{if(!e)return{};const n={},i=e.aggregations,c=Object.keys(i);return n.doc_count=Math.max(e.hits.total.value,e._meta.total_record_count),n.lastUpdated=e._meta.last_updated,n.lastIndexed=e._meta.last_indexed,n.hasDataIssue=e._meta.has_data_issue,n.isDataStale=e._meta.is_data_stale,n.total=e.hits.total.value,c.forEach(S=>{n[S]=i[S][S].buckets}),n}}),getDocument:t.query({query:e=>`${e}`,transformResponse:e=>e.hits.hits[0]._source}),getList:t.query({query:e=>({url:`?${Ll.stringify(e)}`}),transformResponse:e=>{const n=e._meta.break_points,i=e.hits.hits.map(S=>{const F=b1({},S._source);return S.highlight&&Object.keys(S.highlight).forEach(nt=>{F[nt]=S.highlight[nt][0]}),F}),c=Object.keys(n).length+1;return{breakPoints:n,hits:i,totalPages:c}}}),getMap:t.query({query:e=>`geo/states?${Ll.stringify(e)}`,transformResponse:e=>{const{aggregations:n}=e,i={product:[],state:[]},c=["product"],S={};return vS(c,i,n,S),S.state=IT(n.state),{results:S}}}),getTrends:t.query({query:e=>{const n=b1({},e);return delete n.reducerValues,{url:`trends?${Ll.stringify(n)}`}},transformResponse:(e,n,i)=>{if(!e)return{};const{aggregations:c}=e,S=b1({},i.reducerValues);return ST(S,c)}})})}),{useGetAggregationsQuery:zT,useGetDocumentQuery:UT,useGetListQuery:wS,useGetMapQuery:HT,useGetTrendsQuery:x1}=gh;var iw;function ty(){return ty=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ty.apply(null,arguments)}function VT(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",ty({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 19",className:"cf-icon-svg cf-icon-svg--approved-round",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,iw||(iw=W.createElement("path",{d:"M16.417 9.583a7.916 7.916 0 1 1-15.833 0 7.916 7.916 0 0 1 15.833 0Zm-4.105-4.498a.791.791 0 0 0-1.082.29l-3.828 6.63-1.733-2.08a.792.792 0 1 0-1.216 1.014l2.459 2.952a.792.792 0 0 0 1.294-.111L12.6 6.166a.791.791 0 0 0-.29-1.081Z"})))}const _S=W.forwardRef(VT),w1=Fn.p+"static/media/approved-round.97ef343b273cb8411d80cde259f3e33e.svg";var ow,aw;function _1(){return _1=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},_1.apply(null,arguments)}function SS(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",_1({id:"area-chart-icon","data-name":"area chart",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 27 21",ref:e,"aria-labelledby":i},c),n===void 0?W.createElement("title",{id:i},"area chart icon"):n?W.createElement("title",{id:i},n):null,ow||(ow=W.createElement("polygon",{className:"cls-1",points:"27 11 23.48 14 15.26 9 7.04 17 0 15 0 21 27 21 27 11"})),aw||(aw=W.createElement("g",{className:"cls-2"},W.createElement("polygon",{className:"cls-1",points:"6.32 14.79 14.92 6.46 23.36 11.58 27 8.5 27 1 23.48 4 15.26 1 7.04 7 0 9 0 12.94 6.32 14.79"}))))}const S1=W.forwardRef(SS),WT=Fn.p+"static/media/area-chart-custom.ea8a03542fb76313bf17aec0bc356ff9.svg";var ES;function sw(){return sw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},sw.apply(null,arguments)}function E1(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",sw({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--chart",viewBox:"0 0 15 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,ES||(ES=W.createElement("path",{d:"M13.55 15.256H1.45a.554.554 0 0 1-.553-.554V3.168a.554.554 0 1 1 1.108 0v10.98h11.544a.554.554 0 0 1 0 1.108zM3.121 13.02V6.888a.476.476 0 0 1 .475-.475h.786a.476.476 0 0 1 .475.475v6.132zm2.785 0V3.507a.476.476 0 0 1 .475-.475h.786a.476.476 0 0 1 .475.475v9.513zm2.785 0V6.888a.476.476 0 0 1 .475-.475h.786a.476.476 0 0 1 .475.475v6.132zm2.786 0v-2.753a.476.476 0 0 1 .475-.475h.785a.476.476 0 0 1 .475.475v2.753z"})))}const up=W.forwardRef(E1),ey=Fn.p+"static/media/chart.7eb73e17abbb26ff97b9bb9f1d3b5e15.svg";var CS;function lw(){return lw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},lw.apply(null,arguments)}function MS(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",lw({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--clock-round",viewBox:"0 0 17 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,CS||(CS=W.createElement("path",{fillRule:"evenodd",d:"M16.417 9.583A7.917 7.917 0 1 1 8.5 1.666a7.917 7.917 0 0 1 7.917 7.917zm-2.81 0A5.106 5.106 0 1 1 8.5 4.477a5.106 5.106 0 0 1 5.106 5.106zm-.792 0A4.315 4.315 0 1 1 8.5 5.268a4.315 4.315 0 0 1 4.315 4.315zm-2.163-.992a.396.396 0 0 0-.386-.661.75.75 0 0 0-.305.233l-.414.414-.649.648v-2.51a.67.67 0 0 0-.056-.365.399.399 0 0 0-.735.196c-.009.232 0 .465 0 .697v2.933a.402.402 0 0 0 .258.376c.296.11.495-.169.677-.35l.998-.998.612-.613z"})))}const uw=W.forwardRef(MS),YT=Fn.p+"static/media/clock-round.22b3a2b3664a6b388124a17b24c303b7.svg";var cw;function cp(){return cp=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},cp.apply(null,arguments)}function qT(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",cp({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--copy",viewBox:"0 0 12 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,cw||(cw=W.createElement("path",{d:"M11.415 5.068v9.16a.463.463 0 0 1-.462.461H9.477v1.477a.463.463 0 0 1-.462.462H1.047a.463.463 0 0 1-.462-.462V4.976a.463.463 0 0 1 .462-.462h1.476V3.037a.463.463 0 0 1 .462-.462h5.937zM8.369 7.874H6.628a.529.529 0 0 1-.527-.527V5.622H1.693v9.897H8.37zm-4.737-4.19v.83h3.352l1.095 1.095a.518.518 0 0 1-.04-.2V3.684zm5.845 3.323v6.574h.83V5.936h-1.74a.517.517 0 0 1-.2-.04z"})))}const kS=W.forwardRef(qT),aO=Fn.p+"static/media/copy.b5fecb9187e75f4c45bb078a6a1931d9.svg";var hw;function fw(){return fw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},fw.apply(null,arguments)}function $T(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",fw({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 988.2 1200",className:"cf-icon-svg",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,hw||(hw=W.createElement("path",{d:"M494.1 967.2c-17.3 0-33.8-6.8-46-19L18.6 518.6c-25.1-25.6-24.8-66.8.8-91.9 25.3-24.8 65.8-24.8 91.1 0l383.6 383.6 383.6-383.6c25.6-25.1 66.8-24.8 91.9.8 24.8 25.3 24.8 65.8 0 91.1L540.1 948.1c-12.2 12.2-28.7 19.1-46 19.1z"})))}const XT=W.forwardRef($T),sO=Fn.p+"static/media/down.59a7ecfc3448843a7fa799d1e37c4eb3.svg";var C1;function ny(){return ny=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ny.apply(null,arguments)}function GT(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",ny({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--error",viewBox:"0 0 12 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,C1||(C1=W.createElement("path",{d:"M11.383 13.644A1.03 1.03 0 0 1 9.928 15.1L6 11.172 2.072 15.1a1.03 1.03 0 1 1-1.455-1.456l3.928-3.928L.617 5.79a1.03 1.03 0 1 1 1.455-1.456L6 8.261l3.928-3.928a1.03 1.03 0 0 1 1.455 1.456L7.455 9.716z"})))}const KT=W.forwardRef(GT),lO=Fn.p+"static/media/error.c9d1b91f6b30792de7c28d40d6ab41bf.svg";var ry;function dw(){return dw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},dw.apply(null,arguments)}function ZT(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",dw({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 19",className:"cf-icon-svg cf-icon-svg--error-round",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,ry||(ry=W.createElement("path",{d:"M16.417 9.583a7.916 7.916 0 1 1-15.833 0 7.916 7.916 0 0 1 15.833 0Zm-6.804.01 3.032-3.033a.792.792 0 1 0-1.12-1.12L8.494 8.473 5.46 5.44a.792.792 0 0 0-1.12 1.12l3.033 3.033-3.032 3.033a.791.791 0 1 0 1.12 1.119l3.032-3.033 3.033 3.033a.79.79 0 0 0 1.12 0c.309-.31.309-.81 0-1.12L9.612 9.594Z"})))}const iy=W.forwardRef(ZT),QT=Fn.p+"static/media/error-round.83b27cc97c171826d4b191c1552e2ee6.svg";var pw;function M1(){return M1=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},M1.apply(null,arguments)}function JT(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",M1({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--external-link",viewBox:"0 0 14 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,pw||(pw=W.createElement("path",{d:"M13.017 3.622v4.6a.554.554 0 0 1-1.108 0V4.96L9.747 7.122a1.65 1.65 0 0 1 .13.646v5.57A1.664 1.664 0 0 1 8.215 15h-5.57a1.664 1.664 0 0 1-1.662-1.663v-5.57a1.664 1.664 0 0 1 1.662-1.662h5.57A1.654 1.654 0 0 1 9 6.302l2.126-2.126H7.863a.554.554 0 1 1 0-1.108h4.6a.554.554 0 0 1 .554.554M8.77 8.1l-2.844 2.844a.554.554 0 0 1-.784-.783l2.947-2.948H2.645a.555.555 0 0 0-.554.555v5.57a.555.555 0 0 0 .554.553h5.57a.555.555 0 0 0 .554-.554z"})))}const t3=W.forwardRef(JT),uO=Fn.p+"static/media/external-link.b1505f7bd33d71845d5ecde16ed2ba8c.svg";var TS;function mw(){return mw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},mw.apply(null,arguments)}function e3(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",mw({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 19",className:"cf-icon-svg cf-icon-svg--help-round",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,TS||(TS=W.createElement("path",{d:"M16.476 9.583a7.916 7.916 0 1 1-15.833 0 7.916 7.916 0 0 1 15.833 0Zm-5.034-2.687c0-.404-.073-.774-.223-1.13A2.886 2.886 0 0 0 9.692 4.22a2.747 2.747 0 0 0-1.116-.227 2.899 2.899 0 0 0-2.672 1.773 2.803 2.803 0 0 0-.227 1.128v.02a.792.792 0 0 0 1.583 0v-.02a1.333 1.333 0 0 1 .814-1.22c.155-.067.315-.098.502-.098.18 0 .334.03.485.096a1.294 1.294 0 0 1 .7.71c.067.158.098.322.098.513 0 .225-.027.368-.05.45a1.546 1.546 0 0 1-.132.335 2.11 2.11 0 0 1-.219.318c-.126.15-.25.293-.365.424-.135.142-.26.28-.374.412-.17.2-.323.414-.451.639-.147.258-.262.54-.342.842-.08.301-.12.636-.12.995v.035a.792.792 0 1 0 1.583 0v-.035c0-.222.023-.42.068-.59.044-.168.107-.324.187-.463a2.49 2.49 0 0 1 .276-.39c.098-.115.209-.237.329-.363l.018-.02c.129-.144.264-.301.403-.466.138-.165.267-.352.384-.556a3.083 3.083 0 0 0 .388-1.567ZM9.58 14.195a.983.983 0 0 0-.614-.919l-.004-.001a1.016 1.016 0 0 0-.78 0 .972.972 0 0 0-.62.92c.001.138.027.27.08.391a1.01 1.01 0 0 0 .541.536 1.013 1.013 0 0 0 .78.001l.004-.002c.121-.052.229-.125.318-.214.09-.091.164-.2.216-.32a.98.98 0 0 0 .08-.392Z"})))}const AS=W.forwardRef(e3),k1=Fn.p+"static/media/help-round.2d662bc553165a6f53b326c4d29289fd.svg";var T1;function A1(){return A1=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},A1.apply(null,arguments)}function n3(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",A1({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--left",viewBox:"0 0 10 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,T1||(T1=W.createElement("path",{d:"M8.4 17.269a1.026 1.026 0 0 1-.727-.302l-6.801-6.8a1.03 1.03 0 0 1 0-1.456l6.8-6.8a1.03 1.03 0 0 1 1.456 1.455L3.055 9.439l6.073 6.073A1.03 1.03 0 0 1 8.4 17.27z"})))}const PS=W.forwardRef(n3),cO=Fn.p+"static/media/left.09a634906630a67bd579f02c50113707.svg";var OS,gw,yw,NS,DS;function vw(){return vw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},vw.apply(null,arguments)}function RS(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",vw({id:"line-chart-icon","data-name":"line chart",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 27 21",ref:e,"aria-labelledby":i},c),n===void 0?W.createElement("title",{id:i},"line chart icon"):n?W.createElement("title",{id:i},n):null,OS||(OS=W.createElement("g",{className:"cls-1"},W.createElement("line",{className:"cls-2",x1:12,y1:6.27,x2:2,y2:19}),W.createElement("line",{className:"cls-2",x1:22.9,y1:14,x2:14.1,y2:6}),W.createElement("path",{className:"cls-3",d:"M13,4a1,1,0,1,1-1,1,1,1,0,0,1,1-1m0-1a2,2,0,1,0,2,2,2,2,0,0,0-2-2Z"}),W.createElement("path",{className:"cls-3",d:"M24,14a1,1,0,1,1-1,1,1,1,0,0,1,1-1m0-1a2,2,0,1,0,2,2,2,2,0,0,0-2-2Z"}))),gw||(gw=W.createElement("line",{className:"cls-2",x1:12,y1:16.45,x2:2,y2:11})),yw||(yw=W.createElement("line",{className:"cls-2",x1:23,y1:6,x2:14,y2:16})),NS||(NS=W.createElement("path",{className:"cls-3",d:"M13,16a1,1,0,1,1-1,1,1,1,0,0,1,1-1m0-1a2,2,0,1,0,2,2,2,2,0,0,0-2-2Z"})),DS||(DS=W.createElement("path",{className:"cls-3",d:"M24,4a1,1,0,1,1-1,1,1,1,0,0,1,1-1m0-1a2,2,0,1,0,2,2,2,2,0,0,0-2-2Z"})))}const r3=W.forwardRef(RS),hO=Fn.p+"static/media/line-chart-custom.5b2ea8f0a6610dd4792361462e297ff1.svg";var bw;function xw(){return xw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},xw.apply(null,arguments)}function P1(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",xw({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--list",viewBox:"0 0 14 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,bw||(bw=W.createElement("path",{d:"M2.85 4.836a1.03 1.03 0 0 1-1.029 1.03h-.003a1.03 1.03 0 1 1 0-2.059h.003a1.03 1.03 0 0 1 1.03 1.03zm0 4.346a1.03 1.03 0 0 1-1.029 1.03h-.003a1.03 1.03 0 1 1 0-2.059h.003a1.03 1.03 0 0 1 1.03 1.03zm0 4.346a1.03 1.03 0 0 1-1.029 1.03h-.003a1.03 1.03 0 1 1 0-2.059h.003a1.03 1.03 0 0 1 1.03 1.03zm1.13-8.692a1.03 1.03 0 0 1 1.029-1.029h7.173a1.03 1.03 0 1 1 0 2.058H5.009a1.03 1.03 0 0 1-1.03-1.029zm9.231 4.347a1.03 1.03 0 0 1-1.029 1.029H5.009a1.03 1.03 0 1 1 0-2.059h7.173a1.03 1.03 0 0 1 1.03 1.03zm0 4.345a1.03 1.03 0 0 1-1.029 1.03H5.009a1.03 1.03 0 1 1 0-2.059h7.173a1.03 1.03 0 0 1 1.03 1.03z"})))}const i3=W.forwardRef(P1),fO=Fn.p+"static/media/list.744499728766caaae38d1b379c6367d1.svg";var LS;function ww(){return ww=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ww.apply(null,arguments)}function o3(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",ww({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--map",viewBox:"0 0 16 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,LS||(LS=W.createElement("path",{d:"M15.084 15.2H.916a.264.264 0 0 1-.254-.42l2.36-4.492a.865.865 0 0 1 .696-.42h.827a9.51 9.51 0 0 0 .943 1.108H3.912l-1.637 3.116h11.45l-1.637-3.116h-1.34a9.481 9.481 0 0 0 .943-1.109h.591a.866.866 0 0 1 .696.421l2.36 4.492a.264.264 0 0 1-.254.42zM11.4 7.189c0 2.64-2.176 2.888-3.103 5.46a.182.182 0 0 1-.356 0c-.928-2.572-3.104-2.82-3.104-5.46a3.282 3.282 0 0 1 6.563 0zm-1.86-.005a1.425 1.425 0 1 0-1.425 1.425A1.425 1.425 0 0 0 9.54 7.184z"})))}const a3=W.forwardRef(o3),s3=Fn.p+"static/media/map.d70695b9e0fa6e28e2c1f42fda2ebfad.svg";var IS;function _w(){return _w=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},_w.apply(null,arguments)}function l3(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",_w({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 19",className:"cf-icon-svg cf-icon-svg--minus-round",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,IS||(IS=W.createElement("path",{d:"M16.416 9.583a7.916 7.916 0 1 1-15.833 0 7.916 7.916 0 0 1 15.833 0Zm-2.958.01a.792.792 0 0 0-.792-.792H4.32a.792.792 0 0 0 0 1.583h8.346a.792.792 0 0 0 .792-.791Z"})))}const Km=W.forwardRef(l3),dO=Fn.p+"static/media/minus-round.0e0f6b3d580946f789072714d43e320b.svg";var Sw;function Ew(){return Ew=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Ew.apply(null,arguments)}function jS(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",Ew({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 19",className:"cf-icon-svg cf-icon-svg--plus-round",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,Sw||(Sw=W.createElement("path",{d:"M16.416 9.583a7.916 7.916 0 1 1-15.833 0 7.916 7.916 0 0 1 15.833 0Zm-2.958.01a.792.792 0 0 0-.792-.792H9.284V5.42a.792.792 0 1 0-1.583 0V8.8H4.32a.792.792 0 0 0 0 1.584H7.7v3.382a.792.792 0 1 0 1.583 0v-3.382h3.382a.792.792 0 0 0 .792-.791Z"})))}const u3=W.forwardRef(jS),pO=Fn.p+"static/media/plus-round.95113e45fcb696eff3818050bdf5452e.svg";var Jl;function Xu(){return Xu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Xu.apply(null,arguments)}function BS(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",Xu({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--print",viewBox:"0 0 14 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,Jl||(Jl=W.createElement("path",{d:"m8.698 2.358 3.065 3.066v1.95h.16a1.112 1.112 0 0 1 1.109 1.108v4.837a1.112 1.112 0 0 1-1.109 1.108h-.16v1.726a.477.477 0 0 1-.475.475H2.712a.477.477 0 0 1-.475-.475v-1.726h-.16A1.112 1.112 0 0 1 .968 13.32V8.482a1.112 1.112 0 0 1 1.109-1.108h.16v-4.54a.476.476 0 0 1 .475-.476zm-.22 3.876a.61.61 0 0 1-.608-.608v-2.16H3.345v3.908h7.31v-1.14zm2.177 4.512h-7.31v4.773h7.31zm-1.054.874h-5.26v1.109h5.26zm0 1.962h-5.26v1.108h5.26zm2.437-4.485a.554.554 0 1 0-.554.554.554.554 0 0 0 .554-.554z"})))}const O1=W.forwardRef(BS),Zm=Fn.p+"static/media/print.4c9b923e5874edf00a7f80161a074341.svg";var N1;function oy(){return oy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},oy.apply(null,arguments)}function Cw(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",oy({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--right",viewBox:"0 0 10 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,N1||(N1=W.createElement("path",{d:"M1.6 17.262a1.03 1.03 0 0 1-.728-1.757l6.073-6.073L.872 3.36a1.03 1.03 0 0 1 1.455-1.455l6.8 6.8a1.03 1.03 0 0 1 0 1.456l-6.8 6.8a1.025 1.025 0 0 1-.727.302z"})))}const FS=W.forwardRef(Cw),mO=Fn.p+"static/media/right.5b67a978aa7b936eb8756a88883d281a.svg";var zS;function ay(){return ay=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ay.apply(null,arguments)}function US(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",ay({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--search",viewBox:"0 0 15 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,zS||(zS=W.createElement("path",{d:"M14.147 15.488a1.112 1.112 0 0 1-1.567 0l-3.395-3.395a5.575 5.575 0 1 1 1.568-1.568l3.394 3.395a1.112 1.112 0 0 1 0 1.568zm-6.361-3.903a4.488 4.488 0 1 0-1.681.327 4.443 4.443 0 0 0 1.68-.327z"})))}const ys=W.forwardRef(US),HS=Fn.p+"static/media/search.918ad2ab96007c824c83f80452796a28.svg";var Mw;function kw(){return kw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},kw.apply(null,arguments)}function c3(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",kw({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--up",viewBox:"0 0 17 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,Mw||(Mw=W.createElement("path",{d:"M15.3 15.32a1.026 1.026 0 0 1-.727-.302L8.5 8.946l-6.073 6.072a1.03 1.03 0 0 1-1.456-1.455l6.801-6.8a1.03 1.03 0 0 1 1.456 0l6.8 6.8a1.03 1.03 0 0 1-.727 1.757z"})))}const sy=W.forwardRef(c3),Tw=Fn.p+"static/media/up.8977663ede6916c205dee16057e6ba18.svg";var Aw;function D1(){return D1=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},D1.apply(null,arguments)}function hp(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",D1({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--updating",viewBox:"0 0 16 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,Aw||(Aw=W.createElement("path",{d:"M5.857 3.882v3.341a1.03 1.03 0 0 1-2.058 0v-.97a5.401 5.401 0 0 0-1.032 2.27 1.03 1.03 0 1 1-2.02-.395A7.462 7.462 0 0 1 2.235 4.91h-.748a1.03 1.03 0 1 1 0-2.058h3.34a1.03 1.03 0 0 1 1.03 1.03zm-3.25 9.237a1.028 1.028 0 0 1-1.358-.523 7.497 7.497 0 0 1-.37-1.036 1.03 1.03 0 1 1 1.983-.55 5.474 5.474 0 0 0 .269.751 1.029 1.029 0 0 1-.524 1.358zm2.905 2.439a1.028 1.028 0 0 1-1.42.322 7.522 7.522 0 0 1-.885-.652 1.03 1.03 0 0 1 1.34-1.563 5.435 5.435 0 0 0 .643.473 1.03 1.03 0 0 1 .322 1.42zm3.68.438a1.03 1.03 0 0 1-1.014 1.044h-.106a7.488 7.488 0 0 1-.811-.044 1.03 1.03 0 0 1 .224-2.046 5.41 5.41 0 0 0 .664.031h.014a1.03 1.03 0 0 1 1.03 1.015zm.034-12.847a1.03 1.03 0 0 1-1.029 1.01h-.033a1.03 1.03 0 0 1 .017-2.06h.017l.019.001a1.03 1.03 0 0 1 1.009 1.05zm3.236 11.25a1.029 1.029 0 0 1-.3 1.425 7.477 7.477 0 0 1-.797.453 1.03 1.03 0 1 1-.905-1.849 5.479 5.479 0 0 0 .578-.328 1.03 1.03 0 0 1 1.424.3zM10.475 3.504a1.029 1.029 0 0 1 1.41-.359l.018.011a1.03 1.03 0 1 1-1.06 1.764l-.01-.006a1.029 1.029 0 0 1-.358-1.41zm4.26 9.445a7.5 7.5 0 0 1-.315.56 1.03 1.03 0 1 1-1.749-1.086 5.01 5.01 0 0 0 .228-.405 1.03 1.03 0 1 1 1.836.93zm-1.959-6.052a1.03 1.03 0 0 1 1.79-1.016l.008.013a1.03 1.03 0 1 1-1.79 1.017zm2.764 2.487a9.327 9.327 0 0 1 0 .366 1.03 1.03 0 0 1-1.029 1.005h-.025A1.03 1.03 0 0 1 13.482 9.7a4.625 4.625 0 0 0 0-.266 1.03 1.03 0 0 1 1.003-1.055h.026a1.03 1.03 0 0 1 1.029 1.004z"})))}const VS=W.forwardRef(hp),h3=Fn.p+"static/media/updating.f79bb43c3d31fda78ae67df2030c1d05.svg";var Pw;function R1(){return R1=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},R1.apply(null,arguments)}function WS(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",R1({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 19",className:"cf-icon-svg cf-icon-svg--warning-round",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,Pw||(Pw=W.createElement("path",{d:"M16.406 9.583a7.916 7.916 0 1 1-15.833 0 7.916 7.916 0 0 1 15.833 0ZM9.48 13.667a1.003 1.003 0 1 0-2.007 0 1.003 1.003 0 0 0 2.007 0ZM7.697 10.83a.792.792 0 0 0 1.583 0V4.562a.792.792 0 0 0-1.583 0v6.268Z"})))}const f3=W.forwardRef(WS),gO=Fn.p+"static/media/warning-round.c245ac8ff60c8e94af11318b64f4cc1d.svg";var fa=Fn(7810);const YS={"approved-round":fa.createElement(_S,null),"checkmark-round":fa.createElement(_S,null),"clock-round":fa.createElement(uw,null),chart:fa.createElement(up,null),copy:fa.createElement(kS,null),delete:fa.createElement(KT,null),"delete-round":fa.createElement(iy,null),down:fa.createElement(XT,null),"error-round":fa.createElement(iy,null),"external-link":fa.createElement(t3,null),"help-round":fa.createElement(AS,null),left:fa.createElement(PS,null),list:fa.createElement(i3,null),map:fa.createElement(a3,null),"minus-round":fa.createElement(Km,null),"plus-round":fa.createElement(u3,null),printer:fa.createElement(O1,null),right:fa.createElement(FS,null),search:fa.createElement(ys,null),updating:fa.createElement(VS,null),up:fa.createElement(sy,null),"warning-round":fa.createElement(f3,null),"line-chart":fa.createElement(r3,null),"area-chart":fa.createElement(S1,null)};function d3(t,e){if(!Object.hasOwn(YS,t))return console.error(`No icon with the name ${t}.`),!1;let n=YS[t];return typeof e!="undefined"&&(n=(0,W.cloneElement)(n,{className:`cf-icon-svg ${e}`})),n}const Wi=d3,qS={};var yi=Fn(5826),Rn=Fn.n(yi),L1=Fn(7810);const fp=({isLoading:t})=>t?L1.createElement("section",{className:"light-box"},L1.createElement("div",{className:"loading-box"},Wi("updating")," ",L1.createElement("span",null,"This page is loading"))):null;fp.propTypes={isLoading:Rn().bool.isRequired};const $S=t=>t.routes.params,ly=t=>t.routes.queryString;var gi=Fn(7810);const Ow=({label:t,value:e})=>e?gi.createElement("div",{className:"layout-row"},gi.createElement("span",{className:"body-copy subitem"},t),gi.createElement("span",{className:"body-copy"},e)):null;Ow.propTypes={label:Rn().string,value:Rn().string};const I1=({value:t})=>{const e={"Consent provided":["approved-round","cf-icon-approved-round"],"Consent not provided":["delete-round","cf-icon-delete-round"],"Consent withdrawn":["minus-round","cf-icon-minus-round"],"N/A":["help-round","cf-icon-help-round"],Other:["help-round","cf-icon-help-round"]};let n;if(t in e){const i=e[t],c=i[0],S=i[1];n=Wi(c,S)}else n=Wi("error-round","cf-icon-error-round"),t="No data available";return gi.createElement("div",null,gi.createElement("span",{className:"cf-icon__before"},n),gi.createElement("span",{className:"body-copy"},t))};I1.propTypes={value:Rn().string};const j1=({value:t})=>{if(!t)return gi.createElement("span",{className:"body-copy"},"N/A");const e=["cf-icon__before"];return t.toLowerCase()==="no"&&e.push("not-timely"),gi.createElement("div",null,gi.createElement("span",{className:"cf-icon__before"},Wi("clock-round","cf-icon-clock-round"+(t.toLowerCase()==="no"?" not-timely":""))),gi.createElement("span",{className:"body-copy"},t))};j1.propTypes={value:Rn().string};const XS=({data:t,error:e,id:n})=>{if(e)return gi.createElement("h1",null,"There was a problem retrieving ",n);const i=t.complaint_what_happened||"",c=qm(n);return gi.createElement("article",null,gi.createElement("h1",{"aria-label":"Complaint "+c},n),gi.createElement("div",{className:"card"},gi.createElement("div",{className:"card-left layout-column"},gi.createElement("h4",null,"Date CFPB received the complaint"),gi.createElement("span",{className:"body-copy"},Kl(t.date_received)),gi.createElement("h4",{className:"u-mt15"},"Consumer\u2019s state"),gi.createElement("span",{className:"body-copy"},t.state),gi.createElement("h4",{className:"u-mt15"},"Consumer\u2019s zip"),gi.createElement("span",{className:"body-copy"},t.zip_code),gi.createElement("h4",{className:"u-mt15"},"Submitted via"),gi.createElement("span",{className:"body-copy"},t.submitted_via),t.tags&&t.tags.length?gi.createElement(gi.Fragment,null,gi.createElement("h4",{className:"u-mt15"},"Tags"),gi.createElement("span",{className:"body-copy"},t.tags)):null,gi.createElement("h4",{className:"u-mt15"},"Did consumer dispute the response?"),gi.createElement("span",{className:"body-copy"},t.consumer_disputed)),gi.createElement("div",{className:"card-right layout-column"},gi.createElement("h4",null,"Product"),gi.createElement("h3",null,t.product),gi.createElement(Ow,{label:"Sub-product:",value:t.sub_product}),gi.createElement("h4",{className:"u-mt15"},"Issue"),gi.createElement("h3",null,t.issue),gi.createElement(Ow,{label:"Sub-issue:",value:t.sub_issue}),gi.createElement("h4",{className:"u-mt15"},"Consumer consent to publish narrative"),gi.createElement(I1,{value:t.consumer_consent_provided}),i?gi.createElement(gi.Fragment,null,gi.createElement("h4",{className:"u-mt15"},"Consumer complaint narrative"),gi.createElement("span",{className:"body-copy"},i)):null)),gi.createElement("h2",{className:"company-information"},"Company information"),gi.createElement("div",{className:"card"},gi.createElement("div",{className:"card-left layout-column"},gi.createElement("h4",null,"Date complaint sent to company"),gi.createElement("span",{className:"body-copy"},Kl(t.date_sent_to_company)),gi.createElement("h4",{className:"u-mt15"},"Company name"),gi.createElement("span",{className:"body-copy"},t.company)),gi.createElement("div",{className:"card-right layout-column"},gi.createElement("h4",null,"Timely response?"),gi.createElement(j1,{value:t.timely}),gi.createElement("h4",{className:"u-mt15"},"Company response to consumer"),gi.createElement("span",{className:"body-copy"},t.company_response?t.company_response:"N/A"),gi.createElement("h4",{className:"u-mt15"},"Company public response"),gi.createElement("span",{className:"body-copy"},t.company_public_response?t.company_public_response:"N/A"))))};XS.propTypes={data:Rn().object,error:Rn().oneOfType([Rn().string,Rn().object]),id:Rn().string};var yh=Fn(7810);const Nw=()=>{const t=Er(),{id:e}=$i(),n=sr($S),i=(0,W.useMemo)(()=>{if(!t)return"";const nt=t.pathname,ut=nt.indexOf("detail");return sS(nt.substring(0,ut),n)},[t,n]),{data:c,isLoading:S,error:F}=UT(e);return yh.createElement("section",{className:"card-container"},yh.createElement("nav",{className:"layout-row"},yh.createElement("div",{className:"back-to-search flex-fixed"},yh.createElement($h,{to:i},Wi("left","cf-icon-left")," Back to search results")),yh.createElement("div",{className:"meaning flex-fixed"},yh.createElement("a",{href:H0,target:"_blank",rel:"noopener noreferrer"},"What do all these data points mean?"))),S?yh.createElement(fp,{isLoading:!0}):yh.createElement(XS,{data:c,error:F,id:e}))},p3={},B1=Ts({name:"view",initialState:{expandedRows:[],isPrintMode:!1,hasAdvancedSearchTips:!1,hasFilters:!0,modalTypeShown:!1,showTour:!1,tab:Rl,width:0},reducers:{hideAdvancedSearchTips:{reducer:t=>{t.hasAdvancedSearchTips=!1}},modalHidden(t){t.modalTypeShown=!1},modalShown(t,e){t.modalTypeShown=e.payload},showAdvancedSearchTips:{reducer:t=>{t.hasAdvancedSearchTips=!0}},updatePrintModeOn(t){t.isPrintMode=!0},updatePrintModeOff(t){t.isPrintMode=!1},updateScreenSize(t,e){t.hasFilters=e.payload>749,t.width=e.payload},updateFilterVisibility:{reducer:t=>{t.hasFilters=!t.hasFilters}},tabChanged:{reducer:(t,e)=>{t.tab=Ys(e.payload,"tab"),t.expandedRows=[]}},tourHidden:{reducer:t=>{t.showTour=!1}},tourShown:{reducer:t=>{t.showTour=!0}},rowCollapsed:{reducer:(t,e)=>{t.expandedRows=t.expandedRows.filter(n=>n!==e.payload)}},rowExpanded:{reducer:(t,e)=>{t.expandedRows.includes(e.payload)||t.expandedRows.push(e.payload)}}},extraReducers:t=>{t.addCase("trends/dataLensChanged",e=>{e.expandedRows=[]}).addCase("trends/focusChanged",e=>{e.tab=Rl}).addCase("routes/routeChanged",(e,n)=>{const i=n.payload.params;e.isPrintMode=i.isPrintMode==="true",e.tab=Ys(i.tab,"tab"),oS(i,e,["expandedRows"])})}}),{hideAdvancedSearchTips:Za,modalHidden:dp,modalShown:vh,processParams:yO,rowCollapsed:KS,rowExpanded:ZS,showAdvancedSearchTips:m3,tabChanged:Nf,tourHidden:pp,tourShown:F1,updateFilterVisibility:Dw,updatePrintModeOff:QS,updatePrintModeOn:Df,updateScreenSize:uy}=B1.actions,cy=B1.reducer;var Tc=Fn(7810);const JS=()=>{const t=Si();return Tc.createElement("header",{className:"content__hero"},Tc.createElement("h1",{className:"content-header"},"Consumer Complaint Database"),Tc.createElement("ul",{className:"m-list m-list--horizontal"},Tc.createElement("li",{className:"m-list__item"},Tc.createElement("button",{className:"a-btn a-btn--link",onClick:()=>{t(vh(F0))}},"Things to know before you use this database")),Tc.createElement("li",{className:"m-list__item"},Tc.createElement("a",{href:H0,target:"_blank",rel:"noopener noreferrer"},"How we use complaint data")),Tc.createElement("li",{className:"m-list__item"},Tc.createElement("a",{href:"https://cfpb.github.io/api/ccdb/",target:"_blank",rel:"noopener noreferrer"},"Technical documentation"))))},Qm={},g3={};var bh=Fn(7810);const Ac=({className:t="",title:e,desc:n,children:i})=>{const[c,S]=(0,W.useState)(!0),F=bh.createElement("span",{className:"o-expandable__cue-close",role:"img","aria-label":"Hide"},Wi("minus-round")),nt=bh.createElement("span",{className:"o-expandable__cue-open",role:"img","aria-label":"Show"},Wi("plus-round")),ut=c?`Collapse ${e} filter`:`Expand ${e} filter`;return bh.createElement("section",{className:`o-expandable ${t}`},bh.createElement("button",{className:"o-expandable__header","aria-expanded":c,"aria-label":ut,onClick:()=>S(!c)},bh.createElement("h3",{className:"o-expandable__label"},e),bh.createElement("span",{className:"o-expandable__cues"},c?F:nt)),c?bh.createElement("div",{className:"o-expandable__content"},bh.createElement("p",null,n),i):null)};Ac.propTypes={className:Rn().string,title:Rn().string.isRequired,desc:Rn().string.isRequired,children:Rn().node.isRequired};const tE=(t,e)=>{const{params:n,path:i}=e.payload;t.path=i,t.params=n,t.queryString=Ll.stringify(n)},eE=Ts({name:"routes",initialState:{path:"",params:{},queryString:""},reducers:{appUrlChanged:{reducer:tE,prepare:(t,e)=>({payload:{path:t,params:e}})},routeChanged:{reducer:tE,prepare:(t,e)=>(e.size&&(e.size=Ys(e.size.toString(),"size")),{payload:{path:t,params:e}})}}}),{appUrlChanged:y3,routeChanged:nE}=eE.actions,v3=eE.reducer,hy=Ts({name:"filters",initialState:{company:[],company_public_response:[],company_response:[],consumer_consent_provided:[],consumer_disputed:[],dataNormalization:Cc,enablePer1000:!1,issue:[],mapWarningEnabled:!0,product:[],state:[],submitted_via:[],tags:[],timely:[],zip_code:[]},reducers:{dataNormalizationUpdated:{reducer:(t,e)=>{t.dataNormalization=Ys(e.payload,"dataNormalization")}},filterAdded:{reducer:(t,e)=>{const{filterName:n,filterValue:i}=e.payload;n==="has_narrative"?t.has_narrative=!0:n in t?t[n].indexOf(i)===-1&&t[n].push(i):t[n]=[i]},prepare:(t,e)=>({payload:{filterName:t,filterValue:e}})},filterRemoved:{reducer:(t,e)=>{const{filterName:n,filterValue:i}=e.payload;if(n==="has_narrative")delete t.has_narrative;else if(n in t){const c=t[n].indexOf(i);c!==-1&&t[n].splice(c,1)}},prepare:(t,e)=>({payload:{filterName:t,filterValue:e}})},filtersCleared:{reducer:(t,e)=>{const n=zm.concat(Af);if(K2===e.payload){const i=n.indexOf("has_narrative");n.splice(i,1)}n.forEach(i=>{i in t&&(t[i]=[])})}},filtersReplaced:{reducer:(t,e)=>{const{filterName:n,values:i}=e.payload;t[n]=[...new Set(i)]},prepare:(t,e)=>({payload:{filterName:t,values:e}})},filterToggled:{reducer:(t,e)=>{const{filterName:n,filterValue:i}=e.payload;t[n]=x3(t[n],i.key)},prepare:(t,e)=>({payload:{filterName:t,filterValue:e}})},mapWarningDismissed:{reducer:t=>{t.mapWarningEnabled=!1}},multipleFiltersAdded:{reducer:(t,e)=>{const n=e.payload.filterName,i=is(t,n,[]);e.payload.values.forEach(c=>{i.indexOf(c)===-1&&i.push(c)}),t[n]=i},prepare:(t,e)=>({payload:{filterName:t,values:e}})},multipleFiltersRemoved:{reducer:(t,e)=>{t[e.payload.filterName]&&e.payload.values.forEach(n=>{const i=t[e.payload.filterName].indexOf(n);i!==-1&&t[e.payload.filterName].splice(i,1)})},prepare:(t,e)=>({payload:{filterName:t,values:e}})},stateFilterAdded:{reducer:(t,e)=>{const n=is(t,"state",[]),{abbr:i}=e.payload;n.includes(i)||n.push(i),t.state=n}},stateFilterCleared:{reducer:t=>{t.state=[]}},stateFilterRemoved:{reducer:(t,e)=>{const n=is(t,"state",[]),{abbr:i}=e.payload;t.state=n.filter(c=>c!==i)}},toggleFlagFilter:{reducer:(t,e)=>{const n=e.payload;t[n]=!t[n],t[n]||delete t[n]}}},extraReducers:t=>{t.addCase("routes/routeChanged",(e,n)=>{const{params:i}=n.payload;oS(i,e,zm),i.dataNormalization&&(e.dataNormalization=i.dataNormalization)}).addCase("trends/focusChanged",(e,n)=>{const{focus:i,lens:c,filterValues:S}=n.payload,F=c.toLowerCase(),nt=[];F==="company"?nt.push(i):S.forEach(ut=>{nt.push(ut)}),e[F]=nt}).addCase("trends/focusRemoved",(e,n)=>{const c=n.payload.toLowerCase();e[c]=[]}).addMatcher(ps(Lw,Jm,z1,mp,fy,tg,eg,nE,Iw,Rf,gp),e=>{rE(e)})}});function x3(t=[],e){return t.indexOf(e)===-1?t.push(e):t=t.filter(function(n){return n!==e}),[...t]}function rE(t){t.enablePer1000=rS(t),t.enablePer1000&&(t.mapWarningEnabled=!0),t.dataNormalization=t.enablePer1000&&t.dataNormalization||Cc}const{dataNormalizationUpdated:Rw,filterAdded:Lw,filterRemoved:Jm,filtersCleared:z1,filtersReplaced:mp,filterToggled:fy,mapWarningDismissed:U1,multipleFiltersAdded:tg,multipleFiltersRemoved:eg,stateFilterAdded:H1,stateFilterCleared:Iw,stateFilterRemoved:Rf,toggleFlagFilter:gp}=hy.actions,dy=hy.reducer;var iE=Object.defineProperty,oE=Object.defineProperties,yp=Object.getOwnPropertyDescriptors,jw=Object.getOwnPropertySymbols,aE=Object.prototype.hasOwnProperty,sE=Object.prototype.propertyIsEnumerable,lE=(t,e,n)=>e in t?iE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,w3=(t,e)=>{for(var n in e||(e={}))aE.call(e,n)&&lE(t,n,e[n]);if(jw)for(var n of jw(e))sE.call(e,n)&&lE(t,n,e[n]);return t},_3=(t,e)=>oE(t,yp(e));const V1={company_received_max:"",company_received_min:"",dateInterval:"Month",dateRange:"3y",date_received_max:Na(Fr()(lp())),date_received_min:Na(new Date(Fr()(lp()).subtract(3,"years"))),from:0,page:1,searchAfter:"",searchField:"all",searchText:"",size:25,sort:"created_date_desc",trendsDateWarningEnabled:!1},uE={searchAfter:"search_after",searchText:"search_term",searchField:"field",from:"frm"},Bw=Ts({name:"query",initialState:V1,reducers:{dateIntervalChanged:{reducer:(t,e)=>{t.dateInterval=Ys(e.payload,"dateInterval"),py(t)}},dateRangeChanged:{reducer:(t,e)=>{const n=Ys(e.payload,"dateRange"),i=Na(Fr()(lp())),c={All:Na(Fr()(Fm)),"3m":Na(Fr()(i).subtract(3,"months")),"6m":Na(Fr()(i).subtract(6,"months")),"1y":Na(Fr()(i).subtract(1,"year")),"3y":Na(Fr()(i).subtract(3,"years"))};t.dateRange=n,t.date_received_min=c[n]?c[n]:t.date_received_min,t.date_received_max=i,py(t)}},companyReceivedDateChanged:{reducer:(t,e)=>{let{maxDate:n,minDate:i}=e.payload;i=Fr()(i).isValid()?Na(Fr()(i).startOf("day")):null,n=Fr()(n).isValid()?Na(Fr()(n).startOf("day")):null,t.company_received_min=i,t.company_received_max=n},prepare:(t,e)=>({payload:{minDate:t,maxDate:e}})},datesChanged:{reducer:(t,e)=>{let{maxDate:n,minDate:i}=e.payload;i=Fr()(i).isValid()?Na(Fr()(i).startOf("day")):null,n=Fr()(n).isValid()?Na(Fr()(n).startOf("day")):null;const c=t.date_received_min!==i||t.date_received_max!==n,S=u1(i,n);S&&c?t.dateRange=S:delete t.dateRange,t.date_received_min=i||t.date_received_min,t.date_received_max=n||t.date_received_max,py(t)},prepare:(t,e)=>({payload:{minDate:t,maxDate:e}})},searchFieldChanged:{reducer:(t,e)=>{t.searchField=e.payload}},searchTextChanged:{reducer:(t,e)=>_3(w3({},t),{searchText:e.payload})},trendsDateWarningDismissed:{reducer:t=>{t.trendsDateWarningEnabled=!1}},prevPageShown:{reducer:(t,e)=>{const n=e.payload,i=t.page-1,c=Lf(i,t);t.page=c.page,t.from=c.from,t.searchAfter=Fw(n,i)}},nextPageShown:{reducer:(t,e)=>{const n=e.payload,i=t.page+1,c=Lf(i,t);t.page=c.page,t.from=c.from,t.searchAfter=Fw(n,i)}},sizeChanged:{reducer:(t,e)=>{t.size=Ys(e.payload,"size")}},sortChanged:{reducer:(t,e)=>{t.sort=Ys(e.payload,"sort")}}},extraReducers:t=>{t.addCase("filters/filtersCleared",e=>{e.dateRange="All",e.company_received_max="",e.company_received_min="",e.date_received_min=gs,e.date_received_max=Zl,e.company_received_max="",e.company_received_min=""}).addCase("routes/routeChanged",(e,n)=>{const{params:i}=n.payload;["dateRange","dateInterval","searchField","searchText","sort"].forEach(nt=>{i[nt]&&(e[nt]=Ys(i[nt],nt))}),Kv.forEach(nt=>{typeof i[nt]!="undefined"&&Fr()(i[nt]).isValid()&&(e[nt]=S3(i[nt]))});const S=is(i,"page",V1.page),F=is(i,"size",V1.size);if(e.page=parseInt(S,10),e.size=parseInt(F,10),i.search_after&&(e.searchAfter=i.search_after),W1(i)||i.dateRange==="All"){const nt={payload:i.dateRange};Bw.caseReducers.dateRangeChanged(e,nt)}cE(e)}).addMatcher(ps(ng,Uw,Qa,Y1,Lw,Jm,fy,z1,mp,tg,eg,hE,Pc,rg,fE,Nf,gp),e=>{zw(e)})}});function cE(t){const e=t.date_received_max,n=t.date_received_min;if(Fr()(e).isSame(V1.date_received_max)&&Fr()(n).isSame(Fm)){t.dateRange="All";return}const i={"3y":Fr()(e).subtract(3,"years"),"3m":Fr()(e).subtract(3,"months"),"6m":Fr()(e).subtract(6,"months"),"1y":Fr()(e).subtract(1,"year")},c=Object.keys(i);let S=!1;for(let F=0;F<c.length&&!S;F++){const nt=c[F];Fr()(n).isSame(i[nt],"day")&&(t.dateRange=nt,S=!0)}S||(t.dateRange="")}function W1(t){const e=Object.keys(t);return e.includes("dateRange")&&!e.includes("date_received_min")&&!e.includes("date_received_max")}function S3(t){return Fr()(t).isValid()?Na(t):null}function py(t){const{date_received_min:e,date_received_max:n,dateInterval:i}=t;Kx(e,n)&&i==="Day"&&(t.dateInterval="Week",t.trendsDateWarningEnabled=!0),Kx(e,n)||(t.trendsDateWarningEnabled=!1)}function Lf(t,e){return{from:(t-1)*e.size,page:t,searchAfter:Fw(e,t)}}function Fw(t,e){return t&&t[e]?t[e].join("_"):""}function my(t){const e={};Object.keys(t).forEach(nt=>{if(!t[nt])return;let ut=t[nt];Kv.indexOf(nt)!==-1&&(ut=f1(ut));const yt=["yes","true"];Af.indexOf(nt)!==-1&&(ut=yt.includes(String(ut).toLowerCase())),uE[nt]?e[uE[nt]]=ut:e[nt]=ut});const i=[].concat(["search_term","field"],Kv,zm,Af),c={List:["frm","search_after","size","sort","format","no_aggs"],Map:[],Trends:["lens","focus","sub_lens","sub_lens_depth","trend_interval","trend_depth"]},S=[].concat(i,c[e.tab]);Object.keys(e).includes("format")&&["size","format","no_aggs"].forEach(ut=>{S.includes(ut)||S.push(ut)});const F=Object.keys(e).filter(nt=>S.includes(nt)).reduce((nt,ut)=>(nt[ut]=e[ut],nt),{});return"?"+Ll.stringify(F)}function zw(t){t.from=0,t.page=1,t.searchAfter=""}const{companyReceivedDateChanged:ng,datesChanged:Uw,dateRangeChanged:Y1,dateIntervalChanged:Qa,trendsDateWarningDismissed:E3,nextPageShown:C3,prevPageShown:wo,searchFieldChanged:hE,searchTextChanged:Pc,sizeChanged:rg,sortChanged:fE}=Bw.actions,M3=Bw.reducer,tu=t=>t.filters,dE=t=>t.filters.company,bO=t=>t.filters.company_received_max,k3=t=>t.filters.company_received_min,Hw=t=>t.filters.dataNormalization,pE=t=>t.filters.enablePer1000,T3=t=>t.filters.issue,A3=t=>t.filters.product,Vw=t=>t.filters.state,Ww=t=>t.filters.has_narrative,mE=t=>t.filters.mapWarningEnabled,vp=t=>t.query,P3=t=>t.query.company_received_max,O3=t=>t.query.company_received_min,bp=t=>t.query.date_received_max,xp=t=>t.query.date_received_min,N3=t=>t.query.dateRange,D3=t=>t.query.page,q1=t=>t.query.searchField,gE=t=>t.query.searchText,R3=t=>t.query.size,L3=t=>t.query.sort,$1=t=>t.query.dateInterval,I3=t=>t.query.trendsDateWarningEnabled,j3=t=>t.trends,Yw=t=>t.trends.chartType,xh=t=>t.trends.focus,eu=t=>t.trends.lens,qw=t=>t.trends.subLens,yE=t=>t.trends.tooltip,xO={};function _a(){return _a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},_a.apply(null,arguments)}function ig(t){"@babel/helpers - typeof";return ig=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ig(t)}function B3(t,e){if(ig(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(ig(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function vE(t){var e=B3(t,"string");return ig(e)=="symbol"?e:e+""}function bi(t,e,n){return(e=vE(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function F3(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.includes(i))continue;n[i]=t[i]}return n}function vs(t,e){if(t==null)return{};var n,i,c=F3(t,e);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(t);for(i=0;i<S.length;i++)n=S[i],e.includes(n)||{}.propertyIsEnumerable.call(t,n)&&(c[n]=t[n])}return c}var bE=Fn(7967),z3=Fn.n(bE);function U3(){const[,t]=(0,W.useReducer)(e=>!e,!1);return t}function H3(t){const e=(0,W.useRef)(null);return(0,W.useEffect)(()=>{e.current=t}),e.current}var xE=["justify","left","right"],wE="label",V3=["lg","sm"],W3=Fn(5705),_E=Fn.n(W3);function $w(t){return typeof t=="string"?t:wE}function X1(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Xw=0;function cl(t){return typeof t=="function"}function Gu(t){return typeof t=="string"}function nu(){}function G1(t,e){var n={};return e.forEach(function(i){n[i]=t[i]}),n}function Y3(t){return Xw+=1,(t==null?"":String(t))+Xw}function q3(t,e){if(!Gu(t)&&(X1(t,"paginationOption")||X1(t,"customOption")))return t[$w(e)];var n;return cl(e)?n=e(t):Gu(t)?n=t:n=t[e],Gu(n)||_E()(!1),n}const Oc=q3;function $3(t,e){var n=e.allowNew,i=e.labelKey,c=e.text;return!n||!c.trim()?!1:cl(n)?n(t,e):!t.some(function(S){return Oc(S,i)===c})}const SE=$3;var EE=Fn(5215),og=Fn.n(EE);function ru(t,e){if(!Gu(t))return t[e]}var Gw=[{base:"A",letters:"A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",letters:"\uA732"},{base:"AE",letters:"\xC6\u01FC\u01E2"},{base:"AO",letters:"\uA734"},{base:"AU",letters:"\uA736"},{base:"AV",letters:"\uA738\uA73A"},{base:"AY",letters:"\uA73C"},{base:"B",letters:"B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"},{base:"C",letters:"C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"},{base:"D",letters:"D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\xD0"},{base:"DZ",letters:"\u01F1\u01C4"},{base:"Dz",letters:"\u01F2\u01C5"},{base:"E",letters:"E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"},{base:"F",letters:"F\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",letters:"G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"},{base:"H",letters:"H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",letters:"I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",letters:"J\u24BF\uFF2A\u0134\u0248"},{base:"K",letters:"K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",letters:"L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",letters:"\u01C7"},{base:"Lj",letters:"\u01C8"},{base:"M",letters:"M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"},{base:"N",letters:"N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"},{base:"NJ",letters:"\u01CA"},{base:"Nj",letters:"\u01CB"},{base:"O",letters:"O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OI",letters:"\u01A2"},{base:"OO",letters:"\uA74E"},{base:"OU",letters:"\u0222"},{base:"OE",letters:"\x8C\u0152"},{base:"oe",letters:"\x9C\u0153"},{base:"P",letters:"P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",letters:"Q\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",letters:"R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",letters:"S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",letters:"T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"TZ",letters:"\uA728"},{base:"U",letters:"U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",letters:"V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",letters:"\uA760"},{base:"W",letters:"W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",letters:"X\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",letters:"Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",letters:"Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",letters:"a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"},{base:"aa",letters:"\uA733"},{base:"ae",letters:"\xE6\u01FD\u01E3"},{base:"ao",letters:"\uA735"},{base:"au",letters:"\uA737"},{base:"av",letters:"\uA739\uA73B"},{base:"ay",letters:"\uA73D"},{base:"b",letters:"b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"},{base:"c",letters:"c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",letters:"d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"},{base:"dz",letters:"\u01F3\u01C6"},{base:"e",letters:"e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"},{base:"f",letters:"f\u24D5\uFF46\u1E1F\u0192\uA77C"},{base:"g",letters:"g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"},{base:"h",letters:"h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",letters:"j\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",letters:"k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",letters:"l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"},{base:"lj",letters:"\u01C9"},{base:"m",letters:"m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",letters:"n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"},{base:"nj",letters:"\u01CC"},{base:"o",letters:"o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"},{base:"oi",letters:"\u01A3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\uA74F"},{base:"p",letters:"p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"},{base:"q",letters:"q\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",letters:"r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",letters:"s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"},{base:"t",letters:"t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"tz",letters:"\uA729"},{base:"u",letters:"u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",letters:"v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",letters:"\uA761"},{base:"w",letters:"w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",letters:"x\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",letters:"y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",letters:"z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}].reduce(function(t,e){var n=e.base,i=e.letters;return i.split("").forEach(function(c){t[c]=n}),t},{}),CE="\u0300-\u036F",K1="\u3099\u309A";function ag(t){return t.normalize("NFD").replace(new RegExp("[".concat(CE).concat(K1,"]"),"g"),"").replace(/[^\u0000-\u007E]/g,function(e){return Gw[e]||e})}var ME=Fn(6365),wp=Fn.n(ME),_p={};function bs(t,e){if(!t&&e.indexOf("deprecated")!==-1){if(_p[e])return;_p[e]=!0}for(var n=arguments.length,i=new Array(n>2?n-2:0),c=2;c<n;c++)i[c-2]=arguments[c];wp().apply(void 0,[t,"[react-bootstrap-typeahead] ".concat(e)].concat(i))}function Z1(){_p={}}function Kw(t,e,n){var i=t,c=e;return n.caseSensitive||(i=i.toLowerCase(),c=c.toLowerCase()),n.ignoreDiacritics&&(i=ag(i),c=ag(c)),c.indexOf(i)!==-1}function kE(t,e){var n=e.filterBy,i=e.labelKey,c=e.multiple,S=e.selected,F=e.text;if(c&&S.some(function(ut){return og()(ut,t)}))return!1;if(cl(i))return Kw(F,i(t),e);var nt=n.slice();return Gu(i)&&nt.indexOf(i)===-1&&nt.unshift(i),Gu(t)?(bs(nt.length<=1,"You cannot filter by properties when `option` is a string."),Kw(F,t,e)):nt.some(function(ut){var yt=ru(t,ut);return Gu(yt)||(bs(!1,"Fields passed to `filterBy` should have string values. Value will be converted to a string; results may be unexpected."),yt=String(yt)),Kw(F,yt,e)})}function Q1(t){return t.selectionStart!=null}function X3(t,e){var n=!1;return t.key==="ArrowRight"&&(n=Q1(t.currentTarget)?t.currentTarget.selectionStart===t.currentTarget.value.length:!0),t.key==="Tab"&&(t.preventDefault(),n=!0),e?e(n,t):n}var G3="i",gy=/[\u0300-\u036F]/;function K3(t){return typeof t!="string"&&_E()(!1),t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Zw(t,e){var n=new RegExp(K3(ag(e)),G3),i=n.exec(ag(t));if(!i)return null;var c=i.index,S=i[0].length;if(gy.test(t)){for(var F=0;F<=c;F++)gy.test(t[F])&&(c+=1);for(var nt=c;nt<=c+S;nt++)gy.test(t[nt])&&(S+=1)}return{end:c+S,start:c}}function TE(t){var e=t.activeIndex,n=t.initialItem,i=t.isFocused,c=t.isMenuShown,S=t.labelKey,F=t.multiple,nt=t.selected,ut=t.text;if(!ut||!i||!c||!n||!Gu(n)&&X1(n,"customOption")||!Gu(n)&&n.disabled||e>-1||nt.length&&!F)return"";var yt=Oc(n,S),_t=Zw(yt.toLowerCase(),ut.toLowerCase());return _t&&_t.start===0?ut+yt.slice(_t.end,yt.length):""}const Z3=TE;var AE=Fn(9122),os=Fn.n(AE);function PE(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;return"".concat(t,"-item-").concat(e)}var OE=["activeIndex","id","isFocused","isMenuShown","multiple","onClick","onFocus","placeholder"];function Qw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),n.push.apply(n,i)}return n}function J1(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Qw(Object(n),!0).forEach(function(i){bi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qw(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var Q3=function(e){var n=e.activeIndex,i=e.id,c=e.isFocused,S=e.isMenuShown,F=e.multiple,nt=e.onClick,ut=e.onFocus,yt=e.placeholder,_t=vs(e,OE);return function(){var zt,Ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Yt=X1(Ht,"className")?String(Ht.className):void 0;return J1(J1(J1(J1({autoComplete:"off",placeholder:yt,type:"text"},Ht),_t),{},{"aria-activedescendant":n>=0?PE(i,n):void 0,"aria-autocomplete":"both","aria-expanded":S,"aria-haspopup":"listbox","aria-multiselectable":F||void 0,"aria-owns":S?i:void 0,className:os()((zt={},bi(zt,Yt||"",!F),bi(zt,"focus",c),zt))},F&&{inputClassName:Yt}),{},{onClick:nt,onFocus:ut,role:"combobox"})}};const tb=Q3;function If(t){var e=t.activeItem,n=t.labelKey,i=t.multiple,c=t.selected,S=t.text;return e?Oc(e,n):!i&&c.length&&c[0]?Oc(c[0],n):S}const NE=If;function DE(t){var e=t.allowNew,n=t.highlightOnlyResult,i=t.results;return!n||e?!1:i.length===1&&!ru(i[0],"disabled")}const Jw=DE;function t_(t,e){return!e||e>=t.length?t:t.slice(0,e)}const J3=t_;function RE(t,e){var n=e[t];return!!n&&!!ru(n,"disabled")}function yy(t,e,n){for(var i=t;RE(i,n);)i+=e==="ArrowUp"?-1:1;return i}function LE(t,e,n){var i=t;return i+=e==="ArrowUp"?-1:1,i=yy(i,e,n),i===n.length?i=-1:i===-2&&(i=n.length-1,i=yy(i,e,n)),i}function IE(t){var e=t.open,n=t.minLength,i=t.showMenu,c=t.text;return e||e===!1?e:c.length<n?!1:i}function eb(t){t.preventDefault()}function vy(t){return t==="lg"}function jE(t){return t==="sm"}var Yi=["className","isInvalid","isValid","size"];function BE(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),n.push.apply(n,i)}return n}function FE(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?BE(Object(n),!0).forEach(function(i){bi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):BE(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function zE(t){var e=t.className,n=t.isInvalid,i=t.isValid,c=t.size,S=vs(t,Yi);return FE(FE({},S),{},{className:os()("form-control","rbt-input",{"form-control-lg":vy(c),"form-control-sm":jE(c),"is-invalid":n,"is-valid":i},e)})}function tA(t,e){var n=!t&&e,i=t&&!e,c,S,F;n?(c="uncontrolled",S="controlled",F="an"):(c="controlled",S="uncontrolled",F="a");var nt="You are changing ".concat(F," ").concat(c," typeahead to be ").concat(S,". ")+"Input elements should not switch from ".concat(c," to ").concat(S," (or vice versa). ")+"Decide between using a controlled or uncontrolled element for the lifetime of the component.";bs(!(n||i),nt)}var eA=[{alt:"onBlur",prop:"onBlur"},{alt:"onInputChange",prop:"onChange"},{alt:"onFocus",prop:"onFocus"},{alt:"onKeyDown",prop:"onKeyDown"}],UE=Rn().oneOf(V3);function Nc(t,e){return function(n,i,c){Rn().checkPropTypes(bi({},i,t),n,"prop",c),cl(e)&&e(n,i,c)}}function nA(t){var e=t.caseSensitive,n=t.filterBy;bs(!e||typeof n!="function","Your `filterBy` function will override the `caseSensitive` prop.")}function wO(t,e){return function(n,i,c){return n[i]!=null&&warn(!1,"The `".concat(i,"` prop is deprecated. ").concat(e)),PropTypes.checkPropTypes(_defineProperty({},i,t),n,"prop",c)}}function rA(t){var e=t.defaultInputValue,n=t.defaultSelected,i=t.multiple,c=t.selected,S=n.length?"defaultSelected":"selected";bs(!(!i&&e&&(n.length||c&&c.length)),"`defaultInputValue` will be overridden by the value from `".concat(S,"`."))}function Ho(t){var e=t.defaultSelected,n=t.multiple;bs(n||e.length<=1,"You are passing multiple options to the `defaultSelected` prop of a Typeahead in single-select mode. The selections will be truncated to a single selection.")}function HE(t){var e=t.allowNew,n=t.highlightOnlyResult;bs(!(n&&e),"`highlightOnlyResult` will not work with `allowNew`.")}function iA(t){var e=t.filterBy,n=t.ignoreDiacritics;bs(n||typeof e!="function","Your `filterBy` function will override the `ignoreDiacritics` prop.")}function VE(t){var e=t.inputProps;e&&Object.prototype.toString.call(e)==="[object Object]"&&eA.forEach(function(n){var i=n.alt,c=n.prop,S=i?" Use the top-level `".concat(i,"` prop instead."):null;bs(!e[c],"The `".concat(c,"` property of `inputProps` will be ignored.").concat(S))})}function WE(t,e,n){bs(t[e]!=null,"The prop `".concat(e,"` is required to make `").concat(n,"` ")+"accessible for users of assistive technologies such as screen readers.")}function YE(t){var e=t.allowNew,n=t.labelKey;bs(!(cl(n)&&e),"`labelKey` must be a string when `allowNew={true}`.")}var sg=Rn().oneOfType([Rn().object,Rn().string]);function qE(t){var e=t.multiple,n=t.onChange,i=t.selected;bs(e||!i||i.length<=1,"You are passing multiple options to the `selected` prop of a Typeahead in single-select mode. This may lead to unexpected behaviors or errors."),bs(!i||i&&cl(n),"You provided a `selected` prop without an `onChange` handler. If you want the typeahead to be uncontrolled, use `defaultSelected`. Otherwise, set `onChange`.")}var oA=["allowNew","delay","emptyLabel","isLoading","minLength","onInputChange","onSearch","options","promptText","searchText","useCache"];function e_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),n.push.apply(n,i)}return n}function $E(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?e_(Object(n),!0).forEach(function(i){bi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e_(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var XE={delay:Rn().number,isLoading:Rn().bool.isRequired,minLength:Rn().number,onSearch:Rn().func.isRequired,options:Rn().arrayOf(sg),promptText:Rn().node,searchText:Rn().node,useCache:Rn().bool};function GE(t){var e=t.allowNew,n=t.delay,i=n===void 0?200:n,c=t.emptyLabel,S=t.isLoading,F=t.minLength,nt=F===void 0?2:F,ut=t.onInputChange,yt=t.onSearch,_t=t.options,zt=_t===void 0?[]:_t,Ht=t.promptText,Yt=Ht===void 0?"Type to search...":Ht,re=t.searchText,ue=re===void 0?"Searching...":re,oe=t.useCache,de=oe===void 0?!0:oe,pe=vs(t,oA),_e=(0,W.useRef)({}),ge=(0,W.useRef)(null),qe=(0,W.useRef)(t.defaultInputValue||""),De=U3(),$e=H3(t),Ye=(0,W.useCallback)(function(kn){if(qe.current=kn,!(!kn||nt&&kn.length<nt)){if(de&&_e.current[kn]){De();return}yt(kn)}},[De,nt,yt,de]);(0,W.useEffect)(function(){return ge.current=z3()(Ye,i),function(){ge.current&&ge.current.cancel()}},[i,Ye]),(0,W.useEffect)(function(){!S&&$e&&$e.isLoading&&de&&(_e.current[qe.current]=zt)});var tn=function(){return qe.current.length?S?ue:c:Yt},gn=(0,W.useCallback)(function(kn,Zn){ut&&ut(kn,Zn),ge.current&&ge.current(kn)},[ut]),Cn=_e.current[qe.current];return $E($E({},pe),{},{allowNew:cl(e)?e:e&&!S,emptyLabel:tn(),isLoading:S,minLength:nt,onInputChange:gn,options:de&&Cn?Cn:zt})}function aA(t){warn(!1,"Warning: `withAsync` is deprecated and will be removed in the next major version. Use `useAsync` instead.");var e=forwardRef(function(n,i){return React.createElement(t,_extends({},n,GE(n),{ref:i}))});return e.displayName="withAsync(".concat(getDisplayName(t),")"),e.propTypes=XE,e}function KE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n_(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,vE(i.key),i)}}function ZE(t,e,n){return e&&n_(t.prototype,e),n&&n_(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function vo(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r_(t,e){return r_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},r_(t,e)}function i_(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r_(t,e)}function QE(t,e){if(e&&(ig(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vo(t)}function Sp(t){return Sp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sp(t)}var sA={activeIndex:-1,hintText:"",id:"",initialItem:null,inputNode:null,isOnlyResult:!1,onActiveItemChange:nu,onAdd:nu,onInitialItemChange:nu,onMenuItemClick:nu,setItem:nu},o_=(0,W.createContext)(sA),JE=function(){return(0,W.useContext)(o_)};function a_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),n.push.apply(n,i)}return n}function lg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?a_(Object(n),!0).forEach(function(i){bi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a_(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var tC=["activeIndex","disabled","id","inputRef","isFocused","isMenuShown","multiple","onBlur","onChange","onClick","onFocus","onKeyDown","placeholder"],lA=["activeIndex","hideMenu","isMenuShown","labelKey","onClear","onHide","onRemove","results","selected","text","toggleMenu"],eC=["activeIndex","id","initialItem","inputNode","onActiveItemChange","onAdd","onInitialItemChange","onMenuItemClick","setItem"],uA=function(e){var n=e.allowNew,i=e.children,c=e.initialItem,S=e.isMenuShown,F=e.onAdd,nt=e.onInitialItemChange,ut=e.onKeyDown,yt=e.onMenuToggle,_t=e.results,zt=e.selectHint,Ht=Z3(e);(0,W.useEffect)(function(){n||_t.length||nt()});var Yt=(0,W.useRef)(!0);(0,W.useEffect)(function(){if(Yt.current){Yt.current=!1;return}yt(S)},[S,yt]);var re=function(pe){if(ut(pe),!!c){var _e=pe.key==="Enter"&&Jw(e),ge=Ht&&X3(pe,zt);(_e||ge)&&F(c)}},ue=lg(lg({},G1(e,lA)),{},{getInputProps:tb(lg(lg({},G1(e,tC)),{},{onKeyDown:re,value:NE(e)}))}),oe=lg(lg({},G1(e,eC)),{},{hintText:Ht,isOnlyResult:Jw(e)});return W.createElement(o_.Provider,{value:oe},cl(i)?i(ue):i)};const nC=uA;function rC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),n.push.apply(n,i)}return n}function wh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?rC(Object(n),!0).forEach(function(i){bi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rC(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function nb(t){var e=t.defaultInputValue,n=t.defaultOpen,i=t.defaultSelected,c=t.maxResults,S=t.multiple,F=t.selected?t.selected.slice():i.slice(),nt=e;return!S&&F.length&&(nt=Oc(F[0],t.labelKey),F.length>1&&(F=F.slice(0,1))),{activeIndex:-1,activeItem:void 0,initialItem:void 0,isFocused:!1,selected:F,showMenu:n,shownResults:c,text:nt}}function s_(t,e){return wh(wh({},nb(e)),{},{isFocused:t.isFocused,selected:[],text:""})}function iC(t){return wh(wh({},t),{},{isFocused:!0,showMenu:!0})}function by(t,e){var n=nb(e),i=n.activeIndex,c=n.activeItem,S=n.initialItem,F=n.shownResults;return wh(wh({},t),{},{activeIndex:i,activeItem:c,initialItem:S,showMenu:!1,shownResults:F})}function cA(t,e){return t.showMenu?by(t,e):wh(wh({},t),{},{showMenu:!0})}var oC=["onChange"];function aC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),n.push.apply(n,i)}return n}function _h(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?aC(Object(n),!0).forEach(function(i){bi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):aC(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function hA(t){var e=sC();return function(){var i=Sp(t),c;if(e){var S=Sp(this).constructor;c=Reflect.construct(i,arguments,S)}else c=i.apply(this,arguments);return QE(this,c)}}function sC(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var fA={allowNew:Rn().oneOfType([Rn().bool,Rn().func]),autoFocus:Rn().bool,caseSensitive:Nc(Rn().bool,nA),defaultInputValue:Nc(Rn().string,rA),defaultOpen:Rn().bool,defaultSelected:Nc(Rn().arrayOf(sg),Ho),filterBy:Rn().oneOfType([Rn().arrayOf(Rn().string.isRequired),Rn().func]),highlightOnlyResult:Nc(Rn().bool,HE),id:Nc(Rn().oneOfType([Rn().number,Rn().string]),WE),ignoreDiacritics:Nc(Rn().bool,iA),labelKey:Nc(Rn().oneOfType([Rn().string,Rn().func]),YE),maxResults:Rn().number,minLength:Rn().number,multiple:Rn().bool,onBlur:Rn().func,onChange:Rn().func,onFocus:Rn().func,onInputChange:Rn().func,onKeyDown:Rn().func,onMenuToggle:Rn().func,onPaginate:Rn().func,open:Rn().bool,options:Rn().arrayOf(sg).isRequired,paginate:Rn().bool,selected:Nc(Rn().arrayOf(sg),qE)},lC={allowNew:!1,autoFocus:!1,caseSensitive:!1,defaultInputValue:"",defaultOpen:!1,defaultSelected:[],filterBy:[],highlightOnlyResult:!1,ignoreDiacritics:!0,labelKey:wE,maxResults:100,minLength:0,multiple:!1,onBlur:nu,onFocus:nu,onInputChange:nu,onKeyDown:nu,onMenuToggle:nu,onPaginate:nu,paginate:!0};function dA(t,e){var n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value");n&&n.set&&n.set.call(t,e);var i=new Event("input",{bubbles:!0});t.dispatchEvent(i)}var rb=function(t){i_(n,t);var e=hA(n);function n(){var i;KE(this,n);for(var c=arguments.length,S=new Array(c),F=0;F<c;F++)S[F]=arguments[F];return i=e.call.apply(e,[this].concat(S)),bi(vo(i),"state",nb(i.props)),bi(vo(i),"inputNode",null),bi(vo(i),"isMenuShown",!1),bi(vo(i),"items",[]),bi(vo(i),"blur",function(){i.inputNode&&i.inputNode.blur(),i.hideMenu()}),bi(vo(i),"clear",function(){i.setState(s_)}),bi(vo(i),"focus",function(){i.inputNode&&i.inputNode.focus()}),bi(vo(i),"getInput",function(){return i.inputNode}),bi(vo(i),"inputRef",function(nt){i.inputNode=nt}),bi(vo(i),"setItem",function(nt,ut){i.items[ut]=nt}),bi(vo(i),"hideMenu",function(){i.setState(by)}),bi(vo(i),"toggleMenu",function(){i.setState(cA)}),bi(vo(i),"_handleActiveIndexChange",function(nt){i.setState(function(ut){return{activeIndex:nt,activeItem:nt>=0?ut.activeItem:void 0}})}),bi(vo(i),"_handleActiveItemChange",function(nt){og()(nt,i.state.activeItem)||i.setState({activeItem:nt})}),bi(vo(i),"_handleBlur",function(nt){nt.persist(),i.setState({isFocused:!1},function(){return i.props.onBlur(nt)})}),bi(vo(i),"_handleChange",function(nt){i.props.onChange&&i.props.onChange(nt)}),bi(vo(i),"_handleClear",function(){i.inputNode&&dA(i.inputNode,""),i.setState(s_,function(){i.props.multiple&&i._handleChange([])})}),bi(vo(i),"_handleClick",function(nt){var ut;nt.persist();var yt=(ut=i.props.inputProps)===null||ut===void 0?void 0:ut.onClick;i.setState(iC,function(){return cl(yt)&&yt(nt)})}),bi(vo(i),"_handleFocus",function(nt){nt.persist(),i.setState(iC,function(){return i.props.onFocus(nt)})}),bi(vo(i),"_handleInitialItemChange",function(nt){og()(nt,i.state.initialItem)||i.setState({initialItem:nt})}),bi(vo(i),"_handleInputChange",function(nt){nt.persist();var ut=nt.currentTarget.value,yt=i.props,_t=yt.multiple,zt=yt.onInputChange,Ht=i.state.selected.length&&!_t;i.setState(function(Yt,re){var ue=nb(re),oe=ue.activeIndex,de=ue.activeItem,pe=ue.shownResults;return{activeIndex:oe,activeItem:de,selected:Ht?[]:Yt.selected,showMenu:!0,shownResults:pe,text:ut}},function(){zt(ut,nt),Ht&&i._handleChange([])})}),bi(vo(i),"_handleKeyDown",function(nt){var ut=i.state.activeItem;if(!i.isMenuShown){(nt.key==="ArrowUp"||nt.key==="ArrowDown")&&i.setState({showMenu:!0}),i.props.onKeyDown(nt);return}switch(nt.key){case"ArrowUp":case"ArrowDown":nt.preventDefault(),i._handleActiveIndexChange(LE(i.state.activeIndex,nt.key,i.items));break;case"Enter":nt.preventDefault(),ut&&i._handleMenuItemSelect(ut,nt);break;case"Escape":case"Tab":i.hideMenu();break;default:break}i.props.onKeyDown(nt)}),bi(vo(i),"_handleMenuItemSelect",function(nt,ut){ru(nt,"paginationOption")?i._handlePaginate(ut):i._handleSelectionAdd(nt)}),bi(vo(i),"_handlePaginate",function(nt){nt.persist(),i.setState(function(ut,yt){return{shownResults:ut.shownResults+yt.maxResults}},function(){return i.props.onPaginate(nt,i.state.shownResults)})}),bi(vo(i),"_handleSelectionAdd",function(nt){var ut=i.props,yt=ut.multiple,_t=ut.labelKey,zt,Ht=nt,Yt;!Gu(Ht)&&Ht.customOption&&(Ht=_h(_h({},Ht),{},{id:Y3("new-id-")})),yt?(zt=i.state.selected.concat(Ht),Yt=""):(zt=[Ht],Yt=Oc(Ht,_t)),i.setState(function(re,ue){return _h(_h({},by(re,ue)),{},{initialItem:Ht,selected:zt,text:Yt})},function(){return i._handleChange(zt)})}),bi(vo(i),"_handleSelectionRemove",function(nt){var ut=i.state.selected.filter(function(yt){return!og()(yt,nt)});i.focus(),i.setState(function(yt,_t){return _h(_h({},by(yt,_t)),{},{selected:ut})},function(){return i._handleChange(ut)})}),i}return ZE(n,[{key:"componentDidMount",value:function(){this.props.autoFocus&&this.focus()}},{key:"componentDidUpdate",value:function(c,S){var F=this.props,nt=F.labelKey,ut=F.multiple,yt=F.selected;tA(yt,c.selected),yt&&!og()(yt,S.selected)&&(this.setState({selected:yt}),ut||this.setState({text:yt.length?Oc(yt[0],nt):""}))}},{key:"render",value:function(){var c=this.props,S=c.onChange,F=vs(c,oC),nt=_h(_h({},F),this.state),ut=nt.filterBy,yt=nt.labelKey,_t=nt.options,zt=nt.paginate,Ht=nt.shownResults,Yt=nt.text;this.isMenuShown=IE(nt),this.items=[];var re=[];if(this.isMenuShown){var ue=cl(ut)?ut:kE;re=_t.filter(function(pe){return ue(pe,nt)});var oe=zt&&re.length>Ht;if(re=J3(re,Ht),SE(re,nt)&&re.push(bi({customOption:!0},$w(yt),Yt)),oe){var de;re.push((de={},bi(de,$w(yt),""),bi(de,"paginationOption",!0),de))}}return W.createElement(nC,_a({},nt,{hideMenu:this.hideMenu,inputNode:this.inputNode,inputRef:this.inputRef,isMenuShown:this.isMenuShown,onActiveItemChange:this._handleActiveItemChange,onAdd:this._handleSelectionAdd,onBlur:this._handleBlur,onChange:this._handleInputChange,onClear:this._handleClear,onClick:this._handleClick,onFocus:this._handleFocus,onHide:this.hideMenu,onInitialItemChange:this._handleInitialItemChange,onKeyDown:this._handleKeyDown,onMenuItemClick:this._handleMenuItemSelect,onRemove:this._handleSelectionRemove,results:re,setItem:this.setItem,toggleMenu:this.toggleMenu}))}}]),n}(W.Component);bi(rb,"propTypes",fA),bi(rb,"defaultProps",lC);const pA=rb;var uC=["className","label","onClick","onKeyDown","size"],mA={label:Rn().string,onClick:Rn().func,onKeyDown:Rn().func,size:UE},l_=function(e){var n=e.className,i=e.label,c=i===void 0?"Clear":i,S=e.onClick,F=e.onKeyDown,nt=e.size,ut=vs(e,uC);return W.createElement("button",_a({},ut,{"aria-label":c,className:os()("close","btn-close","rbt-close",{"rbt-close-lg":vy(nt),"rbt-close-sm":jE(nt)},n),onClick:function(_t){_t.stopPropagation(),S&&S(_t)},onKeyDown:function(_t){_t.key==="Backspace"&&_t.preventDefault(),F&&F(_t)},type:"button"}),W.createElement("span",{"aria-hidden":"true",className:"rbt-close-content"},"\xD7"),W.createElement("span",{className:"sr-only visually-hidden"},c))};l_.propTypes=mA;const cC=l_;var hC={label:Rn().string},fC=function(e){var n=e.label,i=n===void 0?"Loading...":n;return W.createElement("div",{className:"rbt-loader spinner-border spinner-border-sm",role:"status"},W.createElement("span",{className:"sr-only visually-hidden"},i))};fC.propTypes=hC;const gA=fC;function yA(t){if(Array.isArray(t))return t}function vA(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i,c,S,F,nt=[],ut=!0,yt=!1;try{if(S=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;ut=!1}else for(;!(ut=(i=S.call(n)).done)&&(nt.push(i.value),nt.length!==e);ut=!0);}catch(_t){yt=!0,c=_t}finally{try{if(!ut&&n.return!=null&&(F=n.return(),Object(F)!==F))return}finally{if(yt)throw c}}return nt}}function dC(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function ib(t,e){if(t){if(typeof t=="string")return dC(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dC(t,e):void 0}}function bA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
472
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ug(t,e){return yA(t)||vA(t,e)||ib(t,e)||bA()}function Il(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ep(t){var e=Il(t).Element;return t instanceof e||t instanceof Element}function iu(t){var e=Il(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function u_(t){if(typeof ShadowRoot=="undefined")return!1;var e=Il(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var Dc=Math.max,ob=Math.min,cg=Math.round;function c_(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function pC(){return!/^((?!chrome|android).)*safari/i.test(c_())}function hg(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var i=t.getBoundingClientRect(),c=1,S=1;e&&iu(t)&&(c=t.offsetWidth>0&&cg(i.width)/t.offsetWidth||1,S=t.offsetHeight>0&&cg(i.height)/t.offsetHeight||1);var F=Ep(t)?Il(t):window,nt=F.visualViewport,ut=!pC()&&n,yt=(i.left+(ut&&nt?nt.offsetLeft:0))/c,_t=(i.top+(ut&&nt?nt.offsetTop:0))/S,zt=i.width/c,Ht=i.height/S;return{width:zt,height:Ht,top:_t,right:yt+zt,bottom:_t+Ht,left:yt,x:yt,y:_t}}function h_(t){var e=Il(t),n=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:n,scrollTop:i}}function mC(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function f_(t){return t===Il(t)||!iu(t)?h_(t):mC(t)}function Rc(t){return t?(t.nodeName||"").toLowerCase():null}function jf(t){return((Ep(t)?t.ownerDocument:t.document)||window.document).documentElement}function Gi(t){return hg(jf(t)).left+h_(t).scrollLeft}function Lc(t){return Il(t).getComputedStyle(t)}function as(t){var e=Lc(t),n=e.overflow,i=e.overflowX,c=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+c+i)}function Cp(t){var e=t.getBoundingClientRect(),n=cg(e.width)/t.offsetWidth||1,i=cg(e.height)/t.offsetHeight||1;return n!==1||i!==1}function xA(t,e,n){n===void 0&&(n=!1);var i=iu(e),c=iu(e)&&Cp(e),S=jf(e),F=hg(t,c,n),nt={scrollLeft:0,scrollTop:0},ut={x:0,y:0};return(i||!i&&!n)&&((Rc(e)!=="body"||as(S))&&(nt=f_(e)),iu(e)?(ut=hg(e,!0),ut.x+=e.clientLeft,ut.y+=e.clientTop):S&&(ut.x=Gi(S))),{x:F.left+nt.scrollLeft-ut.x,y:F.top+nt.scrollTop-ut.y,width:F.width,height:F.height}}function xy(t){var e=hg(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function jl(t){return Rc(t)==="html"?t:t.assignedSlot||t.parentNode||(u_(t)?t.host:null)||jf(t)}function Mp(t){return["html","body","#document"].indexOf(Rc(t))>=0?t.ownerDocument.body:iu(t)&&as(t)?t:Mp(jl(t))}function Ua(t,e){var n;e===void 0&&(e=[]);var i=Mp(t),c=i===((n=t.ownerDocument)==null?void 0:n.body),S=Il(i),F=c?[S].concat(S.visualViewport||[],as(i)?i:[]):i,nt=e.concat(F);return c?nt:nt.concat(Ua(jl(F)))}function Bf(t){return["table","td","th"].indexOf(Rc(t))>=0}function wy(t){return!iu(t)||Lc(t).position==="fixed"?null:t.offsetParent}function Ff(t){var e=/firefox/i.test(c_()),n=/Trident/i.test(c_());if(n&&iu(t)){var i=Lc(t);if(i.position==="fixed")return null}var c=jl(t);for(u_(c)&&(c=c.host);iu(c)&&["html","body"].indexOf(Rc(c))<0;){var S=Lc(c);if(S.transform!=="none"||S.perspective!=="none"||S.contain==="paint"||["transform","perspective"].indexOf(S.willChange)!==-1||e&&S.willChange==="filter"||e&&S.filter&&S.filter!=="none")return c;c=c.parentNode}return null}function _y(t){for(var e=Il(t),n=wy(t);n&&Bf(n)&&Lc(n).position==="static";)n=wy(n);return n&&(Rc(n)==="html"||Rc(n)==="body"&&Lc(n).position==="static")?e:n||Ff(t)||e}var qs="top",ou="bottom",au="right",hl="left",d_="auto",Sy=[qs,ou,au,hl],fg="start",zf="end",wA="clippingParents",p_="viewport",Uf="popper",m_="reference",ab=Sy.reduce(function(t,e){return t.concat([e+"-"+fg,e+"-"+zf])},[]),sb=[].concat(Sy,[d_]).reduce(function(t,e){return t.concat([e,e+"-"+fg,e+"-"+zf])},[]),gC="beforeRead",_A="read",SA="afterRead",EA="beforeMain",yC="main",vC="afterMain",g_="beforeWrite",Ey="write",bC="afterWrite",xC=[gC,_A,SA,EA,yC,vC,g_,Ey,bC];function Cy(t){var e=new Map,n=new Set,i=[];t.forEach(function(S){e.set(S.name,S)});function c(S){n.add(S.name);var F=[].concat(S.requires||[],S.requiresIfExists||[]);F.forEach(function(nt){if(!n.has(nt)){var ut=e.get(nt);ut&&c(ut)}}),i.push(S)}return t.forEach(function(S){n.has(S.name)||c(S)}),i}function y_(t){var e=Cy(t);return xC.reduce(function(n,i){return n.concat(e.filter(function(c){return c.phase===i}))},[])}function CA(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function MA(t){var e=t.reduce(function(n,i){var c=n[i.name];return n[i.name]=c?Object.assign({},c,i,{options:Object.assign({},c.options,i.options),data:Object.assign({},c.data,i.data)}):i,n},{});return Object.keys(e).map(function(n){return e[n]})}var lb={placement:"bottom",modifiers:[],strategy:"absolute"};function wC(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function _C(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,i=n===void 0?[]:n,c=e.defaultOptions,S=c===void 0?lb:c;return function(nt,ut,yt){yt===void 0&&(yt=S);var _t={placement:"bottom",orderedModifiers:[],options:Object.assign({},lb,S),modifiersData:{},elements:{reference:nt,popper:ut},attributes:{},styles:{}},zt=[],Ht=!1,Yt={state:_t,setOptions:function(de){var pe=typeof de=="function"?de(_t.options):de;ue(),_t.options=Object.assign({},S,_t.options,pe),_t.scrollParents={reference:Ep(nt)?Ua(nt):nt.contextElement?Ua(nt.contextElement):[],popper:Ua(ut)};var _e=y_(MA([].concat(i,_t.options.modifiers)));return _t.orderedModifiers=_e.filter(function(ge){return ge.enabled}),re(),Yt.update()},forceUpdate:function(){if(!Ht){var de=_t.elements,pe=de.reference,_e=de.popper;if(wC(pe,_e)){_t.rects={reference:xA(pe,_y(_e),_t.options.strategy==="fixed"),popper:xy(_e)},_t.reset=!1,_t.placement=_t.options.placement,_t.orderedModifiers.forEach(function(gn){return _t.modifiersData[gn.name]=Object.assign({},gn.data)});for(var ge=0;ge<_t.orderedModifiers.length;ge++){if(_t.reset===!0){_t.reset=!1,ge=-1;continue}var qe=_t.orderedModifiers[ge],De=qe.fn,$e=qe.options,Ye=$e===void 0?{}:$e,tn=qe.name;typeof De=="function"&&(_t=De({state:_t,options:Ye,name:tn,instance:Yt})||_t)}}}},update:CA(function(){return new Promise(function(oe){Yt.forceUpdate(),oe(_t)})}),destroy:function(){ue(),Ht=!0}};if(!wC(nt,ut))return Yt;Yt.setOptions(yt).then(function(oe){!Ht&&yt.onFirstUpdate&&yt.onFirstUpdate(oe)});function re(){_t.orderedModifiers.forEach(function(oe){var de=oe.name,pe=oe.options,_e=pe===void 0?{}:pe,ge=oe.effect;if(typeof ge=="function"){var qe=ge({state:_t,name:de,instance:Yt,options:_e}),De=function(){};zt.push(qe||De)}})}function ue(){zt.forEach(function(oe){return oe()}),zt=[]}return Yt}}var _O=null,ub={passive:!0};function kA(t){var e=t.state,n=t.instance,i=t.options,c=i.scroll,S=c===void 0?!0:c,F=i.resize,nt=F===void 0?!0:F,ut=Il(e.elements.popper),yt=[].concat(e.scrollParents.reference,e.scrollParents.popper);return S&&yt.forEach(function(_t){_t.addEventListener("scroll",n.update,ub)}),nt&&ut.addEventListener("resize",n.update,ub),function(){S&&yt.forEach(function(_t){_t.removeEventListener("scroll",n.update,ub)}),nt&&ut.removeEventListener("resize",n.update,ub)}}const SC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:kA,data:{}};function su(t){return t.split("-")[0]}function kp(t){return t.split("-")[1]}function cb(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function EC(t){var e=t.reference,n=t.element,i=t.placement,c=i?su(i):null,S=i?kp(i):null,F=e.x+e.width/2-n.width/2,nt=e.y+e.height/2-n.height/2,ut;switch(c){case qs:ut={x:F,y:e.y-n.height};break;case ou:ut={x:F,y:e.y+e.height};break;case au:ut={x:e.x+e.width,y:nt};break;case hl:ut={x:e.x-n.width,y:nt};break;default:ut={x:e.x,y:e.y}}var yt=c?cb(c):null;if(yt!=null){var _t=yt==="y"?"height":"width";switch(S){case fg:ut[yt]=ut[yt]-(e[_t]/2-n[_t]/2);break;case zf:ut[yt]=ut[yt]+(e[_t]/2-n[_t]/2);break;default:}}return ut}function CC(t){var e=t.state,n=t.name;e.modifiersData[n]=EC({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const MC={name:"popperOffsets",enabled:!0,phase:"read",fn:CC,data:{}};var kC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function TA(t,e){var n=t.x,i=t.y,c=e.devicePixelRatio||1;return{x:cg(n*c)/c||0,y:cg(i*c)/c||0}}function TC(t){var e,n=t.popper,i=t.popperRect,c=t.placement,S=t.variation,F=t.offsets,nt=t.position,ut=t.gpuAcceleration,yt=t.adaptive,_t=t.roundOffsets,zt=t.isFixed,Ht=F.x,Yt=Ht===void 0?0:Ht,re=F.y,ue=re===void 0?0:re,oe=typeof _t=="function"?_t({x:Yt,y:ue}):{x:Yt,y:ue};Yt=oe.x,ue=oe.y;var de=F.hasOwnProperty("x"),pe=F.hasOwnProperty("y"),_e=hl,ge=qs,qe=window;if(yt){var De=_y(n),$e="clientHeight",Ye="clientWidth";if(De===Il(n)&&(De=jf(n),Lc(De).position!=="static"&&nt==="absolute"&&($e="scrollHeight",Ye="scrollWidth")),De=De,c===qs||(c===hl||c===au)&&S===zf){ge=ou;var tn=zt&&De===qe&&qe.visualViewport?qe.visualViewport.height:De[$e];ue-=tn-i.height,ue*=ut?1:-1}if(c===hl||(c===qs||c===ou)&&S===zf){_e=au;var gn=zt&&De===qe&&qe.visualViewport?qe.visualViewport.width:De[Ye];Yt-=gn-i.width,Yt*=ut?1:-1}}var Cn=Object.assign({position:nt},yt&&kC),kn=_t===!0?TA({x:Yt,y:ue},Il(n)):{x:Yt,y:ue};if(Yt=kn.x,ue=kn.y,ut){var Zn;return Object.assign({},Cn,(Zn={},Zn[ge]=pe?"0":"",Zn[_e]=de?"0":"",Zn.transform=(qe.devicePixelRatio||1)<=1?"translate("+Yt+"px, "+ue+"px)":"translate3d("+Yt+"px, "+ue+"px, 0)",Zn))}return Object.assign({},Cn,(e={},e[ge]=pe?ue+"px":"",e[_e]=de?Yt+"px":"",e.transform="",e))}function AC(t){var e=t.state,n=t.options,i=n.gpuAcceleration,c=i===void 0?!0:i,S=n.adaptive,F=S===void 0?!0:S,nt=n.roundOffsets,ut=nt===void 0?!0:nt,yt={placement:su(e.placement),variation:kp(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:c,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,TC(Object.assign({},yt,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:F,roundOffsets:ut})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,TC(Object.assign({},yt,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:ut})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const v_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:AC,data:{}};function b_(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var i=e.styles[n]||{},c=e.attributes[n]||{},S=e.elements[n];!iu(S)||!Rc(S)||(Object.assign(S.style,i),Object.keys(c).forEach(function(F){var nt=c[F];nt===!1?S.removeAttribute(F):S.setAttribute(F,nt===!0?"":nt)}))})}function PC(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(i){var c=e.elements[i],S=e.attributes[i]||{},F=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:n[i]),nt=F.reduce(function(ut,yt){return ut[yt]="",ut},{});!iu(c)||!Rc(c)||(Object.assign(c.style,nt),Object.keys(S).forEach(function(ut){c.removeAttribute(ut)}))})}}const lu={name:"applyStyles",enabled:!0,phase:"write",fn:b_,effect:PC,requires:["computeStyles"]};function uu(t,e,n){var i=su(t),c=[hl,qs].indexOf(i)>=0?-1:1,S=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,F=S[0],nt=S[1];return F=F||0,nt=(nt||0)*c,[hl,au].indexOf(i)>=0?{x:nt,y:F}:{x:F,y:nt}}function x_(t){var e=t.state,n=t.options,i=t.name,c=n.offset,S=c===void 0?[0,0]:c,F=sb.reduce(function(_t,zt){return _t[zt]=uu(zt,e.rects,S),_t},{}),nt=F[e.placement],ut=nt.x,yt=nt.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=ut,e.modifiersData.popperOffsets.y+=yt),e.modifiersData[i]=F}const OC={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:x_};var NC={left:"right",right:"left",bottom:"top",top:"bottom"};function hb(t){return t.replace(/left|right|bottom|top/g,function(e){return NC[e]})}var AA={start:"end",end:"start"};function Sh(t){return t.replace(/start|end/g,function(e){return AA[e]})}function fb(t,e){var n=Il(t),i=jf(t),c=n.visualViewport,S=i.clientWidth,F=i.clientHeight,nt=0,ut=0;if(c){S=c.width,F=c.height;var yt=pC();(yt||!yt&&e==="fixed")&&(nt=c.offsetLeft,ut=c.offsetTop)}return{width:S,height:F,x:nt+Gi(t),y:ut}}function db(t){var e,n=jf(t),i=h_(t),c=(e=t.ownerDocument)==null?void 0:e.body,S=Dc(n.scrollWidth,n.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),F=Dc(n.scrollHeight,n.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),nt=-i.scrollLeft+Gi(t),ut=-i.scrollTop;return Lc(c||n).direction==="rtl"&&(nt+=Dc(n.clientWidth,c?c.clientWidth:0)-S),{width:S,height:F,x:nt,y:ut}}function DC(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&u_(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function pb(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function PA(t,e){var n=hg(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function w_(t,e,n){return e===p_?pb(fb(t,n)):Ep(e)?PA(e,n):pb(db(jf(t)))}function OA(t){var e=Ua(jl(t)),n=["absolute","fixed"].indexOf(Lc(t).position)>=0,i=n&&iu(t)?_y(t):t;return Ep(i)?e.filter(function(c){return Ep(c)&&DC(c,i)&&Rc(c)!=="body"}):[]}function RC(t,e,n,i){var c=e==="clippingParents"?OA(t):[].concat(e),S=[].concat(c,[n]),F=S[0],nt=S.reduce(function(ut,yt){var _t=w_(t,yt,i);return ut.top=Dc(_t.top,ut.top),ut.right=ob(_t.right,ut.right),ut.bottom=ob(_t.bottom,ut.bottom),ut.left=Dc(_t.left,ut.left),ut},w_(t,F,i));return nt.width=nt.right-nt.left,nt.height=nt.bottom-nt.top,nt.x=nt.left,nt.y=nt.top,nt}function LC(){return{top:0,right:0,bottom:0,left:0}}function My(t){return Object.assign({},LC(),t)}function mb(t,e){return e.reduce(function(n,i){return n[i]=t,n},{})}function ky(t,e){e===void 0&&(e={});var n=e,i=n.placement,c=i===void 0?t.placement:i,S=n.strategy,F=S===void 0?t.strategy:S,nt=n.boundary,ut=nt===void 0?wA:nt,yt=n.rootBoundary,_t=yt===void 0?p_:yt,zt=n.elementContext,Ht=zt===void 0?Uf:zt,Yt=n.altBoundary,re=Yt===void 0?!1:Yt,ue=n.padding,oe=ue===void 0?0:ue,de=My(typeof oe!="number"?oe:mb(oe,Sy)),pe=Ht===Uf?m_:Uf,_e=t.rects.popper,ge=t.elements[re?pe:Ht],qe=RC(Ep(ge)?ge:ge.contextElement||jf(t.elements.popper),ut,_t,F),De=hg(t.elements.reference),$e=EC({reference:De,element:_e,strategy:"absolute",placement:c}),Ye=pb(Object.assign({},_e,$e)),tn=Ht===Uf?Ye:De,gn={top:qe.top-tn.top+de.top,bottom:tn.bottom-qe.bottom+de.bottom,left:qe.left-tn.left+de.left,right:tn.right-qe.right+de.right},Cn=t.modifiersData.offset;if(Ht===Uf&&Cn){var kn=Cn[c];Object.keys(gn).forEach(function(Zn){var fn=[au,ou].indexOf(Zn)>=0?1:-1,jn=[qs,ou].indexOf(Zn)>=0?"y":"x";gn[Zn]+=kn[jn]*fn})}return gn}function __(t,e){e===void 0&&(e={});var n=e,i=n.placement,c=n.boundary,S=n.rootBoundary,F=n.padding,nt=n.flipVariations,ut=n.allowedAutoPlacements,yt=ut===void 0?sb:ut,_t=kp(i),zt=_t?nt?ab:ab.filter(function(re){return kp(re)===_t}):Sy,Ht=zt.filter(function(re){return yt.indexOf(re)>=0});Ht.length===0&&(Ht=zt);var Yt=Ht.reduce(function(re,ue){return re[ue]=ky(t,{placement:ue,boundary:c,rootBoundary:S,padding:F})[su(ue)],re},{});return Object.keys(Yt).sort(function(re,ue){return Yt[re]-Yt[ue]})}function NA(t){if(su(t)===d_)return[];var e=hb(t);return[Sh(t),e,Sh(e)]}function S_(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var c=n.mainAxis,S=c===void 0?!0:c,F=n.altAxis,nt=F===void 0?!0:F,ut=n.fallbackPlacements,yt=n.padding,_t=n.boundary,zt=n.rootBoundary,Ht=n.altBoundary,Yt=n.flipVariations,re=Yt===void 0?!0:Yt,ue=n.allowedAutoPlacements,oe=e.options.placement,de=su(oe),pe=de===oe,_e=ut||(pe||!re?[hb(oe)]:NA(oe)),ge=[oe].concat(_e).reduce(function(ai,Ei){return ai.concat(su(Ei)===d_?__(e,{placement:Ei,boundary:_t,rootBoundary:zt,padding:yt,flipVariations:re,allowedAutoPlacements:ue}):Ei)},[]),qe=e.rects.reference,De=e.rects.popper,$e=new Map,Ye=!0,tn=ge[0],gn=0;gn<ge.length;gn++){var Cn=ge[gn],kn=su(Cn),Zn=kp(Cn)===fg,fn=[qs,ou].indexOf(kn)>=0,jn=fn?"width":"height",On=ky(e,{placement:Cn,boundary:_t,rootBoundary:zt,altBoundary:Ht,padding:yt}),Vn=fn?Zn?au:hl:Zn?ou:qs;qe[jn]>De[jn]&&(Vn=hb(Vn));var wr=hb(Vn),Pr=[];if(S&&Pr.push(On[kn]<=0),nt&&Pr.push(On[Vn]<=0,On[wr]<=0),Pr.every(function(ai){return ai})){tn=Cn,Ye=!1;break}$e.set(Cn,Pr)}if(Ye)for(var _r=re?3:1,Ur=function(Ei){var Zi=ge.find(function($r){var Fi=$e.get($r);if(Fi)return Fi.slice(0,Ei).every(function(qo){return qo})});if(Zi)return tn=Zi,"break"},Hr=_r;Hr>0;Hr--){var Li=Ur(Hr);if(Li==="break")break}e.placement!==tn&&(e.modifiersData[i]._skip=!0,e.placement=tn,e.reset=!0)}}const IC={name:"flip",enabled:!0,phase:"main",fn:S_,requiresIfExists:["offset"],data:{_skip:!1}};function E_(t){return t==="x"?"y":"x"}function dg(t,e,n){return Dc(t,ob(e,n))}function DA(t,e,n){var i=dg(t,e,n);return i>n?n:i}function jC(t){var e=t.state,n=t.options,i=t.name,c=n.mainAxis,S=c===void 0?!0:c,F=n.altAxis,nt=F===void 0?!1:F,ut=n.boundary,yt=n.rootBoundary,_t=n.altBoundary,zt=n.padding,Ht=n.tether,Yt=Ht===void 0?!0:Ht,re=n.tetherOffset,ue=re===void 0?0:re,oe=ky(e,{boundary:ut,rootBoundary:yt,padding:zt,altBoundary:_t}),de=su(e.placement),pe=kp(e.placement),_e=!pe,ge=cb(de),qe=E_(ge),De=e.modifiersData.popperOffsets,$e=e.rects.reference,Ye=e.rects.popper,tn=typeof ue=="function"?ue(Object.assign({},e.rects,{placement:e.placement})):ue,gn=typeof tn=="number"?{mainAxis:tn,altAxis:tn}:Object.assign({mainAxis:0,altAxis:0},tn),Cn=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,kn={x:0,y:0};if(De){if(S){var Zn,fn=ge==="y"?qs:hl,jn=ge==="y"?ou:au,On=ge==="y"?"height":"width",Vn=De[ge],wr=Vn+oe[fn],Pr=Vn-oe[jn],_r=Yt?-Ye[On]/2:0,Ur=pe===fg?$e[On]:Ye[On],Hr=pe===fg?-Ye[On]:-$e[On],Li=e.elements.arrow,ai=Yt&&Li?xy(Li):{width:0,height:0},Ei=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:LC(),Zi=Ei[fn],$r=Ei[jn],Fi=dg(0,$e[On],ai[On]),qo=_e?$e[On]/2-_r-Fi-Zi-gn.mainAxis:Ur-Fi-Zi-gn.mainAxis,Ea=_e?-$e[On]/2+_r+Fi+$r+gn.mainAxis:Hr+Fi+$r+gn.mainAxis,zo=e.elements.arrow&&_y(e.elements.arrow),$o=zo?ge==="y"?zo.clientTop||0:zo.clientLeft||0:0,Da=(Zn=Cn==null?void 0:Cn[ge])!=null?Zn:0,Qu=Vn+qo-Da-$o,yu=Vn+Ea-Da,Up=dg(Yt?ob(wr,Qu):wr,Vn,Yt?Dc(Pr,yu):Pr);De[ge]=Up,kn[ge]=Up-Vn}if(nt){var Bi,Ca=ge==="x"?qs:hl,Hp=ge==="x"?ou:au,Rs=De[qe],Xb=qe==="y"?"height":"width",Ik=Rs+oe[Ca],Qf=Rs-oe[Hp],Vp=[qs,hl].indexOf(de)!==-1,N2=(Bi=Cn==null?void 0:Cn[qe])!=null?Bi:0,Gb=Vp?Ik:Rs-$e[Xb]-Ye[Xb]-N2+gn.altAxis,Lh=Vp?Rs+$e[Xb]+Ye[Xb]-N2-gn.altAxis:Qf,zc=Yt&&Vp?DA(Gb,Rs,Lh):dg(Yt?Gb:Ik,Rs,Yt?Lh:Qf);De[qe]=zc,kn[qe]=zc-Rs}e.modifiersData[i]=kn}}const BC={name:"preventOverflow",enabled:!0,phase:"main",fn:jC,requiresIfExists:["offset"]};var FC=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,My(typeof e!="number"?e:mb(e,Sy))};function RA(t){var e,n=t.state,i=t.name,c=t.options,S=n.elements.arrow,F=n.modifiersData.popperOffsets,nt=su(n.placement),ut=cb(nt),yt=[hl,au].indexOf(nt)>=0,_t=yt?"height":"width";if(!(!S||!F)){var zt=FC(c.padding,n),Ht=xy(S),Yt=ut==="y"?qs:hl,re=ut==="y"?ou:au,ue=n.rects.reference[_t]+n.rects.reference[ut]-F[ut]-n.rects.popper[_t],oe=F[ut]-n.rects.reference[ut],de=_y(S),pe=de?ut==="y"?de.clientHeight||0:de.clientWidth||0:0,_e=ue/2-oe/2,ge=zt[Yt],qe=pe-Ht[_t]-zt[re],De=pe/2-Ht[_t]/2+_e,$e=dg(ge,De,qe),Ye=ut;n.modifiersData[i]=(e={},e[Ye]=$e,e.centerOffset=$e-De,e)}}function zC(t){var e=t.state,n=t.options,i=n.element,c=i===void 0?"[data-popper-arrow]":i;c!=null&&(typeof c=="string"&&(c=e.elements.popper.querySelector(c),!c)||DC(e.elements.popper,c)&&(e.elements.arrow=c))}const UC={name:"arrow",enabled:!0,phase:"main",fn:RA,effect:zC,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function C_(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function M_(t){return[qs,au,ou,hl].some(function(e){return t[e]>=0})}function HC(t){var e=t.state,n=t.name,i=e.rects.reference,c=e.rects.popper,S=e.modifiersData.preventOverflow,F=ky(e,{elementContext:"reference"}),nt=ky(e,{altBoundary:!0}),ut=C_(F,i),yt=C_(nt,c,S),_t=M_(ut),zt=M_(yt);e.modifiersData[n]={referenceClippingOffsets:ut,popperEscapeOffsets:yt,isReferenceHidden:_t,hasPopperEscaped:zt},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":_t,"data-popper-escaped":zt})}const gb={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:HC};var yb=[SC,MC,v_,lu,OC,IC,BC,UC,gb],VC=_C({defaultModifiers:yb}),WC=Fn(2169),LA=Fn.n(WC),SO=function(e){return Array.isArray(e)?e[0]:e},YC=function(e){if(typeof e=="function"){for(var n=arguments.length,i=new Array(n>1?n-1:0),c=1;c<n;c++)i[c-1]=arguments[c];return e.apply(void 0,i)}},IA=function(e,n){if(typeof e=="function")return YC(e,n);e!=null&&(e.current=n)},qC=function(e){return e.reduce(function(n,i){var c=i[0],S=i[1];return n[c]=S,n},{})},Ty=typeof window!="undefined"&&window.document&&window.document.createElement?W.useLayoutEffect:W.useEffect,jA=[],BA=function(e,n,i){i===void 0&&(i={});var c=W.useRef(null),S={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||jA},F=W.useState({styles:{popper:{position:S.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),nt=F[0],ut=F[1],yt=W.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(Yt){var re=Yt.state,ue=Object.keys(re.elements);_.flushSync(function(){ut({styles:qC(ue.map(function(oe){return[oe,re.styles[oe]||{}]})),attributes:qC(ue.map(function(oe){return[oe,re.attributes[oe]]}))})})},requires:["computeStyles"]}},[]),_t=W.useMemo(function(){var Ht={onFirstUpdate:S.onFirstUpdate,placement:S.placement,strategy:S.strategy,modifiers:[].concat(S.modifiers,[yt,{name:"applyStyles",enabled:!1}])};return LA()(c.current,Ht)?c.current||Ht:(c.current=Ht,Ht)},[S.onFirstUpdate,S.placement,S.strategy,S.modifiers,yt]),zt=W.useRef();return Ty(function(){zt.current&&zt.current.setOptions(_t)},[_t]),Ty(function(){if(!(e==null||n==null)){var Ht=i.createPopper||VC,Yt=Ht(e,n,_t);return zt.current=Yt,function(){Yt.destroy(),zt.current=null}}},[e,n,i.createPopper]),{state:zt.current?zt.current.state:null,styles:nt.styles,attributes:nt.attributes,update:zt.current?zt.current.update:null,forceUpdate:zt.current?zt.current.forceUpdate:null}};function $C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),n.push.apply(n,i)}return n}function Tp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$C(Object(n),!0).forEach(function(i){bi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$C(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var pg={enabled:!0,fn:function(e){e.state.styles.popper.width="".concat(e.state.rects.reference.width,"px")},name:"setPopperWidth",phase:"write"};function FA(t){var e=[{enabled:!!t.flip,name:"flip"},{name:"preventOverflow",options:{mainAxis:!1}}];return t.align!=="right"&&t.align!=="left"&&e.push(pg),e}function zA(t){var e=t.align==="right"?"end":"start",n=t.dropup?"top":"bottom";return"".concat(n,"-").concat(e)}function UA(t,e){var n=(0,W.useState)(null),i=ug(n,2),c=i[0],S=i[1],F=BA(t,c,{modifiers:FA(e),placement:zA(e),strategy:e.positionFixed?"fixed":"absolute"}),nt=F.attributes,ut=F.styles,yt=F.forceUpdate,_t=t==null?void 0:t.offsetHeight;return(0,W.useEffect)(function(){yt&&yt()},[_t]),Tp(Tp({},nt.popper),{},{innerRef:S,style:ut.popper})}const HA=UA;var VA=["referenceElement","isMenuShown"],WA=typeof Element=="undefined"?nu:Element,XC={align:Rn().oneOf(xE),children:Rn().func.isRequired,dropup:Rn().bool,flip:Rn().bool,isMenuShown:Rn().bool,positionFixed:Rn().bool,referenceElement:Rn().instanceOf(WA)},GC=function(e){var n=e.referenceElement,i=e.isMenuShown,c=vs(e,VA),S=HA(n,c);return i?c.children(S):null};GC.propTypes=XC;const KC=GC;function Ay(t,e){if(t.contains)return t.contains(e);if(t.compareDocumentPosition)return t===e||!!(t.compareDocumentPosition(e)&16)}const k_=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var T_=!1,A_=!1;try{var vb={get passive(){return T_=!0},get once(){return A_=T_=!0}};k_&&(window.addEventListener("test",vb,vb),window.removeEventListener("test",vb,!0))}catch(t){}function YA(t,e,n,i){if(i&&typeof i!="boolean"&&!A_){var c=i.once,S=i.capture,F=n;!A_&&c&&(F=n.__once||function nt(ut){this.removeEventListener(e,nt,S),n.call(this,ut)},n.__once=F),t.addEventListener(e,F,T_?i:S)}t.addEventListener(e,n,i)}const qA=YA;function $A(t,e,n,i){var c=i&&typeof i!="boolean"?i.capture:i;t.removeEventListener(e,n,c),n.__once&&t.removeEventListener(e,n.__once,c)}const XA=$A;function GA(t,e,n,i){return qA(t,e,n,i),function(){XA(t,e,n,i)}}const Ku=GA;function KA(t){const e=(0,W.useRef)(t);return(0,W.useEffect)(()=>{e.current=t},[t]),e}const ZC=KA;function P_(t){const e=ZC(t);return(0,W.useCallback)(function(...n){return e.current&&e.current(...n)},[e])}function Py(t){return t&&t.ownerDocument||document}function O_(t){return t&&"setState"in t?_.findDOMNode(t):t!=null?t:null}const bb=function(t){return Py(O_(t))};var Oy=27,mg=function(){};function QC(t){return t.button===0}function JC(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var gg=function(e){return e&&("current"in e?e.current:e)};function Ny(t,e,n){var i=n===void 0?{}:n,c=i.disabled,S=i.clickTrigger,F=S===void 0?"click":S,nt=(0,W.useRef)(!1),ut=e||mg,yt=(0,W.useCallback)(function(Ht){var Yt,re=gg(t);wp()(!!re,"RootClose captured a close event but does not have a ref to compare it to. useRootClose(), should be passed a ref that resolves to a DOM node"),nt.current=!re||JC(Ht)||!QC(Ht)||!!Ay(re,(Yt=Ht.composedPath==null?void 0:Ht.composedPath()[0])!=null?Yt:Ht.target)},[t]),_t=P_(function(Ht){nt.current||ut(Ht)}),zt=P_(function(Ht){Ht.keyCode===Oy&&ut(Ht)});(0,W.useEffect)(function(){if(!(c||t==null)){var Ht=window.event,Yt=bb(gg(t)),re=Ku(Yt,F,yt,!0),ue=Ku(Yt,F,function(pe){if(pe===Ht){Ht=void 0;return}_t(pe)}),oe=Ku(Yt,"keyup",function(pe){if(pe===Ht){Ht=void 0;return}zt(pe)}),de=[];return"ontouchstart"in Yt.documentElement&&(de=[].slice.call(Yt.body.children).map(function(pe){return Ku(pe,"mousemove",mg)})),function(){re(),ue(),oe(),de.forEach(function(pe){return pe()})}}},[t,c,F,yt,_t,zt])}const Dy=Ny;function ZA(t,e){var n=(0,W.useRef)(null);return Dy(n.current,t,e),n}const QA=ZA;var JA=["children","onRootClose"];function tP(t){var e=t.children,n=t.onRootClose,i=vs(t,JA),c=QA(n,i);return e(c)}const eP=tP;var tM=["onBlur","onClick","onFocus","onRemove","option"];function eM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),n.push.apply(n,i)}return n}function nM(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?eM(Object(n),!0).forEach(function(i){bi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eM(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var nP={onBlur:Rn().func,onClick:Rn().func,onFocus:Rn().func,onRemove:Rn().func,option:sg.isRequired};function N_(t){var e=t.onBlur,n=t.onClick,i=t.onFocus,c=t.onRemove,S=t.option,F=vs(t,tM),nt=(0,W.useState)(!1),ut=ug(nt,2),yt=ut[0],_t=ut[1],zt=(0,W.useState)(null),Ht=ug(zt,2),Yt=Ht[0],re=Ht[1],ue=function(qe){_t(!1),e&&e(qe)},oe=function(qe){_t(!0),n&&n(qe)},de=function(qe){_t(!0),i&&i(qe)},pe=function(){c&&c(S)},_e=function(qe){qe.key==="Backspace"&&yt&&(qe.preventDefault(),pe())};return Dy(Yt,ue,nM(nM({},F),{},{disabled:!yt})),{active:yt,onBlur:ue,onClick:oe,onFocus:de,onKeyDown:_e,onRemove:cl(c)?pe:void 0,ref:re}}function rM(t){warn(!1,"Warning: `withToken` is deprecated and will be removed in the next major version. Use `useToken` instead.");var e="withToken(".concat(getDisplayName(t),")"),n=function(c){return React.createElement(t,_extends({},c,N_(c)))};return n.displayName=e,n.propTypes=nP,n}var rP=["active","children","className","onRemove","tabIndex"],yg=["children","option","readOnly"],vg=["ref"];function D_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),n.push.apply(n,i)}return n}function iM(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?D_(Object(n),!0).forEach(function(i){bi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D_(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var oM=(0,W.forwardRef)(function(t,e){var n=t.active,i=t.children,c=t.className,S=t.onRemove,F=t.tabIndex,nt=vs(t,rP);return W.createElement("div",_a({},nt,{className:os()("rbt-token","rbt-token-removeable",{"rbt-token-active":!!n},c),ref:e,tabIndex:F||0}),i,W.createElement(cC,{className:"rbt-token-remove-button",label:"Remove",onClick:S,tabIndex:-1}))}),R_=function(e){var n=e.children,i=e.className,c=e.disabled,S=e.href,F=os()("rbt-token",{"rbt-token-disabled":c},i);return S&&!c?W.createElement("a",{className:F,href:S},n):W.createElement("div",{className:F},n)},iP=function(e){var n=e.children,i=e.option,c=e.readOnly,S=vs(e,yg),F=N_(iM(iM({},S),{},{option:i})),nt=F.ref,ut=vs(F,vg),yt=W.createElement("div",{className:"rbt-token-label"},n);return!S.disabled&&!c&&cl(ut.onRemove)?W.createElement(oM,_a({},S,ut,{ref:nt}),yt):W.createElement(R_,S,yt)};const oP=iP;function Ry(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return n&&(n=n.replace(n[0],n[0].toUpperCase())),["Top","Right","Bottom","Left"].map(function(i){return t["".concat(e).concat(i).concat(n)]}).join(" ")}function aP(t,e){var n=window.getComputedStyle(t);e.style.borderStyle=Ry(n,"border","style"),e.style.borderWidth=Ry(n,"border","width"),e.style.fontSize=n.fontSize,e.style.fontWeight=n.fontWeight,e.style.height=n.height,e.style.lineHeight=n.lineHeight,e.style.margin=Ry(n,"margin"),e.style.padding=Ry(n,"padding")}var Fo=function(){var e=JE(),n=e.hintText,i=e.inputNode,c=(0,W.useRef)(null);return(0,W.useEffect)(function(){var S=function(){c.current&&i&&(c.current.scrollLeft=i.scrollLeft)};return i==null||i.addEventListener("scroll",S),function(){i==null||i.removeEventListener("scroll",S)}},[i]),(0,W.useEffect)(function(){i&&c.current&&aP(i,c.current)}),{hintRef:c,hintText:n}},sP=function(e){var n=e.children,i=e.className,c=Fo(),S=c.hintRef,F=c.hintText;return W.createElement("div",{className:i,style:{display:"flex",flex:1,height:"100%",position:"relative"}},n,W.createElement("input",{"aria-hidden":!0,className:"rbt-input-hint",ref:S,readOnly:!0,style:{backgroundColor:"transparent",borderColor:"transparent",boxShadow:"none",color:"rgba(0, 0, 0, 0.54)",left:0,pointerEvents:"none",position:"absolute",top:0,width:"100%"},tabIndex:-1,value:F}))};const Ap=sP;var Bl=(0,W.forwardRef)(function(t,e){return W.createElement("input",_a({},t,{className:os()("rbt-input-main",t.className),ref:e}))});const bg=Bl;var Os=["children","className","inputClassName","inputRef","referenceElementRef","selected"];function lP(t){var e=W.useRef(null),n=W.useRef(null),i=zE(t),c=i.children,S=i.className,F=i.inputClassName,nt=i.inputRef,ut=i.referenceElementRef,yt=i.selected,_t=vs(i,Os);function zt(re){n.current=re,t.inputRef(re)}function Ht(re){if(t.disabled){re.currentTarget.blur();return}var ue=n.current;!ue||re.currentTarget.contains(re.target)&&re.currentTarget!==re.target||(Q1(ue)&&(ue.selectionStart=ue.value.length),ue.focus())}function Yt(re){if(re.key==="Backspace"&&yt.length&&!t.value){var ue;re.preventDefault();var oe=(ue=e.current)===null||ue===void 0?void 0:ue.children;if(oe!=null&&oe.length){var de=oe[oe.length-2];de==null||de.focus()}}t.onKeyDown&&t.onKeyDown(re)}return W.createElement("div",{className:os()("rbt-input-multi",{disabled:t.disabled},S),onClick:Ht,onFocus:Ht,ref:ut,tabIndex:-1},W.createElement("div",{className:"rbt-input-wrapper",ref:e},c,W.createElement(Ap,null,W.createElement(bg,_a({},_t,{className:F,onKeyDown:Yt,ref:zt,style:{backgroundColor:"transparent",border:0,boxShadow:"none",cursor:"inherit",outline:"none",padding:0,width:"100%",zIndex:1}})))))}const uP=lP;var L_=["inputRef","referenceElementRef"],cP=function(e){var n=e.inputRef,i=e.referenceElementRef,c=vs(e,L_);return W.createElement(Ap,null,W.createElement(bg,_a({},zE(c),{ref:function(F){n(F),i(F)}})))};const xb=cP;var hP={children:Rn().string.isRequired,highlightClassName:Rn().string,search:Rn().string.isRequired},Ic=function(e){var n=e.children,i=e.highlightClassName,c=i===void 0?"rbt-highlight-text":i,S=e.search;if(!S||!n)return W.createElement(W.Fragment,null,n);for(var F=0,nt=n,ut=[];nt;){var yt=Zw(nt,S);if(!yt){ut.push(nt);break}var _t=nt.slice(0,yt.start);_t&&ut.push(_t);var zt=nt.slice(yt.start,yt.end);ut.push(W.createElement("mark",{className:c,key:F},zt)),F+=1,nt=nt.slice(yt.end)}return W.createElement(W.Fragment,null,ut)};Ic.propTypes=hP;const Ly=Ic,I_=t=>typeof t=="object"&&t!=null&&t.nodeType===1,wb=(t,e)=>(!e||t!=="hidden")&&t!=="visible"&&t!=="clip",Pp=(t,e)=>{if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){const n=getComputedStyle(t,null);return wb(n.overflowY,e)||wb(n.overflowX,e)||(i=>{const c=(S=>{if(!S.ownerDocument||!S.ownerDocument.defaultView)return null;try{return S.ownerDocument.defaultView.frameElement}catch(F){return null}})(i);return!!c&&(c.clientHeight<i.scrollHeight||c.clientWidth<i.scrollWidth)})(t)}return!1},_b=(t,e,n,i,c,S,F,nt)=>S<t&&F>e||S>t&&F<e?0:S<=t&&nt<=n||F>=e&&nt>=n?S-t-i:F>e&&nt<n||S<t&&nt>n?F-e+c:0,fP=t=>{const e=t.parentElement;return e==null?t.getRootNode().host||null:e},j_=(t,e)=>{var n,i,c,S;if(typeof document=="undefined")return[];const{scrollMode:F,block:nt,inline:ut,boundary:yt,skipOverflowHiddenElements:_t}=e,zt=typeof yt=="function"?yt:On=>On!==yt;if(!I_(t))throw new TypeError("Invalid target");const Ht=document.scrollingElement||document.documentElement,Yt=[];let re=t;for(;I_(re)&&zt(re);){if(re=fP(re),re===Ht){Yt.push(re);break}re!=null&&re===document.body&&Pp(re)&&!Pp(document.documentElement)||re!=null&&Pp(re,_t)&&Yt.push(re)}const ue=(i=(n=window.visualViewport)==null?void 0:n.width)!=null?i:innerWidth,oe=(S=(c=window.visualViewport)==null?void 0:c.height)!=null?S:innerHeight,{scrollX:de,scrollY:pe}=window,{height:_e,width:ge,top:qe,right:De,bottom:$e,left:Ye}=t.getBoundingClientRect(),{top:tn,right:gn,bottom:Cn,left:kn}=(On=>{const Vn=window.getComputedStyle(On);return{top:parseFloat(Vn.scrollMarginTop)||0,right:parseFloat(Vn.scrollMarginRight)||0,bottom:parseFloat(Vn.scrollMarginBottom)||0,left:parseFloat(Vn.scrollMarginLeft)||0}})(t);let Zn=nt==="start"||nt==="nearest"?qe-tn:nt==="end"?$e+Cn:qe+_e/2-tn+Cn,fn=ut==="center"?Ye+ge/2-kn+gn:ut==="end"?De+gn:Ye-kn;const jn=[];for(let On=0;On<Yt.length;On++){const Vn=Yt[On],{height:wr,width:Pr,top:_r,right:Ur,bottom:Hr,left:Li}=Vn.getBoundingClientRect();if(F==="if-needed"&&qe>=0&&Ye>=0&&$e<=oe&&De<=ue&&qe>=_r&&$e<=Hr&&Ye>=Li&&De<=Ur)return jn;const ai=getComputedStyle(Vn),Ei=parseInt(ai.borderLeftWidth,10),Zi=parseInt(ai.borderTopWidth,10),$r=parseInt(ai.borderRightWidth,10),Fi=parseInt(ai.borderBottomWidth,10);let qo=0,Ea=0;const zo="offsetWidth"in Vn?Vn.offsetWidth-Vn.clientWidth-Ei-$r:0,$o="offsetHeight"in Vn?Vn.offsetHeight-Vn.clientHeight-Zi-Fi:0,Da="offsetWidth"in Vn?Vn.offsetWidth===0?0:Pr/Vn.offsetWidth:0,Qu="offsetHeight"in Vn?Vn.offsetHeight===0?0:wr/Vn.offsetHeight:0;if(Ht===Vn)qo=nt==="start"?Zn:nt==="end"?Zn-oe:nt==="nearest"?_b(pe,pe+oe,oe,Zi,Fi,pe+Zn,pe+Zn+_e,_e):Zn-oe/2,Ea=ut==="start"?fn:ut==="center"?fn-ue/2:ut==="end"?fn-ue:_b(de,de+ue,ue,Ei,$r,de+fn,de+fn+ge,ge),qo=Math.max(0,qo+pe),Ea=Math.max(0,Ea+de);else{qo=nt==="start"?Zn-_r-Zi:nt==="end"?Zn-Hr+Fi+$o:nt==="nearest"?_b(_r,Hr,wr,Zi,Fi+$o,Zn,Zn+_e,_e):Zn-(_r+wr/2)+$o/2,Ea=ut==="start"?fn-Li-Ei:ut==="center"?fn-(Li+Pr/2)+zo/2:ut==="end"?fn-Ur+$r+zo:_b(Li,Ur,Pr,Ei,$r+zo,fn,fn+ge,ge);const{scrollLeft:yu,scrollTop:Up}=Vn;qo=Qu===0?0:Math.max(0,Math.min(Up+qo/Qu,Vn.scrollHeight-wr/Qu+$o)),Ea=Da===0?0:Math.max(0,Math.min(yu+Ea/Da,Vn.scrollWidth-Pr/Da+zo)),Zn+=Up-qo,fn+=yu-Ea}jn.push({el:Vn,top:qo,left:Ea})}return jn},dP=t=>t===!1?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&Object.keys(e).length!==0)(t)?t:{block:"start",inline:"nearest"};function pP(t,e){if(!t.isConnected||!(c=>{let S=c;for(;S&&S.parentNode;){if(S.parentNode===document)return!0;S=S.parentNode instanceof ShadowRoot?S.parentNode.host:S.parentNode}return!1})(t))return;const n=(c=>{const S=window.getComputedStyle(c);return{top:parseFloat(S.scrollMarginTop)||0,right:parseFloat(S.scrollMarginRight)||0,bottom:parseFloat(S.scrollMarginBottom)||0,left:parseFloat(S.scrollMarginLeft)||0}})(t);if((c=>typeof c=="object"&&typeof c.behavior=="function")(e))return e.behavior(j_(t,e));const i=typeof e=="boolean"||e==null?void 0:e.behavior;for(const{el:c,top:S,left:F}of j_(t,dP(e))){const nt=S-n.top+n.bottom,ut=F-n.left+n.right;c.scroll({top:nt,left:ut,behavior:i})}}var mP=["label","onClick","option","position"];function aM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?aM(Object(n),!0).forEach(function(i){bi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):aM(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var a={option:sg.isRequired,position:Rn().number};function A(t){var e=t.label,n=t.onClick,i=t.option,c=t.position,S=vs(t,mP),F=JE(),nt=F.activeIndex,ut=F.id,yt=F.isOnlyResult,_t=F.onActiveItemChange,zt=F.onInitialItemChange,Ht=F.onMenuItemClick,Yt=F.setItem,re=(0,W.useRef)(null);(0,W.useEffect)(function(){c===0&&zt(i)}),(0,W.useEffect)(function(){if(c===nt){_t(i);var de=re.current;de&&pP(de,{boundary:de.parentNode,scrollMode:"if-needed"})}},[nt,_t,i,c]);var ue=(0,W.useCallback)(function(de){Ht(i,de),n&&n(de)},[n,Ht,i]),oe=yt||nt===c;return Yt(i,c),r(r({},S),{},{active:oe,"aria-label":e,"aria-selected":oe,id:PE(ut,c),onClick:ue,onMouseDown:eb,ref:re,role:"option"})}function H(t){warn(!1,"Warning: `withItem` is deprecated and will be removed in the next major version. Use `useItem` instead.");var e=function(i){return React.createElement(t,_extends({},i,A(i)))};return e.displayName="withItem(".concat(getDisplayName(t),")"),e.propTypes=a,e}var ct=["active","children","className","disabled","onClick"],bt=(0,W.forwardRef)(function(t,e){var n=t.active,i=t.children,c=t.className,S=t.disabled,F=t.onClick,nt=vs(t,ct);return W.createElement("a",_a({},nt,{className:os()("dropdown-item",{active:n,disabled:S},c),href:nt.href||"#",onClick:function(yt){yt.preventDefault(),!S&&F&&F(yt)},ref:e}),i)});function At(t){return W.createElement(bt,A(t))}var Ot=["emptyLabel","innerRef","maxHeight","style"];function Ft(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),n.push.apply(n,i)}return n}function Wt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ft(Object(n),!0).forEach(function(i){bi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ft(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var Kt=function(){return W.createElement("div",{className:"dropdown-divider",role:"separator"})},ae=function(e){return W.createElement("div",_a({},e,{className:"dropdown-header",role:"heading"}))},Qt={"aria-label":Rn().string,emptyLabel:Rn().node,id:Nc(Rn().oneOfType([Rn().number,Rn().string]),WE),maxHeight:Rn().string},Ee=function(e){var n=e.emptyLabel,i=n===void 0?"No matches found.":n,c=e.innerRef,S=e.maxHeight,F=S===void 0?"300px":S,nt=e.style,ut=vs(e,Ot),yt=W.Children.count(ut.children)===0?W.createElement(bt,{disabled:!0,role:"option"},i):ut.children;return W.createElement("div",_a({},ut,{"aria-label":ut["aria-label"]||"menu-options",className:os()("rbt-menu","dropdown-menu","show",ut.className),onMouseDown:eb,ref:c,role:"listbox",style:Wt(Wt({},nt),{},{display:"block",maxHeight:F,overflow:"auto"})}),yt)};Ee.propTypes=Qt,Ee.Divider=Kt,Ee.Header=ae;const Ie=Ee;var Re=["labelKey","newSelectionPrefix","options","paginationText","renderMenuItemChildren","text"],ze={newSelectionPrefix:Rn().node,paginationText:Rn().node,renderMenuItemChildren:Rn().func};function We(t,e){return W.createElement(Ly,{search:e.text},Oc(t,e.labelKey))}var hn=function(e){var n=e.labelKey,i=e.newSelectionPrefix,c=i===void 0?"New selection: ":i,S=e.options,F=e.paginationText,nt=F===void 0?"Display additional results...":F,ut=e.renderMenuItemChildren,yt=ut===void 0?We:ut,_t=e.text,zt=vs(e,Re),Ht=function(re,ue){var oe=Oc(re,n),de={disabled:!!ru(re,"disabled"),label:oe,option:re,position:ue};return ru(re,"customOption")?W.createElement(At,_a({},de,{className:"rbt-menu-custom-option",key:ue,label:oe}),c,W.createElement(Ly,{search:_t},oe)):ru(re,"paginationOption")?W.createElement(W.Fragment,{key:"pagination-option-divider"},W.createElement(Ie.Divider,null),W.createElement(At,_a({},de,{className:"rbt-menu-pagination-option",label:Gu(nt)?nt:""}),nt)):W.createElement(At,_a({},de,{key:ue}),yt(re,e,ue))};return W.createElement(Ie,_a({},zt,{key:_t}),S.map(Ht))};hn.propTypes=ze;const rn=hn;function cn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),n.push.apply(n,i)}return n}function Nn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?cn(Object(n),!0).forEach(function(i){bi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Xn(t){var e=Hn();return function(){var i=Sp(t),c;if(e){var S=Sp(this).constructor;c=Reflect.construct(i,arguments,S)}else c=i.apply(this,arguments);return QE(this,c)}}function Hn(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var vr={clearButton:Rn().bool,inputProps:Nc(Rn().object,VE),isInvalid:Rn().bool,isLoading:Rn().bool,isValid:Rn().bool,renderInput:Rn().func,renderMenu:Rn().func,renderToken:Rn().func,size:UE},or={isLoading:!1},hr=function(e,n,i){return W.createElement(rn,_a({},n,{labelKey:i.labelKey,options:e,text:i.text}))},rr=function(e,n,i){return W.createElement(oP,{disabled:n.disabled,key:i,onRemove:n.onRemove,option:e,tabIndex:n.tabIndex},Oc(e,n.labelKey))},dn=["align","dropup","flip","positionFixed"];function Gn(t){return G1(t,dn)}var Tr=function(t){i_(n,t);var e=Xn(n);function n(){var i;KE(this,n);for(var c=arguments.length,S=new Array(c),F=0;F<c;F++)S[F]=arguments[F];return i=e.call.apply(e,[this].concat(S)),bi(vo(i),"_referenceElement",null),bi(vo(i),"referenceElementRef",function(nt){i._referenceElement=nt}),bi(vo(i),"_renderInput",function(nt,ut){var yt=i.props,_t=yt.isInvalid,zt=yt.isValid,Ht=yt.multiple,Yt=yt.renderInput,re=yt.renderToken,ue=yt.size;if(cl(Yt))return Yt(nt,ut);var oe=Nn(Nn({},nt),{},{isInvalid:_t,isValid:zt,size:ue});if(!Ht)return W.createElement(xb,oe);var de=ut.labelKey,pe=ut.onRemove,_e=ut.selected;return W.createElement(uP,_a({},oe,{placeholder:_e.length?"":nt.placeholder,selected:_e}),_e.map(function(ge,qe){return(re||rr)(ge,Nn(Nn({},oe),{},{labelKey:de,onRemove:pe}),qe)}))}),bi(vo(i),"_renderMenu",function(nt,ut,yt){var _t=i.props,zt=_t.emptyLabel,Ht=_t.id,Yt=_t.maxHeight,re=_t.newSelectionPrefix,ue=_t.paginationText,oe=_t.renderMenu,de=_t.renderMenuItemChildren;return(oe||hr)(nt,Nn(Nn({},ut),{},{emptyLabel:zt,id:Ht,maxHeight:Yt,newSelectionPrefix:re,paginationText:ue,renderMenuItemChildren:de}),yt)}),bi(vo(i),"_renderAux",function(nt){var ut=nt.onClear,yt=nt.selected,_t=i.props,zt=_t.clearButton,Ht=_t.disabled,Yt=_t.isLoading,re=_t.size,ue;return Yt?ue=W.createElement(gA,null):zt&&!Ht&&yt.length&&(ue=W.createElement(cC,{onClick:ut,onMouseDown:eb,size:re})),ue?W.createElement("div",{className:os()("rbt-aux",{"rbt-aux-lg":vy(re)})},ue):null}),i}return ZE(n,[{key:"render",value:function(){var c=this,S=this.props,F=S.children,nt=S.className,ut=S.instanceRef,yt=S.open,_t=S.options,zt=S.style;return W.createElement(pA,_a({},this.props,{options:_t,ref:ut}),function(Ht){var Yt=Ht.hideMenu,re=Ht.isMenuShown,ue=Ht.results,oe=c._renderAux(Ht);return W.createElement(eP,{disabled:yt||!re,onRootClose:Yt},function(de){return W.createElement("div",{className:os()("rbt",{"has-aux":!!oe,"is-invalid":c.props.isInvalid,"is-valid":c.props.isValid},nt),ref:de,style:Nn(Nn({},zt),{},{outline:"none",position:"relative"}),tabIndex:-1},c._renderInput(Nn(Nn({},Ht.getInputProps(c.props.inputProps)),{},{referenceElementRef:c.referenceElementRef}),Ht),W.createElement(KC,_a({},Gn(c.props),{isMenuShown:re,referenceElement:c._referenceElement}),function(pe){return c._renderMenu(ue,pe,Ht)}),oe,cl(F)?F(Ht):F)})})}}]),n}(W.Component);bi(Tr,"propTypes",vr),bi(Tr,"defaultProps",or);const Wn=(0,W.forwardRef)(function(t,e){return W.createElement(Tr,_a({},t,{instanceRef:e}))});var Sr=(0,W.forwardRef)(function(t,e){return W.createElement(Wn,_a({},GE(t),{ref:e}))});const ei=Sr;var Xr=Fn(7810);const oi=({label:t,position:e,value:n})=>{if(e<0)return Xr.createElement("span",null,t);const i=t.substring(0,e),c=t.substring(e+n.length);return Xr.createElement("span",null,i,Xr.createElement("b",null,n),c)},Ni=oi;oi.propTypes={label:Rn().string.isRequired,position:Rn().number.isRequired,value:Rn().string.isRequired};var Di=Fn(7810);const Do=({onClear:t})=>Di.createElement("button",{type:"reset",title:"Clear search",onClick:t,"aria-label":"clear search"},Di.createElement("div",null,Wi("delete")));Do.propTypes={onClear:Rn().func.isRequired};var ao=Fn(7810),bo=Object.defineProperty,Sa=Object.getOwnPropertySymbols,cu=Object.prototype.hasOwnProperty,Zu=Object.prototype.propertyIsEnumerable,hu=(t,e,n)=>e in t?bo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Gr=(t,e)=>{for(var n in e||(e={}))cu.call(e,n)&&hu(t,n,e[n]);if(Sa)for(var n of Sa(e))Zu.call(e,n)&&hu(t,n,e[n]);return t};const Ri=({ariaLabel:t,defaultValue:e="",delayWait:n=0,htmlId:i,isDisabled:c=!1,handleChange:S,handleClear:F,handleSearch:nt,hasClearButton:ut=!1,hasSearchButton:yt=!1,maxResults:_t=5,options:zt,placeholder:Ht="Enter your search text"})=>{const Yt=(0,W.useRef)(),[re,ue]=(0,W.useState)(e),[oe,de]=(0,W.useState)(ut&&(!!e||!!re));(0,W.useEffect)(()=>{Yt.current.setState({text:e}),ue(Yt.current.inputNode.value),e===""?(Yt.current.clear(),de(!1)):de(!0)},[e]);const pe=()=>{F&&F(),Yt.current.clear(),ue("")},_e=()=>!0;return ao.createElement("section",{className:"typeahead"},ao.createElement("div",{className:"o-search-input"},ao.createElement("div",{className:"o-search-input__input"},ao.createElement("label",{"aria-label":t,className:"o-search-input__input-label",htmlFor:i},Wi("search")),ao.createElement(ei,{id:i,minLength:2,className:"typeahead-selector",defaultInputValue:e,delay:n,disabled:c,filterBy:_e,inputProps:{id:i,className:"a-text-input a-text-input--full"},isLoading:!1,ref:Yt,onInputChange:ge=>{de(ge!==""),ue(ge)},onChange:ge=>{S(ge),Yt.current.clear(),ue("")},onSearch:nt,options:zt,maxResults:_t,placeholder:Ht,renderMenuItemChildren:ge=>ao.createElement("li",{className:"typeahead-option body-copy"},ao.createElement(Ni,Gr({},ge)))}),!!oe&&ao.createElement(Do,{onClear:()=>{pe(),de(!1)}})),!!yt&&ao.createElement("button",{type:"submit",className:"a-btn"},"Search")))};Ri.propTypes={ariaLabel:Rn().string.isRequired,defaultValue:Rn().string,delayWait:Rn().number.isRequired,isDisabled:Rn().bool,handleChange:Rn().func.isRequired,handleClear:Rn().func,handleSearch:Rn().func.isRequired,hasClearButton:Rn().bool,hasSearchButton:Rn().bool,htmlId:Rn().string.isRequired,maxResults:Rn().number,options:Rn().array,placeholder:Rn().string};function Ki(t,e,n){const i=t.toLowerCase();if(i===""){e([]);return}return fetch(n).then(c=>c.json()).then(c=>{const S=c.map(F=>({key:F,label:F,position:F.toLowerCase().indexOf(i),value:t}));e(S)})}function jr(t,e){const n=ss(e),i=Object.keys(n).filter(S=>!["frm","page","search_after","size","sort"].includes(S)),c=Object.keys(t).filter(S=>!["dataNormalization","enablePer1000","mapWarningEnabled"].includes(S));return Object.assign({size:0},qi(n,i),qi(t,c))}function xs(t,e){const n=Object.keys(t).filter(i=>!["dataNormalization","enablePer1000","mapWarningEnabled"].includes(i));return Object.assign({no_aggs:!0},ss(e),qi(t,n))}function qi(t,e){const n={};return e.forEach(i=>{const c=t[i];Array.isArray(c)?c.length>0&&(n[i]=c):c&&(n[i]=c)}),n}function ss(t){const e=t,n={company_received_max:e==null?void 0:e.company_received_max,company_received_min:e==null?void 0:e.company_received_min,date_received_max:e.date_received_max,date_received_min:e.date_received_min,field:Ys(e.searchField,"searchField"),frm:e.from!==void 0?e.from:Yx(e.page-1,0)*e.size,page:e.page,size:e.size,sort:e.sort};return e.searchText&&(n.search_term=e.searchText),e.searchAfter&&(n.search_after=e.searchAfter),fT(n)}function $s(t,e,n){const{dateInterval:i,searchField:c}=e,S=ss(e),F=t,{chartType:nt,focus:ut,lens:yt,subLens:_t,trendDepth:zt}=n,Ht={chartType:nt,lens:yt.replace(" ","_").toLowerCase(),searchField:c,trend_depth:zt,trend_interval:i.toLowerCase(),reducerValues:{focus:ut,lens:yt,subLens:_t,trendDepth:n.trendDepth}};_t&&(Ht.sub_lens=_t.replace("-","_").replace(" ","_").toLowerCase()),ut&&(Ht.focus=ut);const Yt=Object.keys(S).filter(ue=>!["frm","page","search_after","size","sort"].includes(ue)),re=Object.keys(F).filter(ue=>!["dataNormalization","enablePer1000","mapWarningEnabled"].includes(ue));return Object.assign(Ht,qi(S,Yt),qi(F,re),{size:0,no_aggs:!0})}const da=()=>{const t=sr(tu),e=sr(vp),n=sr(ly),i=jr(t,e);return zT(i,{skip:n===""})};var Xs=Fn(7810);const WR="company",sM=({delayWait:t=250,id:e})=>{const{isLoading:n,isFetching:i}=da(),c=Si(),S=sr(tu),F=sr(vp),nt=sr(xh),ut=sr(eu),[yt,_t]=(0,W.useState)([]),zt=Object.assign({},F,S);zt.searchAfter="";const Ht=nt&&ut==="Company",Yt=my(zt),re=oe=>{c(tg(WR,[oe[0].key]))},ue=oe=>{const de=Yt+"&text="+oe,pe=`${ph}_suggest_company/${de}`;Ki(oe,_t,pe)};return n||i?null:Xs.createElement(Ri,{ariaLabel:"Start typing to begin listing companies",htmlId:Y0("company-typeahead-"+e),delayWait:t,handleChange:re,handleSearch:ue,hasClearButton:!0,options:yt,placeholder:"Enter company name",disabled:Ht})};sM.propTypes={delayWait:Rn().number,id:Rn().string.isRequired};const YR=(t,e)=>{let n=t.length;if(n!==e.length)return!1;for(;n--;)if(t[n]!==e[n])return!1;return!0},EO=(t,e)=>JSON.stringify(t)===JSON.stringify(e),qR=t=>{if(t==="timely"){const e=/_/g,n=t.replace(e," ");return n[0].toUpperCase()+n.slice(1)+": "}return""},CO=(t,e,n,i)=>{if(!Um.includes(i))return e;const c=t.split(Ws),S=c[0],F=e.includes(S),nt=e.filter(yt=>yt!==S&&t).filter(yt=>yt!==t),ut=[];return F&&n.find(_t=>_t.key===S)["sub_"+i+".raw"].buckets.forEach(_t=>{_t.key!==c[1]&&ut.push(sp(S,_t.key))}),nt.concat(ut)};var lM=Fn(7810);const $R=({fieldName:t,item:e,aggs:n,filters:i})=>{const[c,S]=e.key.split(Ws),F=n.find(yt=>yt.key===c)["sub_"+t+".raw"].buckets.map(yt=>yt.key).sort(),nt=c+Ws,ut=i.filter(yt=>yt.indexOf(nt)>-1).map(yt=>yt.replace(nt,""));return ut.push(S),ut.sort(),YR(ut,F)?i.filter(yt=>yt.indexOf(nt)===-1).concat(c):i.concat(e.key)},B_=({fieldName:t,item:e})=>{const{data:n,isSuccess:i}=da(),c=sr(tu),S=Si(),F=is(n,t,[]),nt=is(c,t,[]);if(!i||!F)return null;const ut=nt.includes(e.key)||nt.includes(e.key.split(Ws)[0]),yt=e.value||e.key,_t="layout-row m-form-field m-form-field--checkbox",zt=Y0(t+"-"+e.key),Ht=()=>{if(e.key.indexOf(Ws)>-1&&Um.includes(t)){const oe=$R({fieldName:t,item:e,aggs:F,filters:nt});S(mp(t,oe))}else S(fy(t,e))},Yt=()=>{if(Um.includes(t)){const ue=e.key,oe=CO(ue,nt,F,t);S(mp(t,oe))}else S(fy(t,e))},re=()=>{ut?Yt():Ht()};return lM.createElement("li",{className:_t},lM.createElement("input",{type:"checkbox",className:"flex-fixed a-checkbox","aria-label":e.key,disabled:e.isDisabled,checked:ut,id:zt,onChange:re}),lM.createElement("label",{className:"a-label flex-all bucket-key body-copy",htmlFor:zt},yt),lM.createElement("span",{className:"flex-fixed bucket-count"},e.doc_count.toLocaleString()))};B_.propTypes={fieldName:Rn().string.isRequired,item:Rn().shape({doc_count:Rn().number.isRequired,key:Rn().string.isRequired,value:Rn().string,isDisabled:Rn().bool}).isRequired};var MO=Fn(7810),XR=Object.defineProperty,GR=Object.defineProperties,KR=Object.getOwnPropertyDescriptors,kO=Object.getOwnPropertySymbols,ZR=Object.prototype.hasOwnProperty,QR=Object.prototype.propertyIsEnumerable,TO=(t,e,n)=>e in t?XR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,JR=(t,e)=>{for(var n in e||(e={}))ZR.call(e,n)&&TO(t,n,e[n]);if(kO)for(var n of kO(e))QR.call(e,n)&&TO(t,n,e[n]);return t},t7=(t,e)=>GR(t,KR(e));const e7=t=>t.reduce((e,n)=>(e[n.key]=n,e),{}),n7=t=>{const e={};return Object.keys(t).forEach(n=>{e[n]=t7(JR({},t[n]),{doc_count:0})}),e},AO=({fieldName:t,options:e,selections:n})=>{const[i,c]=(0,W.useState)([]),[S,F]=(0,W.useState)({});return(0,W.useEffect)(()=>{const nt=n7(S),ut=Object.assign(nt,e7(e)),yt=[...i];n.forEach(_t=>{yt.indexOf(_t)===-1&&yt.push(_t)}),EO(yt,i)||c(yt),EO(S,ut)||F(ut)},[S,e,n,i]),MO.createElement("ul",null,i.map(nt=>{const ut=S[nt];return ut?MO.createElement(B_,{item:ut,key:ut.key,fieldName:t}):null}))};AO.propTypes={fieldName:Rn().string.isRequired,options:Rn().array.isRequired,selections:Rn().array};var gP=Fn(7810);const PO="company",r7=()=>{const{data:t,isLoading:e,isFetching:n}=da(),i=sr(dE),c=sr(xh),S=sr(eu),F=(t==null?void 0:t.company)||[],nt=structuredClone(F),ut=c&&S==="Company";return nt.forEach(_t=>{_t.disabled=!!(ut&&_t.key!==c)}),e||n?null:gP.createElement(Ac,{title:"Company name",desc:"The complaint is about this company.",className:"aggregation company"},gP.createElement(sM,{id:"filter-"+PO}),gP.createElement(AO,{fieldName:PO,options:nt,selections:i}))},s$={};var i7=Fn(4503),OO=Fn.n(i7),o7=Fn(9050),NO=Fn.n(o7),Gs=Fn(7810);Fr().extend(OO()),Fr().extend(NO());const a7=()=>{const t="company_received",e="The date the CFPB sent the complaint to the company",n=sr(O3),i=sr(P3),c=Fr()(n).isValid()?Na(n):"",S=Fr()(i).isValid()?Na(i):"",[F,nt]=(0,W.useState)(c),[ut,yt]=(0,W.useState)(S),_t=Si(),zt="'From' date must be less than 'through' date",Ht=(0,W.useRef)(),Yt=(0,W.useRef)();(0,W.useEffect)(()=>{const ge=n?Na(n):"";nt(ge)},[n]),(0,W.useEffect)(()=>{const ge=i?Na(i):"";yt(ge)},[i]);const re=ge=>{ge.key==="Enter"&&Ht.current.blur()},ue=ge=>{ge.key==="Enter"&&Yt.current.blur()},oe=(0,W.useMemo)(()=>{const ge=[];return Fr()(F).isAfter(ut)&&ge.push(zt),Fr()(F).isBefore(gs)&&ge.push("'From' date must be after "+Fr()(gs).format(Tf)),Fr()(ut).isAfter(Zl)&&ge.push("'Through' date must be before "+Fr()(Zl).format(Tf)),ge},[F,ut]),de=()=>{let ge=ut,qe=F;qe&&!Fr()(F).isValid()&&(Ht.current.value="",qe=""),ge&&!Fr()(ut).isValid()&&(Yt.current.value="",ge=""),(n!==qe||i!==ge)&&_t(ng(qe,ge))},pe=(0,W.useMemo)(()=>{const ge=["a-text-input"];return(Fr()(F).isBefore(gs)||Fr()(F).isAfter(ut))&&ge.push("a-text-input--error"),ge.join(" ")},[F,ut]),_e=(0,W.useMemo)(()=>{const ge=["a-text-input"];return(Fr()(ut).isAfter(Zl)||Fr()(ut).isBefore(F))&&ge.push("a-text-input--error"),ge.join(" ")},[F,ut]);return Gs.createElement(Ac,{title:e,className:"aggregation date-filter",desc:""},Gs.createElement("div",null,Gs.createElement("ul",{className:"date-inputs"},Gs.createElement("li",null,Gs.createElement("label",{className:"a-label a-label__heading body-copy",htmlFor:`${t}-from`},"From"),Gs.createElement("div",{className:"o-search-input"},Gs.createElement("div",{className:"o-search-input__input"},Gs.createElement("input",{id:`${t}-from`,className:pe,onBlur:de,onChange:ge=>nt(ge.target.value),onKeyDown:re,min:gs,max:Zl,ref:Ht,placeholder:Tf,type:"date",value:F})))),Gs.createElement("li",null,Gs.createElement("label",{className:"a-label a-label__heading body-copy",htmlFor:`${t}-through`},"Through"),Gs.createElement("div",{className:"o-search-input"},Gs.createElement("div",{className:"o-search-input__input"},Gs.createElement("input",{id:`${t}-through`,className:_e,onBlur:de,onChange:ge=>yt(ge.target.value),onKeyDown:ue,min:gs,max:Zl,placeholder:Tf,ref:Yt,type:"date",value:ut}))))),oe.length?Gs.createElement("div",{className:"a-form-alert a-form-alert--error",role:"alert"},oe.map((ge,qe)=>Gs.createElement("div",{key:qe},Gs.createElement("span",{"aria-hidden":"true"},Wi("delete-round","cf-icon-delete-round")),Gs.createElement("div",{className:"a-form-alert__text"},ge)))):null))},l$={},s7=t=>t.view.hasAdvancedSearchTips,yP=t=>t.view.expandedRows,DO=t=>t.view.hasFilters,xg=t=>t.view.isPrintMode,l7=t=>t.view.showTour,jc=t=>t.view.tab,Eh=t=>t.view.width,u7=t=>t.view.modalTypeShown;var uM=Fn(7810);const c7=()=>{const t=Si(),e=sr(N3),n=sr(jc),i=S=>{const F=["a-btn","date-selector","range-"+S];return S===e&&F.push("selected"),F.join(" ").toLowerCase()},c=S=>{e!==S&&(Ps("Button",n+":"+S),t(Y1(S)))};return uM.createElement("section",{className:"date-ranges"},uM.createElement("p",null,"Date range (Click to modify range)"),uM.createElement("div",{className:"m-btn-group"},Object.keys(Zv).map(S=>uM.createElement("button",{onClick:()=>{c(S)},"aria-label":Zv[S],className:i(S),key:S,title:Zv[S]},S))))};var ws=Fn(7810);Fr().extend(OO()),Fr().extend(NO()),Fr().extend(j0());const h7="CFPB updated product and issue options in April 2017 and August 2023.",f7="https://www.consumerfinance.gov/data-research/consumer-complaints/#past-changes",d7=()=>{const t="date_received",e="Date CFPB received the complaint",n=sr(xp),i=sr(bp),c=Fr()(n).isValid()?dh(n):"",S=Fr()(i).isValid()?dh(i):"",[F,nt]=(0,W.useState)(c),[ut,yt]=(0,W.useState)(S),_t=Si(),zt="'From' date must be less than 'through' date",Ht="'From' date cannot be the same as 'Through' date",Yt=(0,W.useRef)(),re=(0,W.useRef)();(0,W.useEffect)(()=>{const qe=n?dh(n):"";nt(qe)},[n]),(0,W.useEffect)(()=>{const qe=i?dh(i):"";yt(qe)},[i]);const ue=qe=>{qe.key==="Enter"&&Yt.current.blur()},oe=qe=>{qe.key==="Enter"&&re.current.blur()},de=(0,W.useMemo)(()=>Fr()(F).isAfter(ut)?zt:Fr()(F).isSame(ut)?Ht:!1,[F,ut]),pe=()=>{let qe=F,De=ut;qe<gs&&qe&&(Yt.current.value=gs,qe=gs),De>Zl&&De&&(re.current.value=Zl,De=Zl);const $e=n!==qe||i!==De;Fr()(De).isAfter(qe)&&$e&&_t(Uw(qe,De))},_e=(0,W.useMemo)(()=>{const qe=["a-text-input"];return(Fr()(F).isBefore(gs)||Fr()(F).isAfter(ut)||Fr()(F).isSame(ut))&&qe.push("a-text-input--error"),qe.join(" ")},[F,ut]),ge=(0,W.useMemo)(()=>{const qe=["a-text-input"];return(Fr()(ut).isAfter(Zl)||Fr()(ut).isBefore(F)||Fr()(ut).isSame(F))&&qe.push("a-text-input--error"),qe.join(" ")},[F,ut]);return ws.createElement(Ac,{title:e,className:"aggregation date-filter",desc:""},ws.createElement("div",null,ws.createElement("p",{className:"u-mt15"}," ",h7," ",ws.createElement("a",{href:f7,target:"_blank",rel:"noopener noreferrer","aria-label":`Learn more about Product and
473
- Issue changes (opens in new window)`},"Learn More")),ws.createElement("ul",{className:"date-inputs"},ws.createElement("li",null,ws.createElement("label",{className:"a-label a-label__heading body-copy",htmlFor:`${t}-from`},"From"),ws.createElement("div",{className:"o-search-input"},ws.createElement("div",{className:"o-search-input__input"},ws.createElement("input",{id:`${t}-from`,className:_e,onBlur:pe,onChange:qe=>{const De=qe.target.value||gs;nt(De)},onKeyDown:ue,min:gs,max:Zl,ref:Yt,placeholder:Tf,type:"date",value:F})))),ws.createElement("li",null,ws.createElement("label",{className:"a-label a-label__heading body-copy",htmlFor:`${t}-through`},"Through"),ws.createElement("div",{className:"o-search-input"},ws.createElement("div",{className:"o-search-input__input"},ws.createElement("input",{id:`${t}-through`,className:ge,onBlur:pe,onChange:qe=>{const De=qe.target.value||gs;yt(De)},onKeyDown:oe,min:gs,max:Zl,placeholder:Tf,ref:re,type:"date",value:ut}))))),ws.createElement(c7,null),de?ws.createElement("div",{className:"a-form-alert a-form-alert--error",role:"alert"},ws.createElement("span",{"aria-hidden":"true"},Wi("delete-round","cf-icon-delete-round")),ws.createElement("span",{className:"a-form-alert__text"},de+" ")):null))};var wg=Fn(7810),p7=Object.defineProperty,RO=Object.getOwnPropertySymbols,m7=Object.prototype.hasOwnProperty,g7=Object.prototype.propertyIsEnumerable,LO=(t,e,n)=>e in t?p7(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,y7=(t,e)=>{for(var n in e||(e={}))m7.call(e,n)&&LO(t,n,e[n]);if(RO)for(var n of RO(e))g7.call(e,n)&&LO(t,n,e[n]);return t};const vP=({ariaLabel:t,htmlId:e,isDisabled:n=!1,handleChange:i,handleInputChange:c,maxResults:S=5,options:F,placeholder:nt="Enter your search text"})=>{const ut=(0,W.useRef)(),[yt,_t]=(0,W.useState)(""),zt=()=>{ut.current.clear(),_t("")};return wg.createElement("section",{className:"typeahead"},wg.createElement("div",{className:"o-search-input"},wg.createElement("div",{className:"o-search-input__input"},wg.createElement("label",{"aria-label":t,className:"o-search-input__input-label",htmlFor:e},Wi("search")),wg.createElement(Wn,{id:e,minLength:2,className:"typeahead-selector",disabled:n,isLoading:!1,ref:ut,onChange:Ht=>{i(Ht),zt()},onInputChange:Ht=>{c(Ht),_t(Ht)},options:F,maxResults:S,placeholder:nt,renderMenuItemChildren:Ht=>wg.createElement("li",{className:"typeahead-option body-copy"},wg.createElement(Ni,y7({},Ht))),inputProps:{id:e,className:"a-text-input a-text-input--full"}}),!!yt&&wg.createElement(Do,{onClear:zt}))))};vP.propTypes={ariaLabel:Rn().string.isRequired,isDisabled:Rn().bool,handleChange:Rn().func.isRequired,handleInputChange:Rn().func.isRequired,htmlId:Rn().string.isRequired,maxResults:Rn().number,options:Rn().array,placeholder:Rn().string};var IO=Fn(7810);const v7=()=>{const t=Si(),e=ut=>U0[ut]+" ("+ut+")",n=Object.keys(U0).map(ut=>{const yt=e(ut);return{key:ut,label:yt,position:0,normalized:iS(yt)}}),[i,c]=(0,W.useState)(n),S="The state in the mailing address provided by the consumer",F=ut=>{const yt=iS(ut);if(yt===""){c(n);return}const _t=n.map(zt=>({key:zt.key,label:zt.label,normalized:zt.normalized,position:zt.normalized.indexOf(yt),value:ut}));c(_t)},nt=ut=>{t(tg("state",[ut[0].key]))};return IO.createElement(Ac,{title:"State",desc:S,className:"aggregation state"},IO.createElement(vP,{ariaLabel:"Start typing to begin listing US states",htmlId:"state-typeahead",handleChange:nt,handleInputChange:F,hasClearButton:!0,options:i,placeholder:"Enter state name or abbreviation"}))};var F_=Fn(7810);const jO="has_narrative",BO="SEARCHING",b7="FILTERING",FO="NOTHING",x7=()=>{const t=Si(),e=sr(Ww),n=sr(q1);let i=FO;return n===K2?i=BO:e&&(i=b7),F_.createElement("section",{className:"single-checkbox"},F_.createElement("h4",null,"Only show complaints with narratives?"),F_.createElement("div",{className:"m-form-field m-form-field--checkbox"},F_.createElement("input",{className:"a-checkbox",checked:i!==FO,disabled:i===BO,id:"filterHasNarrative",onChange:()=>{t(gp(jO))},type:"checkbox",value:jO}),F_.createElement("label",{className:"a-label",htmlFor:"filterHasNarrative"},"Yes")))};var z_=Fn(7810),w7=Object.defineProperty,_7=Object.defineProperties,S7=Object.getOwnPropertyDescriptors,zO=Object.getOwnPropertySymbols,E7=Object.prototype.hasOwnProperty,C7=Object.prototype.propertyIsEnumerable,UO=(t,e,n)=>e in t?w7(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,M7=(t,e)=>{for(var n in e||(e={}))E7.call(e,n)&&UO(t,n,e[n]);if(zO)for(var n of zO(e))C7.call(e,n)&&UO(t,n,e[n]);return t},k7=(t,e)=>_7(t,S7(e));const cM=({listComponent:t,listComponentProps:e={},options:n,perBucketProps:i=(S,F)=>F,hasMore:c=!1})=>{const[S,F]=(0,W.useState)(c),nt=n,ut=nt.length>5?nt.slice(0,5):nt,yt=nt.length-5,_t=Ht=>{const Yt=i(Ht,k7(M7({},e),{item:Ht,key:Ht.key}));return(0,W.createElement)(t,Yt)},zt=()=>{F(!S)};return z_.createElement(z_.Fragment,null,z_.createElement("ul",null,S?nt.map(Ht=>_t(Ht)):ut.map(Ht=>_t(Ht))),yt>0?z_.createElement("div",null,z_.createElement("button",{className:"a-btn a-btn--link more",onClick:zt},S?`- Show ${yt} less`:`+ Show ${yt} more`)):null)};cM.propTypes={listComponent:Rn().oneOfType([Rn().element,Rn().func,Rn().object]).isRequired,listComponentProps:Rn().object,options:Rn().array.isRequired,perBucketProps:Rn().func,hasMore:Rn().bool};const u$={};var Ch=Fn(7810);const T7="UNCHECKED",HO="INDETERMINATE",bP="CHECKED",xP=({fieldName:t,item:e,subitems:n})=>{const i=sr(tu),c=Si(),[S,F]=(0,W.useState)(!1),nt=is(i,t,[]),ut=nt.filter(oe=>oe.indexOf(e.key)===0),yt=ut.filter(oe=>oe.indexOf(Ws)!==-1),_t=ut.filter(oe=>oe===e.key);let zt=T7;_t.length===0&&yt.length>0?zt=HO:_t.length>0&&(zt=bP);const Ht=n.map(oe=>({disabled:e.isDisabled,key:sp(e.key,oe.key),value:oe.key,doc_count:oe.doc_count})),Yt="parent m-form-field m-form-field--checkbox body-copy",re=Y0(`${t} ${e.key}`),ue=()=>{const oe=aS(e.key,n);if(yt.forEach(de=>oe.add(de)),zt===bP)c(eg(t,[...oe]));else{const de=nt.filter(pe=>pe.indexOf(e.key+Ws)===-1);de.push(e.key),c(mp(t,[...de]))}};return Ht.length===0?Ch.createElement(B_,{item:e,key:e.key,fieldName:t}):Ch.createElement(Ch.Fragment,null,Ch.createElement("li",{className:`aggregation-branch ${Y0(e.key)} ${Yt}`},Ch.createElement("input",{type:"checkbox","aria-label":e.key,disabled:e.isDisabled,checked:zt===bP,className:"flex-fixed a-checkbox",id:re,onChange:ue}),Ch.createElement("label",{className:`toggle a-label ${zt===HO?" indeterminate":""}`,htmlFor:re},Ch.createElement("span",{className:"u-visually-hidden"},e.key)),Ch.createElement("button",{className:"flex-all a-btn a-btn--link",onClick:()=>F(!S)},e.key,Wi(S?"up":"down")),Ch.createElement("span",{className:"flex-fixed parent-count"},e.doc_count.toLocaleString())),S?Ch.createElement("ul",{className:"children"},Ht.map(oe=>Ch.createElement(B_,{item:oe,key:oe.key,fieldName:t}))):null)};xP.propTypes={fieldName:Rn().string.isRequired,item:Rn().shape({doc_count:Rn().number.isRequired,key:Rn().string.isRequired,value:Rn().string,isDisabled:Rn().bool}).isRequired,subitems:Rn().array.isRequired};var wP=Fn(7810);const A7=()=>{const t=Si(),[e,n]=(0,W.useState)([]),{data:i}=da(),c=sr(T3),S=i==null?void 0:i.issue;if(!S)return null;const F="The type of issue and sub-issue the consumer identified in the complaint",nt={fieldName:"issue"},ut=[];c.forEach(re=>{const ue=re.indexOf(Ws),oe=ue===-1?re:re.substring(0,ue);ut.indexOf(oe)===-1&&ut.push(oe)});const yt=c1(S,ut),_t=yt.map(re=>re.key),zt=re=>{const ue=re.toLowerCase();if(ue===""){n([]);return}const oe=_t.map(de=>({key:de,label:de,position:de.toLowerCase().indexOf(ue),value:re}));n(oe)},Ht=re=>{const ue=c.filter(oe=>oe.indexOf(re[0].key+Ws)===-1).concat(re[0].key);t(mp("issue",ue))},Yt=(re,ue)=>(ue.subitems=re["sub_issue.raw"].buckets,ue);return wP.createElement(Ac,{title:"Issue / sub-issue",desc:F,className:"aggregation issue"},wP.createElement(vP,{ariaLabel:"Start typing to begin listing issues",htmlId:"issue-typeahead",placeholder:"Enter name of issue",handleChange:Ht,handleInputChange:zt,hasClearButton:!0,options:e}),wP.createElement(cM,{listComponent:xP,listComponentProps:nt,options:yt,perBucketProps:Yt}))};var VO=Fn(7810);const P7=(t,e,n,i,c)=>{const S=[];(e||[]).forEach(ut=>{const yt=ut.indexOf(Ws),_t=yt===-1?ut:ut.substring(0,yt);S.indexOf(_t)===-1&&S.push(_t)});const nt=c1(t,S);if(n){const ut=c===Rl&&i==="Product";nt.forEach(yt=>{yt.isDisabled=ut?yt.key!==n:!1,yt["sub_product.raw"].buckets.forEach(_t=>{_t.isDisabled=ut?yt.isDisabled:!1})})}return nt},O7=()=>{const{data:t}=da(),e=sr(A3),n=sr(xh),i=sr(eu),c=sr(jc),S=t==null?void 0:t.product;if(!S)return null;const F=P7(S,e,n,i,c),nt="The type of product and sub-product the consumer identified in the complaint",ut={fieldName:"product"},yt=(_t,zt)=>(zt.subitems=_t["sub_product.raw"].buckets,zt);return VO.createElement(Ac,{title:"Product / sub-product",desc:nt,className:"aggregation product"},VO.createElement(cM,{listComponent:xP,listComponentProps:ut,options:F,perBucketProps:yt}))},c$={};var WO=Fn(7810);const Iy=({fieldName:t,title:e,desc:n})=>{const{data:i}=da(),c=is(i,t,[]),S={fieldName:t};return WO.createElement(Ac,{title:e,desc:n,className:"aggregation simple "+t},WO.createElement(cM,{listComponent:B_,listComponentProps:S,options:c}))};Iy.propTypes={fieldName:Rn().string.isRequired,title:Rn().string.isRequired,desc:Rn().string};var YO=Fn(7810);const N7="zip_code",qO=({delayWait:t=250})=>{const e=Si(),n=sr(vp),i=sr(tu),[c,S]=(0,W.useState)([]),F=Object.assign({},n,i);F.searchAfter="";const nt=my(F),ut=_t=>{e(tg(N7,[_t[0].key])),S([])},yt=_t=>{const zt=nt+"&text="+_t,Ht=`${ph}_suggest_zip/${zt}`;Ki(_t,S,Ht)};return YO.createElement(Ac,{title:"ZIP code",desc:"The mailing ZIP code provided by the consumer",className:"aggregation"},YO.createElement(Ri,{htmlId:"zipcode-typeahead",ariaLabel:"Start typing to begin listing zip codes",delayWait:t,handleSearch:yt,handleChange:ut,hasClearButton:!0,options:c,placeholder:"Enter first three digits of ZIP code"}))};qO.propTypes={delayWait:Rn().number};var Oo=Fn(7810);const hM=()=>{const t=Si(),e=sr(Eh),n=sr(DO),i=e<750;return Oo.createElement("div",null,!!n&&Oo.createElement("section",{className:"filter-panel"},!!i&&Oo.createElement("div",{className:"filter-button"},Oo.createElement("button",{className:"a-btn",title:"Close filters",onClick:()=>t(Dw())},"Close filters ",Wi("delete"))),Oo.createElement("h3",null,"Filter results by..."),Oo.createElement(d7,null),Oo.createElement("hr",null),Oo.createElement(O7,null),Oo.createElement("hr",null),Oo.createElement(A7,null),Oo.createElement("hr",null),Oo.createElement(v7,null),Oo.createElement("hr",null),Oo.createElement(qO,null),Oo.createElement("hr",null),Oo.createElement(r7,null),Oo.createElement("hr",null),Oo.createElement(Iy,{title:"Did company provide a timely response?",desc:"Whether the company gave a timely response",fieldName:"timely"}),Oo.createElement("hr",null),Oo.createElement(Iy,{title:"Company response to consumer",desc:`This is how the company responded. For example,
474
- 'Closed with explanation'.`,fieldName:"company_response"}),Oo.createElement("hr",null),Oo.createElement(Iy,{title:"Company public response",desc:"The company's optional public-facing response to a consumer's complaint. Companies can choose to select a response from a pre-set list of options that will be posted on the public database.",fieldName:"company_public_response"}),Oo.createElement("hr",null),Oo.createElement(a7,null),Oo.createElement("hr",null),Oo.createElement(Iy,{title:"Consumer consent provided?",desc:"Whether a consumer opted in to publish their complaint narrative",fieldName:"consumer_consent_provided"}),Oo.createElement("hr",null),Oo.createElement(x7,null),Oo.createElement("hr",null),Oo.createElement(Iy,{title:"How did the consumer submit the complaint to the CFPB?",fieldName:"submitted_via",desc:""}),Oo.createElement("hr",null),Oo.createElement(Iy,{title:"Tags",desc:"Data that supports easier searching and sorting of complaints submitted by or on behalf of consumers",fieldName:"tags"})))};var $O=Fn(7810);const D7=()=>{const t=sr(jc);return sr(Eh)>749?$O.createElement("aside",{className:`content__sidebar ${t.toLowerCase()}`},$O.createElement(hM,null)):null},h$={},f$={},d$={},p$={};var fM=Fn(7810);const XO=({text:t,closeFn:e})=>fM.createElement("div",{role:"alert",className:"warning m-notification m-notification--visible m-notification--warning"},Wi("warning-round"),fM.createElement("div",{className:"m-notification__content"},fM.createElement("div",{className:"m-notification__message"},t)),e?fM.createElement("button",{onClick:e,onKeyDown:e,"aria-label":"Dismiss",className:"close"},Wi("delete")):""),_P=XO;XO.propTypes={text:Rn().string.isRequired,closeFn:Rn().func};var GO=Fn(7810);const R7="We\u2019re currently experiencing technical issues that have delayed the refresh of data on the Consumer Complaint Database. We expect to refresh the data in the next few days.",L7=()=>{const{data:t}=da(),e=t==null?void 0:t.hasDataIssue,n=t==null?void 0:t.isDataStale;return e||n?GO.createElement("div",null,GO.createElement(_P,{text:R7})):null};var Op=Fn(7810);const SP=()=>{const t=Si(),e=sr(jc),{data:n}=da(),i=(n==null?void 0:n.doc_count)||0,c=(n==null?void 0:n.total)||0,S=F=>{Ps("Print","tab:"+F),t(Df())};return Op.createElement("div",null,Op.createElement("summary",{className:"action-bar",id:"search-summary"},c===i?Op.createElement("h2",null,"Showing "+i.toLocaleString()+" total complaints"):Op.createElement("h2",null,"Showing "+c.toLocaleString()+" matches out of "+i.toLocaleString()+" total complaints"),Op.createElement("div",null,Op.createElement("h3",{className:"h4 flex-all export-results"},Op.createElement("button",{className:"a-btn a-btn--link export-btn","data-gtm_ignore":"true",onClick:()=>{Ps("Export",e+":User Opens Export Modal"),t(vh(Ix))}},"Export data"),Op.createElement("button",{className:"a-btn a-btn--link print-preview",onClick:()=>{S(e)}},Wi("printer"),"Print")))),Op.createElement(L7,null))},m$={};var Vo=Fn(7810);const KO=300,ZO=({row:t})=>{const e=F=>{const nt=/(<em>)?(.*?)(<\/em>)?/gi;return F.replace(nt,"$2")},n=e(t.complaint_id),i="detail/"+e(t.complaint_id),c=F=>Vo.createElement("span",{className:"body-copy",dangerouslySetInnerHTML:{__html:F}}),S=(F,nt)=>{const ut=F.length>KO;return F=F.substring(0,KO),F?Vo.createElement("div",null,Vo.createElement("h4",{className:"u-mt15"},"Consumer Complaint Narrative"),c(F),ut?Vo.createElement("span",null," ",Vo.createElement($h,{to:nt},"[...]")):null):null};return Vo.createElement("li",{className:"card-container"},Vo.createElement("div",{className:"card"},Vo.createElement("div",{className:"card-left layout-column"},Vo.createElement("h3",{className:"to-detail"},Vo.createElement($h,{to:i,"aria-label":"Complaint "+qm(n)},n)),Vo.createElement("h4",null,"Company name"),c(t.company),Vo.createElement("h4",{className:"u-mt15"},"Company response to consumer"),c(t.company_response),Vo.createElement("h4",{className:"u-mt15"},"Timely response?"),c(t.timely)),Vo.createElement("div",{className:"card-right layout-column"},Vo.createElement("div",{className:"layout-row"},Vo.createElement("div",{className:"layout-row"},Vo.createElement("h4",null,"Date received:"),Vo.createElement("span",{className:"body-copy"},Kl(t.date_received))),Vo.createElement("div",{className:"spacer"}),Vo.createElement("div",{className:"layout-row"},Vo.createElement("h4",null,"Consumer\u2019s state:"),c(t.state))),Vo.createElement("h4",{className:"u-mt15"},"Product"),Vo.createElement("h3",{dangerouslySetInnerHTML:{__html:t.product}}),t.sub_product?Vo.createElement("div",{className:"layout-row"},Vo.createElement("span",{className:"body-copy subitem"},"Sub-product:"),c(t.sub_product)):null,Vo.createElement("h4",{className:"u-mt15"},"Issue"),Vo.createElement("h3",{dangerouslySetInnerHTML:{__html:t.issue}}),t.sub_issue?Vo.createElement("div",{className:"layout-row"},Vo.createElement("span",{className:"body-copy subitem"},"Sub-issue:"),c(t.sub_issue)):null,S(t.complaint_what_happened||"",i))))};ZO.propTypes={row:Rn().object.isRequired};const g$={};var EP=Fn(7810);const dM=({text:t})=>EP.createElement("div",{role:"alert",className:"error m-notification m-notification--visible m-notification--error"},Wi("error-round"),EP.createElement("div",{className:"m-notification__content"},EP.createElement("div",{className:"m-notification__message"},t))),QO=dM;dM.propTypes={text:Rn().string.isRequired};const y$={};var pM=Fn(7810);const CP=()=>{const t=Si(),e=sr(DO);return pM.createElement("section",{className:"filter-panel-toggle"},pM.createElement("div",{className:"m-btn-group"},pM.createElement("p",null,"\xA0"),pM.createElement("button",{className:"a-btn filter-toggle-button",onClick:()=>{t(Dw())}},e?"Close Filters":"Filter results")))};var U_=Fn(7810);const JO="has_narrative",I7=()=>{const t=Si(),n=sr(Ww)===!0;return U_.createElement("section",{className:"narratives-buttons"},U_.createElement("p",null,"Read"),U_.createElement("div",{className:"m-btn-group"},U_.createElement("button",{id:"btn-add-narratives",className:"a-btn"+$m(!0,n),disabled:n,onClick:()=>{t(Lw(JO,""))}},"Only complaints with narratives"),U_.createElement("button",{id:"btn-remove-narratives",className:"a-btn"+$m(!1,!!n),disabled:!n,onClick:()=>{t(Jm(JO,""))}},"All complaints")))},MP=()=>{const t=sr(tu),e=sr(vp),n=sr(jc),i=sr(ly),c=xs(t,e);return wS(c,{skip:n!==np||i===""})};var jy=Fn(7810);const j7=()=>{const t=Si(),e=sr(D3),{data:n}=MP(),i=n==null?void 0:n.hits,c=(n==null?void 0:n.totalPages)||0,S=n==null?void 0:n.breakPoints,F=()=>{t(C3(S))},nt=()=>{t(wo(S))};return i&&i.length>0?jy.createElement("nav",{className:"m-pagination",role:"navigation","aria-label":"Pagination"},jy.createElement("button",{className:"a-btn m-pagination__btn-prev",onClick:()=>nt(),disabled:e<=1},jy.createElement("span",{className:"a-btn__icon a-btn__icon--on-left"},Wi("left")),"Previous"),jy.createElement("button",{className:"a-btn m-pagination__btn-next",onClick:()=>F(),disabled:e>=c},"Next",jy.createElement("span",{className:"a-btn__icon a-btn__icon--on-right"},Wi("right"))),jy.createElement("div",{className:"m-pagination__form"},jy.createElement("label",{className:"m-pagination__label"},"Page ",e))):null};var H_=Fn(7810);const mM=({id:t,handleChange:e,label:n,title:i,value:c,values:S})=>{const F="select-"+t,nt=(0,W.useMemo)(()=>Array.isArray(S)?Object.prototype.hasOwnProperty.call(S[0],"name")?S:S.map(ut=>({name:ut,value:ut,disabled:ut.disabled})):Object.keys(S).map(ut=>({name:S[ut],value:ut,disabled:ut.disabled})),[S]);return H_.createElement("section",{className:"cf-select","data-tour":F},H_.createElement("label",{className:"u-visually-hidden",htmlFor:F},n),H_.createElement("p",null,i),H_.createElement("select",{value:c,id:F,onChange:e},nt.map(ut=>H_.createElement("option",{disabled:[ut.value,ut.name].includes(c)||ut.disabled,key:ut.name,value:ut.value||ut.name},ut.name))))},t4=mM;mM.propTypes={id:Rn().string,handleChange:Rn().func.isRequired,label:Rn().string,title:Rn().string,values:Rn().oneOfType([Rn().array,Rn().object]).isRequired,value:Rn().oneOfType([Rn().string,Rn().number])};const v$={};var B7=Fn(7810);const gM=()=>B7.createElement("span",{className:"separator"}),b$={};var V_=Fn(7810);const kP=()=>{const t=Si(),e=sr(jc),n=i=>{const c=i.toLowerCase()+" tab";return e===i?c+" active":c};return V_.createElement("div",{className:"tabbed-navigation","data-tour":"tabbed-navigation"},V_.createElement("section",null,V_.createElement("button",{className:n("Trends"),onClick:()=>t(Nf("Trends"))},Wi("chart"),"Trends"),V_.createElement("button",{className:n("List"),onClick:()=>t(Nf("List"))},Wi("list"),"List"),V_.createElement("button",{className:n("Map"),onClick:()=>t(Nf("Map"))},Wi("map"),"Map")))};var fl=Fn(7810);const F7="ERROR",e4="NO_RESULTS",z7="RESULTS",U7=()=>{const t=Si(),{data:e,isLoading:n,isFetching:i,error:c}=MP(),S=sr(R3),F=sr(L3),nt=sr(Eh),ut=(0,W.useMemo)(()=>nt<750,[nt]),yt=(e==null?void 0:e.hits)||[],_t=pe=>{const _e=pe.target.value;Ps("Dropdown",_e+" results"),t(rg(_e))},zt=pe=>{const{value:_e}=pe.target;Ps("Dropdown",Jv[_e]),t(fE(_e))},Ht=()=>c?F7:n||i||yt.length===0?e4:yt.length>0?z7:e4,oe={ERROR:()=>fl.createElement(QO,{text:"There was a problem executing your search"}),NO_RESULTS:()=>fl.createElement("h2",null,"No results were found for your search"),RESULTS:()=>fl.createElement("ul",{className:"cards-panel"},yt.map(pe=>fl.createElement(ZO,{key:pe.complaint_id,row:pe})))},de=Ht();return fl.createElement("section",{className:"list-panel"},fl.createElement(SP,null),fl.createElement(kP,null),!!ut&&fl.createElement(hM,null),fl.createElement(CP,null),fl.createElement("div",{className:"layout-row refine-bar"},fl.createElement(gM,null),fl.createElement(mM,{label:"Select the number of results to display at a time",title:"Show",values:rp,id:"size",value:S,handleChange:_t}),fl.createElement(mM,{label:"Choose the order in which the results are displayed",title:"Sort",values:Jv,id:"sort",value:F,handleChange:zt}),fl.createElement(I7,null)),oe[de](),fl.createElement(j7,null),fl.createElement(fp,{isLoading:n||i}))},x$={};var By=Fn(7810);const H7=()=>{const t=Si(),e=sr(Vw),n=e?e.filter(i=>i in U0).map(i=>U0[i]).join(", "):"";return By.createElement("div",{className:"map-toolbar"},By.createElement("section",{className:"state-heading"},!n&&By.createElement("span",null,"United States of America"),By.createElement("span",null,n),!!n&&By.createElement("button",{"aria-label":"Clear all map filters",className:"a-btn a-btn--link",onClick:()=>{t(Iw())}},Wi("delete-round"),"Clear")),!!n&&By.createElement("section",{className:"state-navigation"},By.createElement("button",{className:"list a-btn a-btn--link",onClick:()=>{t(Nf(np))}},"View complaints for filtered states")))};var Sb=Fn(7810);const V7=()=>{const t=sr(Hw),e=sr(pE),n=Si(),i=(0,W.useMemo)(()=>e?$m(t,z0):"a-btn__disabled",[t,e]);return Sb.createElement("section",{className:"per-capita"},Sb.createElement("p",null,"Map shading"),Sb.createElement("div",{className:"m-btn-group"},Sb.createElement("button",{"aria-label":"Display map by complaints",className:"a-btn"+$m(t,Cc),onClick:()=>{n(Rw(Cc))},disabled:t===Cc},"Complaints"),Sb.createElement("button",{"aria-label":"Display map by complaints per 1,000 people",className:"a-btn "+i,disabled:t===z0||!e,onClick:()=>{n(Rw(z0))}},"Complaints per 1,000 ",Sb.createElement("span",null,"population"))))},w$={};function W7(){}function TP(t){return t==null?W7:function(){return this.querySelector(t)}}function Y7(t){typeof t!="function"&&(t=TP(t));for(var e=this._groups,n=e.length,i=new Array(n),c=0;c<n;++c)for(var S=e[c],F=S.length,nt=i[c]=new Array(F),ut,yt,_t=0;_t<F;++_t)(ut=S[_t])&&(yt=t.call(ut,ut.__data__,_t,S))&&("__data__"in ut&&(yt.__data__=ut.__data__),nt[_t]=yt);return new Mh(i,this._parents)}function q7(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function $7(){return[]}function n4(t){return t==null?$7:function(){return this.querySelectorAll(t)}}function X7(t){return function(){return q7(t.apply(this,arguments))}}function G7(t){typeof t=="function"?t=X7(t):t=n4(t);for(var e=this._groups,n=e.length,i=[],c=[],S=0;S<n;++S)for(var F=e[S],nt=F.length,ut,yt=0;yt<nt;++yt)(ut=F[yt])&&(i.push(t.call(ut,ut.__data__,yt,F)),c.push(ut));return new Mh(i,c)}function r4(t){return function(){return this.matches(t)}}function i4(t){return function(e){return e.matches(t)}}var K7=Array.prototype.find;function Z7(t){return function(){return K7.call(this.children,t)}}function Q7(){return this.firstElementChild}function J7(t){return this.select(t==null?Q7:Z7(typeof t=="function"?t:i4(t)))}var t8=Array.prototype.filter;function e8(){return Array.from(this.children)}function n8(t){return function(){return t8.call(this.children,t)}}function r8(t){return this.selectAll(t==null?e8:n8(typeof t=="function"?t:i4(t)))}function i8(t){typeof t!="function"&&(t=r4(t));for(var e=this._groups,n=e.length,i=new Array(n),c=0;c<n;++c)for(var S=e[c],F=S.length,nt=i[c]=[],ut,yt=0;yt<F;++yt)(ut=S[yt])&&t.call(ut,ut.__data__,yt,S)&&nt.push(ut);return new Mh(i,this._parents)}function o4(t){return new Array(t.length)}function o8(){return new Mh(this._enter||this._groups.map(o4),this._parents)}function yM(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}yM.prototype={constructor:yM,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function a8(t){return function(){return t}}function s8(t,e,n,i,c,S){for(var F=0,nt,ut=e.length,yt=S.length;F<yt;++F)(nt=e[F])?(nt.__data__=S[F],i[F]=nt):n[F]=new yM(t,S[F]);for(;F<ut;++F)(nt=e[F])&&(c[F]=nt)}function l8(t,e,n,i,c,S,F){var nt,ut,yt=new Map,_t=e.length,zt=S.length,Ht=new Array(_t),Yt;for(nt=0;nt<_t;++nt)(ut=e[nt])&&(Ht[nt]=Yt=F.call(ut,ut.__data__,nt,e)+"",yt.has(Yt)?c[nt]=ut:yt.set(Yt,ut));for(nt=0;nt<zt;++nt)Yt=F.call(t,S[nt],nt,S)+"",(ut=yt.get(Yt))?(i[nt]=ut,ut.__data__=S[nt],yt.delete(Yt)):n[nt]=new yM(t,S[nt]);for(nt=0;nt<_t;++nt)(ut=e[nt])&&yt.get(Ht[nt])===ut&&(c[nt]=ut)}function u8(t){return t.__data__}function c8(t,e){if(!arguments.length)return Array.from(this,u8);var n=e?l8:s8,i=this._parents,c=this._groups;typeof t!="function"&&(t=a8(t));for(var S=c.length,F=new Array(S),nt=new Array(S),ut=new Array(S),yt=0;yt<S;++yt){var _t=i[yt],zt=c[yt],Ht=zt.length,Yt=h8(t.call(_t,_t&&_t.__data__,yt,i)),re=Yt.length,ue=nt[yt]=new Array(re),oe=F[yt]=new Array(re),de=ut[yt]=new Array(Ht);n(_t,zt,ue,oe,de,Yt,e);for(var pe=0,_e=0,ge,qe;pe<re;++pe)if(ge=ue[pe]){for(pe>=_e&&(_e=pe+1);!(qe=oe[_e])&&++_e<re;);ge._next=qe||null}}return F=new Mh(F,i),F._enter=nt,F._exit=ut,F}function h8(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function f8(){return new Mh(this._exit||this._groups.map(o4),this._parents)}function d8(t,e,n){var i=this.enter(),c=this,S=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(c=e(c),c&&(c=c.selection())),n==null?S.remove():n(S),i&&c?i.merge(c).order():c}function p8(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,c=n.length,S=i.length,F=Math.min(c,S),nt=new Array(c),ut=0;ut<F;++ut)for(var yt=n[ut],_t=i[ut],zt=yt.length,Ht=nt[ut]=new Array(zt),Yt,re=0;re<zt;++re)(Yt=yt[re]||_t[re])&&(Ht[re]=Yt);for(;ut<c;++ut)nt[ut]=n[ut];return new Mh(nt,this._parents)}function m8(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i=t[e],c=i.length-1,S=i[c],F;--c>=0;)(F=i[c])&&(S&&F.compareDocumentPosition(S)^4&&S.parentNode.insertBefore(F,S),S=F);return this}function g8(t){t||(t=y8);function e(zt,Ht){return zt&&Ht?t(zt.__data__,Ht.__data__):!zt-!Ht}for(var n=this._groups,i=n.length,c=new Array(i),S=0;S<i;++S){for(var F=n[S],nt=F.length,ut=c[S]=new Array(nt),yt,_t=0;_t<nt;++_t)(yt=F[_t])&&(ut[_t]=yt);ut.sort(e)}return new Mh(c,this._parents).order()}function y8(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function v8(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function b8(){return Array.from(this)}function x8(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],c=0,S=i.length;c<S;++c){var F=i[c];if(F)return F}return null}function w8(){let t=0;for(const e of this)++t;return t}function _8(){return!this.node()}function S8(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var c=e[n],S=0,F=c.length,nt;S<F;++S)(nt=c[S])&&t.call(nt,nt.__data__,S,c);return this}var AP="http://www.w3.org/1999/xhtml";const a4={svg:"http://www.w3.org/2000/svg",xhtml:AP,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function vM(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),a4.hasOwnProperty(e)?{space:a4[e],local:t}:t}function E8(t){return function(){this.removeAttribute(t)}}function C8(t){return function(){this.removeAttributeNS(t.space,t.local)}}function M8(t,e){return function(){this.setAttribute(t,e)}}function k8(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function T8(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function A8(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function P8(t,e){var n=vM(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((e==null?n.local?C8:E8:typeof e=="function"?n.local?A8:T8:n.local?k8:M8)(n,e))}function s4(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function O8(t){return function(){this.style.removeProperty(t)}}function N8(t,e,n){return function(){this.style.setProperty(t,e,n)}}function D8(t,e,n){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function R8(t,e,n){return arguments.length>1?this.each((e==null?O8:typeof e=="function"?D8:N8)(t,e,n==null?"":n)):Eb(this.node(),t)}function Eb(t,e){return t.style.getPropertyValue(e)||s4(t).getComputedStyle(t,null).getPropertyValue(e)}function L8(t){return function(){delete this[t]}}function I8(t,e){return function(){this[t]=e}}function j8(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function B8(t,e){return arguments.length>1?this.each((e==null?L8:typeof e=="function"?j8:I8)(t,e)):this.node()[t]}function l4(t){return t.trim().split(/^|\s+/)}function PP(t){return t.classList||new u4(t)}function u4(t){this._node=t,this._names=l4(t.getAttribute("class")||"")}u4.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function c4(t,e){for(var n=PP(t),i=-1,c=e.length;++i<c;)n.add(e[i])}function h4(t,e){for(var n=PP(t),i=-1,c=e.length;++i<c;)n.remove(e[i])}function F8(t){return function(){c4(this,t)}}function z8(t){return function(){h4(this,t)}}function U8(t,e){return function(){(e.apply(this,arguments)?c4:h4)(this,t)}}function H8(t,e){var n=l4(t+"");if(arguments.length<2){for(var i=PP(this.node()),c=-1,S=n.length;++c<S;)if(!i.contains(n[c]))return!1;return!0}return this.each((typeof e=="function"?U8:e?F8:z8)(n,e))}function V8(){this.textContent=""}function W8(t){return function(){this.textContent=t}}function Y8(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function q8(t){return arguments.length?this.each(t==null?V8:(typeof t=="function"?Y8:W8)(t)):this.node().textContent}function $8(){this.innerHTML=""}function X8(t){return function(){this.innerHTML=t}}function G8(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function K8(t){return arguments.length?this.each(t==null?$8:(typeof t=="function"?G8:X8)(t)):this.node().innerHTML}function Z8(){this.nextSibling&&this.parentNode.appendChild(this)}function Q8(){return this.each(Z8)}function J8(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function tL(){return this.each(J8)}function eL(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===AP&&e.documentElement.namespaceURI===AP?e.createElement(t):e.createElementNS(n,t)}}function nL(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function f4(t){var e=vM(t);return(e.local?nL:eL)(e)}function rL(t){var e=typeof t=="function"?t:f4(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function iL(){return null}function oL(t,e){var n=typeof t=="function"?t:f4(t),i=e==null?iL:typeof e=="function"?e:TP(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function aL(){var t=this.parentNode;t&&t.removeChild(this)}function sL(){return this.each(aL)}function lL(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function uL(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function cL(t){return this.select(t?uL:lL)}function hL(t){return arguments.length?this.property("__data__",t):this.node().__data__}function fL(t){return function(e){t.call(this,e,this.__data__)}}function dL(t){return t.trim().split(/^|\s+/).map(function(e){var n="",i=e.indexOf(".");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{type:e,name:n}})}function pL(t){return function(){var e=this.__on;if(e){for(var n=0,i=-1,c=e.length,S;n<c;++n)S=e[n],(!t.type||S.type===t.type)&&S.name===t.name?this.removeEventListener(S.type,S.listener,S.options):e[++i]=S;++i?e.length=i:delete this.__on}}}function mL(t,e,n){return function(){var i=this.__on,c,S=fL(e);if(i){for(var F=0,nt=i.length;F<nt;++F)if((c=i[F]).type===t.type&&c.name===t.name){this.removeEventListener(c.type,c.listener,c.options),this.addEventListener(c.type,c.listener=S,c.options=n),c.value=e;return}}this.addEventListener(t.type,S,n),c={type:t.type,name:t.name,value:e,listener:S,options:n},i?i.push(c):this.__on=[c]}}function gL(t,e,n){var i=dL(t+""),c,S=i.length,F;if(arguments.length<2){var nt=this.node().__on;if(nt){for(var ut=0,yt=nt.length,_t;ut<yt;++ut)for(c=0,_t=nt[ut];c<S;++c)if((F=i[c]).type===_t.type&&F.name===_t.name)return _t.value}return}for(nt=e?mL:pL,c=0;c<S;++c)this.each(nt(i[c],e,n));return this}function d4(t,e,n){var i=s4(t),c=i.CustomEvent;typeof c=="function"?c=new c(e,n):(c=i.document.createEvent("Event"),n?(c.initEvent(e,n.bubbles,n.cancelable),c.detail=n.detail):c.initEvent(e,!1,!1)),t.dispatchEvent(c)}function yL(t,e){return function(){return d4(this,t,e)}}function vL(t,e){return function(){return d4(this,t,e.apply(this,arguments))}}function bL(t,e){return this.each((typeof e=="function"?vL:yL)(t,e))}function*xL(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],c=0,S=i.length,F;c<S;++c)(F=i[c])&&(yield F)}var wL=[null];function Mh(t,e){this._groups=t,this._parents=e}function p4(){return new Mh([[document.documentElement]],wL)}function _L(){return this}Mh.prototype=p4.prototype={constructor:Mh,select:Y7,selectAll:G7,selectChild:J7,selectChildren:r8,filter:i8,data:c8,enter:o8,exit:f8,join:d8,merge:p8,selection:_L,order:m8,sort:g8,call:v8,nodes:b8,node:x8,size:w8,empty:_8,each:S8,attr:P8,style:R8,property:B8,classed:H8,text:q8,html:K8,raise:Q8,lower:tL,append:rL,insert:oL,remove:sL,clone:cL,datum:hL,on:gL,dispatch:bL,[Symbol.iterator]:xL};const W_=p4;var SL={value:()=>{}};function m4(){for(var t=0,e=arguments.length,n={},i;t<e;++t){if(!(i=arguments[t]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new bM(n)}function bM(t){this._=t}function EL(t,e){return t.trim().split(/^|\s+/).map(function(n){var i="",c=n.indexOf(".");if(c>=0&&(i=n.slice(c+1),n=n.slice(0,c)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}bM.prototype=m4.prototype={constructor:bM,on:function(t,e){var n=this._,i=EL(t+"",n),c,S=-1,F=i.length;if(arguments.length<2){for(;++S<F;)if((c=(t=i[S]).type)&&(c=CL(n[c],t.name)))return c;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++S<F;)if(c=(t=i[S]).type)n[c]=g4(n[c],t.name,e);else if(e==null)for(c in n)n[c]=g4(n[c],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new bM(t)},call:function(t,e){if((c=arguments.length-2)>0)for(var n=new Array(c),i=0,c,S;i<c;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(S=this._[t],i=0,c=S.length;i<c;++i)S[i].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],c=0,S=i.length;c<S;++c)i[c].value.apply(e,n)}};function CL(t,e){for(var n=0,i=t.length,c;n<i;++n)if((c=t[n]).name===e)return c.value}function g4(t,e,n){for(var i=0,c=t.length;i<c;++i)if(t[i].name===e){t[i]=SL,t=t.slice(0,i).concat(t.slice(i+1));break}return n!=null&&t.push({name:e,value:n}),t}const ML=m4;var Cb=0,Y_=0,q_=0,y4=1e3,xM,$_,wM=0,Fy=0,_M=0,X_=typeof performance=="object"&&performance.now?performance:Date,v4=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function OP(){return Fy||(v4(kL),Fy=X_.now()+_M)}function kL(){Fy=0}function SM(){this._call=this._time=this._next=null}SM.prototype=b4.prototype={constructor:SM,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?OP():+n)+(e==null?0:+e),!this._next&&$_!==this&&($_?$_._next=this:xM=this,$_=this),this._call=t,this._time=n,NP()},stop:function(){this._call&&(this._call=null,this._time=1/0,NP())}};function b4(t,e,n){var i=new SM;return i.restart(t,e,n),i}function TL(){OP(),++Cb;for(var t=xM,e;t;)(e=Fy-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Cb}function x4(){Fy=(wM=X_.now())+_M,Cb=Y_=0;try{TL()}finally{Cb=0,PL(),Fy=0}}function AL(){var t=X_.now(),e=t-wM;e>y4&&(_M-=e,wM=t)}function PL(){for(var t,e=xM,n,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:xM=n);$_=t,NP(i)}function NP(t){if(!Cb){Y_&&(Y_=clearTimeout(Y_));var e=t-Fy;e>24?(t<1/0&&(Y_=setTimeout(x4,t-X_.now()-_M)),q_&&(q_=clearInterval(q_))):(q_||(wM=X_.now(),q_=setInterval(AL,y4)),Cb=1,v4(x4))}}function w4(t,e,n){var i=new SM;return e=e==null?0:+e,i.restart(c=>{i.stop(),t(c+e)},e,n),i}var OL=ML("start","end","cancel","interrupt"),NL=[],_4=0,S4=1,DP=2,EM=3,E4=4,RP=5,CM=6;function MM(t,e,n,i,c,S){var F=t.__transition;if(!F)t.__transition={};else if(n in F)return;DL(t,n,{name:e,index:i,group:c,on:OL,tween:NL,time:S.time,delay:S.delay,duration:S.duration,ease:S.ease,timer:null,state:_4})}function LP(t,e){var n=kh(t,e);if(n.state>_4)throw new Error("too late; already scheduled");return n}function Hf(t,e){var n=kh(t,e);if(n.state>EM)throw new Error("too late; already running");return n}function kh(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function DL(t,e,n){var i=t.__transition,c;i[e]=n,n.timer=b4(S,0,n.time);function S(yt){n.state=S4,n.timer.restart(F,n.delay,n.time),n.delay<=yt&&F(yt-n.delay)}function F(yt){var _t,zt,Ht,Yt;if(n.state!==S4)return ut();for(_t in i)if(Yt=i[_t],Yt.name===n.name){if(Yt.state===EM)return w4(F);Yt.state===E4?(Yt.state=CM,Yt.timer.stop(),Yt.on.call("interrupt",t,t.__data__,Yt.index,Yt.group),delete i[_t]):+_t<e&&(Yt.state=CM,Yt.timer.stop(),Yt.on.call("cancel",t,t.__data__,Yt.index,Yt.group),delete i[_t])}if(w4(function(){n.state===EM&&(n.state=E4,n.timer.restart(nt,n.delay,n.time),nt(yt))}),n.state=DP,n.on.call("start",t,t.__data__,n.index,n.group),n.state===DP){for(n.state=EM,c=new Array(Ht=n.tween.length),_t=0,zt=-1;_t<Ht;++_t)(Yt=n.tween[_t].value.call(t,t.__data__,n.index,n.group))&&(c[++zt]=Yt);c.length=zt+1}}function nt(yt){for(var _t=yt<n.duration?n.ease.call(null,yt/n.duration):(n.timer.restart(ut),n.state=RP,1),zt=-1,Ht=c.length;++zt<Ht;)c[zt].call(t,_t);n.state===RP&&(n.on.call("end",t,t.__data__,n.index,n.group),ut())}function ut(){n.state=CM,n.timer.stop(),delete i[e];for(var yt in i)return;delete t.__transition}}function RL(t,e){var n=t.__transition,i,c,S=!0,F;if(n){e=e==null?null:e+"";for(F in n){if((i=n[F]).name!==e){S=!1;continue}c=i.state>DP&&i.state<RP,i.state=CM,i.timer.stop(),i.on.call(c?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete n[F]}S&&delete t.__transition}}function LL(t){return this.each(function(){RL(this,t)})}function _g(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var C4=180/Math.PI,IP={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function M4(t,e,n,i,c,S){var F,nt,ut;return(F=Math.sqrt(t*t+e*e))&&(t/=F,e/=F),(ut=t*n+e*i)&&(n-=t*ut,i-=e*ut),(nt=Math.sqrt(n*n+i*i))&&(n/=nt,i/=nt,ut/=nt),t*i<e*n&&(t=-t,e=-e,ut=-ut,F=-F),{translateX:c,translateY:S,rotate:Math.atan2(e,t)*C4,skewX:Math.atan(ut)*C4,scaleX:F,scaleY:nt}}var kM;function IL(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?IP:M4(e.a,e.b,e.c,e.d,e.e,e.f)}function jL(t){return t==null||(kM||(kM=document.createElementNS("http://www.w3.org/2000/svg","g")),kM.setAttribute("transform",t),!(t=kM.transform.baseVal.consolidate()))?IP:(t=t.matrix,M4(t.a,t.b,t.c,t.d,t.e,t.f))}function k4(t,e,n,i){function c(yt){return yt.length?yt.pop()+" ":""}function S(yt,_t,zt,Ht,Yt,re){if(yt!==zt||_t!==Ht){var ue=Yt.push("translate(",null,e,null,n);re.push({i:ue-4,x:_g(yt,zt)},{i:ue-2,x:_g(_t,Ht)})}else(zt||Ht)&&Yt.push("translate("+zt+e+Ht+n)}function F(yt,_t,zt,Ht){yt!==_t?(yt-_t>180?_t+=360:_t-yt>180&&(yt+=360),Ht.push({i:zt.push(c(zt)+"rotate(",null,i)-2,x:_g(yt,_t)})):_t&&zt.push(c(zt)+"rotate("+_t+i)}function nt(yt,_t,zt,Ht){yt!==_t?Ht.push({i:zt.push(c(zt)+"skewX(",null,i)-2,x:_g(yt,_t)}):_t&&zt.push(c(zt)+"skewX("+_t+i)}function ut(yt,_t,zt,Ht,Yt,re){if(yt!==zt||_t!==Ht){var ue=Yt.push(c(Yt)+"scale(",null,",",null,")");re.push({i:ue-4,x:_g(yt,zt)},{i:ue-2,x:_g(_t,Ht)})}else(zt!==1||Ht!==1)&&Yt.push(c(Yt)+"scale("+zt+","+Ht+")")}return function(yt,_t){var zt=[],Ht=[];return yt=t(yt),_t=t(_t),S(yt.translateX,yt.translateY,_t.translateX,_t.translateY,zt,Ht),F(yt.rotate,_t.rotate,zt,Ht),nt(yt.skewX,_t.skewX,zt,Ht),ut(yt.scaleX,yt.scaleY,_t.scaleX,_t.scaleY,zt,Ht),yt=_t=null,function(Yt){for(var re=-1,ue=Ht.length,oe;++re<ue;)zt[(oe=Ht[re]).i]=oe.x(Yt);return zt.join("")}}}var BL=k4(IL,"px, ","px)","deg)"),FL=k4(jL,", ",")",")");function zL(t,e){var n,i;return function(){var c=Hf(this,t),S=c.tween;if(S!==n){i=n=S;for(var F=0,nt=i.length;F<nt;++F)if(i[F].name===e){i=i.slice(),i.splice(F,1);break}}c.tween=i}}function UL(t,e,n){var i,c;if(typeof n!="function")throw new Error;return function(){var S=Hf(this,t),F=S.tween;if(F!==i){c=(i=F).slice();for(var nt={name:e,value:n},ut=0,yt=c.length;ut<yt;++ut)if(c[ut].name===e){c[ut]=nt;break}ut===yt&&c.push(nt)}S.tween=c}}function HL(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i=kh(this.node(),n).tween,c=0,S=i.length,F;c<S;++c)if((F=i[c]).name===t)return F.value;return null}return this.each((e==null?zL:UL)(n,t,e))}function jP(t,e,n){var i=t._id;return t.each(function(){var c=Hf(this,i);(c.value||(c.value={}))[e]=n.apply(this,arguments)}),function(c){return kh(c,i).value[e]}}function BP(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function T4(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function G_(){}var K_=.7,TM=1/K_,Mb="\\s*([+-]?\\d+)\\s*",Z_="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",VL=/^#([0-9a-f]{3,8})$/,WL=new RegExp(`^rgb\\(${Mb},${Mb},${Mb}\\)$`),YL=new RegExp(`^rgb\\(${Vf},${Vf},${Vf}\\)$`),qL=new RegExp(`^rgba\\(${Mb},${Mb},${Mb},${Z_}\\)$`),$L=new RegExp(`^rgba\\(${Vf},${Vf},${Vf},${Z_}\\)$`),XL=new RegExp(`^hsl\\(${Z_},${Vf},${Vf}\\)$`),GL=new RegExp(`^hsla\\(${Z_},${Vf},${Vf},${Z_}\\)$`),A4={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};BP(G_,Q_,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:P4,formatHex:P4,formatHex8:KL,formatHsl:ZL,formatRgb:O4,toString:O4});function P4(){return this.rgb().formatHex()}function KL(){return this.rgb().formatHex8()}function ZL(){return I4(this).formatHsl()}function O4(){return this.rgb().formatRgb()}function Q_(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=VL.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?N4(e):n===3?new fu(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?AM(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?AM(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=WL.exec(t))?new fu(e[1],e[2],e[3],1):(e=YL.exec(t))?new fu(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=qL.exec(t))?AM(e[1],e[2],e[3],e[4]):(e=$L.exec(t))?AM(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=XL.exec(t))?L4(e[1],e[2]/100,e[3]/100,1):(e=GL.exec(t))?L4(e[1],e[2]/100,e[3]/100,e[4]):A4.hasOwnProperty(t)?N4(A4[t]):t==="transparent"?new fu(NaN,NaN,NaN,0):null}function N4(t){return new fu(t>>16&255,t>>8&255,t&255,1)}function AM(t,e,n,i){return i<=0&&(t=e=n=NaN),new fu(t,e,n,i)}function QL(t){return t instanceof G_||(t=Q_(t)),t?(t=t.rgb(),new fu(t.r,t.g,t.b,t.opacity)):new fu}function PM(t,e,n,i){return arguments.length===1?QL(t):new fu(t,e,n,i==null?1:i)}function fu(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}BP(fu,PM,T4(G_,{brighter(t){return t=t==null?TM:Math.pow(TM,t),new fu(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?K_:Math.pow(K_,t),new fu(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new fu(zy(this.r),zy(this.g),zy(this.b),OM(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:D4,formatHex:D4,formatHex8:JL,formatRgb:R4,toString:R4}));function D4(){return`#${Uy(this.r)}${Uy(this.g)}${Uy(this.b)}`}function JL(){return`#${Uy(this.r)}${Uy(this.g)}${Uy(this.b)}${Uy((isNaN(this.opacity)?1:this.opacity)*255)}`}function R4(){const t=OM(this.opacity);return`${t===1?"rgb(":"rgba("}${zy(this.r)}, ${zy(this.g)}, ${zy(this.b)}${t===1?")":`, ${t})`}`}function OM(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function zy(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Uy(t){return t=zy(t),(t<16?"0":"")+t.toString(16)}function L4(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Th(t,e,n,i)}function I4(t){if(t instanceof Th)return new Th(t.h,t.s,t.l,t.opacity);if(t instanceof G_||(t=Q_(t)),!t)return new Th;if(t instanceof Th)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,c=Math.min(e,n,i),S=Math.max(e,n,i),F=NaN,nt=S-c,ut=(S+c)/2;return nt?(e===S?F=(n-i)/nt+(n<i)*6:n===S?F=(i-e)/nt+2:F=(e-n)/nt+4,nt/=ut<.5?S+c:2-S-c,F*=60):nt=ut>0&&ut<1?0:F,new Th(F,nt,ut,t.opacity)}function tI(t,e,n,i){return arguments.length===1?I4(t):new Th(t,e,n,i==null?1:i)}function Th(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}BP(Th,tI,T4(G_,{brighter(t){return t=t==null?TM:Math.pow(TM,t),new Th(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?K_:Math.pow(K_,t),new Th(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,c=2*n-i;return new fu(FP(t>=240?t-240:t+120,c,i),FP(t,c,i),FP(t<120?t+240:t-120,c,i),this.opacity)},clamp(){return new Th(j4(this.h),NM(this.s),NM(this.l),OM(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=OM(this.opacity);return`${t===1?"hsl(":"hsla("}${j4(this.h)}, ${NM(this.s)*100}%, ${NM(this.l)*100}%${t===1?")":`, ${t})`}`}}));function j4(t){return t=(t||0)%360,t<0?t+360:t}function NM(t){return Math.max(0,Math.min(1,t||0))}function FP(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function B4(t,e,n,i,c){var S=t*t,F=S*t;return((1-3*t+3*S-F)*e+(4-6*S+3*F)*n+(1+3*t+3*S-3*F)*i+F*c)/6}function eI(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),c=t[i],S=t[i+1],F=i>0?t[i-1]:2*c-S,nt=i<e-1?t[i+2]:2*S-c;return B4((n-i/e)*e,F,c,S,nt)}}function nI(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),c=t[(i+e-1)%e],S=t[i%e],F=t[(i+1)%e],nt=t[(i+2)%e];return B4((n-i/e)*e,c,S,F,nt)}}const F4=t=>()=>t;function z4(t,e){return function(n){return t+n*e}}function rI(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}function _$(t,e){var n=e-t;return n?z4(t,n>180||n<-180?n-360*Math.round(n/360):n):constant(isNaN(t)?e:t)}function iI(t){return(t=+t)==1?U4:function(e,n){return n-e?rI(e,n,t):F4(isNaN(e)?n:e)}}function U4(t,e){var n=e-t;return n?z4(t,n):F4(isNaN(t)?e:t)}const H4=function t(e){var n=iI(e);function i(c,S){var F=n((c=PM(c)).r,(S=PM(S)).r),nt=n(c.g,S.g),ut=n(c.b,S.b),yt=U4(c.opacity,S.opacity);return function(_t){return c.r=F(_t),c.g=nt(_t),c.b=ut(_t),c.opacity=yt(_t),c+""}}return i.gamma=t,i}(1);function V4(t){return function(e){var n=e.length,i=new Array(n),c=new Array(n),S=new Array(n),F,nt;for(F=0;F<n;++F)nt=PM(e[F]),i[F]=nt.r||0,c[F]=nt.g||0,S[F]=nt.b||0;return i=t(i),c=t(c),S=t(S),nt.opacity=1,function(ut){return nt.r=i(ut),nt.g=c(ut),nt.b=S(ut),nt+""}}}var S$=V4(eI),E$=V4(nI),zP=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,UP=new RegExp(zP.source,"g");function oI(t){return function(){return t}}function aI(t){return function(e){return t(e)+""}}function sI(t,e){var n=zP.lastIndex=UP.lastIndex=0,i,c,S,F=-1,nt=[],ut=[];for(t=t+"",e=e+"";(i=zP.exec(t))&&(c=UP.exec(e));)(S=c.index)>n&&(S=e.slice(n,S),nt[F]?nt[F]+=S:nt[++F]=S),(i=i[0])===(c=c[0])?nt[F]?nt[F]+=c:nt[++F]=c:(nt[++F]=null,ut.push({i:F,x:_g(i,c)})),n=UP.lastIndex;return n<e.length&&(S=e.slice(n),nt[F]?nt[F]+=S:nt[++F]=S),nt.length<2?ut[0]?aI(ut[0].x):oI(e):(e=ut.length,function(yt){for(var _t=0,zt;_t<e;++_t)nt[(zt=ut[_t]).i]=zt.x(yt);return nt.join("")})}function W4(t,e){var n;return(typeof e=="number"?_g:e instanceof Q_?H4:(n=Q_(e))?(e=n,H4):sI)(t,e)}function lI(t){return function(){this.removeAttribute(t)}}function uI(t){return function(){this.removeAttributeNS(t.space,t.local)}}function cI(t,e,n){var i,c=n+"",S;return function(){var F=this.getAttribute(t);return F===c?null:F===i?S:S=e(i=F,n)}}function hI(t,e,n){var i,c=n+"",S;return function(){var F=this.getAttributeNS(t.space,t.local);return F===c?null:F===i?S:S=e(i=F,n)}}function fI(t,e,n){var i,c,S;return function(){var F,nt=n(this),ut;return nt==null?void this.removeAttribute(t):(F=this.getAttribute(t),ut=nt+"",F===ut?null:F===i&&ut===c?S:(c=ut,S=e(i=F,nt)))}}function dI(t,e,n){var i,c,S;return function(){var F,nt=n(this),ut;return nt==null?void this.removeAttributeNS(t.space,t.local):(F=this.getAttributeNS(t.space,t.local),ut=nt+"",F===ut?null:F===i&&ut===c?S:(c=ut,S=e(i=F,nt)))}}function pI(t,e){var n=vM(t),i=n==="transform"?FL:W4;return this.attrTween(t,typeof e=="function"?(n.local?dI:fI)(n,i,jP(this,"attr."+t,e)):e==null?(n.local?uI:lI)(n):(n.local?hI:cI)(n,i,e))}function mI(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function gI(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function yI(t,e){var n,i;function c(){var S=e.apply(this,arguments);return S!==i&&(n=(i=S)&&gI(t,S)),n}return c._value=e,c}function vI(t,e){var n,i;function c(){var S=e.apply(this,arguments);return S!==i&&(n=(i=S)&&mI(t,S)),n}return c._value=e,c}function bI(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var i=vM(t);return this.tween(n,(i.local?yI:vI)(i,e))}function xI(t,e){return function(){LP(this,t).delay=+e.apply(this,arguments)}}function wI(t,e){return e=+e,function(){LP(this,t).delay=e}}function _I(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?xI:wI)(e,t)):kh(this.node(),e).delay}function SI(t,e){return function(){Hf(this,t).duration=+e.apply(this,arguments)}}function EI(t,e){return e=+e,function(){Hf(this,t).duration=e}}function CI(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?SI:EI)(e,t)):kh(this.node(),e).duration}function MI(t,e){if(typeof e!="function")throw new Error;return function(){Hf(this,t).ease=e}}function kI(t){var e=this._id;return arguments.length?this.each(MI(e,t)):kh(this.node(),e).ease}function TI(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;Hf(this,t).ease=n}}function AI(t){if(typeof t!="function")throw new Error;return this.each(TI(this._id,t))}function PI(t){typeof t!="function"&&(t=r4(t));for(var e=this._groups,n=e.length,i=new Array(n),c=0;c<n;++c)for(var S=e[c],F=S.length,nt=i[c]=[],ut,yt=0;yt<F;++yt)(ut=S[yt])&&t.call(ut,ut.__data__,yt,S)&&nt.push(ut);return new Np(i,this._parents,this._name,this._id)}function OI(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,c=n.length,S=Math.min(i,c),F=new Array(i),nt=0;nt<S;++nt)for(var ut=e[nt],yt=n[nt],_t=ut.length,zt=F[nt]=new Array(_t),Ht,Yt=0;Yt<_t;++Yt)(Ht=ut[Yt]||yt[Yt])&&(zt[Yt]=Ht);for(;nt<i;++nt)F[nt]=e[nt];return new Np(F,this._parents,this._name,this._id)}function NI(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function DI(t,e,n){var i,c,S=NI(e)?LP:Hf;return function(){var F=S(this,t),nt=F.on;nt!==i&&(c=(i=nt).copy()).on(e,n),F.on=c}}function RI(t,e){var n=this._id;return arguments.length<2?kh(this.node(),n).on.on(t):this.each(DI(n,t,e))}function LI(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function II(){return this.on("end.remove",LI(this._id))}function jI(t){var e=this._name,n=this._id;typeof t!="function"&&(t=TP(t));for(var i=this._groups,c=i.length,S=new Array(c),F=0;F<c;++F)for(var nt=i[F],ut=nt.length,yt=S[F]=new Array(ut),_t,zt,Ht=0;Ht<ut;++Ht)(_t=nt[Ht])&&(zt=t.call(_t,_t.__data__,Ht,nt))&&("__data__"in _t&&(zt.__data__=_t.__data__),yt[Ht]=zt,MM(yt[Ht],e,n,Ht,yt,kh(_t,n)));return new Np(S,this._parents,e,n)}function BI(t){var e=this._name,n=this._id;typeof t!="function"&&(t=n4(t));for(var i=this._groups,c=i.length,S=[],F=[],nt=0;nt<c;++nt)for(var ut=i[nt],yt=ut.length,_t,zt=0;zt<yt;++zt)if(_t=ut[zt]){for(var Ht=t.call(_t,_t.__data__,zt,ut),Yt,re=kh(_t,n),ue=0,oe=Ht.length;ue<oe;++ue)(Yt=Ht[ue])&&MM(Yt,e,n,ue,Ht,re);S.push(Ht),F.push(_t)}return new Np(S,F,e,n)}var FI=W_.prototype.constructor;function zI(){return new FI(this._groups,this._parents)}function UI(t,e){var n,i,c;return function(){var S=Eb(this,t),F=(this.style.removeProperty(t),Eb(this,t));return S===F?null:S===n&&F===i?c:c=e(n=S,i=F)}}function Y4(t){return function(){this.style.removeProperty(t)}}function HI(t,e,n){var i,c=n+"",S;return function(){var F=Eb(this,t);return F===c?null:F===i?S:S=e(i=F,n)}}function VI(t,e,n){var i,c,S;return function(){var F=Eb(this,t),nt=n(this),ut=nt+"";return nt==null&&(ut=nt=(this.style.removeProperty(t),Eb(this,t))),F===ut?null:F===i&&ut===c?S:(c=ut,S=e(i=F,nt))}}function WI(t,e){var n,i,c,S="style."+e,F="end."+S,nt;return function(){var ut=Hf(this,t),yt=ut.on,_t=ut.value[S]==null?nt||(nt=Y4(e)):void 0;(yt!==n||c!==_t)&&(i=(n=yt).copy()).on(F,c=_t),ut.on=i}}function YI(t,e,n){var i=(t+="")=="transform"?BL:W4;return e==null?this.styleTween(t,UI(t,i)).on("end.style."+t,Y4(t)):typeof e=="function"?this.styleTween(t,VI(t,i,jP(this,"style."+t,e))).each(WI(this._id,t)):this.styleTween(t,HI(t,i,e),n).on("end.style."+t,null)}function qI(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function $I(t,e,n){var i,c;function S(){var F=e.apply(this,arguments);return F!==c&&(i=(c=F)&&qI(t,F,n)),i}return S._value=e,S}function XI(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,$I(t,e,n==null?"":n))}function GI(t){return function(){this.textContent=t}}function KI(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function ZI(t){return this.tween("text",typeof t=="function"?KI(jP(this,"text",t)):GI(t==null?"":t+""))}function QI(t){return function(e){this.textContent=t.call(this,e)}}function JI(t){var e,n;function i(){var c=t.apply(this,arguments);return c!==n&&(e=(n=c)&&QI(c)),e}return i._value=t,i}function t9(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,JI(t))}function e9(){for(var t=this._name,e=this._id,n=q4(),i=this._groups,c=i.length,S=0;S<c;++S)for(var F=i[S],nt=F.length,ut,yt=0;yt<nt;++yt)if(ut=F[yt]){var _t=kh(ut,e);MM(ut,t,n,yt,F,{time:_t.time+_t.delay+_t.duration,delay:0,duration:_t.duration,ease:_t.ease})}return new Np(i,this._parents,t,n)}function n9(){var t,e,n=this,i=n._id,c=n.size();return new Promise(function(S,F){var nt={value:F},ut={value:function(){--c===0&&S()}};n.each(function(){var yt=Hf(this,i),_t=yt.on;_t!==t&&(e=(t=_t).copy(),e._.cancel.push(nt),e._.interrupt.push(nt),e._.end.push(ut)),yt.on=e}),c===0&&S()})}var r9=0;function Np(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function i9(t){return W_().transition(t)}function q4(){return++r9}var Dp=W_.prototype;Np.prototype=i9.prototype={constructor:Np,select:jI,selectAll:BI,selectChild:Dp.selectChild,selectChildren:Dp.selectChildren,filter:PI,merge:OI,selection:zI,transition:e9,call:Dp.call,nodes:Dp.nodes,node:Dp.node,size:Dp.size,empty:Dp.empty,each:Dp.each,on:RI,attr:pI,attrTween:bI,style:YI,styleTween:XI,text:ZI,textTween:t9,remove:II,tween:HL,delay:_I,duration:CI,ease:kI,easeVarying:AI,end:n9,[Symbol.iterator]:Dp[Symbol.iterator]};function C$(t){return t*t*t}function M$(t){return--t*t*t+1}function o9(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var a9={time:null,delay:0,duration:250,ease:o9};function s9(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function l9(t){var e,n;t instanceof Np?(e=t._id,t=t._name):(e=q4(),(n=a9).time=OP(),t=t==null?null:t+"");for(var i=this._groups,c=i.length,S=0;S<c;++S)for(var F=i[S],nt=F.length,ut,yt=0;yt<nt;++yt)(ut=F[yt])&&MM(ut,t,e,yt,F,n||s9(ut,e));return new Np(i,this._parents,t,e)}W_.prototype.interrupt=LL,W_.prototype.transition=l9;var $4={name:"drag"},HP={name:"space"},kb={name:"handle"},Tb={name:"center"};const{abs:X4,max:dl,min:pl}=Math;function G4(t){return[+t[0],+t[1]]}function VP(t){return[G4(t[0]),G4(t[1])]}var DM={name:"x",handles:["w","e"].map(J_),input:function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},RM={name:"y",handles:["n","s"].map(J_),input:function(t,e){return t==null?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},u9={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(J_),input:function(t){return t==null?null:VP(t)},output:function(t){return t}},Rp={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},K4={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Z4={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},c9={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},h9={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function J_(t){return{type:t}}function f9(t){return!t.ctrlKey&&!t.button}function d9(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function p9(){return navigator.maxTouchPoints||"ontouchstart"in this}function WP(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function m9(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function k$(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function T$(){return YP(DM)}function A$(){return YP(RM)}function P$(){return YP(u9)}function YP(t){var e=d9,n=f9,i=p9,c=!0,S=dispatch("start","brush","end"),F=6,nt;function ut(oe){var de=oe.property("__brush",ue).selectAll(".overlay").data([J_("overlay")]);de.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Rp.overlay).merge(de).each(function(){var _e=WP(this).extent;select(this).attr("x",_e[0][0]).attr("y",_e[0][1]).attr("width",_e[1][0]-_e[0][0]).attr("height",_e[1][1]-_e[0][1])}),oe.selectAll(".selection").data([J_("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Rp.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var pe=oe.selectAll(".handle").data(t.handles,function(_e){return _e.type});pe.exit().remove(),pe.enter().append("rect").attr("class",function(_e){return"handle handle--"+_e.type}).attr("cursor",function(_e){return Rp[_e.type]}),oe.each(yt).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",Ht).filter(i).on("touchstart.brush",Ht).on("touchmove.brush",Yt).on("touchend.brush touchcancel.brush",re).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}ut.move=function(oe,de,pe){oe.tween?oe.on("start.brush",function(_e){_t(this,arguments).beforestart().start(_e)}).on("interrupt.brush end.brush",function(_e){_t(this,arguments).end(_e)}).tween("brush",function(){var _e=this,ge=_e.__brush,qe=_t(_e,arguments),De=ge.selection,$e=t.input(typeof de=="function"?de.apply(this,arguments):de,ge.extent),Ye=interpolate(De,$e);function tn(gn){ge.selection=gn===1&&$e===null?null:Ye(gn),yt.call(_e),qe.brush()}return De!==null&&$e!==null?tn:tn(1)}):oe.each(function(){var _e=this,ge=arguments,qe=_e.__brush,De=t.input(typeof de=="function"?de.apply(_e,ge):de,qe.extent),$e=_t(_e,ge).beforestart();interrupt(_e),qe.selection=De===null?null:De,yt.call(_e),$e.start(pe).brush(pe).end(pe)})},ut.clear=function(oe,de){ut.move(oe,null,de)};function yt(){var oe=select(this),de=WP(this).selection;de?(oe.selectAll(".selection").style("display",null).attr("x",de[0][0]).attr("y",de[0][1]).attr("width",de[1][0]-de[0][0]).attr("height",de[1][1]-de[0][1]),oe.selectAll(".handle").style("display",null).attr("x",function(pe){return pe.type[pe.type.length-1]==="e"?de[1][0]-F/2:de[0][0]-F/2}).attr("y",function(pe){return pe.type[0]==="s"?de[1][1]-F/2:de[0][1]-F/2}).attr("width",function(pe){return pe.type==="n"||pe.type==="s"?de[1][0]-de[0][0]+F:F}).attr("height",function(pe){return pe.type==="e"||pe.type==="w"?de[1][1]-de[0][1]+F:F})):oe.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function _t(oe,de,pe){var _e=oe.__brush.emitter;return _e&&(!pe||!_e.clean)?_e:new zt(oe,de,pe)}function zt(oe,de,pe){this.that=oe,this.args=de,this.state=oe.__brush,this.active=0,this.clean=pe}zt.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(oe,de){return this.starting?(this.starting=!1,this.emit("start",oe,de)):this.emit("brush",oe),this},brush:function(oe,de){return this.emit("brush",oe,de),this},end:function(oe,de){return--this.active===0&&(delete this.state.emitter,this.emit("end",oe,de)),this},emit:function(oe,de,pe){var _e=select(this.that).datum();S.call(oe,this.that,new BrushEvent(oe,{sourceEvent:de,target:ut,selection:t.output(this.state.selection),mode:pe,dispatch:S}),_e)}};function Ht(oe){if(nt&&!oe.touches||!n.apply(this,arguments))return;var de=this,pe=oe.target.__data__.type,_e=(c&&oe.metaKey?pe="overlay":pe)==="selection"?$4:c&&oe.altKey?Tb:kb,ge=t===RM?null:c9[pe],qe=t===DM?null:h9[pe],De=WP(de),$e=De.extent,Ye=De.selection,tn=$e[0][0],gn,Cn,kn=$e[0][1],Zn,fn,jn=$e[1][0],On,Vn,wr=$e[1][1],Pr,_r,Ur=0,Hr=0,Li,ai=ge&&qe&&c&&oe.shiftKey,Ei,Zi,$r=Array.from(oe.touches||[oe],Bi=>{const Ca=Bi.identifier;return Bi=pointer(Bi,de),Bi.point0=Bi.slice(),Bi.identifier=Ca,Bi});interrupt(de);var Fi=_t(de,arguments,!0).beforestart();if(pe==="overlay"){Ye&&(Li=!0);const Bi=[$r[0],$r[1]||$r[0]];De.selection=Ye=[[gn=t===RM?tn:pl(Bi[0][0],Bi[1][0]),Zn=t===DM?kn:pl(Bi[0][1],Bi[1][1])],[On=t===RM?jn:dl(Bi[0][0],Bi[1][0]),Pr=t===DM?wr:dl(Bi[0][1],Bi[1][1])]],$r.length>1&&Da(oe)}else gn=Ye[0][0],Zn=Ye[0][1],On=Ye[1][0],Pr=Ye[1][1];Cn=gn,fn=Zn,Vn=On,_r=Pr;var qo=select(de).attr("pointer-events","none"),Ea=qo.selectAll(".overlay").attr("cursor",Rp[pe]);if(oe.touches)Fi.moved=$o,Fi.ended=Qu;else{var zo=select(oe.view).on("mousemove.brush",$o,!0).on("mouseup.brush",Qu,!0);c&&zo.on("keydown.brush",yu,!0).on("keyup.brush",Up,!0),dragDisable(oe.view)}yt.call(de),Fi.start(oe,_e.name);function $o(Bi){for(const Ca of Bi.changedTouches||[Bi])for(const Hp of $r)Hp.identifier===Ca.identifier&&(Hp.cur=pointer(Ca,de));if(ai&&!Ei&&!Zi&&$r.length===1){const Ca=$r[0];X4(Ca.cur[0]-Ca[0])>X4(Ca.cur[1]-Ca[1])?Zi=!0:Ei=!0}for(const Ca of $r)Ca.cur&&(Ca[0]=Ca.cur[0],Ca[1]=Ca.cur[1]);Li=!0,noevent(Bi),Da(Bi)}function Da(Bi){const Ca=$r[0],Hp=Ca.point0;var Rs;switch(Ur=Ca[0]-Hp[0],Hr=Ca[1]-Hp[1],_e){case HP:case $4:{ge&&(Ur=dl(tn-gn,pl(jn-On,Ur)),Cn=gn+Ur,Vn=On+Ur),qe&&(Hr=dl(kn-Zn,pl(wr-Pr,Hr)),fn=Zn+Hr,_r=Pr+Hr);break}case kb:{$r[1]?(ge&&(Cn=dl(tn,pl(jn,$r[0][0])),Vn=dl(tn,pl(jn,$r[1][0])),ge=1),qe&&(fn=dl(kn,pl(wr,$r[0][1])),_r=dl(kn,pl(wr,$r[1][1])),qe=1)):(ge<0?(Ur=dl(tn-gn,pl(jn-gn,Ur)),Cn=gn+Ur,Vn=On):ge>0&&(Ur=dl(tn-On,pl(jn-On,Ur)),Cn=gn,Vn=On+Ur),qe<0?(Hr=dl(kn-Zn,pl(wr-Zn,Hr)),fn=Zn+Hr,_r=Pr):qe>0&&(Hr=dl(kn-Pr,pl(wr-Pr,Hr)),fn=Zn,_r=Pr+Hr));break}case Tb:{ge&&(Cn=dl(tn,pl(jn,gn-Ur*ge)),Vn=dl(tn,pl(jn,On+Ur*ge))),qe&&(fn=dl(kn,pl(wr,Zn-Hr*qe)),_r=dl(kn,pl(wr,Pr+Hr*qe)));break}}Vn<Cn&&(ge*=-1,Rs=gn,gn=On,On=Rs,Rs=Cn,Cn=Vn,Vn=Rs,pe in K4&&Ea.attr("cursor",Rp[pe=K4[pe]])),_r<fn&&(qe*=-1,Rs=Zn,Zn=Pr,Pr=Rs,Rs=fn,fn=_r,_r=Rs,pe in Z4&&Ea.attr("cursor",Rp[pe=Z4[pe]])),De.selection&&(Ye=De.selection),Ei&&(Cn=Ye[0][0],Vn=Ye[1][0]),Zi&&(fn=Ye[0][1],_r=Ye[1][1]),(Ye[0][0]!==Cn||Ye[0][1]!==fn||Ye[1][0]!==Vn||Ye[1][1]!==_r)&&(De.selection=[[Cn,fn],[Vn,_r]],yt.call(de),Fi.brush(Bi,_e.name))}function Qu(Bi){if(nopropagation(Bi),Bi.touches){if(Bi.touches.length)return;nt&&clearTimeout(nt),nt=setTimeout(function(){nt=null},500)}else dragEnable(Bi.view,Li),zo.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);qo.attr("pointer-events","all"),Ea.attr("cursor",Rp.overlay),De.selection&&(Ye=De.selection),m9(Ye)&&(De.selection=null,yt.call(de)),Fi.end(Bi,_e.name)}function yu(Bi){switch(Bi.keyCode){case 16:{ai=ge&&qe;break}case 18:{_e===kb&&(ge&&(On=Vn-Ur*ge,gn=Cn+Ur*ge),qe&&(Pr=_r-Hr*qe,Zn=fn+Hr*qe),_e=Tb,Da(Bi));break}case 32:{(_e===kb||_e===Tb)&&(ge<0?On=Vn-Ur:ge>0&&(gn=Cn-Ur),qe<0?Pr=_r-Hr:qe>0&&(Zn=fn-Hr),_e=HP,Ea.attr("cursor",Rp.selection),Da(Bi));break}default:return}noevent(Bi)}function Up(Bi){switch(Bi.keyCode){case 16:{ai&&(Ei=Zi=ai=!1,Da(Bi));break}case 18:{_e===Tb&&(ge<0?On=Vn:ge>0&&(gn=Cn),qe<0?Pr=_r:qe>0&&(Zn=fn),_e=kb,Da(Bi));break}case 32:{_e===HP&&(Bi.altKey?(ge&&(On=Vn-Ur*ge,gn=Cn+Ur*ge),qe&&(Pr=_r-Hr*qe,Zn=fn+Hr*qe),_e=Tb):(ge<0?On=Vn:ge>0&&(gn=Cn),qe<0?Pr=_r:qe>0&&(Zn=fn),_e=kb),Ea.attr("cursor",Rp[pe]),Da(Bi));break}default:return}noevent(Bi)}}function Yt(oe){_t(this,arguments).moved(oe)}function re(oe){_t(this,arguments).ended(oe)}function ue(){var oe=this.__brush||{selection:null};return oe.extent=VP(e.apply(this,arguments)),oe.dim=t,oe}return ut.extent=function(oe){return arguments.length?(e=typeof oe=="function"?oe:constant(VP(oe)),ut):e},ut.filter=function(oe){return arguments.length?(n=typeof oe=="function"?oe:constant(!!oe),ut):n},ut.touchable=function(oe){return arguments.length?(i=typeof oe=="function"?oe:constant(!!oe),ut):i},ut.handleSize=function(oe){return arguments.length?(F=+oe,ut):F},ut.keyModifiers=function(oe){return arguments.length?(c=!!oe,ut):c},ut.on=function(){var oe=S.on.apply(S,arguments);return oe===S?ut:oe},ut}function Q4(t){return t===null?NaN:+t}function*O$(t,e){if(e===void 0)for(let n of t)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(i=+i)>=i&&(yield i)}}function N$(t,e,n){if(t=Float64Array.from(numbers(t,n)),!(!(i=t.length)||isNaN(e=+e))){if(e<=0||i<2)return min(t);if(e>=1)return max(t);var i,c=(i-1)*e,S=Math.floor(c),F=max(quickselect(t,S).subarray(0,S+1)),nt=min(t.subarray(S+1));return F+(nt-F)*(c-S)}}function g9(t,e,n=Q4){if(!(!(i=t.length)||isNaN(e=+e))){if(e<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,c=(i-1)*e,S=Math.floor(c),F=+n(t[S],S,t),nt=+n(t[S+1],S+1,t);return F+(nt-F)*(c-S)}}function D$(t,e,n=number){if(!isNaN(e=+e)){if(i=Float64Array.from(t,(nt,ut)=>number(n(t[ut],ut,t))),e<=0)return minIndex(i);if(e>=1)return maxIndex(i);var i,c=Uint32Array.from(t,(nt,ut)=>ut),S=i.length-1,F=Math.floor(S*e);return quickselect(c,F,0,S,(nt,ut)=>ascendingDefined(i[nt],i[ut])),F=greatest(c.subarray(0,F+1),nt=>i[nt]),F>=0?F:-1}}function t2(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function y9(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function J4(t){let e,n,i;t.length!==2?(e=t2,n=(nt,ut)=>t2(t(nt),ut),i=(nt,ut)=>t(nt)-ut):(e=t===t2||t===y9?t:v9,n=t,i=t);function c(nt,ut,yt=0,_t=nt.length){if(yt<_t){if(e(ut,ut)!==0)return _t;do{const zt=yt+_t>>>1;n(nt[zt],ut)<0?yt=zt+1:_t=zt}while(yt<_t)}return yt}function S(nt,ut,yt=0,_t=nt.length){if(yt<_t){if(e(ut,ut)!==0)return _t;do{const zt=yt+_t>>>1;n(nt[zt],ut)<=0?yt=zt+1:_t=zt}while(yt<_t)}return yt}function F(nt,ut,yt=0,_t=nt.length){const zt=c(nt,ut,yt,_t-1);return zt>yt&&i(nt[zt-1],ut)>-i(nt[zt],ut)?zt-1:zt}return{left:c,center:F,right:S}}function v9(){return 0}const tN=J4(t2),b9=tN.right,R$=tN.left,L$=J4(Q4).center,x9=b9;function w9(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function I$(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}function eN(){var t=[],e=[],n=[],i;function c(){var F=0,nt=Math.max(1,e.length);for(n=new Array(nt-1);++F<nt;)n[F-1]=g9(t,F/nt);return S}function S(F){return F==null||isNaN(F=+F)?i:e[x9(n,F)]}return S.invertExtent=function(F){var nt=e.indexOf(F);return nt<0?[NaN,NaN]:[nt>0?n[nt-1]:t[0],nt<n.length?n[nt]:t[t.length-1]]},S.domain=function(F){if(!arguments.length)return t.slice();t=[];for(let nt of F)nt!=null&&!isNaN(nt=+nt)&&t.push(nt);return t.sort(t2),c()},S.range=function(F){return arguments.length?(e=Array.from(F),c()):e.slice()},S.unknown=function(F){return arguments.length?(i=F,S):i},S.quantiles=function(){return n.slice()},S.copy=function(){return eN().domain(t).range(e).unknown(i)},w9.apply(S,arguments)}function _9(){}function qP(t){return t==null?_9:function(){return this.querySelector(t)}}function S9(t){typeof t!="function"&&(t=qP(t));for(var e=this._groups,n=e.length,i=new Array(n),c=0;c<n;++c)for(var S=e[c],F=S.length,nt=i[c]=new Array(F),ut,yt,_t=0;_t<F;++_t)(ut=S[_t])&&(yt=t.call(ut,ut.__data__,_t,S))&&("__data__"in ut&&(yt.__data__=ut.__data__),nt[_t]=yt);return new Fl(i,this._parents)}function nN(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function E9(){return[]}function rN(t){return t==null?E9:function(){return this.querySelectorAll(t)}}function C9(t){return function(){return nN(t.apply(this,arguments))}}function M9(t){typeof t=="function"?t=C9(t):t=rN(t);for(var e=this._groups,n=e.length,i=[],c=[],S=0;S<n;++S)for(var F=e[S],nt=F.length,ut,yt=0;yt<nt;++yt)(ut=F[yt])&&(i.push(t.call(ut,ut.__data__,yt,F)),c.push(ut));return new Fl(i,c)}function iN(t){return function(){return this.matches(t)}}function oN(t){return function(e){return e.matches(t)}}var k9=Array.prototype.find;function T9(t){return function(){return k9.call(this.children,t)}}function A9(){return this.firstElementChild}function P9(t){return this.select(t==null?A9:T9(typeof t=="function"?t:oN(t)))}var O9=Array.prototype.filter;function N9(){return Array.from(this.children)}function D9(t){return function(){return O9.call(this.children,t)}}function R9(t){return this.selectAll(t==null?N9:D9(typeof t=="function"?t:oN(t)))}function L9(t){typeof t!="function"&&(t=iN(t));for(var e=this._groups,n=e.length,i=new Array(n),c=0;c<n;++c)for(var S=e[c],F=S.length,nt=i[c]=[],ut,yt=0;yt<F;++yt)(ut=S[yt])&&t.call(ut,ut.__data__,yt,S)&&nt.push(ut);return new Fl(i,this._parents)}function aN(t){return new Array(t.length)}function I9(){return new Fl(this._enter||this._groups.map(aN),this._parents)}function LM(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}LM.prototype={constructor:LM,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function j9(t){return function(){return t}}function B9(t,e,n,i,c,S){for(var F=0,nt,ut=e.length,yt=S.length;F<yt;++F)(nt=e[F])?(nt.__data__=S[F],i[F]=nt):n[F]=new LM(t,S[F]);for(;F<ut;++F)(nt=e[F])&&(c[F]=nt)}function F9(t,e,n,i,c,S,F){var nt,ut,yt=new Map,_t=e.length,zt=S.length,Ht=new Array(_t),Yt;for(nt=0;nt<_t;++nt)(ut=e[nt])&&(Ht[nt]=Yt=F.call(ut,ut.__data__,nt,e)+"",yt.has(Yt)?c[nt]=ut:yt.set(Yt,ut));for(nt=0;nt<zt;++nt)Yt=F.call(t,S[nt],nt,S)+"",(ut=yt.get(Yt))?(i[nt]=ut,ut.__data__=S[nt],yt.delete(Yt)):n[nt]=new LM(t,S[nt]);for(nt=0;nt<_t;++nt)(ut=e[nt])&&yt.get(Ht[nt])===ut&&(c[nt]=ut)}function z9(t){return t.__data__}function U9(t,e){if(!arguments.length)return Array.from(this,z9);var n=e?F9:B9,i=this._parents,c=this._groups;typeof t!="function"&&(t=j9(t));for(var S=c.length,F=new Array(S),nt=new Array(S),ut=new Array(S),yt=0;yt<S;++yt){var _t=i[yt],zt=c[yt],Ht=zt.length,Yt=H9(t.call(_t,_t&&_t.__data__,yt,i)),re=Yt.length,ue=nt[yt]=new Array(re),oe=F[yt]=new Array(re),de=ut[yt]=new Array(Ht);n(_t,zt,ue,oe,de,Yt,e);for(var pe=0,_e=0,ge,qe;pe<re;++pe)if(ge=ue[pe]){for(pe>=_e&&(_e=pe+1);!(qe=oe[_e])&&++_e<re;);ge._next=qe||null}}return F=new Fl(F,i),F._enter=nt,F._exit=ut,F}function H9(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function V9(){return new Fl(this._exit||this._groups.map(aN),this._parents)}function W9(t,e,n){var i=this.enter(),c=this,S=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(c=e(c),c&&(c=c.selection())),n==null?S.remove():n(S),i&&c?i.merge(c).order():c}function Y9(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,c=n.length,S=i.length,F=Math.min(c,S),nt=new Array(c),ut=0;ut<F;++ut)for(var yt=n[ut],_t=i[ut],zt=yt.length,Ht=nt[ut]=new Array(zt),Yt,re=0;re<zt;++re)(Yt=yt[re]||_t[re])&&(Ht[re]=Yt);for(;ut<c;++ut)nt[ut]=n[ut];return new Fl(nt,this._parents)}function q9(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i=t[e],c=i.length-1,S=i[c],F;--c>=0;)(F=i[c])&&(S&&F.compareDocumentPosition(S)^4&&S.parentNode.insertBefore(F,S),S=F);return this}function $9(t){t||(t=X9);function e(zt,Ht){return zt&&Ht?t(zt.__data__,Ht.__data__):!zt-!Ht}for(var n=this._groups,i=n.length,c=new Array(i),S=0;S<i;++S){for(var F=n[S],nt=F.length,ut=c[S]=new Array(nt),yt,_t=0;_t<nt;++_t)(yt=F[_t])&&(ut[_t]=yt);ut.sort(e)}return new Fl(c,this._parents).order()}function X9(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function G9(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function K9(){return Array.from(this)}function Z9(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],c=0,S=i.length;c<S;++c){var F=i[c];if(F)return F}return null}function Q9(){let t=0;for(const e of this)++t;return t}function J9(){return!this.node()}function tj(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var c=e[n],S=0,F=c.length,nt;S<F;++S)(nt=c[S])&&t.call(nt,nt.__data__,S,c);return this}var $P="http://www.w3.org/1999/xhtml";const sN={svg:"http://www.w3.org/2000/svg",xhtml:$P,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function IM(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),sN.hasOwnProperty(e)?{space:sN[e],local:t}:t}function ej(t){return function(){this.removeAttribute(t)}}function nj(t){return function(){this.removeAttributeNS(t.space,t.local)}}function rj(t,e){return function(){this.setAttribute(t,e)}}function ij(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function oj(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function aj(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function sj(t,e){var n=IM(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((e==null?n.local?nj:ej:typeof e=="function"?n.local?aj:oj:n.local?ij:rj)(n,e))}function lN(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function lj(t){return function(){this.style.removeProperty(t)}}function uj(t,e,n){return function(){this.style.setProperty(t,e,n)}}function cj(t,e,n){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function hj(t,e,n){return arguments.length>1?this.each((e==null?lj:typeof e=="function"?cj:uj)(t,e,n==null?"":n)):Ab(this.node(),t)}function Ab(t,e){return t.style.getPropertyValue(e)||lN(t).getComputedStyle(t,null).getPropertyValue(e)}function fj(t){return function(){delete this[t]}}function dj(t,e){return function(){this[t]=e}}function pj(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function mj(t,e){return arguments.length>1?this.each((e==null?fj:typeof e=="function"?pj:dj)(t,e)):this.node()[t]}function uN(t){return t.trim().split(/^|\s+/)}function XP(t){return t.classList||new cN(t)}function cN(t){this._node=t,this._names=uN(t.getAttribute("class")||"")}cN.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function hN(t,e){for(var n=XP(t),i=-1,c=e.length;++i<c;)n.add(e[i])}function fN(t,e){for(var n=XP(t),i=-1,c=e.length;++i<c;)n.remove(e[i])}function gj(t){return function(){hN(this,t)}}function yj(t){return function(){fN(this,t)}}function vj(t,e){return function(){(e.apply(this,arguments)?hN:fN)(this,t)}}function bj(t,e){var n=uN(t+"");if(arguments.length<2){for(var i=XP(this.node()),c=-1,S=n.length;++c<S;)if(!i.contains(n[c]))return!1;return!0}return this.each((typeof e=="function"?vj:e?gj:yj)(n,e))}function xj(){this.textContent=""}function wj(t){return function(){this.textContent=t}}function _j(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function Sj(t){return arguments.length?this.each(t==null?xj:(typeof t=="function"?_j:wj)(t)):this.node().textContent}function Ej(){this.innerHTML=""}function Cj(t){return function(){this.innerHTML=t}}function Mj(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function kj(t){return arguments.length?this.each(t==null?Ej:(typeof t=="function"?Mj:Cj)(t)):this.node().innerHTML}function Tj(){this.nextSibling&&this.parentNode.appendChild(this)}function Aj(){return this.each(Tj)}function Pj(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Oj(){return this.each(Pj)}function Nj(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===$P&&e.documentElement.namespaceURI===$P?e.createElement(t):e.createElementNS(n,t)}}function Dj(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function dN(t){var e=IM(t);return(e.local?Dj:Nj)(e)}function Rj(t){var e=typeof t=="function"?t:dN(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Lj(){return null}function Ij(t,e){var n=typeof t=="function"?t:dN(t),i=e==null?Lj:typeof e=="function"?e:qP(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function jj(){var t=this.parentNode;t&&t.removeChild(this)}function Bj(){return this.each(jj)}function Fj(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function zj(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Uj(t){return this.select(t?zj:Fj)}function Hj(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Vj(t){return function(e){t.call(this,e,this.__data__)}}function Wj(t){return t.trim().split(/^|\s+/).map(function(e){var n="",i=e.indexOf(".");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{type:e,name:n}})}function Yj(t){return function(){var e=this.__on;if(e){for(var n=0,i=-1,c=e.length,S;n<c;++n)S=e[n],(!t.type||S.type===t.type)&&S.name===t.name?this.removeEventListener(S.type,S.listener,S.options):e[++i]=S;++i?e.length=i:delete this.__on}}}function qj(t,e,n){return function(){var i=this.__on,c,S=Vj(e);if(i){for(var F=0,nt=i.length;F<nt;++F)if((c=i[F]).type===t.type&&c.name===t.name){this.removeEventListener(c.type,c.listener,c.options),this.addEventListener(c.type,c.listener=S,c.options=n),c.value=e;return}}this.addEventListener(t.type,S,n),c={type:t.type,name:t.name,value:e,listener:S,options:n},i?i.push(c):this.__on=[c]}}function $j(t,e,n){var i=Wj(t+""),c,S=i.length,F;if(arguments.length<2){var nt=this.node().__on;if(nt){for(var ut=0,yt=nt.length,_t;ut<yt;++ut)for(c=0,_t=nt[ut];c<S;++c)if((F=i[c]).type===_t.type&&F.name===_t.name)return _t.value}return}for(nt=e?qj:Yj,c=0;c<S;++c)this.each(nt(i[c],e,n));return this}function pN(t,e,n){var i=lN(t),c=i.CustomEvent;typeof c=="function"?c=new c(e,n):(c=i.document.createEvent("Event"),n?(c.initEvent(e,n.bubbles,n.cancelable),c.detail=n.detail):c.initEvent(e,!1,!1)),t.dispatchEvent(c)}function Xj(t,e){return function(){return pN(this,t,e)}}function Gj(t,e){return function(){return pN(this,t,e.apply(this,arguments))}}function Kj(t,e){return this.each((typeof e=="function"?Gj:Xj)(t,e))}function*Zj(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],c=0,S=i.length,F;c<S;++c)(F=i[c])&&(yield F)}var GP=[null];function Fl(t,e){this._groups=t,this._parents=e}function mN(){return new Fl([[document.documentElement]],GP)}function Qj(){return this}Fl.prototype=mN.prototype={constructor:Fl,select:S9,selectAll:M9,selectChild:P9,selectChildren:R9,filter:L9,data:U9,enter:I9,exit:V9,join:W9,merge:Y9,selection:Qj,order:q9,sort:$9,call:G9,nodes:K9,node:Z9,size:Q9,empty:J9,each:tj,attr:sj,style:hj,property:mj,classed:bj,text:Sj,html:kj,raise:Aj,lower:Oj,append:Rj,insert:Ij,remove:Bj,clone:Uj,datum:Hj,on:$j,dispatch:Kj,[Symbol.iterator]:Zj};const e2=mN;function zl(t){return typeof t=="string"?new Fl([[document.querySelector(t)]],[document.documentElement]):new Fl([[t]],GP)}function gN(t){return typeof t=="string"?new Fl([document.querySelectorAll(t)],[document.documentElement]):new Fl([nN(t)],GP)}var Jj={value:()=>{}};function yN(){for(var t=0,e=arguments.length,n={},i;t<e;++t){if(!(i=arguments[t]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new jM(n)}function jM(t){this._=t}function tB(t,e){return t.trim().split(/^|\s+/).map(function(n){var i="",c=n.indexOf(".");if(c>=0&&(i=n.slice(c+1),n=n.slice(0,c)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}jM.prototype=yN.prototype={constructor:jM,on:function(t,e){var n=this._,i=tB(t+"",n),c,S=-1,F=i.length;if(arguments.length<2){for(;++S<F;)if((c=(t=i[S]).type)&&(c=eB(n[c],t.name)))return c;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++S<F;)if(c=(t=i[S]).type)n[c]=vN(n[c],t.name,e);else if(e==null)for(c in n)n[c]=vN(n[c],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new jM(t)},call:function(t,e){if((c=arguments.length-2)>0)for(var n=new Array(c),i=0,c,S;i<c;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(S=this._[t],i=0,c=S.length;i<c;++i)S[i].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],c=0,S=i.length;c<S;++c)i[c].value.apply(e,n)}};function eB(t,e){for(var n=0,i=t.length,c;n<i;++n)if((c=t[n]).name===e)return c.value}function vN(t,e,n){for(var i=0,c=t.length;i<c;++i)if(t[i].name===e){t[i]=Jj,t=t.slice(0,i).concat(t.slice(i+1));break}return n!=null&&t.push({name:e,value:n}),t}const nB=yN;var Pb=0,n2=0,r2=0,bN=1e3,BM,i2,FM=0,Hy=0,zM=0,o2=typeof performance=="object"&&performance.now?performance:Date,xN=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function KP(){return Hy||(xN(rB),Hy=o2.now()+zM)}function rB(){Hy=0}function UM(){this._call=this._time=this._next=null}UM.prototype=wN.prototype={constructor:UM,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?KP():+n)+(e==null?0:+e),!this._next&&i2!==this&&(i2?i2._next=this:BM=this,i2=this),this._call=t,this._time=n,ZP()},stop:function(){this._call&&(this._call=null,this._time=1/0,ZP())}};function wN(t,e,n){var i=new UM;return i.restart(t,e,n),i}function iB(){KP(),++Pb;for(var t=BM,e;t;)(e=Hy-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Pb}function _N(){Hy=(FM=o2.now())+zM,Pb=n2=0;try{iB()}finally{Pb=0,aB(),Hy=0}}function oB(){var t=o2.now(),e=t-FM;e>bN&&(zM-=e,FM=t)}function aB(){for(var t,e=BM,n,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:BM=n);i2=t,ZP(i)}function ZP(t){if(!Pb){n2&&(n2=clearTimeout(n2));var e=t-Hy;e>24?(t<1/0&&(n2=setTimeout(_N,t-o2.now()-zM)),r2&&(r2=clearInterval(r2))):(r2||(FM=o2.now(),r2=setInterval(oB,bN)),Pb=1,xN(_N))}}function SN(t,e,n){var i=new UM;return e=e==null?0:+e,i.restart(c=>{i.stop(),t(c+e)},e,n),i}var sB=nB("start","end","cancel","interrupt"),lB=[],EN=0,CN=1,QP=2,HM=3,MN=4,JP=5,VM=6;function WM(t,e,n,i,c,S){var F=t.__transition;if(!F)t.__transition={};else if(n in F)return;uB(t,n,{name:e,index:i,group:c,on:sB,tween:lB,time:S.time,delay:S.delay,duration:S.duration,ease:S.ease,timer:null,state:EN})}function t5(t,e){var n=Ah(t,e);if(n.state>EN)throw new Error("too late; already scheduled");return n}function Wf(t,e){var n=Ah(t,e);if(n.state>HM)throw new Error("too late; already running");return n}function Ah(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function uB(t,e,n){var i=t.__transition,c;i[e]=n,n.timer=wN(S,0,n.time);function S(yt){n.state=CN,n.timer.restart(F,n.delay,n.time),n.delay<=yt&&F(yt-n.delay)}function F(yt){var _t,zt,Ht,Yt;if(n.state!==CN)return ut();for(_t in i)if(Yt=i[_t],Yt.name===n.name){if(Yt.state===HM)return SN(F);Yt.state===MN?(Yt.state=VM,Yt.timer.stop(),Yt.on.call("interrupt",t,t.__data__,Yt.index,Yt.group),delete i[_t]):+_t<e&&(Yt.state=VM,Yt.timer.stop(),Yt.on.call("cancel",t,t.__data__,Yt.index,Yt.group),delete i[_t])}if(SN(function(){n.state===HM&&(n.state=MN,n.timer.restart(nt,n.delay,n.time),nt(yt))}),n.state=QP,n.on.call("start",t,t.__data__,n.index,n.group),n.state===QP){for(n.state=HM,c=new Array(Ht=n.tween.length),_t=0,zt=-1;_t<Ht;++_t)(Yt=n.tween[_t].value.call(t,t.__data__,n.index,n.group))&&(c[++zt]=Yt);c.length=zt+1}}function nt(yt){for(var _t=yt<n.duration?n.ease.call(null,yt/n.duration):(n.timer.restart(ut),n.state=JP,1),zt=-1,Ht=c.length;++zt<Ht;)c[zt].call(t,_t);n.state===JP&&(n.on.call("end",t,t.__data__,n.index,n.group),ut())}function ut(){n.state=VM,n.timer.stop(),delete i[e];for(var yt in i)return;delete t.__transition}}function cB(t,e){var n=t.__transition,i,c,S=!0,F;if(n){e=e==null?null:e+"";for(F in n){if((i=n[F]).name!==e){S=!1;continue}c=i.state>QP&&i.state<JP,i.state=VM,i.timer.stop(),i.on.call(c?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete n[F]}S&&delete t.__transition}}function hB(t){return this.each(function(){cB(this,t)})}function Sg(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var kN=180/Math.PI,e5={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function TN(t,e,n,i,c,S){var F,nt,ut;return(F=Math.sqrt(t*t+e*e))&&(t/=F,e/=F),(ut=t*n+e*i)&&(n-=t*ut,i-=e*ut),(nt=Math.sqrt(n*n+i*i))&&(n/=nt,i/=nt,ut/=nt),t*i<e*n&&(t=-t,e=-e,ut=-ut,F=-F),{translateX:c,translateY:S,rotate:Math.atan2(e,t)*kN,skewX:Math.atan(ut)*kN,scaleX:F,scaleY:nt}}var YM;function fB(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?e5:TN(e.a,e.b,e.c,e.d,e.e,e.f)}function dB(t){return t==null||(YM||(YM=document.createElementNS("http://www.w3.org/2000/svg","g")),YM.setAttribute("transform",t),!(t=YM.transform.baseVal.consolidate()))?e5:(t=t.matrix,TN(t.a,t.b,t.c,t.d,t.e,t.f))}function AN(t,e,n,i){function c(yt){return yt.length?yt.pop()+" ":""}function S(yt,_t,zt,Ht,Yt,re){if(yt!==zt||_t!==Ht){var ue=Yt.push("translate(",null,e,null,n);re.push({i:ue-4,x:Sg(yt,zt)},{i:ue-2,x:Sg(_t,Ht)})}else(zt||Ht)&&Yt.push("translate("+zt+e+Ht+n)}function F(yt,_t,zt,Ht){yt!==_t?(yt-_t>180?_t+=360:_t-yt>180&&(yt+=360),Ht.push({i:zt.push(c(zt)+"rotate(",null,i)-2,x:Sg(yt,_t)})):_t&&zt.push(c(zt)+"rotate("+_t+i)}function nt(yt,_t,zt,Ht){yt!==_t?Ht.push({i:zt.push(c(zt)+"skewX(",null,i)-2,x:Sg(yt,_t)}):_t&&zt.push(c(zt)+"skewX("+_t+i)}function ut(yt,_t,zt,Ht,Yt,re){if(yt!==zt||_t!==Ht){var ue=Yt.push(c(Yt)+"scale(",null,",",null,")");re.push({i:ue-4,x:Sg(yt,zt)},{i:ue-2,x:Sg(_t,Ht)})}else(zt!==1||Ht!==1)&&Yt.push(c(Yt)+"scale("+zt+","+Ht+")")}return function(yt,_t){var zt=[],Ht=[];return yt=t(yt),_t=t(_t),S(yt.translateX,yt.translateY,_t.translateX,_t.translateY,zt,Ht),F(yt.rotate,_t.rotate,zt,Ht),nt(yt.skewX,_t.skewX,zt,Ht),ut(yt.scaleX,yt.scaleY,_t.scaleX,_t.scaleY,zt,Ht),yt=_t=null,function(Yt){for(var re=-1,ue=Ht.length,oe;++re<ue;)zt[(oe=Ht[re]).i]=oe.x(Yt);return zt.join("")}}}var pB=AN(fB,"px, ","px)","deg)"),mB=AN(dB,", ",")",")");function gB(t,e){var n,i;return function(){var c=Wf(this,t),S=c.tween;if(S!==n){i=n=S;for(var F=0,nt=i.length;F<nt;++F)if(i[F].name===e){i=i.slice(),i.splice(F,1);break}}c.tween=i}}function yB(t,e,n){var i,c;if(typeof n!="function")throw new Error;return function(){var S=Wf(this,t),F=S.tween;if(F!==i){c=(i=F).slice();for(var nt={name:e,value:n},ut=0,yt=c.length;ut<yt;++ut)if(c[ut].name===e){c[ut]=nt;break}ut===yt&&c.push(nt)}S.tween=c}}function vB(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i=Ah(this.node(),n).tween,c=0,S=i.length,F;c<S;++c)if((F=i[c]).name===t)return F.value;return null}return this.each((e==null?gB:yB)(n,t,e))}function n5(t,e,n){var i=t._id;return t.each(function(){var c=Wf(this,i);(c.value||(c.value={}))[e]=n.apply(this,arguments)}),function(c){return Ah(c,i).value[e]}}function r5(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function PN(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function a2(){}var s2=.7,qM=1/s2,Ob="\\s*([+-]?\\d+)\\s*",l2="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",bB=/^#([0-9a-f]{3,8})$/,xB=new RegExp(`^rgb\\(${Ob},${Ob},${Ob}\\)$`),wB=new RegExp(`^rgb\\(${Yf},${Yf},${Yf}\\)$`),_B=new RegExp(`^rgba\\(${Ob},${Ob},${Ob},${l2}\\)$`),SB=new RegExp(`^rgba\\(${Yf},${Yf},${Yf},${l2}\\)$`),EB=new RegExp(`^hsl\\(${l2},${Yf},${Yf}\\)$`),CB=new RegExp(`^hsla\\(${l2},${Yf},${Yf},${l2}\\)$`),ON={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};r5(a2,u2,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:NN,formatHex:NN,formatHex8:MB,formatHsl:kB,formatRgb:DN,toString:DN});function NN(){return this.rgb().formatHex()}function MB(){return this.rgb().formatHex8()}function kB(){return BN(this).formatHsl()}function DN(){return this.rgb().formatRgb()}function u2(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=bB.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?RN(e):n===3?new du(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?$M(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?$M(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=xB.exec(t))?new du(e[1],e[2],e[3],1):(e=wB.exec(t))?new du(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=_B.exec(t))?$M(e[1],e[2],e[3],e[4]):(e=SB.exec(t))?$M(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=EB.exec(t))?jN(e[1],e[2]/100,e[3]/100,1):(e=CB.exec(t))?jN(e[1],e[2]/100,e[3]/100,e[4]):ON.hasOwnProperty(t)?RN(ON[t]):t==="transparent"?new du(NaN,NaN,NaN,0):null}function RN(t){return new du(t>>16&255,t>>8&255,t&255,1)}function $M(t,e,n,i){return i<=0&&(t=e=n=NaN),new du(t,e,n,i)}function TB(t){return t instanceof a2||(t=u2(t)),t?(t=t.rgb(),new du(t.r,t.g,t.b,t.opacity)):new du}function XM(t,e,n,i){return arguments.length===1?TB(t):new du(t,e,n,i==null?1:i)}function du(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}r5(du,XM,PN(a2,{brighter(t){return t=t==null?qM:Math.pow(qM,t),new du(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?s2:Math.pow(s2,t),new du(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new du(Vy(this.r),Vy(this.g),Vy(this.b),GM(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:LN,formatHex:LN,formatHex8:AB,formatRgb:IN,toString:IN}));function LN(){return`#${Wy(this.r)}${Wy(this.g)}${Wy(this.b)}`}function AB(){return`#${Wy(this.r)}${Wy(this.g)}${Wy(this.b)}${Wy((isNaN(this.opacity)?1:this.opacity)*255)}`}function IN(){const t=GM(this.opacity);return`${t===1?"rgb(":"rgba("}${Vy(this.r)}, ${Vy(this.g)}, ${Vy(this.b)}${t===1?")":`, ${t})`}`}function GM(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Vy(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Wy(t){return t=Vy(t),(t<16?"0":"")+t.toString(16)}function jN(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ph(t,e,n,i)}function BN(t){if(t instanceof Ph)return new Ph(t.h,t.s,t.l,t.opacity);if(t instanceof a2||(t=u2(t)),!t)return new Ph;if(t instanceof Ph)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,c=Math.min(e,n,i),S=Math.max(e,n,i),F=NaN,nt=S-c,ut=(S+c)/2;return nt?(e===S?F=(n-i)/nt+(n<i)*6:n===S?F=(i-e)/nt+2:F=(e-n)/nt+4,nt/=ut<.5?S+c:2-S-c,F*=60):nt=ut>0&&ut<1?0:F,new Ph(F,nt,ut,t.opacity)}function PB(t,e,n,i){return arguments.length===1?BN(t):new Ph(t,e,n,i==null?1:i)}function Ph(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}r5(Ph,PB,PN(a2,{brighter(t){return t=t==null?qM:Math.pow(qM,t),new Ph(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?s2:Math.pow(s2,t),new Ph(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,c=2*n-i;return new du(i5(t>=240?t-240:t+120,c,i),i5(t,c,i),i5(t<120?t+240:t-120,c,i),this.opacity)},clamp(){return new Ph(FN(this.h),KM(this.s),KM(this.l),GM(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=GM(this.opacity);return`${t===1?"hsl(":"hsla("}${FN(this.h)}, ${KM(this.s)*100}%, ${KM(this.l)*100}%${t===1?")":`, ${t})`}`}}));function FN(t){return t=(t||0)%360,t<0?t+360:t}function KM(t){return Math.max(0,Math.min(1,t||0))}function i5(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function zN(t,e,n,i,c){var S=t*t,F=S*t;return((1-3*t+3*S-F)*e+(4-6*S+3*F)*n+(1+3*t+3*S-3*F)*i+F*c)/6}function OB(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),c=t[i],S=t[i+1],F=i>0?t[i-1]:2*c-S,nt=i<e-1?t[i+2]:2*S-c;return zN((n-i/e)*e,F,c,S,nt)}}function NB(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),c=t[(i+e-1)%e],S=t[i%e],F=t[(i+1)%e],nt=t[(i+2)%e];return zN((n-i/e)*e,c,S,F,nt)}}const UN=t=>()=>t;function HN(t,e){return function(n){return t+n*e}}function DB(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}function j$(t,e){var n=e-t;return n?HN(t,n>180||n<-180?n-360*Math.round(n/360):n):constant(isNaN(t)?e:t)}function RB(t){return(t=+t)==1?VN:function(e,n){return n-e?DB(e,n,t):UN(isNaN(e)?n:e)}}function VN(t,e){var n=e-t;return n?HN(t,n):UN(isNaN(t)?e:t)}const WN=function t(e){var n=RB(e);function i(c,S){var F=n((c=XM(c)).r,(S=XM(S)).r),nt=n(c.g,S.g),ut=n(c.b,S.b),yt=VN(c.opacity,S.opacity);return function(_t){return c.r=F(_t),c.g=nt(_t),c.b=ut(_t),c.opacity=yt(_t),c+""}}return i.gamma=t,i}(1);function YN(t){return function(e){var n=e.length,i=new Array(n),c=new Array(n),S=new Array(n),F,nt;for(F=0;F<n;++F)nt=XM(e[F]),i[F]=nt.r||0,c[F]=nt.g||0,S[F]=nt.b||0;return i=t(i),c=t(c),S=t(S),nt.opacity=1,function(ut){return nt.r=i(ut),nt.g=c(ut),nt.b=S(ut),nt+""}}}var B$=YN(OB),F$=YN(NB),o5=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a5=new RegExp(o5.source,"g");function LB(t){return function(){return t}}function IB(t){return function(e){return t(e)+""}}function jB(t,e){var n=o5.lastIndex=a5.lastIndex=0,i,c,S,F=-1,nt=[],ut=[];for(t=t+"",e=e+"";(i=o5.exec(t))&&(c=a5.exec(e));)(S=c.index)>n&&(S=e.slice(n,S),nt[F]?nt[F]+=S:nt[++F]=S),(i=i[0])===(c=c[0])?nt[F]?nt[F]+=c:nt[++F]=c:(nt[++F]=null,ut.push({i:F,x:Sg(i,c)})),n=a5.lastIndex;return n<e.length&&(S=e.slice(n),nt[F]?nt[F]+=S:nt[++F]=S),nt.length<2?ut[0]?IB(ut[0].x):LB(e):(e=ut.length,function(yt){for(var _t=0,zt;_t<e;++_t)nt[(zt=ut[_t]).i]=zt.x(yt);return nt.join("")})}function qN(t,e){var n;return(typeof e=="number"?Sg:e instanceof u2?WN:(n=u2(e))?(e=n,WN):jB)(t,e)}function BB(t){return function(){this.removeAttribute(t)}}function FB(t){return function(){this.removeAttributeNS(t.space,t.local)}}function zB(t,e,n){var i,c=n+"",S;return function(){var F=this.getAttribute(t);return F===c?null:F===i?S:S=e(i=F,n)}}function UB(t,e,n){var i,c=n+"",S;return function(){var F=this.getAttributeNS(t.space,t.local);return F===c?null:F===i?S:S=e(i=F,n)}}function HB(t,e,n){var i,c,S;return function(){var F,nt=n(this),ut;return nt==null?void this.removeAttribute(t):(F=this.getAttribute(t),ut=nt+"",F===ut?null:F===i&&ut===c?S:(c=ut,S=e(i=F,nt)))}}function VB(t,e,n){var i,c,S;return function(){var F,nt=n(this),ut;return nt==null?void this.removeAttributeNS(t.space,t.local):(F=this.getAttributeNS(t.space,t.local),ut=nt+"",F===ut?null:F===i&&ut===c?S:(c=ut,S=e(i=F,nt)))}}function WB(t,e){var n=IM(t),i=n==="transform"?mB:qN;return this.attrTween(t,typeof e=="function"?(n.local?VB:HB)(n,i,n5(this,"attr."+t,e)):e==null?(n.local?FB:BB)(n):(n.local?UB:zB)(n,i,e))}function YB(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function qB(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function $B(t,e){var n,i;function c(){var S=e.apply(this,arguments);return S!==i&&(n=(i=S)&&qB(t,S)),n}return c._value=e,c}function XB(t,e){var n,i;function c(){var S=e.apply(this,arguments);return S!==i&&(n=(i=S)&&YB(t,S)),n}return c._value=e,c}function GB(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var i=IM(t);return this.tween(n,(i.local?$B:XB)(i,e))}function KB(t,e){return function(){t5(this,t).delay=+e.apply(this,arguments)}}function ZB(t,e){return e=+e,function(){t5(this,t).delay=e}}function QB(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?KB:ZB)(e,t)):Ah(this.node(),e).delay}function JB(t,e){return function(){Wf(this,t).duration=+e.apply(this,arguments)}}function tF(t,e){return e=+e,function(){Wf(this,t).duration=e}}function eF(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?JB:tF)(e,t)):Ah(this.node(),e).duration}function nF(t,e){if(typeof e!="function")throw new Error;return function(){Wf(this,t).ease=e}}function rF(t){var e=this._id;return arguments.length?this.each(nF(e,t)):Ah(this.node(),e).ease}function iF(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;Wf(this,t).ease=n}}function oF(t){if(typeof t!="function")throw new Error;return this.each(iF(this._id,t))}function aF(t){typeof t!="function"&&(t=iN(t));for(var e=this._groups,n=e.length,i=new Array(n),c=0;c<n;++c)for(var S=e[c],F=S.length,nt=i[c]=[],ut,yt=0;yt<F;++yt)(ut=S[yt])&&t.call(ut,ut.__data__,yt,S)&&nt.push(ut);return new Lp(i,this._parents,this._name,this._id)}function sF(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,c=n.length,S=Math.min(i,c),F=new Array(i),nt=0;nt<S;++nt)for(var ut=e[nt],yt=n[nt],_t=ut.length,zt=F[nt]=new Array(_t),Ht,Yt=0;Yt<_t;++Yt)(Ht=ut[Yt]||yt[Yt])&&(zt[Yt]=Ht);for(;nt<i;++nt)F[nt]=e[nt];return new Lp(F,this._parents,this._name,this._id)}function lF(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function uF(t,e,n){var i,c,S=lF(e)?t5:Wf;return function(){var F=S(this,t),nt=F.on;nt!==i&&(c=(i=nt).copy()).on(e,n),F.on=c}}function cF(t,e){var n=this._id;return arguments.length<2?Ah(this.node(),n).on.on(t):this.each(uF(n,t,e))}function hF(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function fF(){return this.on("end.remove",hF(this._id))}function dF(t){var e=this._name,n=this._id;typeof t!="function"&&(t=qP(t));for(var i=this._groups,c=i.length,S=new Array(c),F=0;F<c;++F)for(var nt=i[F],ut=nt.length,yt=S[F]=new Array(ut),_t,zt,Ht=0;Ht<ut;++Ht)(_t=nt[Ht])&&(zt=t.call(_t,_t.__data__,Ht,nt))&&("__data__"in _t&&(zt.__data__=_t.__data__),yt[Ht]=zt,WM(yt[Ht],e,n,Ht,yt,Ah(_t,n)));return new Lp(S,this._parents,e,n)}function pF(t){var e=this._name,n=this._id;typeof t!="function"&&(t=rN(t));for(var i=this._groups,c=i.length,S=[],F=[],nt=0;nt<c;++nt)for(var ut=i[nt],yt=ut.length,_t,zt=0;zt<yt;++zt)if(_t=ut[zt]){for(var Ht=t.call(_t,_t.__data__,zt,ut),Yt,re=Ah(_t,n),ue=0,oe=Ht.length;ue<oe;++ue)(Yt=Ht[ue])&&WM(Yt,e,n,ue,Ht,re);S.push(Ht),F.push(_t)}return new Lp(S,F,e,n)}var mF=e2.prototype.constructor;function gF(){return new mF(this._groups,this._parents)}function yF(t,e){var n,i,c;return function(){var S=Ab(this,t),F=(this.style.removeProperty(t),Ab(this,t));return S===F?null:S===n&&F===i?c:c=e(n=S,i=F)}}function $N(t){return function(){this.style.removeProperty(t)}}function vF(t,e,n){var i,c=n+"",S;return function(){var F=Ab(this,t);return F===c?null:F===i?S:S=e(i=F,n)}}function bF(t,e,n){var i,c,S;return function(){var F=Ab(this,t),nt=n(this),ut=nt+"";return nt==null&&(ut=nt=(this.style.removeProperty(t),Ab(this,t))),F===ut?null:F===i&&ut===c?S:(c=ut,S=e(i=F,nt))}}function xF(t,e){var n,i,c,S="style."+e,F="end."+S,nt;return function(){var ut=Wf(this,t),yt=ut.on,_t=ut.value[S]==null?nt||(nt=$N(e)):void 0;(yt!==n||c!==_t)&&(i=(n=yt).copy()).on(F,c=_t),ut.on=i}}function wF(t,e,n){var i=(t+="")=="transform"?pB:qN;return e==null?this.styleTween(t,yF(t,i)).on("end.style."+t,$N(t)):typeof e=="function"?this.styleTween(t,bF(t,i,n5(this,"style."+t,e))).each(xF(this._id,t)):this.styleTween(t,vF(t,i,e),n).on("end.style."+t,null)}function _F(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function SF(t,e,n){var i,c;function S(){var F=e.apply(this,arguments);return F!==c&&(i=(c=F)&&_F(t,F,n)),i}return S._value=e,S}function EF(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,SF(t,e,n==null?"":n))}function CF(t){return function(){this.textContent=t}}function MF(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function kF(t){return this.tween("text",typeof t=="function"?MF(n5(this,"text",t)):CF(t==null?"":t+""))}function TF(t){return function(e){this.textContent=t.call(this,e)}}function AF(t){var e,n;function i(){var c=t.apply(this,arguments);return c!==n&&(e=(n=c)&&TF(c)),e}return i._value=t,i}function PF(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,AF(t))}function OF(){for(var t=this._name,e=this._id,n=XN(),i=this._groups,c=i.length,S=0;S<c;++S)for(var F=i[S],nt=F.length,ut,yt=0;yt<nt;++yt)if(ut=F[yt]){var _t=Ah(ut,e);WM(ut,t,n,yt,F,{time:_t.time+_t.delay+_t.duration,delay:0,duration:_t.duration,ease:_t.ease})}return new Lp(i,this._parents,t,n)}function NF(){var t,e,n=this,i=n._id,c=n.size();return new Promise(function(S,F){var nt={value:F},ut={value:function(){--c===0&&S()}};n.each(function(){var yt=Wf(this,i),_t=yt.on;_t!==t&&(e=(t=_t).copy(),e._.cancel.push(nt),e._.interrupt.push(nt),e._.end.push(ut)),yt.on=e}),c===0&&S()})}var DF=0;function Lp(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function RF(t){return e2().transition(t)}function XN(){return++DF}var Ip=e2.prototype;Lp.prototype=RF.prototype={constructor:Lp,select:dF,selectAll:pF,selectChild:Ip.selectChild,selectChildren:Ip.selectChildren,filter:aF,merge:sF,selection:gF,transition:OF,call:Ip.call,nodes:Ip.nodes,node:Ip.node,size:Ip.size,empty:Ip.empty,each:Ip.each,on:cF,attr:WB,attrTween:GB,style:wF,styleTween:EF,text:kF,textTween:PF,remove:fF,tween:vB,delay:QB,duration:eF,ease:rF,easeVarying:oF,end:NF,[Symbol.iterator]:Ip[Symbol.iterator]};function z$(t){return t*t*t}function U$(t){return--t*t*t+1}function LF(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var IF={time:null,delay:0,duration:250,ease:LF};function jF(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function BF(t){var e,n;t instanceof Lp?(e=t._id,t=t._name):(e=XN(),(n=IF).time=KP(),t=t==null?null:t+"");for(var i=this._groups,c=i.length,S=0;S<c;++S)for(var F=i[S],nt=F.length,ut,yt=0;yt<nt;++yt)(ut=F[yt])&&WM(ut,t,e,yt,F,n||jF(ut,e));return new Lp(i,this._parents,t,e)}e2.prototype.interrupt=hB,e2.prototype.transition=BF;function FF(){}function s5(t){return t==null?FF:function(){return this.querySelector(t)}}function zF(t){typeof t!="function"&&(t=s5(t));for(var e=this._groups,n=e.length,i=new Array(n),c=0;c<n;++c)for(var S=e[c],F=S.length,nt=i[c]=new Array(F),ut,yt,_t=0;_t<F;++_t)(ut=S[_t])&&(yt=t.call(ut,ut.__data__,_t,S))&&("__data__"in ut&&(yt.__data__=ut.__data__),nt[_t]=yt);return new Oh(i,this._parents)}function UF(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function HF(){return[]}function GN(t){return t==null?HF:function(){return this.querySelectorAll(t)}}function VF(t){return function(){return UF(t.apply(this,arguments))}}function WF(t){typeof t=="function"?t=VF(t):t=GN(t);for(var e=this._groups,n=e.length,i=[],c=[],S=0;S<n;++S)for(var F=e[S],nt=F.length,ut,yt=0;yt<nt;++yt)(ut=F[yt])&&(i.push(t.call(ut,ut.__data__,yt,F)),c.push(ut));return new Oh(i,c)}function KN(t){return function(){return this.matches(t)}}function ZN(t){return function(e){return e.matches(t)}}var YF=Array.prototype.find;function qF(t){return function(){return YF.call(this.children,t)}}function $F(){return this.firstElementChild}function XF(t){return this.select(t==null?$F:qF(typeof t=="function"?t:ZN(t)))}var GF=Array.prototype.filter;function KF(){return Array.from(this.children)}function ZF(t){return function(){return GF.call(this.children,t)}}function QF(t){return this.selectAll(t==null?KF:ZF(typeof t=="function"?t:ZN(t)))}function JF(t){typeof t!="function"&&(t=KN(t));for(var e=this._groups,n=e.length,i=new Array(n),c=0;c<n;++c)for(var S=e[c],F=S.length,nt=i[c]=[],ut,yt=0;yt<F;++yt)(ut=S[yt])&&t.call(ut,ut.__data__,yt,S)&&nt.push(ut);return new Oh(i,this._parents)}function QN(t){return new Array(t.length)}function tz(){return new Oh(this._enter||this._groups.map(QN),this._parents)}function ZM(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}ZM.prototype={constructor:ZM,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function ez(t){return function(){return t}}function nz(t,e,n,i,c,S){for(var F=0,nt,ut=e.length,yt=S.length;F<yt;++F)(nt=e[F])?(nt.__data__=S[F],i[F]=nt):n[F]=new ZM(t,S[F]);for(;F<ut;++F)(nt=e[F])&&(c[F]=nt)}function rz(t,e,n,i,c,S,F){var nt,ut,yt=new Map,_t=e.length,zt=S.length,Ht=new Array(_t),Yt;for(nt=0;nt<_t;++nt)(ut=e[nt])&&(Ht[nt]=Yt=F.call(ut,ut.__data__,nt,e)+"",yt.has(Yt)?c[nt]=ut:yt.set(Yt,ut));for(nt=0;nt<zt;++nt)Yt=F.call(t,S[nt],nt,S)+"",(ut=yt.get(Yt))?(i[nt]=ut,ut.__data__=S[nt],yt.delete(Yt)):n[nt]=new ZM(t,S[nt]);for(nt=0;nt<_t;++nt)(ut=e[nt])&&yt.get(Ht[nt])===ut&&(c[nt]=ut)}function iz(t){return t.__data__}function oz(t,e){if(!arguments.length)return Array.from(this,iz);var n=e?rz:nz,i=this._parents,c=this._groups;typeof t!="function"&&(t=ez(t));for(var S=c.length,F=new Array(S),nt=new Array(S),ut=new Array(S),yt=0;yt<S;++yt){var _t=i[yt],zt=c[yt],Ht=zt.length,Yt=az(t.call(_t,_t&&_t.__data__,yt,i)),re=Yt.length,ue=nt[yt]=new Array(re),oe=F[yt]=new Array(re),de=ut[yt]=new Array(Ht);n(_t,zt,ue,oe,de,Yt,e);for(var pe=0,_e=0,ge,qe;pe<re;++pe)if(ge=ue[pe]){for(pe>=_e&&(_e=pe+1);!(qe=oe[_e])&&++_e<re;);ge._next=qe||null}}return F=new Oh(F,i),F._enter=nt,F._exit=ut,F}function az(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function sz(){return new Oh(this._exit||this._groups.map(QN),this._parents)}function lz(t,e,n){var i=this.enter(),c=this,S=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(c=e(c),c&&(c=c.selection())),n==null?S.remove():n(S),i&&c?i.merge(c).order():c}function uz(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,c=n.length,S=i.length,F=Math.min(c,S),nt=new Array(c),ut=0;ut<F;++ut)for(var yt=n[ut],_t=i[ut],zt=yt.length,Ht=nt[ut]=new Array(zt),Yt,re=0;re<zt;++re)(Yt=yt[re]||_t[re])&&(Ht[re]=Yt);for(;ut<c;++ut)nt[ut]=n[ut];return new Oh(nt,this._parents)}function cz(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i=t[e],c=i.length-1,S=i[c],F;--c>=0;)(F=i[c])&&(S&&F.compareDocumentPosition(S)^4&&S.parentNode.insertBefore(F,S),S=F);return this}function hz(t){t||(t=fz);function e(zt,Ht){return zt&&Ht?t(zt.__data__,Ht.__data__):!zt-!Ht}for(var n=this._groups,i=n.length,c=new Array(i),S=0;S<i;++S){for(var F=n[S],nt=F.length,ut=c[S]=new Array(nt),yt,_t=0;_t<nt;++_t)(yt=F[_t])&&(ut[_t]=yt);ut.sort(e)}return new Oh(c,this._parents).order()}function fz(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function dz(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function pz(){return Array.from(this)}function mz(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],c=0,S=i.length;c<S;++c){var F=i[c];if(F)return F}return null}function gz(){let t=0;for(const e of this)++t;return t}function yz(){return!this.node()}function vz(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var c=e[n],S=0,F=c.length,nt;S<F;++S)(nt=c[S])&&t.call(nt,nt.__data__,S,c);return this}var l5="http://www.w3.org/1999/xhtml";const JN={svg:"http://www.w3.org/2000/svg",xhtml:l5,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function QM(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),JN.hasOwnProperty(e)?{space:JN[e],local:t}:t}function bz(t){return function(){this.removeAttribute(t)}}function xz(t){return function(){this.removeAttributeNS(t.space,t.local)}}function wz(t,e){return function(){this.setAttribute(t,e)}}function _z(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Sz(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Ez(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Cz(t,e){var n=QM(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((e==null?n.local?xz:bz:typeof e=="function"?n.local?Ez:Sz:n.local?_z:wz)(n,e))}function tD(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Mz(t){return function(){this.style.removeProperty(t)}}function kz(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Tz(t,e,n){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function Az(t,e,n){return arguments.length>1?this.each((e==null?Mz:typeof e=="function"?Tz:kz)(t,e,n==null?"":n)):Nb(this.node(),t)}function Nb(t,e){return t.style.getPropertyValue(e)||tD(t).getComputedStyle(t,null).getPropertyValue(e)}function Pz(t){return function(){delete this[t]}}function Oz(t,e){return function(){this[t]=e}}function Nz(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Dz(t,e){return arguments.length>1?this.each((e==null?Pz:typeof e=="function"?Nz:Oz)(t,e)):this.node()[t]}function eD(t){return t.trim().split(/^|\s+/)}function u5(t){return t.classList||new nD(t)}function nD(t){this._node=t,this._names=eD(t.getAttribute("class")||"")}nD.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function rD(t,e){for(var n=u5(t),i=-1,c=e.length;++i<c;)n.add(e[i])}function iD(t,e){for(var n=u5(t),i=-1,c=e.length;++i<c;)n.remove(e[i])}function Rz(t){return function(){rD(this,t)}}function Lz(t){return function(){iD(this,t)}}function Iz(t,e){return function(){(e.apply(this,arguments)?rD:iD)(this,t)}}function jz(t,e){var n=eD(t+"");if(arguments.length<2){for(var i=u5(this.node()),c=-1,S=n.length;++c<S;)if(!i.contains(n[c]))return!1;return!0}return this.each((typeof e=="function"?Iz:e?Rz:Lz)(n,e))}function Bz(){this.textContent=""}function Fz(t){return function(){this.textContent=t}}function zz(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function Uz(t){return arguments.length?this.each(t==null?Bz:(typeof t=="function"?zz:Fz)(t)):this.node().textContent}function Hz(){this.innerHTML=""}function Vz(t){return function(){this.innerHTML=t}}function Wz(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function Yz(t){return arguments.length?this.each(t==null?Hz:(typeof t=="function"?Wz:Vz)(t)):this.node().innerHTML}function qz(){this.nextSibling&&this.parentNode.appendChild(this)}function $z(){return this.each(qz)}function Xz(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Gz(){return this.each(Xz)}function Kz(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===l5&&e.documentElement.namespaceURI===l5?e.createElement(t):e.createElementNS(n,t)}}function Zz(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function oD(t){var e=QM(t);return(e.local?Zz:Kz)(e)}function Qz(t){var e=typeof t=="function"?t:oD(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Jz(){return null}function tU(t,e){var n=typeof t=="function"?t:oD(t),i=e==null?Jz:typeof e=="function"?e:s5(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function eU(){var t=this.parentNode;t&&t.removeChild(this)}function nU(){return this.each(eU)}function rU(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function iU(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function oU(t){return this.select(t?iU:rU)}function aU(t){return arguments.length?this.property("__data__",t):this.node().__data__}function sU(t){return function(e){t.call(this,e,this.__data__)}}function lU(t){return t.trim().split(/^|\s+/).map(function(e){var n="",i=e.indexOf(".");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{type:e,name:n}})}function uU(t){return function(){var e=this.__on;if(e){for(var n=0,i=-1,c=e.length,S;n<c;++n)S=e[n],(!t.type||S.type===t.type)&&S.name===t.name?this.removeEventListener(S.type,S.listener,S.options):e[++i]=S;++i?e.length=i:delete this.__on}}}function cU(t,e,n){return function(){var i=this.__on,c,S=sU(e);if(i){for(var F=0,nt=i.length;F<nt;++F)if((c=i[F]).type===t.type&&c.name===t.name){this.removeEventListener(c.type,c.listener,c.options),this.addEventListener(c.type,c.listener=S,c.options=n),c.value=e;return}}this.addEventListener(t.type,S,n),c={type:t.type,name:t.name,value:e,listener:S,options:n},i?i.push(c):this.__on=[c]}}function hU(t,e,n){var i=lU(t+""),c,S=i.length,F;if(arguments.length<2){var nt=this.node().__on;if(nt){for(var ut=0,yt=nt.length,_t;ut<yt;++ut)for(c=0,_t=nt[ut];c<S;++c)if((F=i[c]).type===_t.type&&F.name===_t.name)return _t.value}return}for(nt=e?cU:uU,c=0;c<S;++c)this.each(nt(i[c],e,n));return this}function aD(t,e,n){var i=tD(t),c=i.CustomEvent;typeof c=="function"?c=new c(e,n):(c=i.document.createEvent("Event"),n?(c.initEvent(e,n.bubbles,n.cancelable),c.detail=n.detail):c.initEvent(e,!1,!1)),t.dispatchEvent(c)}function fU(t,e){return function(){return aD(this,t,e)}}function dU(t,e){return function(){return aD(this,t,e.apply(this,arguments))}}function pU(t,e){return this.each((typeof e=="function"?dU:fU)(t,e))}function*mU(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],c=0,S=i.length,F;c<S;++c)(F=i[c])&&(yield F)}var gU=[null];function Oh(t,e){this._groups=t,this._parents=e}function sD(){return new Oh([[document.documentElement]],gU)}function yU(){return this}Oh.prototype=sD.prototype={constructor:Oh,select:zF,selectAll:WF,selectChild:XF,selectChildren:QF,filter:JF,data:oz,enter:tz,exit:sz,join:lz,merge:uz,selection:yU,order:cz,sort:hz,call:dz,nodes:pz,node:mz,size:gz,empty:yz,each:vz,attr:Cz,style:Az,property:Dz,classed:jz,text:Uz,html:Yz,raise:$z,lower:Gz,append:Qz,insert:tU,remove:nU,clone:oU,datum:aU,on:hU,dispatch:pU,[Symbol.iterator]:mU};const c2=sD;var vU={value:()=>{}};function lD(){for(var t=0,e=arguments.length,n={},i;t<e;++t){if(!(i=arguments[t]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new JM(n)}function JM(t){this._=t}function bU(t,e){return t.trim().split(/^|\s+/).map(function(n){var i="",c=n.indexOf(".");if(c>=0&&(i=n.slice(c+1),n=n.slice(0,c)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}JM.prototype=lD.prototype={constructor:JM,on:function(t,e){var n=this._,i=bU(t+"",n),c,S=-1,F=i.length;if(arguments.length<2){for(;++S<F;)if((c=(t=i[S]).type)&&(c=xU(n[c],t.name)))return c;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++S<F;)if(c=(t=i[S]).type)n[c]=uD(n[c],t.name,e);else if(e==null)for(c in n)n[c]=uD(n[c],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new JM(t)},call:function(t,e){if((c=arguments.length-2)>0)for(var n=new Array(c),i=0,c,S;i<c;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(S=this._[t],i=0,c=S.length;i<c;++i)S[i].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],c=0,S=i.length;c<S;++c)i[c].value.apply(e,n)}};function xU(t,e){for(var n=0,i=t.length,c;n<i;++n)if((c=t[n]).name===e)return c.value}function uD(t,e,n){for(var i=0,c=t.length;i<c;++i)if(t[i].name===e){t[i]=vU,t=t.slice(0,i).concat(t.slice(i+1));break}return n!=null&&t.push({name:e,value:n}),t}const wU=lD;var Db=0,h2=0,f2=0,cD=1e3,tk,d2,ek=0,Yy=0,nk=0,p2=typeof performance=="object"&&performance.now?performance:Date,hD=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function c5(){return Yy||(hD(_U),Yy=p2.now()+nk)}function _U(){Yy=0}function rk(){this._call=this._time=this._next=null}rk.prototype=fD.prototype={constructor:rk,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?c5():+n)+(e==null?0:+e),!this._next&&d2!==this&&(d2?d2._next=this:tk=this,d2=this),this._call=t,this._time=n,h5()},stop:function(){this._call&&(this._call=null,this._time=1/0,h5())}};function fD(t,e,n){var i=new rk;return i.restart(t,e,n),i}function SU(){c5(),++Db;for(var t=tk,e;t;)(e=Yy-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Db}function dD(){Yy=(ek=p2.now())+nk,Db=h2=0;try{SU()}finally{Db=0,CU(),Yy=0}}function EU(){var t=p2.now(),e=t-ek;e>cD&&(nk-=e,ek=t)}function CU(){for(var t,e=tk,n,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:tk=n);d2=t,h5(i)}function h5(t){if(!Db){h2&&(h2=clearTimeout(h2));var e=t-Yy;e>24?(t<1/0&&(h2=setTimeout(dD,t-p2.now()-nk)),f2&&(f2=clearInterval(f2))):(f2||(ek=p2.now(),f2=setInterval(EU,cD)),Db=1,hD(dD))}}function pD(t,e,n){var i=new rk;return e=e==null?0:+e,i.restart(c=>{i.stop(),t(c+e)},e,n),i}var MU=wU("start","end","cancel","interrupt"),kU=[],mD=0,gD=1,f5=2,ik=3,yD=4,d5=5,ok=6;function ak(t,e,n,i,c,S){var F=t.__transition;if(!F)t.__transition={};else if(n in F)return;TU(t,n,{name:e,index:i,group:c,on:MU,tween:kU,time:S.time,delay:S.delay,duration:S.duration,ease:S.ease,timer:null,state:mD})}function p5(t,e){var n=Nh(t,e);if(n.state>mD)throw new Error("too late; already scheduled");return n}function qf(t,e){var n=Nh(t,e);if(n.state>ik)throw new Error("too late; already running");return n}function Nh(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function TU(t,e,n){var i=t.__transition,c;i[e]=n,n.timer=fD(S,0,n.time);function S(yt){n.state=gD,n.timer.restart(F,n.delay,n.time),n.delay<=yt&&F(yt-n.delay)}function F(yt){var _t,zt,Ht,Yt;if(n.state!==gD)return ut();for(_t in i)if(Yt=i[_t],Yt.name===n.name){if(Yt.state===ik)return pD(F);Yt.state===yD?(Yt.state=ok,Yt.timer.stop(),Yt.on.call("interrupt",t,t.__data__,Yt.index,Yt.group),delete i[_t]):+_t<e&&(Yt.state=ok,Yt.timer.stop(),Yt.on.call("cancel",t,t.__data__,Yt.index,Yt.group),delete i[_t])}if(pD(function(){n.state===ik&&(n.state=yD,n.timer.restart(nt,n.delay,n.time),nt(yt))}),n.state=f5,n.on.call("start",t,t.__data__,n.index,n.group),n.state===f5){for(n.state=ik,c=new Array(Ht=n.tween.length),_t=0,zt=-1;_t<Ht;++_t)(Yt=n.tween[_t].value.call(t,t.__data__,n.index,n.group))&&(c[++zt]=Yt);c.length=zt+1}}function nt(yt){for(var _t=yt<n.duration?n.ease.call(null,yt/n.duration):(n.timer.restart(ut),n.state=d5,1),zt=-1,Ht=c.length;++zt<Ht;)c[zt].call(t,_t);n.state===d5&&(n.on.call("end",t,t.__data__,n.index,n.group),ut())}function ut(){n.state=ok,n.timer.stop(),delete i[e];for(var yt in i)return;delete t.__transition}}function AU(t,e){var n=t.__transition,i,c,S=!0,F;if(n){e=e==null?null:e+"";for(F in n){if((i=n[F]).name!==e){S=!1;continue}c=i.state>f5&&i.state<d5,i.state=ok,i.timer.stop(),i.on.call(c?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete n[F]}S&&delete t.__transition}}function PU(t){return this.each(function(){AU(this,t)})}function Eg(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var vD=180/Math.PI,m5={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function bD(t,e,n,i,c,S){var F,nt,ut;return(F=Math.sqrt(t*t+e*e))&&(t/=F,e/=F),(ut=t*n+e*i)&&(n-=t*ut,i-=e*ut),(nt=Math.sqrt(n*n+i*i))&&(n/=nt,i/=nt,ut/=nt),t*i<e*n&&(t=-t,e=-e,ut=-ut,F=-F),{translateX:c,translateY:S,rotate:Math.atan2(e,t)*vD,skewX:Math.atan(ut)*vD,scaleX:F,scaleY:nt}}var sk;function OU(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?m5:bD(e.a,e.b,e.c,e.d,e.e,e.f)}function NU(t){return t==null||(sk||(sk=document.createElementNS("http://www.w3.org/2000/svg","g")),sk.setAttribute("transform",t),!(t=sk.transform.baseVal.consolidate()))?m5:(t=t.matrix,bD(t.a,t.b,t.c,t.d,t.e,t.f))}function xD(t,e,n,i){function c(yt){return yt.length?yt.pop()+" ":""}function S(yt,_t,zt,Ht,Yt,re){if(yt!==zt||_t!==Ht){var ue=Yt.push("translate(",null,e,null,n);re.push({i:ue-4,x:Eg(yt,zt)},{i:ue-2,x:Eg(_t,Ht)})}else(zt||Ht)&&Yt.push("translate("+zt+e+Ht+n)}function F(yt,_t,zt,Ht){yt!==_t?(yt-_t>180?_t+=360:_t-yt>180&&(yt+=360),Ht.push({i:zt.push(c(zt)+"rotate(",null,i)-2,x:Eg(yt,_t)})):_t&&zt.push(c(zt)+"rotate("+_t+i)}function nt(yt,_t,zt,Ht){yt!==_t?Ht.push({i:zt.push(c(zt)+"skewX(",null,i)-2,x:Eg(yt,_t)}):_t&&zt.push(c(zt)+"skewX("+_t+i)}function ut(yt,_t,zt,Ht,Yt,re){if(yt!==zt||_t!==Ht){var ue=Yt.push(c(Yt)+"scale(",null,",",null,")");re.push({i:ue-4,x:Eg(yt,zt)},{i:ue-2,x:Eg(_t,Ht)})}else(zt!==1||Ht!==1)&&Yt.push(c(Yt)+"scale("+zt+","+Ht+")")}return function(yt,_t){var zt=[],Ht=[];return yt=t(yt),_t=t(_t),S(yt.translateX,yt.translateY,_t.translateX,_t.translateY,zt,Ht),F(yt.rotate,_t.rotate,zt,Ht),nt(yt.skewX,_t.skewX,zt,Ht),ut(yt.scaleX,yt.scaleY,_t.scaleX,_t.scaleY,zt,Ht),yt=_t=null,function(Yt){for(var re=-1,ue=Ht.length,oe;++re<ue;)zt[(oe=Ht[re]).i]=oe.x(Yt);return zt.join("")}}}var DU=xD(OU,"px, ","px)","deg)"),RU=xD(NU,", ",")",")");function LU(t,e){var n,i;return function(){var c=qf(this,t),S=c.tween;if(S!==n){i=n=S;for(var F=0,nt=i.length;F<nt;++F)if(i[F].name===e){i=i.slice(),i.splice(F,1);break}}c.tween=i}}function IU(t,e,n){var i,c;if(typeof n!="function")throw new Error;return function(){var S=qf(this,t),F=S.tween;if(F!==i){c=(i=F).slice();for(var nt={name:e,value:n},ut=0,yt=c.length;ut<yt;++ut)if(c[ut].name===e){c[ut]=nt;break}ut===yt&&c.push(nt)}S.tween=c}}function jU(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i=Nh(this.node(),n).tween,c=0,S=i.length,F;c<S;++c)if((F=i[c]).name===t)return F.value;return null}return this.each((e==null?LU:IU)(n,t,e))}function g5(t,e,n){var i=t._id;return t.each(function(){var c=qf(this,i);(c.value||(c.value={}))[e]=n.apply(this,arguments)}),function(c){return Nh(c,i).value[e]}}function y5(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function wD(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function m2(){}var g2=.7,lk=1/g2,Rb="\\s*([+-]?\\d+)\\s*",y2="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",$f="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",BU=/^#([0-9a-f]{3,8})$/,FU=new RegExp(`^rgb\\(${Rb},${Rb},${Rb}\\)$`),zU=new RegExp(`^rgb\\(${$f},${$f},${$f}\\)$`),UU=new RegExp(`^rgba\\(${Rb},${Rb},${Rb},${y2}\\)$`),HU=new RegExp(`^rgba\\(${$f},${$f},${$f},${y2}\\)$`),VU=new RegExp(`^hsl\\(${y2},${$f},${$f}\\)$`),WU=new RegExp(`^hsla\\(${y2},${$f},${$f},${y2}\\)$`),_D={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};y5(m2,v2,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:SD,formatHex:SD,formatHex8:YU,formatHsl:qU,formatRgb:ED,toString:ED});function SD(){return this.rgb().formatHex()}function YU(){return this.rgb().formatHex8()}function qU(){return AD(this).formatHsl()}function ED(){return this.rgb().formatRgb()}function v2(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=BU.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?CD(e):n===3?new pu(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?uk(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?uk(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=FU.exec(t))?new pu(e[1],e[2],e[3],1):(e=zU.exec(t))?new pu(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=UU.exec(t))?uk(e[1],e[2],e[3],e[4]):(e=HU.exec(t))?uk(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=VU.exec(t))?TD(e[1],e[2]/100,e[3]/100,1):(e=WU.exec(t))?TD(e[1],e[2]/100,e[3]/100,e[4]):_D.hasOwnProperty(t)?CD(_D[t]):t==="transparent"?new pu(NaN,NaN,NaN,0):null}function CD(t){return new pu(t>>16&255,t>>8&255,t&255,1)}function uk(t,e,n,i){return i<=0&&(t=e=n=NaN),new pu(t,e,n,i)}function $U(t){return t instanceof m2||(t=v2(t)),t?(t=t.rgb(),new pu(t.r,t.g,t.b,t.opacity)):new pu}function ck(t,e,n,i){return arguments.length===1?$U(t):new pu(t,e,n,i==null?1:i)}function pu(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}y5(pu,ck,wD(m2,{brighter(t){return t=t==null?lk:Math.pow(lk,t),new pu(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?g2:Math.pow(g2,t),new pu(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new pu(qy(this.r),qy(this.g),qy(this.b),hk(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:MD,formatHex:MD,formatHex8:XU,formatRgb:kD,toString:kD}));function MD(){return`#${$y(this.r)}${$y(this.g)}${$y(this.b)}`}function XU(){return`#${$y(this.r)}${$y(this.g)}${$y(this.b)}${$y((isNaN(this.opacity)?1:this.opacity)*255)}`}function kD(){const t=hk(this.opacity);return`${t===1?"rgb(":"rgba("}${qy(this.r)}, ${qy(this.g)}, ${qy(this.b)}${t===1?")":`, ${t})`}`}function hk(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function qy(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function $y(t){return t=qy(t),(t<16?"0":"")+t.toString(16)}function TD(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Dh(t,e,n,i)}function AD(t){if(t instanceof Dh)return new Dh(t.h,t.s,t.l,t.opacity);if(t instanceof m2||(t=v2(t)),!t)return new Dh;if(t instanceof Dh)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,c=Math.min(e,n,i),S=Math.max(e,n,i),F=NaN,nt=S-c,ut=(S+c)/2;return nt?(e===S?F=(n-i)/nt+(n<i)*6:n===S?F=(i-e)/nt+2:F=(e-n)/nt+4,nt/=ut<.5?S+c:2-S-c,F*=60):nt=ut>0&&ut<1?0:F,new Dh(F,nt,ut,t.opacity)}function GU(t,e,n,i){return arguments.length===1?AD(t):new Dh(t,e,n,i==null?1:i)}function Dh(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}y5(Dh,GU,wD(m2,{brighter(t){return t=t==null?lk:Math.pow(lk,t),new Dh(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?g2:Math.pow(g2,t),new Dh(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,c=2*n-i;return new pu(v5(t>=240?t-240:t+120,c,i),v5(t,c,i),v5(t<120?t+240:t-120,c,i),this.opacity)},clamp(){return new Dh(PD(this.h),fk(this.s),fk(this.l),hk(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=hk(this.opacity);return`${t===1?"hsl(":"hsla("}${PD(this.h)}, ${fk(this.s)*100}%, ${fk(this.l)*100}%${t===1?")":`, ${t})`}`}}));function PD(t){return t=(t||0)%360,t<0?t+360:t}function fk(t){return Math.max(0,Math.min(1,t||0))}function v5(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function OD(t,e,n,i,c){var S=t*t,F=S*t;return((1-3*t+3*S-F)*e+(4-6*S+3*F)*n+(1+3*t+3*S-3*F)*i+F*c)/6}function KU(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),c=t[i],S=t[i+1],F=i>0?t[i-1]:2*c-S,nt=i<e-1?t[i+2]:2*S-c;return OD((n-i/e)*e,F,c,S,nt)}}function ZU(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),c=t[(i+e-1)%e],S=t[i%e],F=t[(i+1)%e],nt=t[(i+2)%e];return OD((n-i/e)*e,c,S,F,nt)}}const ND=t=>()=>t;function DD(t,e){return function(n){return t+n*e}}function QU(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}function H$(t,e){var n=e-t;return n?DD(t,n>180||n<-180?n-360*Math.round(n/360):n):constant(isNaN(t)?e:t)}function JU(t){return(t=+t)==1?RD:function(e,n){return n-e?QU(e,n,t):ND(isNaN(e)?n:e)}}function RD(t,e){var n=e-t;return n?DD(t,n):ND(isNaN(t)?e:t)}const LD=function t(e){var n=JU(e);function i(c,S){var F=n((c=ck(c)).r,(S=ck(S)).r),nt=n(c.g,S.g),ut=n(c.b,S.b),yt=RD(c.opacity,S.opacity);return function(_t){return c.r=F(_t),c.g=nt(_t),c.b=ut(_t),c.opacity=yt(_t),c+""}}return i.gamma=t,i}(1);function ID(t){return function(e){var n=e.length,i=new Array(n),c=new Array(n),S=new Array(n),F,nt;for(F=0;F<n;++F)nt=ck(e[F]),i[F]=nt.r||0,c[F]=nt.g||0,S[F]=nt.b||0;return i=t(i),c=t(c),S=t(S),nt.opacity=1,function(ut){return nt.r=i(ut),nt.g=c(ut),nt.b=S(ut),nt+""}}}var V$=ID(KU),W$=ID(ZU),b5=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,x5=new RegExp(b5.source,"g");function tH(t){return function(){return t}}function eH(t){return function(e){return t(e)+""}}function nH(t,e){var n=b5.lastIndex=x5.lastIndex=0,i,c,S,F=-1,nt=[],ut=[];for(t=t+"",e=e+"";(i=b5.exec(t))&&(c=x5.exec(e));)(S=c.index)>n&&(S=e.slice(n,S),nt[F]?nt[F]+=S:nt[++F]=S),(i=i[0])===(c=c[0])?nt[F]?nt[F]+=c:nt[++F]=c:(nt[++F]=null,ut.push({i:F,x:Eg(i,c)})),n=x5.lastIndex;return n<e.length&&(S=e.slice(n),nt[F]?nt[F]+=S:nt[++F]=S),nt.length<2?ut[0]?eH(ut[0].x):tH(e):(e=ut.length,function(yt){for(var _t=0,zt;_t<e;++_t)nt[(zt=ut[_t]).i]=zt.x(yt);return nt.join("")})}function jD(t,e){var n;return(typeof e=="number"?Eg:e instanceof v2?LD:(n=v2(e))?(e=n,LD):nH)(t,e)}function rH(t){return function(){this.removeAttribute(t)}}function iH(t){return function(){this.removeAttributeNS(t.space,t.local)}}function oH(t,e,n){var i,c=n+"",S;return function(){var F=this.getAttribute(t);return F===c?null:F===i?S:S=e(i=F,n)}}function aH(t,e,n){var i,c=n+"",S;return function(){var F=this.getAttributeNS(t.space,t.local);return F===c?null:F===i?S:S=e(i=F,n)}}function sH(t,e,n){var i,c,S;return function(){var F,nt=n(this),ut;return nt==null?void this.removeAttribute(t):(F=this.getAttribute(t),ut=nt+"",F===ut?null:F===i&&ut===c?S:(c=ut,S=e(i=F,nt)))}}function lH(t,e,n){var i,c,S;return function(){var F,nt=n(this),ut;return nt==null?void this.removeAttributeNS(t.space,t.local):(F=this.getAttributeNS(t.space,t.local),ut=nt+"",F===ut?null:F===i&&ut===c?S:(c=ut,S=e(i=F,nt)))}}function uH(t,e){var n=QM(t),i=n==="transform"?RU:jD;return this.attrTween(t,typeof e=="function"?(n.local?lH:sH)(n,i,g5(this,"attr."+t,e)):e==null?(n.local?iH:rH)(n):(n.local?aH:oH)(n,i,e))}function cH(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function hH(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function fH(t,e){var n,i;function c(){var S=e.apply(this,arguments);return S!==i&&(n=(i=S)&&hH(t,S)),n}return c._value=e,c}function dH(t,e){var n,i;function c(){var S=e.apply(this,arguments);return S!==i&&(n=(i=S)&&cH(t,S)),n}return c._value=e,c}function pH(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var i=QM(t);return this.tween(n,(i.local?fH:dH)(i,e))}function mH(t,e){return function(){p5(this,t).delay=+e.apply(this,arguments)}}function gH(t,e){return e=+e,function(){p5(this,t).delay=e}}function yH(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?mH:gH)(e,t)):Nh(this.node(),e).delay}function vH(t,e){return function(){qf(this,t).duration=+e.apply(this,arguments)}}function bH(t,e){return e=+e,function(){qf(this,t).duration=e}}function xH(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?vH:bH)(e,t)):Nh(this.node(),e).duration}function wH(t,e){if(typeof e!="function")throw new Error;return function(){qf(this,t).ease=e}}function _H(t){var e=this._id;return arguments.length?this.each(wH(e,t)):Nh(this.node(),e).ease}function SH(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;qf(this,t).ease=n}}function EH(t){if(typeof t!="function")throw new Error;return this.each(SH(this._id,t))}function CH(t){typeof t!="function"&&(t=KN(t));for(var e=this._groups,n=e.length,i=new Array(n),c=0;c<n;++c)for(var S=e[c],F=S.length,nt=i[c]=[],ut,yt=0;yt<F;++yt)(ut=S[yt])&&t.call(ut,ut.__data__,yt,S)&&nt.push(ut);return new jp(i,this._parents,this._name,this._id)}function MH(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,c=n.length,S=Math.min(i,c),F=new Array(i),nt=0;nt<S;++nt)for(var ut=e[nt],yt=n[nt],_t=ut.length,zt=F[nt]=new Array(_t),Ht,Yt=0;Yt<_t;++Yt)(Ht=ut[Yt]||yt[Yt])&&(zt[Yt]=Ht);for(;nt<i;++nt)F[nt]=e[nt];return new jp(F,this._parents,this._name,this._id)}function kH(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function TH(t,e,n){var i,c,S=kH(e)?p5:qf;return function(){var F=S(this,t),nt=F.on;nt!==i&&(c=(i=nt).copy()).on(e,n),F.on=c}}function AH(t,e){var n=this._id;return arguments.length<2?Nh(this.node(),n).on.on(t):this.each(TH(n,t,e))}function PH(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function OH(){return this.on("end.remove",PH(this._id))}function NH(t){var e=this._name,n=this._id;typeof t!="function"&&(t=s5(t));for(var i=this._groups,c=i.length,S=new Array(c),F=0;F<c;++F)for(var nt=i[F],ut=nt.length,yt=S[F]=new Array(ut),_t,zt,Ht=0;Ht<ut;++Ht)(_t=nt[Ht])&&(zt=t.call(_t,_t.__data__,Ht,nt))&&("__data__"in _t&&(zt.__data__=_t.__data__),yt[Ht]=zt,ak(yt[Ht],e,n,Ht,yt,Nh(_t,n)));return new jp(S,this._parents,e,n)}function DH(t){var e=this._name,n=this._id;typeof t!="function"&&(t=GN(t));for(var i=this._groups,c=i.length,S=[],F=[],nt=0;nt<c;++nt)for(var ut=i[nt],yt=ut.length,_t,zt=0;zt<yt;++zt)if(_t=ut[zt]){for(var Ht=t.call(_t,_t.__data__,zt,ut),Yt,re=Nh(_t,n),ue=0,oe=Ht.length;ue<oe;++ue)(Yt=Ht[ue])&&ak(Yt,e,n,ue,Ht,re);S.push(Ht),F.push(_t)}return new jp(S,F,e,n)}var RH=c2.prototype.constructor;function LH(){return new RH(this._groups,this._parents)}function IH(t,e){var n,i,c;return function(){var S=Nb(this,t),F=(this.style.removeProperty(t),Nb(this,t));return S===F?null:S===n&&F===i?c:c=e(n=S,i=F)}}function BD(t){return function(){this.style.removeProperty(t)}}function jH(t,e,n){var i,c=n+"",S;return function(){var F=Nb(this,t);return F===c?null:F===i?S:S=e(i=F,n)}}function BH(t,e,n){var i,c,S;return function(){var F=Nb(this,t),nt=n(this),ut=nt+"";return nt==null&&(ut=nt=(this.style.removeProperty(t),Nb(this,t))),F===ut?null:F===i&&ut===c?S:(c=ut,S=e(i=F,nt))}}function FH(t,e){var n,i,c,S="style."+e,F="end."+S,nt;return function(){var ut=qf(this,t),yt=ut.on,_t=ut.value[S]==null?nt||(nt=BD(e)):void 0;(yt!==n||c!==_t)&&(i=(n=yt).copy()).on(F,c=_t),ut.on=i}}function zH(t,e,n){var i=(t+="")=="transform"?DU:jD;return e==null?this.styleTween(t,IH(t,i)).on("end.style."+t,BD(t)):typeof e=="function"?this.styleTween(t,BH(t,i,g5(this,"style."+t,e))).each(FH(this._id,t)):this.styleTween(t,jH(t,i,e),n).on("end.style."+t,null)}function UH(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function HH(t,e,n){var i,c;function S(){var F=e.apply(this,arguments);return F!==c&&(i=(c=F)&&UH(t,F,n)),i}return S._value=e,S}function VH(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,HH(t,e,n==null?"":n))}function WH(t){return function(){this.textContent=t}}function YH(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function qH(t){return this.tween("text",typeof t=="function"?YH(g5(this,"text",t)):WH(t==null?"":t+""))}function $H(t){return function(e){this.textContent=t.call(this,e)}}function XH(t){var e,n;function i(){var c=t.apply(this,arguments);return c!==n&&(e=(n=c)&&$H(c)),e}return i._value=t,i}function GH(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,XH(t))}function KH(){for(var t=this._name,e=this._id,n=FD(),i=this._groups,c=i.length,S=0;S<c;++S)for(var F=i[S],nt=F.length,ut,yt=0;yt<nt;++yt)if(ut=F[yt]){var _t=Nh(ut,e);ak(ut,t,n,yt,F,{time:_t.time+_t.delay+_t.duration,delay:0,duration:_t.duration,ease:_t.ease})}return new jp(i,this._parents,t,n)}function ZH(){var t,e,n=this,i=n._id,c=n.size();return new Promise(function(S,F){var nt={value:F},ut={value:function(){--c===0&&S()}};n.each(function(){var yt=qf(this,i),_t=yt.on;_t!==t&&(e=(t=_t).copy(),e._.cancel.push(nt),e._.interrupt.push(nt),e._.end.push(ut)),yt.on=e}),c===0&&S()})}var QH=0;function jp(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function JH(t){return c2().transition(t)}function FD(){return++QH}var Bp=c2.prototype;jp.prototype=JH.prototype={constructor:jp,select:NH,selectAll:DH,selectChild:Bp.selectChild,selectChildren:Bp.selectChildren,filter:CH,merge:MH,selection:LH,transition:KH,call:Bp.call,nodes:Bp.nodes,node:Bp.node,size:Bp.size,empty:Bp.empty,each:Bp.each,on:AH,attr:uH,attrTween:pH,style:zH,styleTween:VH,text:qH,textTween:GH,remove:OH,tween:jU,delay:yH,duration:xH,ease:_H,easeVarying:EH,end:ZH,[Symbol.iterator]:Bp[Symbol.iterator]};function Y$(t){return t*t*t}function q$(t){return--t*t*t+1}function tV(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var eV={time:null,delay:0,duration:250,ease:tV};function nV(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function rV(t){var e,n;t instanceof jp?(e=t._id,t=t._name):(e=FD(),(n=eV).time=c5(),t=t==null?null:t+"");for(var i=this._groups,c=i.length,S=0;S<c;++S)for(var F=i[S],nt=F.length,ut,yt=0;yt<nt;++yt)(ut=F[yt])&&ak(ut,t,e,yt,F,n||nV(ut,e));return new jp(i,this._parents,t,e)}c2.prototype.interrupt=PU,c2.prototype.transition=rV;function Lb(t,e,n){this.k=t,this.x=e,this.y=n}Lb.prototype={constructor:Lb,scale:function(t){return t===1?this:new Lb(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Lb(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var iV=new Lb(1,0,0);oV.prototype=Lb.prototype;function oV(t){for(;!t.__zoom;)if(!(t=t.parentNode))return iV;return t.__zoom}function aV(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function sV(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function zD(){return this.__zoom||identity}function lV(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function uV(){return navigator.maxTouchPoints||"ontouchstart"in this}function cV(t,e,n){var i=t.invertX(e[0][0])-n[0][0],c=t.invertX(e[1][0])-n[1][0],S=t.invertY(e[0][1])-n[0][1],F=t.invertY(e[1][1])-n[1][1];return t.translate(c>i?(i+c)/2:Math.min(0,i)||Math.max(0,c),F>S?(S+F)/2:Math.min(0,S)||Math.max(0,F))}function $$(){var t=aV,e=sV,n=cV,i=lV,c=uV,S=[0,1/0],F=[[-1/0,-1/0],[1/0,1/0]],nt=250,ut=interpolateZoom,yt=dispatch("start","zoom","end"),_t,zt,Ht,Yt=500,re=150,ue=0,oe=10;function de(fn){fn.property("__zoom",zD).on("wheel.zoom",Ye,{passive:!1}).on("mousedown.zoom",tn).on("dblclick.zoom",gn).filter(c).on("touchstart.zoom",Cn).on("touchmove.zoom",kn).on("touchend.zoom touchcancel.zoom",Zn).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}de.transform=function(fn,jn,On,Vn){var wr=fn.selection?fn.selection():fn;wr.property("__zoom",zD),fn!==wr?qe(fn,jn,On,Vn):wr.interrupt().each(function(){De(this,arguments).event(Vn).start().zoom(null,typeof jn=="function"?jn.apply(this,arguments):jn).end()})},de.scaleBy=function(fn,jn,On,Vn){de.scaleTo(fn,function(){var wr=this.__zoom.k,Pr=typeof jn=="function"?jn.apply(this,arguments):jn;return wr*Pr},On,Vn)},de.scaleTo=function(fn,jn,On,Vn){de.transform(fn,function(){var wr=e.apply(this,arguments),Pr=this.__zoom,_r=On==null?ge(wr):typeof On=="function"?On.apply(this,arguments):On,Ur=Pr.invert(_r),Hr=typeof jn=="function"?jn.apply(this,arguments):jn;return n(_e(pe(Pr,Hr),_r,Ur),wr,F)},On,Vn)},de.translateBy=function(fn,jn,On,Vn){de.transform(fn,function(){return n(this.__zoom.translate(typeof jn=="function"?jn.apply(this,arguments):jn,typeof On=="function"?On.apply(this,arguments):On),e.apply(this,arguments),F)},null,Vn)},de.translateTo=function(fn,jn,On,Vn,wr){de.transform(fn,function(){var Pr=e.apply(this,arguments),_r=this.__zoom,Ur=Vn==null?ge(Pr):typeof Vn=="function"?Vn.apply(this,arguments):Vn;return n(identity.translate(Ur[0],Ur[1]).scale(_r.k).translate(typeof jn=="function"?-jn.apply(this,arguments):-jn,typeof On=="function"?-On.apply(this,arguments):-On),Pr,F)},Vn,wr)};function pe(fn,jn){return jn=Math.max(S[0],Math.min(S[1],jn)),jn===fn.k?fn:new Transform(jn,fn.x,fn.y)}function _e(fn,jn,On){var Vn=jn[0]-On[0]*fn.k,wr=jn[1]-On[1]*fn.k;return Vn===fn.x&&wr===fn.y?fn:new Transform(fn.k,Vn,wr)}function ge(fn){return[(+fn[0][0]+ +fn[1][0])/2,(+fn[0][1]+ +fn[1][1])/2]}function qe(fn,jn,On,Vn){fn.on("start.zoom",function(){De(this,arguments).event(Vn).start()}).on("interrupt.zoom end.zoom",function(){De(this,arguments).event(Vn).end()}).tween("zoom",function(){var wr=this,Pr=arguments,_r=De(wr,Pr).event(Vn),Ur=e.apply(wr,Pr),Hr=On==null?ge(Ur):typeof On=="function"?On.apply(wr,Pr):On,Li=Math.max(Ur[1][0]-Ur[0][0],Ur[1][1]-Ur[0][1]),ai=wr.__zoom,Ei=typeof jn=="function"?jn.apply(wr,Pr):jn,Zi=ut(ai.invert(Hr).concat(Li/ai.k),Ei.invert(Hr).concat(Li/Ei.k));return function($r){if($r===1)$r=Ei;else{var Fi=Zi($r),qo=Li/Fi[2];$r=new Transform(qo,Hr[0]-Fi[0]*qo,Hr[1]-Fi[1]*qo)}_r.zoom(null,$r)}})}function De(fn,jn,On){return!On&&fn.__zooming||new $e(fn,jn)}function $e(fn,jn){this.that=fn,this.args=jn,this.active=0,this.sourceEvent=null,this.extent=e.apply(fn,jn),this.taps=0}$e.prototype={event:function(fn){return fn&&(this.sourceEvent=fn),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(fn,jn){return this.mouse&&fn!=="mouse"&&(this.mouse[1]=jn.invert(this.mouse[0])),this.touch0&&fn!=="touch"&&(this.touch0[1]=jn.invert(this.touch0[0])),this.touch1&&fn!=="touch"&&(this.touch1[1]=jn.invert(this.touch1[0])),this.that.__zoom=jn,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(fn){var jn=select(this.that).datum();yt.call(fn,this.that,new ZoomEvent(fn,{sourceEvent:this.sourceEvent,target:de,type:fn,transform:this.that.__zoom,dispatch:yt}),jn)}};function Ye(fn,...jn){if(!t.apply(this,arguments))return;var On=De(this,jn).event(fn),Vn=this.__zoom,wr=Math.max(S[0],Math.min(S[1],Vn.k*Math.pow(2,i.apply(this,arguments)))),Pr=pointer(fn);if(On.wheel)(On.mouse[0][0]!==Pr[0]||On.mouse[0][1]!==Pr[1])&&(On.mouse[1]=Vn.invert(On.mouse[0]=Pr)),clearTimeout(On.wheel);else{if(Vn.k===wr)return;On.mouse=[Pr,Vn.invert(Pr)],interrupt(this),On.start()}noevent(fn),On.wheel=setTimeout(_r,re),On.zoom("mouse",n(_e(pe(Vn,wr),On.mouse[0],On.mouse[1]),On.extent,F));function _r(){On.wheel=null,On.end()}}function tn(fn,...jn){if(Ht||!t.apply(this,arguments))return;var On=fn.currentTarget,Vn=De(this,jn,!0).event(fn),wr=select(fn.view).on("mousemove.zoom",Hr,!0).on("mouseup.zoom",Li,!0),Pr=pointer(fn,On),_r=fn.clientX,Ur=fn.clientY;dragDisable(fn.view),nopropagation(fn),Vn.mouse=[Pr,this.__zoom.invert(Pr)],interrupt(this),Vn.start();function Hr(ai){if(noevent(ai),!Vn.moved){var Ei=ai.clientX-_r,Zi=ai.clientY-Ur;Vn.moved=Ei*Ei+Zi*Zi>ue}Vn.event(ai).zoom("mouse",n(_e(Vn.that.__zoom,Vn.mouse[0]=pointer(ai,On),Vn.mouse[1]),Vn.extent,F))}function Li(ai){wr.on("mousemove.zoom mouseup.zoom",null),dragEnable(ai.view,Vn.moved),noevent(ai),Vn.event(ai).end()}}function gn(fn,...jn){if(t.apply(this,arguments)){var On=this.__zoom,Vn=pointer(fn.changedTouches?fn.changedTouches[0]:fn,this),wr=On.invert(Vn),Pr=On.k*(fn.shiftKey?.5:2),_r=n(_e(pe(On,Pr),Vn,wr),e.apply(this,jn),F);noevent(fn),nt>0?select(this).transition().duration(nt).call(qe,_r,Vn,fn):select(this).call(de.transform,_r,Vn,fn)}}function Cn(fn,...jn){if(t.apply(this,arguments)){var On=fn.touches,Vn=On.length,wr=De(this,jn,fn.changedTouches.length===Vn).event(fn),Pr,_r,Ur,Hr;for(nopropagation(fn),_r=0;_r<Vn;++_r)Ur=On[_r],Hr=pointer(Ur,this),Hr=[Hr,this.__zoom.invert(Hr),Ur.identifier],wr.touch0?!wr.touch1&&wr.touch0[2]!==Hr[2]&&(wr.touch1=Hr,wr.taps=0):(wr.touch0=Hr,Pr=!0,wr.taps=1+!!_t);_t&&(_t=clearTimeout(_t)),Pr&&(wr.taps<2&&(zt=Hr[0],_t=setTimeout(function(){_t=null},Yt)),interrupt(this),wr.start())}}function kn(fn,...jn){if(this.__zooming){var On=De(this,jn).event(fn),Vn=fn.changedTouches,wr=Vn.length,Pr,_r,Ur,Hr;for(noevent(fn),Pr=0;Pr<wr;++Pr)_r=Vn[Pr],Ur=pointer(_r,this),On.touch0&&On.touch0[2]===_r.identifier?On.touch0[0]=Ur:On.touch1&&On.touch1[2]===_r.identifier&&(On.touch1[0]=Ur);if(_r=On.that.__zoom,On.touch1){var Li=On.touch0[0],ai=On.touch0[1],Ei=On.touch1[0],Zi=On.touch1[1],$r=($r=Ei[0]-Li[0])*$r+($r=Ei[1]-Li[1])*$r,Fi=(Fi=Zi[0]-ai[0])*Fi+(Fi=Zi[1]-ai[1])*Fi;_r=pe(_r,Math.sqrt($r/Fi)),Ur=[(Li[0]+Ei[0])/2,(Li[1]+Ei[1])/2],Hr=[(ai[0]+Zi[0])/2,(ai[1]+Zi[1])/2]}else if(On.touch0)Ur=On.touch0[0],Hr=On.touch0[1];else return;On.zoom("touch",n(_e(_r,Ur,Hr),On.extent,F))}}function Zn(fn,...jn){if(this.__zooming){var On=De(this,jn).event(fn),Vn=fn.changedTouches,wr=Vn.length,Pr,_r;for(nopropagation(fn),Ht&&clearTimeout(Ht),Ht=setTimeout(function(){Ht=null},Yt),Pr=0;Pr<wr;++Pr)_r=Vn[Pr],On.touch0&&On.touch0[2]===_r.identifier?delete On.touch0:On.touch1&&On.touch1[2]===_r.identifier&&delete On.touch1;if(On.touch1&&!On.touch0&&(On.touch0=On.touch1,delete On.touch1),On.touch0)On.touch0[1]=this.__zoom.invert(On.touch0[0]);else if(On.end(),On.taps===2&&(_r=pointer(_r,this),Math.hypot(zt[0]-_r[0],zt[1]-_r[1])<oe)){var Ur=select(this).on("dblclick.zoom");Ur&&Ur.apply(this,arguments)}}}return de.wheelDelta=function(fn){return arguments.length?(i=typeof fn=="function"?fn:constant(+fn),de):i},de.filter=function(fn){return arguments.length?(t=typeof fn=="function"?fn:constant(!!fn),de):t},de.touchable=function(fn){return arguments.length?(c=typeof fn=="function"?fn:constant(!!fn),de):c},de.extent=function(fn){return arguments.length?(e=typeof fn=="function"?fn:constant([[+fn[0][0],+fn[0][1]],[+fn[1][0],+fn[1][1]]]),de):e},de.scaleExtent=function(fn){return arguments.length?(S[0]=+fn[0],S[1]=+fn[1],de):[S[0],S[1]]},de.translateExtent=function(fn){return arguments.length?(F[0][0]=+fn[0][0],F[1][0]=+fn[1][0],F[0][1]=+fn[0][1],F[1][1]=+fn[1][1],de):[[F[0][0],F[0][1]],[F[1][0],F[1][1]]]},de.constrain=function(fn){return arguments.length?(n=fn,de):n},de.duration=function(fn){return arguments.length?(nt=+fn,de):nt},de.interpolate=function(fn){return arguments.length?(ut=fn,de):ut},de.on=function(){var fn=yt.on.apply(yt,arguments);return fn===yt?de:fn},de.clickDistance=function(fn){return arguments.length?(ue=(fn=+fn)*fn,de):Math.sqrt(ue)},de.tapDistance=function(fn){return arguments.length?(oe=+fn,de):oe},de}var hV=Fn(9685),w5=Fn(3861),dk=Fn(7810);const b2=({helperText:t,id:e,colorScheme:n,data:i,title:c,total:S})=>{const F=Si(),{data:nt}=da(),ut=sr(jc),yt=sr(eu),_t=sr(yP),zt=sr(xg),Ht=sr(Eh),Yt=ut===ep?"Product":yt;return(0,W.useEffect)(()=>{const re="#row-chart-"+e,ue=jn=>jn.toLocaleString()+" complaints",oe=(jn,On,Vn)=>{jn.each(function(){const wr=zl(this),Pr=Vn?wr.attr("x"):0;if(wr.node().children&&wr.node().children.length>0)return;const _r=wr.text().split(/\s+/).reverse(),Ur=1.1,Hr=wr.attr("y")||0,Li=parseFloat(wr.attr("dy")||0);let ai,Ei=[],Zi=0,$r=0,Fi=wr.text(null).append("tspan").attr("x",Pr).attr("y",Hr).attr("dy",Li+"em");for(;ai=_r.pop();)Ei.push(ai),Fi.text(Ei.join(" ")),Fi.node().getComputedTextLength()>On&&(Ei.pop(),Fi.text(Ei.join(" ")),Ei=[ai],Fi=wr.append("tspan").attr("x",Pr).attr("y",Hr).attr("dy",++Zi*Ur+Li+"em").text(ai),$r++);if($r){const qo=zl(wr.node().parentNode).select(".view-more-background"),Ea=qo.attr("height"),zo=parseFloat(Ea)+$r*12;qo.attr("height",zo)}})},de=jn=>{Ps("Bar chart collapsed",jn),F(KS(jn))},pe=jn=>{Ps("Bar chart expanded",jn),F(ZS(jn))},_e=jn=>{const On=jn.target.__data__,wr=is(nt,(Yt==="Overview"?"Product":Yt).toLowerCase(),[]);d1();let Pr=[];if(Yt==="Company")Pr.push(On.parent);else{const _r=wr.find(Hr=>Hr.key===On.parent),Ur="sub_"+Yt.toLowerCase()+".raw";Pr=_r?aS(On.parent,_r[Ur].buckets):[]}Ps("Trends click",On.parent),F(DT(On.parent,Yt,[...Pr]))},ge=jn=>{const On=jn.target.__data__;i.filter(wr=>wr.isParent).map(wr=>wr.name).includes(On)&&(_t.includes(On)?de(On):pe(On))};if(!i)return;const qe=i.filter(jn=>jn.name&&zt?jn.name.indexOf("Visualize trends for")===-1:!0);if(!qe||!qe.length||!S)return;const De=(0,w5.miniTooltip)();De.valueFormatter(ue);const $e=S/(0,hV.T9)(qe,jn=>jn.value),Ye=zl(re),tn=zt?750:Ye.node().getBoundingClientRect().width+30,gn=qe.length===1?100:qe.length*60,Cn=(0,w5.row)(),kn=tn/4,Zn=tn<600?40:-65;return Cn.margin({left:kn,right:Zn,top:20,bottom:10}).colorSchema(n).backgroundColor("#f7f8f9").paddingBetweenGroups(25).enableLabels(!0).labelsTotalCount(S.toLocaleString()).labelsNumberFormat(",d").outerPadding(.1).percentageAxisToMaxRatio($e).yAxisLineWrapLimit(2).yAxisPaddingBetweenChart(20).width(tn).wrapLabels(!0).height(gn).on("customMouseOver",De.show).on("customMouseMove",De.update).on("customMouseOut",De.hide),Ye.datum(qe).call(Cn),gN(re+" .row-chart .metadata-group").datum([]).call(De),oe(zl(re).selectAll(".tick text"),kn),oe(zl(re).selectAll(".view-more-label"),Ht/2,!0),Ye.selectAll(".y-axis-group .tick").on("click",ge),Ye.selectAll(".view-more-label").on("click",_e),()=>{gN(re+" .row-chart").remove()}},[F,nt,n,i,_t,e,zt,Yt,S,Ht]),i&&S?dk.createElement("div",{className:"row-chart-section"},dk.createElement("h3",null,c),dk.createElement("p",null,t),dk.createElement("div",{id:"row-chart-"+e,"data-testid":"row-chart-"+e})):null};b2.propTypes={helperText:Rn().string,id:Rn().string.isRequired,colorScheme:Rn().oneOfType([Rn().array,Rn().bool]).isRequired,data:Rn().array.isRequired,title:Rn().string.isRequired,total:Rn().number};const X$={};var fV=Fn(1248),dV=Fn.n(fV),pV=Fn(4563),_5=Fn.n(pV);const mV={AL:"M550,-337L633,-337,633,-253,550,-253,550,-337",AK:"M92,-245L175,-245,175,-162,92,-162,92,-245",AZ:"M92,-428L175,-428,175,-345,92,-345,92,-428",AR:"M367,-428L450,-428,450,-345,367,-345,367,-428",CA:"M0,-520L83,-520,83,-437,0,-437,0,-520",CO:"M183,-520L267,-520,267,-437,183,-437,183,-520",CT:"M825,-612L908,-612,908,-528,825,-528,825,-612",DE:"M825,-520L908,-520,908,-437,825,-437,825,-520",DC:"M733,-428L817,-428,817,-345,733,-345,733,-428",FL:"M733,-245L817,-245,817,-162,733,-162,733,-245",GA:"M642,-337L725,-337,725,-253,642,-253,642,-337",HI:"M0,-245L83,-245,83,-162,0,-162,0,-245",ID:"M92,-703L175,-703,175,-620,92,-620,92,-703",IL:"M458,-703L542,-703,542,-620,458,-620,458,-703",IN:"M458,-612L542,-612,542,-528,458,-528,458,-612",IA:"M367,-612L450,-612,450,-528,367,-528,367,-612",KS:"M275,-428L358,-428,358,-345,275,-345,275,-428",KY:"M458,-520L542,-520,542,-437,458,-437,458,-520",LA:"M367,-337L450,-337,450,-253,367,-253,367,-337",ME:"M917,-887L1000,-887,1000,-803,917,-803,917,-887",MD:"M733,-520L817,-520,817,-437,733,-437,733,-520",MA:"M825,-703L908,-703,908,-620,825,-620,825,-703",MI:"M550,-703L633,-703,633,-620,550,-620,550,-703",MN:"M367,-703L450,-703,450,-620,367,-620,367,-703",MS:"M458,-337L542,-337,542,-253,458,-253,458,-337",MO:"M367,-520L450,-520,450,-437,367,-437,367,-520",MT:"M183,-703L267,-703,267,-620,183,-620,183,-703",NE:"M275,-520L358,-520,358,-437,275,-437,275,-520",NV:"M92,-612L175,-612,175,-528,92,-528,92,-612",NH:"M917,-795L1000,-795,1000,-712,917,-712,917,-795",NJ:"M733,-612L817,-612,817,-528,733,-528,733,-612",NM:"M183,-428L267,-428,267,-345,183,-345,183,-428",NY:"M733,-703L817,-703,817,-620,733,-620,733,-703",NC:"M550,-428L633,-428,633,-345,550,-345,550,-428",ND:"M275,-703L358,-703,358,-620,275,-620,275,-703",OH:"M550,-612L633,-612,633,-528,550,-528,550,-612",OK:"M275,-337L358,-337,358,-253,275,-253,275,-337",OR:"M0,-612L83,-612,83,-528,0,-528,0,-612",PA:"M642,-612L725,-612,725,-528,642,-528,642,-612",RI:"M917,-612L1000,-612,1000,-528,917,-528,917,-612",SC:"M642,-428L725,-428,725,-345,642,-345,642,-428",SD:"M275,-612L358,-612,358,-528,275,-528,275,-612",TN:"M458,-428L542,-428,542,-345,458,-345,458,-428",TX:"M275,-245L358,-245,358,-162,275,-162,275,-245",UT:"M92,-520L175,-520,175,-437,92,-437,92,-520",VT:"M825,-795L908,-795,908,-712,825,-712,825,-795",VA:"M642,-520L725,-520,725,-437,642,-437,642,-520",WA:"M0,-703L83,-703,83,-620,0,-620,0,-703",WV:"M550,-520L633,-520,633,-437,550,-437,550,-520",WI:"M458,-795L542,-795,542,-712,458,-712,458,-795",WY:"M183,-612L267,-612,267,-528,183,-528,183,-612"};var gV=Object.defineProperty,yV=Object.defineProperties,vV=Object.getOwnPropertyDescriptors,UD=Object.getOwnPropertySymbols,bV=Object.prototype.hasOwnProperty,xV=Object.prototype.propertyIsEnumerable,HD=(t,e,n)=>e in t?gV(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,wV=(t,e)=>{for(var n in e||(e={}))bV.call(e,n)&&HD(t,n,e[n]);if(UD)for(var n of UD(e))xV.call(e,n)&&HD(t,n,e[n]);return t},_V=(t,e)=>yV(t,vV(e));const SV=1e4,EV=1e5,CV=1e6,x2="#ffffff";function MV(t,e){const n=t.map(S=>S.displayValue),i=new Set(n);let c=eN().range([x2,...e]);return i.size<e.length?c=c.domain([...i]):c=c.domain(n),c}function kV(t){return t<1e3?t.toLocaleString():t<SV?(Math.floor(t/100)/10).toFixed(1)+"K":t<CV?Math.floor(t/1e3)+"K":(Math.floor(t/EV)/10).toFixed(1)+"M"}function TV(t,e){const n=t.map(F=>Math.round(F)),i=t.map(F=>Math.ceil(F)),c=Array.from(new Set(n)).filter(F=>F>0),S=[{from:0,color:x2,name:"\u2265 0",shortName:"\u2265 0"}];return c.forEach(F=>{const nt=n.indexOf(F),ut=i[nt]===F?"\u2265":">",yt=F.toLocaleString(),_t=kV(F);S.push({from:F,color:e(i[nt]),name:`${ut} ${yt}`,shortName:`${ut} ${_t}`})}),S}function AV(t,e){const n=F=>Math.floor(F*100)/100,i=t.map(F=>n(F)),c=Array.from(new Set(i)).filter(F=>F>0),S=[{from:0,color:x2,name:"\u2265 0",shortName:"\u2265 0"}];return c.forEach(F=>{const nt=i.indexOf(F),ut=i[nt]===t[nt]?"\u2265":">",yt=F.toFixed(2),_t=`${ut} ${yt}`;S.push({from:F,color:e(t[nt]),name:_t,shortName:_t})}),S}function PV(t,e){t=t.filter(function(i){return!!i.name});const n=t.filter(i=>i.className==="selected").length;return t=t.map(function(i){const c=mV[i.name];let S=OV(i.displayValue,e);return n&&i.className==="deselected"&&(S=S.replace("1)","0.5)")),i.className!=="selected"&&S===x2&&(i.className="empty"),_V(wV({},i),{color:S,path:c})}),t}function OV(t,e){return t?e(t):x2}function NV(t){return`${t.fullName} ${t.displayValue}`}function DV(){const t=".tile-"+this.name;zl(t).classed("hover",!1)}function RV(){const t=".tile-"+this.name;zl(t).classed("hover",!0)}function LV(){const t=this.point.displayValue.toLocaleString();return'<div class="highcharts-data-label-state tile-'+this.point.name+" "+this.point.className+' "><span class="abbr">'+this.point.name+'</span><span class="value">'+t+"</span></div>"}function IV(){const t=this.product?'<div class="row u-clearfix"><p class="u-float-left">Product with highest complaint volume</p><p class="u-right">'+this.product+"</p></div>":"",e=this.issue?'<div class="row u-clearfix"><p class="u-float-left">Issue with highest complaint volume</p><p class="u-right">'+this.issue+"</p></div>":"",n=this.value.toLocaleString(),i=this.perCapita?'<div class="row u-clearfix"><p class="u-float-left">Per 1000 population</p><p class="u-right">'+this.perCapita+"</p></div>":"";return'<div class="title">'+this.fullName+'</div><div class="row u-clearfix"><p class="u-float-left">Complaints</p><p class="u-right">'+n+"</p></div>"+i+t+e}function jV(t){const e=t.options.bins;let n=65;const i=17;let c=5;const S=t.chartWidth<600;S&&(n=45,c=1);const F=t.renderer.g("legend-container").add(),nt=t.renderer.g("legend-title").translate(c,0).add(F);t.renderer.label("Key",0,0,null,null,null,!0,!1,"legend-key").add(nt);const ut=e.length*(n+c);t.renderer.path(["M",0,0,"L",ut,0]).attr({class:"separator","stroke-width":1,stroke:"gray"}).translate(0,25).add(nt);const yt='Map shading: <span class="type">'+t.options.legend.legendTitle+"</span>";t.renderer.label(yt,0,28,null,null,null,!0,!1,"legend-description").add(nt);const _t=t.renderer.g("legend__tile-map").translate(7,50).add(F);for(let zt=0;zt<e.length;zt++){const Ht=t.renderer.g(`g${zt}`).translate(zt*(n+c),0).add(_t),Yt=e[zt];t.renderer.rect(0,0,n,i).attr({fill:Yt.color}).addClass("legend-box").add(Ht),t.renderer.text(S?Yt.shortName:Yt.name,0,i).addClass("legend-text").translate(3,-3).add(Ht)}}dV()(_5()),_5().setOptions({lang:{thousandsSep:","}});const BV=["rgba(212, 231, 230, 1)","rgba(180, 210, 209, 1)","rgba(158, 196, 195, 1)","rgba(137, 182, 181, 1)","rgba(112, 166, 165, 1)","rgba(87, 150, 149, 1)"];class FV{constructor({el:e,data:n,isPerCapita:i,events:c,height:S,hasTip:F,width:nt}){const ut=MV(n,BV),yt=ut.quantiles();let _t,zt;i?(_t=AV(yt,ut),zt="Complaints per 1,000"):(_t=TV(yt,ut),zt="Complaints"),n=PV(n,ut);const Ht={accessibility:{description:"",screenReaderSection:{afterChartFormat:"",beforeChartFormat:""}},bins:_t,chart:{styledMode:!0,height:S,width:nt},colorAxis:{dataClasses:_t,dataClassColor:"category"},title:!1,credits:!1,legend:{enabled:!1,legendTitle:zt},tooltip:{className:"tooltip",enabled:F,headerFormat:"",pointFormatter:IV,useHTML:!0},plotOptions:{series:{dataLabels:{enabled:!0,formatter:LV,useHTML:!0},states:{hover:{enabled:F}}}},series:[{type:"map",clip:!1,data:n,accessibility:{description:zt+" in the United States",exposeAsGroupOnly:!1,keyboardNavigation:{enabled:!0},descriptionFormatter:NV}}]};c&&F&&(Ht.plotOptions.series.events=c,Ht.plotOptions.series.point={events:{mouseOver:RV,mouseOut:DV}});const Yt=[{width:700,legendHeight:20},{width:580,legendHeight:25},{width:500,legendHeight:35},{width:400,legendHeight:60},{width:370,legendHeight:70}];let re=10;Yt.forEach(ue=>{nt<ue.width&&(re=ue.legendHeight)}),Ht.chart.marginRight=0,Ht.chart.marginLeft=0,Ht.chart.marginTop=re,Ht.chart.height+=re,this.draw(e,Ht)}draw(e,n){_5().mapChart(e,n,jV)}}const zV=FV,S5=()=>{const t=sr(tu),e=sr(vp),n=sr(jc),i=sr(ly),c=jr(t,e);return HT(c,{skip:n!==ep||i===""})};var VD=Fn(7810),UV=Object.defineProperty,HV=Object.defineProperties,VV=Object.getOwnPropertyDescriptors,WD=Object.getOwnPropertySymbols,WV=Object.prototype.hasOwnProperty,YV=Object.prototype.propertyIsEnumerable,YD=(t,e,n)=>e in t?UV(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,qV=(t,e)=>{for(var n in e||(e={}))WV.call(e,n)&&YD(t,n,e[n]);if(WD)for(var n of WD(e))YV.call(e,n)&&YD(t,n,e[n]);return t},$V=(t,e)=>HV(t,VV(e));const XV=()=>{const t=Si(),e=sr(Hw),n=sr(Vw),i=sr(xg),c=sr(Eh),{data:S}=S5(),F=S==null?void 0:S.results.state,nt=(0,W.useMemo)(()=>F?F.map(zt=>{const Ht=structuredClone(zt),Yt=is(t1,zt.name,{name:"",population:1});return Ht.abbr=Ht.name,Ht.fullName=Yt.name,Ht.perCapita=KV(Ht,Yt),Ht}):null,[F]),ut=!i,yt=(0,W.useCallback)(zt=>{const{abbr:Ht,fullName:Yt}=zt.point,re={abbr:Ht,name:Yt};n&&n.includes(Ht)?(Ps("State Event: remove",re.abbr),t(Rf(re))):(Ps("State Event: add",re.abbr),t(H1(re)))},[n,t]),_t=(0,W.useCallback)(()=>{const zt=document.getElementById("tile-chart-map"),Ht=i?650:zt.clientWidth||c;if(!nt)return;const Yt=GV(nt,e,n),re={el:zt,data:Yt,isPerCapita:e!==Cc,events:{click:yt},hasTip:ut,width:Ht};re.height=Ht*.75;const ue=new zV(re)},[nt,e,ut,i,n,c,yt]);return(0,W.useEffect)(()=>(_t(),function(){const Ht=document.getElementById("tile-chart-map");if(Ht)for(;Ht.firstChild;)Ht.firstChild.remove()}),[_t]),VD.createElement("div",null,VD.createElement("div",{id:"tile-chart-map",className:`cfpb-chart ${i?"print":""}`,"data-chart-type":"tile_map","data-testid":"tile-chart-map"}))};function GV(t,e,n){const i=e===Cc;return t.map(S=>$V(qV({},S),{displayValue:i?S.value:S.perCapita,className:ZV(n,S.name)}))}function KV(t,e){const n=e.population;return(t.value/n*1e3).toFixed(2)}const ZV=(t,e)=>!t||t.length===0?"":t.includes(e)?"selected":"deselected";var mu=Fn(7810);const QV="\u201CComplaints per 1,000 population\u201D is not available with your filter selections.",JV="Product the consumer identified in the complaint. Click on a product to expand sub-products",tW=()=>{const t=Si(),{data:e}=da(),{data:n,isLoading:i,isFetching:c,error:S}=S5(),F=(e==null?void 0:e.total)||0,nt=sr(pE),ut=sr(mE),yt=sr(bp),_t=sr(xp),zt=sr(yP),Yt=sr(Eh)<750,re=!nt&&ut,ue=(0,W.useMemo)(()=>Of(n==null?void 0:n.results.product,!1,"Product",zt),[n,zt]),oe=`Product by highest complaint volume ${Kl(_t)} to ${Kl(yt)}`,de=()=>{t(U1())};return mu.createElement("section",{className:"map-panel"},mu.createElement(SP,null),mu.createElement(kP,null),!!S&&mu.createElement(QO,{text:"There was a problem executing your search"}),!!re&&mu.createElement(_P,{text:QV,closeFn:de}),!!Yt&&mu.createElement(hM,null),mu.createElement(CP,null),mu.createElement("div",{className:"layout-row refine-bar"},mu.createElement(gM,null),mu.createElement(V7,null)),mu.createElement(XV,null),mu.createElement(H7,null),mu.createElement(b2,{id:"product",colorScheme:ue.colorScheme,data:ue.data,title:oe,helperText:JV,total:F}),mu.createElement(fp,{isLoading:i||c}))},G$={};var Rh=Fn(7810);const eW=()=>{const{data:t}=da(),e=sr(xp),n=sr(bp),i=h1(e)+" - "+h1(n),c=sr(gE),S=sr(xg),F=(t==null?void 0:t.doc_count)||0,nt=(t==null?void 0:t.total)||0,ut=(0,W.useMemo)(()=>F===nt?Rh.createElement("div",null,"Showing ",Rh.createElement("span",null,nt.toLocaleString())," complaints"):Rh.createElement("div",null,"Showing ",Rh.createElement("span",null,nt.toLocaleString())," out of",Rh.createElement("span",null," ",F.toLocaleString()," ")," total complaints"," "),[F,nt]);return S?Rh.createElement("section",{className:"print-info"},Rh.createElement("p",null,Rh.createElement("span",null,"Dates:")," ",i),!!c&&Rh.createElement("p",null,Rh.createElement("span",null,"Search Term:")," ",c),Rh.createElement("div",null,ut)):null};var E5=Fn(7810);const nW=()=>sr(xg)?E5.createElement("section",{className:"print-info-footer"},E5.createElement("p",null,E5.createElement("span",null,"URL:")," ",window.location.href)):null,K$={},Z$={};var w2=Fn(7810);const rW=()=>{const t=Si(),e=sr(Yw),n=i=>{Ps("Button","Trends:"+i),t(TT(i))};return w2.createElement("section",{className:"chart-toggles"},w2.createElement("p",null,"Chart type"),w2.createElement("div",{className:"m-btn-group"},w2.createElement("button",{"aria-label":"Toggle line chart",className:"a-btn"+$m("line",e),disabled:e==="line",onClick:()=>{n("line")}},Wi("line-chart")),w2.createElement("button",{"aria-label":"Toggle area chart",className:"a-btn"+$m("area",e),disabled:e==="area",onClick:()=>{n("area")}},Wi("area-chart"))))},Q$={},J$={},Cg=()=>{const t=sr(tu),e=sr(vp),n=sr(j3),i=sr(jc),c=sr(ly),S=$s(t,e,n);return x1(S,{skip:i!==Rl||c===""})};var pk=Fn(7810);const qD={Company:{tab1:{displayName:"Products",filterName:"product"}},Product:{tab1:{displayName:"Sub-products",filterName:"sub_product"},tab2:{displayName:"Issues",filterName:"issue"}}},iW=(t,e,n)=>{if(e){if(n&&n.length)return!0}else return!0;return!1},$D=()=>{const t=Si(),e=sr(xh),n=sr(eu),i=sr(qw),{data:c}=Cg(),S=c==null?void 0:c.results["sub-product"];if(n==="Overview")return null;const F=iW(n,e,S),nt=(_t,zt)=>{const Ht={sub_product:"Sub-products",issue:"Issues",product:"Products"};Ps("Button",_t+":"+Ht[zt]),t(PT(zt.toLowerCase()))},ut=_t=>{_t=_t.toLowerCase();const zt=["tab",_t],Ht=new RegExp(i.toLowerCase(),"g");return _t.replace("-","_").match(Ht)&&zt.push("active"),zt.join(" ")},yt=qD[n];return pk.createElement("div",{className:"tabbed-navigation lens"},pk.createElement("section",null,!!F&&pk.createElement("button",{className:ut(yt.tab1.filterName),onClick:()=>{nt(n,yt.tab1.filterName)}},yt.tab1.displayName),!!qD[n].tab2&&pk.createElement("button",{className:ut(yt.tab2.filterName),onClick:()=>{nt(n,yt.tab2.filterName)}},yt.tab2.displayName)))};var Mg=Fn(7810);const oW=()=>{const t=sr(xh),e=sr(eu),{data:n}=Cg(),i=(n==null?void 0:n.total)||0,c=Si();return t?Mg.createElement("div",{className:"focus-header"},Mg.createElement("button",{className:"a-btn a-btn--link clear-focus",id:"clear-focus",onClick:()=>{c(RT(e))}},Wi("left"),"View "+e.toLowerCase()+" trends"),Mg.createElement("div",null,Mg.createElement("section",{className:"focus"},Mg.createElement("h1",null,t),Mg.createElement("span",{className:"divider"}),Mg.createElement("h2",null,i.toLocaleString()+" Complaints"))),Mg.createElement($D,{showTitle:!1,key:"lens-tab"})):null},tX={};var aW=Fn(5382),sW=Fn.n(aW),lW=Fn(7417),uW=Fn.n(lW);const eX={};var _2=Fn(7810);const C5=({domId:t,hasKey:e})=>_2.createElement("section",{className:`${e?"ext-tooltip":""}`},_2.createElement("div",{className:"chart-wrapper"},_2.createElement("p",{className:"y-axis-label"},"Complaints"),_2.createElement("div",{id:t}),_2.createElement("p",{className:"x-axis-label"},"Date received by the CFPB")));C5.propTypes={domId:Rn().string.isRequired,hasKey:Rn().bool.isRequired};var M5=Fn(7810);const cW=()=>{var t;const e=Si(),{data:n}=Cg(),i=n==null?void 0:n.colorMap,c=(t=n==null?void 0:n.results)==null?void 0:t.dateRangeLine,S=sr(eu),F=sr($1),nt=sr(xp),ut=sr(bp),yt=sr(xg),_t=sr(Eh),zt=S!=="Overview",Ht=(0,W.useMemo)(()=>{const re={from:nt,to:ut};return c?bT(c,re,F):[]},[c,nt,ut,F]),Yt=mS(Ht);return(0,W.useEffect)(()=>{const re={from:nt,to:ut},ue="#line-chart",oe=`${ue} .line-chart`,de=zl(ue);if(!de.node()||mS(Ht))return;const pe=uW()().shouldShowDateInTitle(!1).topicLabel("topics").title("Complaints"),_e=()=>yt?S==="Overview"?750:500:de.node().getBoundingClientRect().width,ge=kn=>{e(y1(kn))},qe=(kn,Zn,fn)=>{pe.title(dS(kn.date,F,re,!1)),pe.update(kn,Zn,fn)},De=kn=>{e(y1({date:new Date(kn.date).toJSON(),dateRange:re,interval:F,values:kn.topics}))};zl(oe).remove();const $e=sW()(),Ye=_e(ue),tn=Ht.dataByTopic.map(kn=>i[kn.topic]);$e.margin({left:60,right:10,top:10,bottom:40}).initializeVerticalMarker(!0).isAnimated(!0).tooltipThreshold(1).grid("horizontal").aspectRatio(.5).width(Ye).dateLabel("date").colorSchema(tn),S==="Overview"?$e.on("customMouseOver",pe.show).on("customMouseMove",qe).on("customMouseOut",pe.hide):$e.on("customMouseMove",q0(De,200)),de.datum(Ht).call($e),zl(ue+" .metadata-group .vertical-marker-container").datum([]).call(pe);const Cn={dateRange:re,interval:F};if(S!=="Overview"){const kn=vT(Ht,Cn);ge(kn)}return()=>{zl(oe).remove(),de.datum([])}},[i,nt,ut,e,F,yt,S,Ht,_t]),Yt?M5.createElement(dM,{text:"Cannot display chart. Adjust your date range or date interval."}):M5.createElement("section",{className:"chart"},M5.createElement(C5,{hasKey:zt,domId:"line-chart"}))},nX={};var k5=Fn(7810),hW=Object.defineProperty,fW=Object.defineProperties,dW=Object.getOwnPropertyDescriptors,XD=Object.getOwnPropertySymbols,pW=Object.prototype.hasOwnProperty,mW=Object.prototype.propertyIsEnumerable,GD=(t,e,n)=>e in t?hW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,KD=(t,e)=>{for(var n in e||(e={}))pW.call(e,n)&&GD(t,n,e[n]);if(XD)for(var n of XD(e))mW.call(e,n)&&GD(t,n,e[n]);return t},ZD=(t,e)=>fW(t,dW(e));const gW=()=>{var t;const e=Si(),{data:n}=Cg(),i=n==null?void 0:n.colorMap,c=(t=n==null?void 0:n.results)==null?void 0:t.dateRangeArea,S=sr(xp),F=sr(bp),nt=sr(eu),ut=sr($1),yt=sr(xg),_t=sr(Eh),zt=nt!=="Overview",Ht=(0,W.useMemo)(()=>{const re={from:S,to:F};return c?xT(c,re,ut):[]},[c,S,F,ut]),Yt=tw(Ht);return(0,W.useEffect)(()=>{const re={from:S,to:F},ue="#stacked-area-chart",oe=ue+" .stacked-area",de=zl(ue);if(!de.node()||Yt)return;const pe=tn=>{tn.values=tn.values.map(gn=>typeof gn.date!="string"?ZD(KD({},gn),{date:new Date(gn.date).toJSON()}):gn),typeof tn.date!="string"&&(tn.date=new Date(tn.date).toJSON()),e(y1(tn))},_e=tn=>{typeof tn.date!="string"&&(tn.date=new Date(tn.date).toJSON()),tn.values=tn.values.map(gn=>typeof gn.date!="string"?ZD(KD({},gn),{date:new Date(gn.date).toJSON()}):gn),e(y1({date:tn.date,dateRange:re,interval:ut,values:tn.values}))};zl(oe).remove();const ge=yt?550:de.node().getBoundingClientRect().width,qe=Ht.filter(tn=>tn.name!=="Other"),De=[...new Set(qe.map(tn=>tn.name))].map(tn=>i[tn]);De.push(Pf.DataLens[10]);const $e=(0,w5.stackedArea)();return $e.margin({left:70,right:10,top:10,bottom:40}).areaCurve("linear").initializeVerticalMarker(!0).isAnimated(!1).tooltipThreshold(1).grid("horizontal").aspectRatio(.5).width(ge).dateLabel("date").colorSchema(De).on("customMouseMove",q0(_e,200)),de.datum(Ht).call($e),pe(G0(Ht,{dateRange:re,interval:ut})),()=>{zl(oe).remove(),de.datum([])}},[i,S,F,e,Ht,ut,yt,Yt,_t]),Yt?k5.createElement(dM,{text:"Cannot display chart. Adjust your date range or date interval."}):k5.createElement("section",{className:"chart"},k5.createElement(C5,{hasKey:zt,domId:"stacked-area-chart"}))};var mk=Fn(7810);const yW=({value:t})=>{const e=Si(),i=sr(xh)?"focus":"",c=sr(eu),S=sr(qw),F=c==="Company"&&!i,nt=[],ut=i?S:c,yt={Product:"products",product:"products",issue:"issues","Sub-Issue":"sub-issues",sub_product:"sub-products",Company:"companies"};return t.name==="Other"?(nt.push(mk.createElement("span",{className:"u-left",key:t.name},"All other ",yt[ut])),nt):i?(nt.push(mk.createElement("span",{className:"u-left",key:t.name},t.name)),nt):(nt.push(mk.createElement("span",{className:"u-left",id:Y0("focus-"+t.name),key:t.name},t.name)),F&&nt.push(mk.createElement("button",{"aria-label":"Remove "+t.name+" from comparison set",className:"u-right a-btn a-btn--link close",key:"close_"+t.name,onClick:()=>{e(Jm("company",t.name))}},Wi("delete"))),nt)},vW="CFPB updated product and issue options in April 2017 and August 2023.",bW="https://www.consumerfinance.gov/data-research/consumer-complaints/#past-changes",xW=()=>{const{data:t}=Cg(),e=t==null?void 0:t.colorMap,i=sr(xh)?"focus":"",c=sr(eu),S=sr(Yw),F=sr(yE),nt=c==="Company"&&!i,ut=S==="area",yt=p1(F,e);return yt&&yt.values?W.createElement("section",{className:"tooltip-container u-clearfix"},!!nt&&W.createElement(sM,{id:"external-tooltip"}),W.createElement("p",{className:"a-micro-copy"},W.createElement("span",{className:"heading"},yt.heading),W.createElement("span",{className:"date"},yt.date)),W.createElement("div",null,W.createElement("ul",{className:"tooltip-ul"},yt.values.map((_t,zt)=>W.createElement("li",{className:"color__"+_t.colorIndex,key:zt+"-id"},W.createElement(yW,{value:_t}),W.createElement("span",{className:"u-right"},_t.value.toLocaleString())))),!!ut&&W.createElement("ul",{className:"m-list--unstyled tooltip-ul total"},W.createElement("li",null,W.createElement("span",{className:"u-left"},"Total"),W.createElement("span",{className:"u-right"},yt.total.toLocaleString())))),W.createElement("p",{className:"a-micro-copy warn"},vW," ",W.createElement("a",{href:bW,target:"_blank",rel:"noopener noreferrer","aria-label":`Learn more about Product and
475
- Issue changes (opens in new window)`},"Learn More"))):null},rX={};var Ib=Fn(7810);const QD=5,wW={Overview:"product",Product:"product",Company:"company"},_W=(t,e)=>e<=QD?!0:t>QD&&t!==e,SW=()=>{const t=Si(),{data:e}=da(),{data:n}=Cg(),i=sr(tu),c=sr(xh),S=sr(eu),F=n==null?void 0:n.results,nt=wW[S],ut=is(F,nt,[]).filter(Yt=>Yt.isParent).length;let yt=0;nt==="product"?yt=is(e,nt,[]).length:yt=Yx(is(i,nt,[]).length,0,10);const _t=i[nt]?i[nt].filter(Yt=>Yt.indexOf(Ws)===-1).length:yt,zt=yt-ut,Ht=EW(yt,_t);if(c||S==="Overview")return null;if(Ht)return _W(_t,ut)?Ib.createElement("div",{className:"trend-depth-toggle"},Ib.createElement("button",{className:"a-btn a-btn--link",id:"trend-depth-button",onClick:()=>{t(OT(zt+5))}},Ib.createElement("span",{className:"plus"}),"Show more")):Ib.createElement("div",{className:"trend-depth-toggle"},Ib.createElement("button",{className:"a-btn a-btn--link",id:"trend-depth-button",onClick:()=>{t(NT())}},Ib.createElement("span",{className:"minus"}),"Show less"))},EW=(t,e)=>e>0&&e<=5?!1:t>5||e>5;var eo=Fn(7810);const CW="\u201CDay\u201D interval is disabled when the date range is longer than one year",JD={sub_product:"Sub-products",sub_issue:"Sub-issues",issue:"Issues",product:"Products"},t6={product:"Product the consumer identified in the complaint. Click on a company name to expand products.",company:"Product the consumer identified in the complaint. Click on a company name to expand products.",sub_product:"Product and sub-product the consumer identified in the complaint. Click on a product to expand sub-products.",issue:"Product and issue the consumer identified in the complaint. Click on a product to expand issues.",overview:"Product the consumer identified in the complaint. Click on a product to expand sub-products"},e6={sub_product:"Sub-products the consumer identified in the complaint",product:"Product the consumer identified in the complaint",issue:"Issues the consumer identified in the complaint"},MW=()=>{const t=Si(),{data:e,isLoading:n,isFetching:i}=Cg(),c=sr(dE),S=sr($1),F=sr(xp),nt=sr(bp),ut=sr(I3),yt=sr(Yw),_t=sr(xh),zt=sr(eu),Ht=sr(qw),Yt=sr(yP),re=sr(Eh),ue=zt.toLowerCase(),oe=Ht.replace("_","-"),de=Ht===""?t6[ue]:t6[Ht],pe=Ht===""?e6[ue]:e6[Ht],_e=(e==null?void 0:e.results)||{},ge=e==null?void 0:e.colorMap,qe=e==null?void 0:e.total,De=kc(zt,c,n||i),$e=Of(_e[oe],ge,zt,Yt),Ye=lS(F,nt),tn=Of(_e.product,!1,zt,Yt),gn=Of(_e[ue],ge,zt,Yt),Cn=Kl(F),kn=Kl(nt),Zn=zt==="Overview",fn=re<750,jn=JD[Ht]+", by "+zt.toLowerCase()+" from",On=()=>{t(E3())},Vn=Ur=>{const{value:Hr}=Ur.target;Ps("Dropdown","Trends:"+Hr),t(Qa(Hr))},wr=Ur=>{const{value:Hr}=Ur.target;Ps("Dropdown","Trends:"+Hr),t(AT(Hr))},Pr=()=>Zn?"Complaints by date received by the CFPB":_t?"Complaints by "+JD[Ht].toLowerCase()+", by date received by the CFPB":"Complaints by date received by the CFPB",_r=()=>De?null:Zn?eo.createElement(b2,{id:"product",colorScheme:tn.colorScheme,data:tn.data,title:"Product by highest complaint volume "+Cn+" to "+kn,helperText:de,total:qe}):_t?eo.createElement(b2,{id:zt,colorScheme:$e.colorScheme,data:$e.data,title:jn+" "+Cn+" to "+kn,helperText:pe,total:qe}):[eo.createElement($D,{key:"lens-tab",showTitle:!0}),eo.createElement(b2,{id:zt,colorScheme:gn.colorScheme,data:gn.data,title:jn+" "+Cn+" to "+kn,helperText:de,total:qe,key:zt+"row"})];return eo.createElement("section",{className:"trends-panel"+(Zn?"":" external-tooltip")},eo.createElement(SP,null),eo.createElement(kP,null),ut?eo.createElement(_P,{text:CW,closeFn:On}):null,fn?eo.createElement(hM,null):null,eo.createElement(CP,null),eo.createElement("div",{className:"layout-row refine-bar"},eo.createElement(t4,{label:"Aggregate complaints by",title:"Aggregate by",values:Qv,id:"lens",value:zt,handleChange:wr}),eo.createElement(gM,null),eo.createElement(t4,{label:"Choose the Date interval",title:"Date interval",values:Ye,id:"interval",value:S,handleChange:Vn}),Zn?null:[eo.createElement(gM,{key:"separator"}),eo.createElement(rW,{key:"chart-toggles"})]),De?eo.createElement("div",{className:"layout-row company-overlay"},eo.createElement("section",{className:"company-search"},eo.createElement("p",null,"Choose a company to start your visualization using the type-ahead menu below. You can add more than one company to your view"),eo.createElement(sM,{id:"modal-search"}))):null,_t?eo.createElement(oW,null):null,!De&&Zn&&qe>0?eo.createElement("div",{className:"layout-row"},eo.createElement("section",{className:"chart-description"},eo.createElement("h2",{className:"area-chart-title"},Pr()),eo.createElement("p",{className:"chart-helper-text"},"A time series graph of complaints for the selected date range. Hover on the chart to see the count for each date interval. Your filter selections will update what you see on the graph."))):null,!De&&!Zn&&qe>0?eo.createElement("div",{className:"layout-row"},eo.createElement("section",{className:"chart-description"},eo.createElement("h2",{className:"area-chart-title"},Pr()),eo.createElement("p",{className:"chart-helper-text"},"A time series graph of the (up to five) highest volume complaints for the selected date range. However, you can view all of your selections in the bar chart, below. Hover on the chart to see the count for each date interval. Your filter selections will update what you see on the graph."))):null,!De&&qe>0?eo.createElement(eo.Fragment,null,eo.createElement("div",{className:"layout-row date-range-disclaimer"},eo.createElement("strong",null,"Note:\xA0 Data from incomplete time intervals are not shown")),eo.createElement("div",{className:"layout-row"},eo.createElement(eo.Fragment,null,yt==="line"&&eo.createElement(cW,null),yt==="area"&&eo.createElement(gW,null)),!Zn&&eo.createElement(xW,null))):null,qe>0&&_r(),eo.createElement(SW,null),eo.createElement(fp,{isLoading:n||i}))};var jb=Fn(7810);const kW=()=>{const t=sr(jc);let e;switch(t){case ep:e=jb.createElement(tW,null);break;case np:e=jb.createElement(U7,null);break;case Rl:default:e=jb.createElement(MW,null);break}return jb.createElement("div",{className:"content__main "+t.toLowerCase()},jb.createElement(eW,null),e,jb.createElement(nW,null))},iX={},oX={};var TW=Object.defineProperty,n6=Object.getOwnPropertySymbols,AW=Object.prototype.hasOwnProperty,PW=Object.prototype.propertyIsEnumerable,r6=(t,e,n)=>e in t?TW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,OW=(t,e)=>{for(var n in e||(e={}))AW.call(e,n)&&r6(t,n,e[n]);if(n6)for(var n of n6(e))PW.call(e,n)&&r6(t,n,e[n]);return t};const NW="https://files.consumerfinance.gov";function DW(t){return NW+"/ccdb/complaints."+t+".zip"}function RW(t,e,n){const i=OW({},n);return i.size=e,i.format=t,i.no_aggs=!0,delete i.from,delete i.searchAfter,ph+my(i)}var ro=Fn(7810),LW=Object.defineProperty,i6=Object.getOwnPropertySymbols,IW=Object.prototype.hasOwnProperty,jW=Object.prototype.propertyIsEnumerable,o6=(t,e,n)=>e in t?LW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,a6=(t,e)=>{for(var n in e||(e={}))IW.call(e,n)&&o6(t,n,e[n]);if(i6)for(var n of i6(e))jW.call(e,n)&&o6(t,n,e[n]);return t};const T5="csv",s6="json",l6="filtered",Bb="full",BW=()=>{const t=Si(),e=sr(vp),n=sr(tu),i=sr(jc),{data:c}=da(),S=(c==null?void 0:c.total)||0,F=(c==null?void 0:c.doc_count)||0,[nt,ut]=(0,W.useState)(Bb),[yt,_t]=(0,W.useState)(T5),[zt,Ht]=(0,W.useState)(!1);(0,W.useEffect)(()=>{S===F&&ut(Bb)},[S,F]);const Yt=(0,W.useMemo)(()=>{const oe=a6(a6({},n),e),de=nt===Bb?DW(yt):RW(yt,S,oe);return qx(de)},[nt,yt,S,n,e]),re=()=>{Ps(nt===Bb?"Export All Data":"Export Some Data",i+":"+yt),window.location.assign(Yt),t(vh(jx))},ue=oe=>{const de=document.getElementById("export-uri-input");de.select(),de.setSelectionRange(0,99999),navigator.clipboard.writeText(de.value),oe.target.focus(),Ht(!0)};return ro.createElement("section",{className:"export-modal"},ro.createElement("div",{className:"header layout-row"},ro.createElement("h3",{className:"flex-all"},"Export complaints"),ro.createElement("button",{className:"a-btn a-btn--link","data-gtm_ignore":"true",onClick:()=>{t(dp())}},"Close",Wi("delete-round"))),ro.createElement("div",{className:"body"},ro.createElement("div",{className:"body-copy instructions"},"To download a copy of this dataset, choose the file format and which complaints you want to export below."),ro.createElement("div",{className:"group"},ro.createElement("div",{className:"group-title"},"Select a format for the exported file"),ro.createElement("div",{className:"body-copy"},ro.createElement("div",{className:"m-form-field m-form-field--radio m-form-field--lg-target"},ro.createElement("input",{checked:yt===T5,className:"a-radio",id:"format_csv",onChange:()=>{Ht(!1),_t(T5)},type:"radio",value:"csv"}),ro.createElement("label",{className:"a-label",htmlFor:"format_csv"},"CSV")),ro.createElement("div",{className:"m-form-field m-form-field--radio m-form-field--lg-target"},ro.createElement("input",{checked:yt===s6,className:"a-radio",id:"format_json",onChange:()=>{Ht(!1),_t(s6)},type:"radio",value:"json"}),ro.createElement("label",{className:"a-label",htmlFor:"format_json"},"JSON")))),S===F?null:ro.createElement("div",{className:"group"},ro.createElement("div",{className:"group-title"},"Select which complaints you\u2019d like to export"),ro.createElement("div",{className:"body-copy"},ro.createElement("div",{className:"m-form-field m-form-field--radio m-form-field--lg-target"},ro.createElement("input",{checked:nt===l6,className:"a-radio",id:"dataset_filtered",onChange:()=>{Ht(!1),ut(l6)},type:"radio",value:"filtered"}),ro.createElement("label",{className:"a-label",htmlFor:"dataset_filtered"},"Filtered dataset ("+S.toLocaleString()+" complaints)",ro.createElement("br",null),"(only the results of the last search and/or filter)")),ro.createElement("div",{className:"m-form-field m-form-field--radio m-form-field--lg-target"},ro.createElement("input",{checked:nt===Bb,className:"a-radio",id:"dataset_full",onChange:()=>{Ht(!1),ut(Bb)},type:"radio",value:"full"}),ro.createElement("label",{className:"a-label",htmlFor:"dataset_full"},"Full dataset ("+F.toLocaleString()+" complaints)",ro.createElement("br",null),"(not recommended due to very large file size)")))),ro.createElement("div",{className:"heres-the-url"},ro.createElement("h4",null,"Link to your complaint search results for future reference"),ro.createElement("div",{className:"layout-row"},ro.createElement("input",{className:"flex-all a-text-input",id:"export-uri-input",type:"text",value:Yt,readOnly:!0}),ro.createElement("button",{className:`a-btn ${zt?"export-url-copied":"a-btn__secondary"}`,disabled:!Yt,onClick:ue},!zt&&ro.createElement("div",null,ro.createElement("span",{className:"a-btn__icon"},Wi("copy")),"Copy"),!!zt&&ro.createElement("div",null,ro.createElement("span",{className:"a-btn__icon"},Wi("checkmark-round")),"Copied")))),ro.createElement("div",{className:"timeliness-warning"},"The export process could take several minutes if you\u2019re downloading many complaints")),ro.createElement("div",{className:"footer layout-row"},ro.createElement("button",{className:"a-btn","data-gtm_ignore":"true",onClick:()=>{re()}},"Start export"),ro.createElement("button",{className:"a-btn a-btn--link a-btn__warning","data-gtm_ignore":"true",onClick:()=>{t(dp())}},"Cancel")))};var Fb=Fn(7810);const FW=()=>{const t=Si();return Fb.createElement("section",{className:"export-modal"},Fb.createElement("div",{className:"header layout-row"},Fb.createElement("h3",{className:"flex-all"},"Export complaints"),Fb.createElement("button",{className:"a-btn a-btn--link","data-gtm_ignore":"true",onClick:()=>{t(dp())}},"Close",Wi("delete-round"))),Fb.createElement("div",{className:"body"},Fb.createElement("div",{className:"body-copy instructions"},"It may take a few minutes for your file to download. You can keep working while it processes.")))};var Bc=Fn(7810);const u6=({onClose:t})=>Bc.createElement("section",{className:"more-about-modal"},Bc.createElement("div",{className:"header"},Bc.createElement("h3",null,"Things you should know before you use this database")),Bc.createElement("div",{className:"body"},Bc.createElement("p",{className:"body-copy"},"This database only includes complaints the CFPB sent to companies and complaints are only published after the company responds, confirming a commercial relationship or after 15 days, whichever comes first. This database does not include complaints referred to other regulators, such as complaints about depository institutions with less than $10 billion in assets."),Bc.createElement("p",{className:"body-copy"},"This database is not a statistical sample of consumers\u2019 experiences in the marketplace. Complaints are not necessarily representative of all consumers\u2019 experiences with a financial product or company. Company-specific information should be considered in the context of that company\u2019s size and/or market share."),Bc.createElement("p",{className:"body-copy"},"This database only includes a consumer\u2019s description of what happened in their own words if the consumer agrees to share it and after we take steps to\xA0",Bc.createElement("a",{href:"https://files.consumerfinance.gov/f/documents/201503_cfpb_Narrative-Scrubbing-Standard.pdf",target:"_blank",rel:"noopener noreferrer"},"remove personal information"),".\xA0 One consumer\u2019s experience is not necessarily representative of all consumers\u2019 experiences and narratives are not verified before publication."),Bc.createElement("p",{className:"body-copy"},"This database generally updates daily and doesn\u2019t include complaints that don\u2019t meet our\xA0",Bc.createElement("a",{href:"https://files.consumerfinance.gov/f/documents/201503_cfpb_disclosure-of-consumer-complaint-narrative-data.pdf",target:"_blank",rel:"noopener noreferrer"},"publication criteria"),".")),Bc.createElement("div",{className:"footer layout-row"},Bc.createElement("button",{className:"a-btn",onClick:t},"Close")));u6.propTypes={onClose:Rn().func.isRequired};var zW=Fn(3362),UW=Fn.n(zW),c6=Fn(7810);const HW=()=>{const t=sr(u7),e=Si(),n=(0,W.useMemo)(()=>({[Ix]:BW,[jx]:FW,[F0]:u6})[t],[t]);return n?c6.createElement(UW(),{appElement:document.querySelector("#ccdb-ui-root"),isOpen:!0,contentLabel:"CFPB Modal Dialog",className:"modal-body",overlayClassName:"modal-overlay",onRequestClose:()=>{e(dp())}},c6.createElement(n,{onClose:()=>{e(dp())}})):null},aX={};/*!
471
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:S,secondInputs:F,stack:yt})}},M0={inputStabilityCheck:"once",identityFunctionCheck:"once"},il=t=>{Object.assign(M0,t)},lh=null;function k0(t,e=`expected a function, instead received ${typeof t}`){if(typeof t!="function")throw new TypeError(e)}function zu(t,e=`expected an object, instead received ${typeof t}`){if(typeof t!="object")throw new TypeError(e)}function $d(t,e="expected all items to be functions, instead received the following types: "){if(!t.every(n=>typeof n=="function")){const n=t.map(i=>typeof i=="function"?`function ${i.name||"unnamed"}()`:typeof i).join(", ");throw new TypeError(`${e}[${n}]`)}}var Nl=t=>Array.isArray(t)?t:[t];function uh(t){const e=Array.isArray(t[0])?t[0]:t;return $d(e,"createSelector expects all input-selectors to be functions, but received the following types: "),e}function Xd(t,e){const n=[],{length:i}=t;for(let c=0;c<i;c++)n.push(t[c].apply(null,e));return n}var T0=(t,e)=>{const{identityFunctionCheck:n,inputStabilityCheck:i}=xr(xr({},M0),e);return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&t,run:C0},inputStabilityCheck:{shouldRun:i==="always"||i==="once"&&t,run:Dv}}},A0=0,ol=null,Pm=class{constructor(t,e=Dl){lo(this,"revision",A0);lo(this,"_value");lo(this,"_lastValue");lo(this,"_isEqual",Dl);this._value=this._lastValue=t,this._isEqual=e}get value(){return ol==null||ol.add(this),this._value}set value(t){this.value!==t&&(this._value=t,this.revision=++A0)}};function Dl(t,e){return t===e}var Gd=class{constructor(t){lo(this,"_cachedValue");lo(this,"_cachedRevision",-1);lo(this,"_deps",[]);lo(this,"hits",0);lo(this,"fn");this.fn=t}clear(){this._cachedValue=void 0,this._cachedRevision=-1,this._deps=[],this.hits=0}get value(){if(this.revision>this._cachedRevision){const{fn:t}=this,e=new Set,n=ol;ol=e,this._cachedValue=t(),ol=n,this.hits++,this._deps=Array.from(e),this._cachedRevision=this.revision}return ol==null||ol.add(this),this._cachedValue}get revision(){return Math.max(...this._deps.map(t=>t.revision),0)}};function Uu(t){return t instanceof Pm||console.warn("Not a valid cell! ",t),t.value}function Kd(t,e){if(!(t instanceof Pm))throw new TypeError("setValue must be passed a tracked store created with `createStorage`.");t.value=t._lastValue=e}function fi(t,e=Dl){return new Pm(t,e)}function Ef(t){return k0(t,"the first parameter to `createCache` must be a function"),new Gd(t)}var Vi=(t,e)=>!1;function jo(){return fi(null,Vi)}function Hu(t,e){Kd(t,e)}var Oa=t=>{let e=t.collectionTag;e===null&&(e=t.collectionTag=jo()),Uu(e)},fo=t=>{const e=t.collectionTag;e!==null&&Hu(e,null)},pi=Symbol(),to=0,Cf=Object.getPrototypeOf({}),Fa=class{constructor(t){lo(this,"proxy",new Proxy(this,ti));lo(this,"tag",jo());lo(this,"tags",{});lo(this,"children",{});lo(this,"collectionTag",null);lo(this,"id",to++);this.value=t,this.value=t,this.tag.value=t}},ti={get(t,e){function n(){const{value:c}=t,S=Reflect.get(c,e);if(typeof e=="symbol"||e in Cf)return S;if(typeof S=="object"&&S!==null){let F=t.children[e];return F===void 0&&(F=t.children[e]=Om(S)),F.tag&&Uu(F.tag),F.proxy}else{let F=t.tags[e];return F===void 0&&(F=t.tags[e]=jo(),F.value=S),Uu(F),S}}return n()},ownKeys(t){return Oa(t),Reflect.ownKeys(t.value)},getOwnPropertyDescriptor(t,e){return Reflect.getOwnPropertyDescriptor(t.value,e)},has(t,e){return Reflect.has(t.value,e)}},_c=class{constructor(t){lo(this,"proxy",new Proxy([this],Rv));lo(this,"tag",jo());lo(this,"tags",{});lo(this,"children",{});lo(this,"collectionTag",null);lo(this,"id",to++);this.value=t,this.value=t,this.tag.value=t}},Rv={get([t],e){return e==="length"&&Oa(t),ti.get(t,e)},ownKeys([t]){return ti.ownKeys(t)},getOwnPropertyDescriptor([t],e){return ti.getOwnPropertyDescriptor(t,e)},has([t],e){return ti.has(t,e)}};function Om(t){return Array.isArray(t)?new _c(t):new Fa(t)}function h(t,e){const{value:n,tags:i,children:c}=t;if(t.value=e,Array.isArray(n)&&Array.isArray(e)&&n.length!==e.length)fo(t);else if(n!==e){let S=0,F=0,nt=!1;for(const yt in n)S++;for(const yt in e)if(F++,!(yt in n)){nt=!0;break}(nt||S!==F)&&fo(t)}for(const S in i){const F=n[S],nt=e[S];F!==nt&&(fo(t),Hu(i[S],nt)),typeof nt=="object"&&nt!==null&&delete i[S]}for(const S in c){const F=c[S],nt=e[S];F.value!==nt&&(typeof nt=="object"&&nt!==null?h(F,nt):(N(F),delete c[S]))}}function N(t){t.tag&&Hu(t.tag,null),fo(t);for(const e in t.tags)Hu(t.tags[e],null);for(const e in t.children)N(t.children[e])}function ht(t){let e;return{get(n){return e&&t(e.key,n)?e.value:lh},put(n,i){e={key:n,value:i}},getEntries(){return e?[e]:[]},clear(){e=void 0}}}function Rt(t,e){let n=[];function i(nt){const ut=n.findIndex(yt=>e(nt,yt.key));if(ut>-1){const yt=n[ut];return ut>0&&(n.splice(ut,1),n.unshift(yt)),yt.value}return lh}function c(nt,ut){i(nt)===lh&&(n.unshift({key:nt,value:ut}),n.length>t&&n.pop())}function S(){return n}function F(){n=[]}return{get:i,put:c,getEntries:S,clear:F}}var Xt=(t,e)=>t===e;function ce(t){return function(n,i){if(n===null||i===null||n.length!==i.length)return!1;const{length:c}=n;for(let S=0;S<c;S++)if(!t(n[S],i[S]))return!1;return!0}}function He(t,e){const n=typeof e=="object"?e:{equalityCheck:e},{equalityCheck:i=Xt,maxSize:c=1,resultEqualityCheck:S}=n,F=ce(i);let nt=0;const ut=c<=1?ht(F):Rt(c,F);function yt(){let _t=ut.get(arguments);if(_t===lh){if(_t=t.apply(null,arguments),nt++,S){const Ht=ut.getEntries().find(Yt=>S(Yt.value,_t));Ht&&(_t=Ht.value,nt!==0&&nt--)}ut.put(arguments,_t)}return _t}return yt.clearCache=()=>{ut.clear(),yt.resetResultsCount()},yt.resultsCount=()=>nt,yt.resetResultsCount=()=>{nt=0},yt}function bn(t){const e=Om([]);let n=null;const i=ce(Xt),c=Ef(()=>t.apply(null,e.proxy));function S(){return i(n,arguments)||(h(e,arguments),n=arguments),c.value}return S.clearCache=()=>c.clear(),S}var Pn=class{constructor(t){this.value=t}deref(){return this.value}},qn=typeof WeakRef!="undefined"?WeakRef:Pn,kr=0,Nr=1;function Cr(){return{s:kr,v:void 0,o:null,p:null}}function Vr(t,e={}){let n=Cr();const{resultEqualityCheck:i}=e;let c,S=0;function F(){var zt,Ht;let nt=n;const{length:ut}=arguments;for(let Yt=0,re=ut;Yt<re;Yt++){const ue=arguments[Yt];if(typeof ue=="function"||typeof ue=="object"&&ue!==null){let oe=nt.o;oe===null&&(nt.o=oe=new WeakMap);const de=oe.get(ue);de===void 0?(nt=Cr(),oe.set(ue,nt)):nt=de}else{let oe=nt.p;oe===null&&(nt.p=oe=new Map);const de=oe.get(ue);de===void 0?(nt=Cr(),oe.set(ue,nt)):nt=de}}const yt=nt;let _t;if(nt.s===Nr)_t=nt.v;else if(_t=t.apply(null,arguments),S++,i){const Yt=(Ht=(zt=c==null?void 0:c.deref)==null?void 0:zt.call(c))!=null?Ht:c;Yt!=null&&i(Yt,_t)&&(_t=Yt,S!==0&&S--),c=typeof _t=="object"&&_t!==null||typeof _t=="function"?new qn(_t):_t}return yt.s=Nr,yt.v=_t,_t}return F.clearCache=()=>{n=Cr(),F.resetResultsCount()},F.resultsCount=()=>S,F.resetResultsCount=()=>{S=0},F}function Qr(t,...e){const n=typeof t=="function"?{memoize:t,memoizeOptions:e}:t,i=(...c)=>{let S=0,F=0,nt,ut={},yt=c.pop();typeof yt=="object"&&(ut=yt,yt=c.pop()),k0(yt,`createSelector expects an output function after the inputs, but received: [${typeof yt}]`);const _t=xr(xr({},n),ut),{memoize:zt,memoizeOptions:Ht=[],argsMemoize:Yt=Vr,argsMemoizeOptions:re=[],devModeChecks:ue={}}=_t,oe=Nl(Ht),de=Nl(re),pe=uh(c),_e=zt(function(){return S++,yt.apply(null,arguments)},...oe);let ge=!0;const qe=Yt(function(){F++;const $e=Xd(pe,arguments);return nt=_e.apply(null,$e),nt},...de);return Object.assign(qe,{resultFunc:yt,memoizedResultFunc:_e,dependencies:pe,dependencyRecomputations:()=>F,resetDependencyRecomputations:()=>{F=0},lastResult:()=>nt,recomputations:()=>S,resetRecomputations:()=>{S=0},memoize:zt,argsMemoize:Yt})};return Object.assign(i,{withTypes:()=>i}),i}var Yr=Qr(Vr),Qo=Object.assign((t,e=Yr)=>{zu(t,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof t}`);const n=Object.keys(t),i=n.map(S=>t[S]);return e(i,(...S)=>S.reduce((F,nt,ut)=>(F[n[ut]]=nt,F),{}))},{withTypes:()=>Qo}),$n=(t=>(t.uninitialized="uninitialized",t.pending="pending",t.fulfilled="fulfilled",t.rejected="rejected",t))($n||{});function Ln(t){return{status:t,isUninitialized:t==="uninitialized",isLoading:t==="pending",isSuccess:t==="fulfilled",isError:t==="rejected"}}var tr=Aa;function Ir(t,e){if(t===e||!(tr(t)&&tr(e)||Array.isArray(t)&&Array.isArray(e)))return e;const n=Object.keys(e),i=Object.keys(t);let c=n.length===i.length;const S=Array.isArray(e)?[]:{};for(const F of n)S[F]=Ir(t[F],e[F]),c&&(c=t[F]===S[F]);return c?t:S}function Kr(t){let e=0;for(const n in t)e++;return e}var mi=t=>[].concat(...t);function ni(t){return new RegExp("(^|:)//").test(t)}function ki(){return typeof document=="undefined"?!0:document.visibilityState!=="hidden"}function ya(t){return t!=null}function po(){return typeof navigator=="undefined"||navigator.onLine===void 0?!0:navigator.onLine}var Vu=t=>t.replace(/\/$/,""),Mx=t=>t.replace(/^\//,"");function Lv(t,e){if(!t)return e;if(!e)return t;if(ni(e))return e;const n=t.endsWith("/")||!e.startsWith("?")?"/":"";return t=Vu(t),e=Mx(e),`${t}${n}${e}`}function Zd(t,e,n){return t.has(e)?t.get(e):t.set(e,n).get(e)}var P0=(...t)=>fetch(...t),Nm=t=>t.status>=200&&t.status<=299,kx=t=>/ion\/(vnd\.api\+)?json/.test(t.get("content-type")||"");function O0(t){if(!Aa(t))return t;const e=xr({},t);for(const[n,i]of Object.entries(e))i===void 0&&delete e[n];return e}function Iv(zt={}){var Ht=zt,{baseUrl:t,prepareHeaders:e=Yt=>Yt,fetchFn:n=P0,paramsSerializer:i,isJsonContentType:c=kx,jsonContentType:S="application/json",jsonReplacer:F,timeout:nt,responseHandler:ut,validateStatus:yt}=Ht,_t=io(Ht,["baseUrl","prepareHeaders","fetchFn","paramsSerializer","isJsonContentType","jsonContentType","jsonReplacer","timeout","responseHandler","validateStatus"]);return typeof fetch=="undefined"&&n===P0&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),(re,ue,oe)=>Qi(this,null,function*(){const{getState:de,extra:pe,endpoint:_e,forced:ge,type:qe}=ue;let De,Zi=typeof re=="string"?{url:re}:re,{url:$e,headers:Ye=new Headers(_t.headers),params:tn=void 0,responseHandler:gn=ut!=null?ut:"json",validateStatus:Cn=yt!=null?yt:Nm,timeout:kn=nt}=Zi,Zn=io(Zi,["url","headers","params","responseHandler","validateStatus","timeout"]),fn,jn=ue.signal;kn&&(fn=new AbortController,ue.signal.addEventListener("abort",fn.abort),jn=fn.signal);let On=xr(Mi(xr({},_t),{signal:jn}),Zn);Ye=new Headers(O0(Ye)),On.headers=(yield e(Ye,{getState:de,arg:re,extra:pe,endpoint:_e,forced:ge,type:qe,extraOptions:oe}))||Ye;const Vn=$r=>typeof $r=="object"&&(Aa($r)||Array.isArray($r)||typeof $r.toJSON=="function");if(!On.headers.has("content-type")&&Vn(On.body)&&On.headers.set("content-type",S),Vn(On.body)&&c(On.headers)&&(On.body=JSON.stringify(On.body,F)),tn){const $r=~$e.indexOf("?")?"&":"?",Fi=i?i(tn):new URLSearchParams(O0(tn));$e+=$r+Fi}$e=Lv(t,$e);const wr=new Request($e,On);De={request:new Request($e,On)};let _r,Ur=!1,Hr=fn&&setTimeout(()=>{Ur=!0,fn.abort()},kn);try{_r=yield n(wr)}catch($r){return{error:{status:Ur?"TIMEOUT_ERROR":"FETCH_ERROR",error:String($r)},meta:De}}finally{Hr&&clearTimeout(Hr),fn==null||fn.signal.removeEventListener("abort",fn.abort)}const Li=_r.clone();De.response=Li;let ai,Ei="";try{let $r;if(yield Promise.all([Yt(_r,gn).then(Fi=>ai=Fi,Fi=>$r=Fi),Li.text().then(Fi=>Ei=Fi,()=>{})]),$r)throw $r}catch($r){return{error:{status:"PARSING_ERROR",originalStatus:_r.status,data:Ei,error:String($r)},meta:De}}return Cn(_r,ai)?{data:ai,meta:De}:{error:{status:_r.status,data:ai},meta:De}});function Yt(re,ue){return Qi(this,null,function*(){if(typeof ue=="function")return ue(re);if(ue==="content-type"&&(ue=c(re.headers)?"json":"text"),ue==="json"){const oe=yield re.text();return oe.length?JSON.parse(oe):null}return re.text()})}}var Bo=class{constructor(t,e=void 0){this.value=t,this.meta=e}};function al(t=0,e=5){return Qi(this,null,function*(){const n=Math.min(t,e),i=~~((Math.random()+.4)*(300<<n));yield new Promise(c=>setTimeout(S=>c(S),i))})}function wa(t,e){throw Object.assign(new Bo({error:t,meta:e}),{throwImmediately:!0})}var sl={},Qd=(t,e)=>(n,i,c)=>Qi(this,null,function*(){const S=[5,(e||sl).maxRetries,(c||sl).maxRetries].filter(_t=>_t!==void 0),[F]=S.slice(-1),ut=xr(xr({maxRetries:F,backoff:al,retryCondition:(_t,zt,{attempt:Ht})=>Ht<=F},e),c);let yt=0;for(;;)try{const _t=yield t(n,i,c);if(_t.error)throw new Bo(_t);return _t}catch(_t){if(yt++,_t.throwImmediately){if(_t instanceof Bo)return _t.value;throw _t}if(_t instanceof Bo&&!ut.retryCondition(_t.value.error,n,{attempt:yt,baseQueryApi:i,extraOptions:c}))return _t.value;yield ut.backoff(yt,ut.maxRetries)}}),Wk=Object.assign(Qd,{fail:wa}),Dm=es("__rtkq/focused"),ch=es("__rtkq/unfocused"),hh=es("__rtkq/online"),Wu=es("__rtkq/offline"),Yu=!1;function fh(t,e){function n(){const i=()=>t(Dm()),c=()=>t(ch()),S=()=>t(hh()),F=()=>t(Wu()),nt=()=>{window.document.visibilityState==="visible"?i():c()};return Yu||typeof window!="undefined"&&window.addEventListener&&(window.addEventListener("visibilitychange",nt,!1),window.addEventListener("focus",i,!1),window.addEventListener("online",S,!1),window.addEventListener("offline",F,!1),Yu=!0),()=>{window.removeEventListener("focus",i),window.removeEventListener("visibilitychange",nt),window.removeEventListener("online",S),window.removeEventListener("offline",F),Yu=!1}}return e?e(t,{onFocus:Dm,onFocusLost:ch,onOffline:Wu,onOnline:hh}):n()}function jv(t){return t.type==="query"}function F2(t){return t.type==="mutation"}function Bv(t,e,n,i,c,S){return z2(t)?t(e,n,i,c).filter(ya).map(Fv).map(S):Array.isArray(t)?t.map(Fv).map(S):[]}function z2(t){return typeof t=="function"}function Fv(t){return typeof t=="string"?{type:t}:t}function Yk(t,e){return t.catch(e)}var Rm=Symbol("forceQueryFn"),Vs=t=>typeof t[Rm]=="function";function qk({serializeQueryArgs:t,queryThunk:e,mutationThunk:n,api:i,context:c}){const S=new Map,F=new Map,{unsubscribeQueryResult:nt,removeMutationResult:ut,updateSubscriptionOptions:yt}=i.internalActions;return{buildInitiateQuery:ue,buildInitiateMutation:oe,getRunningQueryThunk:_t,getRunningMutationThunk:zt,getRunningQueriesThunk:Ht,getRunningMutationsThunk:Yt};function _t(de,pe){return _e=>{var De;const ge=c.endpointDefinitions[de],qe=t({queryArgs:pe,endpointDefinition:ge,endpointName:de});return(De=S.get(_e))==null?void 0:De[qe]}}function zt(de,pe){return _e=>{var ge;return(ge=F.get(_e))==null?void 0:ge[pe]}}function Ht(){return de=>Object.values(S.get(de)||{}).filter(ya)}function Yt(){return de=>Object.values(F.get(de)||{}).filter(ya)}function re(de){}function ue(de,pe){const _e=(ge,gn={})=>{var Cn=gn,{subscribe:qe=!0,forceRefetch:De,subscriptionOptions:$e,[Rm]:Ye}=Cn,tn=io(Cn,["subscribe","forceRefetch","subscriptionOptions",WR(Rm)]);return(kn,Zn)=>{var Ei;const fn=t({queryArgs:ge,endpointDefinition:pe,endpointName:de}),jn=e(Mi(xr({},tn),{type:"query",subscribe:qe,forceRefetch:De,subscriptionOptions:$e,endpointName:de,originalArgs:ge,queryCacheKey:fn,[Rm]:Ye})),On=i.endpoints[de].select(ge),Vn=kn(jn),wr=On(Zn());const{requestId:Pr,abort:_r}=Vn,Ur=wr.requestId!==Pr,Hr=(Ei=S.get(kn))==null?void 0:Ei[fn],Li=()=>On(Zn()),ai=Object.assign(Ye?Vn.then(Li):Ur&&!Hr?Promise.resolve(wr):Promise.all([Hr,Vn]).then(Li),{arg:ge,requestId:Pr,subscriptionOptions:$e,queryCacheKey:fn,abort:_r,unwrap(){return Qi(this,null,function*(){const $r=yield ai;if($r.isError)throw $r.error;return $r.data})},refetch:()=>kn(_e(ge,{subscribe:!1,forceRefetch:!0})),unsubscribe(){qe&&kn(nt({queryCacheKey:fn,requestId:Pr}))},updateSubscriptionOptions($r){ai.subscriptionOptions=$r,kn(yt({endpointName:de,requestId:Pr,queryCacheKey:fn,options:$r}))}});if(!Hr&&!Ur&&!Ye){const $r=Zd(S,kn,{});$r[fn]=ai,ai.then(()=>{delete $r[fn],Kr($r)||S.delete(kn)})}return ai}};return _e}function oe(de){return(pe,{track:_e=!0,fixedCacheKey:ge}={})=>(qe,De)=>{const $e=n({type:"mutation",endpointName:de,originalArgs:pe,track:_e,fixedCacheKey:ge}),Ye=qe($e);const{requestId:tn,abort:gn,unwrap:Cn}=Ye,kn=Yk(Ye.unwrap().then(On=>({data:On})),On=>({error:On})),Zn=()=>{qe(ut({requestId:tn,fixedCacheKey:ge}))},fn=Object.assign(kn,{arg:Ye.arg,requestId:tn,abort:gn,unwrap:Cn,reset:Zn}),jn=F.get(qe)||{};return F.set(qe,jn),jn[tn]=fn,fn.then(()=>{delete jn[tn],Kr(jn)||F.delete(qe)}),ge&&(jn[ge]=fn,fn.then(()=>{jn[ge]===fn&&(delete jn[ge],Kr(jn)||F.delete(qe))})),fn}}}function Tx(t){return t}function $k({reducerPath:t,baseQuery:e,context:{endpointDefinitions:n},serializeQueryArgs:i,api:c,assertTagType:S}){const F=(pe,_e,ge,qe)=>(De,$e)=>{const Ye=n[pe],tn=i({queryArgs:_e,endpointDefinition:Ye,endpointName:pe});if(De(c.internalActions.queryResultPatched({queryCacheKey:tn,patches:ge})),!qe)return;const gn=c.endpoints[pe].select(_e)($e()),Cn=Bv(Ye.providesTags,gn.data,void 0,_e,{},S);De(c.internalActions.updateProvidedBy({queryCacheKey:tn,providedTags:Cn}))},nt=(pe,_e,ge,qe=!0)=>(De,$e)=>{const tn=c.endpoints[pe].select(_e)($e()),gn={patches:[],inversePatches:[],undo:()=>De(c.util.patchQueryData(pe,_e,gn.inversePatches,qe))};if(tn.status==="uninitialized")return gn;let Cn;if("data"in tn)if(Ui(tn.data)){const[kn,Zn,fn]=ff(tn.data,ge);gn.patches.push(...Zn),gn.inversePatches.push(...fn),Cn=kn}else Cn=ge(tn.data),gn.patches.push({op:"replace",path:[],value:Cn}),gn.inversePatches.push({op:"replace",path:[],value:tn.data});return gn.patches.length===0||De(c.util.patchQueryData(pe,_e,gn.patches,qe)),gn},ut=(pe,_e,ge)=>qe=>qe(c.endpoints[pe].initiate(_e,{subscribe:!1,forceRefetch:!0,[Rm]:()=>({data:ge})})),yt=(gn,Cn)=>Qi(this,[gn,Cn],function*(pe,{signal:_e,abort:ge,rejectWithValue:qe,fulfillWithValue:De,dispatch:$e,getState:Ye,extra:tn}){const kn=n[pe.endpointName];try{let Zn=Tx,fn;const jn={signal:_e,abort:ge,dispatch:$e,getState:Ye,extra:tn,endpoint:pe.endpointName,type:pe.type,forced:pe.type==="query"?_t(pe,Ye()):void 0,queryCacheKey:pe.type==="query"?pe.queryCacheKey:void 0},On=pe.type==="query"?pe[Rm]:void 0;if(On?fn=On():kn.query?(fn=yield e(kn.query(pe.originalArgs),jn,kn.extraOptions),kn.transformResponse&&(Zn=kn.transformResponse)):fn=yield kn.queryFn(pe.originalArgs,jn,kn.extraOptions,Vn=>e(Vn,jn,kn.extraOptions)),fn.error)throw new Bo(fn.error,fn.meta);return De(yield Zn(fn.data,fn.meta,pe.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:fn.meta,[vc]:!0})}catch(Zn){let fn=Zn;if(fn instanceof Bo){let jn=Tx;kn.query&&kn.transformErrorResponse&&(jn=kn.transformErrorResponse);try{return qe(yield jn(fn.value,fn.meta,pe.originalArgs),{baseQueryMeta:fn.meta,[vc]:!0})}catch(On){fn=On}}throw console.error(fn),fn}});function _t(pe,_e){var Ye,tn,gn,Cn;const ge=(tn=(Ye=_e[t])==null?void 0:Ye.queries)==null?void 0:tn[pe.queryCacheKey],qe=(gn=_e[t])==null?void 0:gn.config.refetchOnMountOrArgChange,De=ge==null?void 0:ge.fulfilledTimeStamp,$e=(Cn=pe.forceRefetch)!=null?Cn:pe.subscribe&&qe;return $e?$e===!0||(Number(new Date)-Number(De))/1e3>=$e:!1}const zt=_m(`${t}/executeQuery`,yt,{getPendingMeta(){return{startedTimeStamp:Date.now(),[vc]:!0}},condition(pe,{getState:_e}){var gn,Cn,kn;const ge=_e(),qe=(Cn=(gn=ge[t])==null?void 0:gn.queries)==null?void 0:Cn[pe.queryCacheKey],De=qe==null?void 0:qe.fulfilledTimeStamp,$e=pe.originalArgs,Ye=qe==null?void 0:qe.originalArgs,tn=n[pe.endpointName];return Vs(pe)?!0:(qe==null?void 0:qe.status)==="pending"?!1:_t(pe,ge)||jv(tn)&&((kn=tn==null?void 0:tn.forceRefetch)!=null&&kn.call(tn,{currentArg:$e,previousArg:Ye,endpointState:qe,state:ge}))?!0:!De},dispatchConditionRejection:!0}),Ht=_m(`${t}/executeMutation`,yt,{getPendingMeta(){return{startedTimeStamp:Date.now(),[vc]:!0}}}),Yt=pe=>"force"in pe,re=pe=>"ifOlderThan"in pe,ue=(pe,_e,ge)=>(qe,De)=>{const $e=Yt(ge)&&ge.force,Ye=re(ge)&&ge.ifOlderThan,tn=(Cn=!0)=>{const kn={forceRefetch:Cn,isPrefetch:!0};return c.endpoints[pe].initiate(_e,kn)},gn=c.endpoints[pe].select(_e)(De());if($e)qe(tn());else if(Ye){const Cn=gn==null?void 0:gn.fulfilledTimeStamp;if(!Cn){qe(tn());return}(Number(new Date)-Number(new Date(Cn)))/1e3>=Ye&&qe(tn())}else qe(tn(!1))};function oe(pe){return _e=>{var ge,qe;return((qe=(ge=_e==null?void 0:_e.meta)==null?void 0:ge.arg)==null?void 0:qe.endpointName)===pe}}function de(pe,_e){return{matchPending:ua(rh(pe),oe(_e)),matchFulfilled:ua(qr(pe),oe(_e)),matchRejected:ua(ra(pe),oe(_e))}}return{queryThunk:zt,mutationThunk:Ht,prefetch:ue,updateQueryData:nt,upsertQueryData:ut,patchQueryData:F,buildMatchThunkActions:de}}function Lm(t,e,n,i){return Bv(n[t.meta.arg.endpointName][e],qr(t)?t.payload:void 0,wm(t)?t.payload:void 0,t.meta.arg.originalArgs,"baseQueryMeta"in t.meta?t.meta.baseQueryMeta:void 0,i)}function Jd(t,e,n){const i=t[e];i&&n(i)}function Mf(t){var e;return(e="arg"in t?t.arg.fixedCacheKey:t.fixedCacheKey)!=null?e:t.requestId}function N0(t,e,n){const i=t[Mf(e)];i&&n(i)}var kf={};function zv({reducerPath:t,queryThunk:e,mutationThunk:n,serializeQueryArgs:i,context:{endpointDefinitions:c,apiUid:S,extractRehydrationInfo:F,hasRehydrationInfo:nt},assertTagType:ut,config:yt}){const _t=es(`${t}/resetApiState`);function zt(De,$e,Ye,tn){var gn,Cn;(Cn=De[gn=$e.queryCacheKey])!=null||(De[gn]={status:"uninitialized",endpointName:$e.endpointName}),Jd(De,$e.queryCacheKey,kn=>{kn.status="pending",kn.requestId=Ye&&kn.requestId?kn.requestId:tn.requestId,$e.originalArgs!==void 0&&(kn.originalArgs=$e.originalArgs),kn.startedTimeStamp=tn.startedTimeStamp})}function Ht(De,$e,Ye){Jd(De,$e.arg.queryCacheKey,tn=>{var Cn;if(tn.requestId!==$e.requestId&&!Vs($e.arg))return;const{merge:gn}=c[$e.arg.endpointName];if(tn.status="fulfilled",gn)if(tn.data!==void 0){const{fulfilledTimeStamp:kn,arg:Zn,baseQueryMeta:fn,requestId:jn}=$e;let On=ts(tn.data,Vn=>gn(Vn,Ye,{arg:Zn.originalArgs,baseQueryMeta:fn,fulfilledTimeStamp:kn,requestId:jn}));tn.data=On}else tn.data=Ye;else tn.data=(Cn=c[$e.arg.endpointName].structuralSharing)==null||Cn?Ir(yo(tn.data)?Qc(tn.data):tn.data,Ye):Ye;delete tn.error,tn.fulfilledTimeStamp=$e.fulfilledTimeStamp})}const Yt=Ts({name:`${t}/queries`,initialState:kf,reducers:{removeQueryResult:{reducer(De,{payload:{queryCacheKey:$e}}){delete De[$e]},prepare:nh()},cacheEntriesUpserted:{reducer(De,$e){for(const Ye of $e.payload){const{queryDescription:tn,value:gn}=Ye;zt(De,tn,!0,{arg:tn,requestId:$e.meta.requestId,startedTimeStamp:$e.meta.timestamp}),Ht(De,{arg:tn,requestId:$e.meta.requestId,fulfilledTimeStamp:$e.meta.timestamp,baseQueryMeta:{}},gn)}},prepare:De=>({payload:De.map(tn=>{const{endpointName:gn,arg:Cn,value:kn}=tn,Zn=c[gn];return{queryDescription:{type:"query",endpointName:gn,originalArgs:tn.arg,queryCacheKey:i({queryArgs:Cn,endpointDefinition:Zn,endpointName:gn})},value:kn}}),meta:{[vc]:!0,requestId:ih(),timestamp:Date.now()}})},queryResultPatched:{reducer(De,{payload:{queryCacheKey:$e,patches:Ye}}){Jd(De,$e,tn=>{tn.data=Ld(tn.data,Ye.concat())})},prepare:nh()}},extraReducers(De){De.addCase(e.pending,($e,{meta:Ye,meta:{arg:tn}})=>{const gn=Vs(tn);zt($e,tn,gn,Ye)}).addCase(e.fulfilled,($e,{meta:Ye,payload:tn})=>{Ht($e,Ye,tn)}).addCase(e.rejected,($e,{meta:{condition:Ye,arg:tn,requestId:gn},error:Cn,payload:kn})=>{Jd($e,tn.queryCacheKey,Zn=>{if(!Ye){if(Zn.requestId!==gn)return;Zn.status="rejected",Zn.error=kn!=null?kn:Cn}})}).addMatcher(nt,($e,Ye)=>{const{queries:tn}=F(Ye);for(const[gn,Cn]of Object.entries(tn))((Cn==null?void 0:Cn.status)==="fulfilled"||(Cn==null?void 0:Cn.status)==="rejected")&&($e[gn]=Cn)})}}),re=Ts({name:`${t}/mutations`,initialState:kf,reducers:{removeMutationResult:{reducer(De,{payload:$e}){const Ye=Mf($e);Ye in De&&delete De[Ye]},prepare:nh()}},extraReducers(De){De.addCase(n.pending,($e,{meta:Ye,meta:{requestId:tn,arg:gn,startedTimeStamp:Cn}})=>{gn.track&&($e[Mf(Ye)]={requestId:tn,status:"pending",endpointName:gn.endpointName,startedTimeStamp:Cn})}).addCase(n.fulfilled,($e,{payload:Ye,meta:tn})=>{tn.arg.track&&N0($e,tn,gn=>{gn.requestId===tn.requestId&&(gn.status="fulfilled",gn.data=Ye,gn.fulfilledTimeStamp=tn.fulfilledTimeStamp)})}).addCase(n.rejected,($e,{payload:Ye,error:tn,meta:gn})=>{gn.arg.track&&N0($e,gn,Cn=>{Cn.requestId===gn.requestId&&(Cn.status="rejected",Cn.error=Ye!=null?Ye:tn)})}).addMatcher(nt,($e,Ye)=>{const{mutations:tn}=F(Ye);for(const[gn,Cn]of Object.entries(tn))((Cn==null?void 0:Cn.status)==="fulfilled"||(Cn==null?void 0:Cn.status)==="rejected")&&gn!==(Cn==null?void 0:Cn.requestId)&&($e[gn]=Cn)})}}),ue=Ts({name:`${t}/invalidation`,initialState:kf,reducers:{updateProvidedBy:{reducer(De,$e){var gn,Cn,kn,Zn;const{queryCacheKey:Ye,providedTags:tn}=$e.payload;for(const fn of Object.values(De))for(const jn of Object.values(fn)){const On=jn.indexOf(Ye);On!==-1&&jn.splice(On,1)}for(const{type:fn,id:jn}of tn){const On=(Zn=(Cn=(gn=De[fn])!=null?gn:De[fn]={})[kn=jn||"__internal_without_id"])!=null?Zn:Cn[kn]=[];On.includes(Ye)||On.push(Ye)}},prepare:nh()}},extraReducers(De){De.addCase(Yt.actions.removeQueryResult,($e,{payload:{queryCacheKey:Ye}})=>{for(const tn of Object.values($e))for(const gn of Object.values(tn)){const Cn=gn.indexOf(Ye);Cn!==-1&&gn.splice(Cn,1)}}).addMatcher(nt,($e,Ye)=>{var gn,Cn,kn,Zn;const{provided:tn}=F(Ye);for(const[fn,jn]of Object.entries(tn))for(const[On,Vn]of Object.entries(jn)){const wr=(Zn=(Cn=(gn=$e[fn])!=null?gn:$e[fn]={})[kn=On||"__internal_without_id"])!=null?Zn:Cn[kn]=[];for(const Pr of Vn)wr.includes(Pr)||wr.push(Pr)}}).addMatcher(ps(qr(e),wm(e)),($e,Ye)=>{const tn=Lm(Ye,"providesTags",c,ut),{queryCacheKey:gn}=Ye.meta.arg;ue.caseReducers.updateProvidedBy($e,ue.actions.updateProvidedBy({queryCacheKey:gn,providedTags:tn}))})}}),oe=Ts({name:`${t}/subscriptions`,initialState:kf,reducers:{updateSubscriptionOptions(De,$e){},unsubscribeQueryResult(De,$e){},internal_getRTKQSubscriptions(){}}}),de=Ts({name:`${t}/internalSubscriptions`,initialState:kf,reducers:{subscriptionsUpdated:{reducer(De,$e){return Ld(De,$e.payload)},prepare:nh()}}}),pe=Ts({name:`${t}/config`,initialState:xr({online:po(),focused:ki(),middlewareRegistered:!1},yt),reducers:{middlewareRegistered(De,{payload:$e}){De.middlewareRegistered=De.middlewareRegistered==="conflict"||S!==$e?"conflict":!0}},extraReducers:De=>{De.addCase(hh,$e=>{$e.online=!0}).addCase(Wu,$e=>{$e.online=!1}).addCase(Dm,$e=>{$e.focused=!0}).addCase(ch,$e=>{$e.focused=!1}).addMatcher(nt,$e=>xr({},$e))}}),_e=ef({queries:Yt.reducer,mutations:re.reducer,provided:ue.reducer,subscriptions:de.reducer,config:pe.reducer}),ge=(De,$e)=>_e(_t.match($e)?void 0:De,$e),qe=Mi(xr(xr(xr(xr(xr(xr({},pe.actions),Yt.actions),oe.actions),de.actions),re.actions),ue.actions),{resetApiState:_t});return{reducer:ge,actions:qe}}var qu=Symbol.for("RTKQ/skipToken"),D0={status:"uninitialized"},Uv=ts(D0,()=>{}),Hv=ts(D0,()=>{});function Ax({serializeQueryArgs:t,reducerPath:e,createSelector:n}){const i=zt=>Uv,c=zt=>Hv;return{buildQuerySelector:nt,buildMutationSelector:ut,selectInvalidatedBy:yt,selectCachedArgsForQuery:_t};function S(zt){return xr(xr({},zt),Ln(zt.status))}function F(zt){return zt[e]}function nt(zt,Ht){return Yt=>{if(Yt===qu)return n(i,S);const re=t({queryArgs:Yt,endpointDefinition:Ht,endpointName:zt});return n(oe=>{var de,pe,_e;return(_e=(pe=(de=F(oe))==null?void 0:de.queries)==null?void 0:pe[re])!=null?_e:Uv},S)}}function ut(){return zt=>{var ue;let Ht;return typeof zt=="object"?Ht=(ue=Mf(zt))!=null?ue:qu:Ht=zt,n(Ht===qu?c:oe=>{var de,pe,_e;return(_e=(pe=(de=F(oe))==null?void 0:de.mutations)==null?void 0:pe[Ht])!=null?_e:Hv},S)}}function yt(zt,Ht){var ue;const Yt=zt[e],re=new Set;for(const oe of Ht.filter(ya).map(Fv)){const de=Yt.provided[oe.type];if(!de)continue;let pe=(ue=oe.id!==void 0?de[oe.id]:mi(Object.values(de)))!=null?ue:[];for(const _e of pe)re.add(_e)}return mi(Array.from(re.values()).map(oe=>{const de=Yt.queries[oe];return de?[{queryCacheKey:oe,endpointName:de.endpointName,originalArgs:de.originalArgs}]:[]}))}function _t(zt,Ht){return Object.values(zt[e].queries).filter(Yt=>(Yt==null?void 0:Yt.endpointName)===Ht&&Yt.status!=="uninitialized").map(Yt=>Yt.originalArgs)}}var tp=WeakMap?new WeakMap:void 0,Px=({endpointName:t,queryArgs:e})=>{let n="";const i=tp==null?void 0:tp.get(e);if(typeof i=="string")n=i;else{const c=JSON.stringify(e,(S,F)=>(F=typeof F=="bigint"?{$bigint:F.toString()}:F,F=Aa(F)?Object.keys(F).sort().reduce((nt,ut)=>(nt[ut]=F[ut],nt),{}):F,F));Aa(e)&&(tp==null||tp.set(e,c)),n=c}return`${t}(${n})`};function As(...t){return function(n){const i=Vr(yt=>{var _t,zt;return(zt=n.extractRehydrationInfo)==null?void 0:zt.call(n,yt,{reducerPath:(_t=n.reducerPath)!=null?_t:"api"})}),c=Mi(xr({reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed"},n),{extractRehydrationInfo:i,serializeQueryArgs(yt){let _t=Px;if("serializeQueryArgs"in yt.endpointDefinition){const zt=yt.endpointDefinition.serializeQueryArgs;_t=Ht=>{const Yt=zt(Ht);return typeof Yt=="string"?Yt:Px(Mi(xr({},Ht),{queryArgs:Yt}))}}else n.serializeQueryArgs&&(_t=n.serializeQueryArgs);return _t(yt)},tagTypes:[...n.tagTypes||[]]}),S={endpointDefinitions:{},batch(yt){yt()},apiUid:ih(),extractRehydrationInfo:i,hasRehydrationInfo:Vr(yt=>i(yt)!=null)},F={injectEndpoints:ut,enhanceEndpoints({addTagTypes:yt,endpoints:_t}){if(yt)for(const zt of yt)c.tagTypes.includes(zt)||c.tagTypes.push(zt);if(_t)for(const[zt,Ht]of Object.entries(_t))typeof Ht=="function"?Ht(S.endpointDefinitions[zt]):Object.assign(S.endpointDefinitions[zt]||{},Ht);return F}},nt=t.map(yt=>yt.init(F,c,S));function ut(yt){const _t=yt.endpoints({query:zt=>Mi(xr({},zt),{type:"query"}),mutation:zt=>Mi(xr({},zt),{type:"mutation"})});for(const[zt,Ht]of Object.entries(_t)){if(yt.overrideExisting!==!0&&zt in S.endpointDefinitions){if(yt.overrideExisting==="throw")throw new Error(Ka(39));continue}S.endpointDefinitions[zt]=Ht;for(const Yt of nt)Yt.injectEndpoint(zt,Ht)}return F}return F.injectEndpoints({endpoints:n.endpoints})}}var ll=null;function ul(){return function(){throw new Error(_formatProdErrorMessage3(33))}}function Sc(t){}function Ec(t,...e){return Object.assign(t,...e)}var R0=({api:t,queryThunk:e,internalState:n})=>{const i=`${t.reducerPath}/subscriptions`;let c=null,S=null;const{updateSubscriptionOptions:F,unsubscribeQueryResult:nt}=t.internalActions,ut=(Yt,re)=>{var oe,de,pe,_e,ge,qe,De,$e,Ye;if(F.match(re)){const{queryCacheKey:tn,requestId:gn,options:Cn}=re.payload;return(oe=Yt==null?void 0:Yt[tn])!=null&&oe[gn]&&(Yt[tn][gn]=Cn),!0}if(nt.match(re)){const{queryCacheKey:tn,requestId:gn}=re.payload;return Yt[tn]&&delete Yt[tn][gn],!0}if(t.internalActions.removeQueryResult.match(re))return delete Yt[re.payload.queryCacheKey],!0;if(e.pending.match(re)){const{meta:{arg:tn,requestId:gn}}=re,Cn=(pe=Yt[de=tn.queryCacheKey])!=null?pe:Yt[de]={};return Cn[`${gn}_running`]={},tn.subscribe&&(Cn[gn]=(ge=(_e=tn.subscriptionOptions)!=null?_e:Cn[gn])!=null?ge:{}),!0}let ue=!1;if(e.fulfilled.match(re)||e.rejected.match(re)){const tn=Yt[re.meta.arg.queryCacheKey]||{},gn=`${re.meta.requestId}_running`;ue||(ue=!!tn[gn]),delete tn[gn]}if(e.rejected.match(re)){const{meta:{condition:tn,arg:gn,requestId:Cn}}=re;if(tn&&gn.subscribe){const kn=(De=Yt[qe=gn.queryCacheKey])!=null?De:Yt[qe]={};kn[Cn]=(Ye=($e=gn.subscriptionOptions)!=null?$e:kn[Cn])!=null?Ye:{},ue=!0}}return ue},yt=()=>n.currentSubscriptions,Ht={getSubscriptions:yt,getSubscriptionCount:Yt=>{var oe;const ue=(oe=yt()[Yt])!=null?oe:{};return Kr(ue)},isRequestSubscribed:(Yt,re)=>{var oe;const ue=yt();return!!((oe=ue==null?void 0:ue[Yt])!=null&&oe[re])}};return(Yt,re)=>{if(c||(c=JSON.parse(JSON.stringify(n.currentSubscriptions))),t.util.resetApiState.match(Yt))return c=n.currentSubscriptions={},S=null,[!0,!1];if(t.internalActions.internal_getRTKQSubscriptions.match(Yt))return[!1,Ht];const ue=ut(n.currentSubscriptions,Yt);let oe=!0;if(ue){S||(S=setTimeout(()=>{const _e=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,ge]=ff(c,()=>_e);re.next(t.internalActions.subscriptionsUpdated(ge)),c=_e,S=null},500));const de=typeof Yt.type=="string"&&!!Yt.type.startsWith(i),pe=e.rejected.match(Yt)&&Yt.meta.condition&&!!Yt.meta.arg.subscribe;oe=!de&&!pe}return[oe,!1]}};function U2(t){for(const e in t)return!1;return!0}var Xk=2147483647/1e3-1,Gk=({reducerPath:t,api:e,queryThunk:n,context:i,internalState:c})=>{const{removeQueryResult:S,unsubscribeQueryResult:F,cacheEntriesUpserted:nt}=e.internalActions,ut=ps(F.match,n.fulfilled,n.rejected,nt.match);function yt(Yt){const re=c.currentSubscriptions[Yt];return!!re&&!U2(re)}const _t={},zt=(Yt,re,ue)=>{var oe;if(ut(Yt)){const de=re.getState()[t];let pe;if(nt.match(Yt))pe=Yt.payload.map(_e=>_e.queryDescription.queryCacheKey);else{const{queryCacheKey:_e}=F.match(Yt)?Yt.payload:Yt.meta.arg;pe=[_e]}for(const _e of pe)Ht(_e,(oe=de.queries[_e])==null?void 0:oe.endpointName,re,de.config)}if(e.util.resetApiState.match(Yt))for(const[de,pe]of Object.entries(_t))pe&&clearTimeout(pe),delete _t[de];if(i.hasRehydrationInfo(Yt)){const de=re.getState()[t],{queries:pe}=i.extractRehydrationInfo(Yt);for(const[_e,ge]of Object.entries(pe))Ht(_e,ge==null?void 0:ge.endpointName,re,de.config)}};function Ht(Yt,re,ue,oe){var ge;const de=i.endpointDefinitions[re],pe=(ge=de==null?void 0:de.keepUnusedDataFor)!=null?ge:oe.keepUnusedDataFor;if(pe===1/0)return;const _e=Math.max(0,Math.min(pe,Xk));if(!yt(Yt)){const qe=_t[Yt];qe&&clearTimeout(qe),_t[Yt]=setTimeout(()=>{yt(Yt)||ue.dispatch(S({queryCacheKey:Yt})),delete _t[Yt]},_e*1e3)}}return zt},Ox=new Error("Promise never resolved before cacheEntryRemoved."),Kk=({api:t,reducerPath:e,context:n,queryThunk:i,mutationThunk:c,internalState:S})=>{const F=bc(i),nt=bc(c),ut=qr(i,c),yt={};function _t(ue,oe,de){const pe=yt[ue];pe!=null&&pe.valueResolved&&(pe.valueResolved({data:oe,meta:de}),delete pe.valueResolved)}function zt(ue){const oe=yt[ue];oe&&(delete yt[ue],oe.cacheEntryRemoved())}const Ht=(ue,oe,de)=>{const pe=Yt(ue);function _e(ge,qe,De,$e){const Ye=de[e].queries[qe],tn=oe.getState()[e].queries[qe];!Ye&&tn&&re(ge,$e,qe,oe,De)}if(i.pending.match(ue))_e(ue.meta.arg.endpointName,pe,ue.meta.requestId,ue.meta.arg.originalArgs);else if(t.internalActions.cacheEntriesUpserted.match(ue))for(const{queryDescription:ge,value:qe}of ue.payload){const{endpointName:De,originalArgs:$e,queryCacheKey:Ye}=ge;_e(De,Ye,ue.meta.requestId,$e),_t(Ye,qe,{})}else if(c.pending.match(ue))oe.getState()[e].mutations[pe]&&re(ue.meta.arg.endpointName,ue.meta.arg.originalArgs,pe,oe,ue.meta.requestId);else if(ut(ue))_t(pe,ue.payload,ue.meta.baseQueryMeta);else if(t.internalActions.removeQueryResult.match(ue)||t.internalActions.removeMutationResult.match(ue))zt(pe);else if(t.util.resetApiState.match(ue))for(const ge of Object.keys(yt))zt(ge)};function Yt(ue){var oe;return F(ue)?ue.meta.arg.queryCacheKey:nt(ue)?(oe=ue.meta.arg.fixedCacheKey)!=null?oe:ue.meta.requestId:t.internalActions.removeQueryResult.match(ue)?ue.payload.queryCacheKey:t.internalActions.removeMutationResult.match(ue)?Mf(ue.payload):""}function re(ue,oe,de,pe,_e){const ge=n.endpointDefinitions[ue],qe=ge==null?void 0:ge.onCacheEntryAdded;if(!qe)return;const De={},$e=new Promise(Zn=>{De.cacheEntryRemoved=Zn}),Ye=Promise.race([new Promise(Zn=>{De.valueResolved=Zn}),$e.then(()=>{throw Ox})]);Ye.catch(()=>{}),yt[de]=De;const tn=t.endpoints[ue].select(ge.type==="query"?oe:de),gn=pe.dispatch((Zn,fn,jn)=>jn),Cn=Mi(xr({},pe),{getCacheEntry:()=>tn(pe.getState()),requestId:_e,extra:gn,updateCachedData:ge.type==="query"?Zn=>pe.dispatch(t.util.updateQueryData(ue,oe,Zn)):void 0,cacheDataLoaded:Ye,cacheEntryRemoved:$e}),kn=qe(oe,Cn);Promise.resolve(kn).catch(Zn=>{if(Zn!==Ox)throw Zn})}return Ht},Zk=({api:t,context:{apiUid:e},reducerPath:n})=>(i,c)=>{t.util.resetApiState.match(i)&&c.dispatch(t.internalActions.middlewareRegistered(e))},Qk=({reducerPath:t,context:e,context:{endpointDefinitions:n},mutationThunk:i,queryThunk:c,api:S,assertTagType:F,refetchQuery:nt,internalState:ut})=>{const{removeQueryResult:yt}=S.internalActions,_t=ps(qr(i),wm(i)),zt=ps(qr(i,c),ra(i,c));let Ht=[];const Yt=(oe,de)=>{_t(oe)?ue(Lm(oe,"invalidatesTags",n,F),de):zt(oe)?ue([],de):S.util.invalidateTags.match(oe)&&ue(Bv(oe.payload,void 0,void 0,void 0,void 0,F),de)};function re(oe){var de,pe;for(const _e in oe.queries)if(((de=oe.queries[_e])==null?void 0:de.status)==="pending")return!0;for(const _e in oe.mutations)if(((pe=oe.mutations[_e])==null?void 0:pe.status)==="pending")return!0;return!1}function ue(oe,de){const pe=de.getState(),_e=pe[t];if(Ht.push(...oe),_e.config.invalidationBehavior==="delayed"&&re(_e))return;const ge=Ht;if(Ht=[],ge.length===0)return;const qe=S.util.selectInvalidatedBy(pe,ge);e.batch(()=>{var $e;const De=Array.from(qe.values());for(const{queryCacheKey:Ye}of De){const tn=_e.queries[Ye],gn=($e=ut.currentSubscriptions[Ye])!=null?$e:{};tn&&(Kr(gn)===0?de.dispatch(yt({queryCacheKey:Ye})):tn.status!=="uninitialized"&&de.dispatch(nt(tn)))}})}return Yt},H2=({reducerPath:t,queryThunk:e,api:n,refetchQuery:i,internalState:c})=>{const S={},F=(Ht,Yt)=>{(n.internalActions.updateSubscriptionOptions.match(Ht)||n.internalActions.unsubscribeQueryResult.match(Ht))&&ut(Ht.payload,Yt),(e.pending.match(Ht)||e.rejected.match(Ht)&&Ht.meta.condition)&&ut(Ht.meta.arg,Yt),(e.fulfilled.match(Ht)||e.rejected.match(Ht)&&!Ht.meta.condition)&&nt(Ht.meta.arg,Yt),n.util.resetApiState.match(Ht)&&_t()};function nt({queryCacheKey:Ht},Yt){const re=Yt.getState()[t],ue=re.queries[Ht],oe=c.currentSubscriptions[Ht];if(!ue||ue.status==="uninitialized")return;const{lowestPollingInterval:de,skipPollingIfUnfocused:pe}=zt(oe);if(!Number.isFinite(de))return;const _e=S[Ht];_e!=null&&_e.timeout&&(clearTimeout(_e.timeout),_e.timeout=void 0);const ge=Date.now()+de;S[Ht]={nextPollTimestamp:ge,pollingInterval:de,timeout:setTimeout(()=>{(re.config.focused||!pe)&&Yt.dispatch(i(ue)),nt({queryCacheKey:Ht},Yt)},de)}}function ut({queryCacheKey:Ht},Yt){const ue=Yt.getState()[t].queries[Ht],oe=c.currentSubscriptions[Ht];if(!ue||ue.status==="uninitialized")return;const{lowestPollingInterval:de}=zt(oe);if(!Number.isFinite(de)){yt(Ht);return}const pe=S[Ht],_e=Date.now()+de;(!pe||_e<pe.nextPollTimestamp)&&nt({queryCacheKey:Ht},Yt)}function yt(Ht){const Yt=S[Ht];Yt!=null&&Yt.timeout&&clearTimeout(Yt.timeout),delete S[Ht]}function _t(){for(const Ht of Object.keys(S))yt(Ht)}function zt(Ht={}){let Yt=!1,re=Number.POSITIVE_INFINITY;for(let ue in Ht)Ht[ue].pollingInterval&&(re=Math.min(Ht[ue].pollingInterval,re),Yt=Ht[ue].skipPollingIfUnfocused||Yt);return{lowestPollingInterval:re,skipPollingIfUnfocused:Yt}}return F},Jk=({api:t,context:e,queryThunk:n,mutationThunk:i})=>{const c=rh(n,i),S=ra(n,i),F=qr(n,i),nt={};return(yt,_t)=>{var zt,Ht,Yt;if(c(yt)){const{requestId:re,arg:{endpointName:ue,originalArgs:oe}}=yt.meta,de=e.endpointDefinitions[ue],pe=de==null?void 0:de.onQueryStarted;if(pe){const _e={},ge=new Promise((Ye,tn)=>{_e.resolve=Ye,_e.reject=tn});ge.catch(()=>{}),nt[re]=_e;const qe=t.endpoints[ue].select(de.type==="query"?oe:re),De=_t.dispatch((Ye,tn,gn)=>gn),$e=Mi(xr({},_t),{getCacheEntry:()=>qe(_t.getState()),requestId:re,extra:De,updateCachedData:de.type==="query"?Ye=>_t.dispatch(t.util.updateQueryData(ue,oe,Ye)):void 0,queryFulfilled:ge});pe(oe,$e)}}else if(F(yt)){const{requestId:re,baseQueryMeta:ue}=yt.meta;(zt=nt[re])==null||zt.resolve({data:yt.payload,meta:ue}),delete nt[re]}else if(S(yt)){const{requestId:re,rejectedWithValue:ue,baseQueryMeta:oe}=yt.meta;(Yt=nt[re])==null||Yt.reject({error:(Ht=yt.payload)!=null?Ht:yt.error,isUnhandledError:!ue,meta:oe}),delete nt[re]}}},Im=({reducerPath:t,context:e,api:n,refetchQuery:i,internalState:c})=>{const{removeQueryResult:S}=n.internalActions,F=(ut,yt)=>{Dm.match(ut)&&nt(yt,"refetchOnFocus"),hh.match(ut)&&nt(yt,"refetchOnReconnect")};function nt(ut,yt){const _t=ut.getState()[t],zt=_t.queries,Ht=c.currentSubscriptions;e.batch(()=>{for(const Yt of Object.keys(Ht)){const re=zt[Yt],ue=Ht[Yt];if(!ue||!re)continue;(Object.values(ue).some(de=>de[yt]===!0)||Object.values(ue).every(de=>de[yt]===void 0)&&_t.config[yt])&&(Kr(ue)===0?ut.dispatch(S({queryCacheKey:Yt})):re.status!=="uninitialized"&&ut.dispatch(i(re)))}})}return F};function Nx(t){const{reducerPath:e,queryThunk:n,api:i,context:c}=t,{apiUid:S}=c,F={invalidateTags:es(`${e}/invalidateTags`)},nt=zt=>zt.type.startsWith(`${e}/`),ut=[Zk,Gk,Qk,H2,Kk,Jk];return{middleware:zt=>{let Ht=!1;const Yt={currentSubscriptions:{}},re=Mi(xr({},t),{internalState:Yt,refetchQuery:_t,isThisApiSliceAction:nt}),ue=ut.map(pe=>pe(re)),oe=R0(re),de=Im(re);return pe=>_e=>{if(!of(_e))return pe(_e);Ht||(Ht=!0,zt.dispatch(i.internalActions.middlewareRegistered(S)));const ge=Mi(xr({},zt),{next:pe}),qe=zt.getState(),[De,$e]=oe(_e,ge,qe);let Ye;if(De?Ye=pe(_e):Ye=$e,zt.getState()[e]&&(de(_e,ge,qe),nt(_e)||c.hasRehydrationInfo(_e)))for(const tn of ue)tn(_e,ge,qe);return Ye}},actions:F};function _t(zt){return t.api.endpoints[zt.endpointName].initiate(zt.originalArgs,{subscribe:!1,forceRefetch:!0})}}var Vv=Symbol(),Wv=({createSelector:t=Yr}={})=>({name:Vv,init(e,{baseQuery:n,tagTypes:i,reducerPath:c,serializeQueryArgs:S,keepUnusedDataFor:F,refetchOnMountOrArgChange:nt,refetchOnFocus:ut,refetchOnReconnect:yt,invalidationBehavior:_t},zt){dx();const Ht=wr=>wr;Object.assign(e,{reducerPath:c,endpoints:{},internalActions:{onOnline:hh,onOffline:Wu,onFocus:Dm,onFocusLost:ch},util:{}});const{queryThunk:Yt,mutationThunk:re,patchQueryData:ue,updateQueryData:oe,upsertQueryData:de,prefetch:pe,buildMatchThunkActions:_e}=$k({baseQuery:n,reducerPath:c,context:zt,api:e,serializeQueryArgs:S,assertTagType:Ht}),{reducer:ge,actions:qe}=zv({context:zt,queryThunk:Yt,mutationThunk:re,serializeQueryArgs:S,reducerPath:c,assertTagType:Ht,config:{refetchOnFocus:ut,refetchOnReconnect:yt,refetchOnMountOrArgChange:nt,keepUnusedDataFor:F,reducerPath:c,invalidationBehavior:_t}});Ec(e.util,{patchQueryData:ue,updateQueryData:oe,upsertQueryData:de,prefetch:pe,resetApiState:qe.resetApiState,upsertQueryEntries:qe.cacheEntriesUpserted}),Ec(e.internalActions,qe);const{middleware:De,actions:$e}=Nx({reducerPath:c,context:zt,queryThunk:Yt,mutationThunk:re,api:e,assertTagType:Ht});Ec(e.util,$e),Ec(e,{reducer:ge,middleware:De});const{buildQuerySelector:Ye,buildMutationSelector:tn,selectInvalidatedBy:gn,selectCachedArgsForQuery:Cn}=Ax({serializeQueryArgs:S,reducerPath:c,createSelector:t});Ec(e.util,{selectInvalidatedBy:gn,selectCachedArgsForQuery:Cn});const{buildInitiateQuery:kn,buildInitiateMutation:Zn,getRunningMutationThunk:fn,getRunningMutationsThunk:jn,getRunningQueriesThunk:On,getRunningQueryThunk:Vn}=qk({queryThunk:Yt,mutationThunk:re,api:e,serializeQueryArgs:S,context:zt});return Ec(e.util,{getRunningMutationThunk:fn,getRunningMutationsThunk:jn,getRunningQueryThunk:Vn,getRunningQueriesThunk:On}),{name:Vv,injectEndpoint(wr,Pr){var Ur,Hr;const _r=e;(Hr=(Ur=_r.endpoints)[wr])!=null||(Ur[wr]={}),jv(Pr)?Ec(_r.endpoints[wr],{name:wr,select:Ye(wr,Pr),initiate:kn(wr,Pr)},_e(Yt,wr)):F2(Pr)&&Ec(_r.endpoints[wr],{name:wr,select:tn(),initiate:Zn(wr)},_e(re,wr))}}}}),tT=As(Wv());function Yv(t){return t.replace(t[0],t[0].toUpperCase())}function eT(t){let e=0;for(const n in t)e++;return e}function V2(t){return t.type==="query"}function W2(t){return t.type==="mutation"}function L0(t,...e){return Object.assign(t,...e)}var jm=WeakMap?new WeakMap:void 0,Y2=({endpointName:t,queryArgs:e})=>{let n="";const i=jm==null?void 0:jm.get(e);if(typeof i=="string")n=i;else{const c=JSON.stringify(e,(S,F)=>(F=typeof F=="bigint"?{$bigint:F.toString()}:F,F=Aa(F)?Object.keys(F).sort().reduce((nt,ut)=>(nt[ut]=F[ut],nt),{}):F,F));Aa(e)&&(jm==null||jm.set(e,c)),n=c}return`${t}(${n})`},Bm=Symbol();function I0(t,e,n,i){const c=(0,W.useMemo)(()=>({queryArgs:t,serialized:typeof t=="object"?e({queryArgs:t,endpointDefinition:n,endpointName:i}):t}),[t,e,n,i]),S=(0,W.useRef)(c);return(0,W.useEffect)(()=>{S.current.serialized!==c.serialized&&(S.current=c)},[c]),S.current.serialized===c.serialized?S.current.queryArgs:t}function qv(t){const e=(0,W.useRef)(t);return(0,W.useEffect)(()=>{Ls(e.current,t)||(e.current=t)},[t]),Ls(e.current,t)?e.current:t}var q2=()=>typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",Dx=q2(),Rx=()=>typeof navigator!="undefined"&&navigator.product==="ReactNative",$2=Rx(),X2=()=>Dx||$2?W.useLayoutEffect:W.useEffect,nT=X2(),rT=t=>t.isUninitialized?Mi(xr({},t),{isUninitialized:!1,isFetching:!0,isLoading:t.data===void 0,status:$n.pending}):t;function Lx({api:t,moduleOptions:{batch:e,hooks:{useDispatch:n,useSelector:i,useStore:c},unstable__sideEffectsInRender:S,createSelector:F},serializeQueryArgs:nt,context:ut}){const yt=S?re=>re():W.useEffect;return{buildQueryHooks:Ht,buildMutationHook:Yt,usePrefetch:zt};function _t(re,ue,oe){if(ue!=null&&ue.endpointName&&re.isUninitialized){const{endpointName:De}=ue,$e=ut.endpointDefinitions[De];oe!==qu&&nt({queryArgs:ue.originalArgs,endpointDefinition:$e,endpointName:De})===nt({queryArgs:oe,endpointDefinition:$e,endpointName:De})&&(ue=void 0)}let de=re.isSuccess?re.data:ue==null?void 0:ue.data;de===void 0&&(de=re.data);const pe=de!==void 0,_e=re.isLoading,ge=(!ue||ue.isLoading||ue.isUninitialized)&&!pe&&_e,qe=re.isSuccess||pe&&(_e&&!(ue!=null&&ue.isError)||re.isUninitialized);return Mi(xr({},re),{data:de,currentData:re.data,isFetching:_e,isLoading:ge,isSuccess:qe})}function zt(re,ue){const oe=n(),de=qv(ue);return(0,W.useCallback)((pe,_e)=>oe(t.util.prefetch(re,pe,xr(xr({},de),_e))),[re,oe,de])}function Ht(re){const ue=(pe,{refetchOnReconnect:_e,refetchOnFocus:ge,refetchOnMountOrArgChange:qe,skip:De=!1,pollingInterval:$e=0,skipPollingIfUnfocused:Ye=!1}={})=>{const{initiate:tn}=t.endpoints[re],gn=n(),Cn=(0,W.useRef)(void 0);if(!Cn.current){const _r=gn(t.internalActions.internal_getRTKQSubscriptions());Cn.current=_r}const kn=I0(De?qu:pe,Y2,ut.endpointDefinitions[re],re),Zn=qv({refetchOnReconnect:_e,refetchOnFocus:ge,pollingInterval:$e,skipPollingIfUnfocused:Ye}),fn=(0,W.useRef)(!1),jn=(0,W.useRef)(void 0);let{queryCacheKey:On,requestId:Vn}=jn.current||{},wr=!1;On&&Vn&&(wr=Cn.current.isRequestSubscribed(On,Vn));const Pr=!wr&&fn.current;return yt(()=>{fn.current=wr}),yt(()=>{Pr&&(jn.current=void 0)},[Pr]),yt(()=>{var Hr;const _r=jn.current;if(kn===qu){_r==null||_r.unsubscribe(),jn.current=void 0;return}const Ur=(Hr=jn.current)==null?void 0:Hr.subscriptionOptions;if(!_r||_r.arg!==kn){_r==null||_r.unsubscribe();const Li=gn(tn(kn,{subscriptionOptions:Zn,forceRefetch:qe}));jn.current=Li}else Zn!==Ur&&_r.updateSubscriptionOptions(Zn)},[gn,tn,qe,kn,Zn,Pr]),(0,W.useEffect)(()=>()=>{var _r;(_r=jn.current)==null||_r.unsubscribe(),jn.current=void 0},[]),(0,W.useMemo)(()=>({refetch:()=>{var _r;if(!jn.current)throw new Error(Ka(38));return(_r=jn.current)==null?void 0:_r.refetch()}}),[])},oe=({refetchOnReconnect:pe,refetchOnFocus:_e,pollingInterval:ge=0,skipPollingIfUnfocused:qe=!1}={})=>{const{initiate:De}=t.endpoints[re],$e=n(),[Ye,tn]=(0,W.useState)(Bm),gn=(0,W.useRef)(void 0),Cn=qv({refetchOnReconnect:pe,refetchOnFocus:_e,pollingInterval:ge,skipPollingIfUnfocused:qe});yt(()=>{var On,Vn;const jn=(On=gn.current)==null?void 0:On.subscriptionOptions;Cn!==jn&&((Vn=gn.current)==null||Vn.updateSubscriptionOptions(Cn))},[Cn]);const kn=(0,W.useRef)(Cn);yt(()=>{kn.current=Cn},[Cn]);const Zn=(0,W.useCallback)(function(jn,On=!1){let Vn;return e(()=>{var wr;(wr=gn.current)==null||wr.unsubscribe(),gn.current=Vn=$e(De(jn,{subscriptionOptions:kn.current,forceRefetch:!On})),tn(jn)}),Vn},[$e,De]),fn=(0,W.useCallback)(()=>{var jn,On;(jn=gn.current)!=null&&jn.queryCacheKey&&$e(t.internalActions.removeQueryResult({queryCacheKey:(On=gn.current)==null?void 0:On.queryCacheKey}))},[$e]);return(0,W.useEffect)(()=>()=>{var jn;(jn=gn==null?void 0:gn.current)==null||jn.unsubscribe()},[]),(0,W.useEffect)(()=>{Ye!==Bm&&!gn.current&&Zn(Ye,!0)},[Ye,Zn]),(0,W.useMemo)(()=>[Zn,Ye,{reset:fn}],[Zn,Ye,fn])},de=(pe,{skip:_e=!1,selectFromResult:ge}={})=>{const{select:qe}=t.endpoints[re],De=I0(_e?qu:pe,nt,ut.endpointDefinitions[re],re),$e=(0,W.useRef)(void 0),Ye=(0,W.useMemo)(()=>F([qe(De),(Zn,fn)=>fn,Zn=>De],_t,{memoizeOptions:{resultEqualityCheck:Ls}}),[qe,De]),tn=(0,W.useMemo)(()=>ge?F([Ye],ge,{devModeChecks:{identityFunctionCheck:"never"}}):Ye,[Ye,ge]),gn=i(Zn=>tn(Zn,$e.current),Ls),Cn=c(),kn=Ye(Cn.getState(),$e.current);return nT(()=>{$e.current=kn},[kn]),gn};return{useQueryState:de,useQuerySubscription:ue,useLazyQuerySubscription:oe,useLazyQuery(pe){const[_e,ge,{reset:qe}]=oe(pe),De=de(ge,Mi(xr({},pe),{skip:ge===Bm})),$e=(0,W.useMemo)(()=>({lastArg:ge}),[ge]);return(0,W.useMemo)(()=>[_e,Mi(xr({},De),{reset:qe}),$e],[_e,De,qe,$e])},useQuery(pe,_e){const ge=ue(pe,_e),qe=de(pe,xr({selectFromResult:pe===qu||_e!=null&&_e.skip?void 0:rT},_e)),{data:De,status:$e,isLoading:Ye,isSuccess:tn,isError:gn,error:Cn}=qe;return(0,W.useDebugValue)({data:De,status:$e,isLoading:Ye,isSuccess:tn,isError:gn,error:Cn}),(0,W.useMemo)(()=>xr(xr({},qe),ge),[qe,ge])}}}function Yt(re){return({selectFromResult:ue,fixedCacheKey:oe}={})=>{const{select:de,initiate:pe}=t.endpoints[re],_e=n(),[ge,qe]=(0,W.useState)();(0,W.useEffect)(()=>()=>{ge!=null&&ge.arg.fixedCacheKey||ge==null||ge.reset()},[ge]);const De=(0,W.useCallback)(function(Ur){const Hr=_e(pe(Ur,{fixedCacheKey:oe}));return qe(Hr),Hr},[_e,pe,oe]),{requestId:$e}=ge||{},Ye=(0,W.useMemo)(()=>de({fixedCacheKey:oe,requestId:ge==null?void 0:ge.requestId}),[oe,ge,de]),tn=(0,W.useMemo)(()=>ue?F([Ye],ue):Ye,[ue,Ye]),gn=i(tn,Ls),Cn=oe==null?ge==null?void 0:ge.arg.originalArgs:void 0,kn=(0,W.useCallback)(()=>{e(()=>{ge&&qe(void 0),oe&&_e(t.internalActions.removeMutationResult({requestId:$e,fixedCacheKey:oe}))})},[_e,oe,ge,$e]),{endpointName:Zn,data:fn,status:jn,isLoading:On,isSuccess:Vn,isError:wr,error:Pr}=gn;(0,W.useDebugValue)({endpointName:Zn,data:fn,status:jn,isLoading:On,isSuccess:Vn,isError:wr,error:Pr});const _r=(0,W.useMemo)(()=>Mi(xr({},gn),{originalArgs:Cn,reset:kn}),[gn,Cn,kn]);return(0,W.useMemo)(()=>[De,_r],[De,_r])}}}var iT=Symbol(),oT=(S={})=>{var F=S,{batch:t=Jg,hooks:e={useDispatch:Si,useSelector:sr,useStore:El},createSelector:n=Yr,unstable__sideEffectsInRender:i=!1}=F,c=io(F,["batch","hooks","createSelector","unstable__sideEffectsInRender"]);return{name:iT,init(nt,{serializeQueryArgs:ut},yt){const _t=nt,{buildQueryHooks:zt,buildMutationHook:Ht,usePrefetch:Yt}=Lx({api:nt,moduleOptions:{batch:t,hooks:e,unstable__sideEffectsInRender:i,createSelector:n},serializeQueryArgs:ut,context:yt});return L0(_t,{usePrefetch:Yt}),L0(yt,{batch:t}),{injectEndpoint(re,ue){if(V2(ue)){const{useQuery:oe,useLazyQuery:de,useLazyQuerySubscription:pe,useQueryState:_e,useQuerySubscription:ge}=zt(re);L0(_t.endpoints[re],{useQuery:oe,useLazyQuery:de,useLazyQuerySubscription:pe,useQueryState:_e,useQuerySubscription:ge}),nt[`use${Yv(re)}Query`]=oe,nt[`useLazy${Yv(re)}Query`]=de}else if(W2(ue)){const oe=Ht(re);L0(_t.endpoints[re],{useMutation:oe}),nt[`use${Yv(re)}Mutation`]=oe}}}}}};function K5(t){const e=t.context||ReactReduxContext;if(useContext(e))throw new Error(_formatProdErrorMessage4(35));const[i]=React.useState(()=>configureStore({reducer:{[t.api.reducerPath]:t.api.reducer},middleware:c=>c().concat(t.api.middleware)}));return useEffect4(()=>t.setupListeners===!1?void 0:setupListeners(i.dispatch,t.setupListeners),[t.setupListeners,i.dispatch]),React.createElement(Provider,{store:i,context:e},t.children)}var G2=As(Wv(),oT()),aT=Fn(7059),Fr=Fn.n(aT),$v=Fn(2976),Xv=Fn.n($v),sT=Fn(4112),j0=Fn.n(sT);Fr().extend(Xv()),Fr().extend(j0());const Na=t=>!t||typeof t=="string"&&t.length===10?t:Fr()(new Date(t)).format("YYYY-MM-DD"),Kl=t=>Fr()(new Date(t)).utc().format("M/D/YYYY"),Gv=t=>Fr()(new Date(t)).utc().add(5.5,"hours").format(),dh=t=>Fr()(new Date(t)).utc().add(5.5,"hours").format("YYYY-MM-DD"),Z5=t=>dayjs(t).toISOString(),Q5=t=>dayjs(new Date(t)).utc().add(5.5,"hours").format("ll"),B0=(t,e)=>Fr()(new Date(t)).isSame(new Date(e),"day"),J5=(t,e)=>B0(t,e)?0:new Date(t)<new Date(e)?-1:1,Fm="2011-12-01",Tf="M/D/YYYY",Zl=Na(new Date),gs=Na(Fm),Ix="MODAL_TYPE_DATA_EXPORT",jx="MODAL_TYPE_EXPORT_CONFIRMATION",F0="MODAL_TYPE_MORE_ABOUT",ep="Map",np="List",Rl="Trends",Cc="None",z0="Per 1000 pop.",K2="complaint_what_happened",zm=["company","company_public_response","company_response","consumer_consent_provided","consumer_disputed","issue","product","state","submitted_via","tags","timely","zip_code"],Kv=["company_received_max","company_received_min","date_received_max","date_received_min"],Bx=["Day","Week","Month","Quarter","Year"],Zv={"3m":"3 months","6m":"6 months","1y":"1 year","3y":"3 years",All:"Full date range"},tO=null,Af=["has_narrative"],Um=["issue","product"],Qv=["Overview","Company","Product"],rp={};rp[10]="10 results",rp[25]="25 results",rp[50]="50 results",rp[100]="100 results";const Jv={created_date_desc:"Newest to oldest",created_date_asc:"Oldest to newest",relevance_desc:"Relevance",relevance_asc:"Relevance (asc)"},Ws="\u2022",Z2=40,ip=14,eO=27,nO=13,lT=9,rO=38,U0={AA:"Armed Forces Americas",AE:"Armed Forces Europe",AL:"Alabama",AK:"Alaska",AS:"American Samoa",AP:"Armed Forces Pacific",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District Of Columbia",FM:"Federated States Of Micronesia",FL:"Florida",GA:"Georgia",GU:"Guam",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MH:"Marshall Islands",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",MP:"Northern Mariana Islands",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PW:"Palau",PA:"Pennsylvania",PR:"Puerto Rico",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VI:"Virgin Islands",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming"},op=["AK","AL","AR","AZ","CA","CO","CT","DC","DE","FL","GA","HI","IA","ID","IL","IN","KS","KY","LA","MA","MD","ME","MI","MN","MO","MS","MT","NC","ND","NE","NH","NJ","NM","NV","NY","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VA","VT","WA","WI","WV","WY"],t1={AL:{abbr:"AL",name:"Alabama",population:"4850771",id:"01"},AK:{abbr:"AK",name:"Alaska",population:"738565",id:"02"},AZ:{abbr:"AZ",name:"Arizona",population:"6809946",id:"04"},AR:{abbr:"AR",name:"Arkansas",population:"2977944",id:"05"},CA:{abbr:"CA",name:"California",population:"38982847",id:"06"},CO:{abbr:"CO",name:"Colorado",population:"5436519",id:"08"},CT:{abbr:"CT",name:"Connecticut",population:"3594478",id:"09"},DE:{abbr:"DE",name:"Delaware",population:"943732",id:"10"},DC:{abbr:"DC",name:"District of Columbia",population:"672391",id:"11"},FL:{abbr:"FL",name:"Florida",population:"20278447",id:"12"},GA:{abbr:"GA",name:"Georgia",population:"10201635",id:"13"},HI:{abbr:"HI",name:"Hawaii",population:"1421658",id:"15"},ID:{abbr:"ID",name:"Idaho",population:"1657375",id:"16"},IL:{abbr:"IL",name:"Illinois",population:"12854526",id:"17"},IN:{abbr:"IN",name:"Indiana",population:"6614418",id:"18"},IA:{abbr:"IA",name:"Iowa",population:"3118102",id:"19"},KS:{abbr:"KS",name:"Kansas",population:"2903820",id:"20"},KY:{abbr:"KY",name:"Kentucky",population:"4424376",id:"21"},LA:{abbr:"LA",name:"Louisiana",population:"4663461",id:"22"},ME:{abbr:"ME",name:"Maine",population:"1330158",id:"23"},MD:{abbr:"MD",name:"Maryland",population:"5996079",id:"24"},MA:{abbr:"MA",name:"Massachusetts",population:"6789319",id:"25"},MI:{abbr:"MI",name:"Michigan",population:"9925568",id:"26"},MN:{abbr:"MN",name:"Minnesota",population:"5490726",id:"27"},MS:{abbr:"MS",name:"Mississippi",population:"2986220",id:"28"},MO:{abbr:"MO",name:"Missouri",population:"6075300",id:"29"},MT:{abbr:"MT",name:"Montana",population:"1029862",id:"30"},NE:{abbr:"NE",name:"Nebraska",population:"1893921",id:"31"},NV:{abbr:"NV",name:"Nevada",population:"2887725",id:"32"},NH:{abbr:"NH",name:"New Hampshire",population:"1331848",id:"33"},NJ:{abbr:"NJ",name:"New Jersey",population:"8960161",id:"34"},NM:{abbr:"NM",name:"New Mexico",population:"2084828",id:"35"},NY:{abbr:"NY",name:"New York",population:"19798228",id:"36"},NC:{abbr:"NC",name:"North Carolina",population:"10052564",id:"37"},ND:{abbr:"ND",name:"North Dakota",population:"745475",id:"38"},OH:{abbr:"OH",name:"Ohio",population:"11609756",id:"39"},OK:{abbr:"OK",name:"Oklahoma",population:"3896251",id:"40"},OR:{abbr:"OR",name:"Oregon",population:"4025127",id:"41"},PA:{abbr:"PA",name:"Pennsylvania",population:"12790505",id:"42"},PR:{abbr:"PR",name:"Puerto Rico",population:"3468963",id:"72"},RI:{abbr:"RI",name:"Rhode Island",population:"1056138",id:"44"},SC:{abbr:"SC",name:"South Carolina",population:"4893444",id:"45"},SD:{abbr:"SD",name:"South Dakota",population:"855444",id:"46"},TN:{abbr:"TN",name:"Tennessee",population:"6597381",id:"47"},TX:{abbr:"TX",name:"Texas",population:"27419612",id:"48"},UT:{abbr:"UT",name:"Utah",population:"2993941",id:"49"},VT:{abbr:"VT",name:"Vermont",population:"624636",id:"50"},VA:{abbr:"VA",name:"Virginia",population:"8365952",id:"51"},WA:{abbr:"WA",name:"Washington",population:"7169967",id:"53"},WV:{abbr:"WV",name:"West Virginia",population:"1836843",id:"54"},WI:{abbr:"WI",name:"Wisconsin",population:"5763217",id:"55"},WY:{abbr:"WY",name:"Wyoming",population:"583200",id:"56"}},ph="/data-research/consumer-complaints/search/api/v1/",H0=window.location.origin.indexOf("localhost")>-1?"https://www.consumerfinance.gov/complaint/data-use/":"/complaint/data-use/";var Pf=Fn(8210);const Hm={tagManagerIsLoaded:!1,EVENT_CATEGORY:"Consumer Complaint Search",getDataLayerOptions:function(t,e,n,i,c){return{event:n||Hm.EVENT_CATEGORY,action:t,label:e||"",eventCallback:i,eventTimeout:c||500}},init:function(){if(Object.prototype.hasOwnProperty.call(window,"google_tag_manager"))Hm.tagManagerIsLoaded=!0;else{let t;Object.defineProperty(window,"google_tag_manager",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e,Hm.tagManagerIsLoaded=!0}})}},sendEvent:function(t){const e=t.eventCallback;Hm.tagManagerIsLoaded?window.dataLayer.push(t):e&&typeof e=="function"&&e()}};Hm.init();const V0=Hm,e1="%[a-f0-9]{2}",n1=new RegExp("("+e1+")|([^%]+?)","gi"),Vm=new RegExp("("+e1+")+","gi");function Wm(t,e){try{return[decodeURIComponent(t.join(""))]}catch(c){}if(t.length===1)return t;e=e||1;const n=t.slice(0,e),i=t.slice(e);return Array.prototype.concat.call([],Wm(n),Wm(i))}function r1(t){try{return decodeURIComponent(t)}catch(e){let n=t.match(n1)||[];for(let i=1;i<n.length;i++)t=Wm(n,i).join(""),n=t.match(n1)||[];return t}}function Ym(t){const e={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"};let n=Vm.exec(t);for(;n;){try{e[n[0]]=decodeURIComponent(n[0])}catch(c){const S=r1(n[0]);S!==n[0]&&(e[n[0]]=S)}n=Vm.exec(t)}e["%C2"]="\uFFFD";const i=Object.keys(e);for(const c of i)t=t.replace(new RegExp(c,"g"),e[c]);return t}function Fx(t){if(typeof t!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return decodeURIComponent(t)}catch(e){return Ym(t)}}function W0(t,e){const n={};if(Array.isArray(e))for(const i of e){const c=Object.getOwnPropertyDescriptor(t,i);c!=null&&c.enumerable&&Object.defineProperty(n,i,c)}else for(const i of Reflect.ownKeys(t)){const c=Object.getOwnPropertyDescriptor(t,i);if(c.enumerable){const S=t[i];e(i,S,t)&&Object.defineProperty(n,i,c)}}return n}function i1(t,e){if(Array.isArray(e)){const n=new Set(e);return W0(t,i=>!n.has(i))}return W0(t,(n,i,c)=>!e(n,i,c))}function zx(t,e){if(!(typeof t=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t===""||e==="")return[];const n=t.indexOf(e);return n===-1?[]:[t.slice(0,n),t.slice(n+e.length)]}const Q2=t=>t==null,Mc=t=>encodeURIComponent(t).replaceAll(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),Ql=Symbol("encodeFragmentIdentifier");function $u(t){switch(t.arrayFormat){case"index":return e=>(n,i)=>{const c=n.length;return i===void 0||t.skipNull&&i===null||t.skipEmptyString&&i===""?n:i===null?[...n,[za(e,t),"[",c,"]"].join("")]:[...n,[za(e,t),"[",za(c,t),"]=",za(i,t)].join("")]};case"bracket":return e=>(n,i)=>i===void 0||t.skipNull&&i===null||t.skipEmptyString&&i===""?n:i===null?[...n,[za(e,t),"[]"].join("")]:[...n,[za(e,t),"[]=",za(i,t)].join("")];case"colon-list-separator":return e=>(n,i)=>i===void 0||t.skipNull&&i===null||t.skipEmptyString&&i===""?n:i===null?[...n,[za(e,t),":list="].join("")]:[...n,[za(e,t),":list=",za(i,t)].join("")];case"comma":case"separator":case"bracket-separator":{const e=t.arrayFormat==="bracket-separator"?"[]=":"=";return n=>(i,c)=>c===void 0||t.skipNull&&c===null||t.skipEmptyString&&c===""?i:(c=c===null?"":c,i.length===0?[[za(n,t),e,za(c,t)].join("")]:[[i,za(c,t)].join(t.arrayFormatSeparator)])}default:return e=>(n,i)=>i===void 0||t.skipNull&&i===null||t.skipEmptyString&&i===""?n:i===null?[...n,za(e,t)]:[...n,[za(e,t),"=",za(i,t)].join("")]}}function ap(t){let e;switch(t.arrayFormat){case"index":return(n,i,c)=>{if(e=/\[(\d*)]$/.exec(n),n=n.replace(/\[\d*]$/,""),!e){c[n]=i;return}c[n]===void 0&&(c[n]={}),c[n][e[1]]=i};case"bracket":return(n,i,c)=>{if(e=/(\[])$/.exec(n),n=n.replace(/\[]$/,""),!e){c[n]=i;return}if(c[n]===void 0){c[n]=[i];return}c[n]=[...c[n],i]};case"colon-list-separator":return(n,i,c)=>{if(e=/(:list)$/.exec(n),n=n.replace(/:list$/,""),!e){c[n]=i;return}if(c[n]===void 0){c[n]=[i];return}c[n]=[...c[n],i]};case"comma":case"separator":return(n,i,c)=>{const S=typeof i=="string"&&i.includes(t.arrayFormatSeparator),F=typeof i=="string"&&!S&&mh(i,t).includes(t.arrayFormatSeparator);i=F?mh(i,t):i;const nt=S||F?i.split(t.arrayFormatSeparator).map(ut=>mh(ut,t)):i===null?i:mh(i,t);c[n]=nt};case"bracket-separator":return(n,i,c)=>{const S=/(\[])$/.test(n);if(n=n.replace(/\[]$/,""),!S){c[n]=i&&mh(i,t);return}const F=i===null?[]:mh(i,t).split(t.arrayFormatSeparator);if(c[n]===void 0){c[n]=F;return}c[n]=[...c[n],...F]};default:return(n,i,c)=>{if(c[n]===void 0){c[n]=i;return}c[n]=[...[c[n]].flat(),i]}}}function Ux(t){if(typeof t!="string"||t.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function za(t,e){return e.encode?e.strict?Mc(t):encodeURIComponent(t):t}function mh(t,e){return e.decode?Fx(t):t}function Hx(t){return Array.isArray(t)?t.sort():typeof t=="object"?Hx(Object.keys(t)).sort((e,n)=>Number(e)-Number(n)).map(e=>t[e]):t}function J2(t){const e=t.indexOf("#");return e!==-1&&(t=t.slice(0,e)),t}function uT(t){let e="";const n=t.indexOf("#");return n!==-1&&(e=t.slice(n)),e}function tS(t,e,n){return n==="string"&&typeof t=="string"?t:typeof n=="function"&&typeof t=="string"?n(t):e.parseBooleans&&t!==null&&(t.toLowerCase()==="true"||t.toLowerCase()==="false")?t.toLowerCase()==="true":n==="number"&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""||e.parseNumbers&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""?Number(t):t}function o1(t){t=J2(t);const e=t.indexOf("?");return e===-1?"":t.slice(e+1)}function a1(t,e){e=xr({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null)},e),Ux(e.arrayFormatSeparator);const n=ap(e),i=Object.create(null);if(typeof t!="string"||(t=t.trim().replace(/^[?#&]/,""),!t))return i;for(const c of t.split("&")){if(c==="")continue;const S=e.decode?c.replaceAll("+"," "):c;let[F,nt]=zx(S,"=");F===void 0&&(F=S),nt=nt===void 0?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?nt:mh(nt,e),n(mh(F,e),nt,i)}for(const[c,S]of Object.entries(i))if(typeof S=="object"&&S!==null&&e.types[c]!=="string")for(const[F,nt]of Object.entries(S)){const ut=e.types[c]?e.types[c].replace("[]",""):void 0;S[F]=tS(nt,e,ut)}else typeof S=="object"&&S!==null&&e.types[c]==="string"?i[c]=Object.values(S).join(e.arrayFormatSeparator):i[c]=tS(S,e,e.types[c]);return e.sort===!1?i:(e.sort===!0?Object.keys(i).sort():Object.keys(i).sort(e.sort)).reduce((c,S)=>{const F=i[S];return c[S]=F&&typeof F=="object"&&!Array.isArray(F)?Hx(F):F,c},Object.create(null))}function Vx(t,e){if(!t)return"";e=xr({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e),Ux(e.arrayFormatSeparator);const n=F=>e.skipNull&&Q2(t[F])||e.skipEmptyString&&t[F]==="",i=$u(e),c={};for(const[F,nt]of Object.entries(t))n(F)||(c[F]=nt);const S=Object.keys(c);return e.sort!==!1&&S.sort(e.sort),S.map(F=>{const nt=t[F];return nt===void 0?"":nt===null?za(F,e):Array.isArray(nt)?nt.length===0&&e.arrayFormat==="bracket-separator"?za(F,e)+"[]":nt.reduce(i(F),[]).join("&"):za(F,e)+"="+za(nt,e)}).filter(F=>F.length>0).join("&")}function s1(t,e){var c,S;e=xr({decode:!0},e);let[n,i]=zx(t,"#");return n===void 0&&(n=t),xr({url:(S=(c=n==null?void 0:n.split("?"))==null?void 0:c[0])!=null?S:"",query:a1(o1(t),e)},e&&e.parseFragmentIdentifier&&i?{fragmentIdentifier:mh(i,e)}:{})}function l1(t,e){e=xr({encode:!0,strict:!0,[Ql]:!0},e);const n=J2(t.url).split("?")[0]||"",i=o1(t.url),c=xr(xr({},a1(i,{sort:!1})),t.query);let S=Vx(c,e);S&&(S=`?${S}`);let F=uT(t.url);if(typeof t.fragmentIdentifier=="string"){const nt=new URL(n);nt.hash=t.fragmentIdentifier,F=e[Ql]?nt.hash:`#${t.fragmentIdentifier}`}return`${n}${S}${F}`}function Wx(t,e,n){n=xr({parseFragmentIdentifier:!0,[Ql]:!1},n);const{url:i,query:c,fragmentIdentifier:S}=s1(t,n);return l1({url:i,query:W0(c,e),fragmentIdentifier:S},n)}function eS(t,e,n){const i=Array.isArray(e)?c=>!e.includes(c):(c,S)=>!e(c,S);return Wx(t,i,n)}const Ll=br;function qm(t){return Array.from(t||"").join(" ")}const u1=(t,e)=>{const n=Fr()(lp()),i=Fr()(e).startOf("day"),c=Fr()(t).startOf("day");if(i.diff(n,"days")!==0)return"";if(Fr()(t).isSame(Fm,"day"))return"All";const S=i.diff(c,"years",!0);if(S===3||S===1)return S+"y";const F=i.diff(c,"months",!0);return F===6||F===3?F+"m":""},Yx=(t,e,n)=>{if(n){if(Math.min(t,e)===t)return e;if(Math.max(t,n)===t)return n}else return Math.max(t,e)===e?e:t;return t},nS=(t,e,n)=>{let i=new Date(t);const c=new Date(e),S=new Date(n);return i<c?i=c:i>S&&(i=S),i},is=(t,e,n)=>typeof t!="object"?n:e in t&&t[e]?t[e]:n;function cT(t){const e=String(t);let n=0,i,c;if(e.length===0)return n;for(i=0;i<e.length;i++)c=e.charCodeAt(i),n=(n<<5)-n+c,n|=0;return n}function rS(t){const e=[];let n;const i=zm.concat(Af);for(let S=0;S<i.length;S++)n=i[S],(Array.isArray(t[n])&&t[n].length||t[n]===!0)&&e.push(n);const c=["company_received_max","company_received_min"];for(let S=0;S<c.length;S++)n=c[S],t[n]&&e.push(n);return e.length?e.length===1&&e[0]==="state":!0}const iS=t=>t.toLowerCase(),Y0=t=>t.replace(/\s+|\W/g,"-").toLowerCase(),sp=(t,e)=>t+Ws+e,c1=(t,e)=>{const n=(structuredClone(t)||[]).slice();return n.sort((i,c)=>{const S=e.indexOf(i.key)!==-1,F=e.indexOf(c.key)!==-1;return S&&!F?-1:!S&&F?1:c.doc_count-i.doc_count}),n};function h1(t){const e=Fr()(t);return t?e.format("M/D/YYYY"):""}function f1(t){return typeof t=="string"?t.slice(0,10):typeof t=="object"&&t!==null?Fr()(t).toISOString().slice(0,10):""}function lp(){if(!Object.prototype.hasOwnProperty.call(window,"MAX_DATE"))if(Object.prototype.hasOwnProperty.call(window,"complaint_public_metadata")){const{metadata_timestamp:t}=window.complaint_public_metadata;window.MAX_DATE=new Date(Fr()(t).startOf("day").toString())}else console.error("complaint_public_metadata is missing"),window.MAX_DATE=new Date(Fr()().startOf("day").toString());return new Date(window.MAX_DATE.valueOf())}function q0(t,e,n){let i;return function(){const c=this,S=arguments;clearTimeout(i),i=setTimeout(function(){i=null,n||t.apply(c,S)},e),n&&!i&&t.apply(c,S)}}function qx(t){if(!t)return t;const e=document.createElement("a");return e.href=t,e.href}function hT(t){return{name:t.name,message:t.message}}function iO(t){const e=parseFloat(parseFloat(t*100).toFixed(2));return isNaN(e)?0:e}const $x=t=>{for(const e in t)if(e!=="trend_period"&&t[e].buckets)return e;return""},oS=(t,e,n)=>{n.forEach(i=>{typeof t[i]!="undefined"&&(typeof t[i]=="string"?e[i]=[t[i]]:e[i]=t[i])}),t.has_narrative?e.has_narrative=!!t.has_narrative:delete e.has_narrative},aS=(t,e)=>{const n=new Set;return n.add(t),e.forEach(i=>{n.add(sp(t,i.key))}),n},Ps=(t,e)=>{V0.sendEvent(V0.getDataLayerOptions(t,e))},$m=(t,e,n="selected")=>t===e?" "+n:"";function fT(t){const e=Object.keys(t).reduce((n,i)=>(t[i]!==null&&t[i]!==void 0&&t[i]!==""&&!Number.isNaN(t[i])&&(n[i]=t[i]),n),{});for(const n in e)Array.isArray(e[n])&&e[n].length===0&&delete e[n];return e}function sS(t,e){return t+"?"+Ll.stringify(e)}const kc=(t,e,n)=>n?!1:t==="Company"?!e||e.length===0:!1,Xx=t=>{if(!t)return"";switch(t){case"Overview":return"";case"Company":return"product";default:return"sub_"+t.toLowerCase()}},Gx=t=>t.filter(n=>n.name==="Other").reduce((n,i)=>n+i.value,0)>0?t:t.filter(n=>n.name!=="Other"),Kx=(t,e)=>{const n=Fr()(t);return Fr()(e).diff(n,"days")>366},lS=(t,e)=>Bx.map(n=>({name:n,disabled:Kx(t,e)&&n==="Day"})),d1=()=>{const t=document.getElementById("search-summary");t&&t.scrollIntoView()},Ys=(t,e)=>{const n={chartType:{defaultVal:"line",values:["line","area"]},dataNormalization:{defaultVal:Cc,values:[Cc,z0]},dateInterval:{defaultVal:"Month",values:Bx},dateRange:{defaultVal:"3y",values:Object.keys(Zv)},lens:{defaultVal:"Product",values:Qv},searchField:{defaultVal:"all",values:["all","company","complaint_what_happened"]},size:{defaultVal:25,values:Object.keys(rp)},sort:{defaultVal:"created_date_desc",values:Object.keys(Jv)},tab:{defaultVal:Rl,values:[Rl,np,ep]}};if(n[e]){const i=n[e];return i.values.includes(t)?t:i.defaultVal}return t},uS=t=>{t.chartType=Ys(t.chartType,"chartType"),t.chartType=t.lens==="Overview"?"line":t.chartType;const e={Overview:[""],Company:["product"],Product:["sub_product","issue"]};e[t.lens]&&!e[t.lens].includes(t.subLens)&&(t.subLens=Xx(t.lens))};var dT=Fn(1398),cS=Fn.n(dT),$0=Fn(4843),Zx=Fn.n($0),pT=Object.defineProperty,Qx=Object.defineProperties,mT=Object.getOwnPropertyDescriptors,Xm=Object.getOwnPropertySymbols,gT=Object.prototype.hasOwnProperty,hS=Object.prototype.propertyIsEnumerable,X0=(t,e,n)=>e in t?pT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fS=(t,e)=>{for(var n in e||(e={}))gT.call(e,n)&&X0(t,n,e[n]);if(Xm)for(var n of Xm(e))hS.call(e,n)&&X0(t,n,e[n]);return t},yT=(t,e)=>Qx(t,mT(e));Fr().extend(cS()),Fr().extend(j0()),Fr().extend(Zx()),Fr().tz.setDefault("America/New_York");const G0=(t,e)=>{if(!t||t.length===0)return null;const i=[...new Set(t.map(S=>Fr()(S.date).toISOString()))].sort().pop(),c=t.filter(S=>B0(S.date,i));return{key:i,date:i,dateRange:e.dateRange,interval:e.interval,values:c}},vT=(t,e)=>{if(!t||!t.dataByTopic||t.dataByTopic.length===0)return null;let n=[];t.dataByTopic.forEach(nt=>{n=n.concat(nt.dates)});const c=[...new Set(n.map(nt=>nt.date))].sort().pop(),S=t.dataByTopic.map(nt=>{const ut=nt.dates.find(_t=>B0(_t.date,c)),yt=ut?ut.value:0;return{name:nt.topic,date:c,value:yt}});return{key:c,date:c,dateRange:e.dateRange,interval:e.interval,values:S}},Jx=(t,e)=>{const n=Gv(t),i=nS(n,e.from,e.to);return Kl(i)},dS=(t,e,n,i)=>{e=e.toLowerCase();const c=Jx(t,n);let S=Fr()(t).utc();switch(e){case"day":S=S.format();break;case"week":case"year":S=S.add(1,e).subtract(1,"day").format();break;case"quarter":case"month":default:S=S.endOf(e).subtract(1,"day").format();break}return S=Jx(S,n),e==="day"?`Date: ${S}`:i?`Date range: ${c} - ${S}`:`${c} - ${S}`},K0=(t,e,n)=>t.map(i=>{if(!e)return"#20aa3f";const c=i.name.trim(),S=i.parent?i.parent.trim():"";return e[S]?e[S]:e[c]?e[c]:n==="Overview"?"#20aa3f":"#a2a3a4"}),Z0=(t,e)=>{let n=t.key;for(;e[n];)n+=" ";return e[n]=!0,t.splitterText?t:{hasChildren:!!t.hasChildren,isNotFilter:!1,isParent:!!t.isParent,name:n,value:Number(t.doc_count),parent:t.parent||!1,width:t.parent?.4:.5}},Of=(t,e,n,i)=>{const c=structuredClone(t);if(c){let S=c;return S=S.filter(nt=>nt.isParent||i.includes(nt.parent)),{colorScheme:K0(S,e,n),data:S}}return{colorScheme:[],data:[]}},Q0=(t,e,n)=>(n.forEach(i=>{e.find(c=>c.key_as_string===i.key_as_string)||e.push({name:t,doc_count:0,key_as_string:i.key_as_string})}),e.sort((i,c)=>i.key_as_string>c.key_as_string?1:-1).map(i=>({name:t,date:i.key_as_string,value:i.doc_count}))),p1=(t,e)=>{if(!t)return t;const n=structuredClone(t),i=t.title.split(":"),c=Object.values(Pf.DataLens);return n.values.forEach(S=>{Object.hasOwn(S,"colorIndex")||(S.colorIndex=c.indexOf(e[S.name])||0),Object.hasOwn(S,"value")||(S.value=is(S,"value",0))}),yT(fS({},n),{heading:i[0]+":",date:i[1]?i[1].trim():""})},pS=(t,e,n)=>{const i=Fr()(e).utc().startOf(n.toLowerCase());return!Fr()(t).utc().isSame(i,"day")},m1=(t,e,n)=>{const i=Fr()(e).utc().endOf(n.toLowerCase()),c=Fr()(t).utc(),S=c.isSame(i,"day");return i.isAfter(c)&&!S},mS=t=>!t||!t.dataByTopic||!t.dataByTopic.length||!t.dataByTopic[0].dates.length||t.dataByTopic[0].dates.length<2,tw=t=>!t||!t.length?!0:[...new Set(t.map(n=>n.date))].length<2,bT=(t,e,n)=>{const i=structuredClone(t),{from:c,to:S}=e;if(!i.dataByTopic)return t;const F=i.dataByTopic[0].dates,nt=i.dataByTopic[0].dates[0].date,ut=i.dataByTopic[0].dates[F.length-1].date;return pS(c,nt,n)&&i.dataByTopic.forEach(yt=>{yt.dates=yt.dates.filter(_t=>_t.date!==nt)}),m1(S,ut,n)&&i.dataByTopic.forEach(yt=>{yt.dates=yt.dates.filter(_t=>_t.date!==ut)}),i},xT=(t,e,n)=>{const{from:i,to:c}=e;let S=structuredClone(t);const F=[...new Set(S.map(yt=>yt.date))];F.sort();const nt=F[0],ut=F[F.length-1];return pS(i,nt,n)&&(S=S.filter(yt=>yt.date!==nt)),m1(c,ut,n)&&(S=S.filter(yt=>yt.date!==ut)),S};var ew=Object.defineProperty,wT=Object.defineProperties,nw=Object.getOwnPropertyDescriptors,gS=Object.getOwnPropertySymbols,rw=Object.prototype.hasOwnProperty,_T=Object.prototype.propertyIsEnumerable,g1=(t,e,n)=>e in t?ew(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Gm=(t,e)=>{for(var n in e||(e={}))rw.call(e,n)&&g1(t,n,e[n]);if(gS)for(var n of gS(e))_T.call(e,n)&&g1(t,n,e[n]);return t},J0=(t,e)=>wT(t,nw(e));const yS=Ts({name:"trends",initialState:{chartType:"line",focus:"",lens:"Product",subLens:"sub_product",tooltip:!1,trendDepth:5},reducers:{chartTypeUpdated:{reducer:(t,e)=>{t.chartType=t.lens==="Overview"?"line":e.payload,t.tooltip=!1}},dataLensChanged:{reducer:(t,e)=>{t.subLens="";const n=Ys(e.payload,"lens");switch(n){case"Company":t.subLens="product";break;case"Overview":t.subLens="product",t.chartType="line";break;case"Product":t.subLens="sub_product";break;default:break}t.focus="",t.lens=n,t.tooltip=!1,t.trendDepth=n==="Company"?10:5}},dataSubLensChanged:{reducer:(t,e)=>J0(Gm({},t),{subLens:e.payload.toLowerCase()})},depthChanged:{reducer:(t,e)=>{t.trendDepth=e.payload}},depthReset:{reducer:t=>{t.trendDepth=5}},focusChanged:{reducer:(t,e)=>{const{focus:n,lens:i}=e.payload;t.focus=n,t.lens=Ys(i,"lens"),t.tooltip=!1,t.trendDepth=25,uS(t)},prepare:(t,e,n)=>({payload:{focus:t,lens:e,filterValues:n}})},focusRemoved:{reducer:t=>J0(Gm({},t),{focus:"",tooltip:!1,trendDepth:5})},tooltipUpdated:{reducer:(t,e)=>{const n=e.payload.date?e.payload:!1;if(n&&(n.title=dS(n.date,n.interval,n.dateRange,!0),n.values)){let i=0;i=n.values.reduce((c,S)=>c+S.value,i),n.total=i}return J0(Gm({},t),{tooltip:n})}}},extraReducers:t=>{t.addCase("filters/filtersCleared",e=>{e.focus=""}).addCase("filters/multipleFiltersRemoved",(e,n)=>{e.focus=n.payload.values.includes(e.focus)?"":e.focus}).addCase("routes/routeChanged",(e,n)=>{const i=n.payload.params,c=["chartType","focus","lens","subLens"];for(const S of c)i[S]&&(e[S]=Ys(i[S],S));uS(e)}).addCase("view/tabChanged",(e,n)=>J0(Gm({},e),{focus:n.payload===Rl?e.focus:""}))}});function ST(t,e){const n=Gm({},e),{focus:i,lens:c,subLens:S}=t,F={dateRangeArea:[],dateRangeLine:[]},nt="dateRangeArea";if(n[nt].doc_count===0)return J0(Gm({},t),{results:{},tooltip:!1,total:0});const yt=n[nt].doc_count;c!=="Overview"&&(F[nt]=CT(t,n)),F.dateRangeLine=MT(c,n,i,S);const _t={Overview:["product"],Company:["company"],Product:["product"],"Product-focus":["sub-product","issue"],"Company-focus":["product"]};let zt=c;i&&(zt+="-focus");const Ht=_t[zt];return vS(Ht,t,n,F),t.colorMap=kT(c,F.dateRangeArea),t.results=F,t.total=yt,t.subLens=c==="Company"?"product":t.subLens,t}function vS(t,e,n,i){t.forEach(c=>{n[c]&&(i[c]=ET(e,n[c][c].buckets))})}function ET(t,e){const n=[],i=t.lens==="Company"?"product":"sub-product and issue";for(let S=0;S<e.length;S++){bS(e[S]);const F=e[S],nt=$x(F);F.isParent=!0;const ut=F[nt];F.hasChildren=!!(ut&&ut.buckets.length);const yt=Object.assign({},F);if(delete yt[nt],n.push(yt),ut&&ut.buckets&&ut.buckets.length){const _t=ut.buckets,zt=`Visualize ${i} trends for ${F.key} >`;_t.push({hasChildren:!1,isParent:!1,key:zt,name:zt,splitterText:zt,value:"",parent:F.key,width:.5}),n.push(_t)}}const c=[];return[].concat(...n).map(S=>Z0(S,c))}function CT(t,e){const{focus:n,lens:i,subLens:c}=t,S=n?c.replace("_","-").toLowerCase():i.toLowerCase(),F="Other",nt=e.dateRangeArea.dateRangeArea.buckets.map(_t=>({name:F,value:_t.doc_count,date:_t.key_as_string}));e.dateRangeBuckets.dateRangeBuckets.buckets.forEach(_t=>{nt.find(zt=>_t.key_as_string===zt.date)||nt.push({name:F,value:0,date:_t.key_as_string})});const ut=Object.assign({},nt),yt=e[S][S].buckets.slice(0,5);for(let _t=0;_t<yt.length;_t++){const zt=yt[_t],Ht=zt.trend_period.buckets.reverse();for(let re=0;re<Ht.length;re++){const ue=Ht[re];nt.push({name:zt.key,value:ue.doc_count,date:ue.key_as_string});const oe=nt.findIndex(de=>de.name===F&&B0(de.date,ue.key_as_string));oe>-1&&(nt[oe].value-=ue.doc_count)}const Yt=Object.values(ut);if(zt.trend_period.buckets.length!==Yt.length)for(let re=0;re<Yt.length;re++){const ue=Yt[re];nt.filter(de=>de.name===zt.key).find(de=>B0(de.date,ue.date))||nt.push({name:zt.key,value:0,date:ue.date})}}return Gx(nt)}function MT(t,e,n,i){const c=e.dateRangeArea.dateRangeArea.buckets,S=e.dateRangeBuckets.dateRangeBuckets.buckets,F=[];if(t==="Overview"&&(F.push({topic:"Complaints",topicName:"Complaints",dashed:!1,show:!0,dates:c.map(nt=>({date:nt.key_as_string,value:nt.doc_count}))}),S.forEach(nt=>{F[0].dates.find(ut=>nt.key_as_string===ut.date)||F[0].dates.push({date:nt.key_as_string,value:0})}),F[0].dates.sort((nt,ut)=>new Date(nt.date)-new Date(ut.date))),t!=="Overview"){const nt=n?i.replace("_","-"):t.toLowerCase(),ut=e[nt][nt].buckets;for(let yt=0;yt<ut.length;yt++){const _t=ut[yt].key,zt=Q0(_t,ut[yt].trend_period.buckets,S);F.push({topic:_t,topicName:_t,dashed:!1,show:!0,dates:zt})}}return{dataByTopic:F.slice(0,5)}}function bS(t){const e=$x(t);if(t[e]){const n=t[e].buckets;for(let i=0;i<n.length;i++)n[i].parent=t.key,bS(n[i])}}const kT=(t,e)=>{const n={},i=Pf.DataLens,c=[...new Set(e.filter(S=>S.name!=="Other").map(S=>S.name))];for(let S=0;S<c.length;S++){const F=c[S],nt=Yx(S,0,10);n[F]=i[nt]}return n.Complaints=Pf.BriteCharts.regular,n.Other=Pf.DataLens[10],n["All other products"]=Pf.DataLens[10],n["All other companies"]=Pf.DataLens[10],n["All other values"]=Pf.DataLens[10],n},{chartTypeUpdated:TT,dataLensChanged:AT,dataSubLensChanged:PT,depthChanged:OT,depthReset:NT,focusChanged:DT,focusRemoved:RT,tooltipUpdated:y1}=yS.actions,LT=yS.reducer,IT=t=>{const e=Object.values(t.state.buckets).filter(i=>op.includes(i.key)).map(i=>({name:i.key,value:i.doc_count,issue:i.issue.buckets[0].key,product:i.product.buckets[0].key})),n=e.map(i=>i.name);return n.length>0&&op.forEach(i=>{n.includes(i)||e.push({name:i,value:0,issue:"",product:""})}),e};var jT=Object.defineProperty,v1=Object.getOwnPropertySymbols,BT=Object.prototype.hasOwnProperty,FT=Object.prototype.propertyIsEnumerable,xS=(t,e,n)=>e in t?jT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,b1=(t,e)=>{for(var n in e||(e={}))BT.call(e,n)&&xS(t,n,e[n]);if(v1)for(var n of v1(e))FT.call(e,n)&&xS(t,n,e[n]);return t};const gh=G2({baseQuery:Iv({baseUrl:ph}),keepUnusedDataFor:60*60,endpoints:t=>({getAggregations:t.query({query:e=>({url:`?${Ll.stringify(e)}`}),transformResponse:e=>{if(!e)return{};const n={},i=e.aggregations,c=Object.keys(i);return n.doc_count=Math.max(e.hits.total.value,e._meta.total_record_count),n.lastUpdated=e._meta.last_updated,n.lastIndexed=e._meta.last_indexed,n.hasDataIssue=e._meta.has_data_issue,n.isDataStale=e._meta.is_data_stale,n.total=e.hits.total.value,c.forEach(S=>{n[S]=i[S][S].buckets}),n}}),getDocument:t.query({query:e=>`${e}`,transformResponse:e=>e.hits.hits[0]._source}),getList:t.query({query:e=>({url:`?${Ll.stringify(e)}`}),transformResponse:e=>{const n=e._meta.break_points,i=e.hits.hits.map(S=>{const F=b1({},S._source);return S.highlight&&Object.keys(S.highlight).forEach(nt=>{F[nt]=S.highlight[nt][0]}),F}),c=Object.keys(n).length+1;return{breakPoints:n,hits:i,totalPages:c}}}),getMap:t.query({query:e=>`geo/states?${Ll.stringify(e)}`,transformResponse:e=>{const{aggregations:n}=e,i={product:[],state:[]},c=["product"],S={};return vS(c,i,n,S),S.state=IT(n.state),{results:S}}}),getTrends:t.query({query:e=>{const n=b1({},e);return delete n.reducerValues,{url:`trends?${Ll.stringify(n)}`}},transformResponse:(e,n,i)=>{if(!e)return{};const{aggregations:c}=e,S=b1({},i.reducerValues);return ST(S,c)}})})}),{useGetAggregationsQuery:zT,useGetDocumentQuery:UT,useGetListQuery:wS,useGetMapQuery:HT,useGetTrendsQuery:x1}=gh;var iw;function ty(){return ty=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ty.apply(null,arguments)}function VT(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",ty({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 19",className:"cf-icon-svg cf-icon-svg--approved-round",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,iw||(iw=W.createElement("path",{d:"M16.417 9.583a7.916 7.916 0 1 1-15.833 0 7.916 7.916 0 0 1 15.833 0Zm-4.105-4.498a.791.791 0 0 0-1.082.29l-3.828 6.63-1.733-2.08a.792.792 0 1 0-1.216 1.014l2.459 2.952a.792.792 0 0 0 1.294-.111L12.6 6.166a.791.791 0 0 0-.29-1.081Z"})))}const _S=W.forwardRef(VT),w1=Fn.p+"static/media/approved-round.97ef343b273cb8411d80cde259f3e33e.svg";var ow,aw;function _1(){return _1=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},_1.apply(null,arguments)}function SS(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",_1({id:"area-chart-icon","data-name":"area chart",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 27 21",ref:e,"aria-labelledby":i},c),n===void 0?W.createElement("title",{id:i},"area chart icon"):n?W.createElement("title",{id:i},n):null,ow||(ow=W.createElement("polygon",{className:"cls-1",points:"27 11 23.48 14 15.26 9 7.04 17 0 15 0 21 27 21 27 11"})),aw||(aw=W.createElement("g",{className:"cls-2"},W.createElement("polygon",{className:"cls-1",points:"6.32 14.79 14.92 6.46 23.36 11.58 27 8.5 27 1 23.48 4 15.26 1 7.04 7 0 9 0 12.94 6.32 14.79"}))))}const S1=W.forwardRef(SS),WT=Fn.p+"static/media/area-chart-custom.ea8a03542fb76313bf17aec0bc356ff9.svg";var ES;function sw(){return sw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},sw.apply(null,arguments)}function E1(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",sw({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--chart",viewBox:"0 0 15 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,ES||(ES=W.createElement("path",{d:"M13.55 15.256H1.45a.554.554 0 0 1-.553-.554V3.168a.554.554 0 1 1 1.108 0v10.98h11.544a.554.554 0 0 1 0 1.108zM3.121 13.02V6.888a.476.476 0 0 1 .475-.475h.786a.476.476 0 0 1 .475.475v6.132zm2.785 0V3.507a.476.476 0 0 1 .475-.475h.786a.476.476 0 0 1 .475.475v9.513zm2.785 0V6.888a.476.476 0 0 1 .475-.475h.786a.476.476 0 0 1 .475.475v6.132zm2.786 0v-2.753a.476.476 0 0 1 .475-.475h.785a.476.476 0 0 1 .475.475v2.753z"})))}const up=W.forwardRef(E1),ey=Fn.p+"static/media/chart.7eb73e17abbb26ff97b9bb9f1d3b5e15.svg";var CS;function lw(){return lw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},lw.apply(null,arguments)}function MS(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",lw({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--clock-round",viewBox:"0 0 17 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,CS||(CS=W.createElement("path",{fillRule:"evenodd",d:"M16.417 9.583A7.917 7.917 0 1 1 8.5 1.666a7.917 7.917 0 0 1 7.917 7.917zm-2.81 0A5.106 5.106 0 1 1 8.5 4.477a5.106 5.106 0 0 1 5.106 5.106zm-.792 0A4.315 4.315 0 1 1 8.5 5.268a4.315 4.315 0 0 1 4.315 4.315zm-2.163-.992a.396.396 0 0 0-.386-.661.75.75 0 0 0-.305.233l-.414.414-.649.648v-2.51a.67.67 0 0 0-.056-.365.399.399 0 0 0-.735.196c-.009.232 0 .465 0 .697v2.933a.402.402 0 0 0 .258.376c.296.11.495-.169.677-.35l.998-.998.612-.613z"})))}const uw=W.forwardRef(MS),YT=Fn.p+"static/media/clock-round.22b3a2b3664a6b388124a17b24c303b7.svg";var cw;function cp(){return cp=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},cp.apply(null,arguments)}function qT(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",cp({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--copy",viewBox:"0 0 12 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,cw||(cw=W.createElement("path",{d:"M11.415 5.068v9.16a.463.463 0 0 1-.462.461H9.477v1.477a.463.463 0 0 1-.462.462H1.047a.463.463 0 0 1-.462-.462V4.976a.463.463 0 0 1 .462-.462h1.476V3.037a.463.463 0 0 1 .462-.462h5.937zM8.369 7.874H6.628a.529.529 0 0 1-.527-.527V5.622H1.693v9.897H8.37zm-4.737-4.19v.83h3.352l1.095 1.095a.518.518 0 0 1-.04-.2V3.684zm5.845 3.323v6.574h.83V5.936h-1.74a.517.517 0 0 1-.2-.04z"})))}const kS=W.forwardRef(qT),aO=Fn.p+"static/media/copy.b5fecb9187e75f4c45bb078a6a1931d9.svg";var hw;function fw(){return fw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},fw.apply(null,arguments)}function $T(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",fw({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 988.2 1200",className:"cf-icon-svg",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,hw||(hw=W.createElement("path",{d:"M494.1 967.2c-17.3 0-33.8-6.8-46-19L18.6 518.6c-25.1-25.6-24.8-66.8.8-91.9 25.3-24.8 65.8-24.8 91.1 0l383.6 383.6 383.6-383.6c25.6-25.1 66.8-24.8 91.9.8 24.8 25.3 24.8 65.8 0 91.1L540.1 948.1c-12.2 12.2-28.7 19.1-46 19.1z"})))}const XT=W.forwardRef($T),sO=Fn.p+"static/media/down.59a7ecfc3448843a7fa799d1e37c4eb3.svg";var C1;function ny(){return ny=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ny.apply(null,arguments)}function GT(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",ny({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--error",viewBox:"0 0 12 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,C1||(C1=W.createElement("path",{d:"M11.383 13.644A1.03 1.03 0 0 1 9.928 15.1L6 11.172 2.072 15.1a1.03 1.03 0 1 1-1.455-1.456l3.928-3.928L.617 5.79a1.03 1.03 0 1 1 1.455-1.456L6 8.261l3.928-3.928a1.03 1.03 0 0 1 1.455 1.456L7.455 9.716z"})))}const KT=W.forwardRef(GT),lO=Fn.p+"static/media/error.c9d1b91f6b30792de7c28d40d6ab41bf.svg";var ry;function dw(){return dw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},dw.apply(null,arguments)}function ZT(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",dw({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 19",className:"cf-icon-svg cf-icon-svg--error-round",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,ry||(ry=W.createElement("path",{d:"M16.417 9.583a7.916 7.916 0 1 1-15.833 0 7.916 7.916 0 0 1 15.833 0Zm-6.804.01 3.032-3.033a.792.792 0 1 0-1.12-1.12L8.494 8.473 5.46 5.44a.792.792 0 0 0-1.12 1.12l3.033 3.033-3.032 3.033a.791.791 0 1 0 1.12 1.119l3.032-3.033 3.033 3.033a.79.79 0 0 0 1.12 0c.309-.31.309-.81 0-1.12L9.612 9.594Z"})))}const iy=W.forwardRef(ZT),QT=Fn.p+"static/media/error-round.83b27cc97c171826d4b191c1552e2ee6.svg";var pw;function M1(){return M1=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},M1.apply(null,arguments)}function JT(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",M1({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--external-link",viewBox:"0 0 14 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,pw||(pw=W.createElement("path",{d:"M13.017 3.622v4.6a.554.554 0 0 1-1.108 0V4.96L9.747 7.122a1.65 1.65 0 0 1 .13.646v5.57A1.664 1.664 0 0 1 8.215 15h-5.57a1.664 1.664 0 0 1-1.662-1.663v-5.57a1.664 1.664 0 0 1 1.662-1.662h5.57A1.654 1.654 0 0 1 9 6.302l2.126-2.126H7.863a.554.554 0 1 1 0-1.108h4.6a.554.554 0 0 1 .554.554M8.77 8.1l-2.844 2.844a.554.554 0 0 1-.784-.783l2.947-2.948H2.645a.555.555 0 0 0-.554.555v5.57a.555.555 0 0 0 .554.553h5.57a.555.555 0 0 0 .554-.554z"})))}const t3=W.forwardRef(JT),uO=Fn.p+"static/media/external-link.b1505f7bd33d71845d5ecde16ed2ba8c.svg";var TS;function mw(){return mw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},mw.apply(null,arguments)}function e3(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",mw({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 19",className:"cf-icon-svg cf-icon-svg--help-round",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,TS||(TS=W.createElement("path",{d:"M16.476 9.583a7.916 7.916 0 1 1-15.833 0 7.916 7.916 0 0 1 15.833 0Zm-5.034-2.687c0-.404-.073-.774-.223-1.13A2.886 2.886 0 0 0 9.692 4.22a2.747 2.747 0 0 0-1.116-.227 2.899 2.899 0 0 0-2.672 1.773 2.803 2.803 0 0 0-.227 1.128v.02a.792.792 0 0 0 1.583 0v-.02a1.333 1.333 0 0 1 .814-1.22c.155-.067.315-.098.502-.098.18 0 .334.03.485.096a1.294 1.294 0 0 1 .7.71c.067.158.098.322.098.513 0 .225-.027.368-.05.45a1.546 1.546 0 0 1-.132.335 2.11 2.11 0 0 1-.219.318c-.126.15-.25.293-.365.424-.135.142-.26.28-.374.412-.17.2-.323.414-.451.639-.147.258-.262.54-.342.842-.08.301-.12.636-.12.995v.035a.792.792 0 1 0 1.583 0v-.035c0-.222.023-.42.068-.59.044-.168.107-.324.187-.463a2.49 2.49 0 0 1 .276-.39c.098-.115.209-.237.329-.363l.018-.02c.129-.144.264-.301.403-.466.138-.165.267-.352.384-.556a3.083 3.083 0 0 0 .388-1.567ZM9.58 14.195a.983.983 0 0 0-.614-.919l-.004-.001a1.016 1.016 0 0 0-.78 0 .972.972 0 0 0-.62.92c.001.138.027.27.08.391a1.01 1.01 0 0 0 .541.536 1.013 1.013 0 0 0 .78.001l.004-.002c.121-.052.229-.125.318-.214.09-.091.164-.2.216-.32a.98.98 0 0 0 .08-.392Z"})))}const AS=W.forwardRef(e3),k1=Fn.p+"static/media/help-round.2d662bc553165a6f53b326c4d29289fd.svg";var T1;function A1(){return A1=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},A1.apply(null,arguments)}function n3(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",A1({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--left",viewBox:"0 0 10 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,T1||(T1=W.createElement("path",{d:"M8.4 17.269a1.026 1.026 0 0 1-.727-.302l-6.801-6.8a1.03 1.03 0 0 1 0-1.456l6.8-6.8a1.03 1.03 0 0 1 1.456 1.455L3.055 9.439l6.073 6.073A1.03 1.03 0 0 1 8.4 17.27z"})))}const PS=W.forwardRef(n3),cO=Fn.p+"static/media/left.09a634906630a67bd579f02c50113707.svg";var OS,gw,yw,NS,DS;function vw(){return vw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},vw.apply(null,arguments)}function RS(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",vw({id:"line-chart-icon","data-name":"line chart",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 27 21",ref:e,"aria-labelledby":i},c),n===void 0?W.createElement("title",{id:i},"line chart icon"):n?W.createElement("title",{id:i},n):null,OS||(OS=W.createElement("g",{className:"cls-1"},W.createElement("line",{className:"cls-2",x1:12,y1:6.27,x2:2,y2:19}),W.createElement("line",{className:"cls-2",x1:22.9,y1:14,x2:14.1,y2:6}),W.createElement("path",{className:"cls-3",d:"M13,4a1,1,0,1,1-1,1,1,1,0,0,1,1-1m0-1a2,2,0,1,0,2,2,2,2,0,0,0-2-2Z"}),W.createElement("path",{className:"cls-3",d:"M24,14a1,1,0,1,1-1,1,1,1,0,0,1,1-1m0-1a2,2,0,1,0,2,2,2,2,0,0,0-2-2Z"}))),gw||(gw=W.createElement("line",{className:"cls-2",x1:12,y1:16.45,x2:2,y2:11})),yw||(yw=W.createElement("line",{className:"cls-2",x1:23,y1:6,x2:14,y2:16})),NS||(NS=W.createElement("path",{className:"cls-3",d:"M13,16a1,1,0,1,1-1,1,1,1,0,0,1,1-1m0-1a2,2,0,1,0,2,2,2,2,0,0,0-2-2Z"})),DS||(DS=W.createElement("path",{className:"cls-3",d:"M24,4a1,1,0,1,1-1,1,1,1,0,0,1,1-1m0-1a2,2,0,1,0,2,2,2,2,0,0,0-2-2Z"})))}const r3=W.forwardRef(RS),hO=Fn.p+"static/media/line-chart-custom.5b2ea8f0a6610dd4792361462e297ff1.svg";var bw;function xw(){return xw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},xw.apply(null,arguments)}function P1(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",xw({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--list",viewBox:"0 0 14 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,bw||(bw=W.createElement("path",{d:"M2.85 4.836a1.03 1.03 0 0 1-1.029 1.03h-.003a1.03 1.03 0 1 1 0-2.059h.003a1.03 1.03 0 0 1 1.03 1.03zm0 4.346a1.03 1.03 0 0 1-1.029 1.03h-.003a1.03 1.03 0 1 1 0-2.059h.003a1.03 1.03 0 0 1 1.03 1.03zm0 4.346a1.03 1.03 0 0 1-1.029 1.03h-.003a1.03 1.03 0 1 1 0-2.059h.003a1.03 1.03 0 0 1 1.03 1.03zm1.13-8.692a1.03 1.03 0 0 1 1.029-1.029h7.173a1.03 1.03 0 1 1 0 2.058H5.009a1.03 1.03 0 0 1-1.03-1.029zm9.231 4.347a1.03 1.03 0 0 1-1.029 1.029H5.009a1.03 1.03 0 1 1 0-2.059h7.173a1.03 1.03 0 0 1 1.03 1.03zm0 4.345a1.03 1.03 0 0 1-1.029 1.03H5.009a1.03 1.03 0 1 1 0-2.059h7.173a1.03 1.03 0 0 1 1.03 1.03z"})))}const i3=W.forwardRef(P1),fO=Fn.p+"static/media/list.744499728766caaae38d1b379c6367d1.svg";var LS;function ww(){return ww=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ww.apply(null,arguments)}function o3(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",ww({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--map",viewBox:"0 0 16 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,LS||(LS=W.createElement("path",{d:"M15.084 15.2H.916a.264.264 0 0 1-.254-.42l2.36-4.492a.865.865 0 0 1 .696-.42h.827a9.51 9.51 0 0 0 .943 1.108H3.912l-1.637 3.116h11.45l-1.637-3.116h-1.34a9.481 9.481 0 0 0 .943-1.109h.591a.866.866 0 0 1 .696.421l2.36 4.492a.264.264 0 0 1-.254.42zM11.4 7.189c0 2.64-2.176 2.888-3.103 5.46a.182.182 0 0 1-.356 0c-.928-2.572-3.104-2.82-3.104-5.46a3.282 3.282 0 0 1 6.563 0zm-1.86-.005a1.425 1.425 0 1 0-1.425 1.425A1.425 1.425 0 0 0 9.54 7.184z"})))}const a3=W.forwardRef(o3),s3=Fn.p+"static/media/map.d70695b9e0fa6e28e2c1f42fda2ebfad.svg";var IS;function _w(){return _w=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},_w.apply(null,arguments)}function l3(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",_w({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 19",className:"cf-icon-svg cf-icon-svg--minus-round",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,IS||(IS=W.createElement("path",{d:"M16.416 9.583a7.916 7.916 0 1 1-15.833 0 7.916 7.916 0 0 1 15.833 0Zm-2.958.01a.792.792 0 0 0-.792-.792H4.32a.792.792 0 0 0 0 1.583h8.346a.792.792 0 0 0 .792-.791Z"})))}const Km=W.forwardRef(l3),dO=Fn.p+"static/media/minus-round.0e0f6b3d580946f789072714d43e320b.svg";var Sw;function Ew(){return Ew=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Ew.apply(null,arguments)}function jS(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",Ew({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 19",className:"cf-icon-svg cf-icon-svg--plus-round",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,Sw||(Sw=W.createElement("path",{d:"M16.416 9.583a7.916 7.916 0 1 1-15.833 0 7.916 7.916 0 0 1 15.833 0Zm-2.958.01a.792.792 0 0 0-.792-.792H9.284V5.42a.792.792 0 1 0-1.583 0V8.8H4.32a.792.792 0 0 0 0 1.584H7.7v3.382a.792.792 0 1 0 1.583 0v-3.382h3.382a.792.792 0 0 0 .792-.791Z"})))}const u3=W.forwardRef(jS),pO=Fn.p+"static/media/plus-round.95113e45fcb696eff3818050bdf5452e.svg";var Jl;function Xu(){return Xu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Xu.apply(null,arguments)}function BS(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",Xu({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--print",viewBox:"0 0 14 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,Jl||(Jl=W.createElement("path",{d:"m8.698 2.358 3.065 3.066v1.95h.16a1.112 1.112 0 0 1 1.109 1.108v4.837a1.112 1.112 0 0 1-1.109 1.108h-.16v1.726a.477.477 0 0 1-.475.475H2.712a.477.477 0 0 1-.475-.475v-1.726h-.16A1.112 1.112 0 0 1 .968 13.32V8.482a1.112 1.112 0 0 1 1.109-1.108h.16v-4.54a.476.476 0 0 1 .475-.476zm-.22 3.876a.61.61 0 0 1-.608-.608v-2.16H3.345v3.908h7.31v-1.14zm2.177 4.512h-7.31v4.773h7.31zm-1.054.874h-5.26v1.109h5.26zm0 1.962h-5.26v1.108h5.26zm2.437-4.485a.554.554 0 1 0-.554.554.554.554 0 0 0 .554-.554z"})))}const O1=W.forwardRef(BS),Zm=Fn.p+"static/media/print.4c9b923e5874edf00a7f80161a074341.svg";var N1;function oy(){return oy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},oy.apply(null,arguments)}function Cw(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",oy({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--right",viewBox:"0 0 10 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,N1||(N1=W.createElement("path",{d:"M1.6 17.262a1.03 1.03 0 0 1-.728-1.757l6.073-6.073L.872 3.36a1.03 1.03 0 0 1 1.455-1.455l6.8 6.8a1.03 1.03 0 0 1 0 1.456l-6.8 6.8a1.025 1.025 0 0 1-.727.302z"})))}const FS=W.forwardRef(Cw),mO=Fn.p+"static/media/right.5b67a978aa7b936eb8756a88883d281a.svg";var zS;function ay(){return ay=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ay.apply(null,arguments)}function US(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",ay({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--search",viewBox:"0 0 15 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,zS||(zS=W.createElement("path",{d:"M14.147 15.488a1.112 1.112 0 0 1-1.567 0l-3.395-3.395a5.575 5.575 0 1 1 1.568-1.568l3.394 3.395a1.112 1.112 0 0 1 0 1.568zm-6.361-3.903a4.488 4.488 0 1 0-1.681.327 4.443 4.443 0 0 0 1.68-.327z"})))}const ys=W.forwardRef(US),HS=Fn.p+"static/media/search.918ad2ab96007c824c83f80452796a28.svg";var Mw;function kw(){return kw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},kw.apply(null,arguments)}function c3(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",kw({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--up",viewBox:"0 0 17 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,Mw||(Mw=W.createElement("path",{d:"M15.3 15.32a1.026 1.026 0 0 1-.727-.302L8.5 8.946l-6.073 6.072a1.03 1.03 0 0 1-1.456-1.455l6.801-6.8a1.03 1.03 0 0 1 1.456 0l6.8 6.8a1.03 1.03 0 0 1-.727 1.757z"})))}const sy=W.forwardRef(c3),Tw=Fn.p+"static/media/up.8977663ede6916c205dee16057e6ba18.svg";var Aw;function D1(){return D1=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},D1.apply(null,arguments)}function hp(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",D1({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg--updating",viewBox:"0 0 16 19",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,Aw||(Aw=W.createElement("path",{d:"M5.857 3.882v3.341a1.03 1.03 0 0 1-2.058 0v-.97a5.401 5.401 0 0 0-1.032 2.27 1.03 1.03 0 1 1-2.02-.395A7.462 7.462 0 0 1 2.235 4.91h-.748a1.03 1.03 0 1 1 0-2.058h3.34a1.03 1.03 0 0 1 1.03 1.03zm-3.25 9.237a1.028 1.028 0 0 1-1.358-.523 7.497 7.497 0 0 1-.37-1.036 1.03 1.03 0 1 1 1.983-.55 5.474 5.474 0 0 0 .269.751 1.029 1.029 0 0 1-.524 1.358zm2.905 2.439a1.028 1.028 0 0 1-1.42.322 7.522 7.522 0 0 1-.885-.652 1.03 1.03 0 0 1 1.34-1.563 5.435 5.435 0 0 0 .643.473 1.03 1.03 0 0 1 .322 1.42zm3.68.438a1.03 1.03 0 0 1-1.014 1.044h-.106a7.488 7.488 0 0 1-.811-.044 1.03 1.03 0 0 1 .224-2.046 5.41 5.41 0 0 0 .664.031h.014a1.03 1.03 0 0 1 1.03 1.015zm.034-12.847a1.03 1.03 0 0 1-1.029 1.01h-.033a1.03 1.03 0 0 1 .017-2.06h.017l.019.001a1.03 1.03 0 0 1 1.009 1.05zm3.236 11.25a1.029 1.029 0 0 1-.3 1.425 7.477 7.477 0 0 1-.797.453 1.03 1.03 0 1 1-.905-1.849 5.479 5.479 0 0 0 .578-.328 1.03 1.03 0 0 1 1.424.3zM10.475 3.504a1.029 1.029 0 0 1 1.41-.359l.018.011a1.03 1.03 0 1 1-1.06 1.764l-.01-.006a1.029 1.029 0 0 1-.358-1.41zm4.26 9.445a7.5 7.5 0 0 1-.315.56 1.03 1.03 0 1 1-1.749-1.086 5.01 5.01 0 0 0 .228-.405 1.03 1.03 0 1 1 1.836.93zm-1.959-6.052a1.03 1.03 0 0 1 1.79-1.016l.008.013a1.03 1.03 0 1 1-1.79 1.017zm2.764 2.487a9.327 9.327 0 0 1 0 .366 1.03 1.03 0 0 1-1.029 1.005h-.025A1.03 1.03 0 0 1 13.482 9.7a4.625 4.625 0 0 0 0-.266 1.03 1.03 0 0 1 1.003-1.055h.026a1.03 1.03 0 0 1 1.029 1.004z"})))}const VS=W.forwardRef(hp),h3=Fn.p+"static/media/updating.f79bb43c3d31fda78ae67df2030c1d05.svg";var Pw;function R1(){return R1=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},R1.apply(null,arguments)}function WS(t,e){let S=t,{title:n,titleId:i}=S,c=io(S,["title","titleId"]);return W.createElement("svg",R1({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 19",className:"cf-icon-svg cf-icon-svg--warning-round",ref:e,"aria-labelledby":i},c),n?W.createElement("title",{id:i},n):null,Pw||(Pw=W.createElement("path",{d:"M16.406 9.583a7.916 7.916 0 1 1-15.833 0 7.916 7.916 0 0 1 15.833 0ZM9.48 13.667a1.003 1.003 0 1 0-2.007 0 1.003 1.003 0 0 0 2.007 0ZM7.697 10.83a.792.792 0 0 0 1.583 0V4.562a.792.792 0 0 0-1.583 0v6.268Z"})))}const f3=W.forwardRef(WS),gO=Fn.p+"static/media/warning-round.c245ac8ff60c8e94af11318b64f4cc1d.svg";var fa=Fn(7810);const YS={"approved-round":fa.createElement(_S,null),"checkmark-round":fa.createElement(_S,null),"clock-round":fa.createElement(uw,null),chart:fa.createElement(up,null),copy:fa.createElement(kS,null),delete:fa.createElement(KT,null),"delete-round":fa.createElement(iy,null),down:fa.createElement(XT,null),"error-round":fa.createElement(iy,null),"external-link":fa.createElement(t3,null),"help-round":fa.createElement(AS,null),left:fa.createElement(PS,null),list:fa.createElement(i3,null),map:fa.createElement(a3,null),"minus-round":fa.createElement(Km,null),"plus-round":fa.createElement(u3,null),printer:fa.createElement(O1,null),right:fa.createElement(FS,null),search:fa.createElement(ys,null),updating:fa.createElement(VS,null),up:fa.createElement(sy,null),"warning-round":fa.createElement(f3,null),"line-chart":fa.createElement(r3,null),"area-chart":fa.createElement(S1,null)};function d3(t,e){if(!Object.hasOwn(YS,t))return console.error(`No icon with the name ${t}.`),!1;let n=YS[t];return typeof e!="undefined"&&(n=(0,W.cloneElement)(n,{className:`cf-icon-svg ${e}`})),n}const Wi=d3,qS={};var yi=Fn(5826),Rn=Fn.n(yi),L1=Fn(7810);const fp=({isLoading:t})=>t?L1.createElement("section",{className:"light-box"},L1.createElement("div",{className:"loading-box"},Wi("updating")," ",L1.createElement("span",null,"This page is loading"))):null;fp.propTypes={isLoading:Rn().bool.isRequired};const $S=t=>t.routes.params,ly=t=>t.routes.queryString;var gi=Fn(7810);const Ow=({label:t,value:e})=>e?gi.createElement("div",{className:"layout-row"},gi.createElement("span",{className:"body-copy subitem"},t),gi.createElement("span",{className:"body-copy"},e)):null;Ow.propTypes={label:Rn().string,value:Rn().string};const I1=({value:t})=>{const e={"Consent provided":["approved-round","cf-icon-approved-round"],"Consent not provided":["delete-round","cf-icon-delete-round"],"Consent withdrawn":["minus-round","cf-icon-minus-round"],"N/A":["help-round","cf-icon-help-round"],Other:["help-round","cf-icon-help-round"]};let n;if(t in e){const i=e[t],c=i[0],S=i[1];n=Wi(c,S)}else n=Wi("error-round","cf-icon-error-round"),t="No data available";return gi.createElement("div",null,gi.createElement("span",{className:"cf-icon__before"},n),gi.createElement("span",{className:"body-copy"},t))};I1.propTypes={value:Rn().string};const j1=({value:t})=>{if(!t)return gi.createElement("span",{className:"body-copy"},"N/A");const e=["cf-icon__before"];return t.toLowerCase()==="no"&&e.push("not-timely"),gi.createElement("div",null,gi.createElement("span",{className:"cf-icon__before"},Wi("clock-round","cf-icon-clock-round"+(t.toLowerCase()==="no"?" not-timely":""))),gi.createElement("span",{className:"body-copy"},t))};j1.propTypes={value:Rn().string};const XS=({data:t,error:e,id:n})=>{if(e)return gi.createElement("h1",null,"There was a problem retrieving ",n);const i=t.complaint_what_happened||"",c=qm(n);return gi.createElement("article",null,gi.createElement("h1",{"aria-label":"Complaint "+c},n),gi.createElement("div",{className:"card"},gi.createElement("div",{className:"card-left layout-column"},gi.createElement("h4",null,"Date CFPB received the complaint"),gi.createElement("span",{className:"body-copy"},Kl(t.date_received)),gi.createElement("h4",{className:"u-mt15"},"Consumer\u2019s state"),gi.createElement("span",{className:"body-copy"},t.state),gi.createElement("h4",{className:"u-mt15"},"Consumer\u2019s zip"),gi.createElement("span",{className:"body-copy"},t.zip_code),gi.createElement("h4",{className:"u-mt15"},"Submitted via"),gi.createElement("span",{className:"body-copy"},t.submitted_via),t.tags&&t.tags.length?gi.createElement(gi.Fragment,null,gi.createElement("h4",{className:"u-mt15"},"Tags"),gi.createElement("span",{className:"body-copy"},t.tags)):null,gi.createElement("h4",{className:"u-mt15"},"Did consumer dispute the response?"),gi.createElement("span",{className:"body-copy"},t.consumer_disputed)),gi.createElement("div",{className:"card-right layout-column"},gi.createElement("h4",null,"Product"),gi.createElement("h3",null,t.product),gi.createElement(Ow,{label:"Sub-product:",value:t.sub_product}),gi.createElement("h4",{className:"u-mt15"},"Issue"),gi.createElement("h3",null,t.issue),gi.createElement(Ow,{label:"Sub-issue:",value:t.sub_issue}),gi.createElement("h4",{className:"u-mt15"},"Consumer consent to publish narrative"),gi.createElement(I1,{value:t.consumer_consent_provided}),i?gi.createElement(gi.Fragment,null,gi.createElement("h4",{className:"u-mt15"},"Consumer complaint narrative"),gi.createElement("span",{className:"body-copy"},i)):null)),gi.createElement("h2",{className:"company-information"},"Company information"),gi.createElement("div",{className:"card"},gi.createElement("div",{className:"card-left layout-column"},gi.createElement("h4",null,"Date complaint sent to company"),gi.createElement("span",{className:"body-copy"},Kl(t.date_sent_to_company)),gi.createElement("h4",{className:"u-mt15"},"Company name"),gi.createElement("span",{className:"body-copy"},t.company)),gi.createElement("div",{className:"card-right layout-column"},gi.createElement("h4",null,"Timely response?"),gi.createElement(j1,{value:t.timely}),gi.createElement("h4",{className:"u-mt15"},"Company response to consumer"),gi.createElement("span",{className:"body-copy"},t.company_response?t.company_response:"N/A"),gi.createElement("h4",{className:"u-mt15"},"Company public response"),gi.createElement("span",{className:"body-copy"},t.company_public_response?t.company_public_response:"N/A"))))};XS.propTypes={data:Rn().object,error:Rn().oneOfType([Rn().string,Rn().object]),id:Rn().string};var yh=Fn(7810);const Nw=()=>{const t=Er(),{id:e}=$i(),n=sr($S),i=(0,W.useMemo)(()=>{if(!t)return"";const nt=t.pathname,ut=nt.indexOf("detail");return sS(nt.substring(0,ut),n)},[t,n]),{data:c,isLoading:S,error:F}=UT(e);return yh.createElement("section",{className:"card-container"},yh.createElement("nav",{className:"layout-row"},yh.createElement("div",{className:"back-to-search flex-fixed"},yh.createElement($h,{to:i},Wi("left","cf-icon-left")," Back to search results")),yh.createElement("div",{className:"meaning flex-fixed"},yh.createElement("a",{href:H0,target:"_blank",rel:"noopener noreferrer"},"What do all these data points mean?"))),S?yh.createElement(fp,{isLoading:!0}):yh.createElement(XS,{data:c,error:F,id:e}))},p3={},B1=Ts({name:"view",initialState:{expandedRows:[],isPrintMode:!1,hasAdvancedSearchTips:!1,hasFilters:!0,modalTypeShown:!1,showTour:!1,tab:Rl,width:0},reducers:{hideAdvancedSearchTips:{reducer:t=>{t.hasAdvancedSearchTips=!1}},modalHidden(t){t.modalTypeShown=!1},modalShown(t,e){t.modalTypeShown=e.payload},showAdvancedSearchTips:{reducer:t=>{t.hasAdvancedSearchTips=!0}},updatePrintModeOn(t){t.isPrintMode=!0},updatePrintModeOff(t){t.isPrintMode=!1},updateScreenSize(t,e){t.hasFilters=e.payload>749,t.width=e.payload},updateFilterVisibility:{reducer:t=>{t.hasFilters=!t.hasFilters}},tabChanged:{reducer:(t,e)=>{t.tab=Ys(e.payload,"tab"),t.expandedRows=[]}},tourHidden:{reducer:t=>{t.showTour=!1}},tourShown:{reducer:t=>{t.showTour=!0}},rowCollapsed:{reducer:(t,e)=>{t.expandedRows=t.expandedRows.filter(n=>n!==e.payload)}},rowExpanded:{reducer:(t,e)=>{t.expandedRows.includes(e.payload)||t.expandedRows.push(e.payload)}}},extraReducers:t=>{t.addCase("trends/dataLensChanged",e=>{e.expandedRows=[]}).addCase("trends/focusChanged",e=>{e.tab=Rl}).addCase("routes/routeChanged",(e,n)=>{const i=n.payload.params;e.isPrintMode=i.isPrintMode==="true",e.tab=Ys(i.tab,"tab"),oS(i,e,["expandedRows"])})}}),{hideAdvancedSearchTips:Za,modalHidden:dp,modalShown:vh,processParams:yO,rowCollapsed:KS,rowExpanded:ZS,showAdvancedSearchTips:m3,tabChanged:Nf,tourHidden:pp,tourShown:F1,updateFilterVisibility:Dw,updatePrintModeOff:QS,updatePrintModeOn:Df,updateScreenSize:uy}=B1.actions,cy=B1.reducer;var Tc=Fn(7810);const JS=()=>{const t=Si();return Tc.createElement("header",{className:"content__hero"},Tc.createElement("h1",{className:"content-header"},"Consumer Complaint Database"),Tc.createElement("ul",{className:"m-list m-list--horizontal"},Tc.createElement("li",{className:"m-list__item"},Tc.createElement("button",{className:"a-btn a-btn--link",onClick:()=>{t(vh(F0))}},"Things to know before you use this database")),Tc.createElement("li",{className:"m-list__item"},Tc.createElement("a",{href:H0,target:"_blank",rel:"noopener noreferrer"},"How we use complaint data")),Tc.createElement("li",{className:"m-list__item"},Tc.createElement("a",{href:"https://cfpb.github.io/api/ccdb/",target:"_blank",rel:"noopener noreferrer"},"Technical documentation"))))},Qm={},g3={};var bh=Fn(7810);const Ac=({className:t="",title:e,desc:n,children:i})=>{const[c,S]=(0,W.useState)(!0),F=bh.createElement("span",{className:"o-expandable__cue-close",role:"img","aria-label":"Hide"},Wi("minus-round")),nt=bh.createElement("span",{className:"o-expandable__cue-open",role:"img","aria-label":"Show"},Wi("plus-round")),ut=c?`Collapse ${e} filter`:`Expand ${e} filter`;return bh.createElement("section",{className:`o-expandable ${t}`},bh.createElement("button",{className:"o-expandable__header","aria-expanded":c,"aria-label":ut,onClick:()=>S(!c)},bh.createElement("h3",{className:"o-expandable__label"},e),bh.createElement("span",{className:"o-expandable__cues"},c?F:nt)),c?bh.createElement("div",{className:"o-expandable__content"},bh.createElement("p",null,n),i):null)};Ac.propTypes={className:Rn().string,title:Rn().string.isRequired,desc:Rn().string.isRequired,children:Rn().node.isRequired};const tE=(t,e)=>{const{params:n,path:i}=e.payload;t.path=i,t.params=n,t.queryString=Ll.stringify(n)},eE=Ts({name:"routes",initialState:{path:"",params:{},queryString:""},reducers:{appUrlChanged:{reducer:tE,prepare:(t,e)=>({payload:{path:t,params:e}})},routeChanged:{reducer:tE,prepare:(t,e)=>(e.size&&(e.size=Ys(e.size.toString(),"size")),{payload:{path:t,params:e}})}}}),{appUrlChanged:y3,routeChanged:nE}=eE.actions,v3=eE.reducer,hy=Ts({name:"filters",initialState:{company:[],company_public_response:[],company_response:[],consumer_consent_provided:[],consumer_disputed:[],dataNormalization:Cc,enablePer1000:!1,issue:[],mapWarningEnabled:!0,product:[],state:[],submitted_via:[],tags:[],timely:[],zip_code:[]},reducers:{dataNormalizationUpdated:{reducer:(t,e)=>{t.dataNormalization=Ys(e.payload,"dataNormalization")}},filterAdded:{reducer:(t,e)=>{const{filterName:n,filterValue:i}=e.payload;n==="has_narrative"?t.has_narrative=!0:n in t?t[n].indexOf(i)===-1&&t[n].push(i):t[n]=[i]},prepare:(t,e)=>({payload:{filterName:t,filterValue:e}})},filterRemoved:{reducer:(t,e)=>{const{filterName:n,filterValue:i}=e.payload;if(n==="has_narrative")delete t.has_narrative;else if(n in t){const c=t[n].indexOf(i);c!==-1&&t[n].splice(c,1)}},prepare:(t,e)=>({payload:{filterName:t,filterValue:e}})},filtersCleared:{reducer:(t,e)=>{const n=zm.concat(Af);if(K2===e.payload){const i=n.indexOf("has_narrative");n.splice(i,1)}n.forEach(i=>{i in t&&(t[i]=[])})}},filtersReplaced:{reducer:(t,e)=>{const{filterName:n,values:i}=e.payload;t[n]=[...new Set(i)]},prepare:(t,e)=>({payload:{filterName:t,values:e}})},filterToggled:{reducer:(t,e)=>{const{filterName:n,filterValue:i}=e.payload;t[n]=x3(t[n],i.key)},prepare:(t,e)=>({payload:{filterName:t,filterValue:e}})},mapWarningDismissed:{reducer:t=>{t.mapWarningEnabled=!1}},multipleFiltersAdded:{reducer:(t,e)=>{const n=e.payload.filterName,i=is(t,n,[]);e.payload.values.forEach(c=>{i.indexOf(c)===-1&&i.push(c)}),t[n]=i},prepare:(t,e)=>({payload:{filterName:t,values:e}})},multipleFiltersRemoved:{reducer:(t,e)=>{t[e.payload.filterName]&&e.payload.values.forEach(n=>{const i=t[e.payload.filterName].indexOf(n);i!==-1&&t[e.payload.filterName].splice(i,1)})},prepare:(t,e)=>({payload:{filterName:t,values:e}})},stateFilterAdded:{reducer:(t,e)=>{const n=is(t,"state",[]),{abbr:i}=e.payload;n.includes(i)||n.push(i),t.state=n}},stateFilterCleared:{reducer:t=>{t.state=[]}},stateFilterRemoved:{reducer:(t,e)=>{const n=is(t,"state",[]),{abbr:i}=e.payload;t.state=n.filter(c=>c!==i)}},toggleFlagFilter:{reducer:(t,e)=>{const n=e.payload;t[n]=!t[n],t[n]||delete t[n]}}},extraReducers:t=>{t.addCase("routes/routeChanged",(e,n)=>{const{params:i}=n.payload;oS(i,e,zm),i.dataNormalization&&(e.dataNormalization=i.dataNormalization)}).addCase("trends/focusChanged",(e,n)=>{const{focus:i,lens:c,filterValues:S}=n.payload,F=c.toLowerCase(),nt=[];F==="company"?nt.push(i):S.forEach(ut=>{nt.push(ut)}),e[F]=nt}).addCase("trends/focusRemoved",(e,n)=>{const c=n.payload.toLowerCase();e[c]=[]}).addMatcher(ps(Lw,Jm,z1,mp,fy,tg,eg,nE,Iw,Rf,gp),e=>{rE(e)})}});function x3(t=[],e){return t.indexOf(e)===-1?t.push(e):t=t.filter(function(n){return n!==e}),[...t]}function rE(t){t.enablePer1000=rS(t),t.enablePer1000&&(t.mapWarningEnabled=!0),t.dataNormalization=t.enablePer1000&&t.dataNormalization||Cc}const{dataNormalizationUpdated:Rw,filterAdded:Lw,filterRemoved:Jm,filtersCleared:z1,filtersReplaced:mp,filterToggled:fy,mapWarningDismissed:U1,multipleFiltersAdded:tg,multipleFiltersRemoved:eg,stateFilterAdded:H1,stateFilterCleared:Iw,stateFilterRemoved:Rf,toggleFlagFilter:gp}=hy.actions,dy=hy.reducer;var iE=Object.defineProperty,oE=Object.defineProperties,yp=Object.getOwnPropertyDescriptors,jw=Object.getOwnPropertySymbols,aE=Object.prototype.hasOwnProperty,sE=Object.prototype.propertyIsEnumerable,lE=(t,e,n)=>e in t?iE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,w3=(t,e)=>{for(var n in e||(e={}))aE.call(e,n)&&lE(t,n,e[n]);if(jw)for(var n of jw(e))sE.call(e,n)&&lE(t,n,e[n]);return t},_3=(t,e)=>oE(t,yp(e));const V1={company_received_max:"",company_received_min:"",dateInterval:"Month",dateRange:"3y",date_received_max:Na(Fr()(lp())),date_received_min:Na(new Date(Fr()(lp()).subtract(3,"years"))),from:0,page:1,searchAfter:"",searchField:"all",searchText:"",size:25,sort:"created_date_desc",trendsDateWarningEnabled:!1},uE={searchAfter:"search_after",searchText:"search_term",searchField:"field",from:"frm"},Bw=Ts({name:"query",initialState:V1,reducers:{dateIntervalChanged:{reducer:(t,e)=>{t.dateInterval=Ys(e.payload,"dateInterval"),py(t)}},dateRangeChanged:{reducer:(t,e)=>{const n=Ys(e.payload,"dateRange"),i=Na(Fr()(lp())),c={All:Na(Fr()(Fm)),"3m":Na(Fr()(i).subtract(3,"months")),"6m":Na(Fr()(i).subtract(6,"months")),"1y":Na(Fr()(i).subtract(1,"year")),"3y":Na(Fr()(i).subtract(3,"years"))};t.dateRange=n,t.date_received_min=c[n]?c[n]:t.date_received_min,t.date_received_max=i,py(t)}},companyReceivedDateChanged:{reducer:(t,e)=>{let{maxDate:n,minDate:i}=e.payload;i=Fr()(i).isValid()?Na(Fr()(i).startOf("day")):null,n=Fr()(n).isValid()?Na(Fr()(n).startOf("day")):null,t.company_received_min=i,t.company_received_max=n},prepare:(t,e)=>({payload:{minDate:t,maxDate:e}})},datesChanged:{reducer:(t,e)=>{let{maxDate:n,minDate:i}=e.payload;i=Fr()(i).isValid()?Na(Fr()(i).startOf("day")):null,n=Fr()(n).isValid()?Na(Fr()(n).startOf("day")):null;const c=t.date_received_min!==i||t.date_received_max!==n,S=u1(i,n);S&&c?t.dateRange=S:delete t.dateRange,t.date_received_min=i||t.date_received_min,t.date_received_max=n||t.date_received_max,py(t)},prepare:(t,e)=>({payload:{minDate:t,maxDate:e}})},searchFieldChanged:{reducer:(t,e)=>{t.searchField=e.payload}},searchTextChanged:{reducer:(t,e)=>_3(w3({},t),{searchText:e.payload})},trendsDateWarningDismissed:{reducer:t=>{t.trendsDateWarningEnabled=!1}},prevPageShown:{reducer:(t,e)=>{const n=e.payload,i=t.page-1,c=Lf(i,t);t.page=c.page,t.from=c.from,t.searchAfter=Fw(n,i)}},nextPageShown:{reducer:(t,e)=>{const n=e.payload,i=t.page+1,c=Lf(i,t);t.page=c.page,t.from=c.from,t.searchAfter=Fw(n,i)}},sizeChanged:{reducer:(t,e)=>{t.size=Ys(e.payload,"size")}},sortChanged:{reducer:(t,e)=>{t.sort=Ys(e.payload,"sort")}}},extraReducers:t=>{t.addCase("filters/filtersCleared",e=>{e.dateRange="All",e.company_received_max="",e.company_received_min="",e.date_received_min=gs,e.date_received_max=Zl,e.company_received_max="",e.company_received_min=""}).addCase("routes/routeChanged",(e,n)=>{const{params:i}=n.payload;["dateRange","dateInterval","searchField","searchText","sort"].forEach(nt=>{i[nt]&&(e[nt]=Ys(i[nt],nt))}),Kv.forEach(nt=>{typeof i[nt]!="undefined"&&Fr()(i[nt]).isValid()&&(e[nt]=S3(i[nt]))});const S=is(i,"page",V1.page),F=is(i,"size",V1.size);if(e.page=parseInt(S,10),e.size=parseInt(F,10),i.search_after&&(e.searchAfter=i.search_after),W1(i)||i.dateRange==="All"){const nt={payload:i.dateRange};Bw.caseReducers.dateRangeChanged(e,nt)}cE(e)}).addMatcher(ps(ng,Uw,Qa,Y1,Lw,Jm,fy,z1,mp,tg,eg,hE,Pc,rg,fE,Nf,gp),e=>{zw(e)})}});function cE(t){const e=t.date_received_max,n=t.date_received_min;if(Fr()(e).isSame(V1.date_received_max)&&Fr()(n).isSame(Fm)){t.dateRange="All";return}const i={"3y":Fr()(e).subtract(3,"years"),"3m":Fr()(e).subtract(3,"months"),"6m":Fr()(e).subtract(6,"months"),"1y":Fr()(e).subtract(1,"year")},c=Object.keys(i);let S=!1;for(let F=0;F<c.length&&!S;F++){const nt=c[F];Fr()(n).isSame(i[nt],"day")&&(t.dateRange=nt,S=!0)}S||(t.dateRange="")}function W1(t){const e=Object.keys(t);return e.includes("dateRange")&&!e.includes("date_received_min")&&!e.includes("date_received_max")}function S3(t){return Fr()(t).isValid()?Na(t):null}function py(t){const{date_received_min:e,date_received_max:n,dateInterval:i}=t;Kx(e,n)&&i==="Day"&&(t.dateInterval="Week",t.trendsDateWarningEnabled=!0),Kx(e,n)||(t.trendsDateWarningEnabled=!1)}function Lf(t,e){return{from:(t-1)*e.size,page:t,searchAfter:Fw(e,t)}}function Fw(t,e){return t&&t[e]?t[e].join("_"):""}function my(t){const e={};Object.keys(t).forEach(nt=>{if(!t[nt])return;let ut=t[nt];Kv.indexOf(nt)!==-1&&(ut=f1(ut));const yt=["yes","true"];Af.indexOf(nt)!==-1&&(ut=yt.includes(String(ut).toLowerCase())),uE[nt]?e[uE[nt]]=ut:e[nt]=ut});const i=[].concat(["search_term","field"],Kv,zm,Af),c={List:["frm","search_after","size","sort","format","no_aggs"],Map:[],Trends:["lens","focus","sub_lens","sub_lens_depth","trend_interval","trend_depth"]},S=[].concat(i,c[e.tab]);Object.keys(e).includes("format")&&["size","format","no_aggs"].forEach(ut=>{S.includes(ut)||S.push(ut)});const F=Object.keys(e).filter(nt=>S.includes(nt)).reduce((nt,ut)=>(nt[ut]=e[ut],nt),{});return"?"+Ll.stringify(F)}function zw(t){t.from=0,t.page=1,t.searchAfter=""}const{companyReceivedDateChanged:ng,datesChanged:Uw,dateRangeChanged:Y1,dateIntervalChanged:Qa,trendsDateWarningDismissed:E3,nextPageShown:C3,prevPageShown:wo,searchFieldChanged:hE,searchTextChanged:Pc,sizeChanged:rg,sortChanged:fE}=Bw.actions,M3=Bw.reducer,tu=t=>t.filters,dE=t=>t.filters.company,bO=t=>t.filters.company_received_max,k3=t=>t.filters.company_received_min,Hw=t=>t.filters.dataNormalization,pE=t=>t.filters.enablePer1000,T3=t=>t.filters.issue,A3=t=>t.filters.product,Vw=t=>t.filters.state,Ww=t=>t.filters.has_narrative,mE=t=>t.filters.mapWarningEnabled,vp=t=>t.query,P3=t=>t.query.company_received_max,O3=t=>t.query.company_received_min,bp=t=>t.query.date_received_max,xp=t=>t.query.date_received_min,N3=t=>t.query.dateRange,D3=t=>t.query.page,q1=t=>t.query.searchField,gE=t=>t.query.searchText,R3=t=>t.query.size,L3=t=>t.query.sort,$1=t=>t.query.dateInterval,I3=t=>t.query.trendsDateWarningEnabled,j3=t=>t.trends,Yw=t=>t.trends.chartType,xh=t=>t.trends.focus,eu=t=>t.trends.lens,qw=t=>t.trends.subLens,yE=t=>t.trends.tooltip,xO={};function _a(){return _a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},_a.apply(null,arguments)}function ig(t){"@babel/helpers - typeof";return ig=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ig(t)}function B3(t,e){if(ig(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(ig(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function vE(t){var e=B3(t,"string");return ig(e)=="symbol"?e:e+""}function bi(t,e,n){return(e=vE(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function F3(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.includes(i))continue;n[i]=t[i]}return n}function vs(t,e){if(t==null)return{};var n,i,c=F3(t,e);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(t);for(i=0;i<S.length;i++)n=S[i],e.includes(n)||{}.propertyIsEnumerable.call(t,n)&&(c[n]=t[n])}return c}var bE=Fn(7967),z3=Fn.n(bE);function U3(){const[,t]=(0,W.useReducer)(e=>!e,!1);return t}function H3(t){const e=(0,W.useRef)(null);return(0,W.useEffect)(()=>{e.current=t}),e.current}var xE=["justify","left","right"],wE="label",V3=["lg","sm"],W3=Fn(5705),_E=Fn.n(W3);function $w(t){return typeof t=="string"?t:wE}function X1(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Xw=0;function cl(t){return typeof t=="function"}function Gu(t){return typeof t=="string"}function nu(){}function G1(t,e){var n={};return e.forEach(function(i){n[i]=t[i]}),n}function Y3(t){return Xw+=1,(t==null?"":String(t))+Xw}function q3(t,e){if(!Gu(t)&&(X1(t,"paginationOption")||X1(t,"customOption")))return t[$w(e)];var n;return cl(e)?n=e(t):Gu(t)?n=t:n=t[e],Gu(n)||_E()(!1),n}const Oc=q3;function $3(t,e){var n=e.allowNew,i=e.labelKey,c=e.text;return!n||!c.trim()?!1:cl(n)?n(t,e):!t.some(function(S){return Oc(S,i)===c})}const SE=$3;var EE=Fn(5215),og=Fn.n(EE);function ru(t,e){if(!Gu(t))return t[e]}var Gw=[{base:"A",letters:"A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",letters:"\uA732"},{base:"AE",letters:"\xC6\u01FC\u01E2"},{base:"AO",letters:"\uA734"},{base:"AU",letters:"\uA736"},{base:"AV",letters:"\uA738\uA73A"},{base:"AY",letters:"\uA73C"},{base:"B",letters:"B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"},{base:"C",letters:"C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"},{base:"D",letters:"D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\xD0"},{base:"DZ",letters:"\u01F1\u01C4"},{base:"Dz",letters:"\u01F2\u01C5"},{base:"E",letters:"E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"},{base:"F",letters:"F\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",letters:"G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"},{base:"H",letters:"H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",letters:"I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",letters:"J\u24BF\uFF2A\u0134\u0248"},{base:"K",letters:"K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",letters:"L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",letters:"\u01C7"},{base:"Lj",letters:"\u01C8"},{base:"M",letters:"M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"},{base:"N",letters:"N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"},{base:"NJ",letters:"\u01CA"},{base:"Nj",letters:"\u01CB"},{base:"O",letters:"O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OI",letters:"\u01A2"},{base:"OO",letters:"\uA74E"},{base:"OU",letters:"\u0222"},{base:"OE",letters:"\x8C\u0152"},{base:"oe",letters:"\x9C\u0153"},{base:"P",letters:"P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",letters:"Q\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",letters:"R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",letters:"S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",letters:"T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"TZ",letters:"\uA728"},{base:"U",letters:"U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",letters:"V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",letters:"\uA760"},{base:"W",letters:"W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",letters:"X\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",letters:"Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",letters:"Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",letters:"a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"},{base:"aa",letters:"\uA733"},{base:"ae",letters:"\xE6\u01FD\u01E3"},{base:"ao",letters:"\uA735"},{base:"au",letters:"\uA737"},{base:"av",letters:"\uA739\uA73B"},{base:"ay",letters:"\uA73D"},{base:"b",letters:"b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"},{base:"c",letters:"c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",letters:"d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"},{base:"dz",letters:"\u01F3\u01C6"},{base:"e",letters:"e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"},{base:"f",letters:"f\u24D5\uFF46\u1E1F\u0192\uA77C"},{base:"g",letters:"g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"},{base:"h",letters:"h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",letters:"j\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",letters:"k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",letters:"l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"},{base:"lj",letters:"\u01C9"},{base:"m",letters:"m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",letters:"n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"},{base:"nj",letters:"\u01CC"},{base:"o",letters:"o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"},{base:"oi",letters:"\u01A3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\uA74F"},{base:"p",letters:"p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"},{base:"q",letters:"q\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",letters:"r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",letters:"s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"},{base:"t",letters:"t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"tz",letters:"\uA729"},{base:"u",letters:"u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",letters:"v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",letters:"\uA761"},{base:"w",letters:"w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",letters:"x\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",letters:"y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",letters:"z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}].reduce(function(t,e){var n=e.base,i=e.letters;return i.split("").forEach(function(c){t[c]=n}),t},{}),CE="\u0300-\u036F",K1="\u3099\u309A";function ag(t){return t.normalize("NFD").replace(new RegExp("[".concat(CE).concat(K1,"]"),"g"),"").replace(/[^\u0000-\u007E]/g,function(e){return Gw[e]||e})}var ME=Fn(6365),wp=Fn.n(ME),_p={};function bs(t,e){if(!t&&e.indexOf("deprecated")!==-1){if(_p[e])return;_p[e]=!0}for(var n=arguments.length,i=new Array(n>2?n-2:0),c=2;c<n;c++)i[c-2]=arguments[c];wp().apply(void 0,[t,"[react-bootstrap-typeahead] ".concat(e)].concat(i))}function Z1(){_p={}}function Kw(t,e,n){var i=t,c=e;return n.caseSensitive||(i=i.toLowerCase(),c=c.toLowerCase()),n.ignoreDiacritics&&(i=ag(i),c=ag(c)),c.indexOf(i)!==-1}function kE(t,e){var n=e.filterBy,i=e.labelKey,c=e.multiple,S=e.selected,F=e.text;if(c&&S.some(function(ut){return og()(ut,t)}))return!1;if(cl(i))return Kw(F,i(t),e);var nt=n.slice();return Gu(i)&&nt.indexOf(i)===-1&&nt.unshift(i),Gu(t)?(bs(nt.length<=1,"You cannot filter by properties when `option` is a string."),Kw(F,t,e)):nt.some(function(ut){var yt=ru(t,ut);return Gu(yt)||(bs(!1,"Fields passed to `filterBy` should have string values. Value will be converted to a string; results may be unexpected."),yt=String(yt)),Kw(F,yt,e)})}function Q1(t){return t.selectionStart!=null}function X3(t,e){var n=!1;return t.key==="ArrowRight"&&(n=Q1(t.currentTarget)?t.currentTarget.selectionStart===t.currentTarget.value.length:!0),t.key==="Tab"&&(t.preventDefault(),n=!0),e?e(n,t):n}var G3="i",gy=/[\u0300-\u036F]/;function K3(t){return typeof t!="string"&&_E()(!1),t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Zw(t,e){var n=new RegExp(K3(ag(e)),G3),i=n.exec(ag(t));if(!i)return null;var c=i.index,S=i[0].length;if(gy.test(t)){for(var F=0;F<=c;F++)gy.test(t[F])&&(c+=1);for(var nt=c;nt<=c+S;nt++)gy.test(t[nt])&&(S+=1)}return{end:c+S,start:c}}function TE(t){var e=t.activeIndex,n=t.initialItem,i=t.isFocused,c=t.isMenuShown,S=t.labelKey,F=t.multiple,nt=t.selected,ut=t.text;if(!ut||!i||!c||!n||!Gu(n)&&X1(n,"customOption")||!Gu(n)&&n.disabled||e>-1||nt.length&&!F)return"";var yt=Oc(n,S),_t=Zw(yt.toLowerCase(),ut.toLowerCase());return _t&&_t.start===0?ut+yt.slice(_t.end,yt.length):""}const Z3=TE;var AE=Fn(9122),os=Fn.n(AE);function PE(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;return"".concat(t,"-item-").concat(e)}var OE=["activeIndex","id","isFocused","isMenuShown","multiple","onClick","onFocus","placeholder"];function Qw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),n.push.apply(n,i)}return n}function J1(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Qw(Object(n),!0).forEach(function(i){bi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qw(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var Q3=function(e){var n=e.activeIndex,i=e.id,c=e.isFocused,S=e.isMenuShown,F=e.multiple,nt=e.onClick,ut=e.onFocus,yt=e.placeholder,_t=vs(e,OE);return function(){var zt,Ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Yt=X1(Ht,"className")?String(Ht.className):void 0;return J1(J1(J1(J1({autoComplete:"off",placeholder:yt,type:"text"},Ht),_t),{},{"aria-activedescendant":n>=0?PE(i,n):void 0,"aria-autocomplete":"both","aria-expanded":S,"aria-haspopup":"listbox","aria-multiselectable":F||void 0,"aria-owns":S?i:void 0,className:os()((zt={},bi(zt,Yt||"",!F),bi(zt,"focus",c),zt))},F&&{inputClassName:Yt}),{},{onClick:nt,onFocus:ut,role:"combobox"})}};const tb=Q3;function If(t){var e=t.activeItem,n=t.labelKey,i=t.multiple,c=t.selected,S=t.text;return e?Oc(e,n):!i&&c.length&&c[0]?Oc(c[0],n):S}const NE=If;function DE(t){var e=t.allowNew,n=t.highlightOnlyResult,i=t.results;return!n||e?!1:i.length===1&&!ru(i[0],"disabled")}const Jw=DE;function t_(t,e){return!e||e>=t.length?t:t.slice(0,e)}const J3=t_;function RE(t,e){var n=e[t];return!!n&&!!ru(n,"disabled")}function yy(t,e,n){for(var i=t;RE(i,n);)i+=e==="ArrowUp"?-1:1;return i}function LE(t,e,n){var i=t;return i+=e==="ArrowUp"?-1:1,i=yy(i,e,n),i===n.length?i=-1:i===-2&&(i=n.length-1,i=yy(i,e,n)),i}function IE(t){var e=t.open,n=t.minLength,i=t.showMenu,c=t.text;return e||e===!1?e:c.length<n?!1:i}function eb(t){t.preventDefault()}function vy(t){return t==="lg"}function jE(t){return t==="sm"}var Yi=["className","isInvalid","isValid","size"];function BE(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),n.push.apply(n,i)}return n}function FE(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?BE(Object(n),!0).forEach(function(i){bi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):BE(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function zE(t){var e=t.className,n=t.isInvalid,i=t.isValid,c=t.size,S=vs(t,Yi);return FE(FE({},S),{},{className:os()("form-control","rbt-input",{"form-control-lg":vy(c),"form-control-sm":jE(c),"is-invalid":n,"is-valid":i},e)})}function tA(t,e){var n=!t&&e,i=t&&!e,c,S,F;n?(c="uncontrolled",S="controlled",F="an"):(c="controlled",S="uncontrolled",F="a");var nt="You are changing ".concat(F," ").concat(c," typeahead to be ").concat(S,". ")+"Input elements should not switch from ".concat(c," to ").concat(S," (or vice versa). ")+"Decide between using a controlled or uncontrolled element for the lifetime of the component.";bs(!(n||i),nt)}var eA=[{alt:"onBlur",prop:"onBlur"},{alt:"onInputChange",prop:"onChange"},{alt:"onFocus",prop:"onFocus"},{alt:"onKeyDown",prop:"onKeyDown"}],UE=Rn().oneOf(V3);function Nc(t,e){return function(n,i,c){Rn().checkPropTypes(bi({},i,t),n,"prop",c),cl(e)&&e(n,i,c)}}function nA(t){var e=t.caseSensitive,n=t.filterBy;bs(!e||typeof n!="function","Your `filterBy` function will override the `caseSensitive` prop.")}function wO(t,e){return function(n,i,c){return n[i]!=null&&warn(!1,"The `".concat(i,"` prop is deprecated. ").concat(e)),PropTypes.checkPropTypes(_defineProperty({},i,t),n,"prop",c)}}function rA(t){var e=t.defaultInputValue,n=t.defaultSelected,i=t.multiple,c=t.selected,S=n.length?"defaultSelected":"selected";bs(!(!i&&e&&(n.length||c&&c.length)),"`defaultInputValue` will be overridden by the value from `".concat(S,"`."))}function Ho(t){var e=t.defaultSelected,n=t.multiple;bs(n||e.length<=1,"You are passing multiple options to the `defaultSelected` prop of a Typeahead in single-select mode. The selections will be truncated to a single selection.")}function HE(t){var e=t.allowNew,n=t.highlightOnlyResult;bs(!(n&&e),"`highlightOnlyResult` will not work with `allowNew`.")}function iA(t){var e=t.filterBy,n=t.ignoreDiacritics;bs(n||typeof e!="function","Your `filterBy` function will override the `ignoreDiacritics` prop.")}function VE(t){var e=t.inputProps;e&&Object.prototype.toString.call(e)==="[object Object]"&&eA.forEach(function(n){var i=n.alt,c=n.prop,S=i?" Use the top-level `".concat(i,"` prop instead."):null;bs(!e[c],"The `".concat(c,"` property of `inputProps` will be ignored.").concat(S))})}function WE(t,e,n){bs(t[e]!=null,"The prop `".concat(e,"` is required to make `").concat(n,"` ")+"accessible for users of assistive technologies such as screen readers.")}function YE(t){var e=t.allowNew,n=t.labelKey;bs(!(cl(n)&&e),"`labelKey` must be a string when `allowNew={true}`.")}var sg=Rn().oneOfType([Rn().object,Rn().string]);function qE(t){var e=t.multiple,n=t.onChange,i=t.selected;bs(e||!i||i.length<=1,"You are passing multiple options to the `selected` prop of a Typeahead in single-select mode. This may lead to unexpected behaviors or errors."),bs(!i||i&&cl(n),"You provided a `selected` prop without an `onChange` handler. If you want the typeahead to be uncontrolled, use `defaultSelected`. Otherwise, set `onChange`.")}var oA=["allowNew","delay","emptyLabel","isLoading","minLength","onInputChange","onSearch","options","promptText","searchText","useCache"];function e_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),n.push.apply(n,i)}return n}function $E(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?e_(Object(n),!0).forEach(function(i){bi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e_(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var XE={delay:Rn().number,isLoading:Rn().bool.isRequired,minLength:Rn().number,onSearch:Rn().func.isRequired,options:Rn().arrayOf(sg),promptText:Rn().node,searchText:Rn().node,useCache:Rn().bool};function GE(t){var e=t.allowNew,n=t.delay,i=n===void 0?200:n,c=t.emptyLabel,S=t.isLoading,F=t.minLength,nt=F===void 0?2:F,ut=t.onInputChange,yt=t.onSearch,_t=t.options,zt=_t===void 0?[]:_t,Ht=t.promptText,Yt=Ht===void 0?"Type to search...":Ht,re=t.searchText,ue=re===void 0?"Searching...":re,oe=t.useCache,de=oe===void 0?!0:oe,pe=vs(t,oA),_e=(0,W.useRef)({}),ge=(0,W.useRef)(null),qe=(0,W.useRef)(t.defaultInputValue||""),De=U3(),$e=H3(t),Ye=(0,W.useCallback)(function(kn){if(qe.current=kn,!(!kn||nt&&kn.length<nt)){if(de&&_e.current[kn]){De();return}yt(kn)}},[De,nt,yt,de]);(0,W.useEffect)(function(){return ge.current=z3()(Ye,i),function(){ge.current&&ge.current.cancel()}},[i,Ye]),(0,W.useEffect)(function(){!S&&$e&&$e.isLoading&&de&&(_e.current[qe.current]=zt)});var tn=function(){return qe.current.length?S?ue:c:Yt},gn=(0,W.useCallback)(function(kn,Zn){ut&&ut(kn,Zn),ge.current&&ge.current(kn)},[ut]),Cn=_e.current[qe.current];return $E($E({},pe),{},{allowNew:cl(e)?e:e&&!S,emptyLabel:tn(),isLoading:S,minLength:nt,onInputChange:gn,options:de&&Cn?Cn:zt})}function aA(t){warn(!1,"Warning: `withAsync` is deprecated and will be removed in the next major version. Use `useAsync` instead.");var e=forwardRef(function(n,i){return React.createElement(t,_extends({},n,GE(n),{ref:i}))});return e.displayName="withAsync(".concat(getDisplayName(t),")"),e.propTypes=XE,e}function KE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n_(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,vE(i.key),i)}}function ZE(t,e,n){return e&&n_(t.prototype,e),n&&n_(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function vo(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r_(t,e){return r_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},r_(t,e)}function i_(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r_(t,e)}function QE(t,e){if(e&&(ig(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vo(t)}function Sp(t){return Sp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sp(t)}var sA={activeIndex:-1,hintText:"",id:"",initialItem:null,inputNode:null,isOnlyResult:!1,onActiveItemChange:nu,onAdd:nu,onInitialItemChange:nu,onMenuItemClick:nu,setItem:nu},o_=(0,W.createContext)(sA),JE=function(){return(0,W.useContext)(o_)};function a_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),n.push.apply(n,i)}return n}function lg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?a_(Object(n),!0).forEach(function(i){bi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a_(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var tC=["activeIndex","disabled","id","inputRef","isFocused","isMenuShown","multiple","onBlur","onChange","onClick","onFocus","onKeyDown","placeholder"],lA=["activeIndex","hideMenu","isMenuShown","labelKey","onClear","onHide","onRemove","results","selected","text","toggleMenu"],eC=["activeIndex","id","initialItem","inputNode","onActiveItemChange","onAdd","onInitialItemChange","onMenuItemClick","setItem"],uA=function(e){var n=e.allowNew,i=e.children,c=e.initialItem,S=e.isMenuShown,F=e.onAdd,nt=e.onInitialItemChange,ut=e.onKeyDown,yt=e.onMenuToggle,_t=e.results,zt=e.selectHint,Ht=Z3(e);(0,W.useEffect)(function(){n||_t.length||nt()});var Yt=(0,W.useRef)(!0);(0,W.useEffect)(function(){if(Yt.current){Yt.current=!1;return}yt(S)},[S,yt]);var re=function(pe){if(ut(pe),!!c){var _e=pe.key==="Enter"&&Jw(e),ge=Ht&&X3(pe,zt);(_e||ge)&&F(c)}},ue=lg(lg({},G1(e,lA)),{},{getInputProps:tb(lg(lg({},G1(e,tC)),{},{onKeyDown:re,value:NE(e)}))}),oe=lg(lg({},G1(e,eC)),{},{hintText:Ht,isOnlyResult:Jw(e)});return W.createElement(o_.Provider,{value:oe},cl(i)?i(ue):i)};const nC=uA;function rC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),n.push.apply(n,i)}return n}function wh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?rC(Object(n),!0).forEach(function(i){bi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rC(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function nb(t){var e=t.defaultInputValue,n=t.defaultOpen,i=t.defaultSelected,c=t.maxResults,S=t.multiple,F=t.selected?t.selected.slice():i.slice(),nt=e;return!S&&F.length&&(nt=Oc(F[0],t.labelKey),F.length>1&&(F=F.slice(0,1))),{activeIndex:-1,activeItem:void 0,initialItem:void 0,isFocused:!1,selected:F,showMenu:n,shownResults:c,text:nt}}function s_(t,e){return wh(wh({},nb(e)),{},{isFocused:t.isFocused,selected:[],text:""})}function iC(t){return wh(wh({},t),{},{isFocused:!0,showMenu:!0})}function by(t,e){var n=nb(e),i=n.activeIndex,c=n.activeItem,S=n.initialItem,F=n.shownResults;return wh(wh({},t),{},{activeIndex:i,activeItem:c,initialItem:S,showMenu:!1,shownResults:F})}function cA(t,e){return t.showMenu?by(t,e):wh(wh({},t),{},{showMenu:!0})}var oC=["onChange"];function aC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),n.push.apply(n,i)}return n}function _h(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?aC(Object(n),!0).forEach(function(i){bi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):aC(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function hA(t){var e=sC();return function(){var i=Sp(t),c;if(e){var S=Sp(this).constructor;c=Reflect.construct(i,arguments,S)}else c=i.apply(this,arguments);return QE(this,c)}}function sC(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var fA={allowNew:Rn().oneOfType([Rn().bool,Rn().func]),autoFocus:Rn().bool,caseSensitive:Nc(Rn().bool,nA),defaultInputValue:Nc(Rn().string,rA),defaultOpen:Rn().bool,defaultSelected:Nc(Rn().arrayOf(sg),Ho),filterBy:Rn().oneOfType([Rn().arrayOf(Rn().string.isRequired),Rn().func]),highlightOnlyResult:Nc(Rn().bool,HE),id:Nc(Rn().oneOfType([Rn().number,Rn().string]),WE),ignoreDiacritics:Nc(Rn().bool,iA),labelKey:Nc(Rn().oneOfType([Rn().string,Rn().func]),YE),maxResults:Rn().number,minLength:Rn().number,multiple:Rn().bool,onBlur:Rn().func,onChange:Rn().func,onFocus:Rn().func,onInputChange:Rn().func,onKeyDown:Rn().func,onMenuToggle:Rn().func,onPaginate:Rn().func,open:Rn().bool,options:Rn().arrayOf(sg).isRequired,paginate:Rn().bool,selected:Nc(Rn().arrayOf(sg),qE)},lC={allowNew:!1,autoFocus:!1,caseSensitive:!1,defaultInputValue:"",defaultOpen:!1,defaultSelected:[],filterBy:[],highlightOnlyResult:!1,ignoreDiacritics:!0,labelKey:wE,maxResults:100,minLength:0,multiple:!1,onBlur:nu,onFocus:nu,onInputChange:nu,onKeyDown:nu,onMenuToggle:nu,onPaginate:nu,paginate:!0};function dA(t,e){var n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value");n&&n.set&&n.set.call(t,e);var i=new Event("input",{bubbles:!0});t.dispatchEvent(i)}var rb=function(t){i_(n,t);var e=hA(n);function n(){var i;KE(this,n);for(var c=arguments.length,S=new Array(c),F=0;F<c;F++)S[F]=arguments[F];return i=e.call.apply(e,[this].concat(S)),bi(vo(i),"state",nb(i.props)),bi(vo(i),"inputNode",null),bi(vo(i),"isMenuShown",!1),bi(vo(i),"items",[]),bi(vo(i),"blur",function(){i.inputNode&&i.inputNode.blur(),i.hideMenu()}),bi(vo(i),"clear",function(){i.setState(s_)}),bi(vo(i),"focus",function(){i.inputNode&&i.inputNode.focus()}),bi(vo(i),"getInput",function(){return i.inputNode}),bi(vo(i),"inputRef",function(nt){i.inputNode=nt}),bi(vo(i),"setItem",function(nt,ut){i.items[ut]=nt}),bi(vo(i),"hideMenu",function(){i.setState(by)}),bi(vo(i),"toggleMenu",function(){i.setState(cA)}),bi(vo(i),"_handleActiveIndexChange",function(nt){i.setState(function(ut){return{activeIndex:nt,activeItem:nt>=0?ut.activeItem:void 0}})}),bi(vo(i),"_handleActiveItemChange",function(nt){og()(nt,i.state.activeItem)||i.setState({activeItem:nt})}),bi(vo(i),"_handleBlur",function(nt){nt.persist(),i.setState({isFocused:!1},function(){return i.props.onBlur(nt)})}),bi(vo(i),"_handleChange",function(nt){i.props.onChange&&i.props.onChange(nt)}),bi(vo(i),"_handleClear",function(){i.inputNode&&dA(i.inputNode,""),i.setState(s_,function(){i.props.multiple&&i._handleChange([])})}),bi(vo(i),"_handleClick",function(nt){var ut;nt.persist();var yt=(ut=i.props.inputProps)===null||ut===void 0?void 0:ut.onClick;i.setState(iC,function(){return cl(yt)&&yt(nt)})}),bi(vo(i),"_handleFocus",function(nt){nt.persist(),i.setState(iC,function(){return i.props.onFocus(nt)})}),bi(vo(i),"_handleInitialItemChange",function(nt){og()(nt,i.state.initialItem)||i.setState({initialItem:nt})}),bi(vo(i),"_handleInputChange",function(nt){nt.persist();var ut=nt.currentTarget.value,yt=i.props,_t=yt.multiple,zt=yt.onInputChange,Ht=i.state.selected.length&&!_t;i.setState(function(Yt,re){var ue=nb(re),oe=ue.activeIndex,de=ue.activeItem,pe=ue.shownResults;return{activeIndex:oe,activeItem:de,selected:Ht?[]:Yt.selected,showMenu:!0,shownResults:pe,text:ut}},function(){zt(ut,nt),Ht&&i._handleChange([])})}),bi(vo(i),"_handleKeyDown",function(nt){var ut=i.state.activeItem;if(!i.isMenuShown){(nt.key==="ArrowUp"||nt.key==="ArrowDown")&&i.setState({showMenu:!0}),i.props.onKeyDown(nt);return}switch(nt.key){case"ArrowUp":case"ArrowDown":nt.preventDefault(),i._handleActiveIndexChange(LE(i.state.activeIndex,nt.key,i.items));break;case"Enter":nt.preventDefault(),ut&&i._handleMenuItemSelect(ut,nt);break;case"Escape":case"Tab":i.hideMenu();break;default:break}i.props.onKeyDown(nt)}),bi(vo(i),"_handleMenuItemSelect",function(nt,ut){ru(nt,"paginationOption")?i._handlePaginate(ut):i._handleSelectionAdd(nt)}),bi(vo(i),"_handlePaginate",function(nt){nt.persist(),i.setState(function(ut,yt){return{shownResults:ut.shownResults+yt.maxResults}},function(){return i.props.onPaginate(nt,i.state.shownResults)})}),bi(vo(i),"_handleSelectionAdd",function(nt){var ut=i.props,yt=ut.multiple,_t=ut.labelKey,zt,Ht=nt,Yt;!Gu(Ht)&&Ht.customOption&&(Ht=_h(_h({},Ht),{},{id:Y3("new-id-")})),yt?(zt=i.state.selected.concat(Ht),Yt=""):(zt=[Ht],Yt=Oc(Ht,_t)),i.setState(function(re,ue){return _h(_h({},by(re,ue)),{},{initialItem:Ht,selected:zt,text:Yt})},function(){return i._handleChange(zt)})}),bi(vo(i),"_handleSelectionRemove",function(nt){var ut=i.state.selected.filter(function(yt){return!og()(yt,nt)});i.focus(),i.setState(function(yt,_t){return _h(_h({},by(yt,_t)),{},{selected:ut})},function(){return i._handleChange(ut)})}),i}return ZE(n,[{key:"componentDidMount",value:function(){this.props.autoFocus&&this.focus()}},{key:"componentDidUpdate",value:function(c,S){var F=this.props,nt=F.labelKey,ut=F.multiple,yt=F.selected;tA(yt,c.selected),yt&&!og()(yt,S.selected)&&(this.setState({selected:yt}),ut||this.setState({text:yt.length?Oc(yt[0],nt):""}))}},{key:"render",value:function(){var c=this.props,S=c.onChange,F=vs(c,oC),nt=_h(_h({},F),this.state),ut=nt.filterBy,yt=nt.labelKey,_t=nt.options,zt=nt.paginate,Ht=nt.shownResults,Yt=nt.text;this.isMenuShown=IE(nt),this.items=[];var re=[];if(this.isMenuShown){var ue=cl(ut)?ut:kE;re=_t.filter(function(pe){return ue(pe,nt)});var oe=zt&&re.length>Ht;if(re=J3(re,Ht),SE(re,nt)&&re.push(bi({customOption:!0},$w(yt),Yt)),oe){var de;re.push((de={},bi(de,$w(yt),""),bi(de,"paginationOption",!0),de))}}return W.createElement(nC,_a({},nt,{hideMenu:this.hideMenu,inputNode:this.inputNode,inputRef:this.inputRef,isMenuShown:this.isMenuShown,onActiveItemChange:this._handleActiveItemChange,onAdd:this._handleSelectionAdd,onBlur:this._handleBlur,onChange:this._handleInputChange,onClear:this._handleClear,onClick:this._handleClick,onFocus:this._handleFocus,onHide:this.hideMenu,onInitialItemChange:this._handleInitialItemChange,onKeyDown:this._handleKeyDown,onMenuItemClick:this._handleMenuItemSelect,onRemove:this._handleSelectionRemove,results:re,setItem:this.setItem,toggleMenu:this.toggleMenu}))}}]),n}(W.Component);bi(rb,"propTypes",fA),bi(rb,"defaultProps",lC);const pA=rb;var uC=["className","label","onClick","onKeyDown","size"],mA={label:Rn().string,onClick:Rn().func,onKeyDown:Rn().func,size:UE},l_=function(e){var n=e.className,i=e.label,c=i===void 0?"Clear":i,S=e.onClick,F=e.onKeyDown,nt=e.size,ut=vs(e,uC);return W.createElement("button",_a({},ut,{"aria-label":c,className:os()("close","btn-close","rbt-close",{"rbt-close-lg":vy(nt),"rbt-close-sm":jE(nt)},n),onClick:function(_t){_t.stopPropagation(),S&&S(_t)},onKeyDown:function(_t){_t.key==="Backspace"&&_t.preventDefault(),F&&F(_t)},type:"button"}),W.createElement("span",{"aria-hidden":"true",className:"rbt-close-content"},"\xD7"),W.createElement("span",{className:"sr-only visually-hidden"},c))};l_.propTypes=mA;const cC=l_;var hC={label:Rn().string},fC=function(e){var n=e.label,i=n===void 0?"Loading...":n;return W.createElement("div",{className:"rbt-loader spinner-border spinner-border-sm",role:"status"},W.createElement("span",{className:"sr-only visually-hidden"},i))};fC.propTypes=hC;const gA=fC;function yA(t){if(Array.isArray(t))return t}function vA(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i,c,S,F,nt=[],ut=!0,yt=!1;try{if(S=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;ut=!1}else for(;!(ut=(i=S.call(n)).done)&&(nt.push(i.value),nt.length!==e);ut=!0);}catch(_t){yt=!0,c=_t}finally{try{if(!ut&&n.return!=null&&(F=n.return(),Object(F)!==F))return}finally{if(yt)throw c}}return nt}}function dC(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function ib(t,e){if(t){if(typeof t=="string")return dC(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dC(t,e):void 0}}function bA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
472
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ug(t,e){return yA(t)||vA(t,e)||ib(t,e)||bA()}function Il(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ep(t){var e=Il(t).Element;return t instanceof e||t instanceof Element}function iu(t){var e=Il(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function u_(t){if(typeof ShadowRoot=="undefined")return!1;var e=Il(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var Dc=Math.max,ob=Math.min,cg=Math.round;function c_(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function pC(){return!/^((?!chrome|android).)*safari/i.test(c_())}function hg(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var i=t.getBoundingClientRect(),c=1,S=1;e&&iu(t)&&(c=t.offsetWidth>0&&cg(i.width)/t.offsetWidth||1,S=t.offsetHeight>0&&cg(i.height)/t.offsetHeight||1);var F=Ep(t)?Il(t):window,nt=F.visualViewport,ut=!pC()&&n,yt=(i.left+(ut&&nt?nt.offsetLeft:0))/c,_t=(i.top+(ut&&nt?nt.offsetTop:0))/S,zt=i.width/c,Ht=i.height/S;return{width:zt,height:Ht,top:_t,right:yt+zt,bottom:_t+Ht,left:yt,x:yt,y:_t}}function h_(t){var e=Il(t),n=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:n,scrollTop:i}}function mC(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function f_(t){return t===Il(t)||!iu(t)?h_(t):mC(t)}function Rc(t){return t?(t.nodeName||"").toLowerCase():null}function jf(t){return((Ep(t)?t.ownerDocument:t.document)||window.document).documentElement}function Gi(t){return hg(jf(t)).left+h_(t).scrollLeft}function Lc(t){return Il(t).getComputedStyle(t)}function as(t){var e=Lc(t),n=e.overflow,i=e.overflowX,c=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+c+i)}function Cp(t){var e=t.getBoundingClientRect(),n=cg(e.width)/t.offsetWidth||1,i=cg(e.height)/t.offsetHeight||1;return n!==1||i!==1}function xA(t,e,n){n===void 0&&(n=!1);var i=iu(e),c=iu(e)&&Cp(e),S=jf(e),F=hg(t,c,n),nt={scrollLeft:0,scrollTop:0},ut={x:0,y:0};return(i||!i&&!n)&&((Rc(e)!=="body"||as(S))&&(nt=f_(e)),iu(e)?(ut=hg(e,!0),ut.x+=e.clientLeft,ut.y+=e.clientTop):S&&(ut.x=Gi(S))),{x:F.left+nt.scrollLeft-ut.x,y:F.top+nt.scrollTop-ut.y,width:F.width,height:F.height}}function xy(t){var e=hg(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function jl(t){return Rc(t)==="html"?t:t.assignedSlot||t.parentNode||(u_(t)?t.host:null)||jf(t)}function Mp(t){return["html","body","#document"].indexOf(Rc(t))>=0?t.ownerDocument.body:iu(t)&&as(t)?t:Mp(jl(t))}function Ua(t,e){var n;e===void 0&&(e=[]);var i=Mp(t),c=i===((n=t.ownerDocument)==null?void 0:n.body),S=Il(i),F=c?[S].concat(S.visualViewport||[],as(i)?i:[]):i,nt=e.concat(F);return c?nt:nt.concat(Ua(jl(F)))}function Bf(t){return["table","td","th"].indexOf(Rc(t))>=0}function wy(t){return!iu(t)||Lc(t).position==="fixed"?null:t.offsetParent}function Ff(t){var e=/firefox/i.test(c_()),n=/Trident/i.test(c_());if(n&&iu(t)){var i=Lc(t);if(i.position==="fixed")return null}var c=jl(t);for(u_(c)&&(c=c.host);iu(c)&&["html","body"].indexOf(Rc(c))<0;){var S=Lc(c);if(S.transform!=="none"||S.perspective!=="none"||S.contain==="paint"||["transform","perspective"].indexOf(S.willChange)!==-1||e&&S.willChange==="filter"||e&&S.filter&&S.filter!=="none")return c;c=c.parentNode}return null}function _y(t){for(var e=Il(t),n=wy(t);n&&Bf(n)&&Lc(n).position==="static";)n=wy(n);return n&&(Rc(n)==="html"||Rc(n)==="body"&&Lc(n).position==="static")?e:n||Ff(t)||e}var qs="top",ou="bottom",au="right",hl="left",d_="auto",Sy=[qs,ou,au,hl],fg="start",zf="end",wA="clippingParents",p_="viewport",Uf="popper",m_="reference",ab=Sy.reduce(function(t,e){return t.concat([e+"-"+fg,e+"-"+zf])},[]),sb=[].concat(Sy,[d_]).reduce(function(t,e){return t.concat([e,e+"-"+fg,e+"-"+zf])},[]),gC="beforeRead",_A="read",SA="afterRead",EA="beforeMain",yC="main",vC="afterMain",g_="beforeWrite",Ey="write",bC="afterWrite",xC=[gC,_A,SA,EA,yC,vC,g_,Ey,bC];function Cy(t){var e=new Map,n=new Set,i=[];t.forEach(function(S){e.set(S.name,S)});function c(S){n.add(S.name);var F=[].concat(S.requires||[],S.requiresIfExists||[]);F.forEach(function(nt){if(!n.has(nt)){var ut=e.get(nt);ut&&c(ut)}}),i.push(S)}return t.forEach(function(S){n.has(S.name)||c(S)}),i}function y_(t){var e=Cy(t);return xC.reduce(function(n,i){return n.concat(e.filter(function(c){return c.phase===i}))},[])}function CA(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function MA(t){var e=t.reduce(function(n,i){var c=n[i.name];return n[i.name]=c?Object.assign({},c,i,{options:Object.assign({},c.options,i.options),data:Object.assign({},c.data,i.data)}):i,n},{});return Object.keys(e).map(function(n){return e[n]})}var lb={placement:"bottom",modifiers:[],strategy:"absolute"};function wC(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function _C(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,i=n===void 0?[]:n,c=e.defaultOptions,S=c===void 0?lb:c;return function(nt,ut,yt){yt===void 0&&(yt=S);var _t={placement:"bottom",orderedModifiers:[],options:Object.assign({},lb,S),modifiersData:{},elements:{reference:nt,popper:ut},attributes:{},styles:{}},zt=[],Ht=!1,Yt={state:_t,setOptions:function(de){var pe=typeof de=="function"?de(_t.options):de;ue(),_t.options=Object.assign({},S,_t.options,pe),_t.scrollParents={reference:Ep(nt)?Ua(nt):nt.contextElement?Ua(nt.contextElement):[],popper:Ua(ut)};var _e=y_(MA([].concat(i,_t.options.modifiers)));return _t.orderedModifiers=_e.filter(function(ge){return ge.enabled}),re(),Yt.update()},forceUpdate:function(){if(!Ht){var de=_t.elements,pe=de.reference,_e=de.popper;if(wC(pe,_e)){_t.rects={reference:xA(pe,_y(_e),_t.options.strategy==="fixed"),popper:xy(_e)},_t.reset=!1,_t.placement=_t.options.placement,_t.orderedModifiers.forEach(function(gn){return _t.modifiersData[gn.name]=Object.assign({},gn.data)});for(var ge=0;ge<_t.orderedModifiers.length;ge++){if(_t.reset===!0){_t.reset=!1,ge=-1;continue}var qe=_t.orderedModifiers[ge],De=qe.fn,$e=qe.options,Ye=$e===void 0?{}:$e,tn=qe.name;typeof De=="function"&&(_t=De({state:_t,options:Ye,name:tn,instance:Yt})||_t)}}}},update:CA(function(){return new Promise(function(oe){Yt.forceUpdate(),oe(_t)})}),destroy:function(){ue(),Ht=!0}};if(!wC(nt,ut))return Yt;Yt.setOptions(yt).then(function(oe){!Ht&&yt.onFirstUpdate&&yt.onFirstUpdate(oe)});function re(){_t.orderedModifiers.forEach(function(oe){var de=oe.name,pe=oe.options,_e=pe===void 0?{}:pe,ge=oe.effect;if(typeof ge=="function"){var qe=ge({state:_t,name:de,instance:Yt,options:_e}),De=function(){};zt.push(qe||De)}})}function ue(){zt.forEach(function(oe){return oe()}),zt=[]}return Yt}}var _O=null,ub={passive:!0};function kA(t){var e=t.state,n=t.instance,i=t.options,c=i.scroll,S=c===void 0?!0:c,F=i.resize,nt=F===void 0?!0:F,ut=Il(e.elements.popper),yt=[].concat(e.scrollParents.reference,e.scrollParents.popper);return S&&yt.forEach(function(_t){_t.addEventListener("scroll",n.update,ub)}),nt&&ut.addEventListener("resize",n.update,ub),function(){S&&yt.forEach(function(_t){_t.removeEventListener("scroll",n.update,ub)}),nt&&ut.removeEventListener("resize",n.update,ub)}}const SC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:kA,data:{}};function su(t){return t.split("-")[0]}function kp(t){return t.split("-")[1]}function cb(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function EC(t){var e=t.reference,n=t.element,i=t.placement,c=i?su(i):null,S=i?kp(i):null,F=e.x+e.width/2-n.width/2,nt=e.y+e.height/2-n.height/2,ut;switch(c){case qs:ut={x:F,y:e.y-n.height};break;case ou:ut={x:F,y:e.y+e.height};break;case au:ut={x:e.x+e.width,y:nt};break;case hl:ut={x:e.x-n.width,y:nt};break;default:ut={x:e.x,y:e.y}}var yt=c?cb(c):null;if(yt!=null){var _t=yt==="y"?"height":"width";switch(S){case fg:ut[yt]=ut[yt]-(e[_t]/2-n[_t]/2);break;case zf:ut[yt]=ut[yt]+(e[_t]/2-n[_t]/2);break;default:}}return ut}function CC(t){var e=t.state,n=t.name;e.modifiersData[n]=EC({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const MC={name:"popperOffsets",enabled:!0,phase:"read",fn:CC,data:{}};var kC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function TA(t,e){var n=t.x,i=t.y,c=e.devicePixelRatio||1;return{x:cg(n*c)/c||0,y:cg(i*c)/c||0}}function TC(t){var e,n=t.popper,i=t.popperRect,c=t.placement,S=t.variation,F=t.offsets,nt=t.position,ut=t.gpuAcceleration,yt=t.adaptive,_t=t.roundOffsets,zt=t.isFixed,Ht=F.x,Yt=Ht===void 0?0:Ht,re=F.y,ue=re===void 0?0:re,oe=typeof _t=="function"?_t({x:Yt,y:ue}):{x:Yt,y:ue};Yt=oe.x,ue=oe.y;var de=F.hasOwnProperty("x"),pe=F.hasOwnProperty("y"),_e=hl,ge=qs,qe=window;if(yt){var De=_y(n),$e="clientHeight",Ye="clientWidth";if(De===Il(n)&&(De=jf(n),Lc(De).position!=="static"&&nt==="absolute"&&($e="scrollHeight",Ye="scrollWidth")),De=De,c===qs||(c===hl||c===au)&&S===zf){ge=ou;var tn=zt&&De===qe&&qe.visualViewport?qe.visualViewport.height:De[$e];ue-=tn-i.height,ue*=ut?1:-1}if(c===hl||(c===qs||c===ou)&&S===zf){_e=au;var gn=zt&&De===qe&&qe.visualViewport?qe.visualViewport.width:De[Ye];Yt-=gn-i.width,Yt*=ut?1:-1}}var Cn=Object.assign({position:nt},yt&&kC),kn=_t===!0?TA({x:Yt,y:ue},Il(n)):{x:Yt,y:ue};if(Yt=kn.x,ue=kn.y,ut){var Zn;return Object.assign({},Cn,(Zn={},Zn[ge]=pe?"0":"",Zn[_e]=de?"0":"",Zn.transform=(qe.devicePixelRatio||1)<=1?"translate("+Yt+"px, "+ue+"px)":"translate3d("+Yt+"px, "+ue+"px, 0)",Zn))}return Object.assign({},Cn,(e={},e[ge]=pe?ue+"px":"",e[_e]=de?Yt+"px":"",e.transform="",e))}function AC(t){var e=t.state,n=t.options,i=n.gpuAcceleration,c=i===void 0?!0:i,S=n.adaptive,F=S===void 0?!0:S,nt=n.roundOffsets,ut=nt===void 0?!0:nt,yt={placement:su(e.placement),variation:kp(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:c,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,TC(Object.assign({},yt,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:F,roundOffsets:ut})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,TC(Object.assign({},yt,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:ut})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const v_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:AC,data:{}};function b_(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var i=e.styles[n]||{},c=e.attributes[n]||{},S=e.elements[n];!iu(S)||!Rc(S)||(Object.assign(S.style,i),Object.keys(c).forEach(function(F){var nt=c[F];nt===!1?S.removeAttribute(F):S.setAttribute(F,nt===!0?"":nt)}))})}function PC(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(i){var c=e.elements[i],S=e.attributes[i]||{},F=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:n[i]),nt=F.reduce(function(ut,yt){return ut[yt]="",ut},{});!iu(c)||!Rc(c)||(Object.assign(c.style,nt),Object.keys(S).forEach(function(ut){c.removeAttribute(ut)}))})}}const lu={name:"applyStyles",enabled:!0,phase:"write",fn:b_,effect:PC,requires:["computeStyles"]};function uu(t,e,n){var i=su(t),c=[hl,qs].indexOf(i)>=0?-1:1,S=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,F=S[0],nt=S[1];return F=F||0,nt=(nt||0)*c,[hl,au].indexOf(i)>=0?{x:nt,y:F}:{x:F,y:nt}}function x_(t){var e=t.state,n=t.options,i=t.name,c=n.offset,S=c===void 0?[0,0]:c,F=sb.reduce(function(_t,zt){return _t[zt]=uu(zt,e.rects,S),_t},{}),nt=F[e.placement],ut=nt.x,yt=nt.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=ut,e.modifiersData.popperOffsets.y+=yt),e.modifiersData[i]=F}const OC={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:x_};var NC={left:"right",right:"left",bottom:"top",top:"bottom"};function hb(t){return t.replace(/left|right|bottom|top/g,function(e){return NC[e]})}var AA={start:"end",end:"start"};function Sh(t){return t.replace(/start|end/g,function(e){return AA[e]})}function fb(t,e){var n=Il(t),i=jf(t),c=n.visualViewport,S=i.clientWidth,F=i.clientHeight,nt=0,ut=0;if(c){S=c.width,F=c.height;var yt=pC();(yt||!yt&&e==="fixed")&&(nt=c.offsetLeft,ut=c.offsetTop)}return{width:S,height:F,x:nt+Gi(t),y:ut}}function db(t){var e,n=jf(t),i=h_(t),c=(e=t.ownerDocument)==null?void 0:e.body,S=Dc(n.scrollWidth,n.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),F=Dc(n.scrollHeight,n.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),nt=-i.scrollLeft+Gi(t),ut=-i.scrollTop;return Lc(c||n).direction==="rtl"&&(nt+=Dc(n.clientWidth,c?c.clientWidth:0)-S),{width:S,height:F,x:nt,y:ut}}function DC(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&u_(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function pb(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function PA(t,e){var n=hg(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function w_(t,e,n){return e===p_?pb(fb(t,n)):Ep(e)?PA(e,n):pb(db(jf(t)))}function OA(t){var e=Ua(jl(t)),n=["absolute","fixed"].indexOf(Lc(t).position)>=0,i=n&&iu(t)?_y(t):t;return Ep(i)?e.filter(function(c){return Ep(c)&&DC(c,i)&&Rc(c)!=="body"}):[]}function RC(t,e,n,i){var c=e==="clippingParents"?OA(t):[].concat(e),S=[].concat(c,[n]),F=S[0],nt=S.reduce(function(ut,yt){var _t=w_(t,yt,i);return ut.top=Dc(_t.top,ut.top),ut.right=ob(_t.right,ut.right),ut.bottom=ob(_t.bottom,ut.bottom),ut.left=Dc(_t.left,ut.left),ut},w_(t,F,i));return nt.width=nt.right-nt.left,nt.height=nt.bottom-nt.top,nt.x=nt.left,nt.y=nt.top,nt}function LC(){return{top:0,right:0,bottom:0,left:0}}function My(t){return Object.assign({},LC(),t)}function mb(t,e){return e.reduce(function(n,i){return n[i]=t,n},{})}function ky(t,e){e===void 0&&(e={});var n=e,i=n.placement,c=i===void 0?t.placement:i,S=n.strategy,F=S===void 0?t.strategy:S,nt=n.boundary,ut=nt===void 0?wA:nt,yt=n.rootBoundary,_t=yt===void 0?p_:yt,zt=n.elementContext,Ht=zt===void 0?Uf:zt,Yt=n.altBoundary,re=Yt===void 0?!1:Yt,ue=n.padding,oe=ue===void 0?0:ue,de=My(typeof oe!="number"?oe:mb(oe,Sy)),pe=Ht===Uf?m_:Uf,_e=t.rects.popper,ge=t.elements[re?pe:Ht],qe=RC(Ep(ge)?ge:ge.contextElement||jf(t.elements.popper),ut,_t,F),De=hg(t.elements.reference),$e=EC({reference:De,element:_e,strategy:"absolute",placement:c}),Ye=pb(Object.assign({},_e,$e)),tn=Ht===Uf?Ye:De,gn={top:qe.top-tn.top+de.top,bottom:tn.bottom-qe.bottom+de.bottom,left:qe.left-tn.left+de.left,right:tn.right-qe.right+de.right},Cn=t.modifiersData.offset;if(Ht===Uf&&Cn){var kn=Cn[c];Object.keys(gn).forEach(function(Zn){var fn=[au,ou].indexOf(Zn)>=0?1:-1,jn=[qs,ou].indexOf(Zn)>=0?"y":"x";gn[Zn]+=kn[jn]*fn})}return gn}function __(t,e){e===void 0&&(e={});var n=e,i=n.placement,c=n.boundary,S=n.rootBoundary,F=n.padding,nt=n.flipVariations,ut=n.allowedAutoPlacements,yt=ut===void 0?sb:ut,_t=kp(i),zt=_t?nt?ab:ab.filter(function(re){return kp(re)===_t}):Sy,Ht=zt.filter(function(re){return yt.indexOf(re)>=0});Ht.length===0&&(Ht=zt);var Yt=Ht.reduce(function(re,ue){return re[ue]=ky(t,{placement:ue,boundary:c,rootBoundary:S,padding:F})[su(ue)],re},{});return Object.keys(Yt).sort(function(re,ue){return Yt[re]-Yt[ue]})}function NA(t){if(su(t)===d_)return[];var e=hb(t);return[Sh(t),e,Sh(e)]}function S_(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var c=n.mainAxis,S=c===void 0?!0:c,F=n.altAxis,nt=F===void 0?!0:F,ut=n.fallbackPlacements,yt=n.padding,_t=n.boundary,zt=n.rootBoundary,Ht=n.altBoundary,Yt=n.flipVariations,re=Yt===void 0?!0:Yt,ue=n.allowedAutoPlacements,oe=e.options.placement,de=su(oe),pe=de===oe,_e=ut||(pe||!re?[hb(oe)]:NA(oe)),ge=[oe].concat(_e).reduce(function(ai,Ei){return ai.concat(su(Ei)===d_?__(e,{placement:Ei,boundary:_t,rootBoundary:zt,padding:yt,flipVariations:re,allowedAutoPlacements:ue}):Ei)},[]),qe=e.rects.reference,De=e.rects.popper,$e=new Map,Ye=!0,tn=ge[0],gn=0;gn<ge.length;gn++){var Cn=ge[gn],kn=su(Cn),Zn=kp(Cn)===fg,fn=[qs,ou].indexOf(kn)>=0,jn=fn?"width":"height",On=ky(e,{placement:Cn,boundary:_t,rootBoundary:zt,altBoundary:Ht,padding:yt}),Vn=fn?Zn?au:hl:Zn?ou:qs;qe[jn]>De[jn]&&(Vn=hb(Vn));var wr=hb(Vn),Pr=[];if(S&&Pr.push(On[kn]<=0),nt&&Pr.push(On[Vn]<=0,On[wr]<=0),Pr.every(function(ai){return ai})){tn=Cn,Ye=!1;break}$e.set(Cn,Pr)}if(Ye)for(var _r=re?3:1,Ur=function(Ei){var Zi=ge.find(function($r){var Fi=$e.get($r);if(Fi)return Fi.slice(0,Ei).every(function(qo){return qo})});if(Zi)return tn=Zi,"break"},Hr=_r;Hr>0;Hr--){var Li=Ur(Hr);if(Li==="break")break}e.placement!==tn&&(e.modifiersData[i]._skip=!0,e.placement=tn,e.reset=!0)}}const IC={name:"flip",enabled:!0,phase:"main",fn:S_,requiresIfExists:["offset"],data:{_skip:!1}};function E_(t){return t==="x"?"y":"x"}function dg(t,e,n){return Dc(t,ob(e,n))}function DA(t,e,n){var i=dg(t,e,n);return i>n?n:i}function jC(t){var e=t.state,n=t.options,i=t.name,c=n.mainAxis,S=c===void 0?!0:c,F=n.altAxis,nt=F===void 0?!1:F,ut=n.boundary,yt=n.rootBoundary,_t=n.altBoundary,zt=n.padding,Ht=n.tether,Yt=Ht===void 0?!0:Ht,re=n.tetherOffset,ue=re===void 0?0:re,oe=ky(e,{boundary:ut,rootBoundary:yt,padding:zt,altBoundary:_t}),de=su(e.placement),pe=kp(e.placement),_e=!pe,ge=cb(de),qe=E_(ge),De=e.modifiersData.popperOffsets,$e=e.rects.reference,Ye=e.rects.popper,tn=typeof ue=="function"?ue(Object.assign({},e.rects,{placement:e.placement})):ue,gn=typeof tn=="number"?{mainAxis:tn,altAxis:tn}:Object.assign({mainAxis:0,altAxis:0},tn),Cn=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,kn={x:0,y:0};if(De){if(S){var Zn,fn=ge==="y"?qs:hl,jn=ge==="y"?ou:au,On=ge==="y"?"height":"width",Vn=De[ge],wr=Vn+oe[fn],Pr=Vn-oe[jn],_r=Yt?-Ye[On]/2:0,Ur=pe===fg?$e[On]:Ye[On],Hr=pe===fg?-Ye[On]:-$e[On],Li=e.elements.arrow,ai=Yt&&Li?xy(Li):{width:0,height:0},Ei=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:LC(),Zi=Ei[fn],$r=Ei[jn],Fi=dg(0,$e[On],ai[On]),qo=_e?$e[On]/2-_r-Fi-Zi-gn.mainAxis:Ur-Fi-Zi-gn.mainAxis,Ea=_e?-$e[On]/2+_r+Fi+$r+gn.mainAxis:Hr+Fi+$r+gn.mainAxis,zo=e.elements.arrow&&_y(e.elements.arrow),$o=zo?ge==="y"?zo.clientTop||0:zo.clientLeft||0:0,Da=(Zn=Cn==null?void 0:Cn[ge])!=null?Zn:0,Qu=Vn+qo-Da-$o,yu=Vn+Ea-Da,Up=dg(Yt?ob(wr,Qu):wr,Vn,Yt?Dc(Pr,yu):Pr);De[ge]=Up,kn[ge]=Up-Vn}if(nt){var Bi,Ca=ge==="x"?qs:hl,Hp=ge==="x"?ou:au,Rs=De[qe],Xb=qe==="y"?"height":"width",Ik=Rs+oe[Ca],Qf=Rs-oe[Hp],Vp=[qs,hl].indexOf(de)!==-1,N2=(Bi=Cn==null?void 0:Cn[qe])!=null?Bi:0,Gb=Vp?Ik:Rs-$e[Xb]-Ye[Xb]-N2+gn.altAxis,Lh=Vp?Rs+$e[Xb]+Ye[Xb]-N2-gn.altAxis:Qf,zc=Yt&&Vp?DA(Gb,Rs,Lh):dg(Yt?Gb:Ik,Rs,Yt?Lh:Qf);De[qe]=zc,kn[qe]=zc-Rs}e.modifiersData[i]=kn}}const BC={name:"preventOverflow",enabled:!0,phase:"main",fn:jC,requiresIfExists:["offset"]};var FC=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,My(typeof e!="number"?e:mb(e,Sy))};function RA(t){var e,n=t.state,i=t.name,c=t.options,S=n.elements.arrow,F=n.modifiersData.popperOffsets,nt=su(n.placement),ut=cb(nt),yt=[hl,au].indexOf(nt)>=0,_t=yt?"height":"width";if(!(!S||!F)){var zt=FC(c.padding,n),Ht=xy(S),Yt=ut==="y"?qs:hl,re=ut==="y"?ou:au,ue=n.rects.reference[_t]+n.rects.reference[ut]-F[ut]-n.rects.popper[_t],oe=F[ut]-n.rects.reference[ut],de=_y(S),pe=de?ut==="y"?de.clientHeight||0:de.clientWidth||0:0,_e=ue/2-oe/2,ge=zt[Yt],qe=pe-Ht[_t]-zt[re],De=pe/2-Ht[_t]/2+_e,$e=dg(ge,De,qe),Ye=ut;n.modifiersData[i]=(e={},e[Ye]=$e,e.centerOffset=$e-De,e)}}function zC(t){var e=t.state,n=t.options,i=n.element,c=i===void 0?"[data-popper-arrow]":i;c!=null&&(typeof c=="string"&&(c=e.elements.popper.querySelector(c),!c)||DC(e.elements.popper,c)&&(e.elements.arrow=c))}const UC={name:"arrow",enabled:!0,phase:"main",fn:RA,effect:zC,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function C_(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function M_(t){return[qs,au,ou,hl].some(function(e){return t[e]>=0})}function HC(t){var e=t.state,n=t.name,i=e.rects.reference,c=e.rects.popper,S=e.modifiersData.preventOverflow,F=ky(e,{elementContext:"reference"}),nt=ky(e,{altBoundary:!0}),ut=C_(F,i),yt=C_(nt,c,S),_t=M_(ut),zt=M_(yt);e.modifiersData[n]={referenceClippingOffsets:ut,popperEscapeOffsets:yt,isReferenceHidden:_t,hasPopperEscaped:zt},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":_t,"data-popper-escaped":zt})}const gb={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:HC};var yb=[SC,MC,v_,lu,OC,IC,BC,UC,gb],VC=_C({defaultModifiers:yb}),WC=Fn(2169),LA=Fn.n(WC),SO=function(e){return Array.isArray(e)?e[0]:e},YC=function(e){if(typeof e=="function"){for(var n=arguments.length,i=new Array(n>1?n-1:0),c=1;c<n;c++)i[c-1]=arguments[c];return e.apply(void 0,i)}},IA=function(e,n){if(typeof e=="function")return YC(e,n);e!=null&&(e.current=n)},qC=function(e){return e.reduce(function(n,i){var c=i[0],S=i[1];return n[c]=S,n},{})},Ty=typeof window!="undefined"&&window.document&&window.document.createElement?W.useLayoutEffect:W.useEffect,jA=[],BA=function(e,n,i){i===void 0&&(i={});var c=W.useRef(null),S={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||jA},F=W.useState({styles:{popper:{position:S.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),nt=F[0],ut=F[1],yt=W.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(Yt){var re=Yt.state,ue=Object.keys(re.elements);_.flushSync(function(){ut({styles:qC(ue.map(function(oe){return[oe,re.styles[oe]||{}]})),attributes:qC(ue.map(function(oe){return[oe,re.attributes[oe]]}))})})},requires:["computeStyles"]}},[]),_t=W.useMemo(function(){var Ht={onFirstUpdate:S.onFirstUpdate,placement:S.placement,strategy:S.strategy,modifiers:[].concat(S.modifiers,[yt,{name:"applyStyles",enabled:!1}])};return LA()(c.current,Ht)?c.current||Ht:(c.current=Ht,Ht)},[S.onFirstUpdate,S.placement,S.strategy,S.modifiers,yt]),zt=W.useRef();return Ty(function(){zt.current&&zt.current.setOptions(_t)},[_t]),Ty(function(){if(!(e==null||n==null)){var Ht=i.createPopper||VC,Yt=Ht(e,n,_t);return zt.current=Yt,function(){Yt.destroy(),zt.current=null}}},[e,n,i.createPopper]),{state:zt.current?zt.current.state:null,styles:nt.styles,attributes:nt.attributes,update:zt.current?zt.current.update:null,forceUpdate:zt.current?zt.current.forceUpdate:null}};function $C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),n.push.apply(n,i)}return n}function Tp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$C(Object(n),!0).forEach(function(i){bi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$C(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var pg={enabled:!0,fn:function(e){e.state.styles.popper.width="".concat(e.state.rects.reference.width,"px")},name:"setPopperWidth",phase:"write"};function FA(t){var e=[{enabled:!!t.flip,name:"flip"},{name:"preventOverflow",options:{mainAxis:!1}}];return t.align!=="right"&&t.align!=="left"&&e.push(pg),e}function zA(t){var e=t.align==="right"?"end":"start",n=t.dropup?"top":"bottom";return"".concat(n,"-").concat(e)}function UA(t,e){var n=(0,W.useState)(null),i=ug(n,2),c=i[0],S=i[1],F=BA(t,c,{modifiers:FA(e),placement:zA(e),strategy:e.positionFixed?"fixed":"absolute"}),nt=F.attributes,ut=F.styles,yt=F.forceUpdate,_t=t==null?void 0:t.offsetHeight;return(0,W.useEffect)(function(){yt&&yt()},[_t]),Tp(Tp({},nt.popper),{},{innerRef:S,style:ut.popper})}const HA=UA;var VA=["referenceElement","isMenuShown"],WA=typeof Element=="undefined"?nu:Element,XC={align:Rn().oneOf(xE),children:Rn().func.isRequired,dropup:Rn().bool,flip:Rn().bool,isMenuShown:Rn().bool,positionFixed:Rn().bool,referenceElement:Rn().instanceOf(WA)},GC=function(e){var n=e.referenceElement,i=e.isMenuShown,c=vs(e,VA),S=HA(n,c);return i?c.children(S):null};GC.propTypes=XC;const KC=GC;function Ay(t,e){if(t.contains)return t.contains(e);if(t.compareDocumentPosition)return t===e||!!(t.compareDocumentPosition(e)&16)}const k_=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var T_=!1,A_=!1;try{var vb={get passive(){return T_=!0},get once(){return A_=T_=!0}};k_&&(window.addEventListener("test",vb,vb),window.removeEventListener("test",vb,!0))}catch(t){}function YA(t,e,n,i){if(i&&typeof i!="boolean"&&!A_){var c=i.once,S=i.capture,F=n;!A_&&c&&(F=n.__once||function nt(ut){this.removeEventListener(e,nt,S),n.call(this,ut)},n.__once=F),t.addEventListener(e,F,T_?i:S)}t.addEventListener(e,n,i)}const qA=YA;function $A(t,e,n,i){var c=i&&typeof i!="boolean"?i.capture:i;t.removeEventListener(e,n,c),n.__once&&t.removeEventListener(e,n.__once,c)}const XA=$A;function GA(t,e,n,i){return qA(t,e,n,i),function(){XA(t,e,n,i)}}const Ku=GA;function KA(t){const e=(0,W.useRef)(t);return(0,W.useEffect)(()=>{e.current=t},[t]),e}const ZC=KA;function P_(t){const e=ZC(t);return(0,W.useCallback)(function(...n){return e.current&&e.current(...n)},[e])}function Py(t){return t&&t.ownerDocument||document}function O_(t){return t&&"setState"in t?_.findDOMNode(t):t!=null?t:null}const bb=function(t){return Py(O_(t))};var Oy=27,mg=function(){};function QC(t){return t.button===0}function JC(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var gg=function(e){return e&&("current"in e?e.current:e)};function Ny(t,e,n){var i=n===void 0?{}:n,c=i.disabled,S=i.clickTrigger,F=S===void 0?"click":S,nt=(0,W.useRef)(!1),ut=e||mg,yt=(0,W.useCallback)(function(Ht){var Yt,re=gg(t);wp()(!!re,"RootClose captured a close event but does not have a ref to compare it to. useRootClose(), should be passed a ref that resolves to a DOM node"),nt.current=!re||JC(Ht)||!QC(Ht)||!!Ay(re,(Yt=Ht.composedPath==null?void 0:Ht.composedPath()[0])!=null?Yt:Ht.target)},[t]),_t=P_(function(Ht){nt.current||ut(Ht)}),zt=P_(function(Ht){Ht.keyCode===Oy&&ut(Ht)});(0,W.useEffect)(function(){if(!(c||t==null)){var Ht=window.event,Yt=bb(gg(t)),re=Ku(Yt,F,yt,!0),ue=Ku(Yt,F,function(pe){if(pe===Ht){Ht=void 0;return}_t(pe)}),oe=Ku(Yt,"keyup",function(pe){if(pe===Ht){Ht=void 0;return}zt(pe)}),de=[];return"ontouchstart"in Yt.documentElement&&(de=[].slice.call(Yt.body.children).map(function(pe){return Ku(pe,"mousemove",mg)})),function(){re(),ue(),oe(),de.forEach(function(pe){return pe()})}}},[t,c,F,yt,_t,zt])}const Dy=Ny;function ZA(t,e){var n=(0,W.useRef)(null);return Dy(n.current,t,e),n}const QA=ZA;var JA=["children","onRootClose"];function tP(t){var e=t.children,n=t.onRootClose,i=vs(t,JA),c=QA(n,i);return e(c)}const eP=tP;var tM=["onBlur","onClick","onFocus","onRemove","option"];function eM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),n.push.apply(n,i)}return n}function nM(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?eM(Object(n),!0).forEach(function(i){bi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eM(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var nP={onBlur:Rn().func,onClick:Rn().func,onFocus:Rn().func,onRemove:Rn().func,option:sg.isRequired};function N_(t){var e=t.onBlur,n=t.onClick,i=t.onFocus,c=t.onRemove,S=t.option,F=vs(t,tM),nt=(0,W.useState)(!1),ut=ug(nt,2),yt=ut[0],_t=ut[1],zt=(0,W.useState)(null),Ht=ug(zt,2),Yt=Ht[0],re=Ht[1],ue=function(qe){_t(!1),e&&e(qe)},oe=function(qe){_t(!0),n&&n(qe)},de=function(qe){_t(!0),i&&i(qe)},pe=function(){c&&c(S)},_e=function(qe){qe.key==="Backspace"&&yt&&(qe.preventDefault(),pe())};return Dy(Yt,ue,nM(nM({},F),{},{disabled:!yt})),{active:yt,onBlur:ue,onClick:oe,onFocus:de,onKeyDown:_e,onRemove:cl(c)?pe:void 0,ref:re}}function rM(t){warn(!1,"Warning: `withToken` is deprecated and will be removed in the next major version. Use `useToken` instead.");var e="withToken(".concat(getDisplayName(t),")"),n=function(c){return React.createElement(t,_extends({},c,N_(c)))};return n.displayName=e,n.propTypes=nP,n}var rP=["active","children","className","onRemove","tabIndex"],yg=["children","option","readOnly"],vg=["ref"];function D_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),n.push.apply(n,i)}return n}function iM(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?D_(Object(n),!0).forEach(function(i){bi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D_(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var oM=(0,W.forwardRef)(function(t,e){var n=t.active,i=t.children,c=t.className,S=t.onRemove,F=t.tabIndex,nt=vs(t,rP);return W.createElement("div",_a({},nt,{className:os()("rbt-token","rbt-token-removeable",{"rbt-token-active":!!n},c),ref:e,tabIndex:F||0}),i,W.createElement(cC,{className:"rbt-token-remove-button",label:"Remove",onClick:S,tabIndex:-1}))}),R_=function(e){var n=e.children,i=e.className,c=e.disabled,S=e.href,F=os()("rbt-token",{"rbt-token-disabled":c},i);return S&&!c?W.createElement("a",{className:F,href:S},n):W.createElement("div",{className:F},n)},iP=function(e){var n=e.children,i=e.option,c=e.readOnly,S=vs(e,yg),F=N_(iM(iM({},S),{},{option:i})),nt=F.ref,ut=vs(F,vg),yt=W.createElement("div",{className:"rbt-token-label"},n);return!S.disabled&&!c&&cl(ut.onRemove)?W.createElement(oM,_a({},S,ut,{ref:nt}),yt):W.createElement(R_,S,yt)};const oP=iP;function Ry(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return n&&(n=n.replace(n[0],n[0].toUpperCase())),["Top","Right","Bottom","Left"].map(function(i){return t["".concat(e).concat(i).concat(n)]}).join(" ")}function aP(t,e){var n=window.getComputedStyle(t);e.style.borderStyle=Ry(n,"border","style"),e.style.borderWidth=Ry(n,"border","width"),e.style.fontSize=n.fontSize,e.style.fontWeight=n.fontWeight,e.style.height=n.height,e.style.lineHeight=n.lineHeight,e.style.margin=Ry(n,"margin"),e.style.padding=Ry(n,"padding")}var Fo=function(){var e=JE(),n=e.hintText,i=e.inputNode,c=(0,W.useRef)(null);return(0,W.useEffect)(function(){var S=function(){c.current&&i&&(c.current.scrollLeft=i.scrollLeft)};return i==null||i.addEventListener("scroll",S),function(){i==null||i.removeEventListener("scroll",S)}},[i]),(0,W.useEffect)(function(){i&&c.current&&aP(i,c.current)}),{hintRef:c,hintText:n}},sP=function(e){var n=e.children,i=e.className,c=Fo(),S=c.hintRef,F=c.hintText;return W.createElement("div",{className:i,style:{display:"flex",flex:1,height:"100%",position:"relative"}},n,W.createElement("input",{"aria-hidden":!0,className:"rbt-input-hint",ref:S,readOnly:!0,style:{backgroundColor:"transparent",borderColor:"transparent",boxShadow:"none",color:"rgba(0, 0, 0, 0.54)",left:0,pointerEvents:"none",position:"absolute",top:0,width:"100%"},tabIndex:-1,value:F}))};const Ap=sP;var Bl=(0,W.forwardRef)(function(t,e){return W.createElement("input",_a({},t,{className:os()("rbt-input-main",t.className),ref:e}))});const bg=Bl;var Os=["children","className","inputClassName","inputRef","referenceElementRef","selected"];function lP(t){var e=W.useRef(null),n=W.useRef(null),i=zE(t),c=i.children,S=i.className,F=i.inputClassName,nt=i.inputRef,ut=i.referenceElementRef,yt=i.selected,_t=vs(i,Os);function zt(re){n.current=re,t.inputRef(re)}function Ht(re){if(t.disabled){re.currentTarget.blur();return}var ue=n.current;!ue||re.currentTarget.contains(re.target)&&re.currentTarget!==re.target||(Q1(ue)&&(ue.selectionStart=ue.value.length),ue.focus())}function Yt(re){if(re.key==="Backspace"&&yt.length&&!t.value){var ue;re.preventDefault();var oe=(ue=e.current)===null||ue===void 0?void 0:ue.children;if(oe!=null&&oe.length){var de=oe[oe.length-2];de==null||de.focus()}}t.onKeyDown&&t.onKeyDown(re)}return W.createElement("div",{className:os()("rbt-input-multi",{disabled:t.disabled},S),onClick:Ht,onFocus:Ht,ref:ut,tabIndex:-1},W.createElement("div",{className:"rbt-input-wrapper",ref:e},c,W.createElement(Ap,null,W.createElement(bg,_a({},_t,{className:F,onKeyDown:Yt,ref:zt,style:{backgroundColor:"transparent",border:0,boxShadow:"none",cursor:"inherit",outline:"none",padding:0,width:"100%",zIndex:1}})))))}const uP=lP;var L_=["inputRef","referenceElementRef"],cP=function(e){var n=e.inputRef,i=e.referenceElementRef,c=vs(e,L_);return W.createElement(Ap,null,W.createElement(bg,_a({},zE(c),{ref:function(F){n(F),i(F)}})))};const xb=cP;var hP={children:Rn().string.isRequired,highlightClassName:Rn().string,search:Rn().string.isRequired},Ic=function(e){var n=e.children,i=e.highlightClassName,c=i===void 0?"rbt-highlight-text":i,S=e.search;if(!S||!n)return W.createElement(W.Fragment,null,n);for(var F=0,nt=n,ut=[];nt;){var yt=Zw(nt,S);if(!yt){ut.push(nt);break}var _t=nt.slice(0,yt.start);_t&&ut.push(_t);var zt=nt.slice(yt.start,yt.end);ut.push(W.createElement("mark",{className:c,key:F},zt)),F+=1,nt=nt.slice(yt.end)}return W.createElement(W.Fragment,null,ut)};Ic.propTypes=hP;const Ly=Ic,I_=t=>typeof t=="object"&&t!=null&&t.nodeType===1,wb=(t,e)=>(!e||t!=="hidden")&&t!=="visible"&&t!=="clip",Pp=(t,e)=>{if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){const n=getComputedStyle(t,null);return wb(n.overflowY,e)||wb(n.overflowX,e)||(i=>{const c=(S=>{if(!S.ownerDocument||!S.ownerDocument.defaultView)return null;try{return S.ownerDocument.defaultView.frameElement}catch(F){return null}})(i);return!!c&&(c.clientHeight<i.scrollHeight||c.clientWidth<i.scrollWidth)})(t)}return!1},_b=(t,e,n,i,c,S,F,nt)=>S<t&&F>e||S>t&&F<e?0:S<=t&&nt<=n||F>=e&&nt>=n?S-t-i:F>e&&nt<n||S<t&&nt>n?F-e+c:0,fP=t=>{const e=t.parentElement;return e==null?t.getRootNode().host||null:e},j_=(t,e)=>{var n,i,c,S;if(typeof document=="undefined")return[];const{scrollMode:F,block:nt,inline:ut,boundary:yt,skipOverflowHiddenElements:_t}=e,zt=typeof yt=="function"?yt:On=>On!==yt;if(!I_(t))throw new TypeError("Invalid target");const Ht=document.scrollingElement||document.documentElement,Yt=[];let re=t;for(;I_(re)&&zt(re);){if(re=fP(re),re===Ht){Yt.push(re);break}re!=null&&re===document.body&&Pp(re)&&!Pp(document.documentElement)||re!=null&&Pp(re,_t)&&Yt.push(re)}const ue=(i=(n=window.visualViewport)==null?void 0:n.width)!=null?i:innerWidth,oe=(S=(c=window.visualViewport)==null?void 0:c.height)!=null?S:innerHeight,{scrollX:de,scrollY:pe}=window,{height:_e,width:ge,top:qe,right:De,bottom:$e,left:Ye}=t.getBoundingClientRect(),{top:tn,right:gn,bottom:Cn,left:kn}=(On=>{const Vn=window.getComputedStyle(On);return{top:parseFloat(Vn.scrollMarginTop)||0,right:parseFloat(Vn.scrollMarginRight)||0,bottom:parseFloat(Vn.scrollMarginBottom)||0,left:parseFloat(Vn.scrollMarginLeft)||0}})(t);let Zn=nt==="start"||nt==="nearest"?qe-tn:nt==="end"?$e+Cn:qe+_e/2-tn+Cn,fn=ut==="center"?Ye+ge/2-kn+gn:ut==="end"?De+gn:Ye-kn;const jn=[];for(let On=0;On<Yt.length;On++){const Vn=Yt[On],{height:wr,width:Pr,top:_r,right:Ur,bottom:Hr,left:Li}=Vn.getBoundingClientRect();if(F==="if-needed"&&qe>=0&&Ye>=0&&$e<=oe&&De<=ue&&qe>=_r&&$e<=Hr&&Ye>=Li&&De<=Ur)return jn;const ai=getComputedStyle(Vn),Ei=parseInt(ai.borderLeftWidth,10),Zi=parseInt(ai.borderTopWidth,10),$r=parseInt(ai.borderRightWidth,10),Fi=parseInt(ai.borderBottomWidth,10);let qo=0,Ea=0;const zo="offsetWidth"in Vn?Vn.offsetWidth-Vn.clientWidth-Ei-$r:0,$o="offsetHeight"in Vn?Vn.offsetHeight-Vn.clientHeight-Zi-Fi:0,Da="offsetWidth"in Vn?Vn.offsetWidth===0?0:Pr/Vn.offsetWidth:0,Qu="offsetHeight"in Vn?Vn.offsetHeight===0?0:wr/Vn.offsetHeight:0;if(Ht===Vn)qo=nt==="start"?Zn:nt==="end"?Zn-oe:nt==="nearest"?_b(pe,pe+oe,oe,Zi,Fi,pe+Zn,pe+Zn+_e,_e):Zn-oe/2,Ea=ut==="start"?fn:ut==="center"?fn-ue/2:ut==="end"?fn-ue:_b(de,de+ue,ue,Ei,$r,de+fn,de+fn+ge,ge),qo=Math.max(0,qo+pe),Ea=Math.max(0,Ea+de);else{qo=nt==="start"?Zn-_r-Zi:nt==="end"?Zn-Hr+Fi+$o:nt==="nearest"?_b(_r,Hr,wr,Zi,Fi+$o,Zn,Zn+_e,_e):Zn-(_r+wr/2)+$o/2,Ea=ut==="start"?fn-Li-Ei:ut==="center"?fn-(Li+Pr/2)+zo/2:ut==="end"?fn-Ur+$r+zo:_b(Li,Ur,Pr,Ei,$r+zo,fn,fn+ge,ge);const{scrollLeft:yu,scrollTop:Up}=Vn;qo=Qu===0?0:Math.max(0,Math.min(Up+qo/Qu,Vn.scrollHeight-wr/Qu+$o)),Ea=Da===0?0:Math.max(0,Math.min(yu+Ea/Da,Vn.scrollWidth-Pr/Da+zo)),Zn+=Up-qo,fn+=yu-Ea}jn.push({el:Vn,top:qo,left:Ea})}return jn},dP=t=>t===!1?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&Object.keys(e).length!==0)(t)?t:{block:"start",inline:"nearest"};function pP(t,e){if(!t.isConnected||!(c=>{let S=c;for(;S&&S.parentNode;){if(S.parentNode===document)return!0;S=S.parentNode instanceof ShadowRoot?S.parentNode.host:S.parentNode}return!1})(t))return;const n=(c=>{const S=window.getComputedStyle(c);return{top:parseFloat(S.scrollMarginTop)||0,right:parseFloat(S.scrollMarginRight)||0,bottom:parseFloat(S.scrollMarginBottom)||0,left:parseFloat(S.scrollMarginLeft)||0}})(t);if((c=>typeof c=="object"&&typeof c.behavior=="function")(e))return e.behavior(j_(t,e));const i=typeof e=="boolean"||e==null?void 0:e.behavior;for(const{el:c,top:S,left:F}of j_(t,dP(e))){const nt=S-n.top+n.bottom,ut=F-n.left+n.right;c.scroll({top:nt,left:ut,behavior:i})}}var mP=["label","onClick","option","position"];function aM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?aM(Object(n),!0).forEach(function(i){bi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):aM(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var a={option:sg.isRequired,position:Rn().number};function A(t){var e=t.label,n=t.onClick,i=t.option,c=t.position,S=vs(t,mP),F=JE(),nt=F.activeIndex,ut=F.id,yt=F.isOnlyResult,_t=F.onActiveItemChange,zt=F.onInitialItemChange,Ht=F.onMenuItemClick,Yt=F.setItem,re=(0,W.useRef)(null);(0,W.useEffect)(function(){c===0&&zt(i)}),(0,W.useEffect)(function(){if(c===nt){_t(i);var de=re.current;de&&pP(de,{boundary:de.parentNode,scrollMode:"if-needed"})}},[nt,_t,i,c]);var ue=(0,W.useCallback)(function(de){Ht(i,de),n&&n(de)},[n,Ht,i]),oe=yt||nt===c;return Yt(i,c),r(r({},S),{},{active:oe,"aria-label":e,"aria-selected":oe,id:PE(ut,c),onClick:ue,onMouseDown:eb,ref:re,role:"option"})}function H(t){warn(!1,"Warning: `withItem` is deprecated and will be removed in the next major version. Use `useItem` instead.");var e=function(i){return React.createElement(t,_extends({},i,A(i)))};return e.displayName="withItem(".concat(getDisplayName(t),")"),e.propTypes=a,e}var ct=["active","children","className","disabled","onClick"],bt=(0,W.forwardRef)(function(t,e){var n=t.active,i=t.children,c=t.className,S=t.disabled,F=t.onClick,nt=vs(t,ct);return W.createElement("a",_a({},nt,{className:os()("dropdown-item",{active:n,disabled:S},c),href:nt.href||"#",onClick:function(yt){yt.preventDefault(),!S&&F&&F(yt)},ref:e}),i)});function At(t){return W.createElement(bt,A(t))}var Ot=["emptyLabel","innerRef","maxHeight","style"];function Ft(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),n.push.apply(n,i)}return n}function Wt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ft(Object(n),!0).forEach(function(i){bi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ft(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}var Kt=function(){return W.createElement("div",{className:"dropdown-divider",role:"separator"})},ae=function(e){return W.createElement("div",_a({},e,{className:"dropdown-header",role:"heading"}))},Qt={"aria-label":Rn().string,emptyLabel:Rn().node,id:Nc(Rn().oneOfType([Rn().number,Rn().string]),WE),maxHeight:Rn().string},Ee=function(e){var n=e.emptyLabel,i=n===void 0?"No matches found.":n,c=e.innerRef,S=e.maxHeight,F=S===void 0?"300px":S,nt=e.style,ut=vs(e,Ot),yt=W.Children.count(ut.children)===0?W.createElement(bt,{disabled:!0,role:"option"},i):ut.children;return W.createElement("div",_a({},ut,{"aria-label":ut["aria-label"]||"menu-options",className:os()("rbt-menu","dropdown-menu","show",ut.className),onMouseDown:eb,ref:c,role:"listbox",style:Wt(Wt({},nt),{},{display:"block",maxHeight:F,overflow:"auto"})}),yt)};Ee.propTypes=Qt,Ee.Divider=Kt,Ee.Header=ae;const Ie=Ee;var Re=["labelKey","newSelectionPrefix","options","paginationText","renderMenuItemChildren","text"],ze={newSelectionPrefix:Rn().node,paginationText:Rn().node,renderMenuItemChildren:Rn().func};function We(t,e){return W.createElement(Ly,{search:e.text},Oc(t,e.labelKey))}var hn=function(e){var n=e.labelKey,i=e.newSelectionPrefix,c=i===void 0?"New selection: ":i,S=e.options,F=e.paginationText,nt=F===void 0?"Display additional results...":F,ut=e.renderMenuItemChildren,yt=ut===void 0?We:ut,_t=e.text,zt=vs(e,Re),Ht=function(re,ue){var oe=Oc(re,n),de={disabled:!!ru(re,"disabled"),label:oe,option:re,position:ue};return ru(re,"customOption")?W.createElement(At,_a({},de,{className:"rbt-menu-custom-option",key:ue,label:oe}),c,W.createElement(Ly,{search:_t},oe)):ru(re,"paginationOption")?W.createElement(W.Fragment,{key:"pagination-option-divider"},W.createElement(Ie.Divider,null),W.createElement(At,_a({},de,{className:"rbt-menu-pagination-option",label:Gu(nt)?nt:""}),nt)):W.createElement(At,_a({},de,{key:ue}),yt(re,e,ue))};return W.createElement(Ie,_a({},zt,{key:_t}),S.map(Ht))};hn.propTypes=ze;const rn=hn;function cn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),n.push.apply(n,i)}return n}function Nn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?cn(Object(n),!0).forEach(function(i){bi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Xn(t){var e=Hn();return function(){var i=Sp(t),c;if(e){var S=Sp(this).constructor;c=Reflect.construct(i,arguments,S)}else c=i.apply(this,arguments);return QE(this,c)}}function Hn(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var vr={clearButton:Rn().bool,inputProps:Nc(Rn().object,VE),isInvalid:Rn().bool,isLoading:Rn().bool,isValid:Rn().bool,renderInput:Rn().func,renderMenu:Rn().func,renderToken:Rn().func,size:UE},or={isLoading:!1},hr=function(e,n,i){return W.createElement(rn,_a({},n,{labelKey:i.labelKey,options:e,text:i.text}))},rr=function(e,n,i){return W.createElement(oP,{disabled:n.disabled,key:i,onRemove:n.onRemove,option:e,tabIndex:n.tabIndex},Oc(e,n.labelKey))},dn=["align","dropup","flip","positionFixed"];function Gn(t){return G1(t,dn)}var Tr=function(t){i_(n,t);var e=Xn(n);function n(){var i;KE(this,n);for(var c=arguments.length,S=new Array(c),F=0;F<c;F++)S[F]=arguments[F];return i=e.call.apply(e,[this].concat(S)),bi(vo(i),"_referenceElement",null),bi(vo(i),"referenceElementRef",function(nt){i._referenceElement=nt}),bi(vo(i),"_renderInput",function(nt,ut){var yt=i.props,_t=yt.isInvalid,zt=yt.isValid,Ht=yt.multiple,Yt=yt.renderInput,re=yt.renderToken,ue=yt.size;if(cl(Yt))return Yt(nt,ut);var oe=Nn(Nn({},nt),{},{isInvalid:_t,isValid:zt,size:ue});if(!Ht)return W.createElement(xb,oe);var de=ut.labelKey,pe=ut.onRemove,_e=ut.selected;return W.createElement(uP,_a({},oe,{placeholder:_e.length?"":nt.placeholder,selected:_e}),_e.map(function(ge,qe){return(re||rr)(ge,Nn(Nn({},oe),{},{labelKey:de,onRemove:pe}),qe)}))}),bi(vo(i),"_renderMenu",function(nt,ut,yt){var _t=i.props,zt=_t.emptyLabel,Ht=_t.id,Yt=_t.maxHeight,re=_t.newSelectionPrefix,ue=_t.paginationText,oe=_t.renderMenu,de=_t.renderMenuItemChildren;return(oe||hr)(nt,Nn(Nn({},ut),{},{emptyLabel:zt,id:Ht,maxHeight:Yt,newSelectionPrefix:re,paginationText:ue,renderMenuItemChildren:de}),yt)}),bi(vo(i),"_renderAux",function(nt){var ut=nt.onClear,yt=nt.selected,_t=i.props,zt=_t.clearButton,Ht=_t.disabled,Yt=_t.isLoading,re=_t.size,ue;return Yt?ue=W.createElement(gA,null):zt&&!Ht&&yt.length&&(ue=W.createElement(cC,{onClick:ut,onMouseDown:eb,size:re})),ue?W.createElement("div",{className:os()("rbt-aux",{"rbt-aux-lg":vy(re)})},ue):null}),i}return ZE(n,[{key:"render",value:function(){var c=this,S=this.props,F=S.children,nt=S.className,ut=S.instanceRef,yt=S.open,_t=S.options,zt=S.style;return W.createElement(pA,_a({},this.props,{options:_t,ref:ut}),function(Ht){var Yt=Ht.hideMenu,re=Ht.isMenuShown,ue=Ht.results,oe=c._renderAux(Ht);return W.createElement(eP,{disabled:yt||!re,onRootClose:Yt},function(de){return W.createElement("div",{className:os()("rbt",{"has-aux":!!oe,"is-invalid":c.props.isInvalid,"is-valid":c.props.isValid},nt),ref:de,style:Nn(Nn({},zt),{},{outline:"none",position:"relative"}),tabIndex:-1},c._renderInput(Nn(Nn({},Ht.getInputProps(c.props.inputProps)),{},{referenceElementRef:c.referenceElementRef}),Ht),W.createElement(KC,_a({},Gn(c.props),{isMenuShown:re,referenceElement:c._referenceElement}),function(pe){return c._renderMenu(ue,pe,Ht)}),oe,cl(F)?F(Ht):F)})})}}]),n}(W.Component);bi(Tr,"propTypes",vr),bi(Tr,"defaultProps",or);const Wn=(0,W.forwardRef)(function(t,e){return W.createElement(Tr,_a({},t,{instanceRef:e}))});var Sr=(0,W.forwardRef)(function(t,e){return W.createElement(Wn,_a({},GE(t),{ref:e}))});const ei=Sr;var Xr=Fn(7810);const oi=({label:t,position:e,value:n})=>{if(e<0)return Xr.createElement("span",null,t);const i=t.substring(0,e),c=t.substring(e+n.length);return Xr.createElement("span",null,i,Xr.createElement("b",null,n),c)},Ni=oi;oi.propTypes={label:Rn().string.isRequired,position:Rn().number.isRequired,value:Rn().string.isRequired};var Di=Fn(7810);const Do=({onClear:t})=>Di.createElement("button",{type:"reset",title:"Clear search",onClick:t,"aria-label":"clear search"},Di.createElement("div",null,Wi("delete")));Do.propTypes={onClear:Rn().func.isRequired};var ao=Fn(7810),bo=Object.defineProperty,Sa=Object.getOwnPropertySymbols,cu=Object.prototype.hasOwnProperty,Zu=Object.prototype.propertyIsEnumerable,hu=(t,e,n)=>e in t?bo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Gr=(t,e)=>{for(var n in e||(e={}))cu.call(e,n)&&hu(t,n,e[n]);if(Sa)for(var n of Sa(e))Zu.call(e,n)&&hu(t,n,e[n]);return t};const Ri=({ariaLabel:t,defaultValue:e="",delayWait:n=0,htmlId:i,isDisabled:c=!1,handleChange:S,handleClear:F,handleSearch:nt,hasClearButton:ut=!1,hasSearchButton:yt=!1,maxResults:_t=5,options:zt,placeholder:Ht="Enter your search text"})=>{const Yt=(0,W.useRef)(),[re,ue]=(0,W.useState)(e),[oe,de]=(0,W.useState)(ut&&(!!e||!!re));(0,W.useEffect)(()=>{Yt.current.setState({text:e}),ue(Yt.current.inputNode.value),e===""?(Yt.current.clear(),de(!1)):de(!0)},[e]);const pe=()=>{F&&F(),Yt.current.clear(),ue("")},_e=()=>!0;return ao.createElement("section",{className:"typeahead"},ao.createElement("div",{className:"o-search-input"},ao.createElement("div",{className:"o-search-input__input"},ao.createElement("label",{"aria-label":t,className:"o-search-input__input-label",htmlFor:i},Wi("search")),ao.createElement(ei,{id:i,minLength:2,className:"typeahead-selector",defaultInputValue:e,delay:n,disabled:c,filterBy:_e,inputProps:{id:i,className:"a-text-input a-text-input--full"},isLoading:!1,ref:Yt,onInputChange:ge=>{de(ge!==""),ue(ge)},onChange:ge=>{S(ge),Yt.current.clear(),ue("")},onSearch:nt,options:zt,maxResults:_t,placeholder:Ht,renderMenuItemChildren:ge=>ao.createElement("li",{className:"typeahead-option body-copy"},ao.createElement(Ni,Gr({},ge)))}),!!oe&&ao.createElement(Do,{onClear:()=>{pe(),de(!1)}})),!!yt&&ao.createElement("button",{type:"submit",className:"a-btn"},"Search")))};Ri.propTypes={ariaLabel:Rn().string.isRequired,defaultValue:Rn().string,delayWait:Rn().number.isRequired,isDisabled:Rn().bool,handleChange:Rn().func.isRequired,handleClear:Rn().func,handleSearch:Rn().func.isRequired,hasClearButton:Rn().bool,hasSearchButton:Rn().bool,htmlId:Rn().string.isRequired,maxResults:Rn().number,options:Rn().array,placeholder:Rn().string};function Ki(t,e,n){const i=t.toLowerCase();if(i===""){e([]);return}return fetch(n).then(c=>c.json()).then(c=>{const S=c.map(F=>({key:F,label:F,position:F.toLowerCase().indexOf(i),value:t}));e(S)})}function jr(t,e){const n=ss(e),i=Object.keys(n).filter(S=>!["frm","page","search_after","size","sort"].includes(S)),c=Object.keys(t).filter(S=>!["dataNormalization","enablePer1000","mapWarningEnabled"].includes(S));return Object.assign({size:0},qi(n,i),qi(t,c))}function xs(t,e){const n=Object.keys(t).filter(i=>!["dataNormalization","enablePer1000","mapWarningEnabled"].includes(i));return Object.assign({no_aggs:!0},ss(e),qi(t,n))}function qi(t,e){const n={};return e.forEach(i=>{const c=t[i];Array.isArray(c)?c.length>0&&(n[i]=c):c&&(n[i]=c)}),n}function ss(t){const e=t,n={company_received_max:e==null?void 0:e.company_received_max,company_received_min:e==null?void 0:e.company_received_min,date_received_max:e.date_received_max,date_received_min:e.date_received_min,field:Ys(e.searchField,"searchField"),frm:e.from!==void 0?e.from:Yx(e.page-1,0)*e.size,page:e.page,size:e.size,sort:e.sort};return e.searchText&&(n.search_term=e.searchText),e.searchAfter&&(n.search_after=e.searchAfter),fT(n)}function $s(t,e,n){const{dateInterval:i,searchField:c}=e,S=ss(e),F=t,{chartType:nt,focus:ut,lens:yt,subLens:_t,trendDepth:zt}=n,Ht={chartType:nt,lens:yt.replace(" ","_").toLowerCase(),searchField:c,trend_depth:zt,trend_interval:i.toLowerCase(),reducerValues:{focus:ut,lens:yt,subLens:_t,trendDepth:n.trendDepth}};_t&&(Ht.sub_lens=_t.replace("-","_").replace(" ","_").toLowerCase()),ut&&(Ht.focus=ut);const Yt=Object.keys(S).filter(ue=>!["frm","page","search_after","size","sort"].includes(ue)),re=Object.keys(F).filter(ue=>!["dataNormalization","enablePer1000","mapWarningEnabled"].includes(ue));return Object.assign(Ht,qi(S,Yt),qi(F,re),{size:0,no_aggs:!0})}const da=()=>{const t=sr(tu),e=sr(vp),n=sr(ly),i=jr(t,e);return zT(i,{skip:n===""})};var Xs=Fn(7810);const YR="company",sM=({delayWait:t=250,id:e})=>{const{isLoading:n,isFetching:i}=da(),c=Si(),S=sr(tu),F=sr(vp),nt=sr(xh),ut=sr(eu),[yt,_t]=(0,W.useState)([]),zt=Object.assign({},F,S);zt.searchAfter="";const Ht=nt&&ut==="Company",Yt=my(zt),re=oe=>{c(tg(YR,[oe[0].key]))},ue=oe=>{const de=Yt+"&text="+oe,pe=`${ph}_suggest_company/${de}`;Ki(oe,_t,pe)};return n||i?null:Xs.createElement(Ri,{ariaLabel:"Start typing to begin listing companies",htmlId:Y0("company-typeahead-"+e),delayWait:t,handleChange:re,handleSearch:ue,hasClearButton:!0,options:yt,placeholder:"Enter company name",disabled:Ht})};sM.propTypes={delayWait:Rn().number,id:Rn().string.isRequired};const qR=(t,e)=>{let n=t.length;if(n!==e.length)return!1;for(;n--;)if(t[n]!==e[n])return!1;return!0},EO=(t,e)=>JSON.stringify(t)===JSON.stringify(e),$R=t=>{if(t==="timely"){const e=/_/g,n=t.replace(e," ");return n[0].toUpperCase()+n.slice(1)+": "}return""},CO=(t,e,n,i)=>{if(!Um.includes(i))return e;const c=t.split(Ws),S=c[0],F=e.includes(S),nt=e.filter(yt=>yt!==S&&t).filter(yt=>yt!==t),ut=[];return F&&n.find(_t=>_t.key===S)["sub_"+i+".raw"].buckets.forEach(_t=>{_t.key!==c[1]&&ut.push(sp(S,_t.key))}),nt.concat(ut)};var lM=Fn(7810);const XR=({fieldName:t,item:e,aggs:n,filters:i})=>{const[c,S]=e.key.split(Ws),F=n.find(yt=>yt.key===c)["sub_"+t+".raw"].buckets.map(yt=>yt.key).sort(),nt=c+Ws,ut=i.filter(yt=>yt.indexOf(nt)>-1).map(yt=>yt.replace(nt,""));return ut.push(S),ut.sort(),qR(ut,F)?i.filter(yt=>yt.indexOf(nt)===-1).concat(c):i.concat(e.key)},B_=({fieldName:t,item:e})=>{const{data:n,isSuccess:i}=da(),c=sr(tu),S=Si(),F=is(n,t,[]),nt=is(c,t,[]);if(!i||!F)return null;const ut=nt.includes(e.key)||nt.includes(e.key.split(Ws)[0]),yt=e.value||e.key,_t="layout-row m-form-field m-form-field--checkbox",zt=Y0(t+"-"+e.key),Ht=()=>{if(e.key.indexOf(Ws)>-1&&Um.includes(t)){const oe=XR({fieldName:t,item:e,aggs:F,filters:nt});S(mp(t,oe))}else S(fy(t,e))},Yt=()=>{if(Um.includes(t)){const ue=e.key,oe=CO(ue,nt,F,t);S(mp(t,oe))}else S(fy(t,e))},re=()=>{ut?Yt():Ht()};return lM.createElement("li",{className:_t},lM.createElement("input",{type:"checkbox",className:"flex-fixed a-checkbox","aria-label":e.key,disabled:e.isDisabled,checked:ut,id:zt,onChange:re}),lM.createElement("label",{className:"a-label flex-all bucket-key body-copy",htmlFor:zt},yt),lM.createElement("span",{className:"flex-fixed bucket-count"},e.doc_count.toLocaleString()))};B_.propTypes={fieldName:Rn().string.isRequired,item:Rn().shape({doc_count:Rn().number.isRequired,key:Rn().string.isRequired,value:Rn().string,isDisabled:Rn().bool}).isRequired};var MO=Fn(7810),GR=Object.defineProperty,KR=Object.defineProperties,ZR=Object.getOwnPropertyDescriptors,kO=Object.getOwnPropertySymbols,QR=Object.prototype.hasOwnProperty,JR=Object.prototype.propertyIsEnumerable,TO=(t,e,n)=>e in t?GR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,t7=(t,e)=>{for(var n in e||(e={}))QR.call(e,n)&&TO(t,n,e[n]);if(kO)for(var n of kO(e))JR.call(e,n)&&TO(t,n,e[n]);return t},e7=(t,e)=>KR(t,ZR(e));const n7=t=>t.reduce((e,n)=>(e[n.key]=n,e),{}),r7=t=>{const e={};return Object.keys(t).forEach(n=>{e[n]=e7(t7({},t[n]),{doc_count:0})}),e},AO=({fieldName:t,options:e,selections:n})=>{const[i,c]=(0,W.useState)([]),[S,F]=(0,W.useState)({});return(0,W.useEffect)(()=>{const nt=r7(S),ut=Object.assign(nt,n7(e)),yt=[...i];n.forEach(_t=>{yt.indexOf(_t)===-1&&yt.push(_t)}),EO(yt,i)||c(yt),EO(S,ut)||F(ut)},[S,e,n,i]),MO.createElement("ul",null,i.map(nt=>{const ut=S[nt];return ut?MO.createElement(B_,{item:ut,key:ut.key,fieldName:t}):null}))};AO.propTypes={fieldName:Rn().string.isRequired,options:Rn().array.isRequired,selections:Rn().array};var gP=Fn(7810);const PO="company",i7=()=>{const{data:t,isLoading:e,isFetching:n}=da(),i=sr(dE),c=sr(xh),S=sr(eu),F=(t==null?void 0:t.company)||[],nt=structuredClone(F),ut=c&&S==="Company";return nt.forEach(_t=>{_t.disabled=!!(ut&&_t.key!==c)}),e||n?null:gP.createElement(Ac,{title:"Company name",desc:"The complaint is about this company.",className:"aggregation company"},gP.createElement(sM,{id:"filter-"+PO}),gP.createElement(AO,{fieldName:PO,options:nt,selections:i}))},s$={};var o7=Fn(4503),OO=Fn.n(o7),a7=Fn(9050),NO=Fn.n(a7),Gs=Fn(7810);Fr().extend(OO()),Fr().extend(NO());const s7=()=>{const t="company_received",e="The date the CFPB sent the complaint to the company",n=sr(O3),i=sr(P3),c=Fr()(n).isValid()?Na(n):"",S=Fr()(i).isValid()?Na(i):"",[F,nt]=(0,W.useState)(c),[ut,yt]=(0,W.useState)(S),_t=Si(),zt="'From' date must be less than 'through' date",Ht=(0,W.useRef)(),Yt=(0,W.useRef)();(0,W.useEffect)(()=>{const ge=n?Na(n):"";nt(ge)},[n]),(0,W.useEffect)(()=>{const ge=i?Na(i):"";yt(ge)},[i]);const re=ge=>{ge.key==="Enter"&&Ht.current.blur()},ue=ge=>{ge.key==="Enter"&&Yt.current.blur()},oe=(0,W.useMemo)(()=>{const ge=[];return Fr()(F).isAfter(ut)&&ge.push(zt),Fr()(F).isBefore(gs)&&ge.push("'From' date must be after "+Fr()(gs).format(Tf)),Fr()(ut).isAfter(Zl)&&ge.push("'Through' date must be before "+Fr()(Zl).format(Tf)),ge},[F,ut]),de=()=>{let ge=ut,qe=F;qe&&!Fr()(F).isValid()&&(Ht.current.value="",qe=""),ge&&!Fr()(ut).isValid()&&(Yt.current.value="",ge=""),(n!==qe||i!==ge)&&_t(ng(qe,ge))},pe=(0,W.useMemo)(()=>{const ge=["a-text-input"];return(Fr()(F).isBefore(gs)||Fr()(F).isAfter(ut))&&ge.push("a-text-input--error"),ge.join(" ")},[F,ut]),_e=(0,W.useMemo)(()=>{const ge=["a-text-input"];return(Fr()(ut).isAfter(Zl)||Fr()(ut).isBefore(F))&&ge.push("a-text-input--error"),ge.join(" ")},[F,ut]);return Gs.createElement(Ac,{title:e,className:"aggregation date-filter",desc:""},Gs.createElement("div",null,Gs.createElement("ul",{className:"date-inputs"},Gs.createElement("li",null,Gs.createElement("label",{className:"a-label a-label__heading body-copy",htmlFor:`${t}-from`},"From"),Gs.createElement("div",{className:"o-search-input"},Gs.createElement("div",{className:"o-search-input__input"},Gs.createElement("input",{id:`${t}-from`,className:pe,onBlur:de,onChange:ge=>nt(ge.target.value),onKeyDown:re,min:gs,max:Zl,ref:Ht,placeholder:Tf,type:"date",value:F})))),Gs.createElement("li",null,Gs.createElement("label",{className:"a-label a-label__heading body-copy",htmlFor:`${t}-through`},"Through"),Gs.createElement("div",{className:"o-search-input"},Gs.createElement("div",{className:"o-search-input__input"},Gs.createElement("input",{id:`${t}-through`,className:_e,onBlur:de,onChange:ge=>yt(ge.target.value),onKeyDown:ue,min:gs,max:Zl,placeholder:Tf,ref:Yt,type:"date",value:ut}))))),oe.length?Gs.createElement("div",{className:"a-form-alert a-form-alert--error",role:"alert"},oe.map((ge,qe)=>Gs.createElement("div",{key:qe},Gs.createElement("span",{"aria-hidden":"true"},Wi("delete-round","cf-icon-delete-round")),Gs.createElement("div",{className:"a-form-alert__text"},ge)))):null))},l$={},l7=t=>t.view.hasAdvancedSearchTips,yP=t=>t.view.expandedRows,DO=t=>t.view.hasFilters,xg=t=>t.view.isPrintMode,u7=t=>t.view.showTour,jc=t=>t.view.tab,Eh=t=>t.view.width,c7=t=>t.view.modalTypeShown;var uM=Fn(7810);const h7=()=>{const t=Si(),e=sr(N3),n=sr(jc),i=S=>{const F=["a-btn","date-selector","range-"+S];return S===e&&F.push("selected"),F.join(" ").toLowerCase()},c=S=>{e!==S&&(Ps("Button",n+":"+S),t(Y1(S)))};return uM.createElement("section",{className:"date-ranges"},uM.createElement("p",null,"Date range (Click to modify range)"),uM.createElement("div",{className:"m-btn-group"},Object.keys(Zv).map(S=>uM.createElement("button",{onClick:()=>{c(S)},"aria-label":Zv[S],className:i(S),key:S,title:Zv[S]},S))))};var ws=Fn(7810);Fr().extend(OO()),Fr().extend(NO()),Fr().extend(j0());const f7="CFPB updated product and issue options in April 2017 and August 2023.",d7="https://www.consumerfinance.gov/data-research/consumer-complaints/#past-changes",p7=()=>{const t="date_received",e="Date CFPB received the complaint",n=sr(xp),i=sr(bp),c=Fr()(n).isValid()?dh(n):"",S=Fr()(i).isValid()?dh(i):"",[F,nt]=(0,W.useState)(c),[ut,yt]=(0,W.useState)(S),_t=Si(),zt="'From' date must be less than 'through' date",Ht="'From' date cannot be the same as 'Through' date",Yt=(0,W.useRef)(),re=(0,W.useRef)();(0,W.useEffect)(()=>{const qe=n?dh(n):"";nt(qe)},[n]),(0,W.useEffect)(()=>{const qe=i?dh(i):"";yt(qe)},[i]);const ue=qe=>{qe.key==="Enter"&&Yt.current.blur()},oe=qe=>{qe.key==="Enter"&&re.current.blur()},de=(0,W.useMemo)(()=>Fr()(F).isAfter(ut)?zt:Fr()(F).isSame(ut)?Ht:!1,[F,ut]),pe=()=>{let qe=F,De=ut;qe<gs&&qe&&(Yt.current.value=gs,qe=gs),De>Zl&&De&&(re.current.value=Zl,De=Zl);const $e=n!==qe||i!==De;Fr()(De).isAfter(qe)&&$e&&_t(Uw(qe,De))},_e=(0,W.useMemo)(()=>{const qe=["a-text-input"];return(Fr()(F).isBefore(gs)||Fr()(F).isAfter(ut)||Fr()(F).isSame(ut))&&qe.push("a-text-input--error"),qe.join(" ")},[F,ut]),ge=(0,W.useMemo)(()=>{const qe=["a-text-input"];return(Fr()(ut).isAfter(Zl)||Fr()(ut).isBefore(F)||Fr()(ut).isSame(F))&&qe.push("a-text-input--error"),qe.join(" ")},[F,ut]);return ws.createElement(Ac,{title:e,className:"aggregation date-filter",desc:""},ws.createElement("div",null,ws.createElement("p",{className:"u-mt15"}," ",f7," ",ws.createElement("a",{href:d7,target:"_blank",rel:"noopener noreferrer","aria-label":`Learn more about Product and
473
+ Issue changes (opens in new window)`},"Learn More")),ws.createElement("ul",{className:"date-inputs"},ws.createElement("li",null,ws.createElement("label",{className:"a-label a-label__heading body-copy",htmlFor:`${t}-from`},"From"),ws.createElement("div",{className:"o-search-input"},ws.createElement("div",{className:"o-search-input__input"},ws.createElement("input",{id:`${t}-from`,className:_e,onBlur:pe,onChange:qe=>{const De=qe.target.value||gs;nt(De)},onKeyDown:ue,min:gs,max:Zl,ref:Yt,placeholder:Tf,type:"date",value:F})))),ws.createElement("li",null,ws.createElement("label",{className:"a-label a-label__heading body-copy",htmlFor:`${t}-through`},"Through"),ws.createElement("div",{className:"o-search-input"},ws.createElement("div",{className:"o-search-input__input"},ws.createElement("input",{id:`${t}-through`,className:ge,onBlur:pe,onChange:qe=>{const De=qe.target.value||gs;yt(De)},onKeyDown:oe,min:gs,max:Zl,placeholder:Tf,ref:re,type:"date",value:ut}))))),ws.createElement(h7,null),de?ws.createElement("div",{className:"a-form-alert a-form-alert--error",role:"alert"},ws.createElement("span",{"aria-hidden":"true"},Wi("delete-round","cf-icon-delete-round")),ws.createElement("span",{className:"a-form-alert__text"},de+" ")):null))};var wg=Fn(7810),m7=Object.defineProperty,RO=Object.getOwnPropertySymbols,g7=Object.prototype.hasOwnProperty,y7=Object.prototype.propertyIsEnumerable,LO=(t,e,n)=>e in t?m7(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,v7=(t,e)=>{for(var n in e||(e={}))g7.call(e,n)&&LO(t,n,e[n]);if(RO)for(var n of RO(e))y7.call(e,n)&&LO(t,n,e[n]);return t};const vP=({ariaLabel:t,htmlId:e,isDisabled:n=!1,handleChange:i,handleInputChange:c,maxResults:S=5,options:F,placeholder:nt="Enter your search text"})=>{const ut=(0,W.useRef)(),[yt,_t]=(0,W.useState)(""),zt=()=>{ut.current.clear(),_t("")};return wg.createElement("section",{className:"typeahead"},wg.createElement("div",{className:"o-search-input"},wg.createElement("div",{className:"o-search-input__input"},wg.createElement("label",{"aria-label":t,className:"o-search-input__input-label",htmlFor:e},Wi("search")),wg.createElement(Wn,{id:e,minLength:2,className:"typeahead-selector",disabled:n,isLoading:!1,ref:ut,onChange:Ht=>{i(Ht),zt()},onInputChange:Ht=>{c(Ht),_t(Ht)},options:F,maxResults:S,placeholder:nt,renderMenuItemChildren:Ht=>wg.createElement("li",{className:"typeahead-option body-copy"},wg.createElement(Ni,v7({},Ht))),inputProps:{id:e,className:"a-text-input a-text-input--full"}}),!!yt&&wg.createElement(Do,{onClear:zt}))))};vP.propTypes={ariaLabel:Rn().string.isRequired,isDisabled:Rn().bool,handleChange:Rn().func.isRequired,handleInputChange:Rn().func.isRequired,htmlId:Rn().string.isRequired,maxResults:Rn().number,options:Rn().array,placeholder:Rn().string};var IO=Fn(7810);const b7=()=>{const t=Si(),e=ut=>U0[ut]+" ("+ut+")",n=Object.keys(U0).map(ut=>{const yt=e(ut);return{key:ut,label:yt,position:0,normalized:iS(yt)}}),[i,c]=(0,W.useState)(n),S="The state in the mailing address provided by the consumer",F=ut=>{const yt=iS(ut);if(yt===""){c(n);return}const _t=n.map(zt=>({key:zt.key,label:zt.label,normalized:zt.normalized,position:zt.normalized.indexOf(yt),value:ut}));c(_t)},nt=ut=>{t(tg("state",[ut[0].key]))};return IO.createElement(Ac,{title:"State",desc:S,className:"aggregation state"},IO.createElement(vP,{ariaLabel:"Start typing to begin listing US states",htmlId:"state-typeahead",handleChange:nt,handleInputChange:F,hasClearButton:!0,options:i,placeholder:"Enter state name or abbreviation"}))};var F_=Fn(7810);const jO="has_narrative",BO="SEARCHING",x7="FILTERING",FO="NOTHING",w7=()=>{const t=Si(),e=sr(Ww),n=sr(q1);let i=FO;return n===K2?i=BO:e&&(i=x7),F_.createElement("section",{className:"single-checkbox"},F_.createElement("h4",null,"Only show complaints with narratives?"),F_.createElement("div",{className:"m-form-field m-form-field--checkbox"},F_.createElement("input",{className:"a-checkbox",checked:i!==FO,disabled:i===BO,id:"filterHasNarrative",onChange:()=>{t(gp(jO))},type:"checkbox",value:jO}),F_.createElement("label",{className:"a-label",htmlFor:"filterHasNarrative"},"Yes")))};var z_=Fn(7810),_7=Object.defineProperty,S7=Object.defineProperties,E7=Object.getOwnPropertyDescriptors,zO=Object.getOwnPropertySymbols,C7=Object.prototype.hasOwnProperty,M7=Object.prototype.propertyIsEnumerable,UO=(t,e,n)=>e in t?_7(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,k7=(t,e)=>{for(var n in e||(e={}))C7.call(e,n)&&UO(t,n,e[n]);if(zO)for(var n of zO(e))M7.call(e,n)&&UO(t,n,e[n]);return t},T7=(t,e)=>S7(t,E7(e));const cM=({listComponent:t,listComponentProps:e={},options:n,perBucketProps:i=(S,F)=>F,hasMore:c=!1})=>{const[S,F]=(0,W.useState)(c),nt=n,ut=nt.length>5?nt.slice(0,5):nt,yt=nt.length-5,_t=Ht=>{const Yt=i(Ht,T7(k7({},e),{item:Ht,key:Ht.key}));return(0,W.createElement)(t,Yt)},zt=()=>{F(!S)};return z_.createElement(z_.Fragment,null,z_.createElement("ul",null,S?nt.map(Ht=>_t(Ht)):ut.map(Ht=>_t(Ht))),yt>0?z_.createElement("div",null,z_.createElement("button",{className:"a-btn a-btn--link more",onClick:zt},S?`- Show ${yt} less`:`+ Show ${yt} more`)):null)};cM.propTypes={listComponent:Rn().oneOfType([Rn().element,Rn().func,Rn().object]).isRequired,listComponentProps:Rn().object,options:Rn().array.isRequired,perBucketProps:Rn().func,hasMore:Rn().bool};const u$={};var Ch=Fn(7810);const A7="UNCHECKED",HO="INDETERMINATE",bP="CHECKED",xP=({fieldName:t,item:e,subitems:n})=>{const i=sr(tu),c=Si(),[S,F]=(0,W.useState)(!1),nt=is(i,t,[]),ut=nt.filter(oe=>oe.indexOf(e.key)===0),yt=ut.filter(oe=>oe.indexOf(Ws)!==-1),_t=ut.filter(oe=>oe===e.key);let zt=A7;_t.length===0&&yt.length>0?zt=HO:_t.length>0&&(zt=bP);const Ht=n.map(oe=>({disabled:e.isDisabled,key:sp(e.key,oe.key),value:oe.key,doc_count:oe.doc_count})),Yt="parent m-form-field m-form-field--checkbox body-copy",re=Y0(`${t} ${e.key}`),ue=()=>{const oe=aS(e.key,n);if(yt.forEach(de=>oe.add(de)),zt===bP)c(eg(t,[...oe]));else{const de=nt.filter(pe=>pe.indexOf(e.key+Ws)===-1);de.push(e.key),c(mp(t,[...de]))}};return Ht.length===0?Ch.createElement(B_,{item:e,key:e.key,fieldName:t}):Ch.createElement(Ch.Fragment,null,Ch.createElement("li",{className:`aggregation-branch ${Y0(e.key)} ${Yt}`},Ch.createElement("input",{type:"checkbox","aria-label":e.key,disabled:e.isDisabled,checked:zt===bP,className:"flex-fixed a-checkbox",id:re,onChange:ue}),Ch.createElement("label",{className:`toggle a-label ${zt===HO?" indeterminate":""}`,htmlFor:re},Ch.createElement("span",{className:"u-visually-hidden"},e.key)),Ch.createElement("button",{className:"flex-all a-btn a-btn--link",onClick:()=>F(!S)},e.key,Wi(S?"up":"down")),Ch.createElement("span",{className:"flex-fixed parent-count"},e.doc_count.toLocaleString())),S?Ch.createElement("ul",{className:"children"},Ht.map(oe=>Ch.createElement(B_,{item:oe,key:oe.key,fieldName:t}))):null)};xP.propTypes={fieldName:Rn().string.isRequired,item:Rn().shape({doc_count:Rn().number.isRequired,key:Rn().string.isRequired,value:Rn().string,isDisabled:Rn().bool}).isRequired,subitems:Rn().array.isRequired};var wP=Fn(7810);const P7=()=>{const t=Si(),[e,n]=(0,W.useState)([]),{data:i}=da(),c=sr(T3),S=i==null?void 0:i.issue;if(!S)return null;const F="The type of issue and sub-issue the consumer identified in the complaint",nt={fieldName:"issue"},ut=[];c.forEach(re=>{const ue=re.indexOf(Ws),oe=ue===-1?re:re.substring(0,ue);ut.indexOf(oe)===-1&&ut.push(oe)});const yt=c1(S,ut),_t=yt.map(re=>re.key),zt=re=>{const ue=re.toLowerCase();if(ue===""){n([]);return}const oe=_t.map(de=>({key:de,label:de,position:de.toLowerCase().indexOf(ue),value:re}));n(oe)},Ht=re=>{const ue=c.filter(oe=>oe.indexOf(re[0].key+Ws)===-1).concat(re[0].key);t(mp("issue",ue))},Yt=(re,ue)=>(ue.subitems=re["sub_issue.raw"].buckets,ue);return wP.createElement(Ac,{title:"Issue / sub-issue",desc:F,className:"aggregation issue"},wP.createElement(vP,{ariaLabel:"Start typing to begin listing issues",htmlId:"issue-typeahead",placeholder:"Enter name of issue",handleChange:Ht,handleInputChange:zt,hasClearButton:!0,options:e}),wP.createElement(cM,{listComponent:xP,listComponentProps:nt,options:yt,perBucketProps:Yt}))};var VO=Fn(7810);const O7=(t,e,n,i,c)=>{const S=[];(e||[]).forEach(ut=>{const yt=ut.indexOf(Ws),_t=yt===-1?ut:ut.substring(0,yt);S.indexOf(_t)===-1&&S.push(_t)});const nt=c1(t,S);if(n){const ut=c===Rl&&i==="Product";nt.forEach(yt=>{yt.isDisabled=ut?yt.key!==n:!1,yt["sub_product.raw"].buckets.forEach(_t=>{_t.isDisabled=ut?yt.isDisabled:!1})})}return nt},N7=()=>{const{data:t}=da(),e=sr(A3),n=sr(xh),i=sr(eu),c=sr(jc),S=t==null?void 0:t.product;if(!S)return null;const F=O7(S,e,n,i,c),nt="The type of product and sub-product the consumer identified in the complaint",ut={fieldName:"product"},yt=(_t,zt)=>(zt.subitems=_t["sub_product.raw"].buckets,zt);return VO.createElement(Ac,{title:"Product / sub-product",desc:nt,className:"aggregation product"},VO.createElement(cM,{listComponent:xP,listComponentProps:ut,options:F,perBucketProps:yt}))},c$={};var WO=Fn(7810);const Iy=({fieldName:t,title:e,desc:n})=>{const{data:i}=da(),c=is(i,t,[]),S={fieldName:t};return WO.createElement(Ac,{title:e,desc:n,className:"aggregation simple "+t},WO.createElement(cM,{listComponent:B_,listComponentProps:S,options:c}))};Iy.propTypes={fieldName:Rn().string.isRequired,title:Rn().string.isRequired,desc:Rn().string};var YO=Fn(7810);const D7="zip_code",qO=({delayWait:t=250})=>{const e=Si(),n=sr(vp),i=sr(tu),[c,S]=(0,W.useState)([]),F=Object.assign({},n,i);F.searchAfter="";const nt=my(F),ut=_t=>{e(tg(D7,[_t[0].key])),S([])},yt=_t=>{const zt=nt+"&text="+_t,Ht=`${ph}_suggest_zip/${zt}`;Ki(_t,S,Ht)};return YO.createElement(Ac,{title:"ZIP code",desc:"The mailing ZIP code provided by the consumer",className:"aggregation"},YO.createElement(Ri,{htmlId:"zipcode-typeahead",ariaLabel:"Start typing to begin listing zip codes",delayWait:t,handleSearch:yt,handleChange:ut,hasClearButton:!0,options:c,placeholder:"Enter first three digits of ZIP code"}))};qO.propTypes={delayWait:Rn().number};var Oo=Fn(7810);const hM=()=>{const t=Si(),e=sr(Eh),n=sr(DO),i=e<750;return Oo.createElement("div",null,!!n&&Oo.createElement("section",{className:"filter-panel"},!!i&&Oo.createElement("div",{className:"filter-button"},Oo.createElement("button",{className:"a-btn",title:"Close filters",onClick:()=>t(Dw())},"Close filters ",Wi("delete"))),Oo.createElement("h3",null,"Filter results by..."),Oo.createElement(p7,null),Oo.createElement("hr",null),Oo.createElement(N7,null),Oo.createElement("hr",null),Oo.createElement(P7,null),Oo.createElement("hr",null),Oo.createElement(b7,null),Oo.createElement("hr",null),Oo.createElement(qO,null),Oo.createElement("hr",null),Oo.createElement(i7,null),Oo.createElement("hr",null),Oo.createElement(Iy,{title:"Did company provide a timely response?",desc:"Whether the company gave a timely response",fieldName:"timely"}),Oo.createElement("hr",null),Oo.createElement(Iy,{title:"Company response to consumer",desc:`This is how the company responded. For example,
474
+ 'Closed with explanation'.`,fieldName:"company_response"}),Oo.createElement("hr",null),Oo.createElement(Iy,{title:"Company public response",desc:"The company's optional public-facing response to a consumer's complaint. Companies can choose to select a response from a pre-set list of options that will be posted on the public database.",fieldName:"company_public_response"}),Oo.createElement("hr",null),Oo.createElement(s7,null),Oo.createElement("hr",null),Oo.createElement(Iy,{title:"Consumer consent provided?",desc:"Whether a consumer opted in to publish their complaint narrative",fieldName:"consumer_consent_provided"}),Oo.createElement("hr",null),Oo.createElement(w7,null),Oo.createElement("hr",null),Oo.createElement(Iy,{title:"How did the consumer submit the complaint to the CFPB?",fieldName:"submitted_via",desc:""}),Oo.createElement("hr",null),Oo.createElement(Iy,{title:"Tags",desc:"Data that supports easier searching and sorting of complaints submitted by or on behalf of consumers",fieldName:"tags"})))};var $O=Fn(7810);const R7=()=>{const t=sr(jc);return sr(Eh)>749?$O.createElement("aside",{className:`content__sidebar ${t.toLowerCase()}`},$O.createElement(hM,null)):null},h$={},f$={},d$={},p$={};var fM=Fn(7810);const XO=({text:t,closeFn:e})=>fM.createElement("div",{role:"alert",className:"warning m-notification m-notification--visible m-notification--warning"},Wi("warning-round"),fM.createElement("div",{className:"m-notification__content"},fM.createElement("div",{className:"m-notification__message"},t)),e?fM.createElement("button",{onClick:e,onKeyDown:e,"aria-label":"Dismiss",className:"close"},Wi("delete")):""),_P=XO;XO.propTypes={text:Rn().string.isRequired,closeFn:Rn().func};var GO=Fn(7810);const L7="We\u2019re currently experiencing technical issues that have delayed the refresh of data on the Consumer Complaint Database. We expect to refresh the data in the next few days.",I7=()=>{const{data:t}=da(),e=t==null?void 0:t.hasDataIssue,n=t==null?void 0:t.isDataStale;return e||n?GO.createElement("div",null,GO.createElement(_P,{text:L7})):null};var Op=Fn(7810);const SP=()=>{const t=Si(),e=sr(jc),{data:n}=da(),i=(n==null?void 0:n.doc_count)||0,c=(n==null?void 0:n.total)||0,S=F=>{Ps("Print","tab:"+F),t(Df())};return Op.createElement("div",null,Op.createElement("summary",{className:"action-bar",id:"search-summary"},c===i?Op.createElement("h2",null,"Showing "+i.toLocaleString()+" total complaints"):Op.createElement("h2",null,"Showing "+c.toLocaleString()+" matches out of "+i.toLocaleString()+" total complaints"),Op.createElement("div",null,Op.createElement("h3",{className:"h4 flex-all export-results"},Op.createElement("button",{className:"a-btn a-btn--link export-btn","data-gtm_ignore":"true",onClick:()=>{Ps("Export",e+":User Opens Export Modal"),t(vh(Ix))}},"Export data"),Op.createElement("button",{className:"a-btn a-btn--link print-preview",onClick:()=>{S(e)}},Wi("printer"),"Print")))),Op.createElement(I7,null))},m$={};var Vo=Fn(7810);const KO=300,ZO=({row:t})=>{const e=F=>{const nt=/(<em>)?(.*?)(<\/em>)?/gi;return F.replace(nt,"$2")},n=e(t.complaint_id),i="detail/"+e(t.complaint_id),c=F=>Vo.createElement("span",{className:"body-copy",dangerouslySetInnerHTML:{__html:F}}),S=(F,nt)=>{const ut=F.length>KO;return F=F.substring(0,KO),F?Vo.createElement("div",null,Vo.createElement("h4",{className:"u-mt15"},"Consumer Complaint Narrative"),c(F),ut?Vo.createElement("span",null," ",Vo.createElement($h,{to:nt},"[...]")):null):null};return Vo.createElement("li",{className:"card-container"},Vo.createElement("div",{className:"card"},Vo.createElement("div",{className:"card-left layout-column"},Vo.createElement("h3",{className:"to-detail"},Vo.createElement($h,{to:i,"aria-label":"Complaint "+qm(n)},n)),Vo.createElement("h4",null,"Company name"),c(t.company),Vo.createElement("h4",{className:"u-mt15"},"Company response to consumer"),c(t.company_response),Vo.createElement("h4",{className:"u-mt15"},"Timely response?"),c(t.timely)),Vo.createElement("div",{className:"card-right layout-column"},Vo.createElement("div",{className:"layout-row"},Vo.createElement("div",{className:"layout-row"},Vo.createElement("h4",null,"Date received:"),Vo.createElement("span",{className:"body-copy"},Kl(t.date_received))),Vo.createElement("div",{className:"spacer"}),Vo.createElement("div",{className:"layout-row"},Vo.createElement("h4",null,"Consumer\u2019s state:"),c(t.state))),Vo.createElement("h4",{className:"u-mt15"},"Product"),Vo.createElement("h3",{dangerouslySetInnerHTML:{__html:t.product}}),t.sub_product?Vo.createElement("div",{className:"layout-row"},Vo.createElement("span",{className:"body-copy subitem"},"Sub-product:"),c(t.sub_product)):null,Vo.createElement("h4",{className:"u-mt15"},"Issue"),Vo.createElement("h3",{dangerouslySetInnerHTML:{__html:t.issue}}),t.sub_issue?Vo.createElement("div",{className:"layout-row"},Vo.createElement("span",{className:"body-copy subitem"},"Sub-issue:"),c(t.sub_issue)):null,S(t.complaint_what_happened||"",i))))};ZO.propTypes={row:Rn().object.isRequired};const g$={};var EP=Fn(7810);const dM=({text:t})=>EP.createElement("div",{role:"alert",className:"error m-notification m-notification--visible m-notification--error"},Wi("error-round"),EP.createElement("div",{className:"m-notification__content"},EP.createElement("div",{className:"m-notification__message"},t))),QO=dM;dM.propTypes={text:Rn().string.isRequired};const y$={};var pM=Fn(7810);const CP=()=>{const t=Si(),e=sr(DO);return pM.createElement("section",{className:"filter-panel-toggle"},pM.createElement("div",{className:"m-btn-group"},pM.createElement("p",null,"\xA0"),pM.createElement("button",{className:"a-btn filter-toggle-button",onClick:()=>{t(Dw())}},e?"Close Filters":"Filter results")))};var U_=Fn(7810);const JO="has_narrative",j7=()=>{const t=Si(),n=sr(Ww)===!0;return U_.createElement("section",{className:"narratives-buttons"},U_.createElement("p",null,"Read"),U_.createElement("div",{className:"m-btn-group"},U_.createElement("button",{id:"btn-add-narratives",className:"a-btn"+$m(!0,n),disabled:n,onClick:()=>{t(Lw(JO,""))}},"Only complaints with narratives"),U_.createElement("button",{id:"btn-remove-narratives",className:"a-btn"+$m(!1,!!n),disabled:!n,onClick:()=>{t(Jm(JO,""))}},"All complaints")))},MP=()=>{const t=sr(tu),e=sr(vp),n=sr(jc),i=sr(ly),c=xs(t,e);return wS(c,{skip:n!==np||i===""})};var jy=Fn(7810);const B7=()=>{const t=Si(),e=sr(D3),{data:n}=MP(),i=n==null?void 0:n.hits,c=(n==null?void 0:n.totalPages)||0,S=n==null?void 0:n.breakPoints,F=()=>{t(C3(S))},nt=()=>{t(wo(S))};return i&&i.length>0?jy.createElement("nav",{className:"m-pagination",role:"navigation","aria-label":"Pagination"},jy.createElement("button",{className:"a-btn m-pagination__btn-prev",onClick:()=>nt(),disabled:e<=1},Wi("left"),jy.createElement("span",null,"Previous")),jy.createElement("button",{className:"a-btn m-pagination__btn-next",onClick:()=>F(),disabled:e>=c},jy.createElement("span",null,"Next"),Wi("right")),jy.createElement("div",{className:"m-pagination__form"},jy.createElement("label",{className:"m-pagination__label"},"Page ",e))):null};var H_=Fn(7810);const mM=({id:t,handleChange:e,label:n,title:i,value:c,values:S})=>{const F="select-"+t,nt=(0,W.useMemo)(()=>Array.isArray(S)?Object.prototype.hasOwnProperty.call(S[0],"name")?S:S.map(ut=>({name:ut,value:ut,disabled:ut.disabled})):Object.keys(S).map(ut=>({name:S[ut],value:ut,disabled:ut.disabled})),[S]);return H_.createElement("section",{className:"cf-select","data-tour":F},H_.createElement("label",{className:"u-visually-hidden",htmlFor:F},n),H_.createElement("p",null,i),H_.createElement("select",{value:c,id:F,onChange:e},nt.map(ut=>H_.createElement("option",{disabled:[ut.value,ut.name].includes(c)||ut.disabled,key:ut.name,value:ut.value||ut.name},ut.name))))},t4=mM;mM.propTypes={id:Rn().string,handleChange:Rn().func.isRequired,label:Rn().string,title:Rn().string,values:Rn().oneOfType([Rn().array,Rn().object]).isRequired,value:Rn().oneOfType([Rn().string,Rn().number])};const v$={};var F7=Fn(7810);const gM=()=>F7.createElement("span",{className:"separator"}),b$={};var V_=Fn(7810);const kP=()=>{const t=Si(),e=sr(jc),n=i=>{const c=i.toLowerCase()+" tab";return e===i?c+" active":c};return V_.createElement("div",{className:"tabbed-navigation","data-tour":"tabbed-navigation"},V_.createElement("section",null,V_.createElement("button",{className:n("Trends"),onClick:()=>t(Nf("Trends"))},Wi("chart"),"Trends"),V_.createElement("button",{className:n("List"),onClick:()=>t(Nf("List"))},Wi("list"),"List"),V_.createElement("button",{className:n("Map"),onClick:()=>t(Nf("Map"))},Wi("map"),"Map")))};var fl=Fn(7810);const z7="ERROR",e4="NO_RESULTS",U7="RESULTS",H7=()=>{const t=Si(),{data:e,isLoading:n,isFetching:i,error:c}=MP(),S=sr(R3),F=sr(L3),nt=sr(Eh),ut=(0,W.useMemo)(()=>nt<750,[nt]),yt=(e==null?void 0:e.hits)||[],_t=pe=>{const _e=pe.target.value;Ps("Dropdown",_e+" results"),t(rg(_e))},zt=pe=>{const{value:_e}=pe.target;Ps("Dropdown",Jv[_e]),t(fE(_e))},Ht=()=>c?z7:n||i||yt.length===0?e4:yt.length>0?U7:e4,oe={ERROR:()=>fl.createElement(QO,{text:"There was a problem executing your search"}),NO_RESULTS:()=>fl.createElement("h2",null,"No results were found for your search"),RESULTS:()=>fl.createElement("ul",{className:"cards-panel"},yt.map(pe=>fl.createElement(ZO,{key:pe.complaint_id,row:pe})))},de=Ht();return fl.createElement("section",{className:"list-panel"},fl.createElement(SP,null),fl.createElement(kP,null),!!ut&&fl.createElement(hM,null),fl.createElement(CP,null),fl.createElement("div",{className:"layout-row refine-bar"},fl.createElement(gM,null),fl.createElement(mM,{label:"Select the number of results to display at a time",title:"Show",values:rp,id:"size",value:S,handleChange:_t}),fl.createElement(mM,{label:"Choose the order in which the results are displayed",title:"Sort",values:Jv,id:"sort",value:F,handleChange:zt}),fl.createElement(j7,null)),oe[de](),fl.createElement(B7,null),fl.createElement(fp,{isLoading:n||i}))},x$={};var By=Fn(7810);const V7=()=>{const t=Si(),e=sr(Vw),n=e?e.filter(i=>i in U0).map(i=>U0[i]).join(", "):"";return By.createElement("div",{className:"map-toolbar"},By.createElement("section",{className:"state-heading"},!n&&By.createElement("span",null,"United States of America"),By.createElement("span",null,n),!!n&&By.createElement("button",{"aria-label":"Clear all map filters",className:"a-btn a-btn--link",onClick:()=>{t(Iw())}},Wi("delete-round"),"Clear")),!!n&&By.createElement("section",{className:"state-navigation"},By.createElement("button",{className:"list a-btn a-btn--link",onClick:()=>{t(Nf(np))}},"View complaints for filtered states")))};var Sb=Fn(7810);const W7=()=>{const t=sr(Hw),e=sr(pE),n=Si(),i=(0,W.useMemo)(()=>e?$m(t,z0):"a-btn__disabled",[t,e]);return Sb.createElement("section",{className:"per-capita"},Sb.createElement("p",null,"Map shading"),Sb.createElement("div",{className:"m-btn-group"},Sb.createElement("button",{"aria-label":"Display map by complaints",className:"a-btn"+$m(t,Cc),onClick:()=>{n(Rw(Cc))},disabled:t===Cc},"Complaints"),Sb.createElement("button",{"aria-label":"Display map by complaints per 1,000 people",className:"a-btn "+i,disabled:t===z0||!e,onClick:()=>{n(Rw(z0))}},"Complaints per 1,000 ",Sb.createElement("span",null,"population"))))},w$={};function Y7(){}function TP(t){return t==null?Y7:function(){return this.querySelector(t)}}function q7(t){typeof t!="function"&&(t=TP(t));for(var e=this._groups,n=e.length,i=new Array(n),c=0;c<n;++c)for(var S=e[c],F=S.length,nt=i[c]=new Array(F),ut,yt,_t=0;_t<F;++_t)(ut=S[_t])&&(yt=t.call(ut,ut.__data__,_t,S))&&("__data__"in ut&&(yt.__data__=ut.__data__),nt[_t]=yt);return new Mh(i,this._parents)}function $7(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function X7(){return[]}function n4(t){return t==null?X7:function(){return this.querySelectorAll(t)}}function G7(t){return function(){return $7(t.apply(this,arguments))}}function K7(t){typeof t=="function"?t=G7(t):t=n4(t);for(var e=this._groups,n=e.length,i=[],c=[],S=0;S<n;++S)for(var F=e[S],nt=F.length,ut,yt=0;yt<nt;++yt)(ut=F[yt])&&(i.push(t.call(ut,ut.__data__,yt,F)),c.push(ut));return new Mh(i,c)}function r4(t){return function(){return this.matches(t)}}function i4(t){return function(e){return e.matches(t)}}var Z7=Array.prototype.find;function Q7(t){return function(){return Z7.call(this.children,t)}}function J7(){return this.firstElementChild}function t8(t){return this.select(t==null?J7:Q7(typeof t=="function"?t:i4(t)))}var e8=Array.prototype.filter;function n8(){return Array.from(this.children)}function r8(t){return function(){return e8.call(this.children,t)}}function i8(t){return this.selectAll(t==null?n8:r8(typeof t=="function"?t:i4(t)))}function o8(t){typeof t!="function"&&(t=r4(t));for(var e=this._groups,n=e.length,i=new Array(n),c=0;c<n;++c)for(var S=e[c],F=S.length,nt=i[c]=[],ut,yt=0;yt<F;++yt)(ut=S[yt])&&t.call(ut,ut.__data__,yt,S)&&nt.push(ut);return new Mh(i,this._parents)}function o4(t){return new Array(t.length)}function a8(){return new Mh(this._enter||this._groups.map(o4),this._parents)}function yM(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}yM.prototype={constructor:yM,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function s8(t){return function(){return t}}function l8(t,e,n,i,c,S){for(var F=0,nt,ut=e.length,yt=S.length;F<yt;++F)(nt=e[F])?(nt.__data__=S[F],i[F]=nt):n[F]=new yM(t,S[F]);for(;F<ut;++F)(nt=e[F])&&(c[F]=nt)}function u8(t,e,n,i,c,S,F){var nt,ut,yt=new Map,_t=e.length,zt=S.length,Ht=new Array(_t),Yt;for(nt=0;nt<_t;++nt)(ut=e[nt])&&(Ht[nt]=Yt=F.call(ut,ut.__data__,nt,e)+"",yt.has(Yt)?c[nt]=ut:yt.set(Yt,ut));for(nt=0;nt<zt;++nt)Yt=F.call(t,S[nt],nt,S)+"",(ut=yt.get(Yt))?(i[nt]=ut,ut.__data__=S[nt],yt.delete(Yt)):n[nt]=new yM(t,S[nt]);for(nt=0;nt<_t;++nt)(ut=e[nt])&&yt.get(Ht[nt])===ut&&(c[nt]=ut)}function c8(t){return t.__data__}function h8(t,e){if(!arguments.length)return Array.from(this,c8);var n=e?u8:l8,i=this._parents,c=this._groups;typeof t!="function"&&(t=s8(t));for(var S=c.length,F=new Array(S),nt=new Array(S),ut=new Array(S),yt=0;yt<S;++yt){var _t=i[yt],zt=c[yt],Ht=zt.length,Yt=f8(t.call(_t,_t&&_t.__data__,yt,i)),re=Yt.length,ue=nt[yt]=new Array(re),oe=F[yt]=new Array(re),de=ut[yt]=new Array(Ht);n(_t,zt,ue,oe,de,Yt,e);for(var pe=0,_e=0,ge,qe;pe<re;++pe)if(ge=ue[pe]){for(pe>=_e&&(_e=pe+1);!(qe=oe[_e])&&++_e<re;);ge._next=qe||null}}return F=new Mh(F,i),F._enter=nt,F._exit=ut,F}function f8(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function d8(){return new Mh(this._exit||this._groups.map(o4),this._parents)}function p8(t,e,n){var i=this.enter(),c=this,S=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(c=e(c),c&&(c=c.selection())),n==null?S.remove():n(S),i&&c?i.merge(c).order():c}function m8(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,c=n.length,S=i.length,F=Math.min(c,S),nt=new Array(c),ut=0;ut<F;++ut)for(var yt=n[ut],_t=i[ut],zt=yt.length,Ht=nt[ut]=new Array(zt),Yt,re=0;re<zt;++re)(Yt=yt[re]||_t[re])&&(Ht[re]=Yt);for(;ut<c;++ut)nt[ut]=n[ut];return new Mh(nt,this._parents)}function g8(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i=t[e],c=i.length-1,S=i[c],F;--c>=0;)(F=i[c])&&(S&&F.compareDocumentPosition(S)^4&&S.parentNode.insertBefore(F,S),S=F);return this}function y8(t){t||(t=v8);function e(zt,Ht){return zt&&Ht?t(zt.__data__,Ht.__data__):!zt-!Ht}for(var n=this._groups,i=n.length,c=new Array(i),S=0;S<i;++S){for(var F=n[S],nt=F.length,ut=c[S]=new Array(nt),yt,_t=0;_t<nt;++_t)(yt=F[_t])&&(ut[_t]=yt);ut.sort(e)}return new Mh(c,this._parents).order()}function v8(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function b8(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function x8(){return Array.from(this)}function w8(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],c=0,S=i.length;c<S;++c){var F=i[c];if(F)return F}return null}function _8(){let t=0;for(const e of this)++t;return t}function S8(){return!this.node()}function E8(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var c=e[n],S=0,F=c.length,nt;S<F;++S)(nt=c[S])&&t.call(nt,nt.__data__,S,c);return this}var AP="http://www.w3.org/1999/xhtml";const a4={svg:"http://www.w3.org/2000/svg",xhtml:AP,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function vM(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),a4.hasOwnProperty(e)?{space:a4[e],local:t}:t}function C8(t){return function(){this.removeAttribute(t)}}function M8(t){return function(){this.removeAttributeNS(t.space,t.local)}}function k8(t,e){return function(){this.setAttribute(t,e)}}function T8(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function A8(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function P8(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function O8(t,e){var n=vM(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((e==null?n.local?M8:C8:typeof e=="function"?n.local?P8:A8:n.local?T8:k8)(n,e))}function s4(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function N8(t){return function(){this.style.removeProperty(t)}}function D8(t,e,n){return function(){this.style.setProperty(t,e,n)}}function R8(t,e,n){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function L8(t,e,n){return arguments.length>1?this.each((e==null?N8:typeof e=="function"?R8:D8)(t,e,n==null?"":n)):Eb(this.node(),t)}function Eb(t,e){return t.style.getPropertyValue(e)||s4(t).getComputedStyle(t,null).getPropertyValue(e)}function I8(t){return function(){delete this[t]}}function j8(t,e){return function(){this[t]=e}}function B8(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function F8(t,e){return arguments.length>1?this.each((e==null?I8:typeof e=="function"?B8:j8)(t,e)):this.node()[t]}function l4(t){return t.trim().split(/^|\s+/)}function PP(t){return t.classList||new u4(t)}function u4(t){this._node=t,this._names=l4(t.getAttribute("class")||"")}u4.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function c4(t,e){for(var n=PP(t),i=-1,c=e.length;++i<c;)n.add(e[i])}function h4(t,e){for(var n=PP(t),i=-1,c=e.length;++i<c;)n.remove(e[i])}function z8(t){return function(){c4(this,t)}}function U8(t){return function(){h4(this,t)}}function H8(t,e){return function(){(e.apply(this,arguments)?c4:h4)(this,t)}}function V8(t,e){var n=l4(t+"");if(arguments.length<2){for(var i=PP(this.node()),c=-1,S=n.length;++c<S;)if(!i.contains(n[c]))return!1;return!0}return this.each((typeof e=="function"?H8:e?z8:U8)(n,e))}function W8(){this.textContent=""}function Y8(t){return function(){this.textContent=t}}function q8(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function $8(t){return arguments.length?this.each(t==null?W8:(typeof t=="function"?q8:Y8)(t)):this.node().textContent}function X8(){this.innerHTML=""}function G8(t){return function(){this.innerHTML=t}}function K8(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function Z8(t){return arguments.length?this.each(t==null?X8:(typeof t=="function"?K8:G8)(t)):this.node().innerHTML}function Q8(){this.nextSibling&&this.parentNode.appendChild(this)}function J8(){return this.each(Q8)}function tL(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function eL(){return this.each(tL)}function nL(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===AP&&e.documentElement.namespaceURI===AP?e.createElement(t):e.createElementNS(n,t)}}function rL(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function f4(t){var e=vM(t);return(e.local?rL:nL)(e)}function iL(t){var e=typeof t=="function"?t:f4(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function oL(){return null}function aL(t,e){var n=typeof t=="function"?t:f4(t),i=e==null?oL:typeof e=="function"?e:TP(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function sL(){var t=this.parentNode;t&&t.removeChild(this)}function lL(){return this.each(sL)}function uL(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function cL(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function hL(t){return this.select(t?cL:uL)}function fL(t){return arguments.length?this.property("__data__",t):this.node().__data__}function dL(t){return function(e){t.call(this,e,this.__data__)}}function pL(t){return t.trim().split(/^|\s+/).map(function(e){var n="",i=e.indexOf(".");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{type:e,name:n}})}function mL(t){return function(){var e=this.__on;if(e){for(var n=0,i=-1,c=e.length,S;n<c;++n)S=e[n],(!t.type||S.type===t.type)&&S.name===t.name?this.removeEventListener(S.type,S.listener,S.options):e[++i]=S;++i?e.length=i:delete this.__on}}}function gL(t,e,n){return function(){var i=this.__on,c,S=dL(e);if(i){for(var F=0,nt=i.length;F<nt;++F)if((c=i[F]).type===t.type&&c.name===t.name){this.removeEventListener(c.type,c.listener,c.options),this.addEventListener(c.type,c.listener=S,c.options=n),c.value=e;return}}this.addEventListener(t.type,S,n),c={type:t.type,name:t.name,value:e,listener:S,options:n},i?i.push(c):this.__on=[c]}}function yL(t,e,n){var i=pL(t+""),c,S=i.length,F;if(arguments.length<2){var nt=this.node().__on;if(nt){for(var ut=0,yt=nt.length,_t;ut<yt;++ut)for(c=0,_t=nt[ut];c<S;++c)if((F=i[c]).type===_t.type&&F.name===_t.name)return _t.value}return}for(nt=e?gL:mL,c=0;c<S;++c)this.each(nt(i[c],e,n));return this}function d4(t,e,n){var i=s4(t),c=i.CustomEvent;typeof c=="function"?c=new c(e,n):(c=i.document.createEvent("Event"),n?(c.initEvent(e,n.bubbles,n.cancelable),c.detail=n.detail):c.initEvent(e,!1,!1)),t.dispatchEvent(c)}function vL(t,e){return function(){return d4(this,t,e)}}function bL(t,e){return function(){return d4(this,t,e.apply(this,arguments))}}function xL(t,e){return this.each((typeof e=="function"?bL:vL)(t,e))}function*wL(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],c=0,S=i.length,F;c<S;++c)(F=i[c])&&(yield F)}var _L=[null];function Mh(t,e){this._groups=t,this._parents=e}function p4(){return new Mh([[document.documentElement]],_L)}function SL(){return this}Mh.prototype=p4.prototype={constructor:Mh,select:q7,selectAll:K7,selectChild:t8,selectChildren:i8,filter:o8,data:h8,enter:a8,exit:d8,join:p8,merge:m8,selection:SL,order:g8,sort:y8,call:b8,nodes:x8,node:w8,size:_8,empty:S8,each:E8,attr:O8,style:L8,property:F8,classed:V8,text:$8,html:Z8,raise:J8,lower:eL,append:iL,insert:aL,remove:lL,clone:hL,datum:fL,on:yL,dispatch:xL,[Symbol.iterator]:wL};const W_=p4;var EL={value:()=>{}};function m4(){for(var t=0,e=arguments.length,n={},i;t<e;++t){if(!(i=arguments[t]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new bM(n)}function bM(t){this._=t}function CL(t,e){return t.trim().split(/^|\s+/).map(function(n){var i="",c=n.indexOf(".");if(c>=0&&(i=n.slice(c+1),n=n.slice(0,c)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}bM.prototype=m4.prototype={constructor:bM,on:function(t,e){var n=this._,i=CL(t+"",n),c,S=-1,F=i.length;if(arguments.length<2){for(;++S<F;)if((c=(t=i[S]).type)&&(c=ML(n[c],t.name)))return c;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++S<F;)if(c=(t=i[S]).type)n[c]=g4(n[c],t.name,e);else if(e==null)for(c in n)n[c]=g4(n[c],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new bM(t)},call:function(t,e){if((c=arguments.length-2)>0)for(var n=new Array(c),i=0,c,S;i<c;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(S=this._[t],i=0,c=S.length;i<c;++i)S[i].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],c=0,S=i.length;c<S;++c)i[c].value.apply(e,n)}};function ML(t,e){for(var n=0,i=t.length,c;n<i;++n)if((c=t[n]).name===e)return c.value}function g4(t,e,n){for(var i=0,c=t.length;i<c;++i)if(t[i].name===e){t[i]=EL,t=t.slice(0,i).concat(t.slice(i+1));break}return n!=null&&t.push({name:e,value:n}),t}const kL=m4;var Cb=0,Y_=0,q_=0,y4=1e3,xM,$_,wM=0,Fy=0,_M=0,X_=typeof performance=="object"&&performance.now?performance:Date,v4=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function OP(){return Fy||(v4(TL),Fy=X_.now()+_M)}function TL(){Fy=0}function SM(){this._call=this._time=this._next=null}SM.prototype=b4.prototype={constructor:SM,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?OP():+n)+(e==null?0:+e),!this._next&&$_!==this&&($_?$_._next=this:xM=this,$_=this),this._call=t,this._time=n,NP()},stop:function(){this._call&&(this._call=null,this._time=1/0,NP())}};function b4(t,e,n){var i=new SM;return i.restart(t,e,n),i}function AL(){OP(),++Cb;for(var t=xM,e;t;)(e=Fy-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Cb}function x4(){Fy=(wM=X_.now())+_M,Cb=Y_=0;try{AL()}finally{Cb=0,OL(),Fy=0}}function PL(){var t=X_.now(),e=t-wM;e>y4&&(_M-=e,wM=t)}function OL(){for(var t,e=xM,n,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:xM=n);$_=t,NP(i)}function NP(t){if(!Cb){Y_&&(Y_=clearTimeout(Y_));var e=t-Fy;e>24?(t<1/0&&(Y_=setTimeout(x4,t-X_.now()-_M)),q_&&(q_=clearInterval(q_))):(q_||(wM=X_.now(),q_=setInterval(PL,y4)),Cb=1,v4(x4))}}function w4(t,e,n){var i=new SM;return e=e==null?0:+e,i.restart(c=>{i.stop(),t(c+e)},e,n),i}var NL=kL("start","end","cancel","interrupt"),DL=[],_4=0,S4=1,DP=2,EM=3,E4=4,RP=5,CM=6;function MM(t,e,n,i,c,S){var F=t.__transition;if(!F)t.__transition={};else if(n in F)return;RL(t,n,{name:e,index:i,group:c,on:NL,tween:DL,time:S.time,delay:S.delay,duration:S.duration,ease:S.ease,timer:null,state:_4})}function LP(t,e){var n=kh(t,e);if(n.state>_4)throw new Error("too late; already scheduled");return n}function Hf(t,e){var n=kh(t,e);if(n.state>EM)throw new Error("too late; already running");return n}function kh(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function RL(t,e,n){var i=t.__transition,c;i[e]=n,n.timer=b4(S,0,n.time);function S(yt){n.state=S4,n.timer.restart(F,n.delay,n.time),n.delay<=yt&&F(yt-n.delay)}function F(yt){var _t,zt,Ht,Yt;if(n.state!==S4)return ut();for(_t in i)if(Yt=i[_t],Yt.name===n.name){if(Yt.state===EM)return w4(F);Yt.state===E4?(Yt.state=CM,Yt.timer.stop(),Yt.on.call("interrupt",t,t.__data__,Yt.index,Yt.group),delete i[_t]):+_t<e&&(Yt.state=CM,Yt.timer.stop(),Yt.on.call("cancel",t,t.__data__,Yt.index,Yt.group),delete i[_t])}if(w4(function(){n.state===EM&&(n.state=E4,n.timer.restart(nt,n.delay,n.time),nt(yt))}),n.state=DP,n.on.call("start",t,t.__data__,n.index,n.group),n.state===DP){for(n.state=EM,c=new Array(Ht=n.tween.length),_t=0,zt=-1;_t<Ht;++_t)(Yt=n.tween[_t].value.call(t,t.__data__,n.index,n.group))&&(c[++zt]=Yt);c.length=zt+1}}function nt(yt){for(var _t=yt<n.duration?n.ease.call(null,yt/n.duration):(n.timer.restart(ut),n.state=RP,1),zt=-1,Ht=c.length;++zt<Ht;)c[zt].call(t,_t);n.state===RP&&(n.on.call("end",t,t.__data__,n.index,n.group),ut())}function ut(){n.state=CM,n.timer.stop(),delete i[e];for(var yt in i)return;delete t.__transition}}function LL(t,e){var n=t.__transition,i,c,S=!0,F;if(n){e=e==null?null:e+"";for(F in n){if((i=n[F]).name!==e){S=!1;continue}c=i.state>DP&&i.state<RP,i.state=CM,i.timer.stop(),i.on.call(c?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete n[F]}S&&delete t.__transition}}function IL(t){return this.each(function(){LL(this,t)})}function _g(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var C4=180/Math.PI,IP={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function M4(t,e,n,i,c,S){var F,nt,ut;return(F=Math.sqrt(t*t+e*e))&&(t/=F,e/=F),(ut=t*n+e*i)&&(n-=t*ut,i-=e*ut),(nt=Math.sqrt(n*n+i*i))&&(n/=nt,i/=nt,ut/=nt),t*i<e*n&&(t=-t,e=-e,ut=-ut,F=-F),{translateX:c,translateY:S,rotate:Math.atan2(e,t)*C4,skewX:Math.atan(ut)*C4,scaleX:F,scaleY:nt}}var kM;function jL(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?IP:M4(e.a,e.b,e.c,e.d,e.e,e.f)}function BL(t){return t==null||(kM||(kM=document.createElementNS("http://www.w3.org/2000/svg","g")),kM.setAttribute("transform",t),!(t=kM.transform.baseVal.consolidate()))?IP:(t=t.matrix,M4(t.a,t.b,t.c,t.d,t.e,t.f))}function k4(t,e,n,i){function c(yt){return yt.length?yt.pop()+" ":""}function S(yt,_t,zt,Ht,Yt,re){if(yt!==zt||_t!==Ht){var ue=Yt.push("translate(",null,e,null,n);re.push({i:ue-4,x:_g(yt,zt)},{i:ue-2,x:_g(_t,Ht)})}else(zt||Ht)&&Yt.push("translate("+zt+e+Ht+n)}function F(yt,_t,zt,Ht){yt!==_t?(yt-_t>180?_t+=360:_t-yt>180&&(yt+=360),Ht.push({i:zt.push(c(zt)+"rotate(",null,i)-2,x:_g(yt,_t)})):_t&&zt.push(c(zt)+"rotate("+_t+i)}function nt(yt,_t,zt,Ht){yt!==_t?Ht.push({i:zt.push(c(zt)+"skewX(",null,i)-2,x:_g(yt,_t)}):_t&&zt.push(c(zt)+"skewX("+_t+i)}function ut(yt,_t,zt,Ht,Yt,re){if(yt!==zt||_t!==Ht){var ue=Yt.push(c(Yt)+"scale(",null,",",null,")");re.push({i:ue-4,x:_g(yt,zt)},{i:ue-2,x:_g(_t,Ht)})}else(zt!==1||Ht!==1)&&Yt.push(c(Yt)+"scale("+zt+","+Ht+")")}return function(yt,_t){var zt=[],Ht=[];return yt=t(yt),_t=t(_t),S(yt.translateX,yt.translateY,_t.translateX,_t.translateY,zt,Ht),F(yt.rotate,_t.rotate,zt,Ht),nt(yt.skewX,_t.skewX,zt,Ht),ut(yt.scaleX,yt.scaleY,_t.scaleX,_t.scaleY,zt,Ht),yt=_t=null,function(Yt){for(var re=-1,ue=Ht.length,oe;++re<ue;)zt[(oe=Ht[re]).i]=oe.x(Yt);return zt.join("")}}}var FL=k4(jL,"px, ","px)","deg)"),zL=k4(BL,", ",")",")");function UL(t,e){var n,i;return function(){var c=Hf(this,t),S=c.tween;if(S!==n){i=n=S;for(var F=0,nt=i.length;F<nt;++F)if(i[F].name===e){i=i.slice(),i.splice(F,1);break}}c.tween=i}}function HL(t,e,n){var i,c;if(typeof n!="function")throw new Error;return function(){var S=Hf(this,t),F=S.tween;if(F!==i){c=(i=F).slice();for(var nt={name:e,value:n},ut=0,yt=c.length;ut<yt;++ut)if(c[ut].name===e){c[ut]=nt;break}ut===yt&&c.push(nt)}S.tween=c}}function VL(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i=kh(this.node(),n).tween,c=0,S=i.length,F;c<S;++c)if((F=i[c]).name===t)return F.value;return null}return this.each((e==null?UL:HL)(n,t,e))}function jP(t,e,n){var i=t._id;return t.each(function(){var c=Hf(this,i);(c.value||(c.value={}))[e]=n.apply(this,arguments)}),function(c){return kh(c,i).value[e]}}function BP(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function T4(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function G_(){}var K_=.7,TM=1/K_,Mb="\\s*([+-]?\\d+)\\s*",Z_="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",WL=/^#([0-9a-f]{3,8})$/,YL=new RegExp(`^rgb\\(${Mb},${Mb},${Mb}\\)$`),qL=new RegExp(`^rgb\\(${Vf},${Vf},${Vf}\\)$`),$L=new RegExp(`^rgba\\(${Mb},${Mb},${Mb},${Z_}\\)$`),XL=new RegExp(`^rgba\\(${Vf},${Vf},${Vf},${Z_}\\)$`),GL=new RegExp(`^hsl\\(${Z_},${Vf},${Vf}\\)$`),KL=new RegExp(`^hsla\\(${Z_},${Vf},${Vf},${Z_}\\)$`),A4={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};BP(G_,Q_,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:P4,formatHex:P4,formatHex8:ZL,formatHsl:QL,formatRgb:O4,toString:O4});function P4(){return this.rgb().formatHex()}function ZL(){return this.rgb().formatHex8()}function QL(){return I4(this).formatHsl()}function O4(){return this.rgb().formatRgb()}function Q_(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=WL.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?N4(e):n===3?new fu(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?AM(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?AM(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=YL.exec(t))?new fu(e[1],e[2],e[3],1):(e=qL.exec(t))?new fu(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=$L.exec(t))?AM(e[1],e[2],e[3],e[4]):(e=XL.exec(t))?AM(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=GL.exec(t))?L4(e[1],e[2]/100,e[3]/100,1):(e=KL.exec(t))?L4(e[1],e[2]/100,e[3]/100,e[4]):A4.hasOwnProperty(t)?N4(A4[t]):t==="transparent"?new fu(NaN,NaN,NaN,0):null}function N4(t){return new fu(t>>16&255,t>>8&255,t&255,1)}function AM(t,e,n,i){return i<=0&&(t=e=n=NaN),new fu(t,e,n,i)}function JL(t){return t instanceof G_||(t=Q_(t)),t?(t=t.rgb(),new fu(t.r,t.g,t.b,t.opacity)):new fu}function PM(t,e,n,i){return arguments.length===1?JL(t):new fu(t,e,n,i==null?1:i)}function fu(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}BP(fu,PM,T4(G_,{brighter(t){return t=t==null?TM:Math.pow(TM,t),new fu(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?K_:Math.pow(K_,t),new fu(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new fu(zy(this.r),zy(this.g),zy(this.b),OM(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:D4,formatHex:D4,formatHex8:tI,formatRgb:R4,toString:R4}));function D4(){return`#${Uy(this.r)}${Uy(this.g)}${Uy(this.b)}`}function tI(){return`#${Uy(this.r)}${Uy(this.g)}${Uy(this.b)}${Uy((isNaN(this.opacity)?1:this.opacity)*255)}`}function R4(){const t=OM(this.opacity);return`${t===1?"rgb(":"rgba("}${zy(this.r)}, ${zy(this.g)}, ${zy(this.b)}${t===1?")":`, ${t})`}`}function OM(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function zy(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Uy(t){return t=zy(t),(t<16?"0":"")+t.toString(16)}function L4(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Th(t,e,n,i)}function I4(t){if(t instanceof Th)return new Th(t.h,t.s,t.l,t.opacity);if(t instanceof G_||(t=Q_(t)),!t)return new Th;if(t instanceof Th)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,c=Math.min(e,n,i),S=Math.max(e,n,i),F=NaN,nt=S-c,ut=(S+c)/2;return nt?(e===S?F=(n-i)/nt+(n<i)*6:n===S?F=(i-e)/nt+2:F=(e-n)/nt+4,nt/=ut<.5?S+c:2-S-c,F*=60):nt=ut>0&&ut<1?0:F,new Th(F,nt,ut,t.opacity)}function eI(t,e,n,i){return arguments.length===1?I4(t):new Th(t,e,n,i==null?1:i)}function Th(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}BP(Th,eI,T4(G_,{brighter(t){return t=t==null?TM:Math.pow(TM,t),new Th(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?K_:Math.pow(K_,t),new Th(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,c=2*n-i;return new fu(FP(t>=240?t-240:t+120,c,i),FP(t,c,i),FP(t<120?t+240:t-120,c,i),this.opacity)},clamp(){return new Th(j4(this.h),NM(this.s),NM(this.l),OM(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=OM(this.opacity);return`${t===1?"hsl(":"hsla("}${j4(this.h)}, ${NM(this.s)*100}%, ${NM(this.l)*100}%${t===1?")":`, ${t})`}`}}));function j4(t){return t=(t||0)%360,t<0?t+360:t}function NM(t){return Math.max(0,Math.min(1,t||0))}function FP(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function B4(t,e,n,i,c){var S=t*t,F=S*t;return((1-3*t+3*S-F)*e+(4-6*S+3*F)*n+(1+3*t+3*S-3*F)*i+F*c)/6}function nI(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),c=t[i],S=t[i+1],F=i>0?t[i-1]:2*c-S,nt=i<e-1?t[i+2]:2*S-c;return B4((n-i/e)*e,F,c,S,nt)}}function rI(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),c=t[(i+e-1)%e],S=t[i%e],F=t[(i+1)%e],nt=t[(i+2)%e];return B4((n-i/e)*e,c,S,F,nt)}}const F4=t=>()=>t;function z4(t,e){return function(n){return t+n*e}}function iI(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}function _$(t,e){var n=e-t;return n?z4(t,n>180||n<-180?n-360*Math.round(n/360):n):constant(isNaN(t)?e:t)}function oI(t){return(t=+t)==1?U4:function(e,n){return n-e?iI(e,n,t):F4(isNaN(e)?n:e)}}function U4(t,e){var n=e-t;return n?z4(t,n):F4(isNaN(t)?e:t)}const H4=function t(e){var n=oI(e);function i(c,S){var F=n((c=PM(c)).r,(S=PM(S)).r),nt=n(c.g,S.g),ut=n(c.b,S.b),yt=U4(c.opacity,S.opacity);return function(_t){return c.r=F(_t),c.g=nt(_t),c.b=ut(_t),c.opacity=yt(_t),c+""}}return i.gamma=t,i}(1);function V4(t){return function(e){var n=e.length,i=new Array(n),c=new Array(n),S=new Array(n),F,nt;for(F=0;F<n;++F)nt=PM(e[F]),i[F]=nt.r||0,c[F]=nt.g||0,S[F]=nt.b||0;return i=t(i),c=t(c),S=t(S),nt.opacity=1,function(ut){return nt.r=i(ut),nt.g=c(ut),nt.b=S(ut),nt+""}}}var S$=V4(nI),E$=V4(rI),zP=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,UP=new RegExp(zP.source,"g");function aI(t){return function(){return t}}function sI(t){return function(e){return t(e)+""}}function lI(t,e){var n=zP.lastIndex=UP.lastIndex=0,i,c,S,F=-1,nt=[],ut=[];for(t=t+"",e=e+"";(i=zP.exec(t))&&(c=UP.exec(e));)(S=c.index)>n&&(S=e.slice(n,S),nt[F]?nt[F]+=S:nt[++F]=S),(i=i[0])===(c=c[0])?nt[F]?nt[F]+=c:nt[++F]=c:(nt[++F]=null,ut.push({i:F,x:_g(i,c)})),n=UP.lastIndex;return n<e.length&&(S=e.slice(n),nt[F]?nt[F]+=S:nt[++F]=S),nt.length<2?ut[0]?sI(ut[0].x):aI(e):(e=ut.length,function(yt){for(var _t=0,zt;_t<e;++_t)nt[(zt=ut[_t]).i]=zt.x(yt);return nt.join("")})}function W4(t,e){var n;return(typeof e=="number"?_g:e instanceof Q_?H4:(n=Q_(e))?(e=n,H4):lI)(t,e)}function uI(t){return function(){this.removeAttribute(t)}}function cI(t){return function(){this.removeAttributeNS(t.space,t.local)}}function hI(t,e,n){var i,c=n+"",S;return function(){var F=this.getAttribute(t);return F===c?null:F===i?S:S=e(i=F,n)}}function fI(t,e,n){var i,c=n+"",S;return function(){var F=this.getAttributeNS(t.space,t.local);return F===c?null:F===i?S:S=e(i=F,n)}}function dI(t,e,n){var i,c,S;return function(){var F,nt=n(this),ut;return nt==null?void this.removeAttribute(t):(F=this.getAttribute(t),ut=nt+"",F===ut?null:F===i&&ut===c?S:(c=ut,S=e(i=F,nt)))}}function pI(t,e,n){var i,c,S;return function(){var F,nt=n(this),ut;return nt==null?void this.removeAttributeNS(t.space,t.local):(F=this.getAttributeNS(t.space,t.local),ut=nt+"",F===ut?null:F===i&&ut===c?S:(c=ut,S=e(i=F,nt)))}}function mI(t,e){var n=vM(t),i=n==="transform"?zL:W4;return this.attrTween(t,typeof e=="function"?(n.local?pI:dI)(n,i,jP(this,"attr."+t,e)):e==null?(n.local?cI:uI)(n):(n.local?fI:hI)(n,i,e))}function gI(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function yI(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function vI(t,e){var n,i;function c(){var S=e.apply(this,arguments);return S!==i&&(n=(i=S)&&yI(t,S)),n}return c._value=e,c}function bI(t,e){var n,i;function c(){var S=e.apply(this,arguments);return S!==i&&(n=(i=S)&&gI(t,S)),n}return c._value=e,c}function xI(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var i=vM(t);return this.tween(n,(i.local?vI:bI)(i,e))}function wI(t,e){return function(){LP(this,t).delay=+e.apply(this,arguments)}}function _I(t,e){return e=+e,function(){LP(this,t).delay=e}}function SI(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?wI:_I)(e,t)):kh(this.node(),e).delay}function EI(t,e){return function(){Hf(this,t).duration=+e.apply(this,arguments)}}function CI(t,e){return e=+e,function(){Hf(this,t).duration=e}}function MI(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?EI:CI)(e,t)):kh(this.node(),e).duration}function kI(t,e){if(typeof e!="function")throw new Error;return function(){Hf(this,t).ease=e}}function TI(t){var e=this._id;return arguments.length?this.each(kI(e,t)):kh(this.node(),e).ease}function AI(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;Hf(this,t).ease=n}}function PI(t){if(typeof t!="function")throw new Error;return this.each(AI(this._id,t))}function OI(t){typeof t!="function"&&(t=r4(t));for(var e=this._groups,n=e.length,i=new Array(n),c=0;c<n;++c)for(var S=e[c],F=S.length,nt=i[c]=[],ut,yt=0;yt<F;++yt)(ut=S[yt])&&t.call(ut,ut.__data__,yt,S)&&nt.push(ut);return new Np(i,this._parents,this._name,this._id)}function NI(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,c=n.length,S=Math.min(i,c),F=new Array(i),nt=0;nt<S;++nt)for(var ut=e[nt],yt=n[nt],_t=ut.length,zt=F[nt]=new Array(_t),Ht,Yt=0;Yt<_t;++Yt)(Ht=ut[Yt]||yt[Yt])&&(zt[Yt]=Ht);for(;nt<i;++nt)F[nt]=e[nt];return new Np(F,this._parents,this._name,this._id)}function DI(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function RI(t,e,n){var i,c,S=DI(e)?LP:Hf;return function(){var F=S(this,t),nt=F.on;nt!==i&&(c=(i=nt).copy()).on(e,n),F.on=c}}function LI(t,e){var n=this._id;return arguments.length<2?kh(this.node(),n).on.on(t):this.each(RI(n,t,e))}function II(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function jI(){return this.on("end.remove",II(this._id))}function BI(t){var e=this._name,n=this._id;typeof t!="function"&&(t=TP(t));for(var i=this._groups,c=i.length,S=new Array(c),F=0;F<c;++F)for(var nt=i[F],ut=nt.length,yt=S[F]=new Array(ut),_t,zt,Ht=0;Ht<ut;++Ht)(_t=nt[Ht])&&(zt=t.call(_t,_t.__data__,Ht,nt))&&("__data__"in _t&&(zt.__data__=_t.__data__),yt[Ht]=zt,MM(yt[Ht],e,n,Ht,yt,kh(_t,n)));return new Np(S,this._parents,e,n)}function FI(t){var e=this._name,n=this._id;typeof t!="function"&&(t=n4(t));for(var i=this._groups,c=i.length,S=[],F=[],nt=0;nt<c;++nt)for(var ut=i[nt],yt=ut.length,_t,zt=0;zt<yt;++zt)if(_t=ut[zt]){for(var Ht=t.call(_t,_t.__data__,zt,ut),Yt,re=kh(_t,n),ue=0,oe=Ht.length;ue<oe;++ue)(Yt=Ht[ue])&&MM(Yt,e,n,ue,Ht,re);S.push(Ht),F.push(_t)}return new Np(S,F,e,n)}var zI=W_.prototype.constructor;function UI(){return new zI(this._groups,this._parents)}function HI(t,e){var n,i,c;return function(){var S=Eb(this,t),F=(this.style.removeProperty(t),Eb(this,t));return S===F?null:S===n&&F===i?c:c=e(n=S,i=F)}}function Y4(t){return function(){this.style.removeProperty(t)}}function VI(t,e,n){var i,c=n+"",S;return function(){var F=Eb(this,t);return F===c?null:F===i?S:S=e(i=F,n)}}function WI(t,e,n){var i,c,S;return function(){var F=Eb(this,t),nt=n(this),ut=nt+"";return nt==null&&(ut=nt=(this.style.removeProperty(t),Eb(this,t))),F===ut?null:F===i&&ut===c?S:(c=ut,S=e(i=F,nt))}}function YI(t,e){var n,i,c,S="style."+e,F="end."+S,nt;return function(){var ut=Hf(this,t),yt=ut.on,_t=ut.value[S]==null?nt||(nt=Y4(e)):void 0;(yt!==n||c!==_t)&&(i=(n=yt).copy()).on(F,c=_t),ut.on=i}}function qI(t,e,n){var i=(t+="")=="transform"?FL:W4;return e==null?this.styleTween(t,HI(t,i)).on("end.style."+t,Y4(t)):typeof e=="function"?this.styleTween(t,WI(t,i,jP(this,"style."+t,e))).each(YI(this._id,t)):this.styleTween(t,VI(t,i,e),n).on("end.style."+t,null)}function $I(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function XI(t,e,n){var i,c;function S(){var F=e.apply(this,arguments);return F!==c&&(i=(c=F)&&$I(t,F,n)),i}return S._value=e,S}function GI(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,XI(t,e,n==null?"":n))}function KI(t){return function(){this.textContent=t}}function ZI(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function QI(t){return this.tween("text",typeof t=="function"?ZI(jP(this,"text",t)):KI(t==null?"":t+""))}function JI(t){return function(e){this.textContent=t.call(this,e)}}function t9(t){var e,n;function i(){var c=t.apply(this,arguments);return c!==n&&(e=(n=c)&&JI(c)),e}return i._value=t,i}function e9(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,t9(t))}function n9(){for(var t=this._name,e=this._id,n=q4(),i=this._groups,c=i.length,S=0;S<c;++S)for(var F=i[S],nt=F.length,ut,yt=0;yt<nt;++yt)if(ut=F[yt]){var _t=kh(ut,e);MM(ut,t,n,yt,F,{time:_t.time+_t.delay+_t.duration,delay:0,duration:_t.duration,ease:_t.ease})}return new Np(i,this._parents,t,n)}function r9(){var t,e,n=this,i=n._id,c=n.size();return new Promise(function(S,F){var nt={value:F},ut={value:function(){--c===0&&S()}};n.each(function(){var yt=Hf(this,i),_t=yt.on;_t!==t&&(e=(t=_t).copy(),e._.cancel.push(nt),e._.interrupt.push(nt),e._.end.push(ut)),yt.on=e}),c===0&&S()})}var i9=0;function Np(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function o9(t){return W_().transition(t)}function q4(){return++i9}var Dp=W_.prototype;Np.prototype=o9.prototype={constructor:Np,select:BI,selectAll:FI,selectChild:Dp.selectChild,selectChildren:Dp.selectChildren,filter:OI,merge:NI,selection:UI,transition:n9,call:Dp.call,nodes:Dp.nodes,node:Dp.node,size:Dp.size,empty:Dp.empty,each:Dp.each,on:LI,attr:mI,attrTween:xI,style:qI,styleTween:GI,text:QI,textTween:e9,remove:jI,tween:VL,delay:SI,duration:MI,ease:TI,easeVarying:PI,end:r9,[Symbol.iterator]:Dp[Symbol.iterator]};function C$(t){return t*t*t}function M$(t){return--t*t*t+1}function a9(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var s9={time:null,delay:0,duration:250,ease:a9};function l9(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function u9(t){var e,n;t instanceof Np?(e=t._id,t=t._name):(e=q4(),(n=s9).time=OP(),t=t==null?null:t+"");for(var i=this._groups,c=i.length,S=0;S<c;++S)for(var F=i[S],nt=F.length,ut,yt=0;yt<nt;++yt)(ut=F[yt])&&MM(ut,t,e,yt,F,n||l9(ut,e));return new Np(i,this._parents,t,e)}W_.prototype.interrupt=IL,W_.prototype.transition=u9;var $4={name:"drag"},HP={name:"space"},kb={name:"handle"},Tb={name:"center"};const{abs:X4,max:dl,min:pl}=Math;function G4(t){return[+t[0],+t[1]]}function VP(t){return[G4(t[0]),G4(t[1])]}var DM={name:"x",handles:["w","e"].map(J_),input:function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},RM={name:"y",handles:["n","s"].map(J_),input:function(t,e){return t==null?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},c9={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(J_),input:function(t){return t==null?null:VP(t)},output:function(t){return t}},Rp={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},K4={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Z4={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},h9={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},f9={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function J_(t){return{type:t}}function d9(t){return!t.ctrlKey&&!t.button}function p9(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function m9(){return navigator.maxTouchPoints||"ontouchstart"in this}function WP(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function g9(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function k$(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function T$(){return YP(DM)}function A$(){return YP(RM)}function P$(){return YP(c9)}function YP(t){var e=p9,n=d9,i=m9,c=!0,S=dispatch("start","brush","end"),F=6,nt;function ut(oe){var de=oe.property("__brush",ue).selectAll(".overlay").data([J_("overlay")]);de.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Rp.overlay).merge(de).each(function(){var _e=WP(this).extent;select(this).attr("x",_e[0][0]).attr("y",_e[0][1]).attr("width",_e[1][0]-_e[0][0]).attr("height",_e[1][1]-_e[0][1])}),oe.selectAll(".selection").data([J_("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Rp.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var pe=oe.selectAll(".handle").data(t.handles,function(_e){return _e.type});pe.exit().remove(),pe.enter().append("rect").attr("class",function(_e){return"handle handle--"+_e.type}).attr("cursor",function(_e){return Rp[_e.type]}),oe.each(yt).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",Ht).filter(i).on("touchstart.brush",Ht).on("touchmove.brush",Yt).on("touchend.brush touchcancel.brush",re).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}ut.move=function(oe,de,pe){oe.tween?oe.on("start.brush",function(_e){_t(this,arguments).beforestart().start(_e)}).on("interrupt.brush end.brush",function(_e){_t(this,arguments).end(_e)}).tween("brush",function(){var _e=this,ge=_e.__brush,qe=_t(_e,arguments),De=ge.selection,$e=t.input(typeof de=="function"?de.apply(this,arguments):de,ge.extent),Ye=interpolate(De,$e);function tn(gn){ge.selection=gn===1&&$e===null?null:Ye(gn),yt.call(_e),qe.brush()}return De!==null&&$e!==null?tn:tn(1)}):oe.each(function(){var _e=this,ge=arguments,qe=_e.__brush,De=t.input(typeof de=="function"?de.apply(_e,ge):de,qe.extent),$e=_t(_e,ge).beforestart();interrupt(_e),qe.selection=De===null?null:De,yt.call(_e),$e.start(pe).brush(pe).end(pe)})},ut.clear=function(oe,de){ut.move(oe,null,de)};function yt(){var oe=select(this),de=WP(this).selection;de?(oe.selectAll(".selection").style("display",null).attr("x",de[0][0]).attr("y",de[0][1]).attr("width",de[1][0]-de[0][0]).attr("height",de[1][1]-de[0][1]),oe.selectAll(".handle").style("display",null).attr("x",function(pe){return pe.type[pe.type.length-1]==="e"?de[1][0]-F/2:de[0][0]-F/2}).attr("y",function(pe){return pe.type[0]==="s"?de[1][1]-F/2:de[0][1]-F/2}).attr("width",function(pe){return pe.type==="n"||pe.type==="s"?de[1][0]-de[0][0]+F:F}).attr("height",function(pe){return pe.type==="e"||pe.type==="w"?de[1][1]-de[0][1]+F:F})):oe.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function _t(oe,de,pe){var _e=oe.__brush.emitter;return _e&&(!pe||!_e.clean)?_e:new zt(oe,de,pe)}function zt(oe,de,pe){this.that=oe,this.args=de,this.state=oe.__brush,this.active=0,this.clean=pe}zt.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(oe,de){return this.starting?(this.starting=!1,this.emit("start",oe,de)):this.emit("brush",oe),this},brush:function(oe,de){return this.emit("brush",oe,de),this},end:function(oe,de){return--this.active===0&&(delete this.state.emitter,this.emit("end",oe,de)),this},emit:function(oe,de,pe){var _e=select(this.that).datum();S.call(oe,this.that,new BrushEvent(oe,{sourceEvent:de,target:ut,selection:t.output(this.state.selection),mode:pe,dispatch:S}),_e)}};function Ht(oe){if(nt&&!oe.touches||!n.apply(this,arguments))return;var de=this,pe=oe.target.__data__.type,_e=(c&&oe.metaKey?pe="overlay":pe)==="selection"?$4:c&&oe.altKey?Tb:kb,ge=t===RM?null:h9[pe],qe=t===DM?null:f9[pe],De=WP(de),$e=De.extent,Ye=De.selection,tn=$e[0][0],gn,Cn,kn=$e[0][1],Zn,fn,jn=$e[1][0],On,Vn,wr=$e[1][1],Pr,_r,Ur=0,Hr=0,Li,ai=ge&&qe&&c&&oe.shiftKey,Ei,Zi,$r=Array.from(oe.touches||[oe],Bi=>{const Ca=Bi.identifier;return Bi=pointer(Bi,de),Bi.point0=Bi.slice(),Bi.identifier=Ca,Bi});interrupt(de);var Fi=_t(de,arguments,!0).beforestart();if(pe==="overlay"){Ye&&(Li=!0);const Bi=[$r[0],$r[1]||$r[0]];De.selection=Ye=[[gn=t===RM?tn:pl(Bi[0][0],Bi[1][0]),Zn=t===DM?kn:pl(Bi[0][1],Bi[1][1])],[On=t===RM?jn:dl(Bi[0][0],Bi[1][0]),Pr=t===DM?wr:dl(Bi[0][1],Bi[1][1])]],$r.length>1&&Da(oe)}else gn=Ye[0][0],Zn=Ye[0][1],On=Ye[1][0],Pr=Ye[1][1];Cn=gn,fn=Zn,Vn=On,_r=Pr;var qo=select(de).attr("pointer-events","none"),Ea=qo.selectAll(".overlay").attr("cursor",Rp[pe]);if(oe.touches)Fi.moved=$o,Fi.ended=Qu;else{var zo=select(oe.view).on("mousemove.brush",$o,!0).on("mouseup.brush",Qu,!0);c&&zo.on("keydown.brush",yu,!0).on("keyup.brush",Up,!0),dragDisable(oe.view)}yt.call(de),Fi.start(oe,_e.name);function $o(Bi){for(const Ca of Bi.changedTouches||[Bi])for(const Hp of $r)Hp.identifier===Ca.identifier&&(Hp.cur=pointer(Ca,de));if(ai&&!Ei&&!Zi&&$r.length===1){const Ca=$r[0];X4(Ca.cur[0]-Ca[0])>X4(Ca.cur[1]-Ca[1])?Zi=!0:Ei=!0}for(const Ca of $r)Ca.cur&&(Ca[0]=Ca.cur[0],Ca[1]=Ca.cur[1]);Li=!0,noevent(Bi),Da(Bi)}function Da(Bi){const Ca=$r[0],Hp=Ca.point0;var Rs;switch(Ur=Ca[0]-Hp[0],Hr=Ca[1]-Hp[1],_e){case HP:case $4:{ge&&(Ur=dl(tn-gn,pl(jn-On,Ur)),Cn=gn+Ur,Vn=On+Ur),qe&&(Hr=dl(kn-Zn,pl(wr-Pr,Hr)),fn=Zn+Hr,_r=Pr+Hr);break}case kb:{$r[1]?(ge&&(Cn=dl(tn,pl(jn,$r[0][0])),Vn=dl(tn,pl(jn,$r[1][0])),ge=1),qe&&(fn=dl(kn,pl(wr,$r[0][1])),_r=dl(kn,pl(wr,$r[1][1])),qe=1)):(ge<0?(Ur=dl(tn-gn,pl(jn-gn,Ur)),Cn=gn+Ur,Vn=On):ge>0&&(Ur=dl(tn-On,pl(jn-On,Ur)),Cn=gn,Vn=On+Ur),qe<0?(Hr=dl(kn-Zn,pl(wr-Zn,Hr)),fn=Zn+Hr,_r=Pr):qe>0&&(Hr=dl(kn-Pr,pl(wr-Pr,Hr)),fn=Zn,_r=Pr+Hr));break}case Tb:{ge&&(Cn=dl(tn,pl(jn,gn-Ur*ge)),Vn=dl(tn,pl(jn,On+Ur*ge))),qe&&(fn=dl(kn,pl(wr,Zn-Hr*qe)),_r=dl(kn,pl(wr,Pr+Hr*qe)));break}}Vn<Cn&&(ge*=-1,Rs=gn,gn=On,On=Rs,Rs=Cn,Cn=Vn,Vn=Rs,pe in K4&&Ea.attr("cursor",Rp[pe=K4[pe]])),_r<fn&&(qe*=-1,Rs=Zn,Zn=Pr,Pr=Rs,Rs=fn,fn=_r,_r=Rs,pe in Z4&&Ea.attr("cursor",Rp[pe=Z4[pe]])),De.selection&&(Ye=De.selection),Ei&&(Cn=Ye[0][0],Vn=Ye[1][0]),Zi&&(fn=Ye[0][1],_r=Ye[1][1]),(Ye[0][0]!==Cn||Ye[0][1]!==fn||Ye[1][0]!==Vn||Ye[1][1]!==_r)&&(De.selection=[[Cn,fn],[Vn,_r]],yt.call(de),Fi.brush(Bi,_e.name))}function Qu(Bi){if(nopropagation(Bi),Bi.touches){if(Bi.touches.length)return;nt&&clearTimeout(nt),nt=setTimeout(function(){nt=null},500)}else dragEnable(Bi.view,Li),zo.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);qo.attr("pointer-events","all"),Ea.attr("cursor",Rp.overlay),De.selection&&(Ye=De.selection),g9(Ye)&&(De.selection=null,yt.call(de)),Fi.end(Bi,_e.name)}function yu(Bi){switch(Bi.keyCode){case 16:{ai=ge&&qe;break}case 18:{_e===kb&&(ge&&(On=Vn-Ur*ge,gn=Cn+Ur*ge),qe&&(Pr=_r-Hr*qe,Zn=fn+Hr*qe),_e=Tb,Da(Bi));break}case 32:{(_e===kb||_e===Tb)&&(ge<0?On=Vn-Ur:ge>0&&(gn=Cn-Ur),qe<0?Pr=_r-Hr:qe>0&&(Zn=fn-Hr),_e=HP,Ea.attr("cursor",Rp.selection),Da(Bi));break}default:return}noevent(Bi)}function Up(Bi){switch(Bi.keyCode){case 16:{ai&&(Ei=Zi=ai=!1,Da(Bi));break}case 18:{_e===Tb&&(ge<0?On=Vn:ge>0&&(gn=Cn),qe<0?Pr=_r:qe>0&&(Zn=fn),_e=kb,Da(Bi));break}case 32:{_e===HP&&(Bi.altKey?(ge&&(On=Vn-Ur*ge,gn=Cn+Ur*ge),qe&&(Pr=_r-Hr*qe,Zn=fn+Hr*qe),_e=Tb):(ge<0?On=Vn:ge>0&&(gn=Cn),qe<0?Pr=_r:qe>0&&(Zn=fn),_e=kb),Ea.attr("cursor",Rp[pe]),Da(Bi));break}default:return}noevent(Bi)}}function Yt(oe){_t(this,arguments).moved(oe)}function re(oe){_t(this,arguments).ended(oe)}function ue(){var oe=this.__brush||{selection:null};return oe.extent=VP(e.apply(this,arguments)),oe.dim=t,oe}return ut.extent=function(oe){return arguments.length?(e=typeof oe=="function"?oe:constant(VP(oe)),ut):e},ut.filter=function(oe){return arguments.length?(n=typeof oe=="function"?oe:constant(!!oe),ut):n},ut.touchable=function(oe){return arguments.length?(i=typeof oe=="function"?oe:constant(!!oe),ut):i},ut.handleSize=function(oe){return arguments.length?(F=+oe,ut):F},ut.keyModifiers=function(oe){return arguments.length?(c=!!oe,ut):c},ut.on=function(){var oe=S.on.apply(S,arguments);return oe===S?ut:oe},ut}function Q4(t){return t===null?NaN:+t}function*O$(t,e){if(e===void 0)for(let n of t)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(i=+i)>=i&&(yield i)}}function N$(t,e,n){if(t=Float64Array.from(numbers(t,n)),!(!(i=t.length)||isNaN(e=+e))){if(e<=0||i<2)return min(t);if(e>=1)return max(t);var i,c=(i-1)*e,S=Math.floor(c),F=max(quickselect(t,S).subarray(0,S+1)),nt=min(t.subarray(S+1));return F+(nt-F)*(c-S)}}function y9(t,e,n=Q4){if(!(!(i=t.length)||isNaN(e=+e))){if(e<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,c=(i-1)*e,S=Math.floor(c),F=+n(t[S],S,t),nt=+n(t[S+1],S+1,t);return F+(nt-F)*(c-S)}}function D$(t,e,n=number){if(!isNaN(e=+e)){if(i=Float64Array.from(t,(nt,ut)=>number(n(t[ut],ut,t))),e<=0)return minIndex(i);if(e>=1)return maxIndex(i);var i,c=Uint32Array.from(t,(nt,ut)=>ut),S=i.length-1,F=Math.floor(S*e);return quickselect(c,F,0,S,(nt,ut)=>ascendingDefined(i[nt],i[ut])),F=greatest(c.subarray(0,F+1),nt=>i[nt]),F>=0?F:-1}}function t2(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function v9(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function J4(t){let e,n,i;t.length!==2?(e=t2,n=(nt,ut)=>t2(t(nt),ut),i=(nt,ut)=>t(nt)-ut):(e=t===t2||t===v9?t:b9,n=t,i=t);function c(nt,ut,yt=0,_t=nt.length){if(yt<_t){if(e(ut,ut)!==0)return _t;do{const zt=yt+_t>>>1;n(nt[zt],ut)<0?yt=zt+1:_t=zt}while(yt<_t)}return yt}function S(nt,ut,yt=0,_t=nt.length){if(yt<_t){if(e(ut,ut)!==0)return _t;do{const zt=yt+_t>>>1;n(nt[zt],ut)<=0?yt=zt+1:_t=zt}while(yt<_t)}return yt}function F(nt,ut,yt=0,_t=nt.length){const zt=c(nt,ut,yt,_t-1);return zt>yt&&i(nt[zt-1],ut)>-i(nt[zt],ut)?zt-1:zt}return{left:c,center:F,right:S}}function b9(){return 0}const tN=J4(t2),x9=tN.right,R$=tN.left,L$=J4(Q4).center,w9=x9;function _9(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function I$(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}function eN(){var t=[],e=[],n=[],i;function c(){var F=0,nt=Math.max(1,e.length);for(n=new Array(nt-1);++F<nt;)n[F-1]=y9(t,F/nt);return S}function S(F){return F==null||isNaN(F=+F)?i:e[w9(n,F)]}return S.invertExtent=function(F){var nt=e.indexOf(F);return nt<0?[NaN,NaN]:[nt>0?n[nt-1]:t[0],nt<n.length?n[nt]:t[t.length-1]]},S.domain=function(F){if(!arguments.length)return t.slice();t=[];for(let nt of F)nt!=null&&!isNaN(nt=+nt)&&t.push(nt);return t.sort(t2),c()},S.range=function(F){return arguments.length?(e=Array.from(F),c()):e.slice()},S.unknown=function(F){return arguments.length?(i=F,S):i},S.quantiles=function(){return n.slice()},S.copy=function(){return eN().domain(t).range(e).unknown(i)},_9.apply(S,arguments)}function S9(){}function qP(t){return t==null?S9:function(){return this.querySelector(t)}}function E9(t){typeof t!="function"&&(t=qP(t));for(var e=this._groups,n=e.length,i=new Array(n),c=0;c<n;++c)for(var S=e[c],F=S.length,nt=i[c]=new Array(F),ut,yt,_t=0;_t<F;++_t)(ut=S[_t])&&(yt=t.call(ut,ut.__data__,_t,S))&&("__data__"in ut&&(yt.__data__=ut.__data__),nt[_t]=yt);return new Fl(i,this._parents)}function nN(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function C9(){return[]}function rN(t){return t==null?C9:function(){return this.querySelectorAll(t)}}function M9(t){return function(){return nN(t.apply(this,arguments))}}function k9(t){typeof t=="function"?t=M9(t):t=rN(t);for(var e=this._groups,n=e.length,i=[],c=[],S=0;S<n;++S)for(var F=e[S],nt=F.length,ut,yt=0;yt<nt;++yt)(ut=F[yt])&&(i.push(t.call(ut,ut.__data__,yt,F)),c.push(ut));return new Fl(i,c)}function iN(t){return function(){return this.matches(t)}}function oN(t){return function(e){return e.matches(t)}}var T9=Array.prototype.find;function A9(t){return function(){return T9.call(this.children,t)}}function P9(){return this.firstElementChild}function O9(t){return this.select(t==null?P9:A9(typeof t=="function"?t:oN(t)))}var N9=Array.prototype.filter;function D9(){return Array.from(this.children)}function R9(t){return function(){return N9.call(this.children,t)}}function L9(t){return this.selectAll(t==null?D9:R9(typeof t=="function"?t:oN(t)))}function I9(t){typeof t!="function"&&(t=iN(t));for(var e=this._groups,n=e.length,i=new Array(n),c=0;c<n;++c)for(var S=e[c],F=S.length,nt=i[c]=[],ut,yt=0;yt<F;++yt)(ut=S[yt])&&t.call(ut,ut.__data__,yt,S)&&nt.push(ut);return new Fl(i,this._parents)}function aN(t){return new Array(t.length)}function j9(){return new Fl(this._enter||this._groups.map(aN),this._parents)}function LM(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}LM.prototype={constructor:LM,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function B9(t){return function(){return t}}function F9(t,e,n,i,c,S){for(var F=0,nt,ut=e.length,yt=S.length;F<yt;++F)(nt=e[F])?(nt.__data__=S[F],i[F]=nt):n[F]=new LM(t,S[F]);for(;F<ut;++F)(nt=e[F])&&(c[F]=nt)}function z9(t,e,n,i,c,S,F){var nt,ut,yt=new Map,_t=e.length,zt=S.length,Ht=new Array(_t),Yt;for(nt=0;nt<_t;++nt)(ut=e[nt])&&(Ht[nt]=Yt=F.call(ut,ut.__data__,nt,e)+"",yt.has(Yt)?c[nt]=ut:yt.set(Yt,ut));for(nt=0;nt<zt;++nt)Yt=F.call(t,S[nt],nt,S)+"",(ut=yt.get(Yt))?(i[nt]=ut,ut.__data__=S[nt],yt.delete(Yt)):n[nt]=new LM(t,S[nt]);for(nt=0;nt<_t;++nt)(ut=e[nt])&&yt.get(Ht[nt])===ut&&(c[nt]=ut)}function U9(t){return t.__data__}function H9(t,e){if(!arguments.length)return Array.from(this,U9);var n=e?z9:F9,i=this._parents,c=this._groups;typeof t!="function"&&(t=B9(t));for(var S=c.length,F=new Array(S),nt=new Array(S),ut=new Array(S),yt=0;yt<S;++yt){var _t=i[yt],zt=c[yt],Ht=zt.length,Yt=V9(t.call(_t,_t&&_t.__data__,yt,i)),re=Yt.length,ue=nt[yt]=new Array(re),oe=F[yt]=new Array(re),de=ut[yt]=new Array(Ht);n(_t,zt,ue,oe,de,Yt,e);for(var pe=0,_e=0,ge,qe;pe<re;++pe)if(ge=ue[pe]){for(pe>=_e&&(_e=pe+1);!(qe=oe[_e])&&++_e<re;);ge._next=qe||null}}return F=new Fl(F,i),F._enter=nt,F._exit=ut,F}function V9(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function W9(){return new Fl(this._exit||this._groups.map(aN),this._parents)}function Y9(t,e,n){var i=this.enter(),c=this,S=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(c=e(c),c&&(c=c.selection())),n==null?S.remove():n(S),i&&c?i.merge(c).order():c}function q9(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,c=n.length,S=i.length,F=Math.min(c,S),nt=new Array(c),ut=0;ut<F;++ut)for(var yt=n[ut],_t=i[ut],zt=yt.length,Ht=nt[ut]=new Array(zt),Yt,re=0;re<zt;++re)(Yt=yt[re]||_t[re])&&(Ht[re]=Yt);for(;ut<c;++ut)nt[ut]=n[ut];return new Fl(nt,this._parents)}function $9(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i=t[e],c=i.length-1,S=i[c],F;--c>=0;)(F=i[c])&&(S&&F.compareDocumentPosition(S)^4&&S.parentNode.insertBefore(F,S),S=F);return this}function X9(t){t||(t=G9);function e(zt,Ht){return zt&&Ht?t(zt.__data__,Ht.__data__):!zt-!Ht}for(var n=this._groups,i=n.length,c=new Array(i),S=0;S<i;++S){for(var F=n[S],nt=F.length,ut=c[S]=new Array(nt),yt,_t=0;_t<nt;++_t)(yt=F[_t])&&(ut[_t]=yt);ut.sort(e)}return new Fl(c,this._parents).order()}function G9(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function K9(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Z9(){return Array.from(this)}function Q9(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],c=0,S=i.length;c<S;++c){var F=i[c];if(F)return F}return null}function J9(){let t=0;for(const e of this)++t;return t}function tj(){return!this.node()}function ej(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var c=e[n],S=0,F=c.length,nt;S<F;++S)(nt=c[S])&&t.call(nt,nt.__data__,S,c);return this}var $P="http://www.w3.org/1999/xhtml";const sN={svg:"http://www.w3.org/2000/svg",xhtml:$P,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function IM(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),sN.hasOwnProperty(e)?{space:sN[e],local:t}:t}function nj(t){return function(){this.removeAttribute(t)}}function rj(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ij(t,e){return function(){this.setAttribute(t,e)}}function oj(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function aj(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function sj(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function lj(t,e){var n=IM(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((e==null?n.local?rj:nj:typeof e=="function"?n.local?sj:aj:n.local?oj:ij)(n,e))}function lN(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function uj(t){return function(){this.style.removeProperty(t)}}function cj(t,e,n){return function(){this.style.setProperty(t,e,n)}}function hj(t,e,n){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function fj(t,e,n){return arguments.length>1?this.each((e==null?uj:typeof e=="function"?hj:cj)(t,e,n==null?"":n)):Ab(this.node(),t)}function Ab(t,e){return t.style.getPropertyValue(e)||lN(t).getComputedStyle(t,null).getPropertyValue(e)}function dj(t){return function(){delete this[t]}}function pj(t,e){return function(){this[t]=e}}function mj(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function gj(t,e){return arguments.length>1?this.each((e==null?dj:typeof e=="function"?mj:pj)(t,e)):this.node()[t]}function uN(t){return t.trim().split(/^|\s+/)}function XP(t){return t.classList||new cN(t)}function cN(t){this._node=t,this._names=uN(t.getAttribute("class")||"")}cN.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function hN(t,e){for(var n=XP(t),i=-1,c=e.length;++i<c;)n.add(e[i])}function fN(t,e){for(var n=XP(t),i=-1,c=e.length;++i<c;)n.remove(e[i])}function yj(t){return function(){hN(this,t)}}function vj(t){return function(){fN(this,t)}}function bj(t,e){return function(){(e.apply(this,arguments)?hN:fN)(this,t)}}function xj(t,e){var n=uN(t+"");if(arguments.length<2){for(var i=XP(this.node()),c=-1,S=n.length;++c<S;)if(!i.contains(n[c]))return!1;return!0}return this.each((typeof e=="function"?bj:e?yj:vj)(n,e))}function wj(){this.textContent=""}function _j(t){return function(){this.textContent=t}}function Sj(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function Ej(t){return arguments.length?this.each(t==null?wj:(typeof t=="function"?Sj:_j)(t)):this.node().textContent}function Cj(){this.innerHTML=""}function Mj(t){return function(){this.innerHTML=t}}function kj(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function Tj(t){return arguments.length?this.each(t==null?Cj:(typeof t=="function"?kj:Mj)(t)):this.node().innerHTML}function Aj(){this.nextSibling&&this.parentNode.appendChild(this)}function Pj(){return this.each(Aj)}function Oj(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Nj(){return this.each(Oj)}function Dj(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===$P&&e.documentElement.namespaceURI===$P?e.createElement(t):e.createElementNS(n,t)}}function Rj(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function dN(t){var e=IM(t);return(e.local?Rj:Dj)(e)}function Lj(t){var e=typeof t=="function"?t:dN(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Ij(){return null}function jj(t,e){var n=typeof t=="function"?t:dN(t),i=e==null?Ij:typeof e=="function"?e:qP(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function Bj(){var t=this.parentNode;t&&t.removeChild(this)}function Fj(){return this.each(Bj)}function zj(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Uj(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Hj(t){return this.select(t?Uj:zj)}function Vj(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Wj(t){return function(e){t.call(this,e,this.__data__)}}function Yj(t){return t.trim().split(/^|\s+/).map(function(e){var n="",i=e.indexOf(".");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{type:e,name:n}})}function qj(t){return function(){var e=this.__on;if(e){for(var n=0,i=-1,c=e.length,S;n<c;++n)S=e[n],(!t.type||S.type===t.type)&&S.name===t.name?this.removeEventListener(S.type,S.listener,S.options):e[++i]=S;++i?e.length=i:delete this.__on}}}function $j(t,e,n){return function(){var i=this.__on,c,S=Wj(e);if(i){for(var F=0,nt=i.length;F<nt;++F)if((c=i[F]).type===t.type&&c.name===t.name){this.removeEventListener(c.type,c.listener,c.options),this.addEventListener(c.type,c.listener=S,c.options=n),c.value=e;return}}this.addEventListener(t.type,S,n),c={type:t.type,name:t.name,value:e,listener:S,options:n},i?i.push(c):this.__on=[c]}}function Xj(t,e,n){var i=Yj(t+""),c,S=i.length,F;if(arguments.length<2){var nt=this.node().__on;if(nt){for(var ut=0,yt=nt.length,_t;ut<yt;++ut)for(c=0,_t=nt[ut];c<S;++c)if((F=i[c]).type===_t.type&&F.name===_t.name)return _t.value}return}for(nt=e?$j:qj,c=0;c<S;++c)this.each(nt(i[c],e,n));return this}function pN(t,e,n){var i=lN(t),c=i.CustomEvent;typeof c=="function"?c=new c(e,n):(c=i.document.createEvent("Event"),n?(c.initEvent(e,n.bubbles,n.cancelable),c.detail=n.detail):c.initEvent(e,!1,!1)),t.dispatchEvent(c)}function Gj(t,e){return function(){return pN(this,t,e)}}function Kj(t,e){return function(){return pN(this,t,e.apply(this,arguments))}}function Zj(t,e){return this.each((typeof e=="function"?Kj:Gj)(t,e))}function*Qj(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],c=0,S=i.length,F;c<S;++c)(F=i[c])&&(yield F)}var GP=[null];function Fl(t,e){this._groups=t,this._parents=e}function mN(){return new Fl([[document.documentElement]],GP)}function Jj(){return this}Fl.prototype=mN.prototype={constructor:Fl,select:E9,selectAll:k9,selectChild:O9,selectChildren:L9,filter:I9,data:H9,enter:j9,exit:W9,join:Y9,merge:q9,selection:Jj,order:$9,sort:X9,call:K9,nodes:Z9,node:Q9,size:J9,empty:tj,each:ej,attr:lj,style:fj,property:gj,classed:xj,text:Ej,html:Tj,raise:Pj,lower:Nj,append:Lj,insert:jj,remove:Fj,clone:Hj,datum:Vj,on:Xj,dispatch:Zj,[Symbol.iterator]:Qj};const e2=mN;function zl(t){return typeof t=="string"?new Fl([[document.querySelector(t)]],[document.documentElement]):new Fl([[t]],GP)}function gN(t){return typeof t=="string"?new Fl([document.querySelectorAll(t)],[document.documentElement]):new Fl([nN(t)],GP)}var tB={value:()=>{}};function yN(){for(var t=0,e=arguments.length,n={},i;t<e;++t){if(!(i=arguments[t]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new jM(n)}function jM(t){this._=t}function eB(t,e){return t.trim().split(/^|\s+/).map(function(n){var i="",c=n.indexOf(".");if(c>=0&&(i=n.slice(c+1),n=n.slice(0,c)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}jM.prototype=yN.prototype={constructor:jM,on:function(t,e){var n=this._,i=eB(t+"",n),c,S=-1,F=i.length;if(arguments.length<2){for(;++S<F;)if((c=(t=i[S]).type)&&(c=nB(n[c],t.name)))return c;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++S<F;)if(c=(t=i[S]).type)n[c]=vN(n[c],t.name,e);else if(e==null)for(c in n)n[c]=vN(n[c],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new jM(t)},call:function(t,e){if((c=arguments.length-2)>0)for(var n=new Array(c),i=0,c,S;i<c;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(S=this._[t],i=0,c=S.length;i<c;++i)S[i].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],c=0,S=i.length;c<S;++c)i[c].value.apply(e,n)}};function nB(t,e){for(var n=0,i=t.length,c;n<i;++n)if((c=t[n]).name===e)return c.value}function vN(t,e,n){for(var i=0,c=t.length;i<c;++i)if(t[i].name===e){t[i]=tB,t=t.slice(0,i).concat(t.slice(i+1));break}return n!=null&&t.push({name:e,value:n}),t}const rB=yN;var Pb=0,n2=0,r2=0,bN=1e3,BM,i2,FM=0,Hy=0,zM=0,o2=typeof performance=="object"&&performance.now?performance:Date,xN=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function KP(){return Hy||(xN(iB),Hy=o2.now()+zM)}function iB(){Hy=0}function UM(){this._call=this._time=this._next=null}UM.prototype=wN.prototype={constructor:UM,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?KP():+n)+(e==null?0:+e),!this._next&&i2!==this&&(i2?i2._next=this:BM=this,i2=this),this._call=t,this._time=n,ZP()},stop:function(){this._call&&(this._call=null,this._time=1/0,ZP())}};function wN(t,e,n){var i=new UM;return i.restart(t,e,n),i}function oB(){KP(),++Pb;for(var t=BM,e;t;)(e=Hy-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Pb}function _N(){Hy=(FM=o2.now())+zM,Pb=n2=0;try{oB()}finally{Pb=0,sB(),Hy=0}}function aB(){var t=o2.now(),e=t-FM;e>bN&&(zM-=e,FM=t)}function sB(){for(var t,e=BM,n,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:BM=n);i2=t,ZP(i)}function ZP(t){if(!Pb){n2&&(n2=clearTimeout(n2));var e=t-Hy;e>24?(t<1/0&&(n2=setTimeout(_N,t-o2.now()-zM)),r2&&(r2=clearInterval(r2))):(r2||(FM=o2.now(),r2=setInterval(aB,bN)),Pb=1,xN(_N))}}function SN(t,e,n){var i=new UM;return e=e==null?0:+e,i.restart(c=>{i.stop(),t(c+e)},e,n),i}var lB=rB("start","end","cancel","interrupt"),uB=[],EN=0,CN=1,QP=2,HM=3,MN=4,JP=5,VM=6;function WM(t,e,n,i,c,S){var F=t.__transition;if(!F)t.__transition={};else if(n in F)return;cB(t,n,{name:e,index:i,group:c,on:lB,tween:uB,time:S.time,delay:S.delay,duration:S.duration,ease:S.ease,timer:null,state:EN})}function t5(t,e){var n=Ah(t,e);if(n.state>EN)throw new Error("too late; already scheduled");return n}function Wf(t,e){var n=Ah(t,e);if(n.state>HM)throw new Error("too late; already running");return n}function Ah(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function cB(t,e,n){var i=t.__transition,c;i[e]=n,n.timer=wN(S,0,n.time);function S(yt){n.state=CN,n.timer.restart(F,n.delay,n.time),n.delay<=yt&&F(yt-n.delay)}function F(yt){var _t,zt,Ht,Yt;if(n.state!==CN)return ut();for(_t in i)if(Yt=i[_t],Yt.name===n.name){if(Yt.state===HM)return SN(F);Yt.state===MN?(Yt.state=VM,Yt.timer.stop(),Yt.on.call("interrupt",t,t.__data__,Yt.index,Yt.group),delete i[_t]):+_t<e&&(Yt.state=VM,Yt.timer.stop(),Yt.on.call("cancel",t,t.__data__,Yt.index,Yt.group),delete i[_t])}if(SN(function(){n.state===HM&&(n.state=MN,n.timer.restart(nt,n.delay,n.time),nt(yt))}),n.state=QP,n.on.call("start",t,t.__data__,n.index,n.group),n.state===QP){for(n.state=HM,c=new Array(Ht=n.tween.length),_t=0,zt=-1;_t<Ht;++_t)(Yt=n.tween[_t].value.call(t,t.__data__,n.index,n.group))&&(c[++zt]=Yt);c.length=zt+1}}function nt(yt){for(var _t=yt<n.duration?n.ease.call(null,yt/n.duration):(n.timer.restart(ut),n.state=JP,1),zt=-1,Ht=c.length;++zt<Ht;)c[zt].call(t,_t);n.state===JP&&(n.on.call("end",t,t.__data__,n.index,n.group),ut())}function ut(){n.state=VM,n.timer.stop(),delete i[e];for(var yt in i)return;delete t.__transition}}function hB(t,e){var n=t.__transition,i,c,S=!0,F;if(n){e=e==null?null:e+"";for(F in n){if((i=n[F]).name!==e){S=!1;continue}c=i.state>QP&&i.state<JP,i.state=VM,i.timer.stop(),i.on.call(c?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete n[F]}S&&delete t.__transition}}function fB(t){return this.each(function(){hB(this,t)})}function Sg(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var kN=180/Math.PI,e5={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function TN(t,e,n,i,c,S){var F,nt,ut;return(F=Math.sqrt(t*t+e*e))&&(t/=F,e/=F),(ut=t*n+e*i)&&(n-=t*ut,i-=e*ut),(nt=Math.sqrt(n*n+i*i))&&(n/=nt,i/=nt,ut/=nt),t*i<e*n&&(t=-t,e=-e,ut=-ut,F=-F),{translateX:c,translateY:S,rotate:Math.atan2(e,t)*kN,skewX:Math.atan(ut)*kN,scaleX:F,scaleY:nt}}var YM;function dB(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?e5:TN(e.a,e.b,e.c,e.d,e.e,e.f)}function pB(t){return t==null||(YM||(YM=document.createElementNS("http://www.w3.org/2000/svg","g")),YM.setAttribute("transform",t),!(t=YM.transform.baseVal.consolidate()))?e5:(t=t.matrix,TN(t.a,t.b,t.c,t.d,t.e,t.f))}function AN(t,e,n,i){function c(yt){return yt.length?yt.pop()+" ":""}function S(yt,_t,zt,Ht,Yt,re){if(yt!==zt||_t!==Ht){var ue=Yt.push("translate(",null,e,null,n);re.push({i:ue-4,x:Sg(yt,zt)},{i:ue-2,x:Sg(_t,Ht)})}else(zt||Ht)&&Yt.push("translate("+zt+e+Ht+n)}function F(yt,_t,zt,Ht){yt!==_t?(yt-_t>180?_t+=360:_t-yt>180&&(yt+=360),Ht.push({i:zt.push(c(zt)+"rotate(",null,i)-2,x:Sg(yt,_t)})):_t&&zt.push(c(zt)+"rotate("+_t+i)}function nt(yt,_t,zt,Ht){yt!==_t?Ht.push({i:zt.push(c(zt)+"skewX(",null,i)-2,x:Sg(yt,_t)}):_t&&zt.push(c(zt)+"skewX("+_t+i)}function ut(yt,_t,zt,Ht,Yt,re){if(yt!==zt||_t!==Ht){var ue=Yt.push(c(Yt)+"scale(",null,",",null,")");re.push({i:ue-4,x:Sg(yt,zt)},{i:ue-2,x:Sg(_t,Ht)})}else(zt!==1||Ht!==1)&&Yt.push(c(Yt)+"scale("+zt+","+Ht+")")}return function(yt,_t){var zt=[],Ht=[];return yt=t(yt),_t=t(_t),S(yt.translateX,yt.translateY,_t.translateX,_t.translateY,zt,Ht),F(yt.rotate,_t.rotate,zt,Ht),nt(yt.skewX,_t.skewX,zt,Ht),ut(yt.scaleX,yt.scaleY,_t.scaleX,_t.scaleY,zt,Ht),yt=_t=null,function(Yt){for(var re=-1,ue=Ht.length,oe;++re<ue;)zt[(oe=Ht[re]).i]=oe.x(Yt);return zt.join("")}}}var mB=AN(dB,"px, ","px)","deg)"),gB=AN(pB,", ",")",")");function yB(t,e){var n,i;return function(){var c=Wf(this,t),S=c.tween;if(S!==n){i=n=S;for(var F=0,nt=i.length;F<nt;++F)if(i[F].name===e){i=i.slice(),i.splice(F,1);break}}c.tween=i}}function vB(t,e,n){var i,c;if(typeof n!="function")throw new Error;return function(){var S=Wf(this,t),F=S.tween;if(F!==i){c=(i=F).slice();for(var nt={name:e,value:n},ut=0,yt=c.length;ut<yt;++ut)if(c[ut].name===e){c[ut]=nt;break}ut===yt&&c.push(nt)}S.tween=c}}function bB(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i=Ah(this.node(),n).tween,c=0,S=i.length,F;c<S;++c)if((F=i[c]).name===t)return F.value;return null}return this.each((e==null?yB:vB)(n,t,e))}function n5(t,e,n){var i=t._id;return t.each(function(){var c=Wf(this,i);(c.value||(c.value={}))[e]=n.apply(this,arguments)}),function(c){return Ah(c,i).value[e]}}function r5(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function PN(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function a2(){}var s2=.7,qM=1/s2,Ob="\\s*([+-]?\\d+)\\s*",l2="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xB=/^#([0-9a-f]{3,8})$/,wB=new RegExp(`^rgb\\(${Ob},${Ob},${Ob}\\)$`),_B=new RegExp(`^rgb\\(${Yf},${Yf},${Yf}\\)$`),SB=new RegExp(`^rgba\\(${Ob},${Ob},${Ob},${l2}\\)$`),EB=new RegExp(`^rgba\\(${Yf},${Yf},${Yf},${l2}\\)$`),CB=new RegExp(`^hsl\\(${l2},${Yf},${Yf}\\)$`),MB=new RegExp(`^hsla\\(${l2},${Yf},${Yf},${l2}\\)$`),ON={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};r5(a2,u2,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:NN,formatHex:NN,formatHex8:kB,formatHsl:TB,formatRgb:DN,toString:DN});function NN(){return this.rgb().formatHex()}function kB(){return this.rgb().formatHex8()}function TB(){return BN(this).formatHsl()}function DN(){return this.rgb().formatRgb()}function u2(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=xB.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?RN(e):n===3?new du(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?$M(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?$M(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=wB.exec(t))?new du(e[1],e[2],e[3],1):(e=_B.exec(t))?new du(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=SB.exec(t))?$M(e[1],e[2],e[3],e[4]):(e=EB.exec(t))?$M(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=CB.exec(t))?jN(e[1],e[2]/100,e[3]/100,1):(e=MB.exec(t))?jN(e[1],e[2]/100,e[3]/100,e[4]):ON.hasOwnProperty(t)?RN(ON[t]):t==="transparent"?new du(NaN,NaN,NaN,0):null}function RN(t){return new du(t>>16&255,t>>8&255,t&255,1)}function $M(t,e,n,i){return i<=0&&(t=e=n=NaN),new du(t,e,n,i)}function AB(t){return t instanceof a2||(t=u2(t)),t?(t=t.rgb(),new du(t.r,t.g,t.b,t.opacity)):new du}function XM(t,e,n,i){return arguments.length===1?AB(t):new du(t,e,n,i==null?1:i)}function du(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}r5(du,XM,PN(a2,{brighter(t){return t=t==null?qM:Math.pow(qM,t),new du(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?s2:Math.pow(s2,t),new du(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new du(Vy(this.r),Vy(this.g),Vy(this.b),GM(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:LN,formatHex:LN,formatHex8:PB,formatRgb:IN,toString:IN}));function LN(){return`#${Wy(this.r)}${Wy(this.g)}${Wy(this.b)}`}function PB(){return`#${Wy(this.r)}${Wy(this.g)}${Wy(this.b)}${Wy((isNaN(this.opacity)?1:this.opacity)*255)}`}function IN(){const t=GM(this.opacity);return`${t===1?"rgb(":"rgba("}${Vy(this.r)}, ${Vy(this.g)}, ${Vy(this.b)}${t===1?")":`, ${t})`}`}function GM(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Vy(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Wy(t){return t=Vy(t),(t<16?"0":"")+t.toString(16)}function jN(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ph(t,e,n,i)}function BN(t){if(t instanceof Ph)return new Ph(t.h,t.s,t.l,t.opacity);if(t instanceof a2||(t=u2(t)),!t)return new Ph;if(t instanceof Ph)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,c=Math.min(e,n,i),S=Math.max(e,n,i),F=NaN,nt=S-c,ut=(S+c)/2;return nt?(e===S?F=(n-i)/nt+(n<i)*6:n===S?F=(i-e)/nt+2:F=(e-n)/nt+4,nt/=ut<.5?S+c:2-S-c,F*=60):nt=ut>0&&ut<1?0:F,new Ph(F,nt,ut,t.opacity)}function OB(t,e,n,i){return arguments.length===1?BN(t):new Ph(t,e,n,i==null?1:i)}function Ph(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}r5(Ph,OB,PN(a2,{brighter(t){return t=t==null?qM:Math.pow(qM,t),new Ph(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?s2:Math.pow(s2,t),new Ph(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,c=2*n-i;return new du(i5(t>=240?t-240:t+120,c,i),i5(t,c,i),i5(t<120?t+240:t-120,c,i),this.opacity)},clamp(){return new Ph(FN(this.h),KM(this.s),KM(this.l),GM(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=GM(this.opacity);return`${t===1?"hsl(":"hsla("}${FN(this.h)}, ${KM(this.s)*100}%, ${KM(this.l)*100}%${t===1?")":`, ${t})`}`}}));function FN(t){return t=(t||0)%360,t<0?t+360:t}function KM(t){return Math.max(0,Math.min(1,t||0))}function i5(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function zN(t,e,n,i,c){var S=t*t,F=S*t;return((1-3*t+3*S-F)*e+(4-6*S+3*F)*n+(1+3*t+3*S-3*F)*i+F*c)/6}function NB(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),c=t[i],S=t[i+1],F=i>0?t[i-1]:2*c-S,nt=i<e-1?t[i+2]:2*S-c;return zN((n-i/e)*e,F,c,S,nt)}}function DB(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),c=t[(i+e-1)%e],S=t[i%e],F=t[(i+1)%e],nt=t[(i+2)%e];return zN((n-i/e)*e,c,S,F,nt)}}const UN=t=>()=>t;function HN(t,e){return function(n){return t+n*e}}function RB(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}function j$(t,e){var n=e-t;return n?HN(t,n>180||n<-180?n-360*Math.round(n/360):n):constant(isNaN(t)?e:t)}function LB(t){return(t=+t)==1?VN:function(e,n){return n-e?RB(e,n,t):UN(isNaN(e)?n:e)}}function VN(t,e){var n=e-t;return n?HN(t,n):UN(isNaN(t)?e:t)}const WN=function t(e){var n=LB(e);function i(c,S){var F=n((c=XM(c)).r,(S=XM(S)).r),nt=n(c.g,S.g),ut=n(c.b,S.b),yt=VN(c.opacity,S.opacity);return function(_t){return c.r=F(_t),c.g=nt(_t),c.b=ut(_t),c.opacity=yt(_t),c+""}}return i.gamma=t,i}(1);function YN(t){return function(e){var n=e.length,i=new Array(n),c=new Array(n),S=new Array(n),F,nt;for(F=0;F<n;++F)nt=XM(e[F]),i[F]=nt.r||0,c[F]=nt.g||0,S[F]=nt.b||0;return i=t(i),c=t(c),S=t(S),nt.opacity=1,function(ut){return nt.r=i(ut),nt.g=c(ut),nt.b=S(ut),nt+""}}}var B$=YN(NB),F$=YN(DB),o5=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a5=new RegExp(o5.source,"g");function IB(t){return function(){return t}}function jB(t){return function(e){return t(e)+""}}function BB(t,e){var n=o5.lastIndex=a5.lastIndex=0,i,c,S,F=-1,nt=[],ut=[];for(t=t+"",e=e+"";(i=o5.exec(t))&&(c=a5.exec(e));)(S=c.index)>n&&(S=e.slice(n,S),nt[F]?nt[F]+=S:nt[++F]=S),(i=i[0])===(c=c[0])?nt[F]?nt[F]+=c:nt[++F]=c:(nt[++F]=null,ut.push({i:F,x:Sg(i,c)})),n=a5.lastIndex;return n<e.length&&(S=e.slice(n),nt[F]?nt[F]+=S:nt[++F]=S),nt.length<2?ut[0]?jB(ut[0].x):IB(e):(e=ut.length,function(yt){for(var _t=0,zt;_t<e;++_t)nt[(zt=ut[_t]).i]=zt.x(yt);return nt.join("")})}function qN(t,e){var n;return(typeof e=="number"?Sg:e instanceof u2?WN:(n=u2(e))?(e=n,WN):BB)(t,e)}function FB(t){return function(){this.removeAttribute(t)}}function zB(t){return function(){this.removeAttributeNS(t.space,t.local)}}function UB(t,e,n){var i,c=n+"",S;return function(){var F=this.getAttribute(t);return F===c?null:F===i?S:S=e(i=F,n)}}function HB(t,e,n){var i,c=n+"",S;return function(){var F=this.getAttributeNS(t.space,t.local);return F===c?null:F===i?S:S=e(i=F,n)}}function VB(t,e,n){var i,c,S;return function(){var F,nt=n(this),ut;return nt==null?void this.removeAttribute(t):(F=this.getAttribute(t),ut=nt+"",F===ut?null:F===i&&ut===c?S:(c=ut,S=e(i=F,nt)))}}function WB(t,e,n){var i,c,S;return function(){var F,nt=n(this),ut;return nt==null?void this.removeAttributeNS(t.space,t.local):(F=this.getAttributeNS(t.space,t.local),ut=nt+"",F===ut?null:F===i&&ut===c?S:(c=ut,S=e(i=F,nt)))}}function YB(t,e){var n=IM(t),i=n==="transform"?gB:qN;return this.attrTween(t,typeof e=="function"?(n.local?WB:VB)(n,i,n5(this,"attr."+t,e)):e==null?(n.local?zB:FB)(n):(n.local?HB:UB)(n,i,e))}function qB(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function $B(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function XB(t,e){var n,i;function c(){var S=e.apply(this,arguments);return S!==i&&(n=(i=S)&&$B(t,S)),n}return c._value=e,c}function GB(t,e){var n,i;function c(){var S=e.apply(this,arguments);return S!==i&&(n=(i=S)&&qB(t,S)),n}return c._value=e,c}function KB(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var i=IM(t);return this.tween(n,(i.local?XB:GB)(i,e))}function ZB(t,e){return function(){t5(this,t).delay=+e.apply(this,arguments)}}function QB(t,e){return e=+e,function(){t5(this,t).delay=e}}function JB(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?ZB:QB)(e,t)):Ah(this.node(),e).delay}function tF(t,e){return function(){Wf(this,t).duration=+e.apply(this,arguments)}}function eF(t,e){return e=+e,function(){Wf(this,t).duration=e}}function nF(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?tF:eF)(e,t)):Ah(this.node(),e).duration}function rF(t,e){if(typeof e!="function")throw new Error;return function(){Wf(this,t).ease=e}}function iF(t){var e=this._id;return arguments.length?this.each(rF(e,t)):Ah(this.node(),e).ease}function oF(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;Wf(this,t).ease=n}}function aF(t){if(typeof t!="function")throw new Error;return this.each(oF(this._id,t))}function sF(t){typeof t!="function"&&(t=iN(t));for(var e=this._groups,n=e.length,i=new Array(n),c=0;c<n;++c)for(var S=e[c],F=S.length,nt=i[c]=[],ut,yt=0;yt<F;++yt)(ut=S[yt])&&t.call(ut,ut.__data__,yt,S)&&nt.push(ut);return new Lp(i,this._parents,this._name,this._id)}function lF(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,c=n.length,S=Math.min(i,c),F=new Array(i),nt=0;nt<S;++nt)for(var ut=e[nt],yt=n[nt],_t=ut.length,zt=F[nt]=new Array(_t),Ht,Yt=0;Yt<_t;++Yt)(Ht=ut[Yt]||yt[Yt])&&(zt[Yt]=Ht);for(;nt<i;++nt)F[nt]=e[nt];return new Lp(F,this._parents,this._name,this._id)}function uF(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function cF(t,e,n){var i,c,S=uF(e)?t5:Wf;return function(){var F=S(this,t),nt=F.on;nt!==i&&(c=(i=nt).copy()).on(e,n),F.on=c}}function hF(t,e){var n=this._id;return arguments.length<2?Ah(this.node(),n).on.on(t):this.each(cF(n,t,e))}function fF(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function dF(){return this.on("end.remove",fF(this._id))}function pF(t){var e=this._name,n=this._id;typeof t!="function"&&(t=qP(t));for(var i=this._groups,c=i.length,S=new Array(c),F=0;F<c;++F)for(var nt=i[F],ut=nt.length,yt=S[F]=new Array(ut),_t,zt,Ht=0;Ht<ut;++Ht)(_t=nt[Ht])&&(zt=t.call(_t,_t.__data__,Ht,nt))&&("__data__"in _t&&(zt.__data__=_t.__data__),yt[Ht]=zt,WM(yt[Ht],e,n,Ht,yt,Ah(_t,n)));return new Lp(S,this._parents,e,n)}function mF(t){var e=this._name,n=this._id;typeof t!="function"&&(t=rN(t));for(var i=this._groups,c=i.length,S=[],F=[],nt=0;nt<c;++nt)for(var ut=i[nt],yt=ut.length,_t,zt=0;zt<yt;++zt)if(_t=ut[zt]){for(var Ht=t.call(_t,_t.__data__,zt,ut),Yt,re=Ah(_t,n),ue=0,oe=Ht.length;ue<oe;++ue)(Yt=Ht[ue])&&WM(Yt,e,n,ue,Ht,re);S.push(Ht),F.push(_t)}return new Lp(S,F,e,n)}var gF=e2.prototype.constructor;function yF(){return new gF(this._groups,this._parents)}function vF(t,e){var n,i,c;return function(){var S=Ab(this,t),F=(this.style.removeProperty(t),Ab(this,t));return S===F?null:S===n&&F===i?c:c=e(n=S,i=F)}}function $N(t){return function(){this.style.removeProperty(t)}}function bF(t,e,n){var i,c=n+"",S;return function(){var F=Ab(this,t);return F===c?null:F===i?S:S=e(i=F,n)}}function xF(t,e,n){var i,c,S;return function(){var F=Ab(this,t),nt=n(this),ut=nt+"";return nt==null&&(ut=nt=(this.style.removeProperty(t),Ab(this,t))),F===ut?null:F===i&&ut===c?S:(c=ut,S=e(i=F,nt))}}function wF(t,e){var n,i,c,S="style."+e,F="end."+S,nt;return function(){var ut=Wf(this,t),yt=ut.on,_t=ut.value[S]==null?nt||(nt=$N(e)):void 0;(yt!==n||c!==_t)&&(i=(n=yt).copy()).on(F,c=_t),ut.on=i}}function _F(t,e,n){var i=(t+="")=="transform"?mB:qN;return e==null?this.styleTween(t,vF(t,i)).on("end.style."+t,$N(t)):typeof e=="function"?this.styleTween(t,xF(t,i,n5(this,"style."+t,e))).each(wF(this._id,t)):this.styleTween(t,bF(t,i,e),n).on("end.style."+t,null)}function SF(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function EF(t,e,n){var i,c;function S(){var F=e.apply(this,arguments);return F!==c&&(i=(c=F)&&SF(t,F,n)),i}return S._value=e,S}function CF(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,EF(t,e,n==null?"":n))}function MF(t){return function(){this.textContent=t}}function kF(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function TF(t){return this.tween("text",typeof t=="function"?kF(n5(this,"text",t)):MF(t==null?"":t+""))}function AF(t){return function(e){this.textContent=t.call(this,e)}}function PF(t){var e,n;function i(){var c=t.apply(this,arguments);return c!==n&&(e=(n=c)&&AF(c)),e}return i._value=t,i}function OF(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,PF(t))}function NF(){for(var t=this._name,e=this._id,n=XN(),i=this._groups,c=i.length,S=0;S<c;++S)for(var F=i[S],nt=F.length,ut,yt=0;yt<nt;++yt)if(ut=F[yt]){var _t=Ah(ut,e);WM(ut,t,n,yt,F,{time:_t.time+_t.delay+_t.duration,delay:0,duration:_t.duration,ease:_t.ease})}return new Lp(i,this._parents,t,n)}function DF(){var t,e,n=this,i=n._id,c=n.size();return new Promise(function(S,F){var nt={value:F},ut={value:function(){--c===0&&S()}};n.each(function(){var yt=Wf(this,i),_t=yt.on;_t!==t&&(e=(t=_t).copy(),e._.cancel.push(nt),e._.interrupt.push(nt),e._.end.push(ut)),yt.on=e}),c===0&&S()})}var RF=0;function Lp(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function LF(t){return e2().transition(t)}function XN(){return++RF}var Ip=e2.prototype;Lp.prototype=LF.prototype={constructor:Lp,select:pF,selectAll:mF,selectChild:Ip.selectChild,selectChildren:Ip.selectChildren,filter:sF,merge:lF,selection:yF,transition:NF,call:Ip.call,nodes:Ip.nodes,node:Ip.node,size:Ip.size,empty:Ip.empty,each:Ip.each,on:hF,attr:YB,attrTween:KB,style:_F,styleTween:CF,text:TF,textTween:OF,remove:dF,tween:bB,delay:JB,duration:nF,ease:iF,easeVarying:aF,end:DF,[Symbol.iterator]:Ip[Symbol.iterator]};function z$(t){return t*t*t}function U$(t){return--t*t*t+1}function IF(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var jF={time:null,delay:0,duration:250,ease:IF};function BF(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function FF(t){var e,n;t instanceof Lp?(e=t._id,t=t._name):(e=XN(),(n=jF).time=KP(),t=t==null?null:t+"");for(var i=this._groups,c=i.length,S=0;S<c;++S)for(var F=i[S],nt=F.length,ut,yt=0;yt<nt;++yt)(ut=F[yt])&&WM(ut,t,e,yt,F,n||BF(ut,e));return new Lp(i,this._parents,t,e)}e2.prototype.interrupt=fB,e2.prototype.transition=FF;function zF(){}function s5(t){return t==null?zF:function(){return this.querySelector(t)}}function UF(t){typeof t!="function"&&(t=s5(t));for(var e=this._groups,n=e.length,i=new Array(n),c=0;c<n;++c)for(var S=e[c],F=S.length,nt=i[c]=new Array(F),ut,yt,_t=0;_t<F;++_t)(ut=S[_t])&&(yt=t.call(ut,ut.__data__,_t,S))&&("__data__"in ut&&(yt.__data__=ut.__data__),nt[_t]=yt);return new Oh(i,this._parents)}function HF(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function VF(){return[]}function GN(t){return t==null?VF:function(){return this.querySelectorAll(t)}}function WF(t){return function(){return HF(t.apply(this,arguments))}}function YF(t){typeof t=="function"?t=WF(t):t=GN(t);for(var e=this._groups,n=e.length,i=[],c=[],S=0;S<n;++S)for(var F=e[S],nt=F.length,ut,yt=0;yt<nt;++yt)(ut=F[yt])&&(i.push(t.call(ut,ut.__data__,yt,F)),c.push(ut));return new Oh(i,c)}function KN(t){return function(){return this.matches(t)}}function ZN(t){return function(e){return e.matches(t)}}var qF=Array.prototype.find;function $F(t){return function(){return qF.call(this.children,t)}}function XF(){return this.firstElementChild}function GF(t){return this.select(t==null?XF:$F(typeof t=="function"?t:ZN(t)))}var KF=Array.prototype.filter;function ZF(){return Array.from(this.children)}function QF(t){return function(){return KF.call(this.children,t)}}function JF(t){return this.selectAll(t==null?ZF:QF(typeof t=="function"?t:ZN(t)))}function tz(t){typeof t!="function"&&(t=KN(t));for(var e=this._groups,n=e.length,i=new Array(n),c=0;c<n;++c)for(var S=e[c],F=S.length,nt=i[c]=[],ut,yt=0;yt<F;++yt)(ut=S[yt])&&t.call(ut,ut.__data__,yt,S)&&nt.push(ut);return new Oh(i,this._parents)}function QN(t){return new Array(t.length)}function ez(){return new Oh(this._enter||this._groups.map(QN),this._parents)}function ZM(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}ZM.prototype={constructor:ZM,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function nz(t){return function(){return t}}function rz(t,e,n,i,c,S){for(var F=0,nt,ut=e.length,yt=S.length;F<yt;++F)(nt=e[F])?(nt.__data__=S[F],i[F]=nt):n[F]=new ZM(t,S[F]);for(;F<ut;++F)(nt=e[F])&&(c[F]=nt)}function iz(t,e,n,i,c,S,F){var nt,ut,yt=new Map,_t=e.length,zt=S.length,Ht=new Array(_t),Yt;for(nt=0;nt<_t;++nt)(ut=e[nt])&&(Ht[nt]=Yt=F.call(ut,ut.__data__,nt,e)+"",yt.has(Yt)?c[nt]=ut:yt.set(Yt,ut));for(nt=0;nt<zt;++nt)Yt=F.call(t,S[nt],nt,S)+"",(ut=yt.get(Yt))?(i[nt]=ut,ut.__data__=S[nt],yt.delete(Yt)):n[nt]=new ZM(t,S[nt]);for(nt=0;nt<_t;++nt)(ut=e[nt])&&yt.get(Ht[nt])===ut&&(c[nt]=ut)}function oz(t){return t.__data__}function az(t,e){if(!arguments.length)return Array.from(this,oz);var n=e?iz:rz,i=this._parents,c=this._groups;typeof t!="function"&&(t=nz(t));for(var S=c.length,F=new Array(S),nt=new Array(S),ut=new Array(S),yt=0;yt<S;++yt){var _t=i[yt],zt=c[yt],Ht=zt.length,Yt=sz(t.call(_t,_t&&_t.__data__,yt,i)),re=Yt.length,ue=nt[yt]=new Array(re),oe=F[yt]=new Array(re),de=ut[yt]=new Array(Ht);n(_t,zt,ue,oe,de,Yt,e);for(var pe=0,_e=0,ge,qe;pe<re;++pe)if(ge=ue[pe]){for(pe>=_e&&(_e=pe+1);!(qe=oe[_e])&&++_e<re;);ge._next=qe||null}}return F=new Oh(F,i),F._enter=nt,F._exit=ut,F}function sz(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function lz(){return new Oh(this._exit||this._groups.map(QN),this._parents)}function uz(t,e,n){var i=this.enter(),c=this,S=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(c=e(c),c&&(c=c.selection())),n==null?S.remove():n(S),i&&c?i.merge(c).order():c}function cz(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,c=n.length,S=i.length,F=Math.min(c,S),nt=new Array(c),ut=0;ut<F;++ut)for(var yt=n[ut],_t=i[ut],zt=yt.length,Ht=nt[ut]=new Array(zt),Yt,re=0;re<zt;++re)(Yt=yt[re]||_t[re])&&(Ht[re]=Yt);for(;ut<c;++ut)nt[ut]=n[ut];return new Oh(nt,this._parents)}function hz(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i=t[e],c=i.length-1,S=i[c],F;--c>=0;)(F=i[c])&&(S&&F.compareDocumentPosition(S)^4&&S.parentNode.insertBefore(F,S),S=F);return this}function fz(t){t||(t=dz);function e(zt,Ht){return zt&&Ht?t(zt.__data__,Ht.__data__):!zt-!Ht}for(var n=this._groups,i=n.length,c=new Array(i),S=0;S<i;++S){for(var F=n[S],nt=F.length,ut=c[S]=new Array(nt),yt,_t=0;_t<nt;++_t)(yt=F[_t])&&(ut[_t]=yt);ut.sort(e)}return new Oh(c,this._parents).order()}function dz(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function pz(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function mz(){return Array.from(this)}function gz(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],c=0,S=i.length;c<S;++c){var F=i[c];if(F)return F}return null}function yz(){let t=0;for(const e of this)++t;return t}function vz(){return!this.node()}function bz(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var c=e[n],S=0,F=c.length,nt;S<F;++S)(nt=c[S])&&t.call(nt,nt.__data__,S,c);return this}var l5="http://www.w3.org/1999/xhtml";const JN={svg:"http://www.w3.org/2000/svg",xhtml:l5,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function QM(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),JN.hasOwnProperty(e)?{space:JN[e],local:t}:t}function xz(t){return function(){this.removeAttribute(t)}}function wz(t){return function(){this.removeAttributeNS(t.space,t.local)}}function _z(t,e){return function(){this.setAttribute(t,e)}}function Sz(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ez(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Cz(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Mz(t,e){var n=QM(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((e==null?n.local?wz:xz:typeof e=="function"?n.local?Cz:Ez:n.local?Sz:_z)(n,e))}function tD(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function kz(t){return function(){this.style.removeProperty(t)}}function Tz(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Az(t,e,n){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function Pz(t,e,n){return arguments.length>1?this.each((e==null?kz:typeof e=="function"?Az:Tz)(t,e,n==null?"":n)):Nb(this.node(),t)}function Nb(t,e){return t.style.getPropertyValue(e)||tD(t).getComputedStyle(t,null).getPropertyValue(e)}function Oz(t){return function(){delete this[t]}}function Nz(t,e){return function(){this[t]=e}}function Dz(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Rz(t,e){return arguments.length>1?this.each((e==null?Oz:typeof e=="function"?Dz:Nz)(t,e)):this.node()[t]}function eD(t){return t.trim().split(/^|\s+/)}function u5(t){return t.classList||new nD(t)}function nD(t){this._node=t,this._names=eD(t.getAttribute("class")||"")}nD.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function rD(t,e){for(var n=u5(t),i=-1,c=e.length;++i<c;)n.add(e[i])}function iD(t,e){for(var n=u5(t),i=-1,c=e.length;++i<c;)n.remove(e[i])}function Lz(t){return function(){rD(this,t)}}function Iz(t){return function(){iD(this,t)}}function jz(t,e){return function(){(e.apply(this,arguments)?rD:iD)(this,t)}}function Bz(t,e){var n=eD(t+"");if(arguments.length<2){for(var i=u5(this.node()),c=-1,S=n.length;++c<S;)if(!i.contains(n[c]))return!1;return!0}return this.each((typeof e=="function"?jz:e?Lz:Iz)(n,e))}function Fz(){this.textContent=""}function zz(t){return function(){this.textContent=t}}function Uz(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function Hz(t){return arguments.length?this.each(t==null?Fz:(typeof t=="function"?Uz:zz)(t)):this.node().textContent}function Vz(){this.innerHTML=""}function Wz(t){return function(){this.innerHTML=t}}function Yz(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function qz(t){return arguments.length?this.each(t==null?Vz:(typeof t=="function"?Yz:Wz)(t)):this.node().innerHTML}function $z(){this.nextSibling&&this.parentNode.appendChild(this)}function Xz(){return this.each($z)}function Gz(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Kz(){return this.each(Gz)}function Zz(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===l5&&e.documentElement.namespaceURI===l5?e.createElement(t):e.createElementNS(n,t)}}function Qz(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function oD(t){var e=QM(t);return(e.local?Qz:Zz)(e)}function Jz(t){var e=typeof t=="function"?t:oD(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function tU(){return null}function eU(t,e){var n=typeof t=="function"?t:oD(t),i=e==null?tU:typeof e=="function"?e:s5(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function nU(){var t=this.parentNode;t&&t.removeChild(this)}function rU(){return this.each(nU)}function iU(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function oU(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function aU(t){return this.select(t?oU:iU)}function sU(t){return arguments.length?this.property("__data__",t):this.node().__data__}function lU(t){return function(e){t.call(this,e,this.__data__)}}function uU(t){return t.trim().split(/^|\s+/).map(function(e){var n="",i=e.indexOf(".");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{type:e,name:n}})}function cU(t){return function(){var e=this.__on;if(e){for(var n=0,i=-1,c=e.length,S;n<c;++n)S=e[n],(!t.type||S.type===t.type)&&S.name===t.name?this.removeEventListener(S.type,S.listener,S.options):e[++i]=S;++i?e.length=i:delete this.__on}}}function hU(t,e,n){return function(){var i=this.__on,c,S=lU(e);if(i){for(var F=0,nt=i.length;F<nt;++F)if((c=i[F]).type===t.type&&c.name===t.name){this.removeEventListener(c.type,c.listener,c.options),this.addEventListener(c.type,c.listener=S,c.options=n),c.value=e;return}}this.addEventListener(t.type,S,n),c={type:t.type,name:t.name,value:e,listener:S,options:n},i?i.push(c):this.__on=[c]}}function fU(t,e,n){var i=uU(t+""),c,S=i.length,F;if(arguments.length<2){var nt=this.node().__on;if(nt){for(var ut=0,yt=nt.length,_t;ut<yt;++ut)for(c=0,_t=nt[ut];c<S;++c)if((F=i[c]).type===_t.type&&F.name===_t.name)return _t.value}return}for(nt=e?hU:cU,c=0;c<S;++c)this.each(nt(i[c],e,n));return this}function aD(t,e,n){var i=tD(t),c=i.CustomEvent;typeof c=="function"?c=new c(e,n):(c=i.document.createEvent("Event"),n?(c.initEvent(e,n.bubbles,n.cancelable),c.detail=n.detail):c.initEvent(e,!1,!1)),t.dispatchEvent(c)}function dU(t,e){return function(){return aD(this,t,e)}}function pU(t,e){return function(){return aD(this,t,e.apply(this,arguments))}}function mU(t,e){return this.each((typeof e=="function"?pU:dU)(t,e))}function*gU(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],c=0,S=i.length,F;c<S;++c)(F=i[c])&&(yield F)}var yU=[null];function Oh(t,e){this._groups=t,this._parents=e}function sD(){return new Oh([[document.documentElement]],yU)}function vU(){return this}Oh.prototype=sD.prototype={constructor:Oh,select:UF,selectAll:YF,selectChild:GF,selectChildren:JF,filter:tz,data:az,enter:ez,exit:lz,join:uz,merge:cz,selection:vU,order:hz,sort:fz,call:pz,nodes:mz,node:gz,size:yz,empty:vz,each:bz,attr:Mz,style:Pz,property:Rz,classed:Bz,text:Hz,html:qz,raise:Xz,lower:Kz,append:Jz,insert:eU,remove:rU,clone:aU,datum:sU,on:fU,dispatch:mU,[Symbol.iterator]:gU};const c2=sD;var bU={value:()=>{}};function lD(){for(var t=0,e=arguments.length,n={},i;t<e;++t){if(!(i=arguments[t]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new JM(n)}function JM(t){this._=t}function xU(t,e){return t.trim().split(/^|\s+/).map(function(n){var i="",c=n.indexOf(".");if(c>=0&&(i=n.slice(c+1),n=n.slice(0,c)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}JM.prototype=lD.prototype={constructor:JM,on:function(t,e){var n=this._,i=xU(t+"",n),c,S=-1,F=i.length;if(arguments.length<2){for(;++S<F;)if((c=(t=i[S]).type)&&(c=wU(n[c],t.name)))return c;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++S<F;)if(c=(t=i[S]).type)n[c]=uD(n[c],t.name,e);else if(e==null)for(c in n)n[c]=uD(n[c],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new JM(t)},call:function(t,e){if((c=arguments.length-2)>0)for(var n=new Array(c),i=0,c,S;i<c;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(S=this._[t],i=0,c=S.length;i<c;++i)S[i].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],c=0,S=i.length;c<S;++c)i[c].value.apply(e,n)}};function wU(t,e){for(var n=0,i=t.length,c;n<i;++n)if((c=t[n]).name===e)return c.value}function uD(t,e,n){for(var i=0,c=t.length;i<c;++i)if(t[i].name===e){t[i]=bU,t=t.slice(0,i).concat(t.slice(i+1));break}return n!=null&&t.push({name:e,value:n}),t}const _U=lD;var Db=0,h2=0,f2=0,cD=1e3,tk,d2,ek=0,Yy=0,nk=0,p2=typeof performance=="object"&&performance.now?performance:Date,hD=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function c5(){return Yy||(hD(SU),Yy=p2.now()+nk)}function SU(){Yy=0}function rk(){this._call=this._time=this._next=null}rk.prototype=fD.prototype={constructor:rk,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?c5():+n)+(e==null?0:+e),!this._next&&d2!==this&&(d2?d2._next=this:tk=this,d2=this),this._call=t,this._time=n,h5()},stop:function(){this._call&&(this._call=null,this._time=1/0,h5())}};function fD(t,e,n){var i=new rk;return i.restart(t,e,n),i}function EU(){c5(),++Db;for(var t=tk,e;t;)(e=Yy-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Db}function dD(){Yy=(ek=p2.now())+nk,Db=h2=0;try{EU()}finally{Db=0,MU(),Yy=0}}function CU(){var t=p2.now(),e=t-ek;e>cD&&(nk-=e,ek=t)}function MU(){for(var t,e=tk,n,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:tk=n);d2=t,h5(i)}function h5(t){if(!Db){h2&&(h2=clearTimeout(h2));var e=t-Yy;e>24?(t<1/0&&(h2=setTimeout(dD,t-p2.now()-nk)),f2&&(f2=clearInterval(f2))):(f2||(ek=p2.now(),f2=setInterval(CU,cD)),Db=1,hD(dD))}}function pD(t,e,n){var i=new rk;return e=e==null?0:+e,i.restart(c=>{i.stop(),t(c+e)},e,n),i}var kU=_U("start","end","cancel","interrupt"),TU=[],mD=0,gD=1,f5=2,ik=3,yD=4,d5=5,ok=6;function ak(t,e,n,i,c,S){var F=t.__transition;if(!F)t.__transition={};else if(n in F)return;AU(t,n,{name:e,index:i,group:c,on:kU,tween:TU,time:S.time,delay:S.delay,duration:S.duration,ease:S.ease,timer:null,state:mD})}function p5(t,e){var n=Nh(t,e);if(n.state>mD)throw new Error("too late; already scheduled");return n}function qf(t,e){var n=Nh(t,e);if(n.state>ik)throw new Error("too late; already running");return n}function Nh(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function AU(t,e,n){var i=t.__transition,c;i[e]=n,n.timer=fD(S,0,n.time);function S(yt){n.state=gD,n.timer.restart(F,n.delay,n.time),n.delay<=yt&&F(yt-n.delay)}function F(yt){var _t,zt,Ht,Yt;if(n.state!==gD)return ut();for(_t in i)if(Yt=i[_t],Yt.name===n.name){if(Yt.state===ik)return pD(F);Yt.state===yD?(Yt.state=ok,Yt.timer.stop(),Yt.on.call("interrupt",t,t.__data__,Yt.index,Yt.group),delete i[_t]):+_t<e&&(Yt.state=ok,Yt.timer.stop(),Yt.on.call("cancel",t,t.__data__,Yt.index,Yt.group),delete i[_t])}if(pD(function(){n.state===ik&&(n.state=yD,n.timer.restart(nt,n.delay,n.time),nt(yt))}),n.state=f5,n.on.call("start",t,t.__data__,n.index,n.group),n.state===f5){for(n.state=ik,c=new Array(Ht=n.tween.length),_t=0,zt=-1;_t<Ht;++_t)(Yt=n.tween[_t].value.call(t,t.__data__,n.index,n.group))&&(c[++zt]=Yt);c.length=zt+1}}function nt(yt){for(var _t=yt<n.duration?n.ease.call(null,yt/n.duration):(n.timer.restart(ut),n.state=d5,1),zt=-1,Ht=c.length;++zt<Ht;)c[zt].call(t,_t);n.state===d5&&(n.on.call("end",t,t.__data__,n.index,n.group),ut())}function ut(){n.state=ok,n.timer.stop(),delete i[e];for(var yt in i)return;delete t.__transition}}function PU(t,e){var n=t.__transition,i,c,S=!0,F;if(n){e=e==null?null:e+"";for(F in n){if((i=n[F]).name!==e){S=!1;continue}c=i.state>f5&&i.state<d5,i.state=ok,i.timer.stop(),i.on.call(c?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete n[F]}S&&delete t.__transition}}function OU(t){return this.each(function(){PU(this,t)})}function Eg(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var vD=180/Math.PI,m5={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function bD(t,e,n,i,c,S){var F,nt,ut;return(F=Math.sqrt(t*t+e*e))&&(t/=F,e/=F),(ut=t*n+e*i)&&(n-=t*ut,i-=e*ut),(nt=Math.sqrt(n*n+i*i))&&(n/=nt,i/=nt,ut/=nt),t*i<e*n&&(t=-t,e=-e,ut=-ut,F=-F),{translateX:c,translateY:S,rotate:Math.atan2(e,t)*vD,skewX:Math.atan(ut)*vD,scaleX:F,scaleY:nt}}var sk;function NU(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?m5:bD(e.a,e.b,e.c,e.d,e.e,e.f)}function DU(t){return t==null||(sk||(sk=document.createElementNS("http://www.w3.org/2000/svg","g")),sk.setAttribute("transform",t),!(t=sk.transform.baseVal.consolidate()))?m5:(t=t.matrix,bD(t.a,t.b,t.c,t.d,t.e,t.f))}function xD(t,e,n,i){function c(yt){return yt.length?yt.pop()+" ":""}function S(yt,_t,zt,Ht,Yt,re){if(yt!==zt||_t!==Ht){var ue=Yt.push("translate(",null,e,null,n);re.push({i:ue-4,x:Eg(yt,zt)},{i:ue-2,x:Eg(_t,Ht)})}else(zt||Ht)&&Yt.push("translate("+zt+e+Ht+n)}function F(yt,_t,zt,Ht){yt!==_t?(yt-_t>180?_t+=360:_t-yt>180&&(yt+=360),Ht.push({i:zt.push(c(zt)+"rotate(",null,i)-2,x:Eg(yt,_t)})):_t&&zt.push(c(zt)+"rotate("+_t+i)}function nt(yt,_t,zt,Ht){yt!==_t?Ht.push({i:zt.push(c(zt)+"skewX(",null,i)-2,x:Eg(yt,_t)}):_t&&zt.push(c(zt)+"skewX("+_t+i)}function ut(yt,_t,zt,Ht,Yt,re){if(yt!==zt||_t!==Ht){var ue=Yt.push(c(Yt)+"scale(",null,",",null,")");re.push({i:ue-4,x:Eg(yt,zt)},{i:ue-2,x:Eg(_t,Ht)})}else(zt!==1||Ht!==1)&&Yt.push(c(Yt)+"scale("+zt+","+Ht+")")}return function(yt,_t){var zt=[],Ht=[];return yt=t(yt),_t=t(_t),S(yt.translateX,yt.translateY,_t.translateX,_t.translateY,zt,Ht),F(yt.rotate,_t.rotate,zt,Ht),nt(yt.skewX,_t.skewX,zt,Ht),ut(yt.scaleX,yt.scaleY,_t.scaleX,_t.scaleY,zt,Ht),yt=_t=null,function(Yt){for(var re=-1,ue=Ht.length,oe;++re<ue;)zt[(oe=Ht[re]).i]=oe.x(Yt);return zt.join("")}}}var RU=xD(NU,"px, ","px)","deg)"),LU=xD(DU,", ",")",")");function IU(t,e){var n,i;return function(){var c=qf(this,t),S=c.tween;if(S!==n){i=n=S;for(var F=0,nt=i.length;F<nt;++F)if(i[F].name===e){i=i.slice(),i.splice(F,1);break}}c.tween=i}}function jU(t,e,n){var i,c;if(typeof n!="function")throw new Error;return function(){var S=qf(this,t),F=S.tween;if(F!==i){c=(i=F).slice();for(var nt={name:e,value:n},ut=0,yt=c.length;ut<yt;++ut)if(c[ut].name===e){c[ut]=nt;break}ut===yt&&c.push(nt)}S.tween=c}}function BU(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i=Nh(this.node(),n).tween,c=0,S=i.length,F;c<S;++c)if((F=i[c]).name===t)return F.value;return null}return this.each((e==null?IU:jU)(n,t,e))}function g5(t,e,n){var i=t._id;return t.each(function(){var c=qf(this,i);(c.value||(c.value={}))[e]=n.apply(this,arguments)}),function(c){return Nh(c,i).value[e]}}function y5(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function wD(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function m2(){}var g2=.7,lk=1/g2,Rb="\\s*([+-]?\\d+)\\s*",y2="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",$f="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",FU=/^#([0-9a-f]{3,8})$/,zU=new RegExp(`^rgb\\(${Rb},${Rb},${Rb}\\)$`),UU=new RegExp(`^rgb\\(${$f},${$f},${$f}\\)$`),HU=new RegExp(`^rgba\\(${Rb},${Rb},${Rb},${y2}\\)$`),VU=new RegExp(`^rgba\\(${$f},${$f},${$f},${y2}\\)$`),WU=new RegExp(`^hsl\\(${y2},${$f},${$f}\\)$`),YU=new RegExp(`^hsla\\(${y2},${$f},${$f},${y2}\\)$`),_D={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};y5(m2,v2,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:SD,formatHex:SD,formatHex8:qU,formatHsl:$U,formatRgb:ED,toString:ED});function SD(){return this.rgb().formatHex()}function qU(){return this.rgb().formatHex8()}function $U(){return AD(this).formatHsl()}function ED(){return this.rgb().formatRgb()}function v2(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=FU.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?CD(e):n===3?new pu(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?uk(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?uk(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=zU.exec(t))?new pu(e[1],e[2],e[3],1):(e=UU.exec(t))?new pu(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=HU.exec(t))?uk(e[1],e[2],e[3],e[4]):(e=VU.exec(t))?uk(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=WU.exec(t))?TD(e[1],e[2]/100,e[3]/100,1):(e=YU.exec(t))?TD(e[1],e[2]/100,e[3]/100,e[4]):_D.hasOwnProperty(t)?CD(_D[t]):t==="transparent"?new pu(NaN,NaN,NaN,0):null}function CD(t){return new pu(t>>16&255,t>>8&255,t&255,1)}function uk(t,e,n,i){return i<=0&&(t=e=n=NaN),new pu(t,e,n,i)}function XU(t){return t instanceof m2||(t=v2(t)),t?(t=t.rgb(),new pu(t.r,t.g,t.b,t.opacity)):new pu}function ck(t,e,n,i){return arguments.length===1?XU(t):new pu(t,e,n,i==null?1:i)}function pu(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}y5(pu,ck,wD(m2,{brighter(t){return t=t==null?lk:Math.pow(lk,t),new pu(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?g2:Math.pow(g2,t),new pu(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new pu(qy(this.r),qy(this.g),qy(this.b),hk(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:MD,formatHex:MD,formatHex8:GU,formatRgb:kD,toString:kD}));function MD(){return`#${$y(this.r)}${$y(this.g)}${$y(this.b)}`}function GU(){return`#${$y(this.r)}${$y(this.g)}${$y(this.b)}${$y((isNaN(this.opacity)?1:this.opacity)*255)}`}function kD(){const t=hk(this.opacity);return`${t===1?"rgb(":"rgba("}${qy(this.r)}, ${qy(this.g)}, ${qy(this.b)}${t===1?")":`, ${t})`}`}function hk(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function qy(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function $y(t){return t=qy(t),(t<16?"0":"")+t.toString(16)}function TD(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Dh(t,e,n,i)}function AD(t){if(t instanceof Dh)return new Dh(t.h,t.s,t.l,t.opacity);if(t instanceof m2||(t=v2(t)),!t)return new Dh;if(t instanceof Dh)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,c=Math.min(e,n,i),S=Math.max(e,n,i),F=NaN,nt=S-c,ut=(S+c)/2;return nt?(e===S?F=(n-i)/nt+(n<i)*6:n===S?F=(i-e)/nt+2:F=(e-n)/nt+4,nt/=ut<.5?S+c:2-S-c,F*=60):nt=ut>0&&ut<1?0:F,new Dh(F,nt,ut,t.opacity)}function KU(t,e,n,i){return arguments.length===1?AD(t):new Dh(t,e,n,i==null?1:i)}function Dh(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}y5(Dh,KU,wD(m2,{brighter(t){return t=t==null?lk:Math.pow(lk,t),new Dh(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?g2:Math.pow(g2,t),new Dh(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,c=2*n-i;return new pu(v5(t>=240?t-240:t+120,c,i),v5(t,c,i),v5(t<120?t+240:t-120,c,i),this.opacity)},clamp(){return new Dh(PD(this.h),fk(this.s),fk(this.l),hk(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=hk(this.opacity);return`${t===1?"hsl(":"hsla("}${PD(this.h)}, ${fk(this.s)*100}%, ${fk(this.l)*100}%${t===1?")":`, ${t})`}`}}));function PD(t){return t=(t||0)%360,t<0?t+360:t}function fk(t){return Math.max(0,Math.min(1,t||0))}function v5(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function OD(t,e,n,i,c){var S=t*t,F=S*t;return((1-3*t+3*S-F)*e+(4-6*S+3*F)*n+(1+3*t+3*S-3*F)*i+F*c)/6}function ZU(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),c=t[i],S=t[i+1],F=i>0?t[i-1]:2*c-S,nt=i<e-1?t[i+2]:2*S-c;return OD((n-i/e)*e,F,c,S,nt)}}function QU(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),c=t[(i+e-1)%e],S=t[i%e],F=t[(i+1)%e],nt=t[(i+2)%e];return OD((n-i/e)*e,c,S,F,nt)}}const ND=t=>()=>t;function DD(t,e){return function(n){return t+n*e}}function JU(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}function H$(t,e){var n=e-t;return n?DD(t,n>180||n<-180?n-360*Math.round(n/360):n):constant(isNaN(t)?e:t)}function tH(t){return(t=+t)==1?RD:function(e,n){return n-e?JU(e,n,t):ND(isNaN(e)?n:e)}}function RD(t,e){var n=e-t;return n?DD(t,n):ND(isNaN(t)?e:t)}const LD=function t(e){var n=tH(e);function i(c,S){var F=n((c=ck(c)).r,(S=ck(S)).r),nt=n(c.g,S.g),ut=n(c.b,S.b),yt=RD(c.opacity,S.opacity);return function(_t){return c.r=F(_t),c.g=nt(_t),c.b=ut(_t),c.opacity=yt(_t),c+""}}return i.gamma=t,i}(1);function ID(t){return function(e){var n=e.length,i=new Array(n),c=new Array(n),S=new Array(n),F,nt;for(F=0;F<n;++F)nt=ck(e[F]),i[F]=nt.r||0,c[F]=nt.g||0,S[F]=nt.b||0;return i=t(i),c=t(c),S=t(S),nt.opacity=1,function(ut){return nt.r=i(ut),nt.g=c(ut),nt.b=S(ut),nt+""}}}var V$=ID(ZU),W$=ID(QU),b5=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,x5=new RegExp(b5.source,"g");function eH(t){return function(){return t}}function nH(t){return function(e){return t(e)+""}}function rH(t,e){var n=b5.lastIndex=x5.lastIndex=0,i,c,S,F=-1,nt=[],ut=[];for(t=t+"",e=e+"";(i=b5.exec(t))&&(c=x5.exec(e));)(S=c.index)>n&&(S=e.slice(n,S),nt[F]?nt[F]+=S:nt[++F]=S),(i=i[0])===(c=c[0])?nt[F]?nt[F]+=c:nt[++F]=c:(nt[++F]=null,ut.push({i:F,x:Eg(i,c)})),n=x5.lastIndex;return n<e.length&&(S=e.slice(n),nt[F]?nt[F]+=S:nt[++F]=S),nt.length<2?ut[0]?nH(ut[0].x):eH(e):(e=ut.length,function(yt){for(var _t=0,zt;_t<e;++_t)nt[(zt=ut[_t]).i]=zt.x(yt);return nt.join("")})}function jD(t,e){var n;return(typeof e=="number"?Eg:e instanceof v2?LD:(n=v2(e))?(e=n,LD):rH)(t,e)}function iH(t){return function(){this.removeAttribute(t)}}function oH(t){return function(){this.removeAttributeNS(t.space,t.local)}}function aH(t,e,n){var i,c=n+"",S;return function(){var F=this.getAttribute(t);return F===c?null:F===i?S:S=e(i=F,n)}}function sH(t,e,n){var i,c=n+"",S;return function(){var F=this.getAttributeNS(t.space,t.local);return F===c?null:F===i?S:S=e(i=F,n)}}function lH(t,e,n){var i,c,S;return function(){var F,nt=n(this),ut;return nt==null?void this.removeAttribute(t):(F=this.getAttribute(t),ut=nt+"",F===ut?null:F===i&&ut===c?S:(c=ut,S=e(i=F,nt)))}}function uH(t,e,n){var i,c,S;return function(){var F,nt=n(this),ut;return nt==null?void this.removeAttributeNS(t.space,t.local):(F=this.getAttributeNS(t.space,t.local),ut=nt+"",F===ut?null:F===i&&ut===c?S:(c=ut,S=e(i=F,nt)))}}function cH(t,e){var n=QM(t),i=n==="transform"?LU:jD;return this.attrTween(t,typeof e=="function"?(n.local?uH:lH)(n,i,g5(this,"attr."+t,e)):e==null?(n.local?oH:iH)(n):(n.local?sH:aH)(n,i,e))}function hH(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function fH(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function dH(t,e){var n,i;function c(){var S=e.apply(this,arguments);return S!==i&&(n=(i=S)&&fH(t,S)),n}return c._value=e,c}function pH(t,e){var n,i;function c(){var S=e.apply(this,arguments);return S!==i&&(n=(i=S)&&hH(t,S)),n}return c._value=e,c}function mH(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var i=QM(t);return this.tween(n,(i.local?dH:pH)(i,e))}function gH(t,e){return function(){p5(this,t).delay=+e.apply(this,arguments)}}function yH(t,e){return e=+e,function(){p5(this,t).delay=e}}function vH(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?gH:yH)(e,t)):Nh(this.node(),e).delay}function bH(t,e){return function(){qf(this,t).duration=+e.apply(this,arguments)}}function xH(t,e){return e=+e,function(){qf(this,t).duration=e}}function wH(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?bH:xH)(e,t)):Nh(this.node(),e).duration}function _H(t,e){if(typeof e!="function")throw new Error;return function(){qf(this,t).ease=e}}function SH(t){var e=this._id;return arguments.length?this.each(_H(e,t)):Nh(this.node(),e).ease}function EH(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;qf(this,t).ease=n}}function CH(t){if(typeof t!="function")throw new Error;return this.each(EH(this._id,t))}function MH(t){typeof t!="function"&&(t=KN(t));for(var e=this._groups,n=e.length,i=new Array(n),c=0;c<n;++c)for(var S=e[c],F=S.length,nt=i[c]=[],ut,yt=0;yt<F;++yt)(ut=S[yt])&&t.call(ut,ut.__data__,yt,S)&&nt.push(ut);return new jp(i,this._parents,this._name,this._id)}function kH(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,c=n.length,S=Math.min(i,c),F=new Array(i),nt=0;nt<S;++nt)for(var ut=e[nt],yt=n[nt],_t=ut.length,zt=F[nt]=new Array(_t),Ht,Yt=0;Yt<_t;++Yt)(Ht=ut[Yt]||yt[Yt])&&(zt[Yt]=Ht);for(;nt<i;++nt)F[nt]=e[nt];return new jp(F,this._parents,this._name,this._id)}function TH(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function AH(t,e,n){var i,c,S=TH(e)?p5:qf;return function(){var F=S(this,t),nt=F.on;nt!==i&&(c=(i=nt).copy()).on(e,n),F.on=c}}function PH(t,e){var n=this._id;return arguments.length<2?Nh(this.node(),n).on.on(t):this.each(AH(n,t,e))}function OH(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function NH(){return this.on("end.remove",OH(this._id))}function DH(t){var e=this._name,n=this._id;typeof t!="function"&&(t=s5(t));for(var i=this._groups,c=i.length,S=new Array(c),F=0;F<c;++F)for(var nt=i[F],ut=nt.length,yt=S[F]=new Array(ut),_t,zt,Ht=0;Ht<ut;++Ht)(_t=nt[Ht])&&(zt=t.call(_t,_t.__data__,Ht,nt))&&("__data__"in _t&&(zt.__data__=_t.__data__),yt[Ht]=zt,ak(yt[Ht],e,n,Ht,yt,Nh(_t,n)));return new jp(S,this._parents,e,n)}function RH(t){var e=this._name,n=this._id;typeof t!="function"&&(t=GN(t));for(var i=this._groups,c=i.length,S=[],F=[],nt=0;nt<c;++nt)for(var ut=i[nt],yt=ut.length,_t,zt=0;zt<yt;++zt)if(_t=ut[zt]){for(var Ht=t.call(_t,_t.__data__,zt,ut),Yt,re=Nh(_t,n),ue=0,oe=Ht.length;ue<oe;++ue)(Yt=Ht[ue])&&ak(Yt,e,n,ue,Ht,re);S.push(Ht),F.push(_t)}return new jp(S,F,e,n)}var LH=c2.prototype.constructor;function IH(){return new LH(this._groups,this._parents)}function jH(t,e){var n,i,c;return function(){var S=Nb(this,t),F=(this.style.removeProperty(t),Nb(this,t));return S===F?null:S===n&&F===i?c:c=e(n=S,i=F)}}function BD(t){return function(){this.style.removeProperty(t)}}function BH(t,e,n){var i,c=n+"",S;return function(){var F=Nb(this,t);return F===c?null:F===i?S:S=e(i=F,n)}}function FH(t,e,n){var i,c,S;return function(){var F=Nb(this,t),nt=n(this),ut=nt+"";return nt==null&&(ut=nt=(this.style.removeProperty(t),Nb(this,t))),F===ut?null:F===i&&ut===c?S:(c=ut,S=e(i=F,nt))}}function zH(t,e){var n,i,c,S="style."+e,F="end."+S,nt;return function(){var ut=qf(this,t),yt=ut.on,_t=ut.value[S]==null?nt||(nt=BD(e)):void 0;(yt!==n||c!==_t)&&(i=(n=yt).copy()).on(F,c=_t),ut.on=i}}function UH(t,e,n){var i=(t+="")=="transform"?RU:jD;return e==null?this.styleTween(t,jH(t,i)).on("end.style."+t,BD(t)):typeof e=="function"?this.styleTween(t,FH(t,i,g5(this,"style."+t,e))).each(zH(this._id,t)):this.styleTween(t,BH(t,i,e),n).on("end.style."+t,null)}function HH(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function VH(t,e,n){var i,c;function S(){var F=e.apply(this,arguments);return F!==c&&(i=(c=F)&&HH(t,F,n)),i}return S._value=e,S}function WH(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,VH(t,e,n==null?"":n))}function YH(t){return function(){this.textContent=t}}function qH(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function $H(t){return this.tween("text",typeof t=="function"?qH(g5(this,"text",t)):YH(t==null?"":t+""))}function XH(t){return function(e){this.textContent=t.call(this,e)}}function GH(t){var e,n;function i(){var c=t.apply(this,arguments);return c!==n&&(e=(n=c)&&XH(c)),e}return i._value=t,i}function KH(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,GH(t))}function ZH(){for(var t=this._name,e=this._id,n=FD(),i=this._groups,c=i.length,S=0;S<c;++S)for(var F=i[S],nt=F.length,ut,yt=0;yt<nt;++yt)if(ut=F[yt]){var _t=Nh(ut,e);ak(ut,t,n,yt,F,{time:_t.time+_t.delay+_t.duration,delay:0,duration:_t.duration,ease:_t.ease})}return new jp(i,this._parents,t,n)}function QH(){var t,e,n=this,i=n._id,c=n.size();return new Promise(function(S,F){var nt={value:F},ut={value:function(){--c===0&&S()}};n.each(function(){var yt=qf(this,i),_t=yt.on;_t!==t&&(e=(t=_t).copy(),e._.cancel.push(nt),e._.interrupt.push(nt),e._.end.push(ut)),yt.on=e}),c===0&&S()})}var JH=0;function jp(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function tV(t){return c2().transition(t)}function FD(){return++JH}var Bp=c2.prototype;jp.prototype=tV.prototype={constructor:jp,select:DH,selectAll:RH,selectChild:Bp.selectChild,selectChildren:Bp.selectChildren,filter:MH,merge:kH,selection:IH,transition:ZH,call:Bp.call,nodes:Bp.nodes,node:Bp.node,size:Bp.size,empty:Bp.empty,each:Bp.each,on:PH,attr:cH,attrTween:mH,style:UH,styleTween:WH,text:$H,textTween:KH,remove:NH,tween:BU,delay:vH,duration:wH,ease:SH,easeVarying:CH,end:QH,[Symbol.iterator]:Bp[Symbol.iterator]};function Y$(t){return t*t*t}function q$(t){return--t*t*t+1}function eV(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var nV={time:null,delay:0,duration:250,ease:eV};function rV(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function iV(t){var e,n;t instanceof jp?(e=t._id,t=t._name):(e=FD(),(n=nV).time=c5(),t=t==null?null:t+"");for(var i=this._groups,c=i.length,S=0;S<c;++S)for(var F=i[S],nt=F.length,ut,yt=0;yt<nt;++yt)(ut=F[yt])&&ak(ut,t,e,yt,F,n||rV(ut,e));return new jp(i,this._parents,t,e)}c2.prototype.interrupt=OU,c2.prototype.transition=iV;function Lb(t,e,n){this.k=t,this.x=e,this.y=n}Lb.prototype={constructor:Lb,scale:function(t){return t===1?this:new Lb(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Lb(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var oV=new Lb(1,0,0);aV.prototype=Lb.prototype;function aV(t){for(;!t.__zoom;)if(!(t=t.parentNode))return oV;return t.__zoom}function sV(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function lV(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function zD(){return this.__zoom||identity}function uV(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function cV(){return navigator.maxTouchPoints||"ontouchstart"in this}function hV(t,e,n){var i=t.invertX(e[0][0])-n[0][0],c=t.invertX(e[1][0])-n[1][0],S=t.invertY(e[0][1])-n[0][1],F=t.invertY(e[1][1])-n[1][1];return t.translate(c>i?(i+c)/2:Math.min(0,i)||Math.max(0,c),F>S?(S+F)/2:Math.min(0,S)||Math.max(0,F))}function $$(){var t=sV,e=lV,n=hV,i=uV,c=cV,S=[0,1/0],F=[[-1/0,-1/0],[1/0,1/0]],nt=250,ut=interpolateZoom,yt=dispatch("start","zoom","end"),_t,zt,Ht,Yt=500,re=150,ue=0,oe=10;function de(fn){fn.property("__zoom",zD).on("wheel.zoom",Ye,{passive:!1}).on("mousedown.zoom",tn).on("dblclick.zoom",gn).filter(c).on("touchstart.zoom",Cn).on("touchmove.zoom",kn).on("touchend.zoom touchcancel.zoom",Zn).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}de.transform=function(fn,jn,On,Vn){var wr=fn.selection?fn.selection():fn;wr.property("__zoom",zD),fn!==wr?qe(fn,jn,On,Vn):wr.interrupt().each(function(){De(this,arguments).event(Vn).start().zoom(null,typeof jn=="function"?jn.apply(this,arguments):jn).end()})},de.scaleBy=function(fn,jn,On,Vn){de.scaleTo(fn,function(){var wr=this.__zoom.k,Pr=typeof jn=="function"?jn.apply(this,arguments):jn;return wr*Pr},On,Vn)},de.scaleTo=function(fn,jn,On,Vn){de.transform(fn,function(){var wr=e.apply(this,arguments),Pr=this.__zoom,_r=On==null?ge(wr):typeof On=="function"?On.apply(this,arguments):On,Ur=Pr.invert(_r),Hr=typeof jn=="function"?jn.apply(this,arguments):jn;return n(_e(pe(Pr,Hr),_r,Ur),wr,F)},On,Vn)},de.translateBy=function(fn,jn,On,Vn){de.transform(fn,function(){return n(this.__zoom.translate(typeof jn=="function"?jn.apply(this,arguments):jn,typeof On=="function"?On.apply(this,arguments):On),e.apply(this,arguments),F)},null,Vn)},de.translateTo=function(fn,jn,On,Vn,wr){de.transform(fn,function(){var Pr=e.apply(this,arguments),_r=this.__zoom,Ur=Vn==null?ge(Pr):typeof Vn=="function"?Vn.apply(this,arguments):Vn;return n(identity.translate(Ur[0],Ur[1]).scale(_r.k).translate(typeof jn=="function"?-jn.apply(this,arguments):-jn,typeof On=="function"?-On.apply(this,arguments):-On),Pr,F)},Vn,wr)};function pe(fn,jn){return jn=Math.max(S[0],Math.min(S[1],jn)),jn===fn.k?fn:new Transform(jn,fn.x,fn.y)}function _e(fn,jn,On){var Vn=jn[0]-On[0]*fn.k,wr=jn[1]-On[1]*fn.k;return Vn===fn.x&&wr===fn.y?fn:new Transform(fn.k,Vn,wr)}function ge(fn){return[(+fn[0][0]+ +fn[1][0])/2,(+fn[0][1]+ +fn[1][1])/2]}function qe(fn,jn,On,Vn){fn.on("start.zoom",function(){De(this,arguments).event(Vn).start()}).on("interrupt.zoom end.zoom",function(){De(this,arguments).event(Vn).end()}).tween("zoom",function(){var wr=this,Pr=arguments,_r=De(wr,Pr).event(Vn),Ur=e.apply(wr,Pr),Hr=On==null?ge(Ur):typeof On=="function"?On.apply(wr,Pr):On,Li=Math.max(Ur[1][0]-Ur[0][0],Ur[1][1]-Ur[0][1]),ai=wr.__zoom,Ei=typeof jn=="function"?jn.apply(wr,Pr):jn,Zi=ut(ai.invert(Hr).concat(Li/ai.k),Ei.invert(Hr).concat(Li/Ei.k));return function($r){if($r===1)$r=Ei;else{var Fi=Zi($r),qo=Li/Fi[2];$r=new Transform(qo,Hr[0]-Fi[0]*qo,Hr[1]-Fi[1]*qo)}_r.zoom(null,$r)}})}function De(fn,jn,On){return!On&&fn.__zooming||new $e(fn,jn)}function $e(fn,jn){this.that=fn,this.args=jn,this.active=0,this.sourceEvent=null,this.extent=e.apply(fn,jn),this.taps=0}$e.prototype={event:function(fn){return fn&&(this.sourceEvent=fn),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(fn,jn){return this.mouse&&fn!=="mouse"&&(this.mouse[1]=jn.invert(this.mouse[0])),this.touch0&&fn!=="touch"&&(this.touch0[1]=jn.invert(this.touch0[0])),this.touch1&&fn!=="touch"&&(this.touch1[1]=jn.invert(this.touch1[0])),this.that.__zoom=jn,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(fn){var jn=select(this.that).datum();yt.call(fn,this.that,new ZoomEvent(fn,{sourceEvent:this.sourceEvent,target:de,type:fn,transform:this.that.__zoom,dispatch:yt}),jn)}};function Ye(fn,...jn){if(!t.apply(this,arguments))return;var On=De(this,jn).event(fn),Vn=this.__zoom,wr=Math.max(S[0],Math.min(S[1],Vn.k*Math.pow(2,i.apply(this,arguments)))),Pr=pointer(fn);if(On.wheel)(On.mouse[0][0]!==Pr[0]||On.mouse[0][1]!==Pr[1])&&(On.mouse[1]=Vn.invert(On.mouse[0]=Pr)),clearTimeout(On.wheel);else{if(Vn.k===wr)return;On.mouse=[Pr,Vn.invert(Pr)],interrupt(this),On.start()}noevent(fn),On.wheel=setTimeout(_r,re),On.zoom("mouse",n(_e(pe(Vn,wr),On.mouse[0],On.mouse[1]),On.extent,F));function _r(){On.wheel=null,On.end()}}function tn(fn,...jn){if(Ht||!t.apply(this,arguments))return;var On=fn.currentTarget,Vn=De(this,jn,!0).event(fn),wr=select(fn.view).on("mousemove.zoom",Hr,!0).on("mouseup.zoom",Li,!0),Pr=pointer(fn,On),_r=fn.clientX,Ur=fn.clientY;dragDisable(fn.view),nopropagation(fn),Vn.mouse=[Pr,this.__zoom.invert(Pr)],interrupt(this),Vn.start();function Hr(ai){if(noevent(ai),!Vn.moved){var Ei=ai.clientX-_r,Zi=ai.clientY-Ur;Vn.moved=Ei*Ei+Zi*Zi>ue}Vn.event(ai).zoom("mouse",n(_e(Vn.that.__zoom,Vn.mouse[0]=pointer(ai,On),Vn.mouse[1]),Vn.extent,F))}function Li(ai){wr.on("mousemove.zoom mouseup.zoom",null),dragEnable(ai.view,Vn.moved),noevent(ai),Vn.event(ai).end()}}function gn(fn,...jn){if(t.apply(this,arguments)){var On=this.__zoom,Vn=pointer(fn.changedTouches?fn.changedTouches[0]:fn,this),wr=On.invert(Vn),Pr=On.k*(fn.shiftKey?.5:2),_r=n(_e(pe(On,Pr),Vn,wr),e.apply(this,jn),F);noevent(fn),nt>0?select(this).transition().duration(nt).call(qe,_r,Vn,fn):select(this).call(de.transform,_r,Vn,fn)}}function Cn(fn,...jn){if(t.apply(this,arguments)){var On=fn.touches,Vn=On.length,wr=De(this,jn,fn.changedTouches.length===Vn).event(fn),Pr,_r,Ur,Hr;for(nopropagation(fn),_r=0;_r<Vn;++_r)Ur=On[_r],Hr=pointer(Ur,this),Hr=[Hr,this.__zoom.invert(Hr),Ur.identifier],wr.touch0?!wr.touch1&&wr.touch0[2]!==Hr[2]&&(wr.touch1=Hr,wr.taps=0):(wr.touch0=Hr,Pr=!0,wr.taps=1+!!_t);_t&&(_t=clearTimeout(_t)),Pr&&(wr.taps<2&&(zt=Hr[0],_t=setTimeout(function(){_t=null},Yt)),interrupt(this),wr.start())}}function kn(fn,...jn){if(this.__zooming){var On=De(this,jn).event(fn),Vn=fn.changedTouches,wr=Vn.length,Pr,_r,Ur,Hr;for(noevent(fn),Pr=0;Pr<wr;++Pr)_r=Vn[Pr],Ur=pointer(_r,this),On.touch0&&On.touch0[2]===_r.identifier?On.touch0[0]=Ur:On.touch1&&On.touch1[2]===_r.identifier&&(On.touch1[0]=Ur);if(_r=On.that.__zoom,On.touch1){var Li=On.touch0[0],ai=On.touch0[1],Ei=On.touch1[0],Zi=On.touch1[1],$r=($r=Ei[0]-Li[0])*$r+($r=Ei[1]-Li[1])*$r,Fi=(Fi=Zi[0]-ai[0])*Fi+(Fi=Zi[1]-ai[1])*Fi;_r=pe(_r,Math.sqrt($r/Fi)),Ur=[(Li[0]+Ei[0])/2,(Li[1]+Ei[1])/2],Hr=[(ai[0]+Zi[0])/2,(ai[1]+Zi[1])/2]}else if(On.touch0)Ur=On.touch0[0],Hr=On.touch0[1];else return;On.zoom("touch",n(_e(_r,Ur,Hr),On.extent,F))}}function Zn(fn,...jn){if(this.__zooming){var On=De(this,jn).event(fn),Vn=fn.changedTouches,wr=Vn.length,Pr,_r;for(nopropagation(fn),Ht&&clearTimeout(Ht),Ht=setTimeout(function(){Ht=null},Yt),Pr=0;Pr<wr;++Pr)_r=Vn[Pr],On.touch0&&On.touch0[2]===_r.identifier?delete On.touch0:On.touch1&&On.touch1[2]===_r.identifier&&delete On.touch1;if(On.touch1&&!On.touch0&&(On.touch0=On.touch1,delete On.touch1),On.touch0)On.touch0[1]=this.__zoom.invert(On.touch0[0]);else if(On.end(),On.taps===2&&(_r=pointer(_r,this),Math.hypot(zt[0]-_r[0],zt[1]-_r[1])<oe)){var Ur=select(this).on("dblclick.zoom");Ur&&Ur.apply(this,arguments)}}}return de.wheelDelta=function(fn){return arguments.length?(i=typeof fn=="function"?fn:constant(+fn),de):i},de.filter=function(fn){return arguments.length?(t=typeof fn=="function"?fn:constant(!!fn),de):t},de.touchable=function(fn){return arguments.length?(c=typeof fn=="function"?fn:constant(!!fn),de):c},de.extent=function(fn){return arguments.length?(e=typeof fn=="function"?fn:constant([[+fn[0][0],+fn[0][1]],[+fn[1][0],+fn[1][1]]]),de):e},de.scaleExtent=function(fn){return arguments.length?(S[0]=+fn[0],S[1]=+fn[1],de):[S[0],S[1]]},de.translateExtent=function(fn){return arguments.length?(F[0][0]=+fn[0][0],F[1][0]=+fn[1][0],F[0][1]=+fn[0][1],F[1][1]=+fn[1][1],de):[[F[0][0],F[0][1]],[F[1][0],F[1][1]]]},de.constrain=function(fn){return arguments.length?(n=fn,de):n},de.duration=function(fn){return arguments.length?(nt=+fn,de):nt},de.interpolate=function(fn){return arguments.length?(ut=fn,de):ut},de.on=function(){var fn=yt.on.apply(yt,arguments);return fn===yt?de:fn},de.clickDistance=function(fn){return arguments.length?(ue=(fn=+fn)*fn,de):Math.sqrt(ue)},de.tapDistance=function(fn){return arguments.length?(oe=+fn,de):oe},de}var fV=Fn(9685),w5=Fn(3861),dk=Fn(7810);const b2=({helperText:t,id:e,colorScheme:n,data:i,title:c,total:S})=>{const F=Si(),{data:nt}=da(),ut=sr(jc),yt=sr(eu),_t=sr(yP),zt=sr(xg),Ht=sr(Eh),Yt=ut===ep?"Product":yt;return(0,W.useEffect)(()=>{const re="#row-chart-"+e,ue=jn=>jn.toLocaleString()+" complaints",oe=(jn,On,Vn)=>{jn.each(function(){const wr=zl(this),Pr=Vn?wr.attr("x"):0;if(wr.node().children&&wr.node().children.length>0)return;const _r=wr.text().split(/\s+/).reverse(),Ur=1.1,Hr=wr.attr("y")||0,Li=parseFloat(wr.attr("dy")||0);let ai,Ei=[],Zi=0,$r=0,Fi=wr.text(null).append("tspan").attr("x",Pr).attr("y",Hr).attr("dy",Li+"em");for(;ai=_r.pop();)Ei.push(ai),Fi.text(Ei.join(" ")),Fi.node().getComputedTextLength()>On&&(Ei.pop(),Fi.text(Ei.join(" ")),Ei=[ai],Fi=wr.append("tspan").attr("x",Pr).attr("y",Hr).attr("dy",++Zi*Ur+Li+"em").text(ai),$r++);if($r){const qo=zl(wr.node().parentNode).select(".view-more-background"),Ea=qo.attr("height"),zo=parseFloat(Ea)+$r*12;qo.attr("height",zo)}})},de=jn=>{Ps("Bar chart collapsed",jn),F(KS(jn))},pe=jn=>{Ps("Bar chart expanded",jn),F(ZS(jn))},_e=jn=>{const On=jn.target.__data__,wr=is(nt,(Yt==="Overview"?"Product":Yt).toLowerCase(),[]);d1();let Pr=[];if(Yt==="Company")Pr.push(On.parent);else{const _r=wr.find(Hr=>Hr.key===On.parent),Ur="sub_"+Yt.toLowerCase()+".raw";Pr=_r?aS(On.parent,_r[Ur].buckets):[]}Ps("Trends click",On.parent),F(DT(On.parent,Yt,[...Pr]))},ge=jn=>{const On=jn.target.__data__;i.filter(wr=>wr.isParent).map(wr=>wr.name).includes(On)&&(_t.includes(On)?de(On):pe(On))};if(!i)return;const qe=i.filter(jn=>jn.name&&zt?jn.name.indexOf("Visualize trends for")===-1:!0);if(!qe||!qe.length||!S)return;const De=(0,w5.miniTooltip)();De.valueFormatter(ue);const $e=S/(0,fV.T9)(qe,jn=>jn.value),Ye=zl(re),tn=zt?750:Ye.node().getBoundingClientRect().width+30,gn=qe.length===1?100:qe.length*60,Cn=(0,w5.row)(),kn=tn/4,Zn=tn<600?40:-65;return Cn.margin({left:kn,right:Zn,top:20,bottom:10}).colorSchema(n).backgroundColor("#f7f8f9").paddingBetweenGroups(25).enableLabels(!0).labelsTotalCount(S.toLocaleString()).labelsNumberFormat(",d").outerPadding(.1).percentageAxisToMaxRatio($e).yAxisLineWrapLimit(2).yAxisPaddingBetweenChart(20).width(tn).wrapLabels(!0).height(gn).on("customMouseOver",De.show).on("customMouseMove",De.update).on("customMouseOut",De.hide),Ye.datum(qe).call(Cn),gN(re+" .row-chart .metadata-group").datum([]).call(De),oe(zl(re).selectAll(".tick text"),kn),oe(zl(re).selectAll(".view-more-label"),Ht/2,!0),Ye.selectAll(".y-axis-group .tick").on("click",ge),Ye.selectAll(".view-more-label").on("click",_e),()=>{gN(re+" .row-chart").remove()}},[F,nt,n,i,_t,e,zt,Yt,S,Ht]),i&&S?dk.createElement("div",{className:"row-chart-section"},dk.createElement("h3",null,c),dk.createElement("p",null,t),dk.createElement("div",{id:"row-chart-"+e,"data-testid":"row-chart-"+e})):null};b2.propTypes={helperText:Rn().string,id:Rn().string.isRequired,colorScheme:Rn().oneOfType([Rn().array,Rn().bool]).isRequired,data:Rn().array.isRequired,title:Rn().string.isRequired,total:Rn().number};const X$={};var dV=Fn(1248),pV=Fn.n(dV),mV=Fn(4563),_5=Fn.n(mV);const gV={AL:"M550,-337L633,-337,633,-253,550,-253,550,-337",AK:"M92,-245L175,-245,175,-162,92,-162,92,-245",AZ:"M92,-428L175,-428,175,-345,92,-345,92,-428",AR:"M367,-428L450,-428,450,-345,367,-345,367,-428",CA:"M0,-520L83,-520,83,-437,0,-437,0,-520",CO:"M183,-520L267,-520,267,-437,183,-437,183,-520",CT:"M825,-612L908,-612,908,-528,825,-528,825,-612",DE:"M825,-520L908,-520,908,-437,825,-437,825,-520",DC:"M733,-428L817,-428,817,-345,733,-345,733,-428",FL:"M733,-245L817,-245,817,-162,733,-162,733,-245",GA:"M642,-337L725,-337,725,-253,642,-253,642,-337",HI:"M0,-245L83,-245,83,-162,0,-162,0,-245",ID:"M92,-703L175,-703,175,-620,92,-620,92,-703",IL:"M458,-703L542,-703,542,-620,458,-620,458,-703",IN:"M458,-612L542,-612,542,-528,458,-528,458,-612",IA:"M367,-612L450,-612,450,-528,367,-528,367,-612",KS:"M275,-428L358,-428,358,-345,275,-345,275,-428",KY:"M458,-520L542,-520,542,-437,458,-437,458,-520",LA:"M367,-337L450,-337,450,-253,367,-253,367,-337",ME:"M917,-887L1000,-887,1000,-803,917,-803,917,-887",MD:"M733,-520L817,-520,817,-437,733,-437,733,-520",MA:"M825,-703L908,-703,908,-620,825,-620,825,-703",MI:"M550,-703L633,-703,633,-620,550,-620,550,-703",MN:"M367,-703L450,-703,450,-620,367,-620,367,-703",MS:"M458,-337L542,-337,542,-253,458,-253,458,-337",MO:"M367,-520L450,-520,450,-437,367,-437,367,-520",MT:"M183,-703L267,-703,267,-620,183,-620,183,-703",NE:"M275,-520L358,-520,358,-437,275,-437,275,-520",NV:"M92,-612L175,-612,175,-528,92,-528,92,-612",NH:"M917,-795L1000,-795,1000,-712,917,-712,917,-795",NJ:"M733,-612L817,-612,817,-528,733,-528,733,-612",NM:"M183,-428L267,-428,267,-345,183,-345,183,-428",NY:"M733,-703L817,-703,817,-620,733,-620,733,-703",NC:"M550,-428L633,-428,633,-345,550,-345,550,-428",ND:"M275,-703L358,-703,358,-620,275,-620,275,-703",OH:"M550,-612L633,-612,633,-528,550,-528,550,-612",OK:"M275,-337L358,-337,358,-253,275,-253,275,-337",OR:"M0,-612L83,-612,83,-528,0,-528,0,-612",PA:"M642,-612L725,-612,725,-528,642,-528,642,-612",RI:"M917,-612L1000,-612,1000,-528,917,-528,917,-612",SC:"M642,-428L725,-428,725,-345,642,-345,642,-428",SD:"M275,-612L358,-612,358,-528,275,-528,275,-612",TN:"M458,-428L542,-428,542,-345,458,-345,458,-428",TX:"M275,-245L358,-245,358,-162,275,-162,275,-245",UT:"M92,-520L175,-520,175,-437,92,-437,92,-520",VT:"M825,-795L908,-795,908,-712,825,-712,825,-795",VA:"M642,-520L725,-520,725,-437,642,-437,642,-520",WA:"M0,-703L83,-703,83,-620,0,-620,0,-703",WV:"M550,-520L633,-520,633,-437,550,-437,550,-520",WI:"M458,-795L542,-795,542,-712,458,-712,458,-795",WY:"M183,-612L267,-612,267,-528,183,-528,183,-612"};var yV=Object.defineProperty,vV=Object.defineProperties,bV=Object.getOwnPropertyDescriptors,UD=Object.getOwnPropertySymbols,xV=Object.prototype.hasOwnProperty,wV=Object.prototype.propertyIsEnumerable,HD=(t,e,n)=>e in t?yV(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,_V=(t,e)=>{for(var n in e||(e={}))xV.call(e,n)&&HD(t,n,e[n]);if(UD)for(var n of UD(e))wV.call(e,n)&&HD(t,n,e[n]);return t},SV=(t,e)=>vV(t,bV(e));const EV=1e4,CV=1e5,MV=1e6,x2="#ffffff";function kV(t,e){const n=t.map(S=>S.displayValue),i=new Set(n);let c=eN().range([x2,...e]);return i.size<e.length?c=c.domain([...i]):c=c.domain(n),c}function TV(t){return t<1e3?t.toLocaleString():t<EV?(Math.floor(t/100)/10).toFixed(1)+"K":t<MV?Math.floor(t/1e3)+"K":(Math.floor(t/CV)/10).toFixed(1)+"M"}function AV(t,e){const n=t.map(F=>Math.round(F)),i=t.map(F=>Math.ceil(F)),c=Array.from(new Set(n)).filter(F=>F>0),S=[{from:0,color:x2,name:"\u2265 0",shortName:"\u2265 0"}];return c.forEach(F=>{const nt=n.indexOf(F),ut=i[nt]===F?"\u2265":">",yt=F.toLocaleString(),_t=TV(F);S.push({from:F,color:e(i[nt]),name:`${ut} ${yt}`,shortName:`${ut} ${_t}`})}),S}function PV(t,e){const n=F=>Math.floor(F*100)/100,i=t.map(F=>n(F)),c=Array.from(new Set(i)).filter(F=>F>0),S=[{from:0,color:x2,name:"\u2265 0",shortName:"\u2265 0"}];return c.forEach(F=>{const nt=i.indexOf(F),ut=i[nt]===t[nt]?"\u2265":">",yt=F.toFixed(2),_t=`${ut} ${yt}`;S.push({from:F,color:e(t[nt]),name:_t,shortName:_t})}),S}function OV(t,e){t=t.filter(function(i){return!!i.name});const n=t.filter(i=>i.className==="selected").length;return t=t.map(function(i){const c=gV[i.name];let S=NV(i.displayValue,e);return n&&i.className==="deselected"&&(S=S.replace("1)","0.5)")),i.className!=="selected"&&S===x2&&(i.className="empty"),SV(_V({},i),{color:S,path:c})}),t}function NV(t,e){return t?e(t):x2}function DV(t){return`${t.fullName} ${t.displayValue}`}function RV(){const t=".tile-"+this.name;zl(t).classed("hover",!1)}function LV(){const t=".tile-"+this.name;zl(t).classed("hover",!0)}function IV(){const t=this.point.displayValue.toLocaleString();return'<div class="highcharts-data-label-state tile-'+this.point.name+" "+this.point.className+' "><span class="abbr">'+this.point.name+'</span><span class="value">'+t+"</span></div>"}function jV(){const t=this.product?'<div class="row u-clearfix"><p class="u-float-left">Product with highest complaint volume</p><p class="u-right">'+this.product+"</p></div>":"",e=this.issue?'<div class="row u-clearfix"><p class="u-float-left">Issue with highest complaint volume</p><p class="u-right">'+this.issue+"</p></div>":"",n=this.value.toLocaleString(),i=this.perCapita?'<div class="row u-clearfix"><p class="u-float-left">Per 1000 population</p><p class="u-right">'+this.perCapita+"</p></div>":"";return'<div class="title">'+this.fullName+'</div><div class="row u-clearfix"><p class="u-float-left">Complaints</p><p class="u-right">'+n+"</p></div>"+i+t+e}function BV(t){const e=t.options.bins;let n=65;const i=17;let c=5;const S=t.chartWidth<600;S&&(n=45,c=1);const F=t.renderer.g("legend-container").add(),nt=t.renderer.g("legend-title").translate(c,0).add(F);t.renderer.label("Key",0,0,null,null,null,!0,!1,"legend-key").add(nt);const ut=e.length*(n+c);t.renderer.path(["M",0,0,"L",ut,0]).attr({class:"separator","stroke-width":1,stroke:"gray"}).translate(0,25).add(nt);const yt='Map shading: <span class="type">'+t.options.legend.legendTitle+"</span>";t.renderer.label(yt,0,28,null,null,null,!0,!1,"legend-description").add(nt);const _t=t.renderer.g("legend__tile-map").translate(7,50).add(F);for(let zt=0;zt<e.length;zt++){const Ht=t.renderer.g(`g${zt}`).translate(zt*(n+c),0).add(_t),Yt=e[zt];t.renderer.rect(0,0,n,i).attr({fill:Yt.color}).addClass("legend-box").add(Ht),t.renderer.text(S?Yt.shortName:Yt.name,0,i).addClass("legend-text").translate(3,-3).add(Ht)}}pV()(_5()),_5().setOptions({lang:{thousandsSep:","}});const FV=["rgba(212, 231, 230, 1)","rgba(180, 210, 209, 1)","rgba(158, 196, 195, 1)","rgba(137, 182, 181, 1)","rgba(112, 166, 165, 1)","rgba(87, 150, 149, 1)"];class zV{constructor({el:e,data:n,isPerCapita:i,events:c,height:S,hasTip:F,width:nt}){const ut=kV(n,FV),yt=ut.quantiles();let _t,zt;i?(_t=PV(yt,ut),zt="Complaints per 1,000"):(_t=AV(yt,ut),zt="Complaints"),n=OV(n,ut);const Ht={accessibility:{description:"",screenReaderSection:{afterChartFormat:"",beforeChartFormat:""}},bins:_t,chart:{styledMode:!0,height:S,width:nt},colorAxis:{dataClasses:_t,dataClassColor:"category"},title:!1,credits:!1,legend:{enabled:!1,legendTitle:zt},tooltip:{className:"tooltip",enabled:F,headerFormat:"",pointFormatter:jV,useHTML:!0},plotOptions:{series:{dataLabels:{enabled:!0,formatter:IV,useHTML:!0},states:{hover:{enabled:F}}}},series:[{type:"map",clip:!1,data:n,accessibility:{description:zt+" in the United States",exposeAsGroupOnly:!1,keyboardNavigation:{enabled:!0},descriptionFormatter:DV}}]};c&&F&&(Ht.plotOptions.series.events=c,Ht.plotOptions.series.point={events:{mouseOver:LV,mouseOut:RV}});const Yt=[{width:700,legendHeight:20},{width:580,legendHeight:25},{width:500,legendHeight:35},{width:400,legendHeight:60},{width:370,legendHeight:70}];let re=10;Yt.forEach(ue=>{nt<ue.width&&(re=ue.legendHeight)}),Ht.chart.marginRight=0,Ht.chart.marginLeft=0,Ht.chart.marginTop=re,Ht.chart.height+=re,this.draw(e,Ht)}draw(e,n){_5().mapChart(e,n,BV)}}const UV=zV,S5=()=>{const t=sr(tu),e=sr(vp),n=sr(jc),i=sr(ly),c=jr(t,e);return HT(c,{skip:n!==ep||i===""})};var VD=Fn(7810),HV=Object.defineProperty,VV=Object.defineProperties,WV=Object.getOwnPropertyDescriptors,WD=Object.getOwnPropertySymbols,YV=Object.prototype.hasOwnProperty,qV=Object.prototype.propertyIsEnumerable,YD=(t,e,n)=>e in t?HV(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$V=(t,e)=>{for(var n in e||(e={}))YV.call(e,n)&&YD(t,n,e[n]);if(WD)for(var n of WD(e))qV.call(e,n)&&YD(t,n,e[n]);return t},XV=(t,e)=>VV(t,WV(e));const GV=()=>{const t=Si(),e=sr(Hw),n=sr(Vw),i=sr(xg),c=sr(Eh),{data:S}=S5(),F=S==null?void 0:S.results.state,nt=(0,W.useMemo)(()=>F?F.map(zt=>{const Ht=structuredClone(zt),Yt=is(t1,zt.name,{name:"",population:1});return Ht.abbr=Ht.name,Ht.fullName=Yt.name,Ht.perCapita=ZV(Ht,Yt),Ht}):null,[F]),ut=!i,yt=(0,W.useCallback)(zt=>{const{abbr:Ht,fullName:Yt}=zt.point,re={abbr:Ht,name:Yt};n&&n.includes(Ht)?(Ps("State Event: remove",re.abbr),t(Rf(re))):(Ps("State Event: add",re.abbr),t(H1(re)))},[n,t]),_t=(0,W.useCallback)(()=>{const zt=document.getElementById("tile-chart-map"),Ht=i?650:zt.clientWidth||c;if(!nt)return;const Yt=KV(nt,e,n),re={el:zt,data:Yt,isPerCapita:e!==Cc,events:{click:yt},hasTip:ut,width:Ht};re.height=Ht*.75;const ue=new UV(re)},[nt,e,ut,i,n,c,yt]);return(0,W.useEffect)(()=>(_t(),function(){const Ht=document.getElementById("tile-chart-map");if(Ht)for(;Ht.firstChild;)Ht.firstChild.remove()}),[_t]),VD.createElement("div",null,VD.createElement("div",{id:"tile-chart-map",className:`cfpb-chart ${i?"print":""}`,"data-chart-type":"tile_map","data-testid":"tile-chart-map"}))};function KV(t,e,n){const i=e===Cc;return t.map(S=>XV($V({},S),{displayValue:i?S.value:S.perCapita,className:QV(n,S.name)}))}function ZV(t,e){const n=e.population;return(t.value/n*1e3).toFixed(2)}const QV=(t,e)=>!t||t.length===0?"":t.includes(e)?"selected":"deselected";var mu=Fn(7810);const JV="\u201CComplaints per 1,000 population\u201D is not available with your filter selections.",tW="Product the consumer identified in the complaint. Click on a product to expand sub-products",eW=()=>{const t=Si(),{data:e}=da(),{data:n,isLoading:i,isFetching:c,error:S}=S5(),F=(e==null?void 0:e.total)||0,nt=sr(pE),ut=sr(mE),yt=sr(bp),_t=sr(xp),zt=sr(yP),Yt=sr(Eh)<750,re=!nt&&ut,ue=(0,W.useMemo)(()=>Of(n==null?void 0:n.results.product,!1,"Product",zt),[n,zt]),oe=`Product by highest complaint volume ${Kl(_t)} to ${Kl(yt)}`,de=()=>{t(U1())};return mu.createElement("section",{className:"map-panel"},mu.createElement(SP,null),mu.createElement(kP,null),!!S&&mu.createElement(QO,{text:"There was a problem executing your search"}),!!re&&mu.createElement(_P,{text:JV,closeFn:de}),!!Yt&&mu.createElement(hM,null),mu.createElement(CP,null),mu.createElement("div",{className:"layout-row refine-bar"},mu.createElement(gM,null),mu.createElement(W7,null)),mu.createElement(GV,null),mu.createElement(V7,null),mu.createElement(b2,{id:"product",colorScheme:ue.colorScheme,data:ue.data,title:oe,helperText:tW,total:F}),mu.createElement(fp,{isLoading:i||c}))},G$={};var Rh=Fn(7810);const nW=()=>{const{data:t}=da(),e=sr(xp),n=sr(bp),i=h1(e)+" - "+h1(n),c=sr(gE),S=sr(xg),F=(t==null?void 0:t.doc_count)||0,nt=(t==null?void 0:t.total)||0,ut=(0,W.useMemo)(()=>F===nt?Rh.createElement("div",null,"Showing ",Rh.createElement("span",null,nt.toLocaleString())," complaints"):Rh.createElement("div",null,"Showing ",Rh.createElement("span",null,nt.toLocaleString())," out of",Rh.createElement("span",null," ",F.toLocaleString()," ")," total complaints"," "),[F,nt]);return S?Rh.createElement("section",{className:"print-info"},Rh.createElement("p",null,Rh.createElement("span",null,"Dates:")," ",i),!!c&&Rh.createElement("p",null,Rh.createElement("span",null,"Search Term:")," ",c),Rh.createElement("div",null,ut)):null};var E5=Fn(7810);const rW=()=>sr(xg)?E5.createElement("section",{className:"print-info-footer"},E5.createElement("p",null,E5.createElement("span",null,"URL:")," ",window.location.href)):null,K$={},Z$={};var w2=Fn(7810);const iW=()=>{const t=Si(),e=sr(Yw),n=i=>{Ps("Button","Trends:"+i),t(TT(i))};return w2.createElement("section",{className:"chart-toggles"},w2.createElement("p",null,"Chart type"),w2.createElement("div",{className:"m-btn-group"},w2.createElement("button",{"aria-label":"Toggle line chart",className:"a-btn"+$m("line",e),disabled:e==="line",onClick:()=>{n("line")}},Wi("line-chart")),w2.createElement("button",{"aria-label":"Toggle area chart",className:"a-btn"+$m("area",e),disabled:e==="area",onClick:()=>{n("area")}},Wi("area-chart"))))},Q$={},J$={},Cg=()=>{const t=sr(tu),e=sr(vp),n=sr(j3),i=sr(jc),c=sr(ly),S=$s(t,e,n);return x1(S,{skip:i!==Rl||c===""})};var pk=Fn(7810);const qD={Company:{tab1:{displayName:"Products",filterName:"product"}},Product:{tab1:{displayName:"Sub-products",filterName:"sub_product"},tab2:{displayName:"Issues",filterName:"issue"}}},oW=(t,e,n)=>{if(e){if(n&&n.length)return!0}else return!0;return!1},$D=()=>{const t=Si(),e=sr(xh),n=sr(eu),i=sr(qw),{data:c}=Cg(),S=c==null?void 0:c.results["sub-product"];if(n==="Overview")return null;const F=oW(n,e,S),nt=(_t,zt)=>{const Ht={sub_product:"Sub-products",issue:"Issues",product:"Products"};Ps("Button",_t+":"+Ht[zt]),t(PT(zt.toLowerCase()))},ut=_t=>{_t=_t.toLowerCase();const zt=["tab",_t],Ht=new RegExp(i.toLowerCase(),"g");return _t.replace("-","_").match(Ht)&&zt.push("active"),zt.join(" ")},yt=qD[n];return pk.createElement("div",{className:"tabbed-navigation lens"},pk.createElement("section",null,!!F&&pk.createElement("button",{className:ut(yt.tab1.filterName),onClick:()=>{nt(n,yt.tab1.filterName)}},yt.tab1.displayName),!!qD[n].tab2&&pk.createElement("button",{className:ut(yt.tab2.filterName),onClick:()=>{nt(n,yt.tab2.filterName)}},yt.tab2.displayName)))};var Mg=Fn(7810);const aW=()=>{const t=sr(xh),e=sr(eu),{data:n}=Cg(),i=(n==null?void 0:n.total)||0,c=Si();return t?Mg.createElement("div",{className:"focus-header"},Mg.createElement("button",{className:"a-btn a-btn--link clear-focus",id:"clear-focus",onClick:()=>{c(RT(e))}},Wi("left"),"View "+e.toLowerCase()+" trends"),Mg.createElement("div",null,Mg.createElement("section",{className:"focus"},Mg.createElement("h1",null,t),Mg.createElement("span",{className:"divider"}),Mg.createElement("h2",null,i.toLocaleString()+" Complaints"))),Mg.createElement($D,{showTitle:!1,key:"lens-tab"})):null},tX={};var sW=Fn(5382),lW=Fn.n(sW),uW=Fn(7417),cW=Fn.n(uW);const eX={};var _2=Fn(7810);const C5=({domId:t,hasKey:e})=>_2.createElement("section",{className:`${e?"ext-tooltip":""}`},_2.createElement("div",{className:"chart-wrapper"},_2.createElement("p",{className:"y-axis-label"},"Complaints"),_2.createElement("div",{id:t}),_2.createElement("p",{className:"x-axis-label"},"Date received by the CFPB")));C5.propTypes={domId:Rn().string.isRequired,hasKey:Rn().bool.isRequired};var M5=Fn(7810);const hW=()=>{var t;const e=Si(),{data:n}=Cg(),i=n==null?void 0:n.colorMap,c=(t=n==null?void 0:n.results)==null?void 0:t.dateRangeLine,S=sr(eu),F=sr($1),nt=sr(xp),ut=sr(bp),yt=sr(xg),_t=sr(Eh),zt=S!=="Overview",Ht=(0,W.useMemo)(()=>{const re={from:nt,to:ut};return c?bT(c,re,F):[]},[c,nt,ut,F]),Yt=mS(Ht);return(0,W.useEffect)(()=>{const re={from:nt,to:ut},ue="#line-chart",oe=`${ue} .line-chart`,de=zl(ue);if(!de.node()||mS(Ht))return;const pe=cW()().shouldShowDateInTitle(!1).topicLabel("topics").title("Complaints"),_e=()=>yt?S==="Overview"?750:500:de.node().getBoundingClientRect().width,ge=kn=>{e(y1(kn))},qe=(kn,Zn,fn)=>{pe.title(dS(kn.date,F,re,!1)),pe.update(kn,Zn,fn)},De=kn=>{e(y1({date:new Date(kn.date).toJSON(),dateRange:re,interval:F,values:kn.topics}))};zl(oe).remove();const $e=lW()(),Ye=_e(ue),tn=Ht.dataByTopic.map(kn=>i[kn.topic]);$e.margin({left:60,right:10,top:10,bottom:40}).initializeVerticalMarker(!0).isAnimated(!0).tooltipThreshold(1).grid("horizontal").aspectRatio(.5).width(Ye).dateLabel("date").colorSchema(tn),S==="Overview"?$e.on("customMouseOver",pe.show).on("customMouseMove",qe).on("customMouseOut",pe.hide):$e.on("customMouseMove",q0(De,200)),de.datum(Ht).call($e),zl(ue+" .metadata-group .vertical-marker-container").datum([]).call(pe);const Cn={dateRange:re,interval:F};if(S!=="Overview"){const kn=vT(Ht,Cn);ge(kn)}return()=>{zl(oe).remove(),de.datum([])}},[i,nt,ut,e,F,yt,S,Ht,_t]),Yt?M5.createElement(dM,{text:"Cannot display chart. Adjust your date range or date interval."}):M5.createElement("section",{className:"chart"},M5.createElement(C5,{hasKey:zt,domId:"line-chart"}))},nX={};var k5=Fn(7810),fW=Object.defineProperty,dW=Object.defineProperties,pW=Object.getOwnPropertyDescriptors,XD=Object.getOwnPropertySymbols,mW=Object.prototype.hasOwnProperty,gW=Object.prototype.propertyIsEnumerable,GD=(t,e,n)=>e in t?fW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,KD=(t,e)=>{for(var n in e||(e={}))mW.call(e,n)&&GD(t,n,e[n]);if(XD)for(var n of XD(e))gW.call(e,n)&&GD(t,n,e[n]);return t},ZD=(t,e)=>dW(t,pW(e));const yW=()=>{var t;const e=Si(),{data:n}=Cg(),i=n==null?void 0:n.colorMap,c=(t=n==null?void 0:n.results)==null?void 0:t.dateRangeArea,S=sr(xp),F=sr(bp),nt=sr(eu),ut=sr($1),yt=sr(xg),_t=sr(Eh),zt=nt!=="Overview",Ht=(0,W.useMemo)(()=>{const re={from:S,to:F};return c?xT(c,re,ut):[]},[c,S,F,ut]),Yt=tw(Ht);return(0,W.useEffect)(()=>{const re={from:S,to:F},ue="#stacked-area-chart",oe=ue+" .stacked-area",de=zl(ue);if(!de.node()||Yt)return;const pe=tn=>{tn.values=tn.values.map(gn=>typeof gn.date!="string"?ZD(KD({},gn),{date:new Date(gn.date).toJSON()}):gn),typeof tn.date!="string"&&(tn.date=new Date(tn.date).toJSON()),e(y1(tn))},_e=tn=>{typeof tn.date!="string"&&(tn.date=new Date(tn.date).toJSON()),tn.values=tn.values.map(gn=>typeof gn.date!="string"?ZD(KD({},gn),{date:new Date(gn.date).toJSON()}):gn),e(y1({date:tn.date,dateRange:re,interval:ut,values:tn.values}))};zl(oe).remove();const ge=yt?550:de.node().getBoundingClientRect().width,qe=Ht.filter(tn=>tn.name!=="Other"),De=[...new Set(qe.map(tn=>tn.name))].map(tn=>i[tn]);De.push(Pf.DataLens[10]);const $e=(0,w5.stackedArea)();return $e.margin({left:70,right:10,top:10,bottom:40}).areaCurve("linear").initializeVerticalMarker(!0).isAnimated(!1).tooltipThreshold(1).grid("horizontal").aspectRatio(.5).width(ge).dateLabel("date").colorSchema(De).on("customMouseMove",q0(_e,200)),de.datum(Ht).call($e),pe(G0(Ht,{dateRange:re,interval:ut})),()=>{zl(oe).remove(),de.datum([])}},[i,S,F,e,Ht,ut,yt,Yt,_t]),Yt?k5.createElement(dM,{text:"Cannot display chart. Adjust your date range or date interval."}):k5.createElement("section",{className:"chart"},k5.createElement(C5,{hasKey:zt,domId:"stacked-area-chart"}))};var mk=Fn(7810);const vW=({value:t})=>{const e=Si(),i=sr(xh)?"focus":"",c=sr(eu),S=sr(qw),F=c==="Company"&&!i,nt=[],ut=i?S:c,yt={Product:"products",product:"products",issue:"issues","Sub-Issue":"sub-issues",sub_product:"sub-products",Company:"companies"};return t.name==="Other"?(nt.push(mk.createElement("span",{className:"u-left",key:t.name},"All other ",yt[ut])),nt):i?(nt.push(mk.createElement("span",{className:"u-left",key:t.name},t.name)),nt):(nt.push(mk.createElement("span",{className:"u-left",id:Y0("focus-"+t.name),key:t.name},t.name)),F&&nt.push(mk.createElement("button",{"aria-label":"Remove "+t.name+" from comparison set",className:"u-right a-btn a-btn--link close",key:"close_"+t.name,onClick:()=>{e(Jm("company",t.name))}},Wi("delete"))),nt)},bW="CFPB updated product and issue options in April 2017 and August 2023.",xW="https://www.consumerfinance.gov/data-research/consumer-complaints/#past-changes",wW=()=>{const{data:t}=Cg(),e=t==null?void 0:t.colorMap,i=sr(xh)?"focus":"",c=sr(eu),S=sr(Yw),F=sr(yE),nt=c==="Company"&&!i,ut=S==="area",yt=p1(F,e);return yt&&yt.values?W.createElement("section",{className:"tooltip-container u-clearfix"},!!nt&&W.createElement(sM,{id:"external-tooltip"}),W.createElement("p",{className:"a-micro-copy"},W.createElement("span",{className:"heading"},yt.heading),W.createElement("span",{className:"date"},yt.date)),W.createElement("div",null,W.createElement("ul",{className:"tooltip-ul"},yt.values.map((_t,zt)=>W.createElement("li",{className:"color__"+_t.colorIndex,key:zt+"-id"},W.createElement(vW,{value:_t}),W.createElement("span",{className:"u-right"},_t.value.toLocaleString())))),!!ut&&W.createElement("ul",{className:"m-list--unstyled tooltip-ul total"},W.createElement("li",null,W.createElement("span",{className:"u-left"},"Total"),W.createElement("span",{className:"u-right"},yt.total.toLocaleString())))),W.createElement("p",{className:"a-micro-copy warn"},bW," ",W.createElement("a",{href:xW,target:"_blank",rel:"noopener noreferrer","aria-label":`Learn more about Product and
475
+ Issue changes (opens in new window)`},"Learn More"))):null},rX={};var Ib=Fn(7810);const QD=5,_W={Overview:"product",Product:"product",Company:"company"},SW=(t,e)=>e<=QD?!0:t>QD&&t!==e,EW=()=>{const t=Si(),{data:e}=da(),{data:n}=Cg(),i=sr(tu),c=sr(xh),S=sr(eu),F=n==null?void 0:n.results,nt=_W[S],ut=is(F,nt,[]).filter(Yt=>Yt.isParent).length;let yt=0;nt==="product"?yt=is(e,nt,[]).length:yt=Yx(is(i,nt,[]).length,0,10);const _t=i[nt]?i[nt].filter(Yt=>Yt.indexOf(Ws)===-1).length:yt,zt=yt-ut,Ht=CW(yt,_t);if(c||S==="Overview")return null;if(Ht)return SW(_t,ut)?Ib.createElement("div",{className:"trend-depth-toggle"},Ib.createElement("button",{className:"a-btn a-btn--link",id:"trend-depth-button",onClick:()=>{t(OT(zt+5))}},Ib.createElement("span",{className:"plus"}),"Show more")):Ib.createElement("div",{className:"trend-depth-toggle"},Ib.createElement("button",{className:"a-btn a-btn--link",id:"trend-depth-button",onClick:()=>{t(NT())}},Ib.createElement("span",{className:"minus"}),"Show less"))},CW=(t,e)=>e>0&&e<=5?!1:t>5||e>5;var eo=Fn(7810);const MW="\u201CDay\u201D interval is disabled when the date range is longer than one year",JD={sub_product:"Sub-products",sub_issue:"Sub-issues",issue:"Issues",product:"Products"},t6={product:"Product the consumer identified in the complaint. Click on a company name to expand products.",company:"Product the consumer identified in the complaint. Click on a company name to expand products.",sub_product:"Product and sub-product the consumer identified in the complaint. Click on a product to expand sub-products.",issue:"Product and issue the consumer identified in the complaint. Click on a product to expand issues.",overview:"Product the consumer identified in the complaint. Click on a product to expand sub-products"},e6={sub_product:"Sub-products the consumer identified in the complaint",product:"Product the consumer identified in the complaint",issue:"Issues the consumer identified in the complaint"},kW=()=>{const t=Si(),{data:e,isLoading:n,isFetching:i}=Cg(),c=sr(dE),S=sr($1),F=sr(xp),nt=sr(bp),ut=sr(I3),yt=sr(Yw),_t=sr(xh),zt=sr(eu),Ht=sr(qw),Yt=sr(yP),re=sr(Eh),ue=zt.toLowerCase(),oe=Ht.replace("_","-"),de=Ht===""?t6[ue]:t6[Ht],pe=Ht===""?e6[ue]:e6[Ht],_e=(e==null?void 0:e.results)||{},ge=e==null?void 0:e.colorMap,qe=e==null?void 0:e.total,De=kc(zt,c,n||i),$e=Of(_e[oe],ge,zt,Yt),Ye=lS(F,nt),tn=Of(_e.product,!1,zt,Yt),gn=Of(_e[ue],ge,zt,Yt),Cn=Kl(F),kn=Kl(nt),Zn=zt==="Overview",fn=re<750,jn=JD[Ht]+", by "+zt.toLowerCase()+" from",On=()=>{t(E3())},Vn=Ur=>{const{value:Hr}=Ur.target;Ps("Dropdown","Trends:"+Hr),t(Qa(Hr))},wr=Ur=>{const{value:Hr}=Ur.target;Ps("Dropdown","Trends:"+Hr),t(AT(Hr))},Pr=()=>Zn?"Complaints by date received by the CFPB":_t?"Complaints by "+JD[Ht].toLowerCase()+", by date received by the CFPB":"Complaints by date received by the CFPB",_r=()=>De?null:Zn?eo.createElement(b2,{id:"product",colorScheme:tn.colorScheme,data:tn.data,title:"Product by highest complaint volume "+Cn+" to "+kn,helperText:de,total:qe}):_t?eo.createElement(b2,{id:zt,colorScheme:$e.colorScheme,data:$e.data,title:jn+" "+Cn+" to "+kn,helperText:pe,total:qe}):[eo.createElement($D,{key:"lens-tab",showTitle:!0}),eo.createElement(b2,{id:zt,colorScheme:gn.colorScheme,data:gn.data,title:jn+" "+Cn+" to "+kn,helperText:de,total:qe,key:zt+"row"})];return eo.createElement("section",{className:"trends-panel"+(Zn?"":" external-tooltip")},eo.createElement(SP,null),eo.createElement(kP,null),ut?eo.createElement(_P,{text:MW,closeFn:On}):null,fn?eo.createElement(hM,null):null,eo.createElement(CP,null),eo.createElement("div",{className:"layout-row refine-bar"},eo.createElement(t4,{label:"Aggregate complaints by",title:"Aggregate by",values:Qv,id:"lens",value:zt,handleChange:wr}),eo.createElement(gM,null),eo.createElement(t4,{label:"Choose the Date interval",title:"Date interval",values:Ye,id:"interval",value:S,handleChange:Vn}),Zn?null:[eo.createElement(gM,{key:"separator"}),eo.createElement(iW,{key:"chart-toggles"})]),De?eo.createElement("div",{className:"layout-row company-overlay"},eo.createElement("section",{className:"company-search"},eo.createElement("p",null,"Choose a company to start your visualization using the type-ahead menu below. You can add more than one company to your view"),eo.createElement(sM,{id:"modal-search"}))):null,_t?eo.createElement(aW,null):null,!De&&Zn&&qe>0?eo.createElement("div",{className:"layout-row"},eo.createElement("section",{className:"chart-description"},eo.createElement("h2",{className:"area-chart-title"},Pr()),eo.createElement("p",{className:"chart-helper-text"},"A time series graph of complaints for the selected date range. Hover on the chart to see the count for each date interval. Your filter selections will update what you see on the graph."))):null,!De&&!Zn&&qe>0?eo.createElement("div",{className:"layout-row"},eo.createElement("section",{className:"chart-description"},eo.createElement("h2",{className:"area-chart-title"},Pr()),eo.createElement("p",{className:"chart-helper-text"},"A time series graph of the (up to five) highest volume complaints for the selected date range. However, you can view all of your selections in the bar chart, below. Hover on the chart to see the count for each date interval. Your filter selections will update what you see on the graph."))):null,!De&&qe>0?eo.createElement(eo.Fragment,null,eo.createElement("div",{className:"layout-row date-range-disclaimer"},eo.createElement("strong",null,"Note:\xA0 Data from incomplete time intervals are not shown")),eo.createElement("div",{className:"layout-row"},eo.createElement(eo.Fragment,null,yt==="line"&&eo.createElement(hW,null),yt==="area"&&eo.createElement(yW,null)),!Zn&&eo.createElement(wW,null))):null,qe>0&&_r(),eo.createElement(EW,null),eo.createElement(fp,{isLoading:n||i}))};var jb=Fn(7810);const TW=()=>{const t=sr(jc);let e;switch(t){case ep:e=jb.createElement(eW,null);break;case np:e=jb.createElement(H7,null);break;case Rl:default:e=jb.createElement(kW,null);break}return jb.createElement("div",{className:"content__main "+t.toLowerCase()},jb.createElement(nW,null),e,jb.createElement(rW,null))},iX={},oX={};var AW=Object.defineProperty,n6=Object.getOwnPropertySymbols,PW=Object.prototype.hasOwnProperty,OW=Object.prototype.propertyIsEnumerable,r6=(t,e,n)=>e in t?AW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,NW=(t,e)=>{for(var n in e||(e={}))PW.call(e,n)&&r6(t,n,e[n]);if(n6)for(var n of n6(e))OW.call(e,n)&&r6(t,n,e[n]);return t};const DW="https://files.consumerfinance.gov";function RW(t){return DW+"/ccdb/complaints."+t+".zip"}function LW(t,e,n){const i=NW({},n);return i.size=e,i.format=t,i.no_aggs=!0,delete i.from,delete i.searchAfter,ph+my(i)}var ro=Fn(7810),IW=Object.defineProperty,i6=Object.getOwnPropertySymbols,jW=Object.prototype.hasOwnProperty,BW=Object.prototype.propertyIsEnumerable,o6=(t,e,n)=>e in t?IW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,a6=(t,e)=>{for(var n in e||(e={}))jW.call(e,n)&&o6(t,n,e[n]);if(i6)for(var n of i6(e))BW.call(e,n)&&o6(t,n,e[n]);return t};const T5="csv",s6="json",l6="filtered",Bb="full",FW=()=>{const t=Si(),e=sr(vp),n=sr(tu),i=sr(jc),{data:c}=da(),S=(c==null?void 0:c.total)||0,F=(c==null?void 0:c.doc_count)||0,[nt,ut]=(0,W.useState)(Bb),[yt,_t]=(0,W.useState)(T5),[zt,Ht]=(0,W.useState)(!1);(0,W.useEffect)(()=>{S===F&&ut(Bb)},[S,F]);const Yt=(0,W.useMemo)(()=>{const oe=a6(a6({},n),e),de=nt===Bb?RW(yt):LW(yt,S,oe);return qx(de)},[nt,yt,S,n,e]),re=()=>{Ps(nt===Bb?"Export All Data":"Export Some Data",i+":"+yt),window.location.assign(Yt),t(vh(jx))},ue=oe=>{const de=document.getElementById("export-uri-input");de.select(),de.setSelectionRange(0,99999),navigator.clipboard.writeText(de.value),oe.target.focus(),Ht(!0)};return ro.createElement("section",{className:"export-modal"},ro.createElement("div",{className:"header layout-row"},ro.createElement("h3",{className:"flex-all"},"Export complaints"),ro.createElement("button",{className:"a-btn a-btn--link","data-gtm_ignore":"true",onClick:()=>{t(dp())}},"Close",Wi("delete-round"))),ro.createElement("div",{className:"body"},ro.createElement("div",{className:"body-copy instructions"},"To download a copy of this dataset, choose the file format and which complaints you want to export below."),ro.createElement("div",{className:"group"},ro.createElement("div",{className:"group-title"},"Select a format for the exported file"),ro.createElement("div",{className:"body-copy"},ro.createElement("div",{className:"m-form-field m-form-field--radio m-form-field--lg-target"},ro.createElement("input",{checked:yt===T5,className:"a-radio",id:"format_csv",onChange:()=>{Ht(!1),_t(T5)},type:"radio",value:"csv"}),ro.createElement("label",{className:"a-label",htmlFor:"format_csv"},"CSV")),ro.createElement("div",{className:"m-form-field m-form-field--radio m-form-field--lg-target"},ro.createElement("input",{checked:yt===s6,className:"a-radio",id:"format_json",onChange:()=>{Ht(!1),_t(s6)},type:"radio",value:"json"}),ro.createElement("label",{className:"a-label",htmlFor:"format_json"},"JSON")))),S===F?null:ro.createElement("div",{className:"group"},ro.createElement("div",{className:"group-title"},"Select which complaints you\u2019d like to export"),ro.createElement("div",{className:"body-copy"},ro.createElement("div",{className:"m-form-field m-form-field--radio m-form-field--lg-target"},ro.createElement("input",{checked:nt===l6,className:"a-radio",id:"dataset_filtered",onChange:()=>{Ht(!1),ut(l6)},type:"radio",value:"filtered"}),ro.createElement("label",{className:"a-label",htmlFor:"dataset_filtered"},"Filtered dataset ("+S.toLocaleString()+" complaints)",ro.createElement("br",null),"(only the results of the last search and/or filter)")),ro.createElement("div",{className:"m-form-field m-form-field--radio m-form-field--lg-target"},ro.createElement("input",{checked:nt===Bb,className:"a-radio",id:"dataset_full",onChange:()=>{Ht(!1),ut(Bb)},type:"radio",value:"full"}),ro.createElement("label",{className:"a-label",htmlFor:"dataset_full"},"Full dataset ("+F.toLocaleString()+" complaints)",ro.createElement("br",null),"(not recommended due to very large file size)")))),ro.createElement("div",{className:"heres-the-url"},ro.createElement("h4",null,"Link to your complaint search results for future reference"),ro.createElement("div",{className:"layout-row"},ro.createElement("input",{className:"flex-all a-text-input",id:"export-uri-input",type:"text",value:Yt,readOnly:!0}),ro.createElement("button",{className:`a-btn ${zt?"export-url-copied":"a-btn__secondary"}`,disabled:!Yt,onClick:ue},!zt&&ro.createElement("div",null,ro.createElement("span",{className:"a-btn__icon"},Wi("copy")),"Copy"),!!zt&&ro.createElement("div",null,ro.createElement("span",{className:"a-btn__icon"},Wi("checkmark-round")),"Copied")))),ro.createElement("div",{className:"timeliness-warning"},"The export process could take several minutes if you\u2019re downloading many complaints")),ro.createElement("div",{className:"footer layout-row"},ro.createElement("button",{className:"a-btn","data-gtm_ignore":"true",onClick:()=>{re()}},"Start export"),ro.createElement("button",{className:"a-btn a-btn--link a-btn__warning","data-gtm_ignore":"true",onClick:()=>{t(dp())}},"Cancel")))};var Fb=Fn(7810);const zW=()=>{const t=Si();return Fb.createElement("section",{className:"export-modal"},Fb.createElement("div",{className:"header layout-row"},Fb.createElement("h3",{className:"flex-all"},"Export complaints"),Fb.createElement("button",{className:"a-btn a-btn--link","data-gtm_ignore":"true",onClick:()=>{t(dp())}},"Close",Wi("delete-round"))),Fb.createElement("div",{className:"body"},Fb.createElement("div",{className:"body-copy instructions"},"It may take a few minutes for your file to download. You can keep working while it processes.")))};var Bc=Fn(7810);const u6=({onClose:t})=>Bc.createElement("section",{className:"more-about-modal"},Bc.createElement("div",{className:"header"},Bc.createElement("h3",null,"Things you should know before you use this database")),Bc.createElement("div",{className:"body"},Bc.createElement("p",{className:"body-copy"},"This database only includes complaints the CFPB sent to companies and complaints are only published after the company responds, confirming a commercial relationship or after 15 days, whichever comes first. This database does not include complaints referred to other regulators, such as complaints about depository institutions with less than $10 billion in assets."),Bc.createElement("p",{className:"body-copy"},"This database is not a statistical sample of consumers\u2019 experiences in the marketplace. Complaints are not necessarily representative of all consumers\u2019 experiences with a financial product or company. Company-specific information should be considered in the context of that company\u2019s size and/or market share."),Bc.createElement("p",{className:"body-copy"},"This database only includes a consumer\u2019s description of what happened in their own words if the consumer agrees to share it and after we take steps to\xA0",Bc.createElement("a",{href:"https://files.consumerfinance.gov/f/documents/201503_cfpb_Narrative-Scrubbing-Standard.pdf",target:"_blank",rel:"noopener noreferrer"},"remove personal information"),".\xA0 One consumer\u2019s experience is not necessarily representative of all consumers\u2019 experiences and narratives are not verified before publication."),Bc.createElement("p",{className:"body-copy"},"This database generally updates daily and doesn\u2019t include complaints that don\u2019t meet our\xA0",Bc.createElement("a",{href:"https://files.consumerfinance.gov/f/documents/201503_cfpb_disclosure-of-consumer-complaint-narrative-data.pdf",target:"_blank",rel:"noopener noreferrer"},"publication criteria"),".")),Bc.createElement("div",{className:"footer layout-row"},Bc.createElement("button",{className:"a-btn",onClick:t},"Close")));u6.propTypes={onClose:Rn().func.isRequired};var UW=Fn(3362),HW=Fn.n(UW),c6=Fn(7810);const VW=()=>{const t=sr(c7),e=Si(),n=(0,W.useMemo)(()=>({[Ix]:FW,[jx]:zW,[F0]:u6})[t],[t]);return n?c6.createElement(HW(),{appElement:document.querySelector("#ccdb-ui-root"),isOpen:!0,contentLabel:"CFPB Modal Dialog",className:"modal-body",overlayClassName:"modal-overlay",onRequestClose:()=>{e(dp())}},c6.createElement(n,{onClose:()=>{e(dp())}})):null},aX={};/*!
476
476
  * Intro.js v7.2.0
477
477
  * https://introjs.com
478
478
  *
@@ -480,6 +480,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
480
480
  * https://introjs.com
481
481
  *
482
482
  * Date: Mon, 14 Aug 2023 19:47:14 GMT
483
- */function gk(t){return gk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gk(t)}function Wo(t,e,n,i){return new(n||(n=Promise))(function(c,S){function F(yt){try{ut(i.next(yt))}catch(_t){S(_t)}}function nt(yt){try{ut(i.throw(yt))}catch(_t){S(_t)}}function ut(yt){var _t;yt.done?c(yt.value):(_t=yt.value,_t instanceof n?_t:new n(function(zt){zt(_t)})).then(F,nt)}ut((i=i.apply(t,e||[])).next())})}function Yo(t,e){var n,i,c,S,F={label:0,sent:function(){if(1&c[0])throw c[1];return c[1]},trys:[],ops:[]};return S={next:nt(0),throw:nt(1),return:nt(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function nt(ut){return function(yt){return function(_t){if(n)throw new TypeError("Generator is already executing.");for(;S&&(S=0,_t[0]&&(F=0)),F;)try{if(n=1,i&&(c=2&_t[0]?i.return:_t[0]?i.throw||((c=i.return)&&c.call(i),0):i.next)&&!(c=c.call(i,_t[1])).done)return c;switch(i=0,c&&(_t=[2&_t[0],c.value]),_t[0]){case 0:case 1:c=_t;break;case 4:return F.label++,{value:_t[1],done:!1};case 5:F.label++,i=_t[1],_t=[0];continue;case 7:_t=F.ops.pop(),F.trys.pop();continue;default:if(c=F.trys,!((c=c.length>0&&c[c.length-1])||_t[0]!==6&&_t[0]!==2)){F=0;continue}if(_t[0]===3&&(!c||_t[1]>c[0]&&_t[1]<c[3])){F.label=_t[1];break}if(_t[0]===6&&F.label<c[1]){F.label=c[1],c=_t;break}if(c&&F.label<c[2]){F.label=c[2],F.ops.push(_t);break}c[2]&&F.ops.pop(),F.trys.pop();continue}_t=e.call(t,F)}catch(zt){_t=[6,zt],i=0}finally{n=c=0}if(5&_t[0])throw _t[1];return{value:_t[0]?_t[1]:void 0,done:!0}}([ut,yt])}}}function h6(t,e,n){var i,c=((i={})[t]=e,i.path="/",i.expires=void 0,i);if(n){var S=new Date;S.setTime(S.getTime()+24*n*60*60*1e3),c.expires=S.toUTCString()}var F=[];for(var nt in c)F.push("".concat(nt,"=").concat(c[nt]));return document.cookie=F.join("; "),f6(t)}function f6(t){return(e={},document.cookie.split(";").forEach(function(n){var i=n.split("="),c=i[0],S=i[1];e[c.trim()]=S}),e)[t];var e}typeof SuppressedError=="function"&&SuppressedError;function VW(t,e){e?h6(t._options.dontShowAgainCookie,"true",t._options.dontShowAgainCookieDays):h6(t._options.dontShowAgainCookie,"",-1)}var yk,A5=(yk={},function(t,e){return e===void 0&&(e="introjs-stamp"),yk[e]=yk[e]||0,t[e]===void 0&&(t[e]=yk[e]++),t[e]}),Xf=new(function(){function t(){this.events_key="introjs_event"}return t.prototype._id=function(e,n,i){return e+A5(n)+(i?"_".concat(A5(i)):"")},t.prototype.on=function(e,n,i,c,S){var F=this._id(n,i,c),nt=function(ut){return i(c||e,ut||window.event)};"addEventListener"in e?e.addEventListener(n,nt,S):"attachEvent"in e&&e.attachEvent("on".concat(n),nt),e[this.events_key]=e[this.events_key]||{},e[this.events_key][F]=nt},t.prototype.off=function(e,n,i,c,S){var F=this._id(n,i,c),nt=e[this.events_key]&&e[this.events_key][F];nt&&("removeEventListener"in e?e.removeEventListener(n,nt,S):"detachEvent"in e&&e.detachEvent("on".concat(n),nt),e[this.events_key][F]=null)},t}()),va=function(t){return typeof t=="function"};function Gf(t,e){if(t instanceof SVGElement){var n=t.getAttribute("class")||"";n.match(e)||t.setAttribute("class","".concat(n," ").concat(e))}else if(t.classList!==void 0)for(var i=0,c=e.split(" ");i<c.length;i++){var S=c[i];t.classList.add(S)}else t.className.match(e)||(t.className+=" ".concat(e))}function P5(t,e){var n="";return"currentStyle"in t?n=t.currentStyle[e]:document.defaultView&&document.defaultView.getComputedStyle&&(n=document.defaultView.getComputedStyle(t,null).getPropertyValue(e)),n&&n.toLowerCase?n.toLowerCase():n}function d6(t,e){if(t){var n=function(i){var c=window.getComputedStyle(i),S=c.position==="absolute",F=/(auto|scroll)/;if(c.position==="fixed")return document.body;for(var nt=i;nt=nt.parentElement;)if(c=window.getComputedStyle(nt),(!S||c.position!=="static")&&F.test(c.overflow+c.overflowY+c.overflowX))return nt;return document.body}(e);n!==document.body&&(n.scrollTop=e.offsetTop-n.offsetTop)}}function O5(){if(window.innerWidth!==void 0)return{width:window.innerWidth,height:window.innerHeight};var t=document.documentElement;return{width:t.clientWidth,height:t.clientHeight}}function p6(t,e,n,i,c){var S;if(e!=="off"&&t&&(S=e==="tooltip"?c.getBoundingClientRect():i.getBoundingClientRect(),!function(nt){var ut=nt.getBoundingClientRect();return ut.top>=0&&ut.left>=0&&ut.bottom+80<=window.innerHeight&&ut.right<=window.innerWidth}(i))){var F=O5().height;S.bottom-(S.bottom-S.top)<0||i.clientHeight>F?window.scrollBy(0,S.top-(F/2-S.height/2)-n):window.scrollBy(0,S.top-(F/2-S.height/2)+n)}}function S2(t){t.setAttribute("role","button"),t.tabIndex=0}function vk(t){var e=t.parentElement;return!(!e||e.nodeName==="HTML")&&(P5(t,"position")==="fixed"||vk(e))}function zb(t,e){var n=document.body,i=document.documentElement,c=window.pageYOffset||i.scrollTop||n.scrollTop,S=window.pageXOffset||i.scrollLeft||n.scrollLeft;e=e||n;var F=t.getBoundingClientRect(),nt=e.getBoundingClientRect(),ut=P5(e,"position"),yt={width:F.width,height:F.height};return e.tagName.toLowerCase()!=="body"&&ut==="relative"||ut==="sticky"?Object.assign(yt,{top:F.top-nt.top,left:F.left-nt.left}):vk(t)?Object.assign(yt,{top:F.top,left:F.left}):Object.assign(yt,{top:F.top+c,left:F.left+S})}function N5(t,e){if(t instanceof SVGElement){var n=t.getAttribute("class")||"";t.setAttribute("class",n.replace(e,"").replace(/^\s+|\s+$/g,""))}else t.className=t.className.replace(e,"").replace(/^\s+|\s+$/g,"")}function kg(t,e){var n="";if(t.style.cssText&&(n+=t.style.cssText),typeof e=="string")n+=e;else for(var i in e)n+="".concat(i,":").concat(e[i],";");t.style.cssText=n}function Fp(t,e,n){if(n&&e){var i=zb(e.element,t._targetElement),c=t._options.helperElementPadding;e.element instanceof Element&&vk(e.element)?Gf(n,"introjs-fixedTooltip"):N5(n,"introjs-fixedTooltip"),e.position==="floating"&&(c=0),kg(n,{width:"".concat(i.width+c,"px"),height:"".concat(i.height+c,"px"),top:"".concat(i.top-c/2,"px"),left:"".concat(i.left-c/2,"px")})}}function bk(t,e,n,i,c){return t.left+e+n.width>i.width?(c.style.left="".concat(i.width-n.width-t.left,"px"),!1):(c.style.left="".concat(e,"px"),!0)}function xk(t,e,n,i){return t.left+t.width-e-n.width<0?(i.style.left="".concat(-t.left,"px"),!1):(i.style.right="".concat(e,"px"),!0)}function Kf(t,e){t.includes(e)&&t.splice(t.indexOf(e),1)}function WW(t,e,n,i){var c=t.slice(),S=O5(),F=zb(n).height+10,nt=zb(n).width+20,ut=e.getBoundingClientRect(),yt="floating";if(ut.bottom+F>S.height&&Kf(c,"bottom"),ut.top-F<0&&Kf(c,"top"),ut.right+nt>S.width&&Kf(c,"right"),ut.left-nt<0&&Kf(c,"left"),i&&(i=i.split("-")[0]),c.length&&(yt=c[0],c.includes(i)&&(yt=i)),yt==="top"||yt==="bottom"){var _t=void 0,zt=[];yt==="top"?(_t="top-middle-aligned",zt=["top-left-aligned","top-middle-aligned","top-right-aligned"]):(_t="bottom-middle-aligned",zt=["bottom-left-aligned","bottom-middle-aligned","bottom-right-aligned"]),yt=function(Ht,Yt,re,ue){var oe=Yt/2,de=Math.min(re,window.screen.width);return de-Ht<Yt&&(Kf(ue,"top-left-aligned"),Kf(ue,"bottom-left-aligned")),(Ht<oe||de-Ht<oe)&&(Kf(ue,"top-middle-aligned"),Kf(ue,"bottom-middle-aligned")),Ht<Yt&&(Kf(ue,"top-right-aligned"),Kf(ue,"bottom-right-aligned")),ue.length?ue[0]:null}(ut.left,nt,S.width,zt)||_t}return yt}function wk(t,e,n,i,c){if(c===void 0&&(c=!1),e){var S,F,nt,ut,yt="";n.style.top="",n.style.right="",n.style.bottom="",n.style.left="",n.style.marginLeft="",n.style.marginTop="",i.style.display="inherit",yt=typeof e.tooltipClass=="string"?e.tooltipClass:t._options.tooltipClass,n.className=["introjs-tooltip",yt].filter(Boolean).join(" "),n.setAttribute("role","dialog"),(ut=e.position)!=="floating"&&t._options.autoPosition&&(ut=WW(t._options.positionPrecedence,e.element,n,ut)),F=zb(e.element),S=zb(n),nt=O5(),Gf(n,"introjs-".concat(ut));var _t=F.width/2-S.width/2;switch(ut){case"top-right-aligned":i.className="introjs-arrow bottom-right";var zt=0;xk(F,zt,S,n),n.style.bottom="".concat(F.height+20,"px");break;case"top-middle-aligned":i.className="introjs-arrow bottom-middle",c&&(_t+=5),xk(F,_t,S,n)&&(n.style.right="",bk(F,_t,S,nt,n)),n.style.bottom="".concat(F.height+20,"px");break;case"top-left-aligned":case"top":i.className="introjs-arrow bottom",bk(F,c?0:15,S,nt,n),n.style.bottom="".concat(F.height+20,"px");break;case"right":n.style.left="".concat(F.width+20,"px"),F.top+S.height>nt.height?(i.className="introjs-arrow left-bottom",n.style.top="-".concat(S.height-F.height-20,"px")):i.className="introjs-arrow left";break;case"left":c||t._options.showStepNumbers!==!0||(n.style.top="15px"),F.top+S.height>nt.height?(n.style.top="-".concat(S.height-F.height-20,"px"),i.className="introjs-arrow right-bottom"):i.className="introjs-arrow right",n.style.right="".concat(F.width+20,"px");break;case"floating":i.style.display="none",n.style.left="50%",n.style.top="50%",n.style.marginLeft="-".concat(S.width/2,"px"),n.style.marginTop="-".concat(S.height/2,"px");break;case"bottom-right-aligned":i.className="introjs-arrow top-right",xk(F,zt=0,S,n),n.style.top="".concat(F.height+20,"px");break;case"bottom-middle-aligned":i.className="introjs-arrow top-middle",c&&(_t+=5),xk(F,_t,S,n)&&(n.style.right="",bk(F,_t,S,nt,n)),n.style.top="".concat(F.height+20,"px");break;default:i.className="introjs-arrow top",bk(F,0,S,nt,n),n.style.top="".concat(F.height+20,"px")}}}function m6(){for(var t=0,e=Array.from(document.querySelectorAll(".introjs-showElement"));t<e.length;t++)N5(e[t],/introjs-[a-zA-Z]+/g)}function _o(t,e){var n=document.createElement(t);e=e||{};var i=/^(?:role|data-|aria-)/;for(var c in e){var S=e[c];c==="style"&&typeof S!="function"?kg(n,S):typeof S=="string"&&c.match(i)?n.setAttribute(c,S):n[c]=S}return n}function g6(t,e,n){if(n===void 0&&(n=!1),n){var i=e.style.opacity||"1";kg(e,{opacity:"0"}),window.setTimeout(function(){kg(e,{opacity:i})},10)}t.appendChild(e)}function y6(t,e){return(t+1)/e*100}function v6(t,e){var n=_o("div",{className:"introjs-bullets"});t._options.showBullets===!1&&(n.style.display="none");var i=_o("ul");i.setAttribute("role","tablist");for(var c=function(){var yt=this.getAttribute("data-step-number");yt!=null&&t.goToStep(parseInt(yt,10))},S=0;S<t._introItems.length;S++){var F=t._introItems[S].step,nt=_o("li"),ut=_o("a");nt.setAttribute("role","presentation"),ut.setAttribute("role","tab"),ut.onclick=c,S===e.step-1&&(ut.className="active"),S2(ut),ut.innerHTML="&nbsp;",ut.setAttribute("data-step-number",F.toString()),nt.appendChild(ut),i.appendChild(nt)}return n.appendChild(i),n}function b6(t,e,n){var i=t.querySelector(".introjs-progress .introjs-progressbar");if(i){var c=y6(e,n);i.style.cssText="width:".concat(c,"%;"),i.setAttribute("aria-valuenow",c.toString())}}function x6(t,e){return Wo(this,void 0,void 0,function(){var n,i,c,S,F,nt,ut,yt,_t,zt,Ht,Yt,re,ue,oe,de,pe,_e,ge,qe,De,$e,Ye,tn,gn=this;return Yo(this,function(Cn){switch(Cn.label){case 0:return va(t._introChangeCallback)?[4,t._introChangeCallback.call(t,e.element)]:[3,2];case 1:Cn.sent(),Cn.label=2;case 2:return n=document.querySelector(".introjs-helperLayer"),i=document.querySelector(".introjs-tooltipReferenceLayer"),c="introjs-helperLayer",typeof e.highlightClass=="string"&&(c+=" ".concat(e.highlightClass)),typeof t._options.highlightClass=="string"&&(c+=" ".concat(t._options.highlightClass)),n!==null&&i!==null?(ut=i.querySelector(".introjs-helperNumberLayer"),yt=i.querySelector(".introjs-tooltiptext"),_t=i.querySelector(".introjs-tooltip-title"),zt=i.querySelector(".introjs-arrow"),Ht=i.querySelector(".introjs-tooltip"),nt=i.querySelector(".introjs-skipbutton"),F=i.querySelector(".introjs-prevbutton"),S=i.querySelector(".introjs-nextbutton"),n.className=c,Ht.style.opacity="0",Ht.style.display="none",d6(t._options.scrollToElement,e.element),Fp(t,e,n),Fp(t,e,i),m6(),t._lastShowElementTimer&&window.clearTimeout(t._lastShowElementTimer),t._lastShowElementTimer=window.setTimeout(function(){ut!==null&&(ut.innerHTML="".concat(e.step," ").concat(t._options.stepNumbersOfLabel," ").concat(t._introItems.length)),yt.innerHTML=e.intro||"",_t.innerHTML=e.title||"",Ht.style.display="block",wk(t,e,Ht,zt),function(kn,Zn,fn){if(kn){var jn=Zn.querySelector(".introjs-bullets li > a.active"),On=Zn.querySelector('.introjs-bullets li > a[data-step-number="'.concat(fn.step,'"]'));jn&&On&&(jn.className="",On.className="active")}}(t._options.showBullets,i,e),b6(i,t._currentStep,t._introItems.length),Ht.style.opacity="1",(S!=null&&/introjs-donebutton/gi.test(S.className)||S!=null)&&S.focus(),p6(t._options.scrollToElement,e.scrollTo,t._options.scrollPadding,e.element,yt)},350)):(Yt=_o("div",{className:c}),re=_o("div",{className:"introjs-tooltipReferenceLayer"}),ue=_o("div",{className:"introjs-arrow"}),oe=_o("div",{className:"introjs-tooltip"}),de=_o("div",{className:"introjs-tooltiptext"}),pe=_o("div",{className:"introjs-tooltip-header"}),_e=_o("h1",{className:"introjs-tooltip-title"}),ge=_o("div"),kg(Yt,{"box-shadow":"0 0 1px 2px rgba(33, 33, 33, 0.8), rgba(33, 33, 33, ".concat(t._options.overlayOpacity.toString(),") 0 0 0 5000px")}),d6(t._options.scrollToElement,e.element),Fp(t,e,Yt),Fp(t,e,re),g6(t._targetElement,Yt,!0),g6(t._targetElement,re),de.innerHTML=e.intro,_e.innerHTML=e.title,ge.className="introjs-tooltipbuttons",t._options.showButtons===!1&&(ge.style.display="none"),pe.appendChild(_e),oe.appendChild(pe),oe.appendChild(de),t._options.dontShowAgain&&(qe=_o("div",{className:"introjs-dontShowAgain"}),(De=_o("input",{type:"checkbox",id:"introjs-dontShowAgain",name:"introjs-dontShowAgain"})).onchange=function(kn){t.setDontShowAgain(kn.target.checked)},($e=_o("label",{htmlFor:"introjs-dontShowAgain"})).innerText=t._options.dontShowAgainLabel,qe.appendChild(De),qe.appendChild($e),oe.appendChild(qe)),oe.appendChild(v6(t,e)),oe.appendChild(function(kn){var Zn=_o("div");Zn.className="introjs-progress",kn._options.showProgress===!1&&(Zn.style.display="none");var fn=_o("div",{className:"introjs-progressbar"});kn._options.progressBarAdditionalClass&&(fn.className+=" "+kn._options.progressBarAdditionalClass);var jn=y6(kn._currentStep,kn._introItems.length);return fn.setAttribute("role","progress"),fn.setAttribute("aria-valuemin","0"),fn.setAttribute("aria-valuemax","100"),fn.setAttribute("aria-valuenow",jn.toString()),fn.style.cssText="width:".concat(jn,"%;"),Zn.appendChild(fn),Zn}(t)),Ye=_o("div"),t._options.showStepNumbers===!0&&(Ye.className="introjs-helperNumberLayer",Ye.innerHTML="".concat(e.step," ").concat(t._options.stepNumbersOfLabel," ").concat(t._introItems.length),oe.appendChild(Ye)),oe.appendChild(ue),re.appendChild(oe),(S=_o("a")).onclick=function(){return Wo(gn,void 0,void 0,function(){return Yo(this,function(kn){switch(kn.label){case 0:return t._introItems.length-1===t._currentStep?[3,2]:[4,Xy(t)];case 1:return kn.sent(),[3,6];case 2:return/introjs-donebutton/gi.test(S.className)?va(t._introCompleteCallback)?[4,t._introCompleteCallback.call(t,t._currentStep,"done")]:[3,4]:[3,6];case 3:kn.sent(),kn.label=4;case 4:return[4,Gy(t,t._targetElement)];case 5:kn.sent(),kn.label=6;case 6:return[2]}})})},S2(S),S.innerHTML=t._options.nextLabel,(F=_o("a")).onclick=function(){return Wo(gn,void 0,void 0,function(){return Yo(this,function(kn){switch(kn.label){case 0:return t._currentStep>0?[4,_k(t)]:[3,2];case 1:kn.sent(),kn.label=2;case 2:return[2]}})})},S2(F),F.innerHTML=t._options.prevLabel,S2(nt=_o("a",{className:"introjs-skipbutton"})),nt.innerHTML=t._options.skipLabel,nt.onclick=function(){return Wo(gn,void 0,void 0,function(){return Yo(this,function(kn){switch(kn.label){case 0:return t._introItems.length-1===t._currentStep&&va(t._introCompleteCallback)?[4,t._introCompleteCallback.call(t,t._currentStep,"skip")]:[3,2];case 1:kn.sent(),kn.label=2;case 2:return va(t._introSkipCallback)?[4,t._introSkipCallback.call(t,t._currentStep)]:[3,4];case 3:kn.sent(),kn.label=4;case 4:return[4,Gy(t,t._targetElement)];case 5:return kn.sent(),[2]}})})},pe.appendChild(nt),t._introItems.length>1&&ge.appendChild(F),ge.appendChild(S),oe.appendChild(ge),wk(t,e,oe,ue),p6(t._options.scrollToElement,e.scrollTo,t._options.scrollPadding,e.element,oe)),(tn=t._targetElement.querySelector(".introjs-disableInteraction"))&&tn.parentNode&&tn.parentNode.removeChild(tn),e.disableInteraction&&function(kn,Zn){var fn=document.querySelector(".introjs-disableInteraction");fn===null&&(fn=_o("div",{className:"introjs-disableInteraction"}),kn._targetElement.appendChild(fn)),Fp(kn,Zn,fn)}(t,e),t._currentStep===0&&t._introItems.length>1?(S!=null&&(S.className="".concat(t._options.buttonClass," introjs-nextbutton"),S.innerHTML=t._options.nextLabel),t._options.hidePrev===!0?(F!=null&&(F.className="".concat(t._options.buttonClass," introjs-prevbutton introjs-hidden")),S!=null&&Gf(S,"introjs-fullbutton")):F!=null&&(F.className="".concat(t._options.buttonClass," introjs-prevbutton introjs-disabled"))):t._introItems.length-1===t._currentStep||t._introItems.length===1?(F!=null&&(F.className="".concat(t._options.buttonClass," introjs-prevbutton")),t._options.hideNext===!0?(S!=null&&(S.className="".concat(t._options.buttonClass," introjs-nextbutton introjs-hidden")),F!=null&&Gf(F,"introjs-fullbutton")):S!=null&&(t._options.nextToDone===!0?(S.innerHTML=t._options.doneLabel,Gf(S,"".concat(t._options.buttonClass," introjs-nextbutton introjs-donebutton"))):S.className="".concat(t._options.buttonClass," introjs-nextbutton introjs-disabled"))):(F!=null&&(F.className="".concat(t._options.buttonClass," introjs-prevbutton")),S!=null&&(S.className="".concat(t._options.buttonClass," introjs-nextbutton"),S.innerHTML=t._options.nextLabel)),F!=null&&F.setAttribute("role","button"),S!=null&&S.setAttribute("role","button"),nt!=null&&nt.setAttribute("role","button"),S!=null&&S.focus(),function(kn){Gf(kn,"introjs-showElement");var Zn=P5(kn,"position");Zn!=="absolute"&&Zn!=="relative"&&Zn!=="sticky"&&Zn!=="fixed"&&Gf(kn,"introjs-relativePosition")}(e.element),va(t._introAfterChangeCallback)?[4,t._introAfterChangeCallback.call(t,e.element)]:[3,4];case 3:Cn.sent(),Cn.label=4;case 4:return[2]}})})}function YW(t,e){return Wo(this,void 0,void 0,function(){return Yo(this,function(n){switch(n.label){case 0:return t._currentStep=e-2,t._introItems===void 0?[3,2]:[4,Xy(t)];case 1:n.sent(),n.label=2;case 2:return[2]}})})}function qW(t,e){return Wo(this,void 0,void 0,function(){return Yo(this,function(n){switch(n.label){case 0:return t._currentStepNumber=e,t._introItems===void 0?[3,2]:[4,Xy(t)];case 1:n.sent(),n.label=2;case 2:return[2]}})})}function Xy(t){return Wo(this,void 0,void 0,function(){var e,n,i;return Yo(this,function(c){switch(c.label){case 0:if(t._direction="forward",t._currentStepNumber!==void 0)for(e=0;e<t._introItems.length;e++)t._introItems[e].step===t._currentStepNumber&&(t._currentStep=e-1,t._currentStepNumber=void 0);return t._currentStep===-1?t._currentStep=0:++t._currentStep,n=t._introItems[t._currentStep],i=!0,va(t._introBeforeChangeCallback)?[4,t._introBeforeChangeCallback.call(t,n&&n.element,t._currentStep,t._direction)]:[3,2];case 1:i=c.sent(),c.label=2;case 2:return i===!1?(--t._currentStep,[2,!1]):t._introItems.length<=t._currentStep?va(t._introCompleteCallback)?[4,t._introCompleteCallback.call(t,t._currentStep,"end")]:[3,4]:[3,6];case 3:c.sent(),c.label=4;case 4:return[4,Gy(t,t._targetElement)];case 5:return c.sent(),[2,!1];case 6:return[4,x6(t,n)];case 7:return c.sent(),[2,!0]}})})}function _k(t){return Wo(this,void 0,void 0,function(){var e,n;return Yo(this,function(i){switch(i.label){case 0:return t._direction="backward",t._currentStep<=0?[2,!1]:(--t._currentStep,e=t._introItems[t._currentStep],n=!0,va(t._introBeforeChangeCallback)?[4,t._introBeforeChangeCallback.call(t,e&&e.element,t._currentStep,t._direction)]:[3,2]);case 1:n=i.sent(),i.label=2;case 2:return n===!1?(++t._currentStep,[2,!1]):[4,x6(t,e)];case 3:return i.sent(),[2,!0]}})})}function w6(t,e){return Wo(this,void 0,void 0,function(){var n,i;return Yo(this,function(c){switch(c.label){case 0:return(n=e.code===void 0?e.which:e.code)===null&&(n=e.charCode===null?e.keyCode:e.charCode),n!=="Escape"&&n!==27||t._options.exitOnEsc!==!0?[3,2]:[4,Gy(t,t._targetElement)];case 1:return c.sent(),[3,16];case 2:return n!=="ArrowLeft"&&n!==37?[3,4]:[4,_k(t)];case 3:return c.sent(),[3,16];case 4:return n!=="ArrowRight"&&n!==39?[3,6]:[4,Xy(t)];case 5:return c.sent(),[3,16];case 6:return n!=="Enter"&&n!=="NumpadEnter"&&n!==13?[3,16]:(i=e.target||e.srcElement)&&i.className.match("introjs-prevbutton")?[4,_k(t)]:[3,8];case 7:return c.sent(),[3,15];case 8:return i&&i.className.match("introjs-skipbutton")?t._introItems.length-1===t._currentStep&&va(t._introCompleteCallback)?[4,t._introCompleteCallback.call(t,t._currentStep,"skip")]:[3,10]:[3,12];case 9:c.sent(),c.label=10;case 10:return[4,Gy(t,t._targetElement)];case 11:return c.sent(),[3,15];case 12:return i&&i.getAttribute("data-step-number")?(i.click(),[3,15]):[3,13];case 13:return[4,Xy(t)];case 14:c.sent(),c.label=15;case 15:e.preventDefault?e.preventDefault():e.returnValue=!1,c.label=16;case 16:return[2]}})})}function D5(t){if(t===null||gk(t)!=="object"||"nodeType"in t)return t;var e={};for(var n in t)"jQuery"in window&&t[n]instanceof window.jQuery?e[n]=t[n]:e[n]=D5(t[n]);return e}function Ub(t){var e=document.querySelector(".introjs-hints");return e?Array.from(e.querySelectorAll(t)):[]}function R5(t,e){return Wo(this,void 0,void 0,function(){var n;return Yo(this,function(i){switch(i.label){case 0:return n=Ub('.introjs-hint[data-step="'.concat(e,'"]'))[0],Sk(),n&&Gf(n,"introjs-hidehint"),va(t._hintCloseCallback)?[4,t._hintCloseCallback.call(t,e)]:[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}})})}function $W(t){return Wo(this,void 0,void 0,function(){var e,n,i,c,S;return Yo(this,function(F){switch(F.label){case 0:e=Ub(".introjs-hint"),n=0,i=e,F.label=1;case 1:return n<i.length?(c=i[n],(S=c.getAttribute("data-step"))?[4,R5(t,parseInt(S,10))]:[3,3]):[3,4];case 2:F.sent(),F.label=3;case 3:return n++,[3,1];case 4:return[2]}})})}function XW(t){return Wo(this,void 0,void 0,function(){var e,n,i,c,S;return Yo(this,function(F){switch(F.label){case 0:if(!(e=Ub(".introjs-hint"))||!e.length)return[3,1];for(n=0,i=e;n<i.length;n++)c=i[n],(S=c.getAttribute("data-step"))&&_6(parseInt(S,10));return[3,3];case 1:return[4,M6(t,t._targetElement)];case 2:F.sent(),F.label=3;case 3:return[2]}})})}function _6(t){var e=Ub('.introjs-hint[data-step="'.concat(t,'"]'))[0];e&&N5(e,/introjs-hidehint/g)}function S6(t){var e=Ub('.introjs-hint[data-step="'.concat(t,'"]'))[0];e&&e.parentNode&&e.parentNode.removeChild(e)}function GW(t){return Wo(this,void 0,void 0,function(){var e,n,i,c,S,F,nt;return Yo(this,function(ut){switch(ut.label){case 0:for((e=document.querySelector(".introjs-hints"))===null&&(e=_o("div",{className:"introjs-hints"})),n=function(Ht){return function(Yt){var re=Yt||window.event;re&&re.stopPropagation&&re.stopPropagation(),re&&re.cancelBubble!==null&&(re.cancelBubble=!0),C6(t,Ht)}},i=0;i<t._hintItems.length;i++){if(c=t._hintItems[i],document.querySelector('.introjs-hint[data-step="'.concat(i,'"]')))return[2];S2(S=_o("a",{className:"introjs-hint"})),S.onclick=n(i),c.hintAnimation||Gf(S,"introjs-hint-no-anim"),vk(c.element)&&Gf(S,"introjs-fixedhint"),F=_o("div",{className:"introjs-hint-dot"}),nt=_o("div",{className:"introjs-hint-pulse"}),S.appendChild(F),S.appendChild(nt),S.setAttribute("data-step",i.toString()),c.hintTargetElement=c.element,c.element=S,E6(c.hintPosition,S,c.hintTargetElement),e.appendChild(S)}return document.body.appendChild(e),va(t._hintsAddedCallback)?[4,t._hintsAddedCallback.call(t)]:[3,2];case 1:ut.sent(),ut.label=2;case 2:return t._options.hintAutoRefreshInterval>=0&&(t._hintsAutoRefreshFunction=(yt=function(){return Ek(t)},_t=t._options.hintAutoRefreshInterval,function(){for(var Ht=[],Yt=0;Yt<arguments.length;Yt++)Ht[Yt]=arguments[Yt];window.clearTimeout(zt),zt=window.setTimeout(function(){yt(Ht)},_t)}),Xf.on(window,"scroll",t._hintsAutoRefreshFunction,t,!0)),[2]}var yt,_t,zt})})}function E6(t,e,n){if(n!==void 0){var i=zb(n),c=20,S=20;switch(t){default:case"top-left":e.style.left="".concat(i.left,"px"),e.style.top="".concat(i.top,"px");break;case"top-right":e.style.left="".concat(i.left+i.width-c,"px"),e.style.top="".concat(i.top,"px");break;case"bottom-left":e.style.left="".concat(i.left,"px"),e.style.top="".concat(i.top+i.height-S,"px");break;case"bottom-right":e.style.left="".concat(i.left+i.width-c,"px"),e.style.top="".concat(i.top+i.height-S,"px");break;case"middle-left":e.style.left="".concat(i.left,"px"),e.style.top="".concat(i.top+(i.height-S)/2,"px");break;case"middle-right":e.style.left="".concat(i.left+i.width-c,"px"),e.style.top="".concat(i.top+(i.height-S)/2,"px");break;case"middle-middle":e.style.left="".concat(i.left+(i.width-c)/2,"px"),e.style.top="".concat(i.top+(i.height-S)/2,"px");break;case"bottom-middle":e.style.left="".concat(i.left+(i.width-c)/2,"px"),e.style.top="".concat(i.top+i.height-S,"px");break;case"top-middle":e.style.left="".concat(i.left+(i.width-c)/2,"px"),e.style.top="".concat(i.top,"px")}}}function C6(t,e){return Wo(this,void 0,void 0,function(){var n,i,c,S,F,nt,ut,yt,_t,zt,Ht;return Yo(this,function(Yt){switch(Yt.label){case 0:return n=document.querySelector('.introjs-hint[data-step="'.concat(e,'"]')),i=t._hintItems[e],va(t._hintClickCallback)?[4,t._hintClickCallback.call(t,n,i,e)]:[3,2];case 1:Yt.sent(),Yt.label=2;case 2:return(c=Sk())!==void 0&&parseInt(c,10)===e||(S=_o("div",{className:"introjs-tooltip"}),F=_o("div"),nt=_o("div"),ut=_o("div"),S.onclick=function(re){re.stopPropagation?re.stopPropagation():re.cancelBubble=!0},F.className="introjs-tooltiptext",(yt=_o("p")).innerHTML=i.hint||"",F.appendChild(yt),t._options.hintShowButton&&((_t=_o("a")).className=t._options.buttonClass,_t.setAttribute("role","button"),_t.innerHTML=t._options.hintButtonLabel,_t.onclick=function(){return R5(t,e)},F.appendChild(_t)),nt.className="introjs-arrow",S.appendChild(nt),S.appendChild(F),zt=n.getAttribute("data-step")||"",t._currentStep=parseInt(zt,10),Ht=t._hintItems[t._currentStep],ut.className="introjs-tooltipReferenceLayer introjs-hintReference",ut.setAttribute("data-step",zt),Fp(t,Ht,ut),ut.appendChild(S),document.body.appendChild(ut),wk(t,Ht,S,nt,!0)),[2]}})})}function Sk(){var t=document.querySelector(".introjs-hintReference");if(t&&t.parentNode){var e=t.getAttribute("data-step");return e?(t.parentNode.removeChild(t),e):void 0}}function M6(t,e){return Wo(this,void 0,void 0,function(){var n,i,c,S,F,nt,ut,yt,_t,zt;return Yo(this,function(Ht){switch(Ht.label){case 0:if(t._hintItems=[],t._options.hints&&t._options.hints.length>0)for(n=0,i=t._options.hints;n<i.length;n++)c=i[n],typeof(S=D5(c)).element=="string"&&(S.element=document.querySelector(S.element)),S.hintPosition=S.hintPosition||t._options.hintPosition,S.hintAnimation=S.hintAnimation||t._options.hintAnimation,S.element!==null&&t._hintItems.push(S);else{if(!(F=Array.from(e.querySelectorAll("*[data-hint]")))||!F.length)return[2,!1];for(nt=0,ut=F;nt<ut.length;nt++)yt=ut[nt],_t=yt.getAttribute("data-hint-animation"),zt=t._options.hintAnimation,_t&&(zt=_t==="true"),t._hintItems.push({element:yt,hint:yt.getAttribute("data-hint")||"",hintPosition:yt.getAttribute("data-hint-position")||t._options.hintPosition,hintAnimation:zt,tooltipClass:yt.getAttribute("data-tooltip-class")||void 0,position:yt.getAttribute("data-position")||t._options.tooltipPosition})}return[4,GW(t)];case 1:return Ht.sent(),Xf.on(document,"click",Sk,t,!1),Xf.on(window,"resize",Ek,t,!0),[2,!0]}})})}function Ek(t){for(var e=0,n=t._hintItems;e<n.length;e++){var i=n[e],c=i.hintTargetElement;E6(i.hintPosition,i.element,c)}}function k6(t,e){var n=Array.from(e.querySelectorAll("*[data-intro]")),i=[];if(t._options.steps&&t._options.steps.length)for(var c=0,S=t._options.steps;c<S.length;c++){var F=D5(Ht=S[c]);if(F.step=i.length+1,F.title=F.title||"",typeof F.element=="string"&&(F.element=document.querySelector(F.element)||void 0),F.element===void 0||F.element===null){var nt=document.querySelector(".introjsFloatingElement");nt===null&&(nt=_o("div",{className:"introjsFloatingElement"}),document.body.appendChild(nt)),F.element=nt,F.position="floating"}F.position=F.position||t._options.tooltipPosition,F.scrollTo=F.scrollTo||t._options.scrollTo,F.disableInteraction===void 0&&(F.disableInteraction=t._options.disableInteraction),F.element!==null&&i.push(F)}else{var ut=void 0;if(n.length<1)return[];for(var yt=0,_t=n;yt<_t.length;yt++){var zt=_t[yt];if((!t._options.group||zt.getAttribute("data-intro-group")===t._options.group)&&zt.style.display!=="none"){var Ht=parseInt(zt.getAttribute("data-step")||"",10);ut=t._options.disableInteraction,zt.hasAttribute("data-disable-interaction")&&(ut=!!zt.getAttribute("data-disable-interaction")),Ht>0&&(i[Ht-1]={step:Ht,element:zt,title:zt.getAttribute("data-title")||"",intro:zt.getAttribute("data-intro")||"",tooltipClass:zt.getAttribute("data-tooltip-class")||void 0,highlightClass:zt.getAttribute("data-highlight-class")||void 0,position:zt.getAttribute("data-position")||t._options.tooltipPosition,scrollTo:zt.getAttribute("data-scroll-to")||t._options.scrollTo,disableInteraction:ut})}}for(var Yt=0,re=0,ue=n;re<ue.length;re++)if(zt=ue[re],(!t._options.group||zt.getAttribute("data-intro-group")===t._options.group)&&zt.getAttribute("data-step")===null){for(;i[Yt]!==void 0;)Yt++;ut=zt.hasAttribute("data-disable-interaction")?!!zt.getAttribute("data-disable-interaction"):t._options.disableInteraction,i[Yt]={element:zt,title:zt.getAttribute("data-title")||"",intro:zt.getAttribute("data-intro")||"",step:Yt+1,tooltipClass:zt.getAttribute("data-tooltip-class")||void 0,highlightClass:zt.getAttribute("data-highlight-class")||void 0,position:zt.getAttribute("data-position")||t._options.tooltipPosition,scrollTo:zt.getAttribute("data-scroll-to")||t._options.scrollTo,disableInteraction:ut}}}for(var oe=[],de=0;de<i.length;de++)i[de]&&oe.push(i[de]);return(i=oe).sort(function(pe,_e){return pe.step-_e.step}),i}function T6(t,e){var n=t._currentStep;if(n!=null&&n!=-1){var i=t._introItems[n],c=document.querySelector(".introjs-tooltipReferenceLayer"),S=document.querySelector(".introjs-helperLayer"),F=document.querySelector(".introjs-disableInteraction");Fp(t,i,S),Fp(t,i,c),Fp(t,i,F),e&&(t._introItems=k6(t,t._targetElement),function(yt,_t){if(yt._options.showBullets){var zt=document.querySelector(".introjs-bullets");zt&&zt.parentNode&&zt.parentNode.replaceChild(v6(yt,_t),zt)}}(t,i),b6(c,n,t._introItems.length));var nt=document.querySelector(".introjs-arrow"),ut=document.querySelector(".introjs-tooltip");return ut&&nt&&wk(t,t._introItems[n],ut,nt),Ek(t),t}}function A6(t){T6(t)}function E2(t,e){if(e===void 0&&(e=!1),t&&t.parentElement){var n=t.parentElement;e?(kg(t,{opacity:"0"}),window.setTimeout(function(){try{n.removeChild(t)}catch(i){}},500)):n.removeChild(t)}}function Gy(t,e,n){return n===void 0&&(n=!1),Wo(this,void 0,void 0,function(){var i,c,S,F;return Yo(this,function(nt){switch(nt.label){case 0:return i=!0,t._introBeforeExitCallback===void 0?[3,2]:[4,t._introBeforeExitCallback.call(t,e)];case 1:i=nt.sent(),nt.label=2;case 2:if(!n&&i===!1)return[2];if((c=Array.from(e.querySelectorAll(".introjs-overlay")))&&c.length)for(S=0,F=c;S<F.length;S++)E2(F[S]);return E2(e.querySelector(".introjs-helperLayer"),!0),E2(e.querySelector(".introjs-tooltipReferenceLayer")),E2(e.querySelector(".introjs-disableInteraction")),E2(document.querySelector(".introjsFloatingElement")),m6(),Xf.off(window,"keydown",w6,t,!0),Xf.off(window,"resize",A6,t,!0),va(t._introExitCallback)?[4,t._introExitCallback.call(t)]:[3,4];case 3:nt.sent(),nt.label=4;case 4:return t._currentStep=-1,[2]}})})}function KW(t,e){return Wo(this,void 0,void 0,function(){var n;return Yo(this,function(i){switch(i.label){case 0:return t.isActive()?va(t._introStartCallback)?[4,t._introStartCallback.call(t,e)]:[3,2]:[2,!1];case 1:i.sent(),i.label=2;case 2:return(n=k6(t,e)).length===0?[2,!1]:(t._introItems=n,function(c,S){var F=this,nt=_o("div",{className:"introjs-overlay"});kg(nt,{top:0,bottom:0,left:0,right:0,position:"fixed"}),S.appendChild(nt),c._options.exitOnOverlayClick===!0&&(kg(nt,{cursor:"pointer"}),nt.onclick=function(){return Wo(F,void 0,void 0,function(){return Yo(this,function(ut){switch(ut.label){case 0:return[4,Gy(c,S)];case 1:return ut.sent(),[2]}})})})}(t,e),[4,Xy(t)]);case 3:i.sent(),e.addEventListener,t._options.keyboardNavigation&&Xf.on(window,"keydown",w6,t,!0),Xf.on(window,"resize",A6,t,!0),i.label=4;case 4:return[2,!1]}})})}function P6(t,e,n){return t[e]=n,t}var L5=function(){function t(e){this._currentStep=-1,this._introItems=[],this._hintItems=[],this._targetElement=e,this._options={steps:[],hints:[],isActive:!0,nextLabel:"Next",prevLabel:"Back",skipLabel:"\xD7",doneLabel:"Done",hidePrev:!1,hideNext:!1,nextToDone:!0,tooltipPosition:"bottom",tooltipClass:"",group:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!1,stepNumbersOfLabel:"of",keyboardNavigation:!0,showButtons:!0,showBullets:!0,showProgress:!1,scrollToElement:!0,scrollTo:"element",scrollPadding:30,overlayOpacity:.5,autoPosition:!0,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1,dontShowAgain:!1,dontShowAgainLabel:"Don't show this again",dontShowAgainCookie:"introjs-dontShowAgain",dontShowAgainCookieDays:365,helperElementPadding:10,hintPosition:"top-middle",hintButtonLabel:"Got it",hintShowButton:!0,hintAutoRefreshInterval:10,hintAnimation:!0,buttonClass:"introjs-button",progressBarAdditionalClass:!1}}return t.prototype.isActive=function(){return(!this._options.dontShowAgain||(e=f6(this._options.dontShowAgainCookie))===""||e!=="true")&&this._options.isActive;var e},t.prototype.clone=function(){return new t(this._targetElement)},t.prototype.setOption=function(e,n){return this._options=P6(this._options,e,n),this},t.prototype.setOptions=function(e){return this._options=function(n,i){for(var c=0,S=Object.entries(i);c<S.length;c++){var F=S[c];n=P6(n,F[0],F[1])}return n}(this._options,e),this},t.prototype.start=function(){return Wo(this,void 0,void 0,function(){return Yo(this,function(e){switch(e.label){case 0:return[4,KW(this,this._targetElement)];case 1:return e.sent(),[2,this]}})})},t.prototype.goToStep=function(e){return Wo(this,void 0,void 0,function(){return Yo(this,function(n){switch(n.label){case 0:return[4,YW(this,e)];case 1:return n.sent(),[2,this]}})})},t.prototype.addStep=function(e){return this._options.steps||(this._options.steps=[]),this._options.steps.push(e),this},t.prototype.addSteps=function(e){if(!e.length)return this;for(var n=0;n<e.length;n++)this.addStep(e[n]);return this},t.prototype.goToStepNumber=function(e){return Wo(this,void 0,void 0,function(){return Yo(this,function(n){switch(n.label){case 0:return[4,qW(this,e)];case 1:return n.sent(),[2,this]}})})},t.prototype.nextStep=function(){return Wo(this,void 0,void 0,function(){return Yo(this,function(e){switch(e.label){case 0:return[4,Xy(this)];case 1:return e.sent(),[2,this]}})})},t.prototype.previousStep=function(){return Wo(this,void 0,void 0,function(){return Yo(this,function(e){switch(e.label){case 0:return[4,_k(this)];case 1:return e.sent(),[2,this]}})})},t.prototype.currentStep=function(){return this._currentStep},t.prototype.exit=function(e){return Wo(this,void 0,void 0,function(){return Yo(this,function(n){switch(n.label){case 0:return[4,Gy(this,this._targetElement,e)];case 1:return n.sent(),[2,this]}})})},t.prototype.refresh=function(e){return T6(this,e),this},t.prototype.setDontShowAgain=function(e){return VW(this,e),this},t.prototype.onbeforechange=function(e){if(!va(e))throw new Error("Provided callback for onbeforechange was not a function");return this._introBeforeChangeCallback=e,this},t.prototype.onchange=function(e){if(!va(e))throw new Error("Provided callback for onchange was not a function.");return this._introChangeCallback=e,this},t.prototype.onafterchange=function(e){if(!va(e))throw new Error("Provided callback for onafterchange was not a function");return this._introAfterChangeCallback=e,this},t.prototype.oncomplete=function(e){if(!va(e))throw new Error("Provided callback for oncomplete was not a function.");return this._introCompleteCallback=e,this},t.prototype.onhintsadded=function(e){if(!va(e))throw new Error("Provided callback for onhintsadded was not a function.");return this._hintsAddedCallback=e,this},t.prototype.onhintclick=function(e){if(!va(e))throw new Error("Provided callback for onhintclick was not a function.");return this._hintClickCallback=e,this},t.prototype.onhintclose=function(e){if(!va(e))throw new Error("Provided callback for onhintclose was not a function.");return this._hintCloseCallback=e,this},t.prototype.onstart=function(e){if(!va(e))throw new Error("Provided callback for onstart was not a function.");return this._introStartCallback=e,this},t.prototype.onexit=function(e){if(!va(e))throw new Error("Provided callback for onexit was not a function.");return this._introExitCallback=e,this},t.prototype.onskip=function(e){if(!va(e))throw new Error("Provided callback for onskip was not a function.");return this._introSkipCallback=e,this},t.prototype.onbeforeexit=function(e){if(!va(e))throw new Error("Provided callback for onbeforeexit was not a function.");return this._introBeforeExitCallback=e,this},t.prototype.addHints=function(){return Wo(this,void 0,void 0,function(){return Yo(this,function(e){switch(e.label){case 0:return[4,M6(this,this._targetElement)];case 1:return e.sent(),[2,this]}})})},t.prototype.hideHint=function(e){return Wo(this,void 0,void 0,function(){return Yo(this,function(n){switch(n.label){case 0:return[4,R5(this,e)];case 1:return n.sent(),[2,this]}})})},t.prototype.hideHints=function(){return Wo(this,void 0,void 0,function(){return Yo(this,function(e){switch(e.label){case 0:return[4,$W(this)];case 1:return e.sent(),[2,this]}})})},t.prototype.showHint=function(e){return _6(e),this},t.prototype.showHints=function(){return Wo(this,void 0,void 0,function(){return Yo(this,function(e){switch(e.label){case 0:return[4,XW(this)];case 1:return e.sent(),[2,this]}})})},t.prototype.removeHints=function(){return function(e){for(var n=0,i=Ub(".introjs-hint");n<i.length;n++){var c=i[n].getAttribute("data-step");c&&S6(parseInt(c,10))}Xf.off(document,"click",Sk,e,!1),Xf.off(window,"resize",Ek,e,!0),e._hintsAutoRefreshFunction&&Xf.off(window,"scroll",e._hintsAutoRefreshFunction,e,!0)}(this),this},t.prototype.removeHint=function(e){return S6(e),this},t.prototype.showHintDialog=function(e){return Wo(this,void 0,void 0,function(){return Yo(this,function(n){switch(n.label){case 0:return[4,C6(this,e)];case 1:return n.sent(),[2,this]}})})},t}(),Ck=function t(e){var n;if(gk(e)==="object")n=new L5(e);else if(typeof e=="string"){var i=document.querySelector(e);if(!i)throw new Error("There is no element with given selector.");n=new L5(i)}else n=new L5(document.body);return t.instances[A5(n,"introjs-instance")]=n,n};Ck.version="7.2.0",Ck.instances={};var ZW=Fn(238);const O6=yi.oneOf(["top","right","bottom","left","bottom-left-aligned","bottom-middle-aligned","bottom-right-aligned","top-left-aligned","top-middle-aligned","top-right-aligned","auto"]),N6=yi.oneOf(["top-middle","top-left","top-right","bottom-left","bottom-right","bottom-middle","middle-left","middle-right","middle-middle"]),D6=yi.shape({nextLabel:yi.string,prevLabel:yi.string,skipLabel:yi.string,doneLabel:yi.string,hidePrev:yi.bool,hideNext:yi.bool,tooltipPosition:O6,tooltipClass:yi.string,highlightClass:yi.string,exitOnEsc:yi.bool,exitOnOverlayClick:yi.bool,showStepNumbers:yi.bool,keyboardNavigation:yi.bool,showButtons:yi.bool,showBullets:yi.bool,showProgress:yi.bool,scrollToElement:yi.bool,overlayOpacity:yi.number,scrollPadding:yi.number,positionPrecedence:yi.arrayOf(yi.string),disableInteraction:yi.bool,hintPosition:N6,hintButtonLabel:yi.string,hintAnimation:yi.bool}),R6={hidePrev:!0,hideNext:!0};function L6(){return typeof window=="undefined"}class I5 extends W.Component{constructor(n){super(n);lo(this,"onExit",()=>{const{onExit:n}=this.props;this.isVisible=!1,n(this.introJs._currentStep)});lo(this,"onBeforeExit",()=>{const{onBeforeExit:n}=this.props;return n?n(this.introJs._currentStep):!0});lo(this,"onBeforeChange",n=>{if(!this.isVisible)return!0;const{onBeforeChange:i,onPreventChange:c}=this.props;if(i){const S=i(this.introJs._currentStep,n);return S===!1&&c&&setTimeout(()=>{c(this.introJs._currentStep)},0),S}return!0});lo(this,"onAfterChange",n=>{if(!this.isVisible)return;const{onAfterChange:i}=this.props;i&&i(this.introJs._currentStep,n)});lo(this,"onChange",n=>{if(!this.isVisible)return;const{onChange:i}=this.props;i&&i(this.introJs._currentStep,n)});lo(this,"onComplete",()=>{const{onComplete:n}=this.props;n&&n()});lo(this,"updateStepElement",n=>{const i=document.querySelector(this.introJs._options.steps[n].element);i&&(this.introJs._introItems[n].element=i,this.introJs._introItems[n].position=this.introJs._options.steps[n].position||"auto")});this.introJs=null,this.isConfigured=!1,this.isVisible=!1,this.installIntroJs()}componentDidMount(){this.props.enabled&&(this.configureIntroJs(),this.renderSteps())}componentDidUpdate(n){const{enabled:i,steps:c,options:S}=this.props;(!this.isConfigured||n.steps!==c||n.options!==S)&&(this.configureIntroJs(),this.renderSteps()),n.enabled!==i&&this.renderSteps()}componentWillUnmount(){this.introJs.exit()}installIntroJs(){L6()||(this.introJs=Ck(),this.introJs.onexit(this.onExit),this.introJs.onbeforeexit(this.onBeforeExit),this.introJs.onbeforechange(this.onBeforeChange),this.introJs.onafterchange(this.onAfterChange),this.introJs.onchange(this.onChange),this.introJs.oncomplete(this.onComplete))}configureIntroJs(){const{options:n,steps:i}=this.props,c=i.map(S=>(0,W.isValidElement)(S.intro)?Mi(xr({},S),{intro:(0,ZW.qV)(S.intro)}):S);this.introJs.setOptions(Mi(xr({},n),{steps:c})),this.isConfigured=!0}renderSteps(){const{enabled:n,initialStep:i,steps:c,onStart:S}=this.props;n&&c.length>0&&!this.isVisible?(this.introJs.start(),this.isVisible=!0,this.introJs.goToStepNumber(i+1),S&&S(this.introJs._currentStep)):!n&&this.isVisible&&(this.isVisible=!1,this.introJs.exit())}render(){return null}}lo(I5,"propTypes",{enabled:yi.bool,initialStep:yi.number.isRequired,steps:yi.arrayOf(yi.shape({element:yi.oneOfType([yi.string,typeof Element=="undefined"?yi.any:yi.instanceOf(Element)]),intro:yi.node.isRequired,position:O6,tooltipClass:yi.string,highlightClass:yi.string})).isRequired,onStart:yi.func,onExit:yi.func.isRequired,onBeforeExit:yi.func,onBeforeChange:yi.func,onAfterChange:yi.func,onChange:yi.func,onPreventChange:yi.func,onComplete:yi.func,options:D6}),lo(I5,"defaultProps",{enabled:!1,onStart:null,onBeforeExit:null,onBeforeChange:null,onAfterChange:null,onChange:null,onPreventChange:null,onComplete:null,options:R6});class I6 extends W.Component{constructor(e){super(e),this.introJs=null,this.isConfigured=!1,this.installIntroJs()}componentDidMount(){this.props.enabled&&(this.configureIntroJs(),this.renderHints())}componentDidUpdate(e){const{enabled:n,hints:i,options:c}=this.props;(!this.isConfigured||e.hints!==i||e.options!==c)&&(this.configureIntroJs(),this.renderHints()),e.enabled!==n&&this.renderHints()}componentWillUnmount(){this.introJs.hideHints()}installIntroJs(){if(L6())return;this.introJs=Ck();const{onClick:e,onClose:n}=this.props;e&&this.introJs.onhintclick(e),n&&this.introJs.onhintclose(n)}configureIntroJs(){const{options:e,hints:n}=this.props;this.introJs.removeHints(),this.introJs.setOptions(Mi(xr({},e),{hints:n})),this.isConfigured=!0}renderHints(){const{enabled:e,hints:n}=this.props;e&&n.length>0?this.introJs.showHints():e||this.introJs.hideHints()}render(){return null}}lo(I6,"propTypes",{enabled:yi.bool,hints:yi.arrayOf(yi.shape({element:yi.string.isRequired,hint:yi.string.isRequired,hintPosition:N6})).isRequired,onClick:yi.func,onClose:yi.func,options:D6}),lo(I6,"defaultProps",{enabled:!1,onClick:null,onClose:null,options:R6});const sX={STEP_1:".content__hero",STEP_2:".m-pagination__btn-next",STEP_3:".saved__search-panel div:nth-child(2)",STEP_4:".back-to-results"},ml={STEP_1:{selector:".content",label:"Index"},STEP_2:{selector:"header.content__hero .m-list--horizontal",label:"Help Links"},STEP_3:{selector:".tabbed-navigation",label:"Views"},STEP_4:{selector:".filter-panel",label:"Filters"},STEP_5:{selector:".date-filter",label:"Date Received"},STEP_6:{selector:".filter-panel .aggregation.product",label:"Product/Issue"},STEP_7:{selector:".filter-panel .aggregation button",label:"Show/Hide"},STEP_8:{selector:".search-bar",label:"Search Bar"},STEP_9:{selector:"#search-summary h2",label:"Search Summary"},STEP_10:{selector:".export-results button.export-btn",label:"Export Data"},STEP_11:{selector:".export-results button.print-preview",label:"Print Page"},STEP_12:{selector:".map-shading",label:"Map Shading"},STEP_13:{selector:"#tile-chart-map",label:"Tile Map"},STEP_14:{selector:".row-chart-section",label:"Row Charts"},STEP_15:{selector:".tabbed-navigation",label:"Tabbed Navigation"}},Ns={STEP_1:{selector:".content",label:"Index"},STEP_2:{selector:"header.content__hero .m-list--horizontal",label:"Help Links"},STEP_3:{selector:".tabbed-navigation",label:"Views"},STEP_4:{selector:".filter-panel",label:"Filters"},STEP_5:{selector:".date-filter",label:"Date Received"},STEP_6:{selector:".filter-panel .aggregation.product",label:"Product/Issue"},STEP_7:{selector:".filter-panel .aggregation button",label:"Show/Hide"},STEP_8:{selector:".search-bar",label:"Search Bar"},STEP_9:{selector:"#search-summary h2",label:"Search Summary"},STEP_10:{selector:".export-results button.export-btn",label:"Export Data"},STEP_11:{selector:".export-results button.print-preview",label:"Print Page"},STEP_12:{selector:'[data-tour="select-size"]',label:"Show Number"},STEP_13:{selector:'[data-tour="select-sort"]',label:"Sort Results"},STEP_14:{selector:".refine-bar section.m-btn-group",label:"Show Narratives"},STEP_15:{selector:".cards-panel",label:"Results"},STEP_16:{selector:".to-detail",label:"View Detailed Complaints"},STEP_17:{selector:".tabbed-navigation",label:"Tabbed Navigation"}},gl={STEP_1:{selector:".content",label:"Index"},STEP_2:{selector:"header.content__hero .m-list--horizontal",label:"Help Links"},STEP_3:{selector:".tabbed-navigation",label:"Views"},STEP_4:{selector:".filter-panel",label:"Filters"},STEP_5:{selector:".date-filter",label:"Date Received"},STEP_6:{selector:".filter-panel .aggregation.product",label:"Product/Issue"},STEP_7:{selector:".filter-panel .aggregation button",label:"Show/Hide"},STEP_8:{selector:".search-bar",label:"Search Bar"},STEP_9:{selector:"#search-summary h2",label:"Search Summary"},STEP_10:{selector:".export-results button.export-btn",label:"Export Data"},STEP_11:{selector:".export-results button.print-preview",label:"Print Page"},STEP_12:{selector:'[data-tour="select-lens"]',label:"Aggregate By"},STEP_13:{selector:'[data-tour="select-interval"]',label:"Date Interval"},STEP_14:{selector:".row-chart-section",label:"Row Charts"},STEP_15:{selector:".tabbed-navigation",label:"Tabbed Navigation"}},j5=(t,e)=>`<li><button class="a-btn a-btn--link" onclick="document.querySelectorAll('.introjs-bullets li a')[${t+1}].click()">`+e[1].label+"</button></li>";let j6="";Object.entries(ml).slice(1).forEach((t,e)=>{j6+=j5(e,t)});let B6="";Object.entries(Ns).slice(1).forEach((t,e)=>{B6+=j5(e,t)});let F6="";Object.entries(gl).slice(1).forEach((t,e)=>{F6+=j5(e,t)});const Mk={[ep]:[{element:ml.STEP_1.selector,intro:'<div><div class="left">Welcome to the Consumer Complaint Database!<br /><br />Complaints the CFPB sends to companies for response are published in the Consumer Complaint Database after the company responds, confirming a commercial relationship with the consumer, or after 15 days, whichever comes first.<br /><br />Complaints the CFPB refers to other regulators, such as complaints about depository institutions with less than $10 billion in assets, are not published in the database. This database is not a statistical sample of consumers\u2019 experiences in the marketplace.</div><div class="right"><h4>Index</h4><ul>'+j6+"</ul></div></div>",tooltipClass:"wide"},{element:ml.STEP_2.selector,intro:"These links provide more information about this database."},{element:ml.STEP_3.selector,intro:"You can change how to view complaint data by selecting the three views we have available \u2014 Trends, List, and Map.<br /><br />You are currently on the Map view, which displays complaints by state.<br /><br />To read individual complaints, select List view<br /><br />To visualize complaint data with product and issue breakdowns, select Trends view",position:"top"},{element:ml.STEP_4.selector,intro:"The \u201CFilter results by\u201D panel lets you filter complaint data. To clear filters, uncheck individual selections in the filter panel or to select \u201CClear all filters\u201D under the Search bar."},{element:ml.STEP_5.selector,intro:"You can adjust the date range of the complaint data showed using the \u201CDate CFPB received the complaint\u201D filter. <br /> The default date range is three years from today\u2019s date."},{element:ml.STEP_6.selector,intro:"You can filter complaints by the product and issue the consumer selected when they submitted their complaint.<br /><br />Expand a product or issue to see its sub-products or sub-issues, where available. "},{element:ml.STEP_7.selector,intro:"The blue show/hide icon allows you to expand or collapse specific filters."},{element:ml.STEP_8.selector,intro:"Use the \u201CSearch within\u201D bar to find specific words or phrases in complaints. By default, this will search \u201CAll data\u201D, but you can change this using the gray dropdown menu.<br /> <br />Click \u201CShow advanced search tips\u201D to see some advanced ways to refine your word search."},{element:ml.STEP_9.selector,intro:"As you apply filters and search terms, this will display how many complaints are included out of the total number of complaints published in the database."},{element:ml.STEP_10.selector,intro:"You can export full or filtered results to CSV or JSON by selecting \u201CExport data\u201D."},{element:ml.STEP_11.selector,intro:"Select \u201CPrint\u201D to generate a pdf of the current page."},{element:ml.STEP_12.selector,intro:"Map shading defaults to total complaints, but you can change this to show complaints per 1,000 population in that state."},{element:ml.STEP_13.selector,intro:"Hover over a tile on the map to view complaint information specific to that state. You can filter to see data specific to a state by selecting the state or using the filter panel."},{element:ml.STEP_14.selector,intro:"View complaint volume by product in the bar chart. Use the blue arrow by each product to view breakdowns by sub-products.<br /><br />Once the product is expanded, select the \u201CVisualize\u201D link as shown below, to view trends on sub-products and issues:"},{element:ml.STEP_15.selector,intro:"To learn how to use Trends and List views, select the view and then start the tour."}],[np]:[{element:Ns.STEP_1.selector,intro:'<div><div class="left">Welcome to the Consumer Complaint Database!<br /><br />Complaints the CFPB sends to companies for response are published in the Consumer Complaint Database after the company responds, confirming a commercial relationship with the consumer, or after 15 days, whichever comes first.<br /><br />Complaints the CFPB refers to other regulators, such as complaints about depository institutions with less than $10 billion in assets, are not published in the database. This database is not a statistical sample of consumers\u2019 experiences in the marketplace.</div><div class="right"><h4>Index</h4><ul>'+B6+"</ul></div></div>",tooltipClass:"wide"},{element:Ns.STEP_2.selector,intro:"These links provide more information about this database."},{element:Ns.STEP_3.selector,intro:"You can change how to view complaint data by selecting the three views we have available \u2014 Trends, List, and Map.<br /><br />You are currently on the List view, which shows individual complaints.<br /><br />To visualize complaint data with product and issue breakdowns, select Trends view.<br /><br />To view complaints by state, select Map view."},{element:Ns.STEP_4.selector,intro:"The \u201CFilter results by\u201D panel lets you filter complaint data. To clear filters, uncheck individual selections in the filter panel or to select \u201CClear all filters\u201D under the Search bar."},{element:Ns.STEP_5.selector,intro:"You can adjust the date range of the complaint data showed using the \u201CDate CFPB received the complaint\u201D filter. <br /> The default date range is three years from today\u2019s date."},{element:Ns.STEP_6.selector,intro:"You can filter complaints by the product and issue the consumer selected when they submitted their complaint.<br /><br />Expand a product or issue to see its sub-products or sub-issues, where available. "},{element:Ns.STEP_7.selector,intro:"The blue show/hide icon allows you to expand or collapse specific filters."},{element:Ns.STEP_8.selector,intro:"Use the \u201CSearch within\u201D bar to find specific words or phrases in complaints. By default, this will search \u201CAll data\u201D, but you can change this using the gray dropdown menu.<br /> <br />Click \u201CShow advanced search tips\u201D to see some advanced ways to refine your word search."},{element:Ns.STEP_9.selector,intro:"As you apply filters and search terms, this will display how many complaints are included out of the total number of complaints published in the database."},{element:Ns.STEP_10.selector,intro:"You can export full or filtered results to CSV or JSON by selecting \u201CExport data\u201D."},{element:Ns.STEP_11.selector,intro:"Select \u201CPrint\u201D to generate a pdf of the current page."},{element:Ns.STEP_12.selector,intro:"Select the number of complaints to view per page here."},{element:Ns.STEP_13.selector,intro:"Sort complaints in the list view by \u201CNewest to oldest,\u201D \u201COldest to newest,\u201D \u201CRelevance,\u201D and \u201CRelevance (asc).\u201D<br /><br />Relevancy are based on any applied search terms."},{element:Ns.STEP_14.selector,intro:"You can see all complaints or focus on those with consumer complaint narratives.<br /><br />We publish the consumer\u2019s narrative description of what happened from their complaint if the consumer opts to share it publicly and after taking steps to remove personal information."},{element:Ns.STEP_15.selector,intro:"These are your search results. As you apply filters and search terms, your results will display here. This view shows a preview of the complaint."},{element:Ns.STEP_16.selector,intro:"Click the blue ID number to see more details about a particular complaint."},{element:Ns.STEP_17.selector,intro:"To learn how to use Map and Trend views, select the view and then start the tour."}],[Rl]:[{element:gl.STEP_1.selector,intro:'<div><div class="left">Welcome to the Consumer Complaint Database!<br /><br />Complaints the CFPB sends to companies for response are published in the Consumer Complaint Database after the company responds, confirming a commercial relationship with the consumer, or after 15 days, whichever comes first.<br /><br />Complaints the CFPB refers to other regulators, such as complaints about depository institutions with less than $10 billion in assets, are not published in the database. This database is not a statistical sample of consumers\u2019 experiences in the marketplace.</div><div class="right"><h4>Index</h4><ul>'+F6+"</ul></div></div>",tooltipClass:"wide first-step"},{element:gl.STEP_2.selector,intro:"These links provide more information about this database."},{element:gl.STEP_3.selector,intro:"You can change how to view complaint data by selecting the three views we have available\u2014Trends, List, and Map.<br /><br />You are currently on the Trends view, which visualizes complaint data using a trend line with product and issue breakdowns.<br /><br />To read individual complaints, select List view.<br /><br />To view complaints by state, select Map view.",position:"top"},{element:gl.STEP_4.selector,intro:"The \u201CFilter results by\u201D panel lets you filter complaint data. To clear filters, uncheck individual selections in the filter panel or to select \u201CClear all filters\u201D under the Search bar."},{element:gl.STEP_5.selector,intro:"You can adjust the date range of the complaint data showed using the \u201CDate CFPB received the complaint\u201D filter. <br /> The default date range is three years from today\u2019s date."},{element:gl.STEP_6.selector,intro:"You can filter complaints by the product and issue the consumer selected when they submitted their complaint.<br /><br />Expand a product or issue to see its sub-products or sub-issues, where available. "},{element:gl.STEP_7.selector,intro:"The blue show/hide icon allows you to expand or collapse specific filters."},{element:gl.STEP_8.selector,intro:"Use the \u201CSearch within\u201D bar to find specific words or phrases in complaints. By default, this will search \u201CAll data\u201D, but you can change this using the gray dropdown menu.<br /> <br />Click \u201CShow advanced search tips\u201D to see some advanced ways to refine your word search."},{element:gl.STEP_9.selector,intro:"As you apply filters and search terms, this will display how many complaints are included out of the total number of complaints published in the database."},{element:gl.STEP_10.selector,intro:"You can export full or filtered results to CSV or JSON by selecting \u201CExport data\u201D."},{element:gl.STEP_11.selector,intro:"Select \u201CPrint\u201D to generate a pdf of the current page."},{element:gl.STEP_12.selector,intro:"Select the dropdown to aggregate the data by product or by the company to which the CFPB sent the complaint for response."},{element:gl.STEP_13.selector,intro:"Select this dropdown to change the time interval displayed on the trend line."},{element:gl.STEP_14.selector,intro:"View complaint volume by product in the bar chart. Use the blue arrow by each product to view breakdowns by sub-products.<br /><br />Once the product is expanded, select the \u201CVisualize\u201D link as shown below, to view trends on sub-products and issues:"},{element:gl.STEP_15.selector,intro:"To learn how to use List and Map views, select the view and then start the tour.",position:"top"}]},lX={};var QW=Fn(7810);const JW=()=>{const t=Si();return QW.createElement("button",{onClick:()=>t(F1()),className:"a-btn tour-button"},Wi("help-round")," Take a tour")};var kk=Fn(7810);const tY=()=>{const t=Si(),{isLoading:e,isFetching:n}=da(),{isLoading:i,isFetching:c}=S5(),{isLoading:S,isFetching:F}=MP(),{isLoading:nt,isFetching:ut}=Cg(),yt=sr(l7),_t=sr(jc),zt=sr(xg),Ht=sr(Eh),Yt=(0,W.useRef)(),re=[e,n,i,c,S,F,nt,ut].some(De=>De),ue={disableInteraction:!1,element:".filter-panel-toggle .m-btn-group .a-btn",intro:"On mobile devices, click the Filter Panel toggle button to open the Filter Panel. Please click the button to proceed."},oe={disableInteraction:!1,element:".filter-panel-toggle .m-btn-group .a-btn",intro:"Click the Filter Panel toggle button again to close the Filter Panel. Please close the Filter Panel to proceed."},de=Ht<750?Mk[_t].slice(0,3).concat(ue,Mk[_t].slice(4,7),oe,Mk[_t].slice(7)):Mk[_t],pe={disableInteraction:!0,scrollToElement:!0,scrollTo:"tooltip",showStepNumbers:!1,exitOnOverlayClick:!1,exitOnEsc:!0,nextLabel:"Next",prevLabel:"Previous",doneLabel:"End Tour",steps:de};function _e(De){if(!De.current)return;const $e=De.current.introJs.currentStep();if(!de[$e])return;de[$e].element===".row-chart-section"&&zl("#row-chart-product .tick.expandable").dispatch("click");const Ye=()=>{var tn;(tn=document.querySelector(".introjs-nextbutton"))==null||tn.setAttribute("style","display: inline"),new Promise(Cn=>{if($e===7)return Cn();const kn=setInterval(()=>{if(document.querySelector(".date-filter")!==null)return clearInterval(kn),Cn()},10)}).then(()=>{De.current.introJs.nextStep().then(()=>{document.querySelector(ue.element).removeEventListener("click",Ye)})})};Ht<750&&($e===3||$e===7)&&(document.querySelector(".introjs-nextbutton").setAttribute("style","display: none"),document.querySelector(ue.element).addEventListener("click",Ye))}function ge(De){return De.current===null||!yt?!0:De.current.introJs.currentStep()+1<de.length?window.confirm("Are you sure you want to exit the tour?"):!0}function qe(){yt&&t(pp())}return zt||re?null:kk.createElement(kk.Fragment,null,kk.createElement(JW,null),kk.createElement(I5,{enabled:yt,initialStep:0,steps:de,onExit:()=>qe(),options:pe,onBeforeChange:()=>_e(Yt),onBeforeExit:()=>ge(Yt),ref:Yt}))};var eY=Object.defineProperty,z6=Object.getOwnPropertySymbols,nY=Object.prototype.hasOwnProperty,rY=Object.prototype.propertyIsEnumerable,U6=(t,e,n)=>e in t?eY(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,iY=(t,e)=>{for(var n in e||(e={}))nY.call(e,n)&&U6(t,n,e[n]);if(z6)for(var n of z6(e))rY.call(e,n)&&U6(t,n,e[n]);return t};const oY=Fn(2169);function aY(t){const e=iY({},t),n=["search_after"],i=["size","page","trend_depth"];return n.forEach(c=>{Object.prototype.hasOwnProperty.call(e,c)&&delete e[c]}),i.forEach(c=>{Object.prototype.hasOwnProperty.call(e,c)&&(e[c]=parseInt(e[c],10))}),e}function sY(t,e){return function(n,i){const c=i(),S=aY(e),{routes:F}=c;F.path===t&&oY(F.params,S)||n(nE(t,S))}}function lY(){const t=Si(),e=Er();(0,W.useEffect)(()=>{t(sY(e.pathname,Ll.parse(e.search)))},[e,t])}function uY(){const t=sr(Eh),e=Si();(0,W.useEffect)(()=>{const n=q0(()=>{t!==window.innerWidth&&e(uy(window.innerWidth))},500);return window.addEventListener("resize",n),n(),()=>window.removeEventListener("resize",n)},[e,t])}function H6(t,e,n=!1){(0,W.useEffect)(()=>(window.addEventListener(t,e,n),function(){window.removeEventListener(t,e)}))}const uX={},cX={},hX={};var B5=Fn(7810);const V6=({fieldName:t,value:e})=>{const{data:n}=da(),i=sr(tu),c=is(n,t,[]),S=is(i,t,[]),F=qR(t),nt=e.split(Ws).pop(),ut=Si(),yt=()=>{if(t==="date_received")ut(Y1("All"));else{const _t=e;if(Um.includes(t)){const zt=CO(_t,S,c,t);ut(mp(t,zt))}else ut(Jm(t,_t))}};return B5.createElement("li",null,B5.createElement("button",{className:"pill flex-fixed",onClick:yt},B5.createElement("span",{className:"name"},F,nt),Wi("delete")))};V6.propTypes={fieldName:Rn().string.isRequired,value:Rn().string.isRequired};var Hb=Fn(7810);const cY=()=>{const t=Si(),e=sr(tu),n=sr(Ww),i=sr(xp),c=sr(bp),S=sr(q1),F=zm.filter(nt=>nt in e).reduce((nt,ut)=>{const yt=e[ut].map(_t=>({fieldName:ut,value:_t}));return nt.concat(yt)},[]);return n&&F.push({fieldName:"has_narrative",value:"Has narrative"}),(!Fr()(i).isSame(Fr()(Fm),"day")||!Fr()(c).isSame(Fr()(lp()),"day"))&&F.unshift({fieldName:"date_received",value:"Date Received: "+Fr()(i).format("M/D/YYYY")+" - "+Fr()(c).format("M/D/YYYY")}),F.length?Hb.createElement("section",{className:"pill-panel"},Hb.createElement("h3",{className:"h4 pill-label flex-fixed"},"Filters applied:"),Hb.createElement("ul",{className:"layout-row"},F.map(nt=>Hb.createElement(V6,{key:nt.fieldName+nt.value,fieldName:nt.fieldName,value:nt.value})),Hb.createElement("li",{className:"clear-all"},Hb.createElement("button",{className:"a-btn a-btn--link body-copy",onClick:()=>t(z1(S))},Wi("delete"),"Clear all filters")))):null},fX={},dX={},pX={};function hY(){const t=(0,W.useRef)(!0),e=(0,W.useRef)(()=>t.current);return(0,W.useEffect)(()=>(t.current=!0,()=>{t.current=!1}),[]),e.current}function fY(t){const e=(0,W.useRef)(t);return e.current=t,e}function dY(t){const e=fY(t);(0,W.useEffect)(()=>()=>e.current(),[])}const F5=HR(2,31)-1;function W6(t,e,n){const i=n-Date.now();t.current=i<=F5?setTimeout(e,i):setTimeout(()=>W6(t,e,n),F5)}function pY(){const t=hY(),e=(0,W.useRef)();return dY(()=>clearTimeout(e.current)),(0,W.useMemo)(()=>{const n=()=>clearTimeout(e.current);function i(c,S=0){t()&&(n(),S<=F5?e.current=setTimeout(c,S):W6(e,c,Date.now()+S))}return{set:i,clear:n,handleRef:e}},[])}var mY=function(){};function mX(t,e){return function(n,i){if(n[i]!==void 0&&!n[t])return new Error("You have provided a `"+i+"` prop to `"+e+"` "+("without an `"+t+"` handler prop. This will render a read-only field. ")+("If the field should be mutable use `"+Y6(i)+"`. ")+("Otherwise, set `"+t+"`."))}}function gX(t,e){var n={};return Object.keys(t).forEach(function(i){if(n[Y6(i)]=mY,0)var c}),n}function yX(t,e){return t[e]!==void 0}function Y6(t){return"default"+t.charAt(0).toUpperCase()+t.substr(1)}function vX(t){return!!t&&(typeof t!="function"||t.prototype&&t.prototype.isReactComponent)}function gY(t){var e=yY(t,"string");return typeof e=="symbol"?e:String(e)}function yY(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function q6(t,e,n){var i=(0,W.useRef)(t!==void 0),c=(0,W.useState)(e),S=c[0],F=c[1],nt=t!==void 0,ut=i.current;return i.current=nt,!nt&&ut&&S!==e&&F(e),[nt?t:S,(0,W.useCallback)(function(yt){for(var _t=arguments.length,zt=new Array(_t>1?_t-1:0),Ht=1;Ht<_t;Ht++)zt[Ht-1]=arguments[Ht];n&&n.apply(void 0,[yt].concat(zt)),F(yt)},[n])]}function bX(t,e){return Object.keys(e).reduce(function(n,i){var c,S=n,F=S[Utils.defaultKey(i)],nt=S[i],ut=_objectWithoutPropertiesLoose(S,[Utils.defaultKey(i),i].map(gY)),yt=e[i],_t=q6(nt,F,t[yt]),zt=_t[0],Ht=_t[1];return _extends({},ut,(c={},c[i]=zt,c[yt]=Ht,c))},t)}var xX=Fn(4839),vY="/Users/jquense/src/uncontrollable/src/uncontrollable.js";function bY(t,e,n){n===void 0&&(n=[]);var i=t.displayName||t.name||"Component",c=Utils.canAcceptRef(t),S=Object.keys(e),F=S.map(Utils.defaultKey);c||!n.length||invariant(!1);var nt=function(yt){_inheritsLoose(_t,yt);function _t(){for(var Ht,Yt=arguments.length,re=new Array(Yt),ue=0;ue<Yt;ue++)re[ue]=arguments[ue];Ht=yt.call.apply(yt,[this].concat(re))||this,Ht.handlers=Object.create(null),S.forEach(function(de){var pe=e[de],_e=function(qe){if(Ht.props[pe]){var De;Ht._notifying=!0;for(var $e=arguments.length,Ye=new Array($e>1?$e-1:0),tn=1;tn<$e;tn++)Ye[tn-1]=arguments[tn];(De=Ht.props)[pe].apply(De,[qe].concat(Ye)),Ht._notifying=!1}Ht.unmounted||Ht.setState(function(gn){var Cn,kn=gn.values;return{values:_extends(Object.create(null),kn,(Cn={},Cn[de]=qe,Cn))}})};Ht.handlers[pe]=_e}),n.length&&(Ht.attachRef=function(de){Ht.inner=de});var oe=Object.create(null);return S.forEach(function(de){oe[de]=Ht.props[Utils.defaultKey(de)]}),Ht.state={values:oe,prevProps:{}},Ht}var zt=_t.prototype;return zt.shouldComponentUpdate=function(){return!this._notifying},_t.getDerivedStateFromProps=function(Yt,re){var ue=re.values,oe=re.prevProps,de={values:_extends(Object.create(null),ue),prevProps:{}};return S.forEach(function(pe){de.prevProps[pe]=Yt[pe],!Utils.isProp(Yt,pe)&&Utils.isProp(oe,pe)&&(de.values[pe]=Yt[Utils.defaultKey(pe)])}),de},zt.componentWillUnmount=function(){this.unmounted=!0},zt.render=function(){var Yt=this,re=this.props,ue=re.innerRef,oe=_objectWithoutPropertiesLoose(re,["innerRef"]);F.forEach(function(pe){delete oe[pe]});var de={};return S.forEach(function(pe){var _e=Yt.props[pe];de[pe]=_e!==void 0?_e:Yt.state.values[pe]}),React.createElement(t,_extends({},oe,de,this.handlers,{ref:ue||this.attachRef}))},_t}(React.Component);polyfill(nt),nt.displayName="Uncontrolled("+i+")",nt.propTypes=_extends({innerRef:function(){}},Utils.uncontrolledPropTypes(e,i)),n.forEach(function(yt){nt.prototype[yt]=function(){var zt;return(zt=this.inner)[yt].apply(zt,arguments)}});var ut=nt;return React.forwardRef&&(ut=React.forwardRef(function(yt,_t){return React.createElement(nt,_extends({},yt,{innerRef:_t,__source:{fileName:vY,lineNumber:128},__self:this}))}),ut.propTypes=nt.propTypes),ut.ControlledComponent=t,ut.deferControlTo=function(yt,_t,zt){return _t===void 0&&(_t={}),bY(yt,_extends({},e,_t),zt)},ut}const $6=t=>!t||typeof t=="function"?t:e=>{t.current=e};function xY(t,e){const n=$6(t),i=$6(e);return c=>{n&&n(c),i&&i(c)}}function wY(t,e){return(0,W.useMemo)(()=>xY(t,e),[t,e])}const z5=wY;function _Y(t){return t.code==="Escape"||t.keyCode===27}function SY(){const t=W.version.split(".");return{major:+t[0],minor:+t[1],patch:+t[2]}}function U5(t){if(!t||typeof t=="function")return null;const{major:e}=SY();return e>=19?t.props.ref:t.ref}function X6(){return(0,W.useState)(null)}const G6=t=>!t||typeof t=="function"?t:e=>{t.current=e};function EY(t,e){const n=G6(t),i=G6(e);return c=>{n&&n(c),i&&i(c)}}function CY(t,e){return(0,W.useMemo)(()=>EY(t,e),[t,e])}const Tk=CY;var K6=Object.prototype.hasOwnProperty;function Z6(t,e,n){for(n of t.keys())if(C2(n,e))return n}function C2(t,e){var n,i,c;if(t===e)return!0;if(t&&e&&(n=t.constructor)===e.constructor){if(n===Date)return t.getTime()===e.getTime();if(n===RegExp)return t.toString()===e.toString();if(n===Array){if((i=t.length)===e.length)for(;i--&&C2(t[i],e[i]););return i===-1}if(n===Set){if(t.size!==e.size)return!1;for(i of t)if(c=i,c&&typeof c=="object"&&(c=Z6(e,c),!c)||!e.has(c))return!1;return!0}if(n===Map){if(t.size!==e.size)return!1;for(i of t)if(c=i[0],c&&typeof c=="object"&&(c=Z6(e,c),!c)||!C2(i[1],e.get(c)))return!1;return!0}if(n===ArrayBuffer)t=new Uint8Array(t),e=new Uint8Array(e);else if(n===DataView){if((i=t.byteLength)===e.byteLength)for(;i--&&t.getInt8(i)===e.getInt8(i););return i===-1}if(ArrayBuffer.isView(t)){if((i=t.byteLength)===e.byteLength)for(;i--&&t[i]===e[i];);return i===-1}if(!n||typeof t=="object"){i=0;for(n in t)if(K6.call(t,n)&&++i&&!K6.call(e,n)||!(n in e)||!C2(t[n],e[n]))return!1;return Object.keys(e).length===i}}return t!==t&&e!==e}function MY(){const t=(0,W.useRef)(!0),e=(0,W.useRef)(()=>t.current);return(0,W.useEffect)(()=>(t.current=!0,()=>{t.current=!1}),[]),e.current}function kY(t){const e=MY();return[t[0],(0,W.useCallback)(n=>{if(e())return t[1](n)},[e,t[1]])]}const TY=kY,AY=_C({defaultModifiers:[gb,MC,v_,SC,OC,IC,BC,UC]}),PY=["enabled","placement","strategy","modifiers"];function OY(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)>=0)continue;n[i]=t[i]}return n}const NY={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},DY={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:t})=>()=>{const{reference:e,popper:n}=t.elements;if("removeAttribute"in e){const i=(e.getAttribute("aria-describedby")||"").split(",").filter(c=>c.trim()!==n.id);i.length?e.setAttribute("aria-describedby",i.join(",")):e.removeAttribute("aria-describedby")}},fn:({state:t})=>{var e;const{popper:n,reference:i}=t.elements,c=(e=n.getAttribute("role"))==null?void 0:e.toLowerCase();if(n.id&&c==="tooltip"&&"setAttribute"in i){const S=i.getAttribute("aria-describedby");if(S&&S.split(",").indexOf(n.id)!==-1)return;i.setAttribute("aria-describedby",S?`${S},${n.id}`:n.id)}}},RY=[];function LY(t,e,n={}){let{enabled:i=!0,placement:c="bottom",strategy:S="absolute",modifiers:F=RY}=n,nt=OY(n,PY);const ut=(0,W.useRef)(F),yt=(0,W.useRef)(),_t=(0,W.useCallback)(()=>{var oe;(oe=yt.current)==null||oe.update()},[]),zt=(0,W.useCallback)(()=>{var oe;(oe=yt.current)==null||oe.forceUpdate()},[]),[Ht,Yt]=TY((0,W.useState)({placement:c,update:_t,forceUpdate:zt,attributes:{},styles:{popper:{},arrow:{}}})),re=(0,W.useMemo)(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:oe})=>{const de={},pe={};Object.keys(oe.elements).forEach(_e=>{de[_e]=oe.styles[_e],pe[_e]=oe.attributes[_e]}),Yt({state:oe,styles:de,attributes:pe,update:_t,forceUpdate:zt,placement:oe.placement})}}),[_t,zt,Yt]),ue=(0,W.useMemo)(()=>(C2(ut.current,F)||(ut.current=F),ut.current),[F]);return(0,W.useEffect)(()=>{!yt.current||!i||yt.current.setOptions({placement:c,strategy:S,modifiers:[...ue,re,NY]})},[S,c,re,i,ue]),(0,W.useEffect)(()=>{if(!(!i||t==null||e==null))return yt.current=AY(t,e,Object.assign({},nt,{placement:c,strategy:S,modifiers:[...ue,DY,re]})),()=>{yt.current!=null&&(yt.current.destroy(),yt.current=void 0,Yt(oe=>Object.assign({},oe,{attributes:{},styles:{popper:{}}})))}},[i,t,e]),Ht}const IY=LY;function jY(t){const e=(0,W.useRef)(t);return(0,W.useEffect)(()=>{e.current=t},[t]),e}const BY=jY;function M2(t){const e=BY(t);return(0,W.useCallback)(function(...n){return e.current&&e.current(...n)},[e])}const Q6=()=>{};function FY(t){return t.button===0}function zY(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}const Ak=t=>t&&("current"in t?t.current:t),J6={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function UY(t,e=Q6,{disabled:n,clickTrigger:i="click"}={}){const c=(0,W.useRef)(!1),S=(0,W.useRef)(!1),F=(0,W.useCallback)(yt=>{const _t=Ak(t);wp()(!!_t,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),c.current=!_t||zY(yt)||!FY(yt)||!!Ay(_t,yt.target)||S.current,S.current=!1},[t]),nt=M2(yt=>{const _t=Ak(t);_t&&Ay(_t,yt.target)?S.current=!0:S.current=!1}),ut=M2(yt=>{c.current||e(yt)});(0,W.useEffect)(()=>{var yt,_t;if(n||t==null)return;const zt=Py(Ak(t)),Ht=zt.defaultView||window;let Yt=(yt=Ht.event)!=null?yt:(_t=Ht.parent)==null?void 0:_t.event,re=null;J6[i]&&(re=Ku(zt,J6[i],nt,!0));const ue=Ku(zt,i,F,!0),oe=Ku(zt,i,pe=>{if(pe===Yt){Yt=void 0;return}ut(pe)});let de=[];return"ontouchstart"in zt.documentElement&&(de=[].slice.call(zt.body.children).map(pe=>Ku(pe,"mousemove",Q6))),()=>{re==null||re(),ue(),oe(),de.forEach(pe=>pe())}},[t,n,i,F,nt,ut])}const HY=UY,VY=()=>{};function WY(t,e,{disabled:n,clickTrigger:i}={}){const c=e||VY;HY(t,c,{disabled:n,clickTrigger:i});const S=M2(F=>{_Y(F)&&c(F)});(0,W.useEffect)(()=>{if(n||t==null)return;const F=Py(Ak(t));let nt=(F.defaultView||window).event;const ut=Ku(F,"keyup",yt=>{if(yt===nt){nt=void 0;return}S(yt)});return()=>{ut()}},[t,n,S])}const YY=WY,tR=(0,W.createContext)(k_?window:void 0),wX=tR.Provider;function qY(){return(0,W.useContext)(tR)}const H5=(t,e)=>k_?t==null?(e||Py()).body:(typeof t=="function"&&(t=t()),t&&"current"in t&&(t=t.current),t&&("nodeType"in t||t.getBoundingClientRect)?t:null):null;function eR(t,e){const n=qY(),[i,c]=(0,W.useState)(()=>H5(t,n==null?void 0:n.document));if(!i){const S=H5(t);S&&c(S)}return(0,W.useEffect)(()=>{e&&i&&e(i)},[e,i]),(0,W.useEffect)(()=>{const S=H5(t);S!==i&&c(S)},[t,i]),i}function $Y(t){const e={};return Array.isArray(t)?(t==null||t.forEach(n=>{e[n.name]=n}),e):t||e}function XY(t={}){return Array.isArray(t)?t:Object.keys(t).map(e=>(t[e].name=e,t[e]))}function GY({enabled:t,enableEvents:e,placement:n,flip:i,offset:c,fixed:S,containerPadding:F,arrowElement:nt,popperConfig:ut={}}){var yt,_t,zt,Ht,Yt;const re=$Y(ut.modifiers);return Object.assign({},ut,{placement:n,enabled:t,strategy:S?"fixed":ut.strategy,modifiers:XY(Object.assign({},re,{eventListeners:{enabled:e,options:(yt=re.eventListeners)==null?void 0:yt.options},preventOverflow:Object.assign({},re.preventOverflow,{options:F?Object.assign({padding:F},(_t=re.preventOverflow)==null?void 0:_t.options):(zt=re.preventOverflow)==null?void 0:zt.options}),offset:{options:Object.assign({offset:c},(Ht=re.offset)==null?void 0:Ht.options)},arrow:Object.assign({},re.arrow,{enabled:!!nt,options:Object.assign({},(Yt=re.arrow)==null?void 0:Yt.options,{element:nt})}),flip:Object.assign({enabled:!!i},re.flip)}))})}const KY=typeof Fn.g!="undefined"&&Fn.g.navigator&&Fn.g.navigator.product==="ReactNative",nR=typeof document!="undefined"||KY?W.useLayoutEffect:W.useEffect;function ZY({children:t,in:e,onExited:n,mountOnEnter:i,unmountOnExit:c}){const S=(0,W.useRef)(null),F=(0,W.useRef)(e),nt=M2(n);(0,W.useEffect)(()=>{e?F.current=!0:nt(S.current)},[e,nt]);const ut=Tk(S,t.ref),yt=(0,W.cloneElement)(t,{ref:ut});return e?yt:c||!F.current&&i?null:yt}const QY=ZY,JY=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function tq(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)>=0)continue;n[i]=t[i]}return n}function eq(t){let{onEnter:e,onEntering:n,onEntered:i,onExit:c,onExiting:S,onExited:F,addEndListener:nt,children:ut}=t,yt=tq(t,JY);const _t=(0,W.useRef)(null),zt=Tk(_t,U5(ut)),Ht=ge=>qe=>{ge&&_t.current&&ge(_t.current,qe)},Yt=(0,W.useCallback)(Ht(e),[e]),re=(0,W.useCallback)(Ht(n),[n]),ue=(0,W.useCallback)(Ht(i),[i]),oe=(0,W.useCallback)(Ht(c),[c]),de=(0,W.useCallback)(Ht(S),[S]),pe=(0,W.useCallback)(Ht(F),[F]),_e=(0,W.useCallback)(Ht(nt),[nt]);return Object.assign({},yt,{nodeRef:_t},e&&{onEnter:Yt},n&&{onEntering:re},i&&{onEntered:ue},c&&{onExit:oe},S&&{onExiting:de},F&&{onExited:pe},nt&&{addEndListener:_e},{children:typeof ut=="function"?(ge,qe)=>ut(ge,Object.assign({},qe,{ref:zt})):(0,W.cloneElement)(ut,{ref:zt})})}var Ds=Fn(4922);const nq=["component"];function rq(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)>=0)continue;n[i]=t[i]}return n}const iq=W.forwardRef((t,e)=>{let{component:n}=t,i=rq(t,nq);const c=eq(i);return(0,Ds.jsx)(n,Object.assign({ref:e},c))});function oq({in:t,onTransition:e}){const n=(0,W.useRef)(null),i=(0,W.useRef)(!0),c=M2(e);return nR(()=>{if(!n.current)return;let S=!1;return c({in:t,element:n.current,initial:i.current,isStale:()=>S}),()=>{S=!0}},[t,c]),nR(()=>(i.current=!1,()=>{i.current=!0}),[]),n}function aq({children:t,in:e,onExited:n,onEntered:i,transition:c}){const[S,F]=(0,W.useState)(!e);e&&S&&F(!1);const nt=oq({in:!!e,onTransition:yt=>{const _t=()=>{yt.isStale()||(yt.in?i==null||i(yt.element,yt.initial):(F(!0),n==null||n(yt.element)))};Promise.resolve(c(yt)).then(_t,zt=>{throw yt.in||F(!0),zt})}}),ut=Tk(nt,t.ref);return S&&!e?null:(0,W.cloneElement)(t,{ref:ut})}function sq(t,e,n){return t?(0,Ds.jsx)(iq,Object.assign({},n,{component:t})):e?(0,Ds.jsx)(aq,Object.assign({},n,{transition:e})):(0,Ds.jsx)(QY,Object.assign({},n))}const rR=W.forwardRef((t,e)=>{const{flip:n,offset:i,placement:c,containerPadding:S,popperConfig:F={},transition:nt,runTransition:ut}=t,[yt,_t]=X6(),[zt,Ht]=X6(),Yt=Tk(_t,e),re=eR(t.container),ue=eR(t.target),[oe,de]=(0,W.useState)(!t.show),pe=IY(ue,yt,GY({placement:c,enableEvents:!!t.show,containerPadding:S||5,flip:n,offset:i,arrowElement:zt,popperConfig:F}));t.show&&oe&&de(!1);const _e=(...Cn)=>{de(!0),t.onExited&&t.onExited(...Cn)},ge=t.show||!oe;if(YY(yt,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!ge)return null;const{onExit:qe,onExiting:De,onEnter:$e,onEntering:Ye,onEntered:tn}=t;let gn=t.children(Object.assign({},pe.attributes.popper,{style:pe.styles.popper,ref:Yt}),{popper:pe,placement:c,show:!!t.show,arrowProps:Object.assign({},pe.attributes.arrow,{style:pe.styles.arrow,ref:Ht})});return gn=sq(nt,ut,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:gn,onExit:qe,onExiting:De,onExited:_e,onEnter:$e,onEntering:Ye,onEntered:tn}),re?_.createPortal(gn,re):null});rR.displayName="Overlay";const lq=rR,uq=typeof Fn.g!="undefined"&&Fn.g.navigator&&Fn.g.navigator.product==="ReactNative",cq=typeof document!="undefined"||uq?W.useLayoutEffect:W.useEffect;function iR(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}const oR=["xxl","xl","lg","md","sm","xs"],aR="xs",k2=W.createContext({prefixes:{},breakpoints:oR,minBreakpoint:aR}),{Consumer:CX,Provider:hq}=k2;function MX({prefixes:t={},breakpoints:e=oR,minBreakpoint:n=aR,dir:i,children:c}){const S=useMemo(()=>({prefixes:xr({},t),breakpoints:e,minBreakpoint:n,dir:i}),[t,e,n,i]);return _jsx(hq,{value:S,children:c})}function Ky(t,e){const{prefixes:n}=(0,W.useContext)(k2);return t||n[e]||e}function kX(){const{breakpoints:t}=useContext(k2);return t}function TX(){const{minBreakpoint:t}=useContext(k2);return t}function sR(){const{dir:t}=(0,W.useContext)(k2);return t==="rtl"}function AX(t,e){typeof e=="string"&&(e={prefix:e});const n=t.prototype&&t.prototype.isReactComponent,{prefix:i,forwardRefAs:c=n?"ref":"innerRef"}=e,S=React.forwardRef((ut,nt)=>{var F=io(ut,[]);F[c]=nt;const yt=Ky(F.bsPrefix,i);return _jsx(t,Mi(xr({},F),{bsPrefix:yt}))});return S.displayName=`Bootstrap(${t.displayName||t.name})`,S}const PX=null,lR=W.forwardRef((S,c)=>{var F=S,{className:t,bsPrefix:e,as:n="div"}=F,i=io(F,["className","bsPrefix","as"]);return e=Ky(e,"popover-header"),(0,Ds.jsx)(n,xr({ref:c,className:os()(t,e)},i))});lR.displayName="PopoverHeader";const fq=lR,uR=W.forwardRef((S,c)=>{var F=S,{className:t,bsPrefix:e,as:n="div"}=F,i=io(F,["className","bsPrefix","as"]);return e=Ky(e,"popover-body"),(0,Ds.jsx)(n,xr({ref:c,className:os()(t,e)},i))});uR.displayName="PopoverBody";const cR=uR;class OX extends W.Component{}function hR(t,e){let n=t;return t==="left"?n=e?"end":"start":t==="right"&&(n=e?"start":"end"),n}function fR(t="absolute"){return{position:t,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const dq=Object.assign(W.forwardRef((Ht,zt)=>{var Yt=Ht,{bsPrefix:t,placement:e="right",className:n,style:i,children:c,body:S,arrowProps:F,hasDoneInitialMeasure:nt,popper:ut,show:yt}=Yt,_t=io(Yt,["bsPrefix","placement","className","style","children","body","arrowProps","hasDoneInitialMeasure","popper","show"]);const re=Ky(t,"popover"),ue=sR(),[oe]=(e==null?void 0:e.split("-"))||[],de=hR(oe,ue);let pe=i;return yt&&!nt&&(pe=xr(xr({},i),fR(ut==null?void 0:ut.strategy))),(0,Ds.jsxs)("div",Mi(xr({ref:zt,role:"tooltip",style:pe,"x-placement":oe,className:os()(n,re,oe&&`bs-popover-${de}`)},_t),{children:[(0,Ds.jsx)("div",xr({className:"popover-arrow"},F)),S?(0,Ds.jsx)(cR,{children:c}):c]}))}),{Header:fq,Body:cR,POPPER_OFFSET:[0,8]}),dR=W.forwardRef((zt,_t)=>{var Ht=zt,{bsPrefix:t,placement:e="right",className:n,style:i,children:c,arrowProps:S,hasDoneInitialMeasure:F,popper:nt,show:ut}=Ht,yt=io(Ht,["bsPrefix","placement","className","style","children","arrowProps","hasDoneInitialMeasure","popper","show"]);t=Ky(t,"tooltip");const Yt=sR(),[re]=(e==null?void 0:e.split("-"))||[],ue=hR(re,Yt);let oe=i;return ut&&!F&&(oe=xr(xr({},i),fR(nt==null?void 0:nt.strategy))),(0,Ds.jsxs)("div",Mi(xr({ref:_t,style:oe,role:"tooltip","x-placement":re,className:os()(n,t,`bs-tooltip-${ue}`)},yt),{children:[(0,Ds.jsx)("div",xr({className:"tooltip-arrow"},S)),(0,Ds.jsx)("div",{className:`${t}-inner`,children:c})]}))});dR.displayName="Tooltip";const pR=Object.assign(dR,{TOOLTIP_OFFSET:[0,6]});function pq(t){const e=(0,W.useRef)(null),n=Ky(void 0,"popover"),i=Ky(void 0,"tooltip"),c=(0,W.useMemo)(()=>({name:"offset",options:{offset:()=>{if(t)return t;if(e.current){if(iR(e.current,n))return dq.POPPER_OFFSET;if(iR(e.current,i))return pR.TOOLTIP_OFFSET}return[0,0]}}}),[t,n,i]);return[e,[c]]}function mq(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.includes(i))continue;n[i]=t[i]}return n}function V5(t,e){return V5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},V5(t,e)}function gq(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,V5(t,e)}const mR={disabled:!1},gR=W.createContext(null);var yq=function(e){return e.scrollTop},T2="unmounted",Zy="exited",Tg="entering",Qy="entered",W5="exiting",zp=function(t){gq(e,t);function e(i,c){var S;S=t.call(this,i,c)||this;var F=c,nt=F&&!F.isMounting?i.enter:i.appear,ut;return S.appearStatus=null,i.in?nt?(ut=Zy,S.appearStatus=Tg):ut=Qy:i.unmountOnExit||i.mountOnEnter?ut=T2:ut=Zy,S.state={status:ut},S.nextCallback=null,S}e.getDerivedStateFromProps=function(c,S){var F=c.in;return F&&S.status===T2?{status:Zy}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(c){var S=null;if(c!==this.props){var F=this.state.status;this.props.in?F!==Tg&&F!==Qy&&(S=Tg):(F===Tg||F===Qy)&&(S=W5)}this.updateStatus(!1,S)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var c=this.props.timeout,S,F,nt;return S=F=nt=c,c!=null&&typeof c!="number"&&(S=c.exit,F=c.enter,nt=c.appear!==void 0?c.appear:F),{exit:S,enter:F,appear:nt}},n.updateStatus=function(c,S){if(c===void 0&&(c=!1),S!==null)if(this.cancelNextCallback(),S===Tg){if(this.props.unmountOnExit||this.props.mountOnEnter){var F=this.props.nodeRef?this.props.nodeRef.current:_.findDOMNode(this);F&&yq(F)}this.performEnter(c)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Zy&&this.setState({status:T2})},n.performEnter=function(c){var S=this,F=this.props.enter,nt=this.context?this.context.isMounting:c,ut=this.props.nodeRef?[nt]:[_.findDOMNode(this),nt],yt=ut[0],_t=ut[1],zt=this.getTimeouts(),Ht=nt?zt.appear:zt.enter;if(!c&&!F||mR.disabled){this.safeSetState({status:Qy},function(){S.props.onEntered(yt)});return}this.props.onEnter(yt,_t),this.safeSetState({status:Tg},function(){S.props.onEntering(yt,_t),S.onTransitionEnd(Ht,function(){S.safeSetState({status:Qy},function(){S.props.onEntered(yt,_t)})})})},n.performExit=function(){var c=this,S=this.props.exit,F=this.getTimeouts(),nt=this.props.nodeRef?void 0:_.findDOMNode(this);if(!S||mR.disabled){this.safeSetState({status:Zy},function(){c.props.onExited(nt)});return}this.props.onExit(nt),this.safeSetState({status:W5},function(){c.props.onExiting(nt),c.onTransitionEnd(F.exit,function(){c.safeSetState({status:Zy},function(){c.props.onExited(nt)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(c,S){S=this.setNextCallback(S),this.setState(c,S)},n.setNextCallback=function(c){var S=this,F=!0;return this.nextCallback=function(nt){F&&(F=!1,S.nextCallback=null,c(nt))},this.nextCallback.cancel=function(){F=!1},this.nextCallback},n.onTransitionEnd=function(c,S){this.setNextCallback(S);var F=this.props.nodeRef?this.props.nodeRef.current:_.findDOMNode(this),nt=c==null&&!this.props.addEndListener;if(!F||nt){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var ut=this.props.nodeRef?[this.nextCallback]:[F,this.nextCallback],yt=ut[0],_t=ut[1];this.props.addEndListener(yt,_t)}c!=null&&setTimeout(this.nextCallback,c)},n.render=function(){var c=this.state.status;if(c===T2)return null;var S=this.props,F=S.children,nt=S.in,ut=S.mountOnEnter,yt=S.unmountOnExit,_t=S.appear,zt=S.enter,Ht=S.exit,Yt=S.timeout,re=S.addEndListener,ue=S.onEnter,oe=S.onEntering,de=S.onEntered,pe=S.onExit,_e=S.onExiting,ge=S.onExited,qe=S.nodeRef,De=mq(S,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return W.createElement(gR.Provider,{value:null},typeof F=="function"?F(c,De):W.cloneElement(W.Children.only(F),De))},e}(W.Component);zp.contextType=gR,zp.propTypes={};function Vb(){}zp.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vb,onEntering:Vb,onEntered:Vb,onExit:Vb,onExiting:Vb,onExited:Vb},zp.UNMOUNTED=T2,zp.EXITED=Zy,zp.ENTERING=Tg,zp.ENTERED=Qy,zp.EXITING=W5;const vq=zp;function bq(t){var e=Py(t);return e&&e.defaultView||window}function xq(t,e){return bq(t).getComputedStyle(t,e)}var wq=/([A-Z])/g;function _q(t){return t.replace(wq,"-$1").toLowerCase()}var Sq=/^ms-/;function Pk(t){return _q(t).replace(Sq,"-ms-")}var Eq=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function Cq(t){return!!(t&&Eq.test(t))}function Mq(t,e){var n="",i="";if(typeof e=="string")return t.style.getPropertyValue(Pk(e))||xq(t).getPropertyValue(Pk(e));Object.keys(e).forEach(function(c){var S=e[c];!S&&S!==0?t.style.removeProperty(Pk(c)):Cq(c)?i+=c+"("+S+") ":n+=Pk(c)+": "+S+";"}),i&&(n+="transform: "+i+";"),t.style.cssText+=";"+n}const yR=Mq;function kq(t,e,n,i){if(n===void 0&&(n=!1),i===void 0&&(i=!0),t){var c=document.createEvent("HTMLEvents");c.initEvent(e,n,i),t.dispatchEvent(c)}}function Tq(t){var e=yR(t,"transitionDuration")||"",n=e.indexOf("ms")===-1?1e3:1;return parseFloat(e)*n}function Aq(t,e,n){n===void 0&&(n=5);var i=!1,c=setTimeout(function(){i||kq(t,"transitionend",!0)},e+n),S=Ku(t,"transitionend",function(){i=!0},{once:!0});return function(){clearTimeout(c),S()}}function Pq(t,e,n,i){n==null&&(n=Tq(t)||0);var c=Aq(t,n,i),S=Ku(t,"transitionend",e);return function(){c(),S()}}function vR(t,e){const n=yR(t,e)||"",i=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*i}function Oq(t,e){const n=vR(t,"transitionDuration"),i=vR(t,"transitionDelay"),c=Pq(t,S=>{S.target===t&&(c(),e(S))},n+i)}function Nq(t){t.offsetHeight}function Ok(t){return t&&"setState"in t?_.findDOMNode(t):t!=null?t:null}const Dq=W.forwardRef((zt,_t)=>{var Ht=zt,{onEnter:t,onEntering:e,onEntered:n,onExit:i,onExiting:c,onExited:S,addEndListener:F,children:nt,childRef:ut}=Ht,yt=io(Ht,["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children","childRef"]);const Yt=(0,W.useRef)(null),re=z5(Yt,ut),ue=Ye=>{re(Ok(Ye))},oe=Ye=>tn=>{Ye&&Yt.current&&Ye(Yt.current,tn)},de=(0,W.useCallback)(oe(t),[t]),pe=(0,W.useCallback)(oe(e),[e]),_e=(0,W.useCallback)(oe(n),[n]),ge=(0,W.useCallback)(oe(i),[i]),qe=(0,W.useCallback)(oe(c),[c]),De=(0,W.useCallback)(oe(S),[S]),$e=(0,W.useCallback)(oe(F),[F]);return(0,Ds.jsx)(vq,Mi(xr({ref:_t},yt),{onEnter:de,onEntered:_e,onEntering:pe,onExit:ge,onExited:De,onExiting:qe,addEndListener:$e,nodeRef:Yt,children:typeof nt=="function"?(Ye,tn)=>nt(Ye,Mi(xr({},tn),{ref:ue})):W.cloneElement(nt,{ref:ue})}))}),Rq={[Tg]:"show",[Qy]:"show"},bR=W.forwardRef((F,S)=>{var nt=F,{className:t,children:e,transitionClasses:n={},onEnter:i}=nt,c=io(nt,["className","children","transitionClasses","onEnter"]);const ut=xr({in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},c),yt=(0,W.useCallback)((_t,zt)=>{Nq(_t),i==null||i(_t,zt)},[i]);return(0,Ds.jsx)(Dq,Mi(xr({ref:S,addEndListener:Oq},ut),{onEnter:yt,childRef:U5(e),children:(_t,zt)=>W.cloneElement(e,Mi(xr({},zt),{className:os()("fade",t,e.props.className,Rq[_t],n[_t])}))}))});bR.displayName="Fade";const xR=bR;function Lq(t,e){const{ref:n}=t,{ref:i}=e;t.ref=n.__wrapped||(n.__wrapped=c=>n(Ok(c))),e.ref=i.__wrapped||(i.__wrapped=c=>i(Ok(c)))}const wR=W.forwardRef((ut,nt)=>{var yt=ut,{children:t,transition:e=xR,popperConfig:n={},rootClose:i=!1,placement:c="top",show:S=!1}=yt,F=io(yt,["children","transition","popperConfig","rootClose","placement","show"]);const _t=(0,W.useRef)({}),[zt,Ht]=(0,W.useState)(null),[Yt,re]=pq(F.offset),ue=z5(nt,Yt),oe=e===!0?xR:e||void 0,de=P_(pe=>{Ht(pe),n==null||n.onFirstUpdate==null||n.onFirstUpdate(pe)});return cq(()=>{zt&&F.target&&(_t.current.scheduleUpdate==null||_t.current.scheduleUpdate())},[zt,F.target]),(0,W.useEffect)(()=>{S||Ht(null)},[S]),(0,Ds.jsx)(lq,Mi(xr({},F),{ref:ue,popperConfig:Mi(xr({},n),{modifiers:re.concat(n.modifiers||[]),onFirstUpdate:de}),transition:oe,rootClose:i,placement:c,show:S,children:(pe,{arrowProps:_e,popper:ge,show:qe})=>{var De;Lq(pe,_e);const $e=ge==null?void 0:ge.placement,Ye=Object.assign(_t.current,{state:ge==null?void 0:ge.state,scheduleUpdate:ge==null?void 0:ge.update,placement:$e,outOfBoundaries:(ge==null||(De=ge.state)==null||(De=De.modifiersData.hide)==null?void 0:De.isReferenceHidden)||!1,strategy:n.strategy}),tn=!!zt;return typeof t=="function"?t(Mi(xr(Mi(xr({},pe),{placement:$e,show:qe}),!e&&qe&&{className:"show"}),{popper:Ye,arrowProps:_e,hasDoneInitialMeasure:tn})):W.cloneElement(t,Mi(xr({},pe),{placement:$e,arrowProps:_e,popper:Ye,hasDoneInitialMeasure:tn,className:os()(t.props.className,!e&&qe&&"show"),style:xr(xr({},t.props.style),pe.style)}))}}))});wR.displayName="Overlay";const Iq=wR;function jq(t){return t&&typeof t=="object"?t:{show:t,hide:t}}function _R(t,e,n){const[i]=e,c=i.currentTarget,S=i.relatedTarget||i.nativeEvent[n];(!S||S!==c)&&!Ay(c,S)&&t(...e)}const RX=Rn().oneOf(["click","hover","focus"]),Bq=zt=>{var Ht=zt,{trigger:t=["hover","focus"],overlay:e,children:n,popperConfig:i={},show:c,defaultShow:S=!1,onToggle:F,delay:nt,placement:ut,flip:yt=ut&&ut.indexOf("auto")!==-1}=Ht,_t=io(Ht,["trigger","overlay","children","popperConfig","show","defaultShow","onToggle","delay","placement","flip"]);const Yt=(0,W.useRef)(null),re=z5(Yt,U5(n)),ue=pY(),oe=(0,W.useRef)(""),[de,pe]=q6(c,S,F),_e=jq(nt),{onFocus:ge,onBlur:qe,onClick:De}=typeof n!="function"?W.Children.only(n).props:{},$e=Vn=>{re(Ok(Vn))},Ye=(0,W.useCallback)(()=>{if(ue.clear(),oe.current="show",!_e.show){pe(!0);return}ue.set(()=>{oe.current==="show"&&pe(!0)},_e.show)},[_e.show,pe,ue]),tn=(0,W.useCallback)(()=>{if(ue.clear(),oe.current="hide",!_e.hide){pe(!1);return}ue.set(()=>{oe.current==="hide"&&pe(!1)},_e.hide)},[_e.hide,pe,ue]),gn=(0,W.useCallback)((...Vn)=>{Ye(),ge==null||ge(...Vn)},[Ye,ge]),Cn=(0,W.useCallback)((...Vn)=>{tn(),qe==null||qe(...Vn)},[tn,qe]),kn=(0,W.useCallback)((...Vn)=>{pe(!de),De==null||De(...Vn)},[De,pe,de]),Zn=(0,W.useCallback)((...Vn)=>{_R(Ye,Vn,"fromElement")},[Ye]),fn=(0,W.useCallback)((...Vn)=>{_R(tn,Vn,"toElement")},[tn]),jn=t==null?[]:[].concat(t),On={ref:$e};return jn.indexOf("click")!==-1&&(On.onClick=kn),jn.indexOf("focus")!==-1&&(On.onFocus=gn,On.onBlur=Cn),jn.indexOf("hover")!==-1&&(On.onMouseOver=Zn,On.onMouseOut=fn),(0,Ds.jsxs)(Ds.Fragment,{children:[typeof n=="function"?n(On):(0,W.cloneElement)(n,On),(0,Ds.jsx)(Iq,Mi(xr({},_t),{show:de,onHide:tn,flip:yt,placement:ut,popperConfig:i,target:Yt.current,children:e}))]})};var SR=Fn(7810);const Fc=({children:t,placement:e,text:n})=>SR.createElement(Bq,{placement:e,overlay:SR.createElement(pR,null,n)},t);Fc.propTypes={children:Rn().element.isRequired,placement:Rn().string,text:Rn().string.isRequired};const IX={};var _s=Fn(7810);const Wb=({id:t,notes:e,placeholderText:n,tooltipText:i})=>{const[c,S]=(0,W.useState)(!1);return _s.createElement("div",{className:"o-expandable complex-example"},_s.createElement("button",{className:"o-expandable__header","aria-expanded":c,onClick:()=>{S(!c)},title:"Expand content"},_s.createElement("h3",{className:"o-expandable__label"},"Additional information and examples"),_s.createElement("span",{className:"o-expandable__cues"},c?_s.createElement("span",{className:"o-expandable__cue-close",role:"img","aria-label":"Hide"},_s.createElement("span",{className:"u-visually-hidden-on-mobile"},Wi("up"))):_s.createElement("span",{className:"o-expandable__cue-open",role:"img","aria-label":"Show"},_s.createElement("span",{className:"u-visually-hidden-on-mobile"},Wi("down"))))),c?_s.createElement("div",{className:"o-expandable__content"},i&&n?_s.createElement(_s.Fragment,null,_s.createElement("label",{className:"descriptor",htmlFor:`example-${t}`},"Complex example:"),_s.createElement("span",{className:"u-visually-hidden"},i),_s.createElement(Fc,{text:i},n.length>30?_s.createElement("textarea",{className:"a-text-input example-input",id:`example-${t}`,rows:2,readOnly:!0,value:n}):_s.createElement("input",{className:"a-text-input example-input",id:`example-${t}`,rows:2,readOnly:!0,value:n}))):null,_s.createElement("h4",{className:"descriptor"},"Notes:"),_s.createElement("ul",{className:"m-list"},e.map((F,nt)=>_s.createElement("li",{className:"m-list__item",key:nt},F)))):null)};Wb.propTypes={id:Rn().string.isRequired,notes:Rn().array.isRequired,placeholderText:Rn().string,tooltipText:Rn().string};var Wr=Fn(7810);const Fq=()=>Wr.createElement("div",{className:"advanced-tips"},Wr.createElement("div",null,Wr.createElement("h3",null,"Search tips"),Wr.createElement("ul",{className:"m-list"},Wr.createElement("li",{className:"m-list__item"},"Hover over the examples within the sample search bars below to see what their results should return"),Wr.createElement("li",{className:"m-list__item"},'When searching within "All data", terms must be found in the same field to be considered a match'),Wr.createElement("li",{className:"m-list__item"},"The search function will look for any variations of the word that includes the stem \u2013 for example, if deferment is searched, it would return the following variations: deferment, defer, deferred, deferral, etc."))),Wr.createElement("div",{className:"tips content-l"},Wr.createElement("div",{className:"tip content-l__col content-l__col-1-3"},Wr.createElement("h4",null,"AND / OR / NOT"),Wr.createElement("label",{className:"u-visually-hidden",htmlFor:"example-and"},"Use AND when results must contain all terms"),Wr.createElement(Fc,{text:"Results would include both call (call, called, calling, etc.) as well as harass (harass, harassed, harassing, etc.)."},Wr.createElement("input",{className:"a-text-input",id:"example-and",type:"text",readOnly:!0,value:"call AND harass"})),Wr.createElement("label",{className:"u-visually-hidden",htmlFor:"example-or"},"Use OR when results should contain at least one of the terms"),Wr.createElement(Fc,{text:"Results would include either loan (loan, loans, loaned, etc.) or mortage (mortgage, mortgages, etc.)."},Wr.createElement("input",{className:"a-text-input",id:"example-or",type:"text",readOnly:!0,value:"loan OR mortgage"})),Wr.createElement("label",{className:"u-visually-hidden",htmlFor:"example-not"},"Use NOT when results should contain at least one of the terms"),Wr.createElement(Fc,{text:"Results would only include claim (claim, claims, claimed, etc.) and cannot include the term accident (accident, accidents, etc.)"},Wr.createElement("input",{className:"a-text-input",id:"example-not",type:"text",readOnly:!0,value:"claim NOT accident"})),Wr.createElement("div",{className:"tip-description"},Wr.createElement("p",null,"Use AND when results must contain both terms"),Wr.createElement("p",null,"Use OR when results should contain at least one of the terms"),Wr.createElement("p",null,"Use NOT when results must not contain the term")),Wr.createElement(Wb,{id:"and-or-not",notes:["The Boolean operators (AND / OR / NOT) must be capitalized","Boolean operators do not honor precedence rules, so parentheses should be used whenever multiple operators are used together \u2013 if they are not used correctly (i.e., having multiple operators outside of parentheses), then your results might not return what you intended."],placeholderText:"call AND (harass* OR annoy* OR threat OR repeat) AND NOT spam",tooltipText:"This example would return results that include the word call (called, calling, etc.) and one of the words in the parentheses, but exclude the word spam (spammed, spamming, etc.)."})),Wr.createElement("div",{className:"tip content-l__col content-l__col-1-3"},Wr.createElement("h4",null,"Must/Must not contain"),Wr.createElement("label",{className:"u-visually-hidden",htmlFor:"example-must-plus"},"Use + if the search must contain the selected term"),Wr.createElement(Fc,{text:"Results must include the word foreclosure (foreclosure, foreclosed, etc.)."},Wr.createElement("input",{className:"a-text-input",id:"example-must-plus",type:"text",readOnly:!0,value:"+foreclosure"})),Wr.createElement("label",{className:"u-visually-hidden",htmlFor:"example-must-minus"},"Use - if the search must not contain the selected term"),Wr.createElement(Fc,{text:"Results cannot include the word collect (collect, collects, collecting, etc.)."},Wr.createElement("input",{className:"a-text-input",id:"example-must-minus",type:"text",readOnly:!0,value:"-collect"})),Wr.createElement("div",{className:"tip-description"},Wr.createElement("p",null,"Use + if the search must contain the selected term"),Wr.createElement("p",null,"Use - if the search must not contain the selected term")),Wr.createElement(Wb,{id:"must-or-must-not",notes:['Since the terms "insurance" and "claim" do not have to be included in the results, their appearance will give the result a greater relevance score.',"There cannot be a space between the operator (+ / -) and searched term."],placeholderText:"insurance claim +agent +car -accident",tooltipText:"Results must include the terms agent and car but exclude accident \u2013 the terms insurance and claim are optional"})),Wr.createElement("div",{className:"tip content-l__col content-l__col-1-3"},Wr.createElement("h4",null,"Wildcard search"),Wr.createElement("label",{className:"u-visually-hidden",htmlFor:"example-wc-star"},"Use * to substitute any consecutive number of characters."),Wr.createElement(Fc,{text:'Results would include all terms that start with the base "report" (report, reports, reported, reporting, etc.) and "$*.00" would include all variations of whole number dollar values ($8.00, $1234.00, etc.).'},Wr.createElement("input",{className:"a-text-input",id:"example-wc-star",type:"text",readOnly:!0,value:"report* AND $*.00"})),Wr.createElement("label",{className:"u-visually-hidden",htmlFor:"example-wc-question"},"Use ? to replace any single character anywhere in a term."),Wr.createElement(Fc,{text:"Results would return variations such as: woman, women, etc."},Wr.createElement("input",{className:"a-text-input",id:"example-wc-question",type:"text",readOnly:!0,value:"wom?n"})),Wr.createElement("div",{className:"tip-description"},Wr.createElement("p",null,"Use * to substitute any consecutive number of characters."),Wr.createElement("p",null,"Use ? to replace any single character anywhere in a term."))),Wr.createElement("div",{className:"tip content-l__col content-l__col-1-3"},Wr.createElement("h4",null,"Proximity search"),Wr.createElement("label",{className:"u-visually-hidden",htmlFor:"example-proximity"},'Use ~[#] at the end of a phrase to search for terms with up to that number of gap words between them; Order does not matter and the terms should be in a single set of quotation marks (" ").'),Wr.createElement(Fc,{text:'Results would include the terms "auto", "loan", and "default" in any order, with up to three (3) gap words in between them. For example, results could include: "defaulted auto loan", "auto loan that went into default", "Auto Loan with the same defaulted", etc.'},Wr.createElement("input",{className:"a-text-input example-input",id:"example-proximity",type:"text",readOnly:!0,value:'"auto loan default"~3'})),Wr.createElement("div",{className:"tip-description"},Wr.createElement("p",null,'Use ~[#] at the end of a phrase to search for terms with up to that number of gap words between them; Order does not matter and the terms should be in a single set of quotation marks (" ").')),Wr.createElement(Wb,{id:"proximity",notes:['Proximity phrase search must use straight quotes (" ") versus curly quotes (\u201C \u201D), or else the search function will not perform properly',"The closer the specified terms are within the data, the more relevant the search results become."]})),Wr.createElement("div",{className:"tip content-l__col content-l__col-1-3"},Wr.createElement("h4",null,"Fuzzy search"),Wr.createElement("label",{className:"u-visually-hidden",htmlFor:"example-fuzzy"},"Use ~1 at the end of a term to search for terms that are spelled similarly to your keyword within a certain margin of error."),Wr.createElement(Fc,{text:"Results would include the correct spelling of escrow, as well as other (potentially misspelled) versions, such as: escrow, escrowed, escro, esrow, etc."},Wr.createElement("input",{className:"a-text-input example-input",id:"example-fuzzy",type:"text",readOnly:!0,value:"escrow~1"})),Wr.createElement("div",{className:"tip-description"},Wr.createElement("p",null,"Use ~1 at the end of a term to search for terms that are spelled similarly to your keyword within a certain margin of error.")),Wr.createElement(Wb,{id:"fuzzy",notes:["The search looks for a maximum of two changes in the term, where a change is the insertion, deletion or substitution of a single character or transposition of two adjacent characters (this catches about 80% of misspelled words).","Fuzzy term search can only be used with single terms, it does not support phrases."],placeholderText:"escrow~1 -escrow -escrowed",tooltipText:'Results would return the various misspellings of the word "escrow" that fuzzy term search identifies (after excluding the escrow and escrowed).'})),Wr.createElement("div",{className:"tip content-l__col content-l__col-1-3"},Wr.createElement("h4",null,"Boost search"),Wr.createElement("label",{className:"u-visually-hidden",htmlFor:"example-boost"},"Use ^[#] at the end of a term or terms to increase or decrease its relevance compared to the other term(s)."),Wr.createElement(Fc,{text:'Results would be sorted by relevance in favor of the term "pay"'},Wr.createElement("input",{className:"a-text-input example-input",id:"example-boost",type:"text",readOnly:!0,value:"pay^2 OR credit"})),Wr.createElement("div",{className:"tip-description"},Wr.createElement("p",null,"Use ^[#] at the end of a term or terms to increase or decrease its relevance compared to the other term(s).")),Wr.createElement(Wb,{id:"boost",notes:["A boost value between 0 and 1.0 decreases the relevance score while a value greater than 1.0 increases the relevance score."]}))),Wr.createElement("div",{className:"footer"},Wr.createElement("h3",null,"Additional notes:"),Wr.createElement("ul",{className:"m-list"},Wr.createElement("li",{className:"m-list__item"},'Putting a phrase only in quotations (" ") will search for the words in that order, but it will not be an exact match \u2013 meaning it may include stemmed versions of the term.'),Wr.createElement("li",{className:"m-list__item"},'The default operator is "AND", meaning if you search "foreclosure house", it will search results that include both words (i.e., foreclosure AND house).'),Wr.createElement("li",{className:"m-list__item"},"Capitalization does not have an effect on searched terms (expect for the AND / OR / NOT operators)."),Wr.createElement("li",{className:"m-list__item"},Wr.createElement("a",{href:"https://www.elastic.co/guide/en/elasticsearch/reference/7.17/elasticsearch-intro.html",target:"_blank",rel:"noopener noreferrer"},"Find out more ",Wi("external-link"))," ","about Elastic Search"))));var Yb=Fn(7810);const ER=({ariaLabel:t,className:e,htmlId:n,isDisabled:i=!1,handleChange:c,handleClear:S,handlePressEnter:F,placeholder:nt="Enter your search text",value:ut})=>Yb.createElement("div",{className:"o-search-input"},Yb.createElement("div",{className:"o-search-input__input"},Yb.createElement("label",{htmlFor:n,className:"o-search-input__input-label","aria-label":t},Wi("search")),Yb.createElement("input",{type:"search",id:n,disabled:i,value:ut,onChange:c,onKeyDown:F,className:"a-text-input a-text-input--full "+e,placeholder:nt,title:nt,autoComplete:"off",maxLength:"75"}),Yb.createElement(Do,{onClear:S})),Yb.createElement("button",{type:"submit",className:"a-btn"},"Search"));ER.propTypes={ariaLabel:Rn().string.isRequired,className:Rn().string,isDisabled:Rn().bool,handleChange:Rn().func.isRequired,handleClear:Rn().func,handlePressEnter:Rn().func,htmlId:Rn().string.isRequired,placeholder:Rn().string,value:Rn().string.isRequired};var yl=Fn(7810);const CR={all:"All data",company:"Company name",complaint_what_happened:"Narratives"},MR=({debounceWait:t=250})=>{const e=Si(),n=sr(q1),i=sr(gE),c=sr(s7),[S,F]=(0,W.useState)(i),[nt,ut]=(0,W.useState)([]),[yt,_t]=(0,W.useState)(!0);(0,W.useEffect)(()=>{F(i)},[i]);const zt=ge=>{e(ge?Za():m3())},Ht=ge=>{ge.preventDefault(),e(Pc(S))},Yt=ge=>{e(hE(ge.target.value))},re=ge=>{ge.preventDefault(),zt(c)},ue=ge=>{F(ge);const qe=`${ph}_suggest_company/?text=${ge}`;Ki(ge,ut,qe)},oe=ge=>{e(Pc(ge[0].key))},de=()=>{e(Pc(""))},pe=()=>{yt&&(e(Pc("")),F("")),_t(!0)},_e=ge=>{ge.key==="Enter"&&(_t(!1),e(Pc(ge.target.value)))};return yl.createElement("div",null,yl.createElement("div",{className:"search-bar",role:"search"},yl.createElement("form",{action:"",onSubmit:Ht},yl.createElement("h3",{className:"h4"},"Search within"),yl.createElement("div",{className:"layout-row"},yl.createElement("div",{className:"cf-select flex-fixed"},yl.createElement("select",{"aria-label":"Choose which field will be searched",id:"searchField",onChange:Yt,value:n},yl.createElement("optgroup",{label:"Search Within"},Object.keys(CR).map(ge=>yl.createElement("option",{key:ge,value:ge},CR[ge]))))),yl.createElement("div",{className:"flex-all typeahead-portal"},n==="company"?yl.createElement(Ri,{ariaLabel:"Enter your search term(s)",htmlId:"searchText",defaultValue:i,delayWait:t,handleChange:oe,handleClear:de,handleSearch:ue,hasClearButton:!0,hasSearchButton:!0,options:nt,placeholder:"Enter your search term(s)"}):yl.createElement(ER,{handleChange:ge=>F(ge.target.value),handleClear:pe,handlePressEnter:_e,htmlId:"searchText",value:S,ariaLabel:"Enter the term you want to search for",placeholder:"Enter your search term(s)"})),yl.createElement("a",{className:"u-visually-hidden",href:"#search-summary"},"Skip to Results"),yl.createElement("div",{className:"advanced-container flex-fixed"},yl.createElement("button",{className:"a-btn a-btn--link",onClick:re},c?"Hide advanced search tips":"Show advanced search tips"))))),c?yl.createElement(Fq,null):null)};MR.propTypes={debounceWait:Rn().number};var A2=Fn(7810);const zq=()=>{const{data:t,isLoading:e,isFetching:n}=da();if(e||n)return null;const i=t==null?void 0:t.lastIndexed;let c=null;return i&&(c=A2.createElement("span",{className:"date-subscript"},"(last updated: ",Kl(i),")")),A2.createElement("div",{className:"search-panel"},A2.createElement("h2",null,"Search complaint data ",c),A2.createElement(MR,null),A2.createElement(cY,null))};var Ag=Fn(7810);const kR=()=>{lY(),uY();const t=sr(xg),e=Si();return H6("afterprint",()=>{t&&e(QS())}),H6("beforeprint",()=>{t||e(Df())}),(0,W.useEffect)(()=>{t&&setTimeout(()=>{window.print()},1e3)},[t]),Ag.createElement("main",{className:`content content--1-3 ccdb-content ${t?"print":""}`,role:"main"},Ag.createElement(JS,null),Ag.createElement("div",{className:"content__wrapper"},Ag.createElement(zq,null),Ag.createElement(D7,null),Ag.createElement(kW,null)),Ag.createElement(tY,null),Ag.createElement(HW,null))};var Zf=Fn(7810);const Uq=()=>Zf.createElement(nv,null,Zf.createElement(pn,null,Zf.createElement(Te,{index:!0,element:Zf.createElement(kR,null)}),Zf.createElement(Te,{path:"/data-research/consumer-complaints/search",element:Zf.createElement(kR,null)}),Zf.createElement(Te,{path:"/data-research/consumer-complaints/search/detail/:id",element:Zf.createElement(Nw,null)}),Zf.createElement(Te,{path:"/detail/:id",element:Zf.createElement(Nw,null)})));function Nk(){return Nk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Nk.apply(null,arguments)}var gu;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(gu||(gu={}));var qb=function(t){return t};function BX(t,e){if(!t){typeof console!="undefined"&&console.warn(e);try{throw new Error(e)}catch(n){}}}var Dk="beforeunload",Hq="hashchange",TR="popstate";function Vq(t){t===void 0&&(t={});var e=t,n=e.window,i=n===void 0?document.defaultView:n,c=i.history;function S(){var $e=i.location,Ye=$e.pathname,tn=$e.search,gn=$e.hash,Cn=c.state||{};return[Cn.idx,qb({pathname:Ye,search:tn,hash:gn,state:Cn.usr||null,key:Cn.key||"default"})]}var F=null;function nt(){if(F)Yt.call(F),F=null;else{var $e=gu.Pop,Ye=S(),tn=Ye[0],gn=Ye[1];if(Yt.length){if(tn!=null){var Cn=_t-tn;Cn&&(F={action:$e,location:gn,retry:function(){qe(Cn*-1)}},qe(Cn))}}else pe($e)}}i.addEventListener(TR,nt);var ut=gu.Pop,yt=S(),_t=yt[0],zt=yt[1],Ht=$b(),Yt=$b();_t==null&&(_t=0,c.replaceState(Nk({},c.state,{idx:_t}),""));function re($e){return typeof $e=="string"?$e:P2($e)}function ue($e,Ye){return Ye===void 0&&(Ye=null),qb(Nk({pathname:zt.pathname,hash:"",search:""},typeof $e=="string"?O2($e):$e,{state:Ye,key:Lk()}))}function oe($e,Ye){return[{usr:$e.state,key:$e.key,idx:Ye},re($e)]}function de($e,Ye,tn){return!Yt.length||(Yt.call({action:$e,location:Ye,retry:tn}),!1)}function pe($e){ut=$e;var Ye=S();_t=Ye[0],zt=Ye[1],Ht.call({action:ut,location:zt})}function _e($e,Ye){var tn=gu.Push,gn=ue($e,Ye);function Cn(){_e($e,Ye)}if(de(tn,gn,Cn)){var kn=oe(gn,_t+1),Zn=kn[0],fn=kn[1];try{c.pushState(Zn,"",fn)}catch(jn){i.location.assign(fn)}pe(tn)}}function ge($e,Ye){var tn=gu.Replace,gn=ue($e,Ye);function Cn(){ge($e,Ye)}if(de(tn,gn,Cn)){var kn=oe(gn,_t),Zn=kn[0],fn=kn[1];c.replaceState(Zn,"",fn),pe(tn)}}function qe($e){c.go($e)}var De={get action(){return ut},get location(){return zt},createHref:re,push:_e,replace:ge,go:qe,back:function(){qe(-1)},forward:function(){qe(1)},listen:function(Ye){return Ht.push(Ye)},block:function(Ye){var tn=Yt.push(Ye);return Yt.length===1&&i.addEventListener(Dk,Rk),function(){tn(),Yt.length||i.removeEventListener(Dk,Rk)}}};return De}function FX(t){t===void 0&&(t={});var e=t,n=e.window,i=n===void 0?document.defaultView:n,c=i.history;function S(){var Ye=O2(i.location.hash.substr(1)),tn=Ye.pathname,gn=tn===void 0?"/":tn,Cn=Ye.search,kn=Cn===void 0?"":Cn,Zn=Ye.hash,fn=Zn===void 0?"":Zn,jn=c.state||{};return[jn.idx,qb({pathname:gn,search:kn,hash:fn,state:jn.usr||null,key:jn.key||"default"})]}var F=null;function nt(){if(F)Yt.call(F),F=null;else{var Ye=gu.Pop,tn=S(),gn=tn[0],Cn=tn[1];if(Yt.length){if(gn!=null){var kn=_t-gn;kn&&(F={action:Ye,location:Cn,retry:function(){De(kn*-1)}},De(kn))}}else _e(Ye)}}i.addEventListener(TR,nt),i.addEventListener(Hq,function(){var Ye=S(),tn=Ye[1];P2(tn)!==P2(zt)&&nt()});var ut=gu.Pop,yt=S(),_t=yt[0],zt=yt[1],Ht=$b(),Yt=$b();_t==null&&(_t=0,c.replaceState(_extends({},c.state,{idx:_t}),""));function re(){var Ye=document.querySelector("base"),tn="";if(Ye&&Ye.getAttribute("href")){var gn=i.location.href,Cn=gn.indexOf("#");tn=Cn===-1?gn:gn.slice(0,Cn)}return tn}function ue(Ye){return re()+"#"+(typeof Ye=="string"?Ye:P2(Ye))}function oe(Ye,tn){return tn===void 0&&(tn=null),qb(_extends({pathname:zt.pathname,hash:"",search:""},typeof Ye=="string"?O2(Ye):Ye,{state:tn,key:Lk()}))}function de(Ye,tn){return[{usr:Ye.state,key:Ye.key,idx:tn},ue(Ye)]}function pe(Ye,tn,gn){return!Yt.length||(Yt.call({action:Ye,location:tn,retry:gn}),!1)}function _e(Ye){ut=Ye;var tn=S();_t=tn[0],zt=tn[1],Ht.call({action:ut,location:zt})}function ge(Ye,tn){var gn=gu.Push,Cn=oe(Ye,tn);function kn(){ge(Ye,tn)}if(pe(gn,Cn,kn)){var Zn=de(Cn,_t+1),fn=Zn[0],jn=Zn[1];try{c.pushState(fn,"",jn)}catch(On){i.location.assign(jn)}_e(gn)}}function qe(Ye,tn){var gn=gu.Replace,Cn=oe(Ye,tn);function kn(){qe(Ye,tn)}if(pe(gn,Cn,kn)){var Zn=de(Cn,_t),fn=Zn[0],jn=Zn[1];c.replaceState(fn,"",jn),_e(gn)}}function De(Ye){c.go(Ye)}var $e={get action(){return ut},get location(){return zt},createHref:ue,push:ge,replace:qe,go:De,back:function(){De(-1)},forward:function(){De(1)},listen:function(tn){return Ht.push(tn)},block:function(tn){var gn=Yt.push(tn);return Yt.length===1&&i.addEventListener(Dk,Rk),function(){gn(),Yt.length||i.removeEventListener(Dk,Rk)}}};return $e}function zX(t){t===void 0&&(t={});var e=t,n=e.initialEntries,i=n===void 0?["/"]:n,c=e.initialIndex,S=i.map(function(_e){var ge=qb(_extends({pathname:"/",search:"",hash:"",state:null,key:Lk()},typeof _e=="string"?O2(_e):_e));return ge}),F=AR(c==null?S.length-1:c,0,S.length-1),nt=gu.Pop,ut=S[F],yt=$b(),_t=$b();function zt(_e){return typeof _e=="string"?_e:P2(_e)}function Ht(_e,ge){return ge===void 0&&(ge=null),qb(_extends({pathname:ut.pathname,search:"",hash:""},typeof _e=="string"?O2(_e):_e,{state:ge,key:Lk()}))}function Yt(_e,ge,qe){return!_t.length||(_t.call({action:_e,location:ge,retry:qe}),!1)}function re(_e,ge){nt=_e,ut=ge,yt.call({action:nt,location:ut})}function ue(_e,ge){var qe=gu.Push,De=Ht(_e,ge);function $e(){ue(_e,ge)}Yt(qe,De,$e)&&(F+=1,S.splice(F,S.length,De),re(qe,De))}function oe(_e,ge){var qe=gu.Replace,De=Ht(_e,ge);function $e(){oe(_e,ge)}Yt(qe,De,$e)&&(S[F]=De,re(qe,De))}function de(_e){var ge=AR(F+_e,0,S.length-1),qe=gu.Pop,De=S[ge];function $e(){de(_e)}Yt(qe,De,$e)&&(F=ge,re(qe,De))}var pe={get index(){return F},get action(){return nt},get location(){return ut},createHref:zt,push:ue,replace:oe,go:de,back:function(){de(-1)},forward:function(){de(1)},listen:function(ge){return yt.push(ge)},block:function(ge){return _t.push(ge)}};return pe}function AR(t,e,n){return Math.min(Math.max(t,e),n)}function Rk(t){t.preventDefault(),t.returnValue=""}function $b(){var t=[];return{get length(){return t.length},push:function(n){return t.push(n),function(){t=t.filter(function(i){return i!==n})}},call:function(n){t.forEach(function(i){return i&&i(n)})}}}function Lk(){return Math.random().toString(36).substr(2,8)}function P2(t){var e=t.pathname,n=e===void 0?"/":e,i=t.search,c=i===void 0?"":i,S=t.hash,F=S===void 0?"":S;return c&&c!=="?"&&(n+=c.charAt(0)==="?"?c:"?"+c),F&&F!=="#"&&(n+=F.charAt(0)==="#"?F:"#"+F),n}function O2(t){var e={};if(t){var n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));var i=t.indexOf("?");i>=0&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}function Wq(t,e){const n=["dataNormalization","enablePer1000","mapWarningEnabled"];return e===ep?Object.keys(t):Object.keys(t).filter(i=>!n.includes(i))}function Yq(t){const e=["dateRange","company_received_min","company_received_max","date_received_min","date_received_max","searchText","searchField"];return t===np?e.concat(["search_after","size","page","sort"]):t===Rl?e.concat(["dateInterval"]):e}function qq(t){return t===Rl?["chartType","focus","lens","subLens","trend_depth"]:[]}function $q(t){const e=["debug","tour","tab"];return[Rl].includes(t)&&e.push("interval"),e}function Xq(t){const{tab:e}=t.view,n=Wq(t.filters,e),i=qq(e),c=Yq(e),S=$q(e),F=Object.assign({},qi(t.query,c),qi(t.filters,n),qi(t.view,S),qi(t.trends,i));return t.query.searchAfter&&(F.search_after=t.query.searchAfter),F}const Gq=t=>e=>n=>{const i=e(n);if(n.type==="routes/routeChanged")return i;const c=t.getState(),S=Xq(c),F=Vq(),nt=F.location,{queryString:ut}=c.routes,yt=Ll.stringify(S);return(ut!==""&&ut!==yt||ut==="")&&(F.push({pathname:nt.pathname,search:"?"+yt}),t.dispatch(y3(nt.pathname,S))),i},PR=bx({devTools:!0,reducer:{[gh.reducerPath]:gh.reducer,filters:dy,query:M3,routes:v3,trends:LT,view:cy},middleware:t=>t().concat([Gq,gh.middleware])});fh(PR.dispatch);var Y5=Fn(7810);const Kq=document.getElementById("ccdb-ui-root");(0,Pe.H)(Kq).render(Y5.createElement(W.StrictMode,null,Y5.createElement(pv,{store:PR},Y5.createElement(Uq,null))))})()})();
483
+ */function gk(t){return gk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gk(t)}function Wo(t,e,n,i){return new(n||(n=Promise))(function(c,S){function F(yt){try{ut(i.next(yt))}catch(_t){S(_t)}}function nt(yt){try{ut(i.throw(yt))}catch(_t){S(_t)}}function ut(yt){var _t;yt.done?c(yt.value):(_t=yt.value,_t instanceof n?_t:new n(function(zt){zt(_t)})).then(F,nt)}ut((i=i.apply(t,e||[])).next())})}function Yo(t,e){var n,i,c,S,F={label:0,sent:function(){if(1&c[0])throw c[1];return c[1]},trys:[],ops:[]};return S={next:nt(0),throw:nt(1),return:nt(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function nt(ut){return function(yt){return function(_t){if(n)throw new TypeError("Generator is already executing.");for(;S&&(S=0,_t[0]&&(F=0)),F;)try{if(n=1,i&&(c=2&_t[0]?i.return:_t[0]?i.throw||((c=i.return)&&c.call(i),0):i.next)&&!(c=c.call(i,_t[1])).done)return c;switch(i=0,c&&(_t=[2&_t[0],c.value]),_t[0]){case 0:case 1:c=_t;break;case 4:return F.label++,{value:_t[1],done:!1};case 5:F.label++,i=_t[1],_t=[0];continue;case 7:_t=F.ops.pop(),F.trys.pop();continue;default:if(c=F.trys,!((c=c.length>0&&c[c.length-1])||_t[0]!==6&&_t[0]!==2)){F=0;continue}if(_t[0]===3&&(!c||_t[1]>c[0]&&_t[1]<c[3])){F.label=_t[1];break}if(_t[0]===6&&F.label<c[1]){F.label=c[1],c=_t;break}if(c&&F.label<c[2]){F.label=c[2],F.ops.push(_t);break}c[2]&&F.ops.pop(),F.trys.pop();continue}_t=e.call(t,F)}catch(zt){_t=[6,zt],i=0}finally{n=c=0}if(5&_t[0])throw _t[1];return{value:_t[0]?_t[1]:void 0,done:!0}}([ut,yt])}}}function h6(t,e,n){var i,c=((i={})[t]=e,i.path="/",i.expires=void 0,i);if(n){var S=new Date;S.setTime(S.getTime()+24*n*60*60*1e3),c.expires=S.toUTCString()}var F=[];for(var nt in c)F.push("".concat(nt,"=").concat(c[nt]));return document.cookie=F.join("; "),f6(t)}function f6(t){return(e={},document.cookie.split(";").forEach(function(n){var i=n.split("="),c=i[0],S=i[1];e[c.trim()]=S}),e)[t];var e}typeof SuppressedError=="function"&&SuppressedError;function WW(t,e){e?h6(t._options.dontShowAgainCookie,"true",t._options.dontShowAgainCookieDays):h6(t._options.dontShowAgainCookie,"",-1)}var yk,A5=(yk={},function(t,e){return e===void 0&&(e="introjs-stamp"),yk[e]=yk[e]||0,t[e]===void 0&&(t[e]=yk[e]++),t[e]}),Xf=new(function(){function t(){this.events_key="introjs_event"}return t.prototype._id=function(e,n,i){return e+A5(n)+(i?"_".concat(A5(i)):"")},t.prototype.on=function(e,n,i,c,S){var F=this._id(n,i,c),nt=function(ut){return i(c||e,ut||window.event)};"addEventListener"in e?e.addEventListener(n,nt,S):"attachEvent"in e&&e.attachEvent("on".concat(n),nt),e[this.events_key]=e[this.events_key]||{},e[this.events_key][F]=nt},t.prototype.off=function(e,n,i,c,S){var F=this._id(n,i,c),nt=e[this.events_key]&&e[this.events_key][F];nt&&("removeEventListener"in e?e.removeEventListener(n,nt,S):"detachEvent"in e&&e.detachEvent("on".concat(n),nt),e[this.events_key][F]=null)},t}()),va=function(t){return typeof t=="function"};function Gf(t,e){if(t instanceof SVGElement){var n=t.getAttribute("class")||"";n.match(e)||t.setAttribute("class","".concat(n," ").concat(e))}else if(t.classList!==void 0)for(var i=0,c=e.split(" ");i<c.length;i++){var S=c[i];t.classList.add(S)}else t.className.match(e)||(t.className+=" ".concat(e))}function P5(t,e){var n="";return"currentStyle"in t?n=t.currentStyle[e]:document.defaultView&&document.defaultView.getComputedStyle&&(n=document.defaultView.getComputedStyle(t,null).getPropertyValue(e)),n&&n.toLowerCase?n.toLowerCase():n}function d6(t,e){if(t){var n=function(i){var c=window.getComputedStyle(i),S=c.position==="absolute",F=/(auto|scroll)/;if(c.position==="fixed")return document.body;for(var nt=i;nt=nt.parentElement;)if(c=window.getComputedStyle(nt),(!S||c.position!=="static")&&F.test(c.overflow+c.overflowY+c.overflowX))return nt;return document.body}(e);n!==document.body&&(n.scrollTop=e.offsetTop-n.offsetTop)}}function O5(){if(window.innerWidth!==void 0)return{width:window.innerWidth,height:window.innerHeight};var t=document.documentElement;return{width:t.clientWidth,height:t.clientHeight}}function p6(t,e,n,i,c){var S;if(e!=="off"&&t&&(S=e==="tooltip"?c.getBoundingClientRect():i.getBoundingClientRect(),!function(nt){var ut=nt.getBoundingClientRect();return ut.top>=0&&ut.left>=0&&ut.bottom+80<=window.innerHeight&&ut.right<=window.innerWidth}(i))){var F=O5().height;S.bottom-(S.bottom-S.top)<0||i.clientHeight>F?window.scrollBy(0,S.top-(F/2-S.height/2)-n):window.scrollBy(0,S.top-(F/2-S.height/2)+n)}}function S2(t){t.setAttribute("role","button"),t.tabIndex=0}function vk(t){var e=t.parentElement;return!(!e||e.nodeName==="HTML")&&(P5(t,"position")==="fixed"||vk(e))}function zb(t,e){var n=document.body,i=document.documentElement,c=window.pageYOffset||i.scrollTop||n.scrollTop,S=window.pageXOffset||i.scrollLeft||n.scrollLeft;e=e||n;var F=t.getBoundingClientRect(),nt=e.getBoundingClientRect(),ut=P5(e,"position"),yt={width:F.width,height:F.height};return e.tagName.toLowerCase()!=="body"&&ut==="relative"||ut==="sticky"?Object.assign(yt,{top:F.top-nt.top,left:F.left-nt.left}):vk(t)?Object.assign(yt,{top:F.top,left:F.left}):Object.assign(yt,{top:F.top+c,left:F.left+S})}function N5(t,e){if(t instanceof SVGElement){var n=t.getAttribute("class")||"";t.setAttribute("class",n.replace(e,"").replace(/^\s+|\s+$/g,""))}else t.className=t.className.replace(e,"").replace(/^\s+|\s+$/g,"")}function kg(t,e){var n="";if(t.style.cssText&&(n+=t.style.cssText),typeof e=="string")n+=e;else for(var i in e)n+="".concat(i,":").concat(e[i],";");t.style.cssText=n}function Fp(t,e,n){if(n&&e){var i=zb(e.element,t._targetElement),c=t._options.helperElementPadding;e.element instanceof Element&&vk(e.element)?Gf(n,"introjs-fixedTooltip"):N5(n,"introjs-fixedTooltip"),e.position==="floating"&&(c=0),kg(n,{width:"".concat(i.width+c,"px"),height:"".concat(i.height+c,"px"),top:"".concat(i.top-c/2,"px"),left:"".concat(i.left-c/2,"px")})}}function bk(t,e,n,i,c){return t.left+e+n.width>i.width?(c.style.left="".concat(i.width-n.width-t.left,"px"),!1):(c.style.left="".concat(e,"px"),!0)}function xk(t,e,n,i){return t.left+t.width-e-n.width<0?(i.style.left="".concat(-t.left,"px"),!1):(i.style.right="".concat(e,"px"),!0)}function Kf(t,e){t.includes(e)&&t.splice(t.indexOf(e),1)}function YW(t,e,n,i){var c=t.slice(),S=O5(),F=zb(n).height+10,nt=zb(n).width+20,ut=e.getBoundingClientRect(),yt="floating";if(ut.bottom+F>S.height&&Kf(c,"bottom"),ut.top-F<0&&Kf(c,"top"),ut.right+nt>S.width&&Kf(c,"right"),ut.left-nt<0&&Kf(c,"left"),i&&(i=i.split("-")[0]),c.length&&(yt=c[0],c.includes(i)&&(yt=i)),yt==="top"||yt==="bottom"){var _t=void 0,zt=[];yt==="top"?(_t="top-middle-aligned",zt=["top-left-aligned","top-middle-aligned","top-right-aligned"]):(_t="bottom-middle-aligned",zt=["bottom-left-aligned","bottom-middle-aligned","bottom-right-aligned"]),yt=function(Ht,Yt,re,ue){var oe=Yt/2,de=Math.min(re,window.screen.width);return de-Ht<Yt&&(Kf(ue,"top-left-aligned"),Kf(ue,"bottom-left-aligned")),(Ht<oe||de-Ht<oe)&&(Kf(ue,"top-middle-aligned"),Kf(ue,"bottom-middle-aligned")),Ht<Yt&&(Kf(ue,"top-right-aligned"),Kf(ue,"bottom-right-aligned")),ue.length?ue[0]:null}(ut.left,nt,S.width,zt)||_t}return yt}function wk(t,e,n,i,c){if(c===void 0&&(c=!1),e){var S,F,nt,ut,yt="";n.style.top="",n.style.right="",n.style.bottom="",n.style.left="",n.style.marginLeft="",n.style.marginTop="",i.style.display="inherit",yt=typeof e.tooltipClass=="string"?e.tooltipClass:t._options.tooltipClass,n.className=["introjs-tooltip",yt].filter(Boolean).join(" "),n.setAttribute("role","dialog"),(ut=e.position)!=="floating"&&t._options.autoPosition&&(ut=YW(t._options.positionPrecedence,e.element,n,ut)),F=zb(e.element),S=zb(n),nt=O5(),Gf(n,"introjs-".concat(ut));var _t=F.width/2-S.width/2;switch(ut){case"top-right-aligned":i.className="introjs-arrow bottom-right";var zt=0;xk(F,zt,S,n),n.style.bottom="".concat(F.height+20,"px");break;case"top-middle-aligned":i.className="introjs-arrow bottom-middle",c&&(_t+=5),xk(F,_t,S,n)&&(n.style.right="",bk(F,_t,S,nt,n)),n.style.bottom="".concat(F.height+20,"px");break;case"top-left-aligned":case"top":i.className="introjs-arrow bottom",bk(F,c?0:15,S,nt,n),n.style.bottom="".concat(F.height+20,"px");break;case"right":n.style.left="".concat(F.width+20,"px"),F.top+S.height>nt.height?(i.className="introjs-arrow left-bottom",n.style.top="-".concat(S.height-F.height-20,"px")):i.className="introjs-arrow left";break;case"left":c||t._options.showStepNumbers!==!0||(n.style.top="15px"),F.top+S.height>nt.height?(n.style.top="-".concat(S.height-F.height-20,"px"),i.className="introjs-arrow right-bottom"):i.className="introjs-arrow right",n.style.right="".concat(F.width+20,"px");break;case"floating":i.style.display="none",n.style.left="50%",n.style.top="50%",n.style.marginLeft="-".concat(S.width/2,"px"),n.style.marginTop="-".concat(S.height/2,"px");break;case"bottom-right-aligned":i.className="introjs-arrow top-right",xk(F,zt=0,S,n),n.style.top="".concat(F.height+20,"px");break;case"bottom-middle-aligned":i.className="introjs-arrow top-middle",c&&(_t+=5),xk(F,_t,S,n)&&(n.style.right="",bk(F,_t,S,nt,n)),n.style.top="".concat(F.height+20,"px");break;default:i.className="introjs-arrow top",bk(F,0,S,nt,n),n.style.top="".concat(F.height+20,"px")}}}function m6(){for(var t=0,e=Array.from(document.querySelectorAll(".introjs-showElement"));t<e.length;t++)N5(e[t],/introjs-[a-zA-Z]+/g)}function _o(t,e){var n=document.createElement(t);e=e||{};var i=/^(?:role|data-|aria-)/;for(var c in e){var S=e[c];c==="style"&&typeof S!="function"?kg(n,S):typeof S=="string"&&c.match(i)?n.setAttribute(c,S):n[c]=S}return n}function g6(t,e,n){if(n===void 0&&(n=!1),n){var i=e.style.opacity||"1";kg(e,{opacity:"0"}),window.setTimeout(function(){kg(e,{opacity:i})},10)}t.appendChild(e)}function y6(t,e){return(t+1)/e*100}function v6(t,e){var n=_o("div",{className:"introjs-bullets"});t._options.showBullets===!1&&(n.style.display="none");var i=_o("ul");i.setAttribute("role","tablist");for(var c=function(){var yt=this.getAttribute("data-step-number");yt!=null&&t.goToStep(parseInt(yt,10))},S=0;S<t._introItems.length;S++){var F=t._introItems[S].step,nt=_o("li"),ut=_o("a");nt.setAttribute("role","presentation"),ut.setAttribute("role","tab"),ut.onclick=c,S===e.step-1&&(ut.className="active"),S2(ut),ut.innerHTML="&nbsp;",ut.setAttribute("data-step-number",F.toString()),nt.appendChild(ut),i.appendChild(nt)}return n.appendChild(i),n}function b6(t,e,n){var i=t.querySelector(".introjs-progress .introjs-progressbar");if(i){var c=y6(e,n);i.style.cssText="width:".concat(c,"%;"),i.setAttribute("aria-valuenow",c.toString())}}function x6(t,e){return Wo(this,void 0,void 0,function(){var n,i,c,S,F,nt,ut,yt,_t,zt,Ht,Yt,re,ue,oe,de,pe,_e,ge,qe,De,$e,Ye,tn,gn=this;return Yo(this,function(Cn){switch(Cn.label){case 0:return va(t._introChangeCallback)?[4,t._introChangeCallback.call(t,e.element)]:[3,2];case 1:Cn.sent(),Cn.label=2;case 2:return n=document.querySelector(".introjs-helperLayer"),i=document.querySelector(".introjs-tooltipReferenceLayer"),c="introjs-helperLayer",typeof e.highlightClass=="string"&&(c+=" ".concat(e.highlightClass)),typeof t._options.highlightClass=="string"&&(c+=" ".concat(t._options.highlightClass)),n!==null&&i!==null?(ut=i.querySelector(".introjs-helperNumberLayer"),yt=i.querySelector(".introjs-tooltiptext"),_t=i.querySelector(".introjs-tooltip-title"),zt=i.querySelector(".introjs-arrow"),Ht=i.querySelector(".introjs-tooltip"),nt=i.querySelector(".introjs-skipbutton"),F=i.querySelector(".introjs-prevbutton"),S=i.querySelector(".introjs-nextbutton"),n.className=c,Ht.style.opacity="0",Ht.style.display="none",d6(t._options.scrollToElement,e.element),Fp(t,e,n),Fp(t,e,i),m6(),t._lastShowElementTimer&&window.clearTimeout(t._lastShowElementTimer),t._lastShowElementTimer=window.setTimeout(function(){ut!==null&&(ut.innerHTML="".concat(e.step," ").concat(t._options.stepNumbersOfLabel," ").concat(t._introItems.length)),yt.innerHTML=e.intro||"",_t.innerHTML=e.title||"",Ht.style.display="block",wk(t,e,Ht,zt),function(kn,Zn,fn){if(kn){var jn=Zn.querySelector(".introjs-bullets li > a.active"),On=Zn.querySelector('.introjs-bullets li > a[data-step-number="'.concat(fn.step,'"]'));jn&&On&&(jn.className="",On.className="active")}}(t._options.showBullets,i,e),b6(i,t._currentStep,t._introItems.length),Ht.style.opacity="1",(S!=null&&/introjs-donebutton/gi.test(S.className)||S!=null)&&S.focus(),p6(t._options.scrollToElement,e.scrollTo,t._options.scrollPadding,e.element,yt)},350)):(Yt=_o("div",{className:c}),re=_o("div",{className:"introjs-tooltipReferenceLayer"}),ue=_o("div",{className:"introjs-arrow"}),oe=_o("div",{className:"introjs-tooltip"}),de=_o("div",{className:"introjs-tooltiptext"}),pe=_o("div",{className:"introjs-tooltip-header"}),_e=_o("h1",{className:"introjs-tooltip-title"}),ge=_o("div"),kg(Yt,{"box-shadow":"0 0 1px 2px rgba(33, 33, 33, 0.8), rgba(33, 33, 33, ".concat(t._options.overlayOpacity.toString(),") 0 0 0 5000px")}),d6(t._options.scrollToElement,e.element),Fp(t,e,Yt),Fp(t,e,re),g6(t._targetElement,Yt,!0),g6(t._targetElement,re),de.innerHTML=e.intro,_e.innerHTML=e.title,ge.className="introjs-tooltipbuttons",t._options.showButtons===!1&&(ge.style.display="none"),pe.appendChild(_e),oe.appendChild(pe),oe.appendChild(de),t._options.dontShowAgain&&(qe=_o("div",{className:"introjs-dontShowAgain"}),(De=_o("input",{type:"checkbox",id:"introjs-dontShowAgain",name:"introjs-dontShowAgain"})).onchange=function(kn){t.setDontShowAgain(kn.target.checked)},($e=_o("label",{htmlFor:"introjs-dontShowAgain"})).innerText=t._options.dontShowAgainLabel,qe.appendChild(De),qe.appendChild($e),oe.appendChild(qe)),oe.appendChild(v6(t,e)),oe.appendChild(function(kn){var Zn=_o("div");Zn.className="introjs-progress",kn._options.showProgress===!1&&(Zn.style.display="none");var fn=_o("div",{className:"introjs-progressbar"});kn._options.progressBarAdditionalClass&&(fn.className+=" "+kn._options.progressBarAdditionalClass);var jn=y6(kn._currentStep,kn._introItems.length);return fn.setAttribute("role","progress"),fn.setAttribute("aria-valuemin","0"),fn.setAttribute("aria-valuemax","100"),fn.setAttribute("aria-valuenow",jn.toString()),fn.style.cssText="width:".concat(jn,"%;"),Zn.appendChild(fn),Zn}(t)),Ye=_o("div"),t._options.showStepNumbers===!0&&(Ye.className="introjs-helperNumberLayer",Ye.innerHTML="".concat(e.step," ").concat(t._options.stepNumbersOfLabel," ").concat(t._introItems.length),oe.appendChild(Ye)),oe.appendChild(ue),re.appendChild(oe),(S=_o("a")).onclick=function(){return Wo(gn,void 0,void 0,function(){return Yo(this,function(kn){switch(kn.label){case 0:return t._introItems.length-1===t._currentStep?[3,2]:[4,Xy(t)];case 1:return kn.sent(),[3,6];case 2:return/introjs-donebutton/gi.test(S.className)?va(t._introCompleteCallback)?[4,t._introCompleteCallback.call(t,t._currentStep,"done")]:[3,4]:[3,6];case 3:kn.sent(),kn.label=4;case 4:return[4,Gy(t,t._targetElement)];case 5:kn.sent(),kn.label=6;case 6:return[2]}})})},S2(S),S.innerHTML=t._options.nextLabel,(F=_o("a")).onclick=function(){return Wo(gn,void 0,void 0,function(){return Yo(this,function(kn){switch(kn.label){case 0:return t._currentStep>0?[4,_k(t)]:[3,2];case 1:kn.sent(),kn.label=2;case 2:return[2]}})})},S2(F),F.innerHTML=t._options.prevLabel,S2(nt=_o("a",{className:"introjs-skipbutton"})),nt.innerHTML=t._options.skipLabel,nt.onclick=function(){return Wo(gn,void 0,void 0,function(){return Yo(this,function(kn){switch(kn.label){case 0:return t._introItems.length-1===t._currentStep&&va(t._introCompleteCallback)?[4,t._introCompleteCallback.call(t,t._currentStep,"skip")]:[3,2];case 1:kn.sent(),kn.label=2;case 2:return va(t._introSkipCallback)?[4,t._introSkipCallback.call(t,t._currentStep)]:[3,4];case 3:kn.sent(),kn.label=4;case 4:return[4,Gy(t,t._targetElement)];case 5:return kn.sent(),[2]}})})},pe.appendChild(nt),t._introItems.length>1&&ge.appendChild(F),ge.appendChild(S),oe.appendChild(ge),wk(t,e,oe,ue),p6(t._options.scrollToElement,e.scrollTo,t._options.scrollPadding,e.element,oe)),(tn=t._targetElement.querySelector(".introjs-disableInteraction"))&&tn.parentNode&&tn.parentNode.removeChild(tn),e.disableInteraction&&function(kn,Zn){var fn=document.querySelector(".introjs-disableInteraction");fn===null&&(fn=_o("div",{className:"introjs-disableInteraction"}),kn._targetElement.appendChild(fn)),Fp(kn,Zn,fn)}(t,e),t._currentStep===0&&t._introItems.length>1?(S!=null&&(S.className="".concat(t._options.buttonClass," introjs-nextbutton"),S.innerHTML=t._options.nextLabel),t._options.hidePrev===!0?(F!=null&&(F.className="".concat(t._options.buttonClass," introjs-prevbutton introjs-hidden")),S!=null&&Gf(S,"introjs-fullbutton")):F!=null&&(F.className="".concat(t._options.buttonClass," introjs-prevbutton introjs-disabled"))):t._introItems.length-1===t._currentStep||t._introItems.length===1?(F!=null&&(F.className="".concat(t._options.buttonClass," introjs-prevbutton")),t._options.hideNext===!0?(S!=null&&(S.className="".concat(t._options.buttonClass," introjs-nextbutton introjs-hidden")),F!=null&&Gf(F,"introjs-fullbutton")):S!=null&&(t._options.nextToDone===!0?(S.innerHTML=t._options.doneLabel,Gf(S,"".concat(t._options.buttonClass," introjs-nextbutton introjs-donebutton"))):S.className="".concat(t._options.buttonClass," introjs-nextbutton introjs-disabled"))):(F!=null&&(F.className="".concat(t._options.buttonClass," introjs-prevbutton")),S!=null&&(S.className="".concat(t._options.buttonClass," introjs-nextbutton"),S.innerHTML=t._options.nextLabel)),F!=null&&F.setAttribute("role","button"),S!=null&&S.setAttribute("role","button"),nt!=null&&nt.setAttribute("role","button"),S!=null&&S.focus(),function(kn){Gf(kn,"introjs-showElement");var Zn=P5(kn,"position");Zn!=="absolute"&&Zn!=="relative"&&Zn!=="sticky"&&Zn!=="fixed"&&Gf(kn,"introjs-relativePosition")}(e.element),va(t._introAfterChangeCallback)?[4,t._introAfterChangeCallback.call(t,e.element)]:[3,4];case 3:Cn.sent(),Cn.label=4;case 4:return[2]}})})}function qW(t,e){return Wo(this,void 0,void 0,function(){return Yo(this,function(n){switch(n.label){case 0:return t._currentStep=e-2,t._introItems===void 0?[3,2]:[4,Xy(t)];case 1:n.sent(),n.label=2;case 2:return[2]}})})}function $W(t,e){return Wo(this,void 0,void 0,function(){return Yo(this,function(n){switch(n.label){case 0:return t._currentStepNumber=e,t._introItems===void 0?[3,2]:[4,Xy(t)];case 1:n.sent(),n.label=2;case 2:return[2]}})})}function Xy(t){return Wo(this,void 0,void 0,function(){var e,n,i;return Yo(this,function(c){switch(c.label){case 0:if(t._direction="forward",t._currentStepNumber!==void 0)for(e=0;e<t._introItems.length;e++)t._introItems[e].step===t._currentStepNumber&&(t._currentStep=e-1,t._currentStepNumber=void 0);return t._currentStep===-1?t._currentStep=0:++t._currentStep,n=t._introItems[t._currentStep],i=!0,va(t._introBeforeChangeCallback)?[4,t._introBeforeChangeCallback.call(t,n&&n.element,t._currentStep,t._direction)]:[3,2];case 1:i=c.sent(),c.label=2;case 2:return i===!1?(--t._currentStep,[2,!1]):t._introItems.length<=t._currentStep?va(t._introCompleteCallback)?[4,t._introCompleteCallback.call(t,t._currentStep,"end")]:[3,4]:[3,6];case 3:c.sent(),c.label=4;case 4:return[4,Gy(t,t._targetElement)];case 5:return c.sent(),[2,!1];case 6:return[4,x6(t,n)];case 7:return c.sent(),[2,!0]}})})}function _k(t){return Wo(this,void 0,void 0,function(){var e,n;return Yo(this,function(i){switch(i.label){case 0:return t._direction="backward",t._currentStep<=0?[2,!1]:(--t._currentStep,e=t._introItems[t._currentStep],n=!0,va(t._introBeforeChangeCallback)?[4,t._introBeforeChangeCallback.call(t,e&&e.element,t._currentStep,t._direction)]:[3,2]);case 1:n=i.sent(),i.label=2;case 2:return n===!1?(++t._currentStep,[2,!1]):[4,x6(t,e)];case 3:return i.sent(),[2,!0]}})})}function w6(t,e){return Wo(this,void 0,void 0,function(){var n,i;return Yo(this,function(c){switch(c.label){case 0:return(n=e.code===void 0?e.which:e.code)===null&&(n=e.charCode===null?e.keyCode:e.charCode),n!=="Escape"&&n!==27||t._options.exitOnEsc!==!0?[3,2]:[4,Gy(t,t._targetElement)];case 1:return c.sent(),[3,16];case 2:return n!=="ArrowLeft"&&n!==37?[3,4]:[4,_k(t)];case 3:return c.sent(),[3,16];case 4:return n!=="ArrowRight"&&n!==39?[3,6]:[4,Xy(t)];case 5:return c.sent(),[3,16];case 6:return n!=="Enter"&&n!=="NumpadEnter"&&n!==13?[3,16]:(i=e.target||e.srcElement)&&i.className.match("introjs-prevbutton")?[4,_k(t)]:[3,8];case 7:return c.sent(),[3,15];case 8:return i&&i.className.match("introjs-skipbutton")?t._introItems.length-1===t._currentStep&&va(t._introCompleteCallback)?[4,t._introCompleteCallback.call(t,t._currentStep,"skip")]:[3,10]:[3,12];case 9:c.sent(),c.label=10;case 10:return[4,Gy(t,t._targetElement)];case 11:return c.sent(),[3,15];case 12:return i&&i.getAttribute("data-step-number")?(i.click(),[3,15]):[3,13];case 13:return[4,Xy(t)];case 14:c.sent(),c.label=15;case 15:e.preventDefault?e.preventDefault():e.returnValue=!1,c.label=16;case 16:return[2]}})})}function D5(t){if(t===null||gk(t)!=="object"||"nodeType"in t)return t;var e={};for(var n in t)"jQuery"in window&&t[n]instanceof window.jQuery?e[n]=t[n]:e[n]=D5(t[n]);return e}function Ub(t){var e=document.querySelector(".introjs-hints");return e?Array.from(e.querySelectorAll(t)):[]}function R5(t,e){return Wo(this,void 0,void 0,function(){var n;return Yo(this,function(i){switch(i.label){case 0:return n=Ub('.introjs-hint[data-step="'.concat(e,'"]'))[0],Sk(),n&&Gf(n,"introjs-hidehint"),va(t._hintCloseCallback)?[4,t._hintCloseCallback.call(t,e)]:[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}})})}function XW(t){return Wo(this,void 0,void 0,function(){var e,n,i,c,S;return Yo(this,function(F){switch(F.label){case 0:e=Ub(".introjs-hint"),n=0,i=e,F.label=1;case 1:return n<i.length?(c=i[n],(S=c.getAttribute("data-step"))?[4,R5(t,parseInt(S,10))]:[3,3]):[3,4];case 2:F.sent(),F.label=3;case 3:return n++,[3,1];case 4:return[2]}})})}function GW(t){return Wo(this,void 0,void 0,function(){var e,n,i,c,S;return Yo(this,function(F){switch(F.label){case 0:if(!(e=Ub(".introjs-hint"))||!e.length)return[3,1];for(n=0,i=e;n<i.length;n++)c=i[n],(S=c.getAttribute("data-step"))&&_6(parseInt(S,10));return[3,3];case 1:return[4,M6(t,t._targetElement)];case 2:F.sent(),F.label=3;case 3:return[2]}})})}function _6(t){var e=Ub('.introjs-hint[data-step="'.concat(t,'"]'))[0];e&&N5(e,/introjs-hidehint/g)}function S6(t){var e=Ub('.introjs-hint[data-step="'.concat(t,'"]'))[0];e&&e.parentNode&&e.parentNode.removeChild(e)}function KW(t){return Wo(this,void 0,void 0,function(){var e,n,i,c,S,F,nt;return Yo(this,function(ut){switch(ut.label){case 0:for((e=document.querySelector(".introjs-hints"))===null&&(e=_o("div",{className:"introjs-hints"})),n=function(Ht){return function(Yt){var re=Yt||window.event;re&&re.stopPropagation&&re.stopPropagation(),re&&re.cancelBubble!==null&&(re.cancelBubble=!0),C6(t,Ht)}},i=0;i<t._hintItems.length;i++){if(c=t._hintItems[i],document.querySelector('.introjs-hint[data-step="'.concat(i,'"]')))return[2];S2(S=_o("a",{className:"introjs-hint"})),S.onclick=n(i),c.hintAnimation||Gf(S,"introjs-hint-no-anim"),vk(c.element)&&Gf(S,"introjs-fixedhint"),F=_o("div",{className:"introjs-hint-dot"}),nt=_o("div",{className:"introjs-hint-pulse"}),S.appendChild(F),S.appendChild(nt),S.setAttribute("data-step",i.toString()),c.hintTargetElement=c.element,c.element=S,E6(c.hintPosition,S,c.hintTargetElement),e.appendChild(S)}return document.body.appendChild(e),va(t._hintsAddedCallback)?[4,t._hintsAddedCallback.call(t)]:[3,2];case 1:ut.sent(),ut.label=2;case 2:return t._options.hintAutoRefreshInterval>=0&&(t._hintsAutoRefreshFunction=(yt=function(){return Ek(t)},_t=t._options.hintAutoRefreshInterval,function(){for(var Ht=[],Yt=0;Yt<arguments.length;Yt++)Ht[Yt]=arguments[Yt];window.clearTimeout(zt),zt=window.setTimeout(function(){yt(Ht)},_t)}),Xf.on(window,"scroll",t._hintsAutoRefreshFunction,t,!0)),[2]}var yt,_t,zt})})}function E6(t,e,n){if(n!==void 0){var i=zb(n),c=20,S=20;switch(t){default:case"top-left":e.style.left="".concat(i.left,"px"),e.style.top="".concat(i.top,"px");break;case"top-right":e.style.left="".concat(i.left+i.width-c,"px"),e.style.top="".concat(i.top,"px");break;case"bottom-left":e.style.left="".concat(i.left,"px"),e.style.top="".concat(i.top+i.height-S,"px");break;case"bottom-right":e.style.left="".concat(i.left+i.width-c,"px"),e.style.top="".concat(i.top+i.height-S,"px");break;case"middle-left":e.style.left="".concat(i.left,"px"),e.style.top="".concat(i.top+(i.height-S)/2,"px");break;case"middle-right":e.style.left="".concat(i.left+i.width-c,"px"),e.style.top="".concat(i.top+(i.height-S)/2,"px");break;case"middle-middle":e.style.left="".concat(i.left+(i.width-c)/2,"px"),e.style.top="".concat(i.top+(i.height-S)/2,"px");break;case"bottom-middle":e.style.left="".concat(i.left+(i.width-c)/2,"px"),e.style.top="".concat(i.top+i.height-S,"px");break;case"top-middle":e.style.left="".concat(i.left+(i.width-c)/2,"px"),e.style.top="".concat(i.top,"px")}}}function C6(t,e){return Wo(this,void 0,void 0,function(){var n,i,c,S,F,nt,ut,yt,_t,zt,Ht;return Yo(this,function(Yt){switch(Yt.label){case 0:return n=document.querySelector('.introjs-hint[data-step="'.concat(e,'"]')),i=t._hintItems[e],va(t._hintClickCallback)?[4,t._hintClickCallback.call(t,n,i,e)]:[3,2];case 1:Yt.sent(),Yt.label=2;case 2:return(c=Sk())!==void 0&&parseInt(c,10)===e||(S=_o("div",{className:"introjs-tooltip"}),F=_o("div"),nt=_o("div"),ut=_o("div"),S.onclick=function(re){re.stopPropagation?re.stopPropagation():re.cancelBubble=!0},F.className="introjs-tooltiptext",(yt=_o("p")).innerHTML=i.hint||"",F.appendChild(yt),t._options.hintShowButton&&((_t=_o("a")).className=t._options.buttonClass,_t.setAttribute("role","button"),_t.innerHTML=t._options.hintButtonLabel,_t.onclick=function(){return R5(t,e)},F.appendChild(_t)),nt.className="introjs-arrow",S.appendChild(nt),S.appendChild(F),zt=n.getAttribute("data-step")||"",t._currentStep=parseInt(zt,10),Ht=t._hintItems[t._currentStep],ut.className="introjs-tooltipReferenceLayer introjs-hintReference",ut.setAttribute("data-step",zt),Fp(t,Ht,ut),ut.appendChild(S),document.body.appendChild(ut),wk(t,Ht,S,nt,!0)),[2]}})})}function Sk(){var t=document.querySelector(".introjs-hintReference");if(t&&t.parentNode){var e=t.getAttribute("data-step");return e?(t.parentNode.removeChild(t),e):void 0}}function M6(t,e){return Wo(this,void 0,void 0,function(){var n,i,c,S,F,nt,ut,yt,_t,zt;return Yo(this,function(Ht){switch(Ht.label){case 0:if(t._hintItems=[],t._options.hints&&t._options.hints.length>0)for(n=0,i=t._options.hints;n<i.length;n++)c=i[n],typeof(S=D5(c)).element=="string"&&(S.element=document.querySelector(S.element)),S.hintPosition=S.hintPosition||t._options.hintPosition,S.hintAnimation=S.hintAnimation||t._options.hintAnimation,S.element!==null&&t._hintItems.push(S);else{if(!(F=Array.from(e.querySelectorAll("*[data-hint]")))||!F.length)return[2,!1];for(nt=0,ut=F;nt<ut.length;nt++)yt=ut[nt],_t=yt.getAttribute("data-hint-animation"),zt=t._options.hintAnimation,_t&&(zt=_t==="true"),t._hintItems.push({element:yt,hint:yt.getAttribute("data-hint")||"",hintPosition:yt.getAttribute("data-hint-position")||t._options.hintPosition,hintAnimation:zt,tooltipClass:yt.getAttribute("data-tooltip-class")||void 0,position:yt.getAttribute("data-position")||t._options.tooltipPosition})}return[4,KW(t)];case 1:return Ht.sent(),Xf.on(document,"click",Sk,t,!1),Xf.on(window,"resize",Ek,t,!0),[2,!0]}})})}function Ek(t){for(var e=0,n=t._hintItems;e<n.length;e++){var i=n[e],c=i.hintTargetElement;E6(i.hintPosition,i.element,c)}}function k6(t,e){var n=Array.from(e.querySelectorAll("*[data-intro]")),i=[];if(t._options.steps&&t._options.steps.length)for(var c=0,S=t._options.steps;c<S.length;c++){var F=D5(Ht=S[c]);if(F.step=i.length+1,F.title=F.title||"",typeof F.element=="string"&&(F.element=document.querySelector(F.element)||void 0),F.element===void 0||F.element===null){var nt=document.querySelector(".introjsFloatingElement");nt===null&&(nt=_o("div",{className:"introjsFloatingElement"}),document.body.appendChild(nt)),F.element=nt,F.position="floating"}F.position=F.position||t._options.tooltipPosition,F.scrollTo=F.scrollTo||t._options.scrollTo,F.disableInteraction===void 0&&(F.disableInteraction=t._options.disableInteraction),F.element!==null&&i.push(F)}else{var ut=void 0;if(n.length<1)return[];for(var yt=0,_t=n;yt<_t.length;yt++){var zt=_t[yt];if((!t._options.group||zt.getAttribute("data-intro-group")===t._options.group)&&zt.style.display!=="none"){var Ht=parseInt(zt.getAttribute("data-step")||"",10);ut=t._options.disableInteraction,zt.hasAttribute("data-disable-interaction")&&(ut=!!zt.getAttribute("data-disable-interaction")),Ht>0&&(i[Ht-1]={step:Ht,element:zt,title:zt.getAttribute("data-title")||"",intro:zt.getAttribute("data-intro")||"",tooltipClass:zt.getAttribute("data-tooltip-class")||void 0,highlightClass:zt.getAttribute("data-highlight-class")||void 0,position:zt.getAttribute("data-position")||t._options.tooltipPosition,scrollTo:zt.getAttribute("data-scroll-to")||t._options.scrollTo,disableInteraction:ut})}}for(var Yt=0,re=0,ue=n;re<ue.length;re++)if(zt=ue[re],(!t._options.group||zt.getAttribute("data-intro-group")===t._options.group)&&zt.getAttribute("data-step")===null){for(;i[Yt]!==void 0;)Yt++;ut=zt.hasAttribute("data-disable-interaction")?!!zt.getAttribute("data-disable-interaction"):t._options.disableInteraction,i[Yt]={element:zt,title:zt.getAttribute("data-title")||"",intro:zt.getAttribute("data-intro")||"",step:Yt+1,tooltipClass:zt.getAttribute("data-tooltip-class")||void 0,highlightClass:zt.getAttribute("data-highlight-class")||void 0,position:zt.getAttribute("data-position")||t._options.tooltipPosition,scrollTo:zt.getAttribute("data-scroll-to")||t._options.scrollTo,disableInteraction:ut}}}for(var oe=[],de=0;de<i.length;de++)i[de]&&oe.push(i[de]);return(i=oe).sort(function(pe,_e){return pe.step-_e.step}),i}function T6(t,e){var n=t._currentStep;if(n!=null&&n!=-1){var i=t._introItems[n],c=document.querySelector(".introjs-tooltipReferenceLayer"),S=document.querySelector(".introjs-helperLayer"),F=document.querySelector(".introjs-disableInteraction");Fp(t,i,S),Fp(t,i,c),Fp(t,i,F),e&&(t._introItems=k6(t,t._targetElement),function(yt,_t){if(yt._options.showBullets){var zt=document.querySelector(".introjs-bullets");zt&&zt.parentNode&&zt.parentNode.replaceChild(v6(yt,_t),zt)}}(t,i),b6(c,n,t._introItems.length));var nt=document.querySelector(".introjs-arrow"),ut=document.querySelector(".introjs-tooltip");return ut&&nt&&wk(t,t._introItems[n],ut,nt),Ek(t),t}}function A6(t){T6(t)}function E2(t,e){if(e===void 0&&(e=!1),t&&t.parentElement){var n=t.parentElement;e?(kg(t,{opacity:"0"}),window.setTimeout(function(){try{n.removeChild(t)}catch(i){}},500)):n.removeChild(t)}}function Gy(t,e,n){return n===void 0&&(n=!1),Wo(this,void 0,void 0,function(){var i,c,S,F;return Yo(this,function(nt){switch(nt.label){case 0:return i=!0,t._introBeforeExitCallback===void 0?[3,2]:[4,t._introBeforeExitCallback.call(t,e)];case 1:i=nt.sent(),nt.label=2;case 2:if(!n&&i===!1)return[2];if((c=Array.from(e.querySelectorAll(".introjs-overlay")))&&c.length)for(S=0,F=c;S<F.length;S++)E2(F[S]);return E2(e.querySelector(".introjs-helperLayer"),!0),E2(e.querySelector(".introjs-tooltipReferenceLayer")),E2(e.querySelector(".introjs-disableInteraction")),E2(document.querySelector(".introjsFloatingElement")),m6(),Xf.off(window,"keydown",w6,t,!0),Xf.off(window,"resize",A6,t,!0),va(t._introExitCallback)?[4,t._introExitCallback.call(t)]:[3,4];case 3:nt.sent(),nt.label=4;case 4:return t._currentStep=-1,[2]}})})}function ZW(t,e){return Wo(this,void 0,void 0,function(){var n;return Yo(this,function(i){switch(i.label){case 0:return t.isActive()?va(t._introStartCallback)?[4,t._introStartCallback.call(t,e)]:[3,2]:[2,!1];case 1:i.sent(),i.label=2;case 2:return(n=k6(t,e)).length===0?[2,!1]:(t._introItems=n,function(c,S){var F=this,nt=_o("div",{className:"introjs-overlay"});kg(nt,{top:0,bottom:0,left:0,right:0,position:"fixed"}),S.appendChild(nt),c._options.exitOnOverlayClick===!0&&(kg(nt,{cursor:"pointer"}),nt.onclick=function(){return Wo(F,void 0,void 0,function(){return Yo(this,function(ut){switch(ut.label){case 0:return[4,Gy(c,S)];case 1:return ut.sent(),[2]}})})})}(t,e),[4,Xy(t)]);case 3:i.sent(),e.addEventListener,t._options.keyboardNavigation&&Xf.on(window,"keydown",w6,t,!0),Xf.on(window,"resize",A6,t,!0),i.label=4;case 4:return[2,!1]}})})}function P6(t,e,n){return t[e]=n,t}var L5=function(){function t(e){this._currentStep=-1,this._introItems=[],this._hintItems=[],this._targetElement=e,this._options={steps:[],hints:[],isActive:!0,nextLabel:"Next",prevLabel:"Back",skipLabel:"\xD7",doneLabel:"Done",hidePrev:!1,hideNext:!1,nextToDone:!0,tooltipPosition:"bottom",tooltipClass:"",group:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!1,stepNumbersOfLabel:"of",keyboardNavigation:!0,showButtons:!0,showBullets:!0,showProgress:!1,scrollToElement:!0,scrollTo:"element",scrollPadding:30,overlayOpacity:.5,autoPosition:!0,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1,dontShowAgain:!1,dontShowAgainLabel:"Don't show this again",dontShowAgainCookie:"introjs-dontShowAgain",dontShowAgainCookieDays:365,helperElementPadding:10,hintPosition:"top-middle",hintButtonLabel:"Got it",hintShowButton:!0,hintAutoRefreshInterval:10,hintAnimation:!0,buttonClass:"introjs-button",progressBarAdditionalClass:!1}}return t.prototype.isActive=function(){return(!this._options.dontShowAgain||(e=f6(this._options.dontShowAgainCookie))===""||e!=="true")&&this._options.isActive;var e},t.prototype.clone=function(){return new t(this._targetElement)},t.prototype.setOption=function(e,n){return this._options=P6(this._options,e,n),this},t.prototype.setOptions=function(e){return this._options=function(n,i){for(var c=0,S=Object.entries(i);c<S.length;c++){var F=S[c];n=P6(n,F[0],F[1])}return n}(this._options,e),this},t.prototype.start=function(){return Wo(this,void 0,void 0,function(){return Yo(this,function(e){switch(e.label){case 0:return[4,ZW(this,this._targetElement)];case 1:return e.sent(),[2,this]}})})},t.prototype.goToStep=function(e){return Wo(this,void 0,void 0,function(){return Yo(this,function(n){switch(n.label){case 0:return[4,qW(this,e)];case 1:return n.sent(),[2,this]}})})},t.prototype.addStep=function(e){return this._options.steps||(this._options.steps=[]),this._options.steps.push(e),this},t.prototype.addSteps=function(e){if(!e.length)return this;for(var n=0;n<e.length;n++)this.addStep(e[n]);return this},t.prototype.goToStepNumber=function(e){return Wo(this,void 0,void 0,function(){return Yo(this,function(n){switch(n.label){case 0:return[4,$W(this,e)];case 1:return n.sent(),[2,this]}})})},t.prototype.nextStep=function(){return Wo(this,void 0,void 0,function(){return Yo(this,function(e){switch(e.label){case 0:return[4,Xy(this)];case 1:return e.sent(),[2,this]}})})},t.prototype.previousStep=function(){return Wo(this,void 0,void 0,function(){return Yo(this,function(e){switch(e.label){case 0:return[4,_k(this)];case 1:return e.sent(),[2,this]}})})},t.prototype.currentStep=function(){return this._currentStep},t.prototype.exit=function(e){return Wo(this,void 0,void 0,function(){return Yo(this,function(n){switch(n.label){case 0:return[4,Gy(this,this._targetElement,e)];case 1:return n.sent(),[2,this]}})})},t.prototype.refresh=function(e){return T6(this,e),this},t.prototype.setDontShowAgain=function(e){return WW(this,e),this},t.prototype.onbeforechange=function(e){if(!va(e))throw new Error("Provided callback for onbeforechange was not a function");return this._introBeforeChangeCallback=e,this},t.prototype.onchange=function(e){if(!va(e))throw new Error("Provided callback for onchange was not a function.");return this._introChangeCallback=e,this},t.prototype.onafterchange=function(e){if(!va(e))throw new Error("Provided callback for onafterchange was not a function");return this._introAfterChangeCallback=e,this},t.prototype.oncomplete=function(e){if(!va(e))throw new Error("Provided callback for oncomplete was not a function.");return this._introCompleteCallback=e,this},t.prototype.onhintsadded=function(e){if(!va(e))throw new Error("Provided callback for onhintsadded was not a function.");return this._hintsAddedCallback=e,this},t.prototype.onhintclick=function(e){if(!va(e))throw new Error("Provided callback for onhintclick was not a function.");return this._hintClickCallback=e,this},t.prototype.onhintclose=function(e){if(!va(e))throw new Error("Provided callback for onhintclose was not a function.");return this._hintCloseCallback=e,this},t.prototype.onstart=function(e){if(!va(e))throw new Error("Provided callback for onstart was not a function.");return this._introStartCallback=e,this},t.prototype.onexit=function(e){if(!va(e))throw new Error("Provided callback for onexit was not a function.");return this._introExitCallback=e,this},t.prototype.onskip=function(e){if(!va(e))throw new Error("Provided callback for onskip was not a function.");return this._introSkipCallback=e,this},t.prototype.onbeforeexit=function(e){if(!va(e))throw new Error("Provided callback for onbeforeexit was not a function.");return this._introBeforeExitCallback=e,this},t.prototype.addHints=function(){return Wo(this,void 0,void 0,function(){return Yo(this,function(e){switch(e.label){case 0:return[4,M6(this,this._targetElement)];case 1:return e.sent(),[2,this]}})})},t.prototype.hideHint=function(e){return Wo(this,void 0,void 0,function(){return Yo(this,function(n){switch(n.label){case 0:return[4,R5(this,e)];case 1:return n.sent(),[2,this]}})})},t.prototype.hideHints=function(){return Wo(this,void 0,void 0,function(){return Yo(this,function(e){switch(e.label){case 0:return[4,XW(this)];case 1:return e.sent(),[2,this]}})})},t.prototype.showHint=function(e){return _6(e),this},t.prototype.showHints=function(){return Wo(this,void 0,void 0,function(){return Yo(this,function(e){switch(e.label){case 0:return[4,GW(this)];case 1:return e.sent(),[2,this]}})})},t.prototype.removeHints=function(){return function(e){for(var n=0,i=Ub(".introjs-hint");n<i.length;n++){var c=i[n].getAttribute("data-step");c&&S6(parseInt(c,10))}Xf.off(document,"click",Sk,e,!1),Xf.off(window,"resize",Ek,e,!0),e._hintsAutoRefreshFunction&&Xf.off(window,"scroll",e._hintsAutoRefreshFunction,e,!0)}(this),this},t.prototype.removeHint=function(e){return S6(e),this},t.prototype.showHintDialog=function(e){return Wo(this,void 0,void 0,function(){return Yo(this,function(n){switch(n.label){case 0:return[4,C6(this,e)];case 1:return n.sent(),[2,this]}})})},t}(),Ck=function t(e){var n;if(gk(e)==="object")n=new L5(e);else if(typeof e=="string"){var i=document.querySelector(e);if(!i)throw new Error("There is no element with given selector.");n=new L5(i)}else n=new L5(document.body);return t.instances[A5(n,"introjs-instance")]=n,n};Ck.version="7.2.0",Ck.instances={};var QW=Fn(238);const O6=yi.oneOf(["top","right","bottom","left","bottom-left-aligned","bottom-middle-aligned","bottom-right-aligned","top-left-aligned","top-middle-aligned","top-right-aligned","auto"]),N6=yi.oneOf(["top-middle","top-left","top-right","bottom-left","bottom-right","bottom-middle","middle-left","middle-right","middle-middle"]),D6=yi.shape({nextLabel:yi.string,prevLabel:yi.string,skipLabel:yi.string,doneLabel:yi.string,hidePrev:yi.bool,hideNext:yi.bool,tooltipPosition:O6,tooltipClass:yi.string,highlightClass:yi.string,exitOnEsc:yi.bool,exitOnOverlayClick:yi.bool,showStepNumbers:yi.bool,keyboardNavigation:yi.bool,showButtons:yi.bool,showBullets:yi.bool,showProgress:yi.bool,scrollToElement:yi.bool,overlayOpacity:yi.number,scrollPadding:yi.number,positionPrecedence:yi.arrayOf(yi.string),disableInteraction:yi.bool,hintPosition:N6,hintButtonLabel:yi.string,hintAnimation:yi.bool}),R6={hidePrev:!0,hideNext:!0};function L6(){return typeof window=="undefined"}class I5 extends W.Component{constructor(n){super(n);lo(this,"onExit",()=>{const{onExit:n}=this.props;this.isVisible=!1,n(this.introJs._currentStep)});lo(this,"onBeforeExit",()=>{const{onBeforeExit:n}=this.props;return n?n(this.introJs._currentStep):!0});lo(this,"onBeforeChange",n=>{if(!this.isVisible)return!0;const{onBeforeChange:i,onPreventChange:c}=this.props;if(i){const S=i(this.introJs._currentStep,n);return S===!1&&c&&setTimeout(()=>{c(this.introJs._currentStep)},0),S}return!0});lo(this,"onAfterChange",n=>{if(!this.isVisible)return;const{onAfterChange:i}=this.props;i&&i(this.introJs._currentStep,n)});lo(this,"onChange",n=>{if(!this.isVisible)return;const{onChange:i}=this.props;i&&i(this.introJs._currentStep,n)});lo(this,"onComplete",()=>{const{onComplete:n}=this.props;n&&n()});lo(this,"updateStepElement",n=>{const i=document.querySelector(this.introJs._options.steps[n].element);i&&(this.introJs._introItems[n].element=i,this.introJs._introItems[n].position=this.introJs._options.steps[n].position||"auto")});this.introJs=null,this.isConfigured=!1,this.isVisible=!1,this.installIntroJs()}componentDidMount(){this.props.enabled&&(this.configureIntroJs(),this.renderSteps())}componentDidUpdate(n){const{enabled:i,steps:c,options:S}=this.props;(!this.isConfigured||n.steps!==c||n.options!==S)&&(this.configureIntroJs(),this.renderSteps()),n.enabled!==i&&this.renderSteps()}componentWillUnmount(){this.introJs.exit()}installIntroJs(){L6()||(this.introJs=Ck(),this.introJs.onexit(this.onExit),this.introJs.onbeforeexit(this.onBeforeExit),this.introJs.onbeforechange(this.onBeforeChange),this.introJs.onafterchange(this.onAfterChange),this.introJs.onchange(this.onChange),this.introJs.oncomplete(this.onComplete))}configureIntroJs(){const{options:n,steps:i}=this.props,c=i.map(S=>(0,W.isValidElement)(S.intro)?Mi(xr({},S),{intro:(0,QW.qV)(S.intro)}):S);this.introJs.setOptions(Mi(xr({},n),{steps:c})),this.isConfigured=!0}renderSteps(){const{enabled:n,initialStep:i,steps:c,onStart:S}=this.props;n&&c.length>0&&!this.isVisible?(this.introJs.start(),this.isVisible=!0,this.introJs.goToStepNumber(i+1),S&&S(this.introJs._currentStep)):!n&&this.isVisible&&(this.isVisible=!1,this.introJs.exit())}render(){return null}}lo(I5,"propTypes",{enabled:yi.bool,initialStep:yi.number.isRequired,steps:yi.arrayOf(yi.shape({element:yi.oneOfType([yi.string,typeof Element=="undefined"?yi.any:yi.instanceOf(Element)]),intro:yi.node.isRequired,position:O6,tooltipClass:yi.string,highlightClass:yi.string})).isRequired,onStart:yi.func,onExit:yi.func.isRequired,onBeforeExit:yi.func,onBeforeChange:yi.func,onAfterChange:yi.func,onChange:yi.func,onPreventChange:yi.func,onComplete:yi.func,options:D6}),lo(I5,"defaultProps",{enabled:!1,onStart:null,onBeforeExit:null,onBeforeChange:null,onAfterChange:null,onChange:null,onPreventChange:null,onComplete:null,options:R6});class I6 extends W.Component{constructor(e){super(e),this.introJs=null,this.isConfigured=!1,this.installIntroJs()}componentDidMount(){this.props.enabled&&(this.configureIntroJs(),this.renderHints())}componentDidUpdate(e){const{enabled:n,hints:i,options:c}=this.props;(!this.isConfigured||e.hints!==i||e.options!==c)&&(this.configureIntroJs(),this.renderHints()),e.enabled!==n&&this.renderHints()}componentWillUnmount(){this.introJs.hideHints()}installIntroJs(){if(L6())return;this.introJs=Ck();const{onClick:e,onClose:n}=this.props;e&&this.introJs.onhintclick(e),n&&this.introJs.onhintclose(n)}configureIntroJs(){const{options:e,hints:n}=this.props;this.introJs.removeHints(),this.introJs.setOptions(Mi(xr({},e),{hints:n})),this.isConfigured=!0}renderHints(){const{enabled:e,hints:n}=this.props;e&&n.length>0?this.introJs.showHints():e||this.introJs.hideHints()}render(){return null}}lo(I6,"propTypes",{enabled:yi.bool,hints:yi.arrayOf(yi.shape({element:yi.string.isRequired,hint:yi.string.isRequired,hintPosition:N6})).isRequired,onClick:yi.func,onClose:yi.func,options:D6}),lo(I6,"defaultProps",{enabled:!1,onClick:null,onClose:null,options:R6});const sX={STEP_1:".content__hero",STEP_2:".m-pagination__btn-next",STEP_3:".saved__search-panel div:nth-child(2)",STEP_4:".back-to-results"},ml={STEP_1:{selector:".content",label:"Index"},STEP_2:{selector:"header.content__hero .m-list--horizontal",label:"Help Links"},STEP_3:{selector:".tabbed-navigation",label:"Views"},STEP_4:{selector:".filter-panel",label:"Filters"},STEP_5:{selector:".date-filter",label:"Date Received"},STEP_6:{selector:".filter-panel .aggregation.product",label:"Product/Issue"},STEP_7:{selector:".filter-panel .aggregation button",label:"Show/Hide"},STEP_8:{selector:".search-bar",label:"Search Bar"},STEP_9:{selector:"#search-summary h2",label:"Search Summary"},STEP_10:{selector:".export-results button.export-btn",label:"Export Data"},STEP_11:{selector:".export-results button.print-preview",label:"Print Page"},STEP_12:{selector:".map-shading",label:"Map Shading"},STEP_13:{selector:"#tile-chart-map",label:"Tile Map"},STEP_14:{selector:".row-chart-section",label:"Row Charts"},STEP_15:{selector:".tabbed-navigation",label:"Tabbed Navigation"}},Ns={STEP_1:{selector:".content",label:"Index"},STEP_2:{selector:"header.content__hero .m-list--horizontal",label:"Help Links"},STEP_3:{selector:".tabbed-navigation",label:"Views"},STEP_4:{selector:".filter-panel",label:"Filters"},STEP_5:{selector:".date-filter",label:"Date Received"},STEP_6:{selector:".filter-panel .aggregation.product",label:"Product/Issue"},STEP_7:{selector:".filter-panel .aggregation button",label:"Show/Hide"},STEP_8:{selector:".search-bar",label:"Search Bar"},STEP_9:{selector:"#search-summary h2",label:"Search Summary"},STEP_10:{selector:".export-results button.export-btn",label:"Export Data"},STEP_11:{selector:".export-results button.print-preview",label:"Print Page"},STEP_12:{selector:'[data-tour="select-size"]',label:"Show Number"},STEP_13:{selector:'[data-tour="select-sort"]',label:"Sort Results"},STEP_14:{selector:".refine-bar section.m-btn-group",label:"Show Narratives"},STEP_15:{selector:".cards-panel",label:"Results"},STEP_16:{selector:".to-detail",label:"View Detailed Complaints"},STEP_17:{selector:".tabbed-navigation",label:"Tabbed Navigation"}},gl={STEP_1:{selector:".content",label:"Index"},STEP_2:{selector:"header.content__hero .m-list--horizontal",label:"Help Links"},STEP_3:{selector:".tabbed-navigation",label:"Views"},STEP_4:{selector:".filter-panel",label:"Filters"},STEP_5:{selector:".date-filter",label:"Date Received"},STEP_6:{selector:".filter-panel .aggregation.product",label:"Product/Issue"},STEP_7:{selector:".filter-panel .aggregation button",label:"Show/Hide"},STEP_8:{selector:".search-bar",label:"Search Bar"},STEP_9:{selector:"#search-summary h2",label:"Search Summary"},STEP_10:{selector:".export-results button.export-btn",label:"Export Data"},STEP_11:{selector:".export-results button.print-preview",label:"Print Page"},STEP_12:{selector:'[data-tour="select-lens"]',label:"Aggregate By"},STEP_13:{selector:'[data-tour="select-interval"]',label:"Date Interval"},STEP_14:{selector:".row-chart-section",label:"Row Charts"},STEP_15:{selector:".tabbed-navigation",label:"Tabbed Navigation"}},j5=(t,e)=>`<li><button class="a-btn a-btn--link" onclick="document.querySelectorAll('.introjs-bullets li a')[${t+1}].click()">`+e[1].label+"</button></li>";let j6="";Object.entries(ml).slice(1).forEach((t,e)=>{j6+=j5(e,t)});let B6="";Object.entries(Ns).slice(1).forEach((t,e)=>{B6+=j5(e,t)});let F6="";Object.entries(gl).slice(1).forEach((t,e)=>{F6+=j5(e,t)});const Mk={[ep]:[{element:ml.STEP_1.selector,intro:'<div><div class="left">Welcome to the Consumer Complaint Database!<br /><br />Complaints the CFPB sends to companies for response are published in the Consumer Complaint Database after the company responds, confirming a commercial relationship with the consumer, or after 15 days, whichever comes first.<br /><br />Complaints the CFPB refers to other regulators, such as complaints about depository institutions with less than $10 billion in assets, are not published in the database. This database is not a statistical sample of consumers\u2019 experiences in the marketplace.</div><div class="right"><h4>Index</h4><ul>'+j6+"</ul></div></div>",tooltipClass:"wide"},{element:ml.STEP_2.selector,intro:"These links provide more information about this database."},{element:ml.STEP_3.selector,intro:"You can change how to view complaint data by selecting the three views we have available \u2014 Trends, List, and Map.<br /><br />You are currently on the Map view, which displays complaints by state.<br /><br />To read individual complaints, select List view<br /><br />To visualize complaint data with product and issue breakdowns, select Trends view",position:"top"},{element:ml.STEP_4.selector,intro:"The \u201CFilter results by\u201D panel lets you filter complaint data. To clear filters, uncheck individual selections in the filter panel or to select \u201CClear all filters\u201D under the Search bar."},{element:ml.STEP_5.selector,intro:"You can adjust the date range of the complaint data showed using the \u201CDate CFPB received the complaint\u201D filter. <br /> The default date range is three years from today\u2019s date."},{element:ml.STEP_6.selector,intro:"You can filter complaints by the product and issue the consumer selected when they submitted their complaint.<br /><br />Expand a product or issue to see its sub-products or sub-issues, where available. "},{element:ml.STEP_7.selector,intro:"The blue show/hide icon allows you to expand or collapse specific filters."},{element:ml.STEP_8.selector,intro:"Use the \u201CSearch within\u201D bar to find specific words or phrases in complaints. By default, this will search \u201CAll data\u201D, but you can change this using the gray dropdown menu.<br /> <br />Click \u201CShow advanced search tips\u201D to see some advanced ways to refine your word search."},{element:ml.STEP_9.selector,intro:"As you apply filters and search terms, this will display how many complaints are included out of the total number of complaints published in the database."},{element:ml.STEP_10.selector,intro:"You can export full or filtered results to CSV or JSON by selecting \u201CExport data\u201D."},{element:ml.STEP_11.selector,intro:"Select \u201CPrint\u201D to generate a pdf of the current page."},{element:ml.STEP_12.selector,intro:"Map shading defaults to total complaints, but you can change this to show complaints per 1,000 population in that state."},{element:ml.STEP_13.selector,intro:"Hover over a tile on the map to view complaint information specific to that state. You can filter to see data specific to a state by selecting the state or using the filter panel."},{element:ml.STEP_14.selector,intro:"View complaint volume by product in the bar chart. Use the blue arrow by each product to view breakdowns by sub-products.<br /><br />Once the product is expanded, select the \u201CVisualize\u201D link as shown below, to view trends on sub-products and issues:"},{element:ml.STEP_15.selector,intro:"To learn how to use Trends and List views, select the view and then start the tour."}],[np]:[{element:Ns.STEP_1.selector,intro:'<div><div class="left">Welcome to the Consumer Complaint Database!<br /><br />Complaints the CFPB sends to companies for response are published in the Consumer Complaint Database after the company responds, confirming a commercial relationship with the consumer, or after 15 days, whichever comes first.<br /><br />Complaints the CFPB refers to other regulators, such as complaints about depository institutions with less than $10 billion in assets, are not published in the database. This database is not a statistical sample of consumers\u2019 experiences in the marketplace.</div><div class="right"><h4>Index</h4><ul>'+B6+"</ul></div></div>",tooltipClass:"wide"},{element:Ns.STEP_2.selector,intro:"These links provide more information about this database."},{element:Ns.STEP_3.selector,intro:"You can change how to view complaint data by selecting the three views we have available \u2014 Trends, List, and Map.<br /><br />You are currently on the List view, which shows individual complaints.<br /><br />To visualize complaint data with product and issue breakdowns, select Trends view.<br /><br />To view complaints by state, select Map view."},{element:Ns.STEP_4.selector,intro:"The \u201CFilter results by\u201D panel lets you filter complaint data. To clear filters, uncheck individual selections in the filter panel or to select \u201CClear all filters\u201D under the Search bar."},{element:Ns.STEP_5.selector,intro:"You can adjust the date range of the complaint data showed using the \u201CDate CFPB received the complaint\u201D filter. <br /> The default date range is three years from today\u2019s date."},{element:Ns.STEP_6.selector,intro:"You can filter complaints by the product and issue the consumer selected when they submitted their complaint.<br /><br />Expand a product or issue to see its sub-products or sub-issues, where available. "},{element:Ns.STEP_7.selector,intro:"The blue show/hide icon allows you to expand or collapse specific filters."},{element:Ns.STEP_8.selector,intro:"Use the \u201CSearch within\u201D bar to find specific words or phrases in complaints. By default, this will search \u201CAll data\u201D, but you can change this using the gray dropdown menu.<br /> <br />Click \u201CShow advanced search tips\u201D to see some advanced ways to refine your word search."},{element:Ns.STEP_9.selector,intro:"As you apply filters and search terms, this will display how many complaints are included out of the total number of complaints published in the database."},{element:Ns.STEP_10.selector,intro:"You can export full or filtered results to CSV or JSON by selecting \u201CExport data\u201D."},{element:Ns.STEP_11.selector,intro:"Select \u201CPrint\u201D to generate a pdf of the current page."},{element:Ns.STEP_12.selector,intro:"Select the number of complaints to view per page here."},{element:Ns.STEP_13.selector,intro:"Sort complaints in the list view by \u201CNewest to oldest,\u201D \u201COldest to newest,\u201D \u201CRelevance,\u201D and \u201CRelevance (asc).\u201D<br /><br />Relevancy are based on any applied search terms."},{element:Ns.STEP_14.selector,intro:"You can see all complaints or focus on those with consumer complaint narratives.<br /><br />We publish the consumer\u2019s narrative description of what happened from their complaint if the consumer opts to share it publicly and after taking steps to remove personal information."},{element:Ns.STEP_15.selector,intro:"These are your search results. As you apply filters and search terms, your results will display here. This view shows a preview of the complaint."},{element:Ns.STEP_16.selector,intro:"Click the blue ID number to see more details about a particular complaint."},{element:Ns.STEP_17.selector,intro:"To learn how to use Map and Trend views, select the view and then start the tour."}],[Rl]:[{element:gl.STEP_1.selector,intro:'<div><div class="left">Welcome to the Consumer Complaint Database!<br /><br />Complaints the CFPB sends to companies for response are published in the Consumer Complaint Database after the company responds, confirming a commercial relationship with the consumer, or after 15 days, whichever comes first.<br /><br />Complaints the CFPB refers to other regulators, such as complaints about depository institutions with less than $10 billion in assets, are not published in the database. This database is not a statistical sample of consumers\u2019 experiences in the marketplace.</div><div class="right"><h4>Index</h4><ul>'+F6+"</ul></div></div>",tooltipClass:"wide first-step"},{element:gl.STEP_2.selector,intro:"These links provide more information about this database."},{element:gl.STEP_3.selector,intro:"You can change how to view complaint data by selecting the three views we have available\u2014Trends, List, and Map.<br /><br />You are currently on the Trends view, which visualizes complaint data using a trend line with product and issue breakdowns.<br /><br />To read individual complaints, select List view.<br /><br />To view complaints by state, select Map view.",position:"top"},{element:gl.STEP_4.selector,intro:"The \u201CFilter results by\u201D panel lets you filter complaint data. To clear filters, uncheck individual selections in the filter panel or to select \u201CClear all filters\u201D under the Search bar."},{element:gl.STEP_5.selector,intro:"You can adjust the date range of the complaint data showed using the \u201CDate CFPB received the complaint\u201D filter. <br /> The default date range is three years from today\u2019s date."},{element:gl.STEP_6.selector,intro:"You can filter complaints by the product and issue the consumer selected when they submitted their complaint.<br /><br />Expand a product or issue to see its sub-products or sub-issues, where available. "},{element:gl.STEP_7.selector,intro:"The blue show/hide icon allows you to expand or collapse specific filters."},{element:gl.STEP_8.selector,intro:"Use the \u201CSearch within\u201D bar to find specific words or phrases in complaints. By default, this will search \u201CAll data\u201D, but you can change this using the gray dropdown menu.<br /> <br />Click \u201CShow advanced search tips\u201D to see some advanced ways to refine your word search."},{element:gl.STEP_9.selector,intro:"As you apply filters and search terms, this will display how many complaints are included out of the total number of complaints published in the database."},{element:gl.STEP_10.selector,intro:"You can export full or filtered results to CSV or JSON by selecting \u201CExport data\u201D."},{element:gl.STEP_11.selector,intro:"Select \u201CPrint\u201D to generate a pdf of the current page."},{element:gl.STEP_12.selector,intro:"Select the dropdown to aggregate the data by product or by the company to which the CFPB sent the complaint for response."},{element:gl.STEP_13.selector,intro:"Select this dropdown to change the time interval displayed on the trend line."},{element:gl.STEP_14.selector,intro:"View complaint volume by product in the bar chart. Use the blue arrow by each product to view breakdowns by sub-products.<br /><br />Once the product is expanded, select the \u201CVisualize\u201D link as shown below, to view trends on sub-products and issues:"},{element:gl.STEP_15.selector,intro:"To learn how to use List and Map views, select the view and then start the tour.",position:"top"}]},lX={};var z6=Fn(7810);const JW=()=>{const t=Si();return z6.createElement("button",{onClick:()=>t(F1()),className:"a-btn tour-button"},Wi("help-round"),z6.createElement("span",null,"Take a tour"))};var kk=Fn(7810);const tY=()=>{const t=Si(),{isLoading:e,isFetching:n}=da(),{isLoading:i,isFetching:c}=S5(),{isLoading:S,isFetching:F}=MP(),{isLoading:nt,isFetching:ut}=Cg(),yt=sr(u7),_t=sr(jc),zt=sr(xg),Ht=sr(Eh),Yt=(0,W.useRef)(),re=[e,n,i,c,S,F,nt,ut].some(De=>De),ue={disableInteraction:!1,element:".filter-panel-toggle .m-btn-group .a-btn",intro:"On mobile devices, click the Filter Panel toggle button to open the Filter Panel. Please click the button to proceed."},oe={disableInteraction:!1,element:".filter-panel-toggle .m-btn-group .a-btn",intro:"Click the Filter Panel toggle button again to close the Filter Panel. Please close the Filter Panel to proceed."},de=Ht<750?Mk[_t].slice(0,3).concat(ue,Mk[_t].slice(4,7),oe,Mk[_t].slice(7)):Mk[_t],pe={disableInteraction:!0,scrollToElement:!0,scrollTo:"tooltip",showStepNumbers:!1,exitOnOverlayClick:!1,exitOnEsc:!0,nextLabel:"Next",prevLabel:"Previous",doneLabel:"End Tour",steps:de};function _e(De){if(!De.current)return;const $e=De.current.introJs.currentStep();if(!de[$e])return;de[$e].element===".row-chart-section"&&zl("#row-chart-product .tick.expandable").dispatch("click");const Ye=()=>{var tn;(tn=document.querySelector(".introjs-nextbutton"))==null||tn.setAttribute("style","display: inline"),new Promise(Cn=>{if($e===7)return Cn();const kn=setInterval(()=>{if(document.querySelector(".date-filter")!==null)return clearInterval(kn),Cn()},10)}).then(()=>{De.current.introJs.nextStep().then(()=>{document.querySelector(ue.element).removeEventListener("click",Ye)})})};Ht<750&&($e===3||$e===7)&&(document.querySelector(".introjs-nextbutton").setAttribute("style","display: none"),document.querySelector(ue.element).addEventListener("click",Ye))}function ge(De){return De.current===null||!yt?!0:De.current.introJs.currentStep()+1<de.length?window.confirm("Are you sure you want to exit the tour?"):!0}function qe(){yt&&t(pp())}return zt||re?null:kk.createElement(kk.Fragment,null,kk.createElement(JW,null),kk.createElement(I5,{enabled:yt,initialStep:0,steps:de,onExit:()=>qe(),options:pe,onBeforeChange:()=>_e(Yt),onBeforeExit:()=>ge(Yt),ref:Yt}))};var eY=Object.defineProperty,U6=Object.getOwnPropertySymbols,nY=Object.prototype.hasOwnProperty,rY=Object.prototype.propertyIsEnumerable,H6=(t,e,n)=>e in t?eY(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,iY=(t,e)=>{for(var n in e||(e={}))nY.call(e,n)&&H6(t,n,e[n]);if(U6)for(var n of U6(e))rY.call(e,n)&&H6(t,n,e[n]);return t};const oY=Fn(2169);function aY(t){const e=iY({},t),n=["search_after"],i=["size","page","trend_depth"];return n.forEach(c=>{Object.prototype.hasOwnProperty.call(e,c)&&delete e[c]}),i.forEach(c=>{Object.prototype.hasOwnProperty.call(e,c)&&(e[c]=parseInt(e[c],10))}),e}function sY(t,e){return function(n,i){const c=i(),S=aY(e),{routes:F}=c;F.path===t&&oY(F.params,S)||n(nE(t,S))}}function lY(){const t=Si(),e=Er();(0,W.useEffect)(()=>{t(sY(e.pathname,Ll.parse(e.search)))},[e,t])}function uY(){const t=sr(Eh),e=Si();(0,W.useEffect)(()=>{const n=q0(()=>{t!==window.innerWidth&&e(uy(window.innerWidth))},500);return window.addEventListener("resize",n),n(),()=>window.removeEventListener("resize",n)},[e,t])}function V6(t,e,n=!1){(0,W.useEffect)(()=>(window.addEventListener(t,e,n),function(){window.removeEventListener(t,e)}))}const uX={},cX={},hX={};var B5=Fn(7810);const W6=({fieldName:t,value:e})=>{const{data:n}=da(),i=sr(tu),c=is(n,t,[]),S=is(i,t,[]),F=$R(t),nt=e.split(Ws).pop(),ut=Si(),yt=()=>{if(t==="date_received")ut(Y1("All"));else{const _t=e;if(Um.includes(t)){const zt=CO(_t,S,c,t);ut(mp(t,zt))}else ut(Jm(t,_t))}};return B5.createElement("li",null,B5.createElement("button",{className:"pill flex-fixed",onClick:yt},B5.createElement("span",{className:"name"},F,nt),Wi("delete")))};W6.propTypes={fieldName:Rn().string.isRequired,value:Rn().string.isRequired};var Hb=Fn(7810);const cY=()=>{const t=Si(),e=sr(tu),n=sr(Ww),i=sr(xp),c=sr(bp),S=sr(q1),F=zm.filter(nt=>nt in e).reduce((nt,ut)=>{const yt=e[ut].map(_t=>({fieldName:ut,value:_t}));return nt.concat(yt)},[]);return n&&F.push({fieldName:"has_narrative",value:"Has narrative"}),(!Fr()(i).isSame(Fr()(Fm),"day")||!Fr()(c).isSame(Fr()(lp()),"day"))&&F.unshift({fieldName:"date_received",value:"Date Received: "+Fr()(i).format("M/D/YYYY")+" - "+Fr()(c).format("M/D/YYYY")}),F.length?Hb.createElement("section",{className:"pill-panel"},Hb.createElement("h3",{className:"h4 pill-label flex-fixed"},"Filters applied:"),Hb.createElement("ul",{className:"layout-row"},F.map(nt=>Hb.createElement(W6,{key:nt.fieldName+nt.value,fieldName:nt.fieldName,value:nt.value})),Hb.createElement("li",{className:"clear-all"},Hb.createElement("button",{className:"a-btn a-btn--link body-copy",onClick:()=>t(z1(S))},Wi("delete"),"Clear all filters")))):null},fX={},dX={},pX={};function hY(){const t=(0,W.useRef)(!0),e=(0,W.useRef)(()=>t.current);return(0,W.useEffect)(()=>(t.current=!0,()=>{t.current=!1}),[]),e.current}function fY(t){const e=(0,W.useRef)(t);return e.current=t,e}function dY(t){const e=fY(t);(0,W.useEffect)(()=>()=>e.current(),[])}const F5=VR(2,31)-1;function Y6(t,e,n){const i=n-Date.now();t.current=i<=F5?setTimeout(e,i):setTimeout(()=>Y6(t,e,n),F5)}function pY(){const t=hY(),e=(0,W.useRef)();return dY(()=>clearTimeout(e.current)),(0,W.useMemo)(()=>{const n=()=>clearTimeout(e.current);function i(c,S=0){t()&&(n(),S<=F5?e.current=setTimeout(c,S):Y6(e,c,Date.now()+S))}return{set:i,clear:n,handleRef:e}},[])}var mY=function(){};function mX(t,e){return function(n,i){if(n[i]!==void 0&&!n[t])return new Error("You have provided a `"+i+"` prop to `"+e+"` "+("without an `"+t+"` handler prop. This will render a read-only field. ")+("If the field should be mutable use `"+q6(i)+"`. ")+("Otherwise, set `"+t+"`."))}}function gX(t,e){var n={};return Object.keys(t).forEach(function(i){if(n[q6(i)]=mY,0)var c}),n}function yX(t,e){return t[e]!==void 0}function q6(t){return"default"+t.charAt(0).toUpperCase()+t.substr(1)}function vX(t){return!!t&&(typeof t!="function"||t.prototype&&t.prototype.isReactComponent)}function gY(t){var e=yY(t,"string");return typeof e=="symbol"?e:String(e)}function yY(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function $6(t,e,n){var i=(0,W.useRef)(t!==void 0),c=(0,W.useState)(e),S=c[0],F=c[1],nt=t!==void 0,ut=i.current;return i.current=nt,!nt&&ut&&S!==e&&F(e),[nt?t:S,(0,W.useCallback)(function(yt){for(var _t=arguments.length,zt=new Array(_t>1?_t-1:0),Ht=1;Ht<_t;Ht++)zt[Ht-1]=arguments[Ht];n&&n.apply(void 0,[yt].concat(zt)),F(yt)},[n])]}function bX(t,e){return Object.keys(e).reduce(function(n,i){var c,S=n,F=S[Utils.defaultKey(i)],nt=S[i],ut=_objectWithoutPropertiesLoose(S,[Utils.defaultKey(i),i].map(gY)),yt=e[i],_t=$6(nt,F,t[yt]),zt=_t[0],Ht=_t[1];return _extends({},ut,(c={},c[i]=zt,c[yt]=Ht,c))},t)}var xX=Fn(4839),vY="/Users/jquense/src/uncontrollable/src/uncontrollable.js";function bY(t,e,n){n===void 0&&(n=[]);var i=t.displayName||t.name||"Component",c=Utils.canAcceptRef(t),S=Object.keys(e),F=S.map(Utils.defaultKey);c||!n.length||invariant(!1);var nt=function(yt){_inheritsLoose(_t,yt);function _t(){for(var Ht,Yt=arguments.length,re=new Array(Yt),ue=0;ue<Yt;ue++)re[ue]=arguments[ue];Ht=yt.call.apply(yt,[this].concat(re))||this,Ht.handlers=Object.create(null),S.forEach(function(de){var pe=e[de],_e=function(qe){if(Ht.props[pe]){var De;Ht._notifying=!0;for(var $e=arguments.length,Ye=new Array($e>1?$e-1:0),tn=1;tn<$e;tn++)Ye[tn-1]=arguments[tn];(De=Ht.props)[pe].apply(De,[qe].concat(Ye)),Ht._notifying=!1}Ht.unmounted||Ht.setState(function(gn){var Cn,kn=gn.values;return{values:_extends(Object.create(null),kn,(Cn={},Cn[de]=qe,Cn))}})};Ht.handlers[pe]=_e}),n.length&&(Ht.attachRef=function(de){Ht.inner=de});var oe=Object.create(null);return S.forEach(function(de){oe[de]=Ht.props[Utils.defaultKey(de)]}),Ht.state={values:oe,prevProps:{}},Ht}var zt=_t.prototype;return zt.shouldComponentUpdate=function(){return!this._notifying},_t.getDerivedStateFromProps=function(Yt,re){var ue=re.values,oe=re.prevProps,de={values:_extends(Object.create(null),ue),prevProps:{}};return S.forEach(function(pe){de.prevProps[pe]=Yt[pe],!Utils.isProp(Yt,pe)&&Utils.isProp(oe,pe)&&(de.values[pe]=Yt[Utils.defaultKey(pe)])}),de},zt.componentWillUnmount=function(){this.unmounted=!0},zt.render=function(){var Yt=this,re=this.props,ue=re.innerRef,oe=_objectWithoutPropertiesLoose(re,["innerRef"]);F.forEach(function(pe){delete oe[pe]});var de={};return S.forEach(function(pe){var _e=Yt.props[pe];de[pe]=_e!==void 0?_e:Yt.state.values[pe]}),React.createElement(t,_extends({},oe,de,this.handlers,{ref:ue||this.attachRef}))},_t}(React.Component);polyfill(nt),nt.displayName="Uncontrolled("+i+")",nt.propTypes=_extends({innerRef:function(){}},Utils.uncontrolledPropTypes(e,i)),n.forEach(function(yt){nt.prototype[yt]=function(){var zt;return(zt=this.inner)[yt].apply(zt,arguments)}});var ut=nt;return React.forwardRef&&(ut=React.forwardRef(function(yt,_t){return React.createElement(nt,_extends({},yt,{innerRef:_t,__source:{fileName:vY,lineNumber:128},__self:this}))}),ut.propTypes=nt.propTypes),ut.ControlledComponent=t,ut.deferControlTo=function(yt,_t,zt){return _t===void 0&&(_t={}),bY(yt,_extends({},e,_t),zt)},ut}const X6=t=>!t||typeof t=="function"?t:e=>{t.current=e};function xY(t,e){const n=X6(t),i=X6(e);return c=>{n&&n(c),i&&i(c)}}function wY(t,e){return(0,W.useMemo)(()=>xY(t,e),[t,e])}const z5=wY;function _Y(t){return t.code==="Escape"||t.keyCode===27}function SY(){const t=W.version.split(".");return{major:+t[0],minor:+t[1],patch:+t[2]}}function U5(t){if(!t||typeof t=="function")return null;const{major:e}=SY();return e>=19?t.props.ref:t.ref}function G6(){return(0,W.useState)(null)}const K6=t=>!t||typeof t=="function"?t:e=>{t.current=e};function EY(t,e){const n=K6(t),i=K6(e);return c=>{n&&n(c),i&&i(c)}}function CY(t,e){return(0,W.useMemo)(()=>EY(t,e),[t,e])}const Tk=CY;var Z6=Object.prototype.hasOwnProperty;function Q6(t,e,n){for(n of t.keys())if(C2(n,e))return n}function C2(t,e){var n,i,c;if(t===e)return!0;if(t&&e&&(n=t.constructor)===e.constructor){if(n===Date)return t.getTime()===e.getTime();if(n===RegExp)return t.toString()===e.toString();if(n===Array){if((i=t.length)===e.length)for(;i--&&C2(t[i],e[i]););return i===-1}if(n===Set){if(t.size!==e.size)return!1;for(i of t)if(c=i,c&&typeof c=="object"&&(c=Q6(e,c),!c)||!e.has(c))return!1;return!0}if(n===Map){if(t.size!==e.size)return!1;for(i of t)if(c=i[0],c&&typeof c=="object"&&(c=Q6(e,c),!c)||!C2(i[1],e.get(c)))return!1;return!0}if(n===ArrayBuffer)t=new Uint8Array(t),e=new Uint8Array(e);else if(n===DataView){if((i=t.byteLength)===e.byteLength)for(;i--&&t.getInt8(i)===e.getInt8(i););return i===-1}if(ArrayBuffer.isView(t)){if((i=t.byteLength)===e.byteLength)for(;i--&&t[i]===e[i];);return i===-1}if(!n||typeof t=="object"){i=0;for(n in t)if(Z6.call(t,n)&&++i&&!Z6.call(e,n)||!(n in e)||!C2(t[n],e[n]))return!1;return Object.keys(e).length===i}}return t!==t&&e!==e}function MY(){const t=(0,W.useRef)(!0),e=(0,W.useRef)(()=>t.current);return(0,W.useEffect)(()=>(t.current=!0,()=>{t.current=!1}),[]),e.current}function kY(t){const e=MY();return[t[0],(0,W.useCallback)(n=>{if(e())return t[1](n)},[e,t[1]])]}const TY=kY,AY=_C({defaultModifiers:[gb,MC,v_,SC,OC,IC,BC,UC]}),PY=["enabled","placement","strategy","modifiers"];function OY(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)>=0)continue;n[i]=t[i]}return n}const NY={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},DY={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:t})=>()=>{const{reference:e,popper:n}=t.elements;if("removeAttribute"in e){const i=(e.getAttribute("aria-describedby")||"").split(",").filter(c=>c.trim()!==n.id);i.length?e.setAttribute("aria-describedby",i.join(",")):e.removeAttribute("aria-describedby")}},fn:({state:t})=>{var e;const{popper:n,reference:i}=t.elements,c=(e=n.getAttribute("role"))==null?void 0:e.toLowerCase();if(n.id&&c==="tooltip"&&"setAttribute"in i){const S=i.getAttribute("aria-describedby");if(S&&S.split(",").indexOf(n.id)!==-1)return;i.setAttribute("aria-describedby",S?`${S},${n.id}`:n.id)}}},RY=[];function LY(t,e,n={}){let{enabled:i=!0,placement:c="bottom",strategy:S="absolute",modifiers:F=RY}=n,nt=OY(n,PY);const ut=(0,W.useRef)(F),yt=(0,W.useRef)(),_t=(0,W.useCallback)(()=>{var oe;(oe=yt.current)==null||oe.update()},[]),zt=(0,W.useCallback)(()=>{var oe;(oe=yt.current)==null||oe.forceUpdate()},[]),[Ht,Yt]=TY((0,W.useState)({placement:c,update:_t,forceUpdate:zt,attributes:{},styles:{popper:{},arrow:{}}})),re=(0,W.useMemo)(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:oe})=>{const de={},pe={};Object.keys(oe.elements).forEach(_e=>{de[_e]=oe.styles[_e],pe[_e]=oe.attributes[_e]}),Yt({state:oe,styles:de,attributes:pe,update:_t,forceUpdate:zt,placement:oe.placement})}}),[_t,zt,Yt]),ue=(0,W.useMemo)(()=>(C2(ut.current,F)||(ut.current=F),ut.current),[F]);return(0,W.useEffect)(()=>{!yt.current||!i||yt.current.setOptions({placement:c,strategy:S,modifiers:[...ue,re,NY]})},[S,c,re,i,ue]),(0,W.useEffect)(()=>{if(!(!i||t==null||e==null))return yt.current=AY(t,e,Object.assign({},nt,{placement:c,strategy:S,modifiers:[...ue,DY,re]})),()=>{yt.current!=null&&(yt.current.destroy(),yt.current=void 0,Yt(oe=>Object.assign({},oe,{attributes:{},styles:{popper:{}}})))}},[i,t,e]),Ht}const IY=LY;function jY(t){const e=(0,W.useRef)(t);return(0,W.useEffect)(()=>{e.current=t},[t]),e}const BY=jY;function M2(t){const e=BY(t);return(0,W.useCallback)(function(...n){return e.current&&e.current(...n)},[e])}const J6=()=>{};function FY(t){return t.button===0}function zY(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}const Ak=t=>t&&("current"in t?t.current:t),tR={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function UY(t,e=J6,{disabled:n,clickTrigger:i="click"}={}){const c=(0,W.useRef)(!1),S=(0,W.useRef)(!1),F=(0,W.useCallback)(yt=>{const _t=Ak(t);wp()(!!_t,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),c.current=!_t||zY(yt)||!FY(yt)||!!Ay(_t,yt.target)||S.current,S.current=!1},[t]),nt=M2(yt=>{const _t=Ak(t);_t&&Ay(_t,yt.target)?S.current=!0:S.current=!1}),ut=M2(yt=>{c.current||e(yt)});(0,W.useEffect)(()=>{var yt,_t;if(n||t==null)return;const zt=Py(Ak(t)),Ht=zt.defaultView||window;let Yt=(yt=Ht.event)!=null?yt:(_t=Ht.parent)==null?void 0:_t.event,re=null;tR[i]&&(re=Ku(zt,tR[i],nt,!0));const ue=Ku(zt,i,F,!0),oe=Ku(zt,i,pe=>{if(pe===Yt){Yt=void 0;return}ut(pe)});let de=[];return"ontouchstart"in zt.documentElement&&(de=[].slice.call(zt.body.children).map(pe=>Ku(pe,"mousemove",J6))),()=>{re==null||re(),ue(),oe(),de.forEach(pe=>pe())}},[t,n,i,F,nt,ut])}const HY=UY,VY=()=>{};function WY(t,e,{disabled:n,clickTrigger:i}={}){const c=e||VY;HY(t,c,{disabled:n,clickTrigger:i});const S=M2(F=>{_Y(F)&&c(F)});(0,W.useEffect)(()=>{if(n||t==null)return;const F=Py(Ak(t));let nt=(F.defaultView||window).event;const ut=Ku(F,"keyup",yt=>{if(yt===nt){nt=void 0;return}S(yt)});return()=>{ut()}},[t,n,S])}const YY=WY,eR=(0,W.createContext)(k_?window:void 0),wX=eR.Provider;function qY(){return(0,W.useContext)(eR)}const H5=(t,e)=>k_?t==null?(e||Py()).body:(typeof t=="function"&&(t=t()),t&&"current"in t&&(t=t.current),t&&("nodeType"in t||t.getBoundingClientRect)?t:null):null;function nR(t,e){const n=qY(),[i,c]=(0,W.useState)(()=>H5(t,n==null?void 0:n.document));if(!i){const S=H5(t);S&&c(S)}return(0,W.useEffect)(()=>{e&&i&&e(i)},[e,i]),(0,W.useEffect)(()=>{const S=H5(t);S!==i&&c(S)},[t,i]),i}function $Y(t){const e={};return Array.isArray(t)?(t==null||t.forEach(n=>{e[n.name]=n}),e):t||e}function XY(t={}){return Array.isArray(t)?t:Object.keys(t).map(e=>(t[e].name=e,t[e]))}function GY({enabled:t,enableEvents:e,placement:n,flip:i,offset:c,fixed:S,containerPadding:F,arrowElement:nt,popperConfig:ut={}}){var yt,_t,zt,Ht,Yt;const re=$Y(ut.modifiers);return Object.assign({},ut,{placement:n,enabled:t,strategy:S?"fixed":ut.strategy,modifiers:XY(Object.assign({},re,{eventListeners:{enabled:e,options:(yt=re.eventListeners)==null?void 0:yt.options},preventOverflow:Object.assign({},re.preventOverflow,{options:F?Object.assign({padding:F},(_t=re.preventOverflow)==null?void 0:_t.options):(zt=re.preventOverflow)==null?void 0:zt.options}),offset:{options:Object.assign({offset:c},(Ht=re.offset)==null?void 0:Ht.options)},arrow:Object.assign({},re.arrow,{enabled:!!nt,options:Object.assign({},(Yt=re.arrow)==null?void 0:Yt.options,{element:nt})}),flip:Object.assign({enabled:!!i},re.flip)}))})}const KY=typeof Fn.g!="undefined"&&Fn.g.navigator&&Fn.g.navigator.product==="ReactNative",rR=typeof document!="undefined"||KY?W.useLayoutEffect:W.useEffect;function ZY({children:t,in:e,onExited:n,mountOnEnter:i,unmountOnExit:c}){const S=(0,W.useRef)(null),F=(0,W.useRef)(e),nt=M2(n);(0,W.useEffect)(()=>{e?F.current=!0:nt(S.current)},[e,nt]);const ut=Tk(S,t.ref),yt=(0,W.cloneElement)(t,{ref:ut});return e?yt:c||!F.current&&i?null:yt}const QY=ZY,JY=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function tq(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)>=0)continue;n[i]=t[i]}return n}function eq(t){let{onEnter:e,onEntering:n,onEntered:i,onExit:c,onExiting:S,onExited:F,addEndListener:nt,children:ut}=t,yt=tq(t,JY);const _t=(0,W.useRef)(null),zt=Tk(_t,U5(ut)),Ht=ge=>qe=>{ge&&_t.current&&ge(_t.current,qe)},Yt=(0,W.useCallback)(Ht(e),[e]),re=(0,W.useCallback)(Ht(n),[n]),ue=(0,W.useCallback)(Ht(i),[i]),oe=(0,W.useCallback)(Ht(c),[c]),de=(0,W.useCallback)(Ht(S),[S]),pe=(0,W.useCallback)(Ht(F),[F]),_e=(0,W.useCallback)(Ht(nt),[nt]);return Object.assign({},yt,{nodeRef:_t},e&&{onEnter:Yt},n&&{onEntering:re},i&&{onEntered:ue},c&&{onExit:oe},S&&{onExiting:de},F&&{onExited:pe},nt&&{addEndListener:_e},{children:typeof ut=="function"?(ge,qe)=>ut(ge,Object.assign({},qe,{ref:zt})):(0,W.cloneElement)(ut,{ref:zt})})}var Ds=Fn(4922);const nq=["component"];function rq(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)>=0)continue;n[i]=t[i]}return n}const iq=W.forwardRef((t,e)=>{let{component:n}=t,i=rq(t,nq);const c=eq(i);return(0,Ds.jsx)(n,Object.assign({ref:e},c))});function oq({in:t,onTransition:e}){const n=(0,W.useRef)(null),i=(0,W.useRef)(!0),c=M2(e);return rR(()=>{if(!n.current)return;let S=!1;return c({in:t,element:n.current,initial:i.current,isStale:()=>S}),()=>{S=!0}},[t,c]),rR(()=>(i.current=!1,()=>{i.current=!0}),[]),n}function aq({children:t,in:e,onExited:n,onEntered:i,transition:c}){const[S,F]=(0,W.useState)(!e);e&&S&&F(!1);const nt=oq({in:!!e,onTransition:yt=>{const _t=()=>{yt.isStale()||(yt.in?i==null||i(yt.element,yt.initial):(F(!0),n==null||n(yt.element)))};Promise.resolve(c(yt)).then(_t,zt=>{throw yt.in||F(!0),zt})}}),ut=Tk(nt,t.ref);return S&&!e?null:(0,W.cloneElement)(t,{ref:ut})}function sq(t,e,n){return t?(0,Ds.jsx)(iq,Object.assign({},n,{component:t})):e?(0,Ds.jsx)(aq,Object.assign({},n,{transition:e})):(0,Ds.jsx)(QY,Object.assign({},n))}const iR=W.forwardRef((t,e)=>{const{flip:n,offset:i,placement:c,containerPadding:S,popperConfig:F={},transition:nt,runTransition:ut}=t,[yt,_t]=G6(),[zt,Ht]=G6(),Yt=Tk(_t,e),re=nR(t.container),ue=nR(t.target),[oe,de]=(0,W.useState)(!t.show),pe=IY(ue,yt,GY({placement:c,enableEvents:!!t.show,containerPadding:S||5,flip:n,offset:i,arrowElement:zt,popperConfig:F}));t.show&&oe&&de(!1);const _e=(...Cn)=>{de(!0),t.onExited&&t.onExited(...Cn)},ge=t.show||!oe;if(YY(yt,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!ge)return null;const{onExit:qe,onExiting:De,onEnter:$e,onEntering:Ye,onEntered:tn}=t;let gn=t.children(Object.assign({},pe.attributes.popper,{style:pe.styles.popper,ref:Yt}),{popper:pe,placement:c,show:!!t.show,arrowProps:Object.assign({},pe.attributes.arrow,{style:pe.styles.arrow,ref:Ht})});return gn=sq(nt,ut,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:gn,onExit:qe,onExiting:De,onExited:_e,onEnter:$e,onEntering:Ye,onEntered:tn}),re?_.createPortal(gn,re):null});iR.displayName="Overlay";const lq=iR,uq=typeof Fn.g!="undefined"&&Fn.g.navigator&&Fn.g.navigator.product==="ReactNative",cq=typeof document!="undefined"||uq?W.useLayoutEffect:W.useEffect;function oR(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}const aR=["xxl","xl","lg","md","sm","xs"],sR="xs",k2=W.createContext({prefixes:{},breakpoints:aR,minBreakpoint:sR}),{Consumer:CX,Provider:hq}=k2;function MX({prefixes:t={},breakpoints:e=aR,minBreakpoint:n=sR,dir:i,children:c}){const S=useMemo(()=>({prefixes:xr({},t),breakpoints:e,minBreakpoint:n,dir:i}),[t,e,n,i]);return _jsx(hq,{value:S,children:c})}function Ky(t,e){const{prefixes:n}=(0,W.useContext)(k2);return t||n[e]||e}function kX(){const{breakpoints:t}=useContext(k2);return t}function TX(){const{minBreakpoint:t}=useContext(k2);return t}function lR(){const{dir:t}=(0,W.useContext)(k2);return t==="rtl"}function AX(t,e){typeof e=="string"&&(e={prefix:e});const n=t.prototype&&t.prototype.isReactComponent,{prefix:i,forwardRefAs:c=n?"ref":"innerRef"}=e,S=React.forwardRef((ut,nt)=>{var F=io(ut,[]);F[c]=nt;const yt=Ky(F.bsPrefix,i);return _jsx(t,Mi(xr({},F),{bsPrefix:yt}))});return S.displayName=`Bootstrap(${t.displayName||t.name})`,S}const PX=null,uR=W.forwardRef((S,c)=>{var F=S,{className:t,bsPrefix:e,as:n="div"}=F,i=io(F,["className","bsPrefix","as"]);return e=Ky(e,"popover-header"),(0,Ds.jsx)(n,xr({ref:c,className:os()(t,e)},i))});uR.displayName="PopoverHeader";const fq=uR,cR=W.forwardRef((S,c)=>{var F=S,{className:t,bsPrefix:e,as:n="div"}=F,i=io(F,["className","bsPrefix","as"]);return e=Ky(e,"popover-body"),(0,Ds.jsx)(n,xr({ref:c,className:os()(t,e)},i))});cR.displayName="PopoverBody";const hR=cR;class OX extends W.Component{}function fR(t,e){let n=t;return t==="left"?n=e?"end":"start":t==="right"&&(n=e?"start":"end"),n}function dR(t="absolute"){return{position:t,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const dq=Object.assign(W.forwardRef((Ht,zt)=>{var Yt=Ht,{bsPrefix:t,placement:e="right",className:n,style:i,children:c,body:S,arrowProps:F,hasDoneInitialMeasure:nt,popper:ut,show:yt}=Yt,_t=io(Yt,["bsPrefix","placement","className","style","children","body","arrowProps","hasDoneInitialMeasure","popper","show"]);const re=Ky(t,"popover"),ue=lR(),[oe]=(e==null?void 0:e.split("-"))||[],de=fR(oe,ue);let pe=i;return yt&&!nt&&(pe=xr(xr({},i),dR(ut==null?void 0:ut.strategy))),(0,Ds.jsxs)("div",Mi(xr({ref:zt,role:"tooltip",style:pe,"x-placement":oe,className:os()(n,re,oe&&`bs-popover-${de}`)},_t),{children:[(0,Ds.jsx)("div",xr({className:"popover-arrow"},F)),S?(0,Ds.jsx)(hR,{children:c}):c]}))}),{Header:fq,Body:hR,POPPER_OFFSET:[0,8]}),pR=W.forwardRef((zt,_t)=>{var Ht=zt,{bsPrefix:t,placement:e="right",className:n,style:i,children:c,arrowProps:S,hasDoneInitialMeasure:F,popper:nt,show:ut}=Ht,yt=io(Ht,["bsPrefix","placement","className","style","children","arrowProps","hasDoneInitialMeasure","popper","show"]);t=Ky(t,"tooltip");const Yt=lR(),[re]=(e==null?void 0:e.split("-"))||[],ue=fR(re,Yt);let oe=i;return ut&&!F&&(oe=xr(xr({},i),dR(nt==null?void 0:nt.strategy))),(0,Ds.jsxs)("div",Mi(xr({ref:_t,style:oe,role:"tooltip","x-placement":re,className:os()(n,t,`bs-tooltip-${ue}`)},yt),{children:[(0,Ds.jsx)("div",xr({className:"tooltip-arrow"},S)),(0,Ds.jsx)("div",{className:`${t}-inner`,children:c})]}))});pR.displayName="Tooltip";const mR=Object.assign(pR,{TOOLTIP_OFFSET:[0,6]});function pq(t){const e=(0,W.useRef)(null),n=Ky(void 0,"popover"),i=Ky(void 0,"tooltip"),c=(0,W.useMemo)(()=>({name:"offset",options:{offset:()=>{if(t)return t;if(e.current){if(oR(e.current,n))return dq.POPPER_OFFSET;if(oR(e.current,i))return mR.TOOLTIP_OFFSET}return[0,0]}}}),[t,n,i]);return[e,[c]]}function mq(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.includes(i))continue;n[i]=t[i]}return n}function V5(t,e){return V5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},V5(t,e)}function gq(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,V5(t,e)}const gR={disabled:!1},yR=W.createContext(null);var yq=function(e){return e.scrollTop},T2="unmounted",Zy="exited",Tg="entering",Qy="entered",W5="exiting",zp=function(t){gq(e,t);function e(i,c){var S;S=t.call(this,i,c)||this;var F=c,nt=F&&!F.isMounting?i.enter:i.appear,ut;return S.appearStatus=null,i.in?nt?(ut=Zy,S.appearStatus=Tg):ut=Qy:i.unmountOnExit||i.mountOnEnter?ut=T2:ut=Zy,S.state={status:ut},S.nextCallback=null,S}e.getDerivedStateFromProps=function(c,S){var F=c.in;return F&&S.status===T2?{status:Zy}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(c){var S=null;if(c!==this.props){var F=this.state.status;this.props.in?F!==Tg&&F!==Qy&&(S=Tg):(F===Tg||F===Qy)&&(S=W5)}this.updateStatus(!1,S)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var c=this.props.timeout,S,F,nt;return S=F=nt=c,c!=null&&typeof c!="number"&&(S=c.exit,F=c.enter,nt=c.appear!==void 0?c.appear:F),{exit:S,enter:F,appear:nt}},n.updateStatus=function(c,S){if(c===void 0&&(c=!1),S!==null)if(this.cancelNextCallback(),S===Tg){if(this.props.unmountOnExit||this.props.mountOnEnter){var F=this.props.nodeRef?this.props.nodeRef.current:_.findDOMNode(this);F&&yq(F)}this.performEnter(c)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Zy&&this.setState({status:T2})},n.performEnter=function(c){var S=this,F=this.props.enter,nt=this.context?this.context.isMounting:c,ut=this.props.nodeRef?[nt]:[_.findDOMNode(this),nt],yt=ut[0],_t=ut[1],zt=this.getTimeouts(),Ht=nt?zt.appear:zt.enter;if(!c&&!F||gR.disabled){this.safeSetState({status:Qy},function(){S.props.onEntered(yt)});return}this.props.onEnter(yt,_t),this.safeSetState({status:Tg},function(){S.props.onEntering(yt,_t),S.onTransitionEnd(Ht,function(){S.safeSetState({status:Qy},function(){S.props.onEntered(yt,_t)})})})},n.performExit=function(){var c=this,S=this.props.exit,F=this.getTimeouts(),nt=this.props.nodeRef?void 0:_.findDOMNode(this);if(!S||gR.disabled){this.safeSetState({status:Zy},function(){c.props.onExited(nt)});return}this.props.onExit(nt),this.safeSetState({status:W5},function(){c.props.onExiting(nt),c.onTransitionEnd(F.exit,function(){c.safeSetState({status:Zy},function(){c.props.onExited(nt)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(c,S){S=this.setNextCallback(S),this.setState(c,S)},n.setNextCallback=function(c){var S=this,F=!0;return this.nextCallback=function(nt){F&&(F=!1,S.nextCallback=null,c(nt))},this.nextCallback.cancel=function(){F=!1},this.nextCallback},n.onTransitionEnd=function(c,S){this.setNextCallback(S);var F=this.props.nodeRef?this.props.nodeRef.current:_.findDOMNode(this),nt=c==null&&!this.props.addEndListener;if(!F||nt){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var ut=this.props.nodeRef?[this.nextCallback]:[F,this.nextCallback],yt=ut[0],_t=ut[1];this.props.addEndListener(yt,_t)}c!=null&&setTimeout(this.nextCallback,c)},n.render=function(){var c=this.state.status;if(c===T2)return null;var S=this.props,F=S.children,nt=S.in,ut=S.mountOnEnter,yt=S.unmountOnExit,_t=S.appear,zt=S.enter,Ht=S.exit,Yt=S.timeout,re=S.addEndListener,ue=S.onEnter,oe=S.onEntering,de=S.onEntered,pe=S.onExit,_e=S.onExiting,ge=S.onExited,qe=S.nodeRef,De=mq(S,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return W.createElement(yR.Provider,{value:null},typeof F=="function"?F(c,De):W.cloneElement(W.Children.only(F),De))},e}(W.Component);zp.contextType=yR,zp.propTypes={};function Vb(){}zp.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vb,onEntering:Vb,onEntered:Vb,onExit:Vb,onExiting:Vb,onExited:Vb},zp.UNMOUNTED=T2,zp.EXITED=Zy,zp.ENTERING=Tg,zp.ENTERED=Qy,zp.EXITING=W5;const vq=zp;function bq(t){var e=Py(t);return e&&e.defaultView||window}function xq(t,e){return bq(t).getComputedStyle(t,e)}var wq=/([A-Z])/g;function _q(t){return t.replace(wq,"-$1").toLowerCase()}var Sq=/^ms-/;function Pk(t){return _q(t).replace(Sq,"-ms-")}var Eq=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function Cq(t){return!!(t&&Eq.test(t))}function Mq(t,e){var n="",i="";if(typeof e=="string")return t.style.getPropertyValue(Pk(e))||xq(t).getPropertyValue(Pk(e));Object.keys(e).forEach(function(c){var S=e[c];!S&&S!==0?t.style.removeProperty(Pk(c)):Cq(c)?i+=c+"("+S+") ":n+=Pk(c)+": "+S+";"}),i&&(n+="transform: "+i+";"),t.style.cssText+=";"+n}const vR=Mq;function kq(t,e,n,i){if(n===void 0&&(n=!1),i===void 0&&(i=!0),t){var c=document.createEvent("HTMLEvents");c.initEvent(e,n,i),t.dispatchEvent(c)}}function Tq(t){var e=vR(t,"transitionDuration")||"",n=e.indexOf("ms")===-1?1e3:1;return parseFloat(e)*n}function Aq(t,e,n){n===void 0&&(n=5);var i=!1,c=setTimeout(function(){i||kq(t,"transitionend",!0)},e+n),S=Ku(t,"transitionend",function(){i=!0},{once:!0});return function(){clearTimeout(c),S()}}function Pq(t,e,n,i){n==null&&(n=Tq(t)||0);var c=Aq(t,n,i),S=Ku(t,"transitionend",e);return function(){c(),S()}}function bR(t,e){const n=vR(t,e)||"",i=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*i}function Oq(t,e){const n=bR(t,"transitionDuration"),i=bR(t,"transitionDelay"),c=Pq(t,S=>{S.target===t&&(c(),e(S))},n+i)}function Nq(t){t.offsetHeight}function Ok(t){return t&&"setState"in t?_.findDOMNode(t):t!=null?t:null}const Dq=W.forwardRef((zt,_t)=>{var Ht=zt,{onEnter:t,onEntering:e,onEntered:n,onExit:i,onExiting:c,onExited:S,addEndListener:F,children:nt,childRef:ut}=Ht,yt=io(Ht,["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children","childRef"]);const Yt=(0,W.useRef)(null),re=z5(Yt,ut),ue=Ye=>{re(Ok(Ye))},oe=Ye=>tn=>{Ye&&Yt.current&&Ye(Yt.current,tn)},de=(0,W.useCallback)(oe(t),[t]),pe=(0,W.useCallback)(oe(e),[e]),_e=(0,W.useCallback)(oe(n),[n]),ge=(0,W.useCallback)(oe(i),[i]),qe=(0,W.useCallback)(oe(c),[c]),De=(0,W.useCallback)(oe(S),[S]),$e=(0,W.useCallback)(oe(F),[F]);return(0,Ds.jsx)(vq,Mi(xr({ref:_t},yt),{onEnter:de,onEntered:_e,onEntering:pe,onExit:ge,onExited:De,onExiting:qe,addEndListener:$e,nodeRef:Yt,children:typeof nt=="function"?(Ye,tn)=>nt(Ye,Mi(xr({},tn),{ref:ue})):W.cloneElement(nt,{ref:ue})}))}),Rq={[Tg]:"show",[Qy]:"show"},xR=W.forwardRef((F,S)=>{var nt=F,{className:t,children:e,transitionClasses:n={},onEnter:i}=nt,c=io(nt,["className","children","transitionClasses","onEnter"]);const ut=xr({in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},c),yt=(0,W.useCallback)((_t,zt)=>{Nq(_t),i==null||i(_t,zt)},[i]);return(0,Ds.jsx)(Dq,Mi(xr({ref:S,addEndListener:Oq},ut),{onEnter:yt,childRef:U5(e),children:(_t,zt)=>W.cloneElement(e,Mi(xr({},zt),{className:os()("fade",t,e.props.className,Rq[_t],n[_t])}))}))});xR.displayName="Fade";const wR=xR;function Lq(t,e){const{ref:n}=t,{ref:i}=e;t.ref=n.__wrapped||(n.__wrapped=c=>n(Ok(c))),e.ref=i.__wrapped||(i.__wrapped=c=>i(Ok(c)))}const _R=W.forwardRef((ut,nt)=>{var yt=ut,{children:t,transition:e=wR,popperConfig:n={},rootClose:i=!1,placement:c="top",show:S=!1}=yt,F=io(yt,["children","transition","popperConfig","rootClose","placement","show"]);const _t=(0,W.useRef)({}),[zt,Ht]=(0,W.useState)(null),[Yt,re]=pq(F.offset),ue=z5(nt,Yt),oe=e===!0?wR:e||void 0,de=P_(pe=>{Ht(pe),n==null||n.onFirstUpdate==null||n.onFirstUpdate(pe)});return cq(()=>{zt&&F.target&&(_t.current.scheduleUpdate==null||_t.current.scheduleUpdate())},[zt,F.target]),(0,W.useEffect)(()=>{S||Ht(null)},[S]),(0,Ds.jsx)(lq,Mi(xr({},F),{ref:ue,popperConfig:Mi(xr({},n),{modifiers:re.concat(n.modifiers||[]),onFirstUpdate:de}),transition:oe,rootClose:i,placement:c,show:S,children:(pe,{arrowProps:_e,popper:ge,show:qe})=>{var De;Lq(pe,_e);const $e=ge==null?void 0:ge.placement,Ye=Object.assign(_t.current,{state:ge==null?void 0:ge.state,scheduleUpdate:ge==null?void 0:ge.update,placement:$e,outOfBoundaries:(ge==null||(De=ge.state)==null||(De=De.modifiersData.hide)==null?void 0:De.isReferenceHidden)||!1,strategy:n.strategy}),tn=!!zt;return typeof t=="function"?t(Mi(xr(Mi(xr({},pe),{placement:$e,show:qe}),!e&&qe&&{className:"show"}),{popper:Ye,arrowProps:_e,hasDoneInitialMeasure:tn})):W.cloneElement(t,Mi(xr({},pe),{placement:$e,arrowProps:_e,popper:Ye,hasDoneInitialMeasure:tn,className:os()(t.props.className,!e&&qe&&"show"),style:xr(xr({},t.props.style),pe.style)}))}}))});_R.displayName="Overlay";const Iq=_R;function jq(t){return t&&typeof t=="object"?t:{show:t,hide:t}}function SR(t,e,n){const[i]=e,c=i.currentTarget,S=i.relatedTarget||i.nativeEvent[n];(!S||S!==c)&&!Ay(c,S)&&t(...e)}const RX=Rn().oneOf(["click","hover","focus"]),Bq=zt=>{var Ht=zt,{trigger:t=["hover","focus"],overlay:e,children:n,popperConfig:i={},show:c,defaultShow:S=!1,onToggle:F,delay:nt,placement:ut,flip:yt=ut&&ut.indexOf("auto")!==-1}=Ht,_t=io(Ht,["trigger","overlay","children","popperConfig","show","defaultShow","onToggle","delay","placement","flip"]);const Yt=(0,W.useRef)(null),re=z5(Yt,U5(n)),ue=pY(),oe=(0,W.useRef)(""),[de,pe]=$6(c,S,F),_e=jq(nt),{onFocus:ge,onBlur:qe,onClick:De}=typeof n!="function"?W.Children.only(n).props:{},$e=Vn=>{re(Ok(Vn))},Ye=(0,W.useCallback)(()=>{if(ue.clear(),oe.current="show",!_e.show){pe(!0);return}ue.set(()=>{oe.current==="show"&&pe(!0)},_e.show)},[_e.show,pe,ue]),tn=(0,W.useCallback)(()=>{if(ue.clear(),oe.current="hide",!_e.hide){pe(!1);return}ue.set(()=>{oe.current==="hide"&&pe(!1)},_e.hide)},[_e.hide,pe,ue]),gn=(0,W.useCallback)((...Vn)=>{Ye(),ge==null||ge(...Vn)},[Ye,ge]),Cn=(0,W.useCallback)((...Vn)=>{tn(),qe==null||qe(...Vn)},[tn,qe]),kn=(0,W.useCallback)((...Vn)=>{pe(!de),De==null||De(...Vn)},[De,pe,de]),Zn=(0,W.useCallback)((...Vn)=>{SR(Ye,Vn,"fromElement")},[Ye]),fn=(0,W.useCallback)((...Vn)=>{SR(tn,Vn,"toElement")},[tn]),jn=t==null?[]:[].concat(t),On={ref:$e};return jn.indexOf("click")!==-1&&(On.onClick=kn),jn.indexOf("focus")!==-1&&(On.onFocus=gn,On.onBlur=Cn),jn.indexOf("hover")!==-1&&(On.onMouseOver=Zn,On.onMouseOut=fn),(0,Ds.jsxs)(Ds.Fragment,{children:[typeof n=="function"?n(On):(0,W.cloneElement)(n,On),(0,Ds.jsx)(Iq,Mi(xr({},_t),{show:de,onHide:tn,flip:yt,placement:ut,popperConfig:i,target:Yt.current,children:e}))]})};var ER=Fn(7810);const Fc=({children:t,placement:e,text:n})=>ER.createElement(Bq,{placement:e,overlay:ER.createElement(mR,null,n)},t);Fc.propTypes={children:Rn().element.isRequired,placement:Rn().string,text:Rn().string.isRequired};const IX={};var _s=Fn(7810);const Wb=({id:t,notes:e,placeholderText:n,tooltipText:i})=>{const[c,S]=(0,W.useState)(!1);return _s.createElement("div",{className:"o-expandable complex-example"},_s.createElement("button",{className:"o-expandable__header","aria-expanded":c,onClick:()=>{S(!c)},title:"Expand content"},_s.createElement("h3",{className:"o-expandable__label"},"Additional information and examples"),_s.createElement("span",{className:"o-expandable__cues"},c?_s.createElement("span",{className:"o-expandable__cue-close",role:"img","aria-label":"Hide"},_s.createElement("span",{className:"u-visually-hidden-on-mobile"},Wi("up"))):_s.createElement("span",{className:"o-expandable__cue-open",role:"img","aria-label":"Show"},_s.createElement("span",{className:"u-visually-hidden-on-mobile"},Wi("down"))))),c?_s.createElement("div",{className:"o-expandable__content"},i&&n?_s.createElement(_s.Fragment,null,_s.createElement("label",{className:"descriptor",htmlFor:`example-${t}`},"Complex example:"),_s.createElement("span",{className:"u-visually-hidden"},i),_s.createElement(Fc,{text:i},n.length>30?_s.createElement("textarea",{className:"a-text-input example-input",id:`example-${t}`,rows:2,readOnly:!0,value:n}):_s.createElement("input",{className:"a-text-input example-input",id:`example-${t}`,rows:2,readOnly:!0,value:n}))):null,_s.createElement("h4",{className:"descriptor"},"Notes:"),_s.createElement("ul",{className:"m-list"},e.map((F,nt)=>_s.createElement("li",{className:"m-list__item",key:nt},F)))):null)};Wb.propTypes={id:Rn().string.isRequired,notes:Rn().array.isRequired,placeholderText:Rn().string,tooltipText:Rn().string};var Wr=Fn(7810);const Fq=()=>Wr.createElement("div",{className:"advanced-tips"},Wr.createElement("div",null,Wr.createElement("h3",null,"Search tips"),Wr.createElement("ul",{className:"m-list"},Wr.createElement("li",{className:"m-list__item"},"Hover over the examples within the sample search bars below to see what their results should return"),Wr.createElement("li",{className:"m-list__item"},'When searching within "All data", terms must be found in the same field to be considered a match'),Wr.createElement("li",{className:"m-list__item"},"The search function will look for any variations of the word that includes the stem \u2013 for example, if deferment is searched, it would return the following variations: deferment, defer, deferred, deferral, etc."))),Wr.createElement("div",{className:"tips content-l"},Wr.createElement("div",{className:"tip content-l__col content-l__col-1-3"},Wr.createElement("h4",null,"AND / OR / NOT"),Wr.createElement("label",{className:"u-visually-hidden",htmlFor:"example-and"},"Use AND when results must contain all terms"),Wr.createElement(Fc,{text:"Results would include both call (call, called, calling, etc.) as well as harass (harass, harassed, harassing, etc.)."},Wr.createElement("input",{className:"a-text-input",id:"example-and",type:"text",readOnly:!0,value:"call AND harass"})),Wr.createElement("label",{className:"u-visually-hidden",htmlFor:"example-or"},"Use OR when results should contain at least one of the terms"),Wr.createElement(Fc,{text:"Results would include either loan (loan, loans, loaned, etc.) or mortage (mortgage, mortgages, etc.)."},Wr.createElement("input",{className:"a-text-input",id:"example-or",type:"text",readOnly:!0,value:"loan OR mortgage"})),Wr.createElement("label",{className:"u-visually-hidden",htmlFor:"example-not"},"Use NOT when results should contain at least one of the terms"),Wr.createElement(Fc,{text:"Results would only include claim (claim, claims, claimed, etc.) and cannot include the term accident (accident, accidents, etc.)"},Wr.createElement("input",{className:"a-text-input",id:"example-not",type:"text",readOnly:!0,value:"claim NOT accident"})),Wr.createElement("div",{className:"tip-description"},Wr.createElement("p",null,"Use AND when results must contain both terms"),Wr.createElement("p",null,"Use OR when results should contain at least one of the terms"),Wr.createElement("p",null,"Use NOT when results must not contain the term")),Wr.createElement(Wb,{id:"and-or-not",notes:["The Boolean operators (AND / OR / NOT) must be capitalized","Boolean operators do not honor precedence rules, so parentheses should be used whenever multiple operators are used together \u2013 if they are not used correctly (i.e., having multiple operators outside of parentheses), then your results might not return what you intended."],placeholderText:"call AND (harass* OR annoy* OR threat OR repeat) AND NOT spam",tooltipText:"This example would return results that include the word call (called, calling, etc.) and one of the words in the parentheses, but exclude the word spam (spammed, spamming, etc.)."})),Wr.createElement("div",{className:"tip content-l__col content-l__col-1-3"},Wr.createElement("h4",null,"Must/Must not contain"),Wr.createElement("label",{className:"u-visually-hidden",htmlFor:"example-must-plus"},"Use + if the search must contain the selected term"),Wr.createElement(Fc,{text:"Results must include the word foreclosure (foreclosure, foreclosed, etc.)."},Wr.createElement("input",{className:"a-text-input",id:"example-must-plus",type:"text",readOnly:!0,value:"+foreclosure"})),Wr.createElement("label",{className:"u-visually-hidden",htmlFor:"example-must-minus"},"Use - if the search must not contain the selected term"),Wr.createElement(Fc,{text:"Results cannot include the word collect (collect, collects, collecting, etc.)."},Wr.createElement("input",{className:"a-text-input",id:"example-must-minus",type:"text",readOnly:!0,value:"-collect"})),Wr.createElement("div",{className:"tip-description"},Wr.createElement("p",null,"Use + if the search must contain the selected term"),Wr.createElement("p",null,"Use - if the search must not contain the selected term")),Wr.createElement(Wb,{id:"must-or-must-not",notes:['Since the terms "insurance" and "claim" do not have to be included in the results, their appearance will give the result a greater relevance score.',"There cannot be a space between the operator (+ / -) and searched term."],placeholderText:"insurance claim +agent +car -accident",tooltipText:"Results must include the terms agent and car but exclude accident \u2013 the terms insurance and claim are optional"})),Wr.createElement("div",{className:"tip content-l__col content-l__col-1-3"},Wr.createElement("h4",null,"Wildcard search"),Wr.createElement("label",{className:"u-visually-hidden",htmlFor:"example-wc-star"},"Use * to substitute any consecutive number of characters."),Wr.createElement(Fc,{text:'Results would include all terms that start with the base "report" (report, reports, reported, reporting, etc.) and "$*.00" would include all variations of whole number dollar values ($8.00, $1234.00, etc.).'},Wr.createElement("input",{className:"a-text-input",id:"example-wc-star",type:"text",readOnly:!0,value:"report* AND $*.00"})),Wr.createElement("label",{className:"u-visually-hidden",htmlFor:"example-wc-question"},"Use ? to replace any single character anywhere in a term."),Wr.createElement(Fc,{text:"Results would return variations such as: woman, women, etc."},Wr.createElement("input",{className:"a-text-input",id:"example-wc-question",type:"text",readOnly:!0,value:"wom?n"})),Wr.createElement("div",{className:"tip-description"},Wr.createElement("p",null,"Use * to substitute any consecutive number of characters."),Wr.createElement("p",null,"Use ? to replace any single character anywhere in a term."))),Wr.createElement("div",{className:"tip content-l__col content-l__col-1-3"},Wr.createElement("h4",null,"Proximity search"),Wr.createElement("label",{className:"u-visually-hidden",htmlFor:"example-proximity"},'Use ~[#] at the end of a phrase to search for terms with up to that number of gap words between them; Order does not matter and the terms should be in a single set of quotation marks (" ").'),Wr.createElement(Fc,{text:'Results would include the terms "auto", "loan", and "default" in any order, with up to three (3) gap words in between them. For example, results could include: "defaulted auto loan", "auto loan that went into default", "Auto Loan with the same defaulted", etc.'},Wr.createElement("input",{className:"a-text-input example-input",id:"example-proximity",type:"text",readOnly:!0,value:'"auto loan default"~3'})),Wr.createElement("div",{className:"tip-description"},Wr.createElement("p",null,'Use ~[#] at the end of a phrase to search for terms with up to that number of gap words between them; Order does not matter and the terms should be in a single set of quotation marks (" ").')),Wr.createElement(Wb,{id:"proximity",notes:['Proximity phrase search must use straight quotes (" ") versus curly quotes (\u201C \u201D), or else the search function will not perform properly',"The closer the specified terms are within the data, the more relevant the search results become."]})),Wr.createElement("div",{className:"tip content-l__col content-l__col-1-3"},Wr.createElement("h4",null,"Fuzzy search"),Wr.createElement("label",{className:"u-visually-hidden",htmlFor:"example-fuzzy"},"Use ~1 at the end of a term to search for terms that are spelled similarly to your keyword within a certain margin of error."),Wr.createElement(Fc,{text:"Results would include the correct spelling of escrow, as well as other (potentially misspelled) versions, such as: escrow, escrowed, escro, esrow, etc."},Wr.createElement("input",{className:"a-text-input example-input",id:"example-fuzzy",type:"text",readOnly:!0,value:"escrow~1"})),Wr.createElement("div",{className:"tip-description"},Wr.createElement("p",null,"Use ~1 at the end of a term to search for terms that are spelled similarly to your keyword within a certain margin of error.")),Wr.createElement(Wb,{id:"fuzzy",notes:["The search looks for a maximum of two changes in the term, where a change is the insertion, deletion or substitution of a single character or transposition of two adjacent characters (this catches about 80% of misspelled words).","Fuzzy term search can only be used with single terms, it does not support phrases."],placeholderText:"escrow~1 -escrow -escrowed",tooltipText:'Results would return the various misspellings of the word "escrow" that fuzzy term search identifies (after excluding the escrow and escrowed).'})),Wr.createElement("div",{className:"tip content-l__col content-l__col-1-3"},Wr.createElement("h4",null,"Boost search"),Wr.createElement("label",{className:"u-visually-hidden",htmlFor:"example-boost"},"Use ^[#] at the end of a term or terms to increase or decrease its relevance compared to the other term(s)."),Wr.createElement(Fc,{text:'Results would be sorted by relevance in favor of the term "pay"'},Wr.createElement("input",{className:"a-text-input example-input",id:"example-boost",type:"text",readOnly:!0,value:"pay^2 OR credit"})),Wr.createElement("div",{className:"tip-description"},Wr.createElement("p",null,"Use ^[#] at the end of a term or terms to increase or decrease its relevance compared to the other term(s).")),Wr.createElement(Wb,{id:"boost",notes:["A boost value between 0 and 1.0 decreases the relevance score while a value greater than 1.0 increases the relevance score."]}))),Wr.createElement("div",{className:"footer"},Wr.createElement("h3",null,"Additional notes:"),Wr.createElement("ul",{className:"m-list"},Wr.createElement("li",{className:"m-list__item"},'Putting a phrase only in quotations (" ") will search for the words in that order, but it will not be an exact match \u2013 meaning it may include stemmed versions of the term.'),Wr.createElement("li",{className:"m-list__item"},'The default operator is "AND", meaning if you search "foreclosure house", it will search results that include both words (i.e., foreclosure AND house).'),Wr.createElement("li",{className:"m-list__item"},"Capitalization does not have an effect on searched terms (expect for the AND / OR / NOT operators)."),Wr.createElement("li",{className:"m-list__item"},Wr.createElement("a",{href:"https://www.elastic.co/guide/en/elasticsearch/reference/7.17/elasticsearch-intro.html",target:"_blank",rel:"noopener noreferrer"},"Find out more ",Wi("external-link"))," ","about Elastic Search"))));var Yb=Fn(7810);const CR=({ariaLabel:t,className:e,htmlId:n,isDisabled:i=!1,handleChange:c,handleClear:S,handlePressEnter:F,placeholder:nt="Enter your search text",value:ut})=>Yb.createElement("div",{className:"o-search-input"},Yb.createElement("div",{className:"o-search-input__input"},Yb.createElement("label",{htmlFor:n,className:"o-search-input__input-label","aria-label":t},Wi("search")),Yb.createElement("input",{type:"search",id:n,disabled:i,value:ut,onChange:c,onKeyDown:F,className:"a-text-input a-text-input--full "+e,placeholder:nt,title:nt,autoComplete:"off",maxLength:"75"}),Yb.createElement(Do,{onClear:S})),Yb.createElement("button",{type:"submit",className:"a-btn"},"Search"));CR.propTypes={ariaLabel:Rn().string.isRequired,className:Rn().string,isDisabled:Rn().bool,handleChange:Rn().func.isRequired,handleClear:Rn().func,handlePressEnter:Rn().func,htmlId:Rn().string.isRequired,placeholder:Rn().string,value:Rn().string.isRequired};var yl=Fn(7810);const MR={all:"All data",company:"Company name",complaint_what_happened:"Narratives"},kR=({debounceWait:t=250})=>{const e=Si(),n=sr(q1),i=sr(gE),c=sr(l7),[S,F]=(0,W.useState)(i),[nt,ut]=(0,W.useState)([]),[yt,_t]=(0,W.useState)(!0);(0,W.useEffect)(()=>{F(i)},[i]);const zt=ge=>{e(ge?Za():m3())},Ht=ge=>{ge.preventDefault(),e(Pc(S))},Yt=ge=>{e(hE(ge.target.value))},re=ge=>{ge.preventDefault(),zt(c)},ue=ge=>{F(ge);const qe=`${ph}_suggest_company/?text=${ge}`;Ki(ge,ut,qe)},oe=ge=>{e(Pc(ge[0].key))},de=()=>{e(Pc(""))},pe=()=>{yt&&(e(Pc("")),F("")),_t(!0)},_e=ge=>{ge.key==="Enter"&&(_t(!1),e(Pc(ge.target.value)))};return yl.createElement("div",null,yl.createElement("div",{className:"search-bar",role:"search"},yl.createElement("form",{action:"",onSubmit:Ht},yl.createElement("h3",{className:"h4"},"Search within"),yl.createElement("div",{className:"layout-row"},yl.createElement("div",{className:"cf-select flex-fixed"},yl.createElement("select",{"aria-label":"Choose which field will be searched",id:"searchField",onChange:Yt,value:n},yl.createElement("optgroup",{label:"Search Within"},Object.keys(MR).map(ge=>yl.createElement("option",{key:ge,value:ge},MR[ge]))))),yl.createElement("div",{className:"flex-all typeahead-portal"},n==="company"?yl.createElement(Ri,{ariaLabel:"Enter your search term(s)",htmlId:"searchText",defaultValue:i,delayWait:t,handleChange:oe,handleClear:de,handleSearch:ue,hasClearButton:!0,hasSearchButton:!0,options:nt,placeholder:"Enter your search term(s)"}):yl.createElement(CR,{handleChange:ge=>F(ge.target.value),handleClear:pe,handlePressEnter:_e,htmlId:"searchText",value:S,ariaLabel:"Enter the term you want to search for",placeholder:"Enter your search term(s)"})),yl.createElement("a",{className:"u-visually-hidden",href:"#search-summary"},"Skip to Results"),yl.createElement("div",{className:"advanced-container flex-fixed"},yl.createElement("button",{className:"a-btn a-btn--link",onClick:re},c?"Hide advanced search tips":"Show advanced search tips"))))),c?yl.createElement(Fq,null):null)};kR.propTypes={debounceWait:Rn().number};var A2=Fn(7810);const zq=()=>{const{data:t,isLoading:e,isFetching:n}=da();if(e||n)return null;const i=t==null?void 0:t.lastIndexed;let c=null;return i&&(c=A2.createElement("span",{className:"date-subscript"},"(last updated: ",Kl(i),")")),A2.createElement("div",{className:"search-panel"},A2.createElement("h2",null,"Search complaint data ",c),A2.createElement(kR,null),A2.createElement(cY,null))};var Ag=Fn(7810);const TR=()=>{lY(),uY();const t=sr(xg),e=Si();return V6("afterprint",()=>{t&&e(QS())}),V6("beforeprint",()=>{t||e(Df())}),(0,W.useEffect)(()=>{t&&setTimeout(()=>{window.print()},1e3)},[t]),Ag.createElement("main",{className:`content content--1-3 ccdb-content ${t?"print":""}`,role:"main"},Ag.createElement(JS,null),Ag.createElement("div",{className:"content__wrapper"},Ag.createElement(zq,null),Ag.createElement(R7,null),Ag.createElement(TW,null)),Ag.createElement(tY,null),Ag.createElement(VW,null))};var Zf=Fn(7810);const Uq=()=>Zf.createElement(nv,null,Zf.createElement(pn,null,Zf.createElement(Te,{index:!0,element:Zf.createElement(TR,null)}),Zf.createElement(Te,{path:"/data-research/consumer-complaints/search",element:Zf.createElement(TR,null)}),Zf.createElement(Te,{path:"/data-research/consumer-complaints/search/detail/:id",element:Zf.createElement(Nw,null)}),Zf.createElement(Te,{path:"/detail/:id",element:Zf.createElement(Nw,null)})));function Nk(){return Nk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Nk.apply(null,arguments)}var gu;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(gu||(gu={}));var qb=function(t){return t};function BX(t,e){if(!t){typeof console!="undefined"&&console.warn(e);try{throw new Error(e)}catch(n){}}}var Dk="beforeunload",Hq="hashchange",AR="popstate";function Vq(t){t===void 0&&(t={});var e=t,n=e.window,i=n===void 0?document.defaultView:n,c=i.history;function S(){var $e=i.location,Ye=$e.pathname,tn=$e.search,gn=$e.hash,Cn=c.state||{};return[Cn.idx,qb({pathname:Ye,search:tn,hash:gn,state:Cn.usr||null,key:Cn.key||"default"})]}var F=null;function nt(){if(F)Yt.call(F),F=null;else{var $e=gu.Pop,Ye=S(),tn=Ye[0],gn=Ye[1];if(Yt.length){if(tn!=null){var Cn=_t-tn;Cn&&(F={action:$e,location:gn,retry:function(){qe(Cn*-1)}},qe(Cn))}}else pe($e)}}i.addEventListener(AR,nt);var ut=gu.Pop,yt=S(),_t=yt[0],zt=yt[1],Ht=$b(),Yt=$b();_t==null&&(_t=0,c.replaceState(Nk({},c.state,{idx:_t}),""));function re($e){return typeof $e=="string"?$e:P2($e)}function ue($e,Ye){return Ye===void 0&&(Ye=null),qb(Nk({pathname:zt.pathname,hash:"",search:""},typeof $e=="string"?O2($e):$e,{state:Ye,key:Lk()}))}function oe($e,Ye){return[{usr:$e.state,key:$e.key,idx:Ye},re($e)]}function de($e,Ye,tn){return!Yt.length||(Yt.call({action:$e,location:Ye,retry:tn}),!1)}function pe($e){ut=$e;var Ye=S();_t=Ye[0],zt=Ye[1],Ht.call({action:ut,location:zt})}function _e($e,Ye){var tn=gu.Push,gn=ue($e,Ye);function Cn(){_e($e,Ye)}if(de(tn,gn,Cn)){var kn=oe(gn,_t+1),Zn=kn[0],fn=kn[1];try{c.pushState(Zn,"",fn)}catch(jn){i.location.assign(fn)}pe(tn)}}function ge($e,Ye){var tn=gu.Replace,gn=ue($e,Ye);function Cn(){ge($e,Ye)}if(de(tn,gn,Cn)){var kn=oe(gn,_t),Zn=kn[0],fn=kn[1];c.replaceState(Zn,"",fn),pe(tn)}}function qe($e){c.go($e)}var De={get action(){return ut},get location(){return zt},createHref:re,push:_e,replace:ge,go:qe,back:function(){qe(-1)},forward:function(){qe(1)},listen:function(Ye){return Ht.push(Ye)},block:function(Ye){var tn=Yt.push(Ye);return Yt.length===1&&i.addEventListener(Dk,Rk),function(){tn(),Yt.length||i.removeEventListener(Dk,Rk)}}};return De}function FX(t){t===void 0&&(t={});var e=t,n=e.window,i=n===void 0?document.defaultView:n,c=i.history;function S(){var Ye=O2(i.location.hash.substr(1)),tn=Ye.pathname,gn=tn===void 0?"/":tn,Cn=Ye.search,kn=Cn===void 0?"":Cn,Zn=Ye.hash,fn=Zn===void 0?"":Zn,jn=c.state||{};return[jn.idx,qb({pathname:gn,search:kn,hash:fn,state:jn.usr||null,key:jn.key||"default"})]}var F=null;function nt(){if(F)Yt.call(F),F=null;else{var Ye=gu.Pop,tn=S(),gn=tn[0],Cn=tn[1];if(Yt.length){if(gn!=null){var kn=_t-gn;kn&&(F={action:Ye,location:Cn,retry:function(){De(kn*-1)}},De(kn))}}else _e(Ye)}}i.addEventListener(AR,nt),i.addEventListener(Hq,function(){var Ye=S(),tn=Ye[1];P2(tn)!==P2(zt)&&nt()});var ut=gu.Pop,yt=S(),_t=yt[0],zt=yt[1],Ht=$b(),Yt=$b();_t==null&&(_t=0,c.replaceState(_extends({},c.state,{idx:_t}),""));function re(){var Ye=document.querySelector("base"),tn="";if(Ye&&Ye.getAttribute("href")){var gn=i.location.href,Cn=gn.indexOf("#");tn=Cn===-1?gn:gn.slice(0,Cn)}return tn}function ue(Ye){return re()+"#"+(typeof Ye=="string"?Ye:P2(Ye))}function oe(Ye,tn){return tn===void 0&&(tn=null),qb(_extends({pathname:zt.pathname,hash:"",search:""},typeof Ye=="string"?O2(Ye):Ye,{state:tn,key:Lk()}))}function de(Ye,tn){return[{usr:Ye.state,key:Ye.key,idx:tn},ue(Ye)]}function pe(Ye,tn,gn){return!Yt.length||(Yt.call({action:Ye,location:tn,retry:gn}),!1)}function _e(Ye){ut=Ye;var tn=S();_t=tn[0],zt=tn[1],Ht.call({action:ut,location:zt})}function ge(Ye,tn){var gn=gu.Push,Cn=oe(Ye,tn);function kn(){ge(Ye,tn)}if(pe(gn,Cn,kn)){var Zn=de(Cn,_t+1),fn=Zn[0],jn=Zn[1];try{c.pushState(fn,"",jn)}catch(On){i.location.assign(jn)}_e(gn)}}function qe(Ye,tn){var gn=gu.Replace,Cn=oe(Ye,tn);function kn(){qe(Ye,tn)}if(pe(gn,Cn,kn)){var Zn=de(Cn,_t),fn=Zn[0],jn=Zn[1];c.replaceState(fn,"",jn),_e(gn)}}function De(Ye){c.go(Ye)}var $e={get action(){return ut},get location(){return zt},createHref:ue,push:ge,replace:qe,go:De,back:function(){De(-1)},forward:function(){De(1)},listen:function(tn){return Ht.push(tn)},block:function(tn){var gn=Yt.push(tn);return Yt.length===1&&i.addEventListener(Dk,Rk),function(){gn(),Yt.length||i.removeEventListener(Dk,Rk)}}};return $e}function zX(t){t===void 0&&(t={});var e=t,n=e.initialEntries,i=n===void 0?["/"]:n,c=e.initialIndex,S=i.map(function(_e){var ge=qb(_extends({pathname:"/",search:"",hash:"",state:null,key:Lk()},typeof _e=="string"?O2(_e):_e));return ge}),F=PR(c==null?S.length-1:c,0,S.length-1),nt=gu.Pop,ut=S[F],yt=$b(),_t=$b();function zt(_e){return typeof _e=="string"?_e:P2(_e)}function Ht(_e,ge){return ge===void 0&&(ge=null),qb(_extends({pathname:ut.pathname,search:"",hash:""},typeof _e=="string"?O2(_e):_e,{state:ge,key:Lk()}))}function Yt(_e,ge,qe){return!_t.length||(_t.call({action:_e,location:ge,retry:qe}),!1)}function re(_e,ge){nt=_e,ut=ge,yt.call({action:nt,location:ut})}function ue(_e,ge){var qe=gu.Push,De=Ht(_e,ge);function $e(){ue(_e,ge)}Yt(qe,De,$e)&&(F+=1,S.splice(F,S.length,De),re(qe,De))}function oe(_e,ge){var qe=gu.Replace,De=Ht(_e,ge);function $e(){oe(_e,ge)}Yt(qe,De,$e)&&(S[F]=De,re(qe,De))}function de(_e){var ge=PR(F+_e,0,S.length-1),qe=gu.Pop,De=S[ge];function $e(){de(_e)}Yt(qe,De,$e)&&(F=ge,re(qe,De))}var pe={get index(){return F},get action(){return nt},get location(){return ut},createHref:zt,push:ue,replace:oe,go:de,back:function(){de(-1)},forward:function(){de(1)},listen:function(ge){return yt.push(ge)},block:function(ge){return _t.push(ge)}};return pe}function PR(t,e,n){return Math.min(Math.max(t,e),n)}function Rk(t){t.preventDefault(),t.returnValue=""}function $b(){var t=[];return{get length(){return t.length},push:function(n){return t.push(n),function(){t=t.filter(function(i){return i!==n})}},call:function(n){t.forEach(function(i){return i&&i(n)})}}}function Lk(){return Math.random().toString(36).substr(2,8)}function P2(t){var e=t.pathname,n=e===void 0?"/":e,i=t.search,c=i===void 0?"":i,S=t.hash,F=S===void 0?"":S;return c&&c!=="?"&&(n+=c.charAt(0)==="?"?c:"?"+c),F&&F!=="#"&&(n+=F.charAt(0)==="#"?F:"#"+F),n}function O2(t){var e={};if(t){var n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));var i=t.indexOf("?");i>=0&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}function Wq(t,e){const n=["dataNormalization","enablePer1000","mapWarningEnabled"];return e===ep?Object.keys(t):Object.keys(t).filter(i=>!n.includes(i))}function Yq(t){const e=["dateRange","company_received_min","company_received_max","date_received_min","date_received_max","searchText","searchField"];return t===np?e.concat(["search_after","size","page","sort"]):t===Rl?e.concat(["dateInterval"]):e}function qq(t){return t===Rl?["chartType","focus","lens","subLens","trend_depth"]:[]}function $q(t){const e=["debug","tour","tab"];return[Rl].includes(t)&&e.push("interval"),e}function Xq(t){const{tab:e}=t.view,n=Wq(t.filters,e),i=qq(e),c=Yq(e),S=$q(e),F=Object.assign({},qi(t.query,c),qi(t.filters,n),qi(t.view,S),qi(t.trends,i));return t.query.searchAfter&&(F.search_after=t.query.searchAfter),F}const Gq=t=>e=>n=>{const i=e(n);if(n.type==="routes/routeChanged")return i;const c=t.getState(),S=Xq(c),F=Vq(),nt=F.location,{queryString:ut}=c.routes,yt=Ll.stringify(S);return(ut!==""&&ut!==yt||ut==="")&&(F.push({pathname:nt.pathname,search:"?"+yt}),t.dispatch(y3(nt.pathname,S))),i},OR=bx({devTools:!0,reducer:{[gh.reducerPath]:gh.reducer,filters:dy,query:M3,routes:v3,trends:LT,view:cy},middleware:t=>t().concat([Gq,gh.middleware])});fh(OR.dispatch);var Y5=Fn(7810);const Kq=document.getElementById("ccdb-ui-root");(0,Pe.H)(Kq).render(Y5.createElement(W.StrictMode,null,Y5.createElement(pv,{store:OR},Y5.createElement(Uq,null))))})()})();
484
484
 
485
- //# sourceMappingURL=main.8762a5a2.js.map
485
+ //# sourceMappingURL=main.073cff0d.js.map