|
|
`;function E({id:t,pos:e,reverseArrow:r,strokeWidth:n,vertical:i,hide:a}){if(a)return null;let s=i?r?`M ${e.x-6},${e.y} L ${e.x},${e.y-6} L ${e.x+6},${e.y}`:`M ${e.x-6},${e.y-6} L ${e.x},${e.y} L ${e.x+6},${e.y-6}`:r?`M ${e.x},${e.y+6} L ${e.x-6},${e.y} L ${e.x},${e.y-6}`:`M ${e.x-6},${e.y-6} L ${e.x},${e.y} L ${e.x-6},${e.y+6}`;return o.createElement("path",{d:s,strokeLinecap:"round",stroke:`url(#${t})`,fill:"none",strokeWidth:n})}var x=(0,o.memo)(t=>{let{line:e,color:r,selected:n,children:i,strokePrefix:u}=t,{position:l,reverse:c,vertical:h,hideArrow:d}=e,{bounds:f,path:p}=e.getData(s.ps),g=t=>({x:t.x-f.x+12,y:t.y-f.y+12}),y=g(l.from),m=g(l.to),b=h?{x:m.x,y:m.y-s.em}:{x:m.x-s.em,y:m.y},w=h?{x:y.x,y:y.y+s.em+6}:{x:y.x+s.em+6,y:y.y},A=n?3:2,x=u?`${u}-${e.id}`:e.id,S=o.createElement("path",{d:p,fill:"none",stroke:`url(#${x})`,strokeWidth:A,className:(0,a.default)(e.className,!e.className&&(e.processing||e.flowing?"dashed-line flowing-line":""))});return o.createElement(D,{style:{left:f.x-12,top:f.y-12,position:"absolute"}},i,o.createElement("svg",{width:f.width+24,height:f.height+24},o.createElement("defs",null,o.createElement("linearGradient",{x1:h?"100%":"0%",y1:h?"0%":"100%",x2:"100%",y2:"100%",id:x,gradientUnits:"userSpaceOnUse"},o.createElement("stop",{stopColor:r,offset:"0%"}),o.createElement("stop",{stopColor:r,offset:"100%"}))),o.createElement("g",null,S,o.createElement(E,{id:x,reverseArrow:c,pos:c?w:b,strokeWidth:A,vertical:h,hide:d}))))},(t,e)=>t.version===e.version),S=class extends u.mh{constructor(){super(...arguments),this.layerID=(0,s.x0)(),this.mountedLines=new Map,this._version=0,this.node=d.xF.createDivWithClass("gedit-playground-layer gedit-flow-lines-layer")}onZoom(t){this.node.style.transform=`scale(${t})`}onReady(){this.pipelineNode.appendChild(this.node),this.toDispose.pushAll([this.selectService.onSelectionChanged(()=>this.render()),this.hoverService.onHoveredChange(()=>this.render()),this.workflowDocument.linesManager.onForceUpdate(()=>{this.mountedLines.clear(),this.bumpVersion(),this.render()})])}dispose(){this.mountedLines.clear()}render(){let[,t]=(0,o.useState)({});(0,o.useLayoutEffect)(()=>{let e=requestAnimationFrame(()=>{let e=!1;this.lines.forEach(t=>{let r=t.getData(s.ps),n=r.renderVersion;r.update(),r.renderVersion!==n&&(e=!0)}),e&&t({})});return()=>cancelAnimationFrame(e)},[this.lines]);let e=this.lines.map(t=>this.renderLine(t));return o.createElement(o.Fragment,null,e)}bumpVersion(){this._version=this._version+1,this._version===Number.MAX_SAFE_INTEGER&&(this._version=0)}lineProps(t){let{lineType:e}=this.workflowDocument.linesManager,r=this.selectService.isSelected(t.id),n=this.hoverService.isHovered(t.id),i=this.lineVersion(t);return{key:t.id,color:t.color,selected:r,hovered:n,line:t,lineType:e,version:i,strokePrefix:this.layerID}}lineVersion(t){let{renderVersion:e}=t.getData(s.ps),r=this.selectService.isSelected(t.id),n=this.hoverService.isHovered(t.id),{version:i,color:o}=t;return`v:${this._version},lv:${i},rv:${e},c:${o},s:${r?"T":"F"},h:${n?"T":"F"}`}lineComponent(t){let e=this.options.renderInsideLine??(()=>o.createElement(o.Fragment,null));return o.createElement(x,{...t},o.createElement(e,{...t}))}renderLine(t){let e=this.lineProps(t),r=this.mountedLines.get(t.id),n=void 0!==r,{portal:o,version:a}=r??{};if(n&&a===e.version)return o;!n&&(this.renderElement.appendChild(t.node),t.onDispose(()=>{this.mountedLines.delete(t.id),t.node.remove()}));let s=i.createPortal(this.lineComponent(e),t.node);return this.mountedLines.set(t.id,{line:t,portal:s,version:e.version}),s}get renderElement(){return this.stackContext.node}};S.type="WorkflowLinesLayer",m([(0,c.f)(s.XH)],S.prototype,"hoverService",2),m([(0,c.f)(s.oJ)],S.prototype,"selectService",2),m([(0,c.f)(f.StackingContextManager)],S.prototype,"stackContext",2),m([(0,u.RX)(s.e2)],S.prototype,"lines",2),m([(0,u.RX)(s.FD)],S.prototype,"ports",2),m([(0,u.aI)(s.CT,u.VO)],S.prototype,"trans",2),m([(0,c.f)(s.L4)],S.prototype,"workflowDocument",2),S=m([(0,h.b)()],S);var M=class{constructor(t){this.entity=t}get path(){return this.data?.path??""}calcDistance(t){return this.data?d.E9.getDistance(t,this.data.bezier.project(t)):Number.MAX_SAFE_INTEGER}get bounds(){return this.data?this.data.bbox:new d.Ae}update(t){this.data=this.calcBezier(t.fromPos,t.toPos)}calcBezier(t,e){let r=this.entity.vertical?function(t,e){let r,n;let i=d.Ae.createRectangleWithTwoPoints(t,e);switch(r=t.y<=e.y?t.x<=e.x?1:3:t.x<=e.x?0:2){case 1:n=[{x:i.leftTop.x,y:i.leftTop.y+i.height/2},{x:i.rightBottom.x,y:i.rightBottom.y-i.height/2}];break;case 3:n=[{x:i.rightTop.x,y:i.rightTop.y+i.height/2},{x:i.leftBottom.x,y:i.leftBottom.y-i.height/2}];break;case 0:n=[{x:i.leftBottom.x,y:i.leftBottom.y+Math.min(i.height,300)},{x:i.rightTop.x,y:i.rightTop.y-Math.min(i.height,300)}];break;case 2:n=[{x:i.rightBottom.x,y:i.rightBottom.y+Math.min(i.height,300)},{x:i.leftTop.x,y:i.leftTop.y-Math.min(i.height,300)}]}return n}(t,e):function(t,e){let r,n;let i=d.Ae.createRectangleWithTwoPoints(t,e);switch(r=t.x<=e.x?t.y<=e.y?1:0:t.y<=e.y?3:2){case 0:n=[{x:i.rightBottom.x-i.width/2,y:i.rightBottom.y},{x:i.leftTop.x+i.width/2,y:i.leftTop.y}];break;case 1:n=[{x:i.rightTop.x-i.width/2,y:i.rightTop.y},{x:i.leftBottom.x+i.width/2,y:i.leftBottom.y}];break;case 2:n=[{x:i.rightBottom.x+Math.min(i.width,300),y:i.rightBottom.y},{x:i.leftTop.x-Math.min(i.width,300),y:i.leftTop.y}];break;case 3:n=[{x:i.rightTop.x+Math.min(i.width,300),y:i.rightTop.y},{x:i.leftBottom.x-Math.min(i.width,300),y:i.leftBottom.y}]}return n}(t,e),n=new p.D([t,...r,e]),i=n.bbox(),o=new d.Ae(i.x.min,i.y.min,i.x.max-i.x.min,i.y.max-i.y.min),a=this.getPath({bbox:o,fromPos:t,toPos:e,controls:r});return this.data={fromPos:t,toPos:e,bezier:n,bbox:o,controls:r,path:a},this.data}getPath(t){let{bbox:e}=t,r=t=>({x:t.x-e.x+12,y:t.y-e.y+12}),n=r(t.fromPos),i=r(t.toPos),o=t.controls.map(t=>r(t)),a=this.entity.vertical?{x:i.x,y:i.y-s.em}:{x:i.x-s.em,y:i.y};return(()=>{let t=o.map(t=>`${t.x} ${t.y}`).join(","),e=1===o.length?"S":"C";return this.entity.vertical?`M${n.x} ${n.y+s.em} ${e} ${t}, ${a.x} ${a.y}`:`M${n.x+s.em} ${n.y} ${e} ${t}, ${a.x} ${a.y}`})()}};M.type=s.SP.BEZIER;var _=(t,e,r)=>{let n,i;let{x:o,y:a}=t,{x:s,y:u}=e,{x:l,y:c}=r,h=l-s,d=c-u,f=h*h+d*d,p=0===f?-1:((o-s)*h+(a-u)*d)/f;p<0?(n=s,i=u):p>1?(n=l,i=c):(n=s+p*h,i=u+p*d);let g=o-n,y=a-i;return Math.sqrt(g*g+y*y)};(t=>{let e=({source:t,target:e})=>t.x<e.x?{x:1,y:0}:{x:-1,y:0};t.getPoints=function({source:t,target:r,vertical:n=!1}){let i,o;let a=n?{x:0,y:1}:{x:1,y:0},s=n?{x:0,y:-1}:{x:-1,y:0},u={x:t.x+20*a.x,y:t.y+20*a.y},l={x:r.x+20*s.x,y:r.y+20*s.y},c=n?{x:0,y:u.y<l.y?1:-1}:e({source:u,target:l}),h=0!==c.x?"x":"y",d=c[h],f=[],[p,g]=function({source:t,target:e}){let r=Math.abs(e.x-t.x)/2,n=e.x<t.x?e.x+r:e.x-r,i=Math.abs(e.y-t.y)/2;return[n,e.y<t.y?e.y+i:e.y-i]}({source:t,target:r});if(a[h]*s[h]==-1){i=p,o=g;let t=[{x:i,y:u.y},{x:i,y:l.y}],e=[{x:u.x,y:o},{x:l.x,y:o}];f=a[h]===d?"x"===h?t:e:"x"===h?e:t}else{let t=[{x:u.x,y:l.y}],e=[{x:l.x,y:u.y}];f="x"===h?a.x===d?e:t:a.y===d?t:e;let r="x"===h?"y":"x",n=a[h]===s[r],c=u[r]>l[r],p=u[r]<l[r];(1===a[h]&&(!n&&c||n&&p)||1!==a[h]&&(!n&&p||n&&c))&&(f="x"===h?t:e);let g={x:u.x,y:u.y},y={x:l.x,y:l.y},m=Math.max(Math.abs(g.x-f[0].x),Math.abs(y.x-f[0].x));m>=Math.max(Math.abs(g.y-f[0].y),Math.abs(y.y-f[0].y))?(i=(g.x+y.x)/2,o=f[0].y):(i=f[0].x,o=(g.y+y.y)/2)}return[t,{x:u.x,y:u.y},...f,{x:l.x,y:l.y},r]};t.getSmoothStepPath=function(t){return t.reduce((e,r,n)=>{let i="";return e+=i=n>0&&n<t.length-1?function(t,e,r){let n=Math.min(d.E9.getDistance(t,e)/2,d.E9.getDistance(e,r)/2,5),{x:i,y:o}=e;if(t.x===i&&i===r.x||t.y===o&&o===r.y)return`L${i} ${o}`;if(t.y===o){let e=t.x<r.x?-1:1,a=t.y<r.y?1:-1;return`L ${i+n*e},${o}Q ${i},${o} ${i},${o+n*a}`}let a=t.x<r.x?1:-1,s=t.y<r.y?-1:1;return`L ${i},${o+n*s}Q ${i},${o} ${i+n*a},${o}`}(t[n-1],r,t[n+1]):`${0===n?"M":"L"}${r.x} ${r.y}`},"")};t.getBounds=function(t){let e=t.map(t=>t.x),r=t.map(t=>t.y),n=Math.min(...e),i=Math.max(...e),o=Math.min(...r),a=Math.max(...r);return d.Ae.createRectangleWithTwoPoints({x:n,y:o},{x:i,y:a})},t.getFoldLineToPointDistance=(t,e)=>{if(0===t.length)return 1/0;if(1===t.length)return d.E9.getDistance(t[0],e);let r=[];for(let e=0;e<t.length-1;e++)r.push([t[e],t[e+1]]);return Math.min(...r.map(t=>{let[r,n]=t;return _(e,r,n)}))}})(n||(n={}));var N=class{constructor(t){this.entity=t}get path(){return this.data?.path??""}calcDistance(t){return this.data?n.getFoldLineToPointDistance(this.data.points,t):Number.MAX_SAFE_INTEGER}get bounds(){return this.data?this.data.bbox:new d.Ae}update(t){let{fromPos:e,toPos:r}=t,{vertical:i}=this.entity,o={x:i?0:s.em,y:i?s.em:0},a={x:i?0:-s.em,y:i?-s.em:0},u=n.getPoints({source:{x:e.x+o.x,y:e.y+o.y},target:{x:r.x+a.x,y:r.y+a.y},vertical:i}),l=n.getBounds(u),c=u.map(t=>({x:t.x-l.x+12,y:t.y-l.y+12})),h=n.getSmoothStepPath(c);this.data={points:u,path:h,bbox:l}}};N.type=s.SP.LINE_CHART;(class{constructor(t){this.entity=t}get path(){return this.data?.path??""}calcDistance(t){if(!this.data)return Number.MAX_SAFE_INTEGER;let[e,r]=this.data.points;return d.E9.getDistance(t,function(t,e,r){let n=r.x-e.x,i=r.y-e.y;if(0===n)return{x:e.x,y:t.y};if(0===i)return{x:t.x,y:e.y};let o=Math.max(0,Math.min(1,((t.x-e.x)*n+(t.y-e.y)*i)/(n*n+i*i)));return{x:e.x+o*n,y:e.y+o*i}}(t,e,r))}get bounds(){return this.data?this.data.bbox:new d.Ae}update(t){let{fromPos:e,toPos:r}=t,{vertical:n}=this.entity,i={x:n?0:s.em,y:n?s.em:0},o={x:n?0:-s.em,y:n?-s.em:0},a=[{x:e.x+i.x,y:e.y+i.y},{x:r.x+o.x,y:r.y+o.y}],u=d.Ae.createRectangleWithTwoPoints(a[0],a[1]),l=a.map(t=>({x:t.x-u.x+12,y:t.y-u.y+12})),c=`M ${l[0].x} ${l[0].y} L ${l[1].x} ${l[1].y}`;this.data={points:a,path:c,bbox:u}}}).type="WorkflowStraightLineContribution",(class{constructor(t){this.entity=t}get path(){return this.data?.path??""}calcDistance(t){if(!this.data)return Number.MAX_SAFE_INTEGER;let{fromPos:e,toPos:r,bbox:n}=this.data;if(!n.contains(t.x,t.y)){let e=Math.max(n.x-t.x,0,t.x-(n.x+n.width)),r=Math.max(n.y-t.y,0,t.y-(n.y+n.height));return Math.sqrt(e*e+r*r)}let i={x:(e.x+r.x)/2,y:(e.y+r.y)/2},o=d.E9.getDistance(e,i);return Math.abs(d.E9.getDistance(t,i)-o)}get bounds(){return this.data?this.data.bbox:new d.Ae}update(t){let{fromPos:e,toPos:r}=t,{vertical:n}=this.entity,i={x:n?0:s.em,y:n?s.em:0},o={x:n?0:-s.em,y:n?-s.em:0},a={x:e.x+i.x,y:e.y+i.y},u={x:r.x+o.x,y:r.y+o.y},l=this.calculateArcBBox(a,u),c=this.getArcPath(a,u,l);this.data={fromPos:a,toPos:u,path:c,bbox:l}}calculateArcBBox(t,e){let r=e.x-t.x,n=e.y-t.y,i=Math.sqrt(r*r+n*n)/2,o=(t.x+e.x)/2,a=(t.y+e.y)/2;return new d.Ae(o-i,a-i,2*i,2*i)}getArcPath(t,e,r){let n=e.x-t.x,i=e.y-t.y,o=Math.sqrt(n*n+i*i),a={x:t.x-r.x+12,y:t.y-r.y+12},s={x:e.x-r.x+12,y:e.y-r.y+12};return`M ${a.x} ${a.y} A ${o/2} ${o/2} 0 0 1 ${s.x} ${s.y}`}}).type="WorkflowArkLineContribution",(class{constructor(t){this.entity=t}get path(){return this.data?.path??""}calcDistance(t){return this.data?Math.min(...this.data.points.slice(1).map((e,r)=>{let n=this.data.points[r];return this.getDistanceToLineSegment(t,n,e)})):Number.MAX_SAFE_INTEGER}getDistanceToLineSegment(t,e,r){let n=r.x-e.x,i=r.y-e.y;if(0===n&&0===i)return d.E9.getDistance(t,e);let o=((t.x-e.x)*n+(t.y-e.y)*i)/(n*n+i*i);if(o<0)return d.E9.getDistance(t,e);if(o>1)return d.E9.getDistance(t,r);let a={x:e.x+o*n,y:e.y+o*i};return d.E9.getDistance(t,a)}get bounds(){return this.data?this.data.bbox:new d.Ae}update(t){let{fromPos:e,toPos:r}=t,{vertical:n}=this.entity,i={x:n?0:s.em,y:n?s.em:0},o={x:n?0:-s.em,y:n?-s.em:0},a=this.getManhattanPoints({source:{x:e.x+i.x,y:e.y+i.y},target:{x:r.x+o.x,y:r.y+o.y},vertical:n}),u=d.Ae.createRectangleWithTwoPoints(a.reduce((t,e)=>({x:Math.min(t.x,e.x),y:Math.min(t.y,e.y)}),a[0]),a.reduce((t,e)=>({x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)}),a[0])),l=a.map(t=>({x:t.x-u.x+12,y:t.y-u.y+12})),c=this.getPathFromPoints(l);this.data={points:a,path:c,bbox:u}}getManhattanPoints(t){let{source:e,target:r,vertical:n}=t,i=[e];return n?(e.y!==r.y&&i.push({x:e.x,y:r.y}),e.x!==r.x&&i.push({x:r.x,y:r.y})):(e.x!==r.x&&i.push({x:r.x,y:e.y}),e.y!==r.y&&i.push({x:r.x,y:r.y})),i[i.length-1]!==r&&i.push(r),i}getPathFromPoints(t){return t.reduce((t,e,r)=>0===r?`M ${e.x} ${e.y}`:`${t} L ${e.x} ${e.y}`,"")}}).type="WorkflowManhattanLineContribution";var T=(0,u.M1)({singleton:!0,onInit:(t,e)=>{t.playground.registerLayer(S,{...e})},onReady:(t,e)=>{let r=t.container.get(s.dm);r.registerContribution(M).registerContribution(N),e.contributions&&e.contributions.forEach(t=>{r.registerContribution(t)}),e.defaultLineType&&r.switchLineType(e.defaultLineType)}})},815083:function(t,e,r){"use strict";r.d(e,{dn:function(){return _},sS:function(){return S}});var n=r(952522),i=r(771531),o=r(435946),a=r(168316),s=r(58096),u=r(896097),l=r(2553),c=r(455069),h=Object.defineProperty,d=Object.getOwnPropertyDescriptor,f=(t,e,r,n)=>{for(var i=n>1?void 0:n?d(e,r):e,o,a=t.length-1;a>=0;a--)(o=t[a])&&(i=(n?o(e,r,i):o(i))||i);return n&&i&&h(e,r,i),i},p=async()=>{await (0,s.gw)(20)},g=t=>t?.getNodeMeta().isContainer??!1,y=(t,e={x:0,y:0})=>{let r=t.node;if(g(r)){let{point:r}=t;return"input"===t.portType?new a.Ae(r.x+e.x,r.y-50+e.y,300,100):new a.Ae(r.x-300,r.y-50,300,100)}return r.getData(l.eG).bounds},m=t=>{let{node:e,subsequentNodes:r,fromPort:i,toPort:o,containerNode:a,offset:s,historyService:l,dragService:c}=t;if(!s||!o)return;let h=r.map(t=>{let e=t.getData(n.VO);return{x:e.position.x,y:e.position.y}});l.pushOperation({type:u.Nj.dragNodes,value:{ids:r.map(t=>t.id),value:h.map(t=>({x:t.x+s.x,y:t.y+s.y})),oldValue:h}});let d=y(i),f=y(o,s),p=e.getData(n.VO),g={x:(d.center.x+f.center.x)/2,y:(d.y+f.y)/2};a&&(g=c.adjustSubNodePosition(e.flowNodeType,a,g)),l.pushOperation({type:u.Nj.dragNodes,value:{ids:[e.id],value:[g],oldValue:[{x:p.position.x,y:p.position.y}]}})},b=(t,e)=>{let r=Math.abs(Math.min(t.right,e.right)-Math.max(t.left,e.left)),n=Math.abs(Math.min(t.bottom,e.bottom)-Math.max(t.top,e.top));return a.Ae.intersects(t,e)?{x:-r,y:-n}:{x:r,y:n}},w=(t,e)=>void 0!==t&&void 0!==e&&t-e>1e-5,A=(t,e)=>void 0!==t&&void 0!==e&&e-t>1e-5,D=t=>{let{node:e,fromPort:r,toPort:n,padding:i}=t,o=y(r),s=y(n),u=e.getData(l.eG),c=e.getNodeMeta()?.size??{width:u.bounds.width,height:u.bounds.height},h={x:c.width+i.x,y:c.height+i.y},d=b(o,s),f={x:w(d.x,h.x)?0:h.x-d.x,y:w(d.y,h.y)?0:h.y-d.y};if(0===f.x||0===f.y)return;let p={vertical:a.Ae.intersects(o,s,"horizontal"),horizontal:a.Ae.intersects(o,s,"vertical")},g=0,m=0;return!p.horizontal&&(w(s.center.y,o.center.y)?m=f.y:A(s.center.y,o.center.y)&&(m=-f.y)),!p.vertical&&(w(s.center.x,o.center.x)?g=f.x:A(s.center.x,o.center.x)&&(g=-f.x)),{x:g,y:m}},E=t=>{let{node:e,linesManager:r}=t;if(g(e))return[];let n=e.parent?.blocks??[],i=new Set,o=new Map;r.getAllLines().forEach(t=>{if(!o.has(t.from.id)&&o.set(t.from.id,[]),!(!t.to?.id||g(t.to)))o.get(t.from.id)?.push(t.to.id)});let a=t=>{if(!i.has(t))i.add(t),(o.get(t)??[]).forEach(a)};return a(e.id),n.filter(t=>i.has(t.id))},x={adjustNodePosition:t=>{let{nodeType:e,position:r,fromPort:n,toPort:i,containerNode:o,document:a,dragService:s}=t,u=a.getNodeRegistry(e),l=u?.meta?.size,c=r;return c=l?n&&i?{x:r.x,y:r.y-l.height/2}:n&&!i?{x:r.x+l.width/2,y:r.y-l.height/2}:!n&&i?{x:r.x-l.width/2,y:r.y-l.height/2}:r:r,s.adjustSubNodePosition(e,o,c)},buildLine:t=>{let{fromPort:e,node:r,toPort:n,linesManager:i}=t,o=r.getData(s.QW);if(!o)return;let a=o.inputPorts?.length>0;if(e&&a){let t=o.inputPorts[0],n=1===o.inputPorts.length;i.createLine({from:e.node.id,fromPort:e.portID,to:r.id,toPort:n?void 0:t.id})}let u=o.outputPorts?.length>0;if(n&&u){let t=o.outputPorts[0];i.createLine({from:r.id,fromPort:t.portID,to:n.node.id,toPort:n.portID})}},getContainerNode:t=>{let{fromPort:e,containerNode:r}=t;if(r)return r;let n=e?.node,i=n?.parent;return g(n)?n:i},subNodesAutoOffset:t=>{let{node:e,fromPort:r,toPort:n,linesManager:i,historyService:o,dragService:a,containerNode:s,padding:u={x:100,y:100}}=t,l=D({node:e,fromPort:r,toPort:n,padding:u});m({node:e,subsequentNodes:E({node:n.node,linesManager:i}),fromPort:r,toPort:n,containerNode:s,offset:l,historyService:o,dragService:a})},waitNodeRender:p},S=class{constructor(){this.toDispose=new a.K4,this.callNodePanel=async()=>void 0}dispose(){this.toDispose.dispose()}setCallNodePanel(t){this.callNodePanel=t}async call(t){let{panelPosition:e,fromPort:r,enableMultiAdd:n=!1,panelProps:i={},containerNode:o,afterAddNode:a}=t;if(!e||this.playgroundConfig.readonly)return;let s=[];return new Promise(u=>{this.callNodePanel({position:e,enableMultiAdd:n,panelProps:i,containerNode:x.getContainerNode({fromPort:r,containerNode:o}),onSelect:async e=>{let r=await this.addNode(t,e);a?.(r),n?r&&s.push(r):u(r)},onClose:()=>{u(n?s:void 0)}})})}async singleSelectNodePanel(t){return new Promise(e=>{this.callNodePanel({...t,enableMultiAdd:!1,onSelect:async t=>{e(t)},onClose:()=>{e(void 0)}})})}async addNode(t,e){let{panelPosition:r,fromPort:n,toPort:i,canAddNode:o,autoOffsetPadding:a={x:100,y:100},enableBuildLine:s=!1,enableSelectPosition:u=!1,enableAutoOffset:l=!1,enableDragNode:c=!1}=t;if(!r||!e)return;let{nodeType:h,selectEvent:d,nodeJSON:f}=e,p=x.getContainerNode({fromPort:n,containerNode:t.containerNode});if(o&&!o({nodeType:h,containerNode:p}))return;let g=this.playgroundConfig.getPosFromMouseEvent(d),y=t.customPosition?t.customPosition({nodeType:h,selectPosition:g}):x.adjustNodePosition({nodeType:h,position:u?g:r,fromPort:n,toPort:i,containerNode:p,document:this.document,dragService:this.dragService}),m=this.document.createWorkflowNodeByType(h,y,f??{},p?.id);return m?(l&&n&&i&&x.subNodesAutoOffset({node:m,fromPort:n,toPort:i,padding:a,containerNode:p,historyService:this.historyService,dragService:this.dragService,linesManager:this.linesManager}),s||c)?(await x.waitNodeRender(),s&&x.buildLine({fromPort:n,node:m,toPort:i,linesManager:this.linesManager}),c&&(this.selectService.selectNode(m),this.dragService.startDragSelectedNodes(d)),m):m:void 0}};f([(0,i.f)(s.L4)],S.prototype,"document",2),f([(0,i.f)(s.iw)],S.prototype,"dragService",2),f([(0,i.f)(s.oJ)],S.prototype,"selectService",2),f([(0,i.f)(s.dm)],S.prototype,"linesManager",2),f([(0,i.f)(n.ER)],S.prototype,"playgroundConfig",2),f([(0,i.f)(u.qp)],S.prototype,"historyService",2),S=f([(0,o.b)()],S);var M=class extends n.mh{constructor(){super(),this.node=a.xF.createDivWithClass("gedit-playground-layer gedit-node-panel-layer"),this.node.style.zIndex="9999",this.renderList=new Map}onReady(){this.service.setCallNodePanel(this.call.bind(this))}onZoom(t){this.node.style.transform=`scale(${t})`}render(){let t=this.options.renderer;return c.createElement(c.Fragment,null,Array.from(this.renderList.keys()).map(e=>{let r=this.renderList.get(e);return c.createElement(t,{key:e,...r})}))}async call(t){let e=(0,s.x0)(),{onSelect:r,onClose:n,enableMultiAdd:i=!1,panelProps:o={}}=t;return new Promise(a=>{let s=()=>{this.renderList.delete(e),this.render(),a()},u={...t,panelProps:o,onSelect:t=>{r(t),!i&&s()},onClose:()=>{s(),n()}};this.renderList.set(e,u),this.render()})}};M.type="WorkflowNodePanelLayer",f([(0,i.f)(S)],M.prototype,"service",2);var _=(0,n.M1)({onBind({bind:t}){t(S).toSelf().inSingletonScope()},onInit:(t,e)=>{t.playground.registerLayer(M,{renderer:e.renderer})},onDispose:t=>{t.get(S).dispose()}})},938238:function(t,e,r){"use strict";r.d(e,{Z:function(){return D}});var n=r(952522),i=r(771531),o=r(435946),a=r(168316),s=r(58096),u=r(2553),l=r(455069),c=Object.defineProperty,h=Object.getOwnPropertyDescriptor,d=(t,e,r,n)=>{for(var i=n>1?void 0:n?h(e,r):e,o,a=t.length-1;a>=0;a--)(o=t[a])&&(i=(n?o(e,r,i):o(i))||i);return n&&i&&c(e,r,i),i},f={enableEdgeSnapping:!0,edgeThreshold:7,enableGridSnapping:!1,gridSize:20,enableMultiSnapping:!1,enableOnlyViewportSnapping:!0,edgeColor:"#4E40E5",alignColor:"#4E40E5",edgeLineWidth:2,alignLineWidth:2,alignCrossWidth:16},p=(t,e)=>void 0!==t&&void 0!==e&&1e-5>Math.abs(t-e),g=(t,e)=>void 0!==t&&void 0!==e&&e-t>1e-5,y=(t,e)=>void 0!==t&&void 0!==e&&t-e>1e-5,m=(t,e)=>p(t,e)||g(t,e),b=t=>"number"==typeof t&&!isNaN(t),w=class{constructor(){this.disposers=[],this.snapEmitter=new a.Q5,this.onSnap=this.snapEmitter.event,this._disabled=!1}init(t={}){this.options={...f,...t},this.mountListener()}dispose(){this.disposers.forEach(t=>t.dispose())}get disabled(){return this._disabled}disable(){if(!this._disabled)this._disabled=!0,this.clear()}enable(){if(!!this._disabled)this._disabled=!1,this.clear()}mountListener(){let t=this.dragService.registerPosAdjuster(t=>{let{selectedNodes:e,position:r}=t,n=!this.options.enableMultiSnapping&&1!==e.length;return this._disabled||!this.options.enableEdgeSnapping||n?{x:0,y:0}:this.snapping({targetNodes:e,position:r})}),e=this.dragService.onNodesDrag(t=>{if("onDragEnd"===t.type&&!this._disabled)this.options.enableGridSnapping&&this.gridSnapping({targetNodes:t.nodes,gridSize:this.options.gridSize}),this.options.enableEdgeSnapping&&this.clear()});this.disposers.push(t,e)}snapping(t){let{targetNodes:e,position:r}=t,n=this.getBounds(e),i=new a.Ae(r.x,r.y,n.width,n.height),o=this.getSnapNodeRects({targetNodes:e,targetRect:i}),{alignOffset:s,alignRects:u,alignSpacing:l}=this.calcAlignOffset({targetRect:i,alignThreshold:this.options.edgeThreshold,snapNodeRects:o}),{snapOffset:c,snapEdgeLines:h}=this.calcSnapOffset({targetRect:i,edgeThreshold:this.options.edgeThreshold,snapNodeRects:o}),d={x:c.x||s.x,y:c.y||s.y},f=new a.Ae(r.x+d.x,r.y+d.y,i.width,i.height);return this.snapEmitter.fire({snapRect:f,snapEdgeLines:h,alignRects:u,alignSpacing:l}),d}calcSnapOffset(t){let{snapNodeRects:e,edgeThreshold:r,targetRect:n}=t,i=this.getSnapLines({snapNodeRects:e}),o=i.horizontal.find(t=>m(Math.abs(t.y-n.top),r)),a=i.horizontal.find(t=>m(Math.abs(t.y-n.bottom),r)),s=i.vertical.find(t=>m(Math.abs(t.x-n.left),r)),u=i.vertical.find(t=>m(Math.abs(t.x-n.right),r)),l=i.midHorizontal.find(t=>m(Math.abs(t.y-n.center.y),r)),c=i.midVertical.find(t=>m(Math.abs(t.x-n.center.x),r)),h=o?.y,d=b(a?.y)?a.y-n.height:void 0,f=s?.x,g=b(u?.x)?u.x-n.width:void 0,y=b(l?.y)?l.y-n.height/2:void 0,w=b(c?.x)?c.x-n.width/2:void 0,A={x:w??f??g??n.x,y:y??h??d??n.y},D={x:A.x-n.x,y:A.y-n.y};return{snapOffset:D,snapEdgeLines:{top:p(h,A.y)?o:void 0,bottom:p(d,A.y)?a:void 0,left:p(f,A.x)?s:void 0,right:p(g,A.x)?u:void 0,midVertical:p(w,A.x)?c:void 0,midHorizontal:p(y,A.y)?l:void 0}}}gridSnapping(t){let{gridSize:e,targetNodes:r}=t,n=this.getBounds(r),i=t=>Math.round(t/e)*e,o={x:i(n.x),y:i(n.y)},a={x:o.x-n.x,y:o.y-n.y};r.forEach(t=>this.updateNodePositionWithOffset({node:t,offset:a}))}clear(){this.snapEmitter.fire({snapEdgeLines:{},snapRect:a.Ae.EMPTY,alignRects:{top:[],bottom:[],left:[],right:[]},alignSpacing:{}})}getSnapLines(t){let{snapNodeRects:e}=t,r=[],n=[],i=[],o=[];return e.forEach(t=>{let e=t.rect,a=e.center,s={y:e.top,sourceNodeId:t.id},u={y:e.bottom,sourceNodeId:t.id},l={x:e.left,sourceNodeId:t.id},c={x:e.right,sourceNodeId:t.id},h={y:a.y,sourceNodeId:t.id},d={x:a.x,sourceNodeId:t.id};r.push(s,u),n.push(l,c),i.push(h),o.push(d)}),{horizontal:r,vertical:n,midHorizontal:i,midVertical:o}}getAvailableNodes(t){let{targetNodes:e,targetRect:r}=t,n=r.center,i=e[0].parent?.id??this.document.root.id,o=e.map(t=>t.id);return o.push(u.Sy.ROOT),this.nodes.filter(t=>t.parent?.id===i).filter(t=>!o.includes(t.id)).sort((t,e)=>{let r=t.getData(u.eG).bounds.center,i=e.getData(u.eG).bounds.center,o=Math.abs(r.x-n.x)+Math.abs(r.y-n.y);return o-(Math.abs(i.x-n.x)+Math.abs(i.y-n.y))})}viewRect(){let{width:t,height:e,scrollX:r,scrollY:n,zoom:i}=this.playgroundConfig.config;return new a.Ae(r/i,n/i,t/i,e/i)}getSnapNodeRects(t){let e=this.getAvailableNodes(t),r=this.viewRect();return e.map(t=>{let e={id:t.id,rect:t.getData(u.eG).bounds,entity:t};if(!this.options.enableOnlyViewportSnapping||t.parent?.flowNodeType!==u.Sy.ROOT||!!a.Ae.intersects(r,e.rect))return e}).filter(Boolean)}get nodes(){return this.entityManager.getEntities(s.CT)}getBounds(t){return 0===t.length?a.Ae.EMPTY:a.Ae.enlarge(t.map(t=>t.getData(u.eG).bounds))}updateNodePositionWithOffset(t){let{node:e,offset:r}=t,i=e.getData(n.VO),o={x:i.position.x+r.x,y:i.position.y+r.y};i.update({position:o}),this.document.layout.updateAffectedTransform(e)}calcAlignOffset(t){let e,r,n,i,o,a;let{snapNodeRects:s,targetRect:u,alignThreshold:l}=t,c=this.getAlignRects({targetRect:u,snapNodeRects:s}),h=this.calcAlignSpacing({targetRect:u,alignRects:c});if(h.top){let t=c.top[0].rect.bottom+h.top;m(Math.abs(u.top-t),l)?e=t:h.top=void 0}if(h.bottom){let t=c.bottom[0].rect.top-h.bottom;g(Math.abs(u.bottom-t),l)?r=t-u.height:h.bottom=void 0}if(h.left){let t=c.left[0].rect.right+h.left;m(Math.abs(u.left-t),l)?n=t:h.left=void 0}if(h.right){let t=c.right[0].rect.left-h.right;m(Math.abs(u.right-t),l)?i=t-u.width:h.right=void 0}if(h.midHorizontal){let t=c.left[0].rect.right+h.midHorizontal;m(Math.abs(u.left-t),l)?a=t:h.midHorizontal=void 0}if(h.midVertical){let t=c.top[0].rect.bottom+h.midVertical;m(Math.abs(u.top-t),l)?o=t:h.midVertical=void 0}let d={x:a??n??i??u.x,y:o??e??r??u.y};return{alignOffset:{x:d.x-u.x,y:d.y-u.y},alignRects:c,alignSpacing:h}}calcAlignSpacing(t){let{targetRect:e,alignRects:r}=t,n=this.getDirectionAlignSpacing({rects:r.top,isHorizontal:!1}),i=this.getDirectionAlignSpacing({rects:r.bottom,isHorizontal:!1}),o=this.getDirectionAlignSpacing({rects:r.left,isHorizontal:!0}),a=this.getDirectionAlignSpacing({rects:r.right,isHorizontal:!0}),s=this.getMidAlignSpacing({rectA:r.left[0]?.rect,rectB:r.right[0]?.rect,targetRect:e,isHorizontal:!0});return{top:n,bottom:i,left:o,right:a,midHorizontal:s,midVertical:this.getMidAlignSpacing({rectA:r.top[0]?.rect,rectB:r.bottom[0]?.rect,targetRect:e,isHorizontal:!1})}}getAlignRects(t){let{targetRect:e,snapNodeRects:r}=t,n=[],i=[],o=[],a=[];return r.forEach(t=>{let r=t.rect,{isVerticalIntersection:s,isHorizontalIntersection:u,isIntersection:l}=this.intersection(r,e);if(!l)s?y(r.center.y,e.center.y)?i.push({rect:r,sourceNodeId:t.id}):n.push({rect:r,sourceNodeId:t.id}):u&&(y(r.center.x,e.center.x)?a.push({rect:r,sourceNodeId:t.id}):o.push({rect:r,sourceNodeId:t.id}))}),{top:n,bottom:i,left:o,right:a}}getMidAlignSpacing(t){let{rectA:e,rectB:r,targetRect:n,isHorizontal:i}=t;if(!e||!r)return;let{isVerticalIntersection:o,isHorizontalIntersection:a,isIntersection:s}=this.intersection(e,r);return s?void 0:i&&a&&!o?(Math.min(Math.abs(e.left-r.right),Math.abs(e.right-r.left))-n.width)/2:i||!o||a?void 0:(Math.min(Math.abs(e.top-r.bottom),Math.abs(e.bottom-r.top))-n.height)/2}getDirectionAlignSpacing(t){let{rects:e,isHorizontal:r}=t;if(e.length<2)return;let n=e[0].rect,i=e[1].rect,{isVerticalIntersection:o,isHorizontalIntersection:a,isIntersection:s}=this.intersection(n,i);return s?void 0:r&&a&&!o?Math.min(Math.abs(n.left-i.right),Math.abs(n.right-i.left)):r||!o||a?void 0:Math.min(Math.abs(n.top-i.bottom),Math.abs(n.bottom-i.top))}intersection(t,e){let r=g(t.left,e.right)&&y(t.right,e.left),n=g(t.top,e.bottom)&&y(t.bottom,e.top);return{isHorizontalIntersection:n,isVerticalIntersection:r,isIntersection:n&&r}}};d([(0,i.f)(s.L4)],w.prototype,"document",2),d([(0,i.f)(n.v2)],w.prototype,"entityManager",2),d([(0,i.f)(s.iw)],w.prototype,"dragService",2),d([(0,i.f)(n.ER)],w.prototype,"playgroundConfig",2),w=d([(0,o.b)()],w);var A=class extends n.mh{constructor(){super(...arguments),this.node=a.xF.createDivWithClass("gedit-playground-layer gedit-flow-snap-layer"),this.edgeLines=[],this.alignLines=[]}onReady(){this.node.style.zIndex="9999",this.toDispose.pushAll([this.service.onSnap(t=>{this.edgeLines=this.calcEdgeLines(t),this.alignLines=this.calcAlignLines(t),this.render()})])}render(){return l.createElement(l.Fragment,null,this.alignLines.length>0&&l.createElement("div",{className:"workflow-snap-align-lines"},this.renderAlignLines()),this.edgeLines.length>0&&l.createElement("div",{className:"workflow-snap-edge-lines"},this.renderEdgeLines()))}onZoom(t){this.node.style.transform=`scale(${t})`}renderEdgeLines(){return this.edgeLines.map(t=>{let{className:e,sourceNode:r,top:n,left:i,width:o,height:a,dashed:s}=t,u=`${e}-${r}-${n}-${i}-${o}-${a}`,c=o<a,h=`${this.options.edgeLineWidth}px ${s?"dashed":"solid"} ${this.options.edgeColor}`;return l.createElement("div",{className:`workflow-snap-edge-line ${e}`,"data-testid":"sdk.workflow.canvas.snap.edgeLine","data-snap-line-id":u,"data-snap-line-source-node":r,key:u,style:{top:n,left:i,width:o,height:a,position:"absolute",borderLeft:c?h:"none",borderTop:c?"none":h}})})}renderAlignLines(){return this.alignLines.map(t=>{let e=`${t.className}-${t.sourceNode}-${t.top}-${t.left}-${t.width}-${t.height}`,r=y(t.width,t.height),n=this.options.alignLineWidth,i=this.options.alignCrossWidth,o=r?t.top-n/2:t.top,a=r?t.left:t.left-n/2;return l.createElement("div",{className:`workflow-snap-align-line ${t.className}`,"data-testid":"sdk.workflow.canvas.snap.alignLine","data-snap-line-id":e,"data-snap-line-source-node":t.sourceNode,key:e,style:{position:"absolute"}},l.createElement("div",{style:{position:"absolute",top:o,left:a,width:r?t.width:n,height:r?n:t.height,backgroundColor:this.options.alignColor}}),l.createElement("div",{style:{position:"absolute",top:r?o-(i-n)/2:o,left:r?a:a-(i-n)/2,width:r?n:i,height:r?i:n,backgroundColor:this.options.alignColor}}),l.createElement("div",{style:{position:"absolute",top:r?o-(i-n)/2:o+t.height-n,left:r?a+t.width-n:a-(i-n)/2,width:r?n:i,height:r?i:n,backgroundColor:this.options.alignColor}}))})}calcEdgeLines(t){let{alignRects:e,snapRect:r,snapEdgeLines:n}=t,i=[],o=this.directionFullAlign({alignRects:e.top,targetRect:r,isVertical:!0}),a=this.directionFullAlign({alignRects:e.bottom,targetRect:r,isVertical:!0}),s=this.directionFullAlign({alignRects:e.left,targetRect:r,isVertical:!1}),l=this.directionFullAlign({alignRects:e.right,targetRect:r,isVertical:!1});if(o){let t=o.rect.top,e=a?r.bottom-r.height/2-t:r.bottom-t,n={top:t,width:this.options.edgeLineWidth,height:e};i.push({className:"edge-full-top-left",sourceNode:o.sourceNodeId,left:r.left,...n}),i.push({className:"edge-full-top-right",sourceNode:o.sourceNodeId,left:r.right,...n}),i.push({className:"edge-full-top-mid",sourceNode:o.sourceNodeId,left:r.left+r.width/2,dashed:!0,...n})}if(a){let t=o?r.top+r.height/2:r.top,e=a.rect.bottom-t,n={top:t,width:this.options.edgeLineWidth,height:e};i.push({className:"edge-full-bottom-left",sourceNode:a.sourceNodeId,left:r.left,...n}),i.push({className:"edge-full-bottom-right",sourceNode:a.sourceNodeId,left:r.right,...n}),i.push({className:"edge-full-bottom-mid",sourceNode:a.sourceNodeId,left:r.left+r.width/2,dashed:!0,...n})}if(s){let t=s.rect.left,e=l?r.right-r.width/2-t:r.right-t,n={left:t,width:e,height:this.options.edgeLineWidth};i.push({className:"edge-full-left-top",sourceNode:s.sourceNodeId,top:r.top,...n}),i.push({className:"edge-full-left-bottom",sourceNode:s.sourceNodeId,top:r.bottom,...n}),i.push({className:"edge-full-left-mid",sourceNode:s.sourceNodeId,top:r.top+r.height/2,dashed:!0,...n})}if(l){let t=s?r.left+r.width/2:r.left,e=l.rect.right-t,n={left:t,width:e,height:this.options.edgeLineWidth};i.push({className:"edge-full-right-top",sourceNode:l.sourceNodeId,top:r.top,...n}),i.push({className:"edge-full-right-bottom",sourceNode:l.sourceNodeId,top:r.bottom,...n}),i.push({className:"edge-full-right-mid",sourceNode:l.sourceNodeId,top:r.top+r.height/2,dashed:!0,...n})}let c=Object.entries(n).map(([t,e])=>{if(!e)return;let n=this.document.getNode(e.sourceNodeId);if(!n)return;let i=n.getData(u.eG).bounds;if(b(e.x)){let n=Math.min(i.top,r.top),s=Math.max(i.bottom,r.bottom),u=e.x,l=this.options.edgeLineWidth,c={className:`edge-snapped-${t}`,sourceNode:e.sourceNodeId,top:n,left:u,width:l,height:s-n,dashed:"midVertical"===t},h=n===i.top;if(h&&o||!h&&a)return;return c}if(b(e.y)){let n=Math.min(i.left,r.left),o=Math.max(i.right,r.right),a=e.y,u=this.options.edgeLineWidth,c={className:`edge-snapped-${t}`,sourceNode:e.sourceNodeId,top:a,left:n,width:o-n,height:u,dashed:"midHorizontal"===t},h=n===i.left;if(h&&s||!h&&l)return;return c}}).filter(Boolean);return i.push(...c),i}directionFullAlign(t){let{alignRects:e,targetRect:r,isVertical:n}=t,i=-1;for(let t=0;t<e.length;t++){let o=e[t],a=e[t-1]?.rect??r;if(!this.rectFullAlign(o.rect,a,n))break;i=t}return e[i]}rectFullAlign(t,e,r){return r?p(t.left,e.left)&&p(t.right,e.right):p(t.top,e.top)&&p(t.bottom,e.bottom)}calcAlignLines(t){let{alignRects:e,alignSpacing:r,snapRect:n}=t,i=this.calcDirectionAlignLines({alignRects:e.top,targetRect:n,isVertical:!0,spacing:r.midVertical??r.top}),o=this.calcDirectionAlignLines({alignRects:e.bottom,targetRect:n,isVertical:!0,spacing:r.midVertical??r.bottom}),a=this.calcDirectionAlignLines({alignRects:e.left,targetRect:n,isVertical:!1,spacing:r.midHorizontal??r.left});return[...i,...o,...a,...this.calcDirectionAlignLines({alignRects:e.right,targetRect:n,isVertical:!1,spacing:r.midHorizontal??r.right})]}calcDirectionAlignLines(t){let{alignRects:e,targetRect:r,isVertical:n,spacing:i}=t,o=[];if(!i)return o;for(let t=0;t<e.length;t++){let a=e[t],s=a.rect,u=e[t-1]?.rect??r;if(!p(n?Math.min(Math.abs(u.top-s.bottom),Math.abs(u.bottom-s.top)):Math.min(Math.abs(u.left-s.right),Math.abs(u.right-s.left)),i))break;if(n){let t=this.calcHorizontalIntersectionCenter(s,r);o.push({className:"align-vertical",sourceNode:a.sourceNodeId,top:Math.min(s.bottom,u.bottom),left:t,width:1,height:i})}else{let t=this.calcVerticalIntersectionCenter(s,r);o.push({className:"align-horizontal",sourceNode:a.sourceNodeId,top:t,left:Math.min(s.right,u.right),width:i,height:1})}}return o}calcVerticalIntersectionCenter(t,e){let r=Math.max(t.top,e.top);return(r+Math.min(t.bottom,e.bottom))/2}calcHorizontalIntersectionCenter(t,e){let r=Math.max(t.left,e.left);return(r+Math.min(t.right,e.right))/2}};A.type="WorkflowSnapLayer",d([(0,i.f)(s.L4)],A.prototype,"document",2),d([(0,i.f)(w)],A.prototype,"service",2),A=d([(0,o.b)()],A);var D=(0,n.M1)({onBind({bind:t}){t(w).toSelf().inSingletonScope()},onInit(t,e){let r={...f,...e};t.playground.registerLayer(A,r),t.get(w).init(r)},onDispose(t){t.get(w).dispose()}})},296746:function(t,e,r){"use strict";r.r(e),r.d(e,{StackingBaseIndex:function(){return A},StackingComputing:function(){return m},StackingConfig:function(){return x},StackingContextManager:function(){return S},StackingItem:function(){return b},StackingType:function(){return w},createFreeStackPlugin:function(){return M},layersComputing:function(){return _}});var n,i,o,a,s=r(952522),u=r(195852),l=r(771531),c=r(435946),h=r(168316),d=r(58096),f=r(2553),p=Object.defineProperty,g=Object.getOwnPropertyDescriptor,y=(t,e,r,n)=>{for(var i=n>1?void 0:n?g(e,r):e,o,a=t.length-1;a>=0;a--)(o=t[a])&&(i=(n?o(e,r,i):o(i))||i);return n&&i&&p(e,r,i),i},m=class{compute(t){this.clearCache();let{root:e,nodes:r,context:n}=t;return this.context=n,this.nodeIndexes=this.computeNodeIndexesMap(r),this.topLevel=this.computeTopLevel(r),this.maxLevel=2*this.topLevel,this.layerHandler(e.blocks),{nodeLevel:this.nodeLevel,lineLevel:this.lineLevel,topLevel:this.topLevel,maxLevel:this.maxLevel}}clearCache(){this.currentLevel=0,this.topLevel=0,this.maxLevel=0,this.nodeIndexes=new Map,this.nodeLevel=new Map,this.lineLevel=new Map}computeNodeIndexesMap(t){let e=new Map;return t.forEach((t,r)=>{e.set(t.id,r)}),e}computeTopLevel(t){let e=t.filter(t=>t.id!==f.Sy.ROOT),r=e.reduce((t,e)=>e.blocks.length>0?t+1:t,0);return e.length+r+1}layerHandler(t,e=!1){let r=this.sortNodes(t);this.getNodesAllLines(r).forEach(t=>{t.isDrawing||this.context.hoveredEntityID===t.id||this.context.selectedIDs.includes(t.id)?this.lineLevel.set(t.id,this.maxLevel):this.lineLevel.set(t.id,this.getLevel(e))}),this.levelIncrease(),r.forEach(t=>{let r=this.context.selectedIDs.includes(t.id);r?this.nodeLevel.set(t.id,this.topLevel):this.nodeLevel.set(t.id,this.getLevel(e)),this.levelIncrease(),t.blocks.length>0&&this.layerHandler(t.blocks,e||r)})}sortNodes(t){return t.sort((t,e)=>{let r=this.nodeIndexes.get(t.id),n=this.nodeIndexes.get(e.id);return void 0===r||void 0===n?0:r-n})}getNodesAllLines(t){return t.map(t=>{let e=t.getData(d.Z1),r=e.outputLines.filter(Boolean);return[...r,...e.inputLines.filter(Boolean)]}).flat().filter(t=>void 0===this.lineLevel.get(t.id)||this.isHigherFirstLine(t))}isHigherFirstLine(t){return t.to?.parent===t.from||t.from?.parent===t.to}getLevel(t){return t?this.topLevel+this.currentLevel:this.currentLevel}levelIncrease(){this.currentLevel+=1}};var b=((n=b||{}).Line="line",n.Node="node",n);var w=((i=w||{}).Line="line",i.Node="node",i),A={line:0,node:1},D=Object.keys(w).length,E=4,x={startIndex:8,allowLevel:2,levelIndexStep:D,maxLevel:E,maxIndex:8+E*D},S=class{constructor(){this.node=h.xF.createDivWithClass("gedit-playground-layer gedit-flow-render-layer"),this.disposers=[],this.compute=(0,u.debounce)(this._compute,10)}init(){this.pipelineRenderer.node.appendChild(this.node),this.mountListener()}ready(){this.compute()}dispose(){this.disposers.forEach(t=>t.dispose())}_compute(){let t=this.context,{nodeLevel:e,lineLevel:r}=new m().compute({root:this.document.root,nodes:this.nodes,context:t});this.nodes.forEach(t=>{let r=e.get(t.id),n=t.getData(f.Lz),i=n.node;if(i.style.position="absolute",void 0===r){i.style.zIndex="auto",n.stackIndex=0;return}let o=x.startIndex+r;i.style.zIndex=String(o),n.stackIndex=o}),this.lines.forEach(t=>{let e=r.get(t.id),n=t.node;if(n.style.position="absolute",void 0===e){n.style.zIndex="auto";return}n.style.zIndex=String(x.startIndex+e)})}get nodes(){return this.entityManager.getEntities(d.CT)}get lines(){return this.entityManager.getEntities(d.e2)}get context(){return{hoveredEntity:this.hoverService.hoveredNode,hoveredEntityID:this.hoverService.hoveredNode?.id,selectedEntities:this.selectService.selection,selectedIDs:this.selectService.selection.map(t=>t.id)}}mountListener(){let t=this.onEntityChange(),e=this.onZoom(),r=this.onHover(),n=this.onSelect();this.disposers=[t,e,r,n]}onZoom(){return this.pipelineRegistry.onZoom(t=>{this.node.style.transform=`scale(${t})`})}onHover(){return this.hoverService.onHoveredChange(()=>{this.compute()})}onEntityChange(){return this.entityManager.onEntityChange(()=>{this.compute()})}onSelect(){return this.selectService.onSelectionChanged(()=>{this.compute()})}};y([(0,l.f)(d.L4)],S.prototype,"document",2),y([(0,l.f)(s.v2)],S.prototype,"entityManager",2),y([(0,l.f)(s.Tj)],S.prototype,"pipelineRenderer",2),y([(0,l.f)(s.Rm)],S.prototype,"pipelineRegistry",2),y([(0,l.f)(d.XH)],S.prototype,"hoverService",2),y([(0,l.f)(d.oJ)],S.prototype,"selectService",2),S=y([(0,c.b)()],S);var M=(0,s.M1)({onBind({bind:t}){t(S).toSelf().inSingletonScope()},onInit(t){t.get(S).init()},onReady(t){t.get(S).ready()},onDispose(t){t.get(S).dispose()}});(t=>{t.compute=(n,i)=>{let o=e(n,i),a=r(n);a.style.position="absolute",a.style.zIndex=(0,t.zIndexStringify)(o)},t.stackingIndex=(t,e)=>{if(e<1)return;let r=A[t];return x.startIndex+x.levelIndexStep*(e-1)+r},t.nodeStackingLevel=(t,e,r=!1)=>{let n=[],i=t;for(;i;)n.push(i),i=i.parent;let o=n.reverse(),a=o.length-1,s=o.findIndex(t=>!!e.selectedIDs.includes(t.id)||!1),u=x.allowLevel+(o.length-s);return r||-1===s?a:u},t.zIndexStringify=t=>void 0===t?"auto":t.toString();let e=(e,r)=>{let n=(0,t.nodeStackingLevel)(e,r);return(0,t.stackingIndex)("node",n)},r=t=>t.getData(f.Lz).node})(o||(o={})),(t=>{t.compute=(t,e)=>{let n=r(t,e),i=t.node;i.style.position="absolute",i.style.zIndex=o.zIndexStringify(n)};let e=(t,e)=>{if(t.isDrawing||e.hoveredEntityID===t.id||e.selectedIDs.includes(t.id))return x.maxLevel+1;let r=o.nodeStackingLevel(t.from,e,!0);return t.to?Math.min(r,o.nodeStackingLevel(t.to,e,!0)):r},r=(t,r)=>{let n=e(t,r);return o.stackingIndex("line",n)}})(a||(a={}));var _=t=>{let{nodes:e,lines:r,context:n}=t;e.forEach(t=>{o.compute(t,n)}),r.forEach(t=>{a.compute(t,n)})}},820078:function(t,e,r){"use strict";r.d(e,{N:function(){return g}});var n=r(2553),i=r(952522),o=r(107392),a=r(195852),s=r(347275),u=r(160724),l=r(435946),c=Object.defineProperty,h=Object.getOwnPropertyDescriptor;function d(t){if(!t)return;let e=t?.getData(u.Ps)?.getFormModel();if(!!e&&!!(0,s.TH)(e))return e}var f=[{type:"changeFormValues",inverse:t=>({...t,value:{...t.value,value:t.value.oldValue,oldValue:t.value.value}}),apply:({value:{value:t,path:e,id:r}},i)=>{let o=d(i.get(n.pQ).getNode(r));if(!!o)o.setValueIn(e,t)},shouldMerge:function(t,e,r){if(!e)return!1;if(Date.now()-r.getTimestamp()<500)return t.type!==e.type||t.value?.id!==e.value?.id||t.value?.path!==e.value?.path||{type:t.type,value:{...t.value,value:t.value?.value,oldValue:e.value?.oldValue}};return!1}}],p=class{registerOperationMeta(t){f.forEach(e=>{t.registerOperationMeta(e)})}};p=((t,e,r,n)=>{for(var i=n>1?void 0:n?h(e,r):e,o,a=t.length-1;a>=0;a--)(o=t[a])&&(i=(n?o(e,r,i):o(i))||i);return n&&i&&c(e,r,i),i})([(0,l.b)()],p);var g=(0,i.M1)({onBind:({bind:t})=>{(0,i.KV)(t,p,[o.FU])},onInit:(t,e)=>{let r=t.get(n.pQ),i=t.get(o.qp);r.onNodeCreate(({node:t})=>{let e=d(t);if(!!e)!function(t,e,r){t.onFormValuesChange(t=>{r.pushOperation({type:"changeFormValues",value:{id:e.id,path:t.name,value:(0,a.get)(t.values,t.name),oldValue:(0,a.get)(t.prevValues,t.name)}},{noApply:!0})})}(e,t,i)})},containerModules:[o.Xn]})},107392:function(t,e,r){"use strict";r.d(e,{CD:function(){return m},FU:function(){return y},JE:function(){return N},Xn:function(){return _},f9:function(){return A},qp:function(){return M}});var n=r(523158),i=r(686346),o=r(259674),a=r(435946),s=r(168316),u=r(771531),l=r(801815),c=r(195852),h=r(702570),d=r(952522),f=Object.defineProperty,p=Object.getOwnPropertyDescriptor,g=(t,e,r,n)=>{for(var i=n>1?void 0:n?p(e,r):e,o,a=t.length-1;a>=0;a--)(o=t[a])&&(i=(n?o(e,r,i):o(i))||i);return n&&i&&f(e,r,i),i},y=Symbol("OperationContribution"),m=class{constructor(){this._operationMetas=new Map,this.contributions=[]}init(){for(let t of this.contributions)t.registerOperationMeta?.(this)}registerOperationMeta(t){return this._operationMetas.has(t.type)?(console.warn(`A operation meta ${t.type} is already registered.`),s.JT.NULL):new s.K4(this._doRegisterOperationMetaMeta(t))}getOperationMeta(t){return this._operationMetas.get(t)}_doRegisterOperationMetaMeta(t){return this._operationMetas.set(t.type,t),{dispose:()=>{this._operationMetas.delete(t.type)}}}};g([(0,n.n)(y),(0,i.j)()],m.prototype,"contributions",2),g([(0,o.z)()],m.prototype,"init",1),m=g([(0,a.b)()],m);var b=class{};b=g([(0,a.b)()],b);var w=class{constructor(){this.generateId=()=>(0,l.x0)(),this.getSnapshot=()=>""}};w=g([(0,a.b)()],w);var A=class{constructor(){this.applyEmitter=new s.Q5,this.onApply=this.applyEmitter.event,this._toDispose=new s.K4}init(){this._toDispose.push(this.applyEmitter)}applyOperation(t,e){let r;let n=this.operationRegistry.getOperationMeta(t.type);if(!n)throw Error(`Operation meta ${t.type} has not registered.`);return!e?.noApply&&(r=n.apply(t,this.context.source)),this.applyEmitter.fire(t),r}getOperationLabel(t){let e=this.operationRegistry.getOperationMeta(t.type);if(e&&e.getLabel)return e.getLabel(t,this.context.source)}getOperationDescription(t){let e=this.operationRegistry.getOperationMeta(t.type);if(e&&e.getDescription)return e.getDescription(t,this.context.source)}inverseOperations(t){return t.map(t=>this.inverseOperation(t)).reverse()}inverseOperation(t){let e=this.operationRegistry.getOperationMeta(t.type);if(!e)throw Error(`Operation meta ${t.type} has not registered.`);return e.inverse(t)}dispose(){this._toDispose.dispose()}};g([(0,u.f)(m)],A.prototype,"operationRegistry",2),g([(0,u.f)(b)],A.prototype,"context",2),g([(0,u.f)(w)],A.prototype,"config",2),g([(0,o.z)()],A.prototype,"init",1),A=g([(0,a.b)()],A);var D=class{constructor(){this._undoing=!1,this._redoing=!1,this._limit=100,this.onChangeEmitter=new s.Q5,this.onChange=this.onChangeEmitter.event,this._toDispose=new s.K4,this._undoStack=[],this._redoStack=[],this._toDispose.push(this.onChangeEmitter)}setLimit(t){this._limit=t}pushElement(t){this._redoStack=[],this._stackPush(this._undoStack,t),this._toDispose.push(t),this._emitChange("push",t)}getUndoStack(){return this._undoStack}getRedoStack(){return this._redoStack}getLastElement(){return this._undoStack[this._undoStack.length-1]}async undo(){if(!this.canUndo()||this._undoing)return;this._undoing=!0;let t=this._undoStack.pop();try{await t.undo()}finally{this._stackPush(this._redoStack,t),this._emitChange("undo",t),this._undoing=!1}}async redo(){if(!this.canRedo()||this._redoing)return;this._redoing=!0;let t=this._redoStack.pop();try{await t.redo()}finally{this._stackPush(this._undoStack,t),this._emitChange("redo",t),this._redoing=!1}}canUndo(){return this._undoStack.length>0}canRedo(){return this._redoStack.length>0}canPush(){return!this._redoing&&!this._undoing}clear(){this.clearRedoStack(),this.clearUndoStack(),this._emitChange("clear")}clearRedoStack(){this._redoStack.forEach(t=>{t.dispose()}),this._redoStack=[]}clearUndoStack(){this._undoStack.forEach(t=>{t.dispose()}),this._undoStack=[]}dispose(){this.clear(),this._toDispose.dispose()}_stackPush(t,e){t.push(e),t.length>this._limit&&t.shift()}_emitChange(t,e){e?this.onChangeEmitter.fire({type:t,element:e}):this.onChangeEmitter.fire({type:t})}};D=g([(0,a.b)()],D);var E=class{constructor(t,e=[]){this._toDispose=new s.K4,this._timestamp=Date.now(),this._operationService=t,this._operations=e.map(t=>this._operation(t)),this._id=t.config.generateId()}get id(){return this._id}getTimestamp(){return this._timestamp}pushOperation(t){let e=this._operation(t);return this._operations.push(e),e}getOperations(){return this._operations}getChangeOperations(t){return"undo"===t?this._operationService.inverseOperations(this._operations):this._operations}getFirstOperation(){return this._operations[0]}getLastOperation(){return this._operations[this._operations.length-1]}async undo(){for(let t of this._operationService.inverseOperations(this._operations))await this._apply(t)}async redo(){for(let t of this._operations)await this._apply(t)}revert(t){let e=this._operations;for(let r of("undo"!==t&&(e=this._operations.map(t=>this._inverse(t)).reverse()),e))this._apply(r)}_inverse(t){return this._operationService.inverseOperation(t)}async _apply(t){await this._operationService.applyOperation(t)}_operation(t){return{...t,value:(0,c.cloneDeep)(t.value),id:this._operationService.config.generateId()}}dispose(){this._toDispose.dispose()}},x=class{constructor(){this._items=[],this.onChangeEmitter=new s.Q5,this.onChange=this.onChangeEmitter.event,this._toDispose=new s.K4,this.limit=100,this._toDispose.push(this.onChangeEmitter)}get items(){return this._items}add(t,e){let r=this._getHistoryItem(t,e);return this._items.unshift(r),this._items.length>this.limit&&this._items.pop(),this.onChangeEmitter.fire({type:"add",value:r,service:t}),r}findById(t){return this._items.find(e=>e.id===t)}changeByIndex(t,e,r){let n=this._getHistoryItem(e,r);this._items[t]=n,this.onChangeEmitter.fire({type:"update",value:n,service:e})}addOperation(t,e,r){let n=this._items.find(t=>t.id===e);if(!n){console.warn("no history item found");return}let i=this._getHistoryOperation(t,r);n.operations.push(i),this.onChangeEmitter.fire({type:"add_operation",value:{historyItem:n,operation:i},service:t})}updateOperation(t,e,r){let n=this._items.find(t=>t.id===e);if(!n){console.warn("no history item found");return}let i=n.operations.findIndex(t=>t.id==t.id);if(i<0){console.warn("no operation found");return}let o=this._getHistoryOperation(t,r);n.operations.splice(i,1,o),this.onChangeEmitter.fire({type:"update_operation",value:{historyItem:n,operation:o},service:t})}clear(){this._items=[]}dispose(){this._items=[],this._toDispose.dispose()}_getHistoryItem(t,e){return{...e,uri:t.context.uri,time:x.dateFormat(e.timestamp),operations:e.operations.map(r=>this._getHistoryOperation(t,r,"push"!==e.type))}}_getHistoryOperation(t,e,r=!1){let n;if(r)n=this.historyConfig.generateId();else{let t=e.id;if(!t)throw Error("no operation id found");n=t}return{...(0,c.cloneDeep)(e),id:n,label:t.operationService.getOperationLabel(e),description:t.operationService.getOperationDescription(e),timestamp:Date.now()}}static dateFormat(t){return new Date(t).toLocaleString()}};g([(0,u.f)(w)],x.prototype,"historyConfig",2),x=g([(0,a.b)()],x);var S=class{constructor(){this._historyServices=new Map,this._toDispose=new s.K4}registerHistoryService(t){let e=new s.K4;e.pushAll([t.undoRedoService.onChange(e=>{if("clear"===e.type)return;let{type:r,element:n}=e,i=n.getChangeOperations(r),o={id:"push"===r?n.id:this.historyConfig.generateId(),type:r,uri:t.context.uri,operations:i,timestamp:Date.now()};this.historyStack.add(t,o)}),t.onMerge(e=>{this._handleMerge(t,e)})]),this._historyServices.set(t,e),this._toDispose.push(t.onWillDispose(()=>{this.unregisterHistoryService(t)}))}unregisterHistoryService(t){let e=this._historyServices.get(t);if(!!e)e.dispose(),this._historyServices.delete(t)}getHistoryServiceByURI(t){for(let e of this._historyServices.keys())if(e.context.uri===t)return e}getFirstHistoryService(){for(let t of this._historyServices.keys())return t}dispose(){this._toDispose.dispose(),this.historyStack.dispose(),this._historyServices.forEach(t=>t.dispose()),this._historyServices.clear()}_handleMerge(t,e){let{element:r,operation:n}=e.value;if(!!this.historyStack.findById(r.id)){if(!n.id){console.warn("no operation id found");return}"UPDATE"===e.type&&this.historyStack.updateOperation(t,r.id,n),"ADD"===e.type&&this.historyStack.addOperation(t,r.id,n)}}};g([(0,u.f)(x)],S.prototype,"historyStack",2),g([(0,u.f)(w)],S.prototype,"historyConfig",2),S=g([(0,a.b)()],S);var M=class{constructor(){this._toDispose=new s.K4,this._transacting=!1,this._transactOperation=null,this._locked=!1,this._willDisposeEmitter=new s.Q5,this._mergeEmitter=new s.Q5,this.onWillDispose=this._willDisposeEmitter.event,this.onMerge=this._mergeEmitter.event}get onApply(){return this.operationService.onApply}init(){this._toDispose.push(this._willDisposeEmitter),this._toDispose.push(this._mergeEmitter)}start(){this._locked=!1}stop(){this._locked=!0}limit(t){this.undoRedoService.setLimit(t)}startTransaction(){if(this._transacting)return;this._transacting=!0;let t=new E(this.operationService,[]);this._transactOperation=t}endTransaction(){let t=this._transactOperation;if(!!t)0!==t.getOperations().length&&this._pushStackOperation(t),this._transactOperation=null,this._transacting=!1}transact(t){if(!this._transacting)this.startTransaction(),t(),this.endTransaction()}pushOperation(t,e){if(!this._canPush())return;let r=this._transactOperation||this.undoRedoService.getLastElement(),n=this.operationRegistry.getOperationMeta(t.type);if(!n)throw Error(`Operation meta ${t.type} has not registered.`);if(n.shouldSave&&!n.shouldSave(t))return n.apply(t,this.context.source);let i=this.operationService.applyOperation(t,{noApply:e?.noApply});n.getURI&&!t.uri&&(t.uri=n.getURI(t,this.context.source));let o=this._shouldMerge(t,r,n);if(o){if("object"==typeof o){let t=r.getLastOperation();t.value=o.value,this._mergeEmitter.fire({type:"UPDATE",value:{element:r,operation:t,value:o.value}})}else{let e=r.pushOperation(t);this._mergeEmitter.fire({type:"ADD",value:{element:r,operation:e}})}}else{let e=new E(this.operationService,[t]);this._pushStackOperation(e)}return i}getHistoryOperations(){return this.historyManager.historyStack.items.reverse().map(t=>t.operations.map(t=>({...(0,c.pick)(t,["type","value"]),label:t.label||t.type}))).flat()}async undo(){await this.undoRedoService.undo()}async redo(){await this.undoRedoService.redo()}canUndo(){return this.undoRedoService.canUndo()}canRedo(){return this.undoRedoService.canRedo()}getSnapshot(){return this.config.getSnapshot()}getRecords(){throw Error("Method not implemented.")}restore(t){throw Error("Method not implemented.")}clear(){this.undoRedoService.clear()}dispose(){this._willDisposeEmitter.fire(this),this._toDispose.dispose()}_canPush(){return!this._locked&&this.undoRedoService.canPush()}_pushStackOperation(t){this.undoRedoService.pushElement(t),this.undoRedoService.clearRedoStack()}_shouldMerge(t,e,r){return!!e&&(!!this._transacting||r.shouldMerge&&r.shouldMerge(t,e.getLastOperation(),e))}};g([(0,u.f)(D)],M.prototype,"undoRedoService",2),g([(0,u.f)(m)],M.prototype,"operationRegistry",2),g([(0,u.f)(A)],M.prototype,"operationService",2),g([(0,u.f)(b)],M.prototype,"context",2),g([(0,u.f)(w)],M.prototype,"config",2),g([(0,u.f)(S)],M.prototype,"historyManager",2),g([(0,o.z)()],M.prototype,"init",1),M=g([(0,a.b)()],M);var _=new h.n((t,e,r,n,i,o,a)=>{t(m).toSelf().inSingletonScope(),t(A).toSelf().inSingletonScope(),t(D).toSelf().inSingletonScope(),t(M).toSelf().inSingletonScope(),t(b).toSelf().inSingletonScope(),t(S).toSelf().inSingletonScope(),t(x).toSelf().inSingletonScope(),t(w).toSelf().inSingletonScope(),o(M,(t,e)=>{let r;return(r=t.container?.parent?.isBound(S)?t.container?.parent?.get(S):t.container.get(S))?(e.historyManager=r,r.registerHistoryService(e),e):e})}),N=(0,d.M1)({onInit:(t,e)=>{e.onApply&&t.get(A).onApply(e.onApply.bind(null,t))},containerModules:[_]})},717807:function(t,e,r){"use strict";r.d(e,{j:function(){return i}});var n=r(840652),i=(0,r(952522).M1)({onInit:(t,e)=>{e.onLanguageChange&&t.playground.toDispose.push(n.o.onLanguageChange(e.onLanguageChange)),e.languages&&e.languages.forEach(t=>n.o.addLanguage(t)),e.localLanguage&&n.o.setLocalLanguage(e.localLanguage)}})},840652:function(t,e,r){"use strict";r.d(e,{o:function(){return i}});var n=r(168316),i=new class{constructor(t){this._languages=new Map,this._localLanguage="en-US",this._onLanguageChangeEmitter=new n.Q5,this.onLanguageChange=this._onLanguageChangeEmitter.event,t.forEach(t=>this.addLanguage(t))}t(t,e){let r=this._languages.get(this._localLanguage)?.contents||{};return r[t]?r[t]:e?.disableReturnKey?"":t}getLocalLanguage(){return this._localLanguage}setLocalLanguage(t){t!==this._localLanguage&&(this._localLanguage=t,this._onLanguageChangeEmitter.fire(t))}getLangauges(){return this._languages}addLanguage(t){let e=this._languages.get(t.languageId);e?this._languages.set(t.languageId,{...e,...t,contents:{...e.contents,...t.contents}}):this._languages.set(t.languageId,t)}}([{languageId:"en-US",languageName:"English",localizedLanguageName:"English",contents:{Yes:"Yes",No:"No"}},{languageId:"zh-CN",languageName:"Chinese",localizedLanguageName:"中文(中国)",contents:{Yes:"是",No:"否"}}])},136486:function(t,e,r){"use strict";r.d(e,{C:function(){return i}});var n=r(755e3),i=(0,r(952522).M1)({onInit(t,e){let r=t.get(n.Rf);r.registerReactComponent(n.kD.NODE_RENDER,e.renderDefaultNode||(()=>null)),e.renderTexts&&r.registerText(e.renderTexts),e.renderNodes&&Object.keys(e.renderNodes).forEach(t=>r.registerReactComponent(t,e.renderNodes[t]))}})},355923:function(t,e,r){"use strict";r.d(e,{I5:function(){return b},Zd:function(){return m},qP:function(){return A}});var n,i=r(455069),o=r(952522),a=r(195852),s=r(771531),u=r(435946),l=r(168316),c=r(2553),h=Object.defineProperty,d=Object.getOwnPropertyDescriptor,f=(t,e,r,n)=>{for(var i=n>1?void 0:n?d(e,r):e,o,a=t.length-1;a>=0;a--)(o=t[a])&&(i=(n?o(e,r,i):o(i))||i);return n&&i&&h(e,r,i),i},p={canvasWidth:250,canvasHeight:250,canvasPadding:50,canvasBackground:"rgba(242, 243, 245, 1)",canvasBorderRadius:10,viewportBackground:"rgba(255, 255, 255, 1)",viewportBorderRadius:4,viewportBorderColor:"rgba(6, 7, 9, 0.10)",viewportBorderWidth:1,viewportBorderDashLength:void 0,nodeColor:"rgba(0, 0, 0, 0.10)",nodeBorderRadius:2,nodeBorderWidth:.145,nodeBorderColor:"rgba(6, 7, 9, 0.10)",overlayColor:"rgba(255, 255, 255, 0.55)"},g={scale:.7,opacity:1,translateX:15,translateY:15},y={canvasStyle:p,canvasClassName:"gedit-minimap-canvas",enableActiveDebounce:!1,enableInactiveDebounce:!0,enableDisplayAllNodes:!1,activeDebounceTime:0,inactiveDebounceTime:5},m=t=>{let{service:e,panelStyles:r={},containerStyles:n={},inactiveStyle:o={}}=t,a={...g,...o},s=(0,i.useRef)(null),[u,l]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let t=s.current;t&&e.canvas&&t.appendChild(e.canvas);let r=e.onActive(t=>{l(t)});return()=>{r.dispose()}},[]);let c=u?1:a.scale,h=u?1:a.opacity,d=u?0:a.translateX,f=u?0:a.translateY;return i.createElement("div",{className:"minimap-container",style:{position:"fixed",right:30,bottom:70,transition:"all 0.3s ease",transform:`scale(${c}) translate(${d}px, ${f}px)`,opacity:h,transformOrigin:"bottom right",...n}},i.createElement("div",{className:"minimap-panel",style:{display:"flex",width:"100%",height:"100%",borderRadius:"10px",backgroundColor:"rgba(255, 255, 255, 1)",border:"0.572px solid rgba(6, 7, 9, 0.10)",overflow:"hidden",boxShadow:"0px 2.289px 6.867px 0px rgba(0, 0, 0, 0.08), 0px 4.578px 13.733px 0px rgba(0, 0, 0, 0.04)",boxSizing:"border-box",padding:8,...r},"data-flow-editor-selectable":"false",ref:s,onMouseEnter:()=>{e.setActivate(!0)},onMouseLeave:()=>{e.setActivate(!1)}}))};(t=>{let e=t=>t.width>0&&t.height>0;t.clear=t=>{let{canvas:e,context:r}=t;r.clearRect(0,0,e.width,e.height)},t.backgroundColor=t=>{let{canvas:e,context:r,color:n}=t;r.fillStyle=n,r.fillRect(0,0,e.width,e.height)},t.rectangle=t=>{let{context:r,rect:n,color:i}=t;if(!!e(n))r.fillStyle=i,r.fillRect(n.x,n.y,n.width,n.height)},t.roundRectangle=t=>{let{context:r,rect:n,color:i,radius:o,borderColor:a,borderDashLength:s,borderWidth:u=0}=t,{x:l,y:c,width:h,height:d}=n;if(!!e(n)){r.beginPath();r.moveTo(l+o,c),r.lineTo(l+h-o,c),r.quadraticCurveTo(l+h,c,l+h,c+o),r.lineTo(l+h,c+d-o),r.quadraticCurveTo(l+h,c+d,l+h-o,c+d),r.lineTo(l+o,c+d),r.quadraticCurveTo(l,c+d,l,c+d-o),r.lineTo(l,c+o),r.quadraticCurveTo(l,c,l+o,c),r.closePath(),r.fillStyle=i,r.fill(),a&&u>0&&(r.strokeStyle=a,r.lineWidth=u,s?r.setLineDash([s,s]):r.setLineDash([]),r.stroke(),r.setLineDash([]))}},t.overlay=t=>{let{canvas:r,context:n,offset:i,scale:o,rect:a,color:s}=t;if(!!e(a))n.fillStyle=s,n.fillRect(0,0,r.width,(a.y+i.y)*o),n.fillRect(0,(a.y+a.height+i.y)*o,r.width,r.height-(a.y+a.height+i.y)*o),n.fillRect(0,(a.y+i.y)*o,(a.x+i.x)*o,a.height*o),n.fillRect((a.x+a.width+i.x)*o,(a.y+i.y)*o,r.width-(a.x+a.width+i.x)*o,a.height*o)}})(n||(n={}));var b=class{constructor(){this.onActive=t=>(this.onActiveCallbacks.add(t),{dispose:()=>{this.onActiveCallbacks.delete(t)}}),this.render=this._render,this.handleWheel=t=>{},this.handleStartDrag=t=>{t.preventDefault(),t.stopPropagation();let{viewRect:e,scale:r,offset:n}=this.createRenderContext(),i=this.canvas.getBoundingClientRect(),o={x:t.clientX-i.left,y:t.clientY-i.top},a=this.rectOnCanvas({rect:e,scale:r,offset:n});if(!!this.isPointInRect({point:o,rect:a}))this.isDragging=!0,this.dragStart=o,document.addEventListener("mousemove",this.handleDragging),document.addEventListener("mouseup",this.handleEndDrag)},this.handleDragging=t=>{if(!this.isDragging||!this.dragStart)return;t.preventDefault(),t.stopPropagation();let{scale:e}=this.createRenderContext(),r=this.canvas.getBoundingClientRect(),n=t.clientX-r.left,i=t.clientY-r.top,o=(n-this.dragStart.x)/e,a=(i-this.dragStart.y)/e;this.updateScrollPosition(o,a),this.dragStart={x:n,y:i},this.render()},this.handleEndDrag=t=>{t.preventDefault(),t.stopPropagation(),document.removeEventListener("mousemove",this.handleDragging),document.removeEventListener("mouseup",this.handleEndDrag),this.isDragging=!1,this.dragStart=void 0,this.setActivate(this.isMouseInCanvas(t))},this.handleCursor=t=>{if(!this.activated)return;let{viewRect:e,scale:r,offset:n}=this.createRenderContext(),i=this.canvas.getBoundingClientRect(),o={x:t.clientX-i.left,y:t.clientY-i.top},a=this.rectOnCanvas({rect:e,scale:r,offset:n});this.isPointInRect({point:o,rect:a})?this.canvas.style.cursor="grab":this.canvas.style.cursor="default"},this.canvas=document.createElement("canvas"),this.context2D=this.canvas.getContext("2d"),this.initialized=!!this.context2D,this.onActiveCallbacks=new Set,this.toDispose=new l.K4,this.render=this._render,this.activated=!1,this.isDragging=!1}init(t){this.options=y,Object.assign(this.options,t),this.setDebounce({enableDebounce:this.options.enableInactiveDebounce,debounceTime:this.options.inactiveDebounceTime}),this.initStyle(),this.mountListener()}dispose(){this.toDispose.dispose(),this.initialized=!1,this.activated=!1,this.removeEventListeners()}setActivate(t){if(t!==this.activated&&(!!t||!this.isDragging))this.activated=t,t?(this.setDebounce({enableDebounce:this.options.enableActiveDebounce,debounceTime:this.options.activeDebounceTime}),this.addEventListeners()):(this.setDebounce({enableDebounce:this.options.enableInactiveDebounce,debounceTime:this.options.inactiveDebounceTime}),this.removeEventListeners()),this.render(),this.onActiveCallbacks.forEach(e=>e(t))}initStyle(){if(!this.initialized)return;let{canvasClassName:t,canvasStyle:e}=this.options;this.canvas.className=t,this.style={...p,...e},this.canvas.width=this.style.canvasWidth,this.canvas.height=this.style.canvasHeight,this.canvas.style.borderRadius=this.style.canvasBorderRadius?`${this.style.canvasBorderRadius}px`:"unset"}setDebounce(t){let{enableDebounce:e,debounceTime:r}=t;e?this.render=(0,a.debounce)(this._render,r):this.render=this._render}_render(){if(!this.initialized)return;let t=this.createRenderContext();this.renderCanvas(t)}createRenderContext(){let{canvas:t,context2D:e,nodes:r}=this,n=this.nodeTransforms(r).map(t=>t.bounds),i=this.viewRect(),o=this.renderRect(n).withPadding({top:this.style.canvasPadding,bottom:this.style.canvasPadding,left:this.style.canvasPadding,right:this.style.canvasPadding}),a=l.Ae.enlarge([i,o]),{scale:s,offset:u}=this.calculateScaleAndOffset({canvasRect:a});return{canvas:t,context2D:e,nodeRects:n,canvasRect:a,viewRect:i,renderRect:o,scale:s,offset:u}}renderCanvas(t){let{canvas:e,context2D:r,nodeRects:i,viewRect:o,scale:a,offset:s}=t;n.clear({canvas:e,context:r}),n.backgroundColor({canvas:e,context:r,color:this.style.canvasBackground}),n.roundRectangle({context:r,rect:this.rectOnCanvas({rect:o,scale:a,offset:s}),color:this.style.viewportBackground,radius:this.style.viewportBorderRadius}),i.forEach(t=>{n.roundRectangle({context:r,rect:this.rectOnCanvas({rect:t,scale:a,offset:s}),color:this.style.nodeColor,radius:this.style.nodeBorderRadius,borderWidth:this.style.nodeBorderWidth,borderColor:this.style.nodeBorderColor})}),n.roundRectangle({context:r,rect:this.rectOnCanvas({rect:o,scale:a,offset:s}),color:"rgba(255, 255, 255, 0)",radius:this.style.viewportBorderRadius,borderColor:this.style.viewportBorderColor,borderWidth:this.style.viewportBorderWidth,borderDashLength:this.style.viewportBorderDashLength}),n.overlay({canvas:e,context:r,offset:s,scale:a,rect:o,color:this.style.overlayColor})}calculateScaleAndOffset(t){let{canvasRect:e}=t,{width:r,height:n}=this.canvas,i=r/e.width,o=Math.min(i,n/e.height),a=e.width*o,s=e.height*o,u={x:(r-a)/2/o-e.x,y:(n-s)/2/o-e.y};return{scale:o,offset:u}}get nodes(){return this.document.getAllNodes().filter(t=>!t.hidden&&(t.flowNodeType===c.Sy.ROOT?void 0:!!this.options.enableDisplayAllNodes||!t.parent||t.parent.flowNodeType===c.Sy.ROOT||void 0))}nodeTransforms(t){return t.map(t=>t.getData(c.eG)).filter(Boolean)}renderRect(t){return l.Ae.enlarge(t)}viewRect(){let{width:t,height:e,scrollX:r,scrollY:n,zoom:i}=this.playgroundConfig.config;return new l.Ae(r/i,n/i,t/i,e/i)}mountListener(){let t=this.entityManager.onEntityChange(()=>this.render());this.toDispose.push(t)}rectOnCanvas(t){let{rect:e,scale:r,offset:n}=t;return new l.Ae((e.x+n.x)*r,(e.y+n.y)*r,e.width*r,e.height*r)}isPointInRect(t){let{point:e,rect:r}=t;return e.x>=r.x&&e.x<=r.x+r.width&&e.y>=r.y&&e.y<=r.y+r.height}addEventListeners(){this.canvas.addEventListener("wheel",this.handleWheel),this.canvas.addEventListener("mousedown",this.handleStartDrag),this.canvas.addEventListener("mousemove",this.handleCursor)}removeEventListeners(){this.canvas.removeEventListener("wheel",this.handleWheel),this.canvas.removeEventListener("mousedown",this.handleStartDrag),this.canvas.removeEventListener("mousemove",this.handleCursor)}isMouseInCanvas(t){let e=this.canvas.getBoundingClientRect();return t.clientX>=e.left&&t.clientX<=e.right&&t.clientY>=e.top&&t.clientY<=e.bottom}updateScrollPosition(t,e){let{scrollX:r,scrollY:n,zoom:i}=this.playgroundConfig.config;this.playgroundConfig.updateConfig({scrollX:r+t*i,scrollY:n+e*i})}};f([(0,s.f)(c.pQ)],b.prototype,"document",2),f([(0,s.f)(o.v2)],b.prototype,"entityManager",2),f([(0,s.f)(o.ER)],b.prototype,"playgroundConfig",2),b=f([(0,u.b)()],b);var w=class extends o.mh{constructor(){super(),this.className="gedit-minimap-layer gedit-playground-layer",this.node=l.xF.createDivWithClass(this.className),this.node.style.zIndex="9999"}render(){return this.options.disableLayer?i.createElement(i.Fragment,null):i.createElement(m,{service:this.service,panelStyles:this.options.panelStyles,containerStyles:this.options.containerStyles,inactiveStyle:this.options.inactiveStyle})}};w.type="FlowMinimapLayer",f([(0,s.f)(b)],w.prototype,"service",2),w=f([(0,u.b)()],w);var A=(0,o.M1)({onBind:({bind:t})=>{t(b).toSelf().inSingletonScope()},onInit:(t,e)=>{t.playground.registerLayer(w,e),t.get(b).init(e)},onDispose:t=>{t.get(b).dispose()}})},384030:function(t,e,r){"use strict";r.d(e,{e:function(){return s}});var n=r(347275),i=r(160724),o=r(2553),a=r(952522),s=(0,a.M1)({onInit(t,e){t.get(o.pQ).registerNodeDatas(...(0,i.Co)());let r=t=>new n.wL(t);if(t.get(a.v2).registerEntityData(i.Ps,()=>({formModelFactory:r})),!e.materials)return;let s=t.get(i.Bl),u=t.get(i.yf);if(!s||!u)throw Error("NodeCorePlugin Error: nodeManager or formManager not found");!function({nodeManager:t,formManager:e,material:r}){let{setters:n=[],decorators:o=[],effects:a=[],validators:s=[],nodeErrorRender:u,nodePlaceholderRender:l}=r;u&&(0,i.kq)(t,u),l&&(0,i.FC)(t,l),n.forEach(t=>{e.registerAbilityExtension(i.Bw.type,t)}),o.forEach(t=>{e.registerAbilityExtension(i.GH.type,t)}),a.forEach(t=>{e.registerAbilityExtension(i.ps.type,t)}),s.forEach(t=>{e.registerAbilityExtension(i.Us.type,t)})}({nodeManager:s,formManager:u,material:e.materials})},onDispose(t){t.get(i.yf)?.dispose()},containerModules:(0,i.pm)()})},339409:function(t,e,r){"use strict";r.d(e,{w4:function(){return c}});var n=r(160724),i=r(952522),o=r(455069),a=r(810059),s=r(347275),u=({children:t})=>{let e=(0,i.km)(),r=(0,o.useMemo)(()=>e.getData(a._J).public,[e]);return o.createElement(a.$Y,{value:{scope:r}},t)},l=t=>e=>o.createElement(u,null,o.createElement(t,{...e})),c=(0,i.M1)({onInit(t){t.get(n.Bl).registerNodeRenderHoc(l)}});(0,s.CR)("VariableProviderPlugin",{onInit:(t,e)=>{},effect:{arr:[{event:s.zE.onValueInitOrChange,effect:()=>{}}]},onDispose:(t,e)=>{}})},347275:function(t,e,r){"use strict";r.d(e,{CM:function(){return E},CR:function(){return D},OP:function(){return w},TH:function(){return d},fq:function(){return b},vo:function(){return m},wL:function(){return y},zE:function(){return h}});var n,i=r(195852),o=r(168316),a=r(160724),s=r(727962),u=r(952522),l=r(455069),c=r(801815);var h=((n=h||{}).onValueChange="onValueChange",n.onValueInit="onValueInit",n.onValueInitOrChange="onValueInitOrChange",n.onArrayAppend="onArrayAppend",n.onArrayDelete="onArrayDelete",n);function d(t){return"onFormValuesChange"in t}function f(t){return t.startsWith("/")?a.b5.normalize(t).slice(1).split("/").join("."):t}var p=({formModel:t})=>t?.formControl?l.createElement(l.Fragment,null,l.createElement(s.l0,{control:t?.formControl,keepModelOnUnMount:!0},t.formMeta.render)):null,g={EFFECT_MAP:{},EFFECT_RETURN_MAP:new Map([["onValueInitOrChange",{}],["onValueChange",{}],["onValueInit",{}],["onArrayAppend",{}],["onArrayDelete",{}]]),FORM_FEEDBACKS:[],VALID:null},y=class extends a.au{constructor(t){super(),this.effectMap=g.EFFECT_MAP,this.effectReturnMap=g.EFFECT_RETURN_MAP,this.plugins=[],this.formFeedbacks=g.FORM_FEEDBACKS,this.onInitializedEmitter=new o.Q5,this.onValidateEmitter=new o.Q5,this.onValidate=this.onValidateEmitter.event,this.onInitialized=this.onInitializedEmitter.event,this.onDisposeEmitter=new o.Q5,this.onDispose=this.onDisposeEmitter.event,this.toDispose=new o.K4,this.onFormValuesChangeEmitter=new o.Q5,this.onFormValuesChange=this.onFormValuesChangeEmitter.event,this.onValidChangeEmitter=new o.Q5,this.onValidChange=this.onValidChangeEmitter.event,this.onFeedbacksChangeEmitter=new o.Q5,this.onFeedbacksChange=this.onFeedbacksChangeEmitter.event,this._valid=g.VALID,this._feedbacks=[],this._initialized=!1,this.node=t,this.toDispose.pushAll([this.onInitializedEmitter,this.onValidateEmitter,this.onValidChangeEmitter,this.onFeedbacksChangeEmitter,this.onFormValuesChangeEmitter])}get valid(){return this._valid}set valid(t){this._valid=t,this.onValidChangeEmitter.fire(t)}get flowNodeEntity(){return this.node}get formManager(){return this.node.getService(a.yf)}get formControl(){return this._formControl}get formMeta(){return this.node.getNodeRegistry().formMeta}get values(){return this.nativeFormModel?.values}get feedbacks(){return this._feedbacks}set feedbacks(t){this._feedbacks=t,this.onFeedbacksChangeEmitter.fire(t)}get formItemPathMap(){return new Map}get initialized(){return this._initialized}get nodeContext(){return{node:this.node,playgroundContext:this.node.getService(u.xm)}}get nativeFormModel(){return this._formControl?._formModel}render(){var t;return t=this,l.createElement(p,{formModel:t})}initPlugins(t){if(!!t.length)this.plugins=t,t.forEach(t=>{if(t.init(this),t.config?.effect){var e,r;e=this.effectMap,r=t.config.effect,(0,i.mergeWith)(e,r,function(t,e){return(t||[]).concat(e)})}})}init(t,e){let r=this.node.getData(a.Ps);this.onFormValuesChange(()=>{this._valid=null,r.fireChange()});let{validateTrigger:n,validate:o,effect:u}=t;u&&(this.effectMap=u);let l="function"==typeof t.defaultValues?t.defaultValues(this.nodeContext):t.defaultValues,c=t.formatOnInit?t.formatOnInit(e,this.nodeContext):e,{control:h}=(0,s.Np)({initialValues:c||l,validateTrigger:n,context:this.nodeContext,validate:o,disableAutoInit:!0});this._formControl=h;let d=h._formModel;this.toDispose.push(d),d.onFormValuesChange(t=>{this.onFormValuesChangeEmitter.fire(t)}),t.plugins&&this.initPlugins(t.plugins),d.onFormValuesChange(({values:t,prevValues:e,name:r})=>{Object.keys(this.effectMap).filter(t=>s.rR.isMatchOrParent(t,r)).forEach(n=>{this.effectMap[n].forEach(({effect:o,event:a})=>{if("onValueChange"===a||"onValueInitOrChange"===a){let u=s.rR.getParentPathByPattern(n,r),l=this.effectReturnMap.get(a)?.[u];l&&l();let c=o({name:u,value:(0,i.get)(t,u),prevValue:(0,i.get)(e,u),formValues:t,form:(0,s.eP)(this.nativeFormModel),context:this.nodeContext});c&&"function"==typeof c&&this.effectReturnMap.has(a)&&(this.effectReturnMap.get(a)[u]=c)}})})}),d.onFormValuesInit(({values:t,name:e,prevValues:r})=>{Object.keys(this.effectMap).forEach(n=>{let o=s.rR.findMatchPaths(t,n);this.effectMap[n].forEach(({event:n,effect:a})=>{("onValueInit"===n||"onValueInitOrChange"===n)&&o.forEach(o=>{if(s.rR.isMatchOrParent(e,o)||e===o){let e=this.effectReturnMap.get(n)?.[o];e&&e();let u=a({name:o,value:(0,i.get)(t,o),formValues:t,prevValue:(0,i.get)(r,o),form:(0,s.eP)(this.nativeFormModel),context:this.nodeContext});u&&"function"==typeof u&&this.effectReturnMap.has(n)&&(this.effectReturnMap.get(n)[o]=u)}})})})}),d.onFieldModelCreate(t=>{let e=function(t,e){if(!e)return;if(e[t.name])return e[t.name];let r=(0,i.find)(Object.keys(e),e=>!!e.startsWith("regex:")&&RegExp(e.split(":")[1]).test(t.name));if(r)return e[r]}(t,this.effectMap);if(e?.length){let r=(0,i.groupBy)(e,"event");(0,i.mapKeys)(r,(e,r)=>{let n=t=>{e.forEach(({effect:e})=>e({...t,formValues:d.values,form:(0,s.eP)(this.nativeFormModel),context:this.nodeContext}))};switch(r){case"onArrayAppend":t instanceof s.lE&&t.onAppend(n);break;case"onArrayDelete":t instanceof s.lE&&t.onDelete(n)}})}}),this._formControl.init(),this._initialized=!0,this.onInitializedEmitter.fire(this),this.onDispose(()=>{this._initialized=!1,this.effectMap={},d.dispose()})}toJSON(){return this.formMeta.formatOnSubmit?this.formMeta.formatOnSubmit(this.nativeFormModel?.values,this.nodeContext):this.nativeFormModel?.values}clearValid(){null!==this.valid&&(this.valid=null)}async validate(){return this.formFeedbacks=await this.nativeFormModel?.validate(),this.valid=(0,i.isEmpty)(this.formFeedbacks?.filter(t=>"error"===t.level)),this.onValidateEmitter.fire(this),this.valid}getValues(){return this._formControl?._formModel.values}getField(t){let e=t.includes("/")?f(t):t;return this.formControl?.getField(e)}getValueIn(t){let e=t.includes("/")?f(t):t;return this.nativeFormModel?.getValueIn(e)}setValueIn(t,e){let r=t.includes("/")?f(t):t;this.nativeFormModel?.setValueIn(r,e)}onFormValueChangeIn(t,e){if(!this._initialized)throw Error("[NodeEngine] FormModel Error: onFormValueChangeIn can not be called before initialized");return this.formControl._formModel.onFormValuesChange(({name:r,values:n,prevValues:o})=>{r===t&&e({value:(0,i.get)(n,t),prevValue:(0,i.get)(o,t),formValues:n,prevFormValues:o})})}getFormItemValueByPath(t){if(!t)return;if("/"===t)return this._formControl?._formModel.values;let e=f(t);return this.getValueIn(e)}async validateWithFeedbacks(){return await this.validate(),this.formFeedbacks.map(t=>({feedbackStatus:t.level,feedbackText:t.message,path:t.name}))}getFormItemByPath(t){if(!this.nativeFormModel)return;let e=this;if("/"===t)return{get value(){return e.nativeFormModel.values},set value(v){e.nativeFormModel.values=v}};let r=f(t),n=e.getValueIn(r);return{get value(){return n},set value(v){e.setValueIn(r,v)}}}dispose(){this.onDisposeEmitter.fire(),this.effectReturnMap.forEach(t=>{Object.values(t).forEach(t=>{t()})}),this.effectMap=g.EFFECT_MAP,this.effectReturnMap=g.EFFECT_RETURN_MAP,this.plugins.forEach(t=>{t.dispose()}),this.plugins=[],this.formFeedbacks=g.FORM_FEEDBACKS,this._valid=g.VALID,this._formControl=void 0,this._initialized=!1,this.toDispose.dispose()}};function m(t){return!!t.getNodeRegistry().formMeta?.render}function b(t,e){return{event:t,effect:e}}function w(t){let e=function(t){let e=t.getData(a.Ps).getFormModel(),r=(0,o.JA)();return(0,l.useEffect)(()=>{let t=e.onInitialized(()=>{r()});return()=>t.dispose()},[e]),e}(t);return(0,s.VA)(e.formControl)}var A=class{constructor(t,e,r){this.name=t,this.pluginId=`${t}__${(0,c.x0)()}`,this.config=e,this.opts=r}get formModel(){return this._formModel}get ctx(){return{formModel:this.formModel,node:this.formModel.nodeContext.node,playgroundContext:this.formModel.nodeContext.playgroundContext}}init(t){this._formModel=t,this.config?.onInit?.(this.ctx,this.opts)}dispose(){this.config?.onDispose&&this.config?.onDispose(this.ctx,this.opts)}};function D(t,e){return function(r){return new A(t,e,r)}}function E(t){let e=t.getData(a.Ps)?.getFormModel(),r=e?.nativeFormModel;if(!e||!r)return;let n={initialValues:r.initialValues,get values(){return r.values},state:r.state,getValueIn:t=>r.getValueIn(t),setValueIn:(t,e)=>r.setValueIn(t,e),render:()=>l.createElement(a.o,{node:t}),onFormValuesChange:e.onFormValuesChange.bind(e),onFormValueChangeIn:e.onFormValueChangeIn.bind(e),onValidate:e.nativeFormModel.onValidate,validate:e.validate.bind(e)};return Object.defineProperty(n,"_formModel",{enumerable:!1,get:()=>e}),n}},415977:function(t,e,r){"use strict";r.d(e,{es:function(){return h}}),r(915911);var n=r(168316),i=r(952522),o=r(455069),a=r(875453),s=r(221719),u=r(435946),l=Object.defineProperty,c=Object.getOwnPropertyDescriptor;function h(t,e=[]){return r=>(e=e.slice(),(t.background||void 0===t.background)&&e.push((0,s.b)(t.background||{})),t.shortcuts&&e.push((0,a.cL)({registerShortcuts:e=>t.shortcuts(e,r)})),t.plugins&&e.push(...t.plugins(r)),e.push((0,i.d3)({onBind:e=>{t.onBind?.(e)},onInit:e=>{let r=e.get(i.W4);t.playground&&(void 0!==t.playground.autoFocus&&(r.autoFocus=t.playground.autoFocus),void 0!==t.playground.autoResize&&(r.autoResize=t.playground.autoResize)),r.autoFocus=!1,e.playground.registerLayer(i.wY,t.playground),t.layers&&e.playground.registerLayers(...t.layers),t.onInit&&t.onInit(e)},onReady(e){t.onReady&&t.onReady(e)},onAllLayersRendered(){t.onAllLayersRendered&&t.onAllLayersRendered(r)},onDispose(){t.onDispose&&t.onDispose(r)},containerModules:t.containerModules||[]})),e)}var d=class extends i.mh{constructor(){super(...arguments),this.node=n.xF.createDivWithClass("gedit-playground-layer gedit-playground-content-layer")}onZoom(t){this.node.style.transform=`scale(${t})`}onReady(){this.node.style.left="0px",this.node.style.top="0px"}updateOptions(t){this.options=t,this.render()}render(){return o.createElement("div",{className:this.options.className,style:{position:"absolute",...this.options.style}},this.options.children)}};d.type="PlaygroundContentLayer",d=((t,e,r,n)=>{for(var i=n>1?void 0:n?c(e,r):e,o,a=t.length-1;a>=0;a--)(o=t[a])&&(i=(n?o(e,r,i):o(i))||i);return n&&i&&l(e,r,i),i})([(0,u.b)()],d),(0,o.forwardRef)(function(t,e){let{parentContainer:r,children:n,...a}=t,s=(0,o.useMemo)(()=>(0,i.d3)({onInit(t){t.playground.registerLayer(d)}}),[]),u=(0,o.useMemo)(()=>h(a,[s]),[]);return o.createElement(i.W6,{ref:e,plugins:u,parentContainer:r},o.createElement(i.iX,null,n))})},613921:function(t,e,r){"use strict";r.d(e,{BP:function(){return l},Re:function(){return c},nt:function(){return h}});var n,i=r(455069),o=r(168316);(t=>{let e,r=[],n=[],i=!1,o=!1,a=!1;let s=!1;function u(t,e){if(s)throw e;console.error(`[Tracker error] ${t}`,e)}function l(t){if(function(){return o}())throw Error("Can't call Tracker.flush while flushing");if(a)throw Error("Can't flush inside Tracker.autorun");o=!0,i=!0,s=!!(t=t||{}).throwFirstError;var e=0,h=!1;try{for(;r.length||n.length;){for(;r.length;){var d=r.shift();if(d._recompute(),d._needsRecompute()&&r.unshift(d),!t.finishSynchronously&&++e>100){h=!0;return}}if(n.length){var f=n.shift();try{f()}catch(t){u("afterFlush",t)}}}h=!0}finally{if(!h&&(o=!1,l({finishSynchronously:t.finishSynchronously,throwFirstError:!1})),i=!1,o=!1,r.length||n.length){if(t.finishSynchronously)throw Error("still have more to do?");setTimeout(c,10)}}}function c(){!i&&(setTimeout(l,0),i=!0)}function h(t){let r=e;e=void 0;try{return t(void 0)}finally{e=r}}function d(){return!!e}t.withComputation=function(t,r){let n=e;e=t;try{return r.call(null,t)}finally{e=n}},t.withoutComputation=h,t.isActive=d;t.getCurrentComputation=function(){return e};t.autorun=function(r,n){var i=new p(r,e,n?.onError);return d()&&t.onInvalidate(function(){i.stop()}),i};function f(){return o}t.onInvalidate=function(t){if(!e)throw Error("Tracker.onInvalidate requires a currentComputation");e.onInvalidate(t)},t.inFlush=f;t.flush=function(t){l({finishSynchronously:!0,throwFirstError:t&&t.throwFirstError})};t.afterFlush=function(t){n.push(t),c()};class p{constructor(t,e,r){this._fn=t,this.parent=e,this._onError=r,this._onInvalidateCallbacks=[],this._onStopCallbacks=[],this._recomputing=!1,this.stopped=!1,this.invalidated=!1,this.firstRun=!0;let n=!0;try{this._compute(),n=!1}finally{this.firstRun=!1,n&&this.stop()}}onInvalidate(t){this.invalidated?h(t.bind(null,this)):this._onInvalidateCallbacks.push(t)}invalidate(){if(!this.invalidated){!this._recomputing&&!this.stopped&&(c(),r.push(this)),this.invalidated=!0;for(var t,e=0;t=this._onInvalidateCallbacks[e];e++)h(t.bind(null,this));this._onInvalidateCallbacks=[]}}stop(){if(!this.stopped){this.stopped=!0,this.invalidate();for(let t=0,e;e=this._onStopCallbacks[t];t++)h(e.bind(null,this));this._onStopCallbacks=[]}}onStop(t){this.stopped?h(t.bind(null,this)):this._onStopCallbacks.push(t)}_compute(){this.invalidated=!1;var e=a;a=!0;try{this._result=t.withComputation(this,this._fn)}finally{a=e}}_needsRecompute(){return this.invalidated&&!this.stopped}_recompute(){this._recomputing=!0;try{if(this._needsRecompute())try{this._compute()}catch(t){this._onError?this._onError(t):u("recompute",t)}}finally{this._recomputing=!1}}flush(){!this._recomputing&&this._recompute()}run(){this.invalidate(),this.flush()}get result(){return this._result}}t.Computation=p;t.Dependency=class t{constructor(){this._dependents=new Set}depend(t){if(!t){if(!d())return!1;t=e}return!this._dependents.has(t)&&(this._dependents.add(t),t.onInvalidate(()=>{this._dependents.delete(t)}),!0)}changed(){for(let t of this._dependents)t.invalidate()}hasDependents(){return 0!==this._dependents.size}}})(n||(n={}));var a=class{constructor(t,e){this._dep=new n.Dependency,this._isEqual=(t,e)=>t==e,this._value=t,e?.isEqual&&(this._isEqual=e.isEqual)}_addDepend(t){n.isActive()&&t.depend()}hasDependents(){return this._dep.hasDependents()}get value(){return this._addDepend(this._dep),this._value}set value(t){!this._isEqual(this._value,t)&&(this._value=t,this._dep.changed())}};function s(t,e){let r="Proxy"in window;if(r)return new Proxy(t,e);let n={};for(let r in t)Object.defineProperty(n,r,{enumerable:!0,get:e.get?()=>e.get(t,r):void 0,set:e.set?n=>e.set(t,r,n):void 0});return n}var u=n.Dependency,l=class extends a{constructor(){super(...arguments),this._keyDeps=new Map}set(t,e){this._ensureKey(t);let r=this._value[t];return!this._isEqual(r,e)&&(this._value[t]=e,this._keyDeps.get(t).changed(),!0)}get(t){return this._ensureKey(t),this._addDepend(this._keyDeps.get(t)),this._value[t]}_ensureKey(t){!this._keyDeps.has(t)&&this._keyDeps.set(t,new u)}hasDependents(){if(this._dep.hasDependents())return!0;for(let t of this._keyDeps.values())if(t.hasDependents())return!0;return!1}keys(){return Object.keys(this._value)}set value(t){!this._isEqual(this._value,t)&&(this._value=t,this._keyDeps.clear(),this._dep.changed())}get value(){return this._addDepend(this._dep),!this._proxyValue&&(this._proxyValue=s(this._value,{get:(t,e)=>this.get(e),set:(t,e,r)=>(this.set(e,r),!0)})),this._proxyValue}get readonlyValue(){return this._addDepend(this._dep),!this._proxyReadonlyValue&&(this._proxyReadonlyValue=s(this._value,{get:(t,e)=>this.get(e),set:(t,e)=>{throw Error(`[ReactiveState] Cannnot set readonly field "${e}"`)}})),this._proxyReadonlyValue}};function c(t){let e=(0,o.JA)(),r=(0,i.useMemo)(()=>new Map,[]),a=(0,i.useCallback)(()=>{r.forEach(t=>t.stop()),r.clear()},[]);return(0,i.useEffect)(()=>a,[]),a(),(0,i.useMemo)(()=>void 0===t?{}:s(t,{get(i,o){let a=r.get(o);return!a&&(a=new n.Computation(r=>{if(!r.firstRun){e();return}return t[o]}),r.set(o,a)),t[o]}}),[t])}function h(t){return c(t.readonlyValue)}var{Dependency:d,Computation:f}=n},480088:function(t,e,r){"use strict";r.d(e,{X:function(){return p}});var n=r(952522),i=r(771531),o=r(435946),a=r(259674),s=r(541683),u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=(t,e,r,n)=>{for(var i=n>1?void 0:n?l(e,r):e,o,a=t.length-1;a>=0;a--)(o=t[a])&&(i=(n?o(e,r,i):o(i))||i);return n&&i&&u(e,r,i),i},h=class{constructor(){this.devTools=window.__REDUX_DEVTOOLS_EXTENSION__?.connect({name:this.getName()})}init(){this.devTools&&(this.devTools.init(this.getState()),this.devTools.subscribe(t=>{t?.payload?.type==="COMMIT"&&this.devTools.init(this.getState())}),this.onInit())}send(t,e){this.devTools&&this.devTools.send(t,e||this.getState())}};c([(0,a.z)()],h.prototype,"init",1),h=c([(0,o.b)()],h);var d=class extends h{getName(){return"@flowgram.ai/EntityManager"}getState(){return this.entityManager.storeState({configOnly:!1})}onInit(){this.entityManager.onEntityLifeCycleChange(t=>{this.send(`${t.type}/${t.entity.type}/${t.entity.id}`)})}};c([(0,i.f)(n.v2)],d.prototype,"entityManager",2),d=c([(0,o.b)()],d);var f=class extends h{constructor(){super(...arguments),this.scopes={}}getName(){return"@flowgram.ai/VariableEngine"}getState(){return{scopes:this.scopes,variables:this.variableEngine.globalVariableTable.variables}}getScopeState(t){return{ast:t?.ast.toJSON(),output:t.output.variables,available:t.available.variables}}onInit(){this.variableEngine.onScopeChange(t=>{let{scope:e,type:r}=t;"delete"===r?delete this.scopes[String(e.id)]:this.scopes={...this.scopes,[e.id]:this.getScopeState(e)},this.send(`${r}/${String(e.id)}`)})}};c([(0,i.f)(s.i2)],f.prototype,"variableEngine",2),f=c([(0,o.b)()],f);var p=(0,n.M1)({onBind({bind:t},e){let{enable:r}=e;if(!!r)t(d).toSelf().inSingletonScope(),t(f).toSelf().inSingletonScope()},onInit(t,e){let{enable:r,ecs:n=!0,variable:i=!1}=e;if(!!r)n&&t.get(d),i&&t.get(f)}})},755e3:function(t,e,r){"use strict";r.d(e,{EU:function(){return ts},Em:function(){return B},Eq:function(){return tt},HW:function(){return G},Kz:function(){return tu},NQ:function(){return N},OK:function(){return k},Rf:function(){return R},V7:function(){return O},XD:function(){return D},aK:function(){return tl},kB:function(){return to},kD:function(){return L},lV:function(){return ta},oC:function(){return P},qf:function(){return td},qq:function(){return th}});var n,i,o=r(2553),a=r(952522),s=r(168316),u=r(195852),l=r(771531),c=r(435946),h=r(921463),d=r(455069),f=r(523158),p=r(686346),g=r(840652),y=r(702570),m=Object.defineProperty,b=Object.getOwnPropertyDescriptor,w=(t,e,r,n)=>{for(var i=n>1?void 0:n?b(e,r):e,o,a=t.length-1;a>=0;a--)(o=t[a])&&(i=(n?o(e,r,i):o(i))||i);return n&&i&&m(e,r,i),i},A="#BBBFC4";function D(){let t=(0,a.G2)(o.h3);return{baseColor:t.constants?.[o.cc.BASE_COLOR]||A,baseActivatedColor:t.constants?.[o.cc.BASE_ACTIVATED_COLOR]||"#82A7FC"}}var E={stroke:A,fill:"transparent",strokeLinecap:"round",strokeLinejoin:"round"};function x(t){let{isVertical:e}=t.entity;if(e){let e=t.entity.next?.firstChild&&!t.entity.next.isInlineBlocks?t.entity.next.firstChild.getData(o.eG).size.width:t.entity.next?.getData(o.eG).size.width;return Math.max(t.entity.getData(o.eG)?.size.width??o.Lu[o.T4.HOVER_AREA_WIDTH],e||0)}return t.transform.next?t.transform.next.inputPoint.x-t.transform.outputPoint.x:32}function S(t){let{isVertical:e}=t.entity;if(e)return t.transform.next?t.transform.next.inputPoint.y-t.transform.outputPoint.y:32;let r=t.entity.next?.firstChild&&!t.entity.next.isInlineBlocks?t.entity.next.firstChild.getData(o.eG).size.height:t.entity.next?.getData(o.eG).size.height;return Math.max(t.entity.getData(o.eG)?.size.height||280,r||0)}var M=class extends a.cv{constructor(t){super(t),this.containerX=0,this.containerY=0,this.playgroundConfigEntity=this.entityManager.getEntity(a.ER,!0)}get hasScroll(){return!!(this._scrollXInterval||this._scrollYInterval)}isCollision(t,e,r){let n=this.playgroundConfigEntity.finalScale||0;return r?this.isBranchCollision(t,e,n):this.isNodeCollision(t,e,n)}isNodeCollision(t,e,r){let{labels:n}=t,{isVertical:i}=t.entity;return{hasCollision:n.some(n=>{if(!n||![o.nx.ADDER_LABEL,o.nx.COLLAPSE_ADDER_LABEL].includes(n.type))return!1;let a=i?t.transform.bounds.width:32,u=i?32:t.transform.bounds.height,l=new s.Ae((n.offset.x-a/2)*r,(n.offset.y-u/2)*r,a*r,u*r);return s.Ae.intersects(l,e)}),labelOffsetType:void 0}}isBranchCollision(t,e,r){let{labels:n}=t,{isVertical:i}=t.entity,a=o.VH.NORMAL_BRANCH;return{hasCollision:n.some(t=>{if(!t||t.type!==o.nx.BRANCH_DRAGGING_LABEL)return!1;let n=i?64:t.width||0,u=i?t.width||0:64,l=new s.Ae((t.offset.x-u/2)*r,(t.offset.y-n/2)*r,u*r,n*r),c=s.Ae.intersects(l,e);return c&&(a=t.props.side),c}),labelOffsetType:a}}_startScrollX(t,e){if(this._scrollXInterval)return;let r=window.setInterval(()=>{let t=this._scrollXInterval;if(!t)return;let r=t.origin=e?t.origin+4:t.origin-4;this.playgroundConfigEntity.updateConfig({scrollX:r});let n=this.playgroundConfigEntity.config;n?.scrollX===r&&(e?this.containerX+=4:this.containerX-=4,this.setDomStyle())},20);this._scrollXInterval={interval:r,origin:t}}_stopScrollX(){this._scrollXInterval&&(clearInterval(this._scrollXInterval.interval),this._scrollXInterval=void 0)}_startScrollY(t,e){if(this._scrollYInterval)return;let r=window.setInterval(()=>{let t=this._scrollYInterval;if(!t)return;let r=t.origin=e?t.origin+4:t.origin-4;this.playgroundConfigEntity.updateConfig({scrollY:r});let n=this.playgroundConfigEntity.config;n?.scrollY===r&&(e?this.containerY+=4:this.containerY-=4,this.setDomStyle())},20);this._scrollYInterval={interval:r,origin:t}}_stopScrollY(){this._scrollYInterval&&(clearInterval(this._scrollYInterval.interval),this._scrollYInterval=void 0)}stopAllScroll(){this._stopScrollX(),this._stopScrollY()}setDomStyle(){this.containerDom.style.left=`${this.containerX}px`,this.containerDom.style.top=`${this.containerY}px`}scrollDirection(t,e,r,n){let i=this.playgroundConfigEntity.config,o=i.scrollX,a=i.scrollY;return(this.containerDom=e,this.containerX=r,this.containerY=n,i.height+i.clientY-t.clientY<20)?(this._startScrollY(a,!0),1):t.clientY-i.clientY<20?(this._startScrollY(a,!1),0):(this._stopScrollY(),i.width+i.clientX-t.clientX<20)?(this._startScrollX(o,!0),3):t.clientX-i.clientX<80?(this._startScrollX(o,!1),2):void this._stopScrollX()}dispose(){this.toDispose.dispose()}};M.type="FlowDragEntity";var _=class extends a.cv{constructor(){super(...arguments),this.boundsPadding=10}getDefaultConfig(){return{selectedNodes:[]}}get selectedNodes(){return this.config.selectedNodes}set selectedNodes(t){((t=function(t){if(0===t.length)return[];let e=t.map(t=>(function(t){let e=[t];for(t=t.parent;t;)e.push(t),t=t.parent;return e.reverse()})(t)),r=Math.min(...e.map(t=>t.length)),n=0,i=[];for(;n<r&&!((i=(0,u.uniq)(e.map(t=>t[n]))).length>1);){;n+=1}return(0,u.uniq)(i.map(t=>(function(t){for(;t.originParent;)t=t.originParent;return t})(t)))}(t)).length!==this.config.selectedNodes.length||t.some(t=>!this.config.selectedNodes.includes(t)))&&(this.config.selectedNodes.forEach(e=>{!t.includes(e)&&(e.getData(o.Lz).activated=!1)}),t.forEach(t=>{t.getData(o.Lz).activated=!0}),s.XJ.isArrayShallowChanged(this.config.selectedNodes,t)&&this.updateConfig({selectedNodes:t}))}clearSelectedNodes(){0!==this.config.selectedNodes.length&&(this.config.selectedNodes.forEach(t=>{t.getData(o.Lz).activated=!1}),this.updateConfig({selectedNodes:[]}))}selectFromBounds(t,e){let r=[];e.forEach(e=>{s.Ae.intersects(t,e.bounds)&&(e.entity.originParent?r.push(e.entity.originParent):r.push(e.entity))}),this.selectedNodes=r}getSelectedBounds(){let t=this.selectedNodes;return 0===t.length?s.Ae.EMPTY:s.Ae.enlarge(t.map(t=>t.getData(o.eG).bounds)).pad(this.boundsPadding)}};_.type="FlowSelectConfigEntity";var N=class extends a.cv{get dragInfo(){return this.config}setDragInfo(t){this.updateConfig(t)}get disabled(){return this.config&&!!this.config.disabled}set disabled(t){this.updateConfig({disabled:t})}get isStart(){return this.dragInfo.isStart}get isMoving(){return this.dragInfo.isMoving}get position(){let{dragInfo:t}=this;return{x:t.startPos.x<t.endPos.x?t.startPos.x:t.endPos.x,y:t.startPos.y<t.endPos.y?t.startPos.y:t.endPos.y}}get size(){let{dragInfo:t}=this;return{width:Math.abs(t.startPos.x-t.endPos.x),height:Math.abs(t.startPos.y-t.endPos.y)}}get collapsed(){let{size:t}=this;return 0===t.width&&0===t.height}collapse(){this.setDragInfo({...this.dragInfo,isMoving:!1,isStart:!1})}toRectangle(t){let{position:e,size:r}=this;return new s.Ae(e.x/t,e.y/t,r.width/t,r.height/t)}};N.type="SelectorBoxConfigEntity";var T=t=>{if(!t||(0,u.isNil)(t?.offsetParent))return!0;let e=window.getComputedStyle(t);return e?.display==="none"||!1},C=t=>!!t&&(0!==t.bottom||0!==t.height||0!==t.left||0!==t.right||0!==t.top||0!==t.width||0!==t.x||0!==t.y)||!1,I=class{observe(t,e){let r=new ResizeObserver(t=>{window.requestAnimationFrame(()=>{if(!Array.isArray(t)||!t.length)return;let{contentRect:r,target:n}=t[0],i=C(r),o=!n.parentNode,a=T(n.parentNode);i&&!o&&!a&&(e.size={width:Math.round(10*r.width)/10,height:Math.round(10*r.height)/10})})});return r.observe(t),s.JT.create(()=>{r.unobserve(t)})}};I=w([(0,c.b)()],I);var O=class extends a.mh{constructor(){super(...arguments),this.node=s.xF.createDivWithClass("gedit-flow-nodes-layer"),this.renderCache=s.Ct.create(t=>{let e;let{renderState:r}=t,{node:n}=r,{entity:i}=t;return n.id=i.id,(()=>{!e&&(this.renderElement.appendChild(n),e=this.resizeObserver.observe(n,t))})(),{dispose:()=>{e&&(n.parentElement&&this.renderElement.removeChild(n),e.dispose(),e=void 0)},updateBounds:()=>{let{bounds:e}=t,r=parseFloat(n.style.left),i=parseFloat(n.style.top);(!this.isCoordEqual(r,e.x)||!this.isCoordEqual(i,e.y))&&(n.style.left=`${e.x}px`,n.style.top=`${e.y}px`)}}})}get transformVisibles(){return this.document.getRenderDatas(o.eG,!1)}onZoom(t){this.node.style.transform=`scale(${t})`}dispose(){this.renderCache.dispose(),super.dispose()}isCoordEqual(t,e){return .05>Math.abs(t-e)}onReady(){this.node.style.zIndex="10"}get visibeBounds(){return this.transformVisibles.map(t=>t.bounds)}updateNodesBounds(){this.renderCache.getMoreByItems(this.transformVisibles).forEach(t=>t.updateBounds())}autorun(){!this.documentTransformer.loading&&(this.documentTransformer.refresh(),this.updateNodesBounds())}get renderElement(){if("function"==typeof this.options.renderElement){let t=this.options.renderElement();if(t)return t}else if(void 0!==this.options.renderElement)return this.options.renderElement;return this.node}};w([(0,l.f)(o.pQ)],O.prototype,"document",2),w([(0,l.f)(I)],O.prototype,"resizeObserver",2),w([(0,a.O0)(o.Vl)],O.prototype,"documentTransformer",2),w([(0,a.aI)(o.GA,o.eG)],O.prototype,"_transforms",2),O=w([(0,c.b)()],O);var k=Symbol("FlowRendererContribution");var L=((n=L||{}).NODE_RENDER="node-render",n.ADDER="adder",n.COLLAPSE="collapse",n.BRANCH_ADDER="branch-adder",n.TRY_CATCH_COLLAPSE="try-catch-collapse",n.DRAG_NODE="drag-node",n.DRAGGABLE_ADDER="draggable-adder",n.DRAG_HIGHLIGHT_ADDER="drag-highlight-adder",n.DRAG_BRANCH_HIGHLIGHT_ADDER="drag-branch-highlight-adder",n.SELECTOR_BOX_POPOVER="selector-box-popover",n.CONTEXT_MENU_POPOVER="context-menu-popover",n.SUB_CANVAS="sub-canvas",n.MARKER_ARROW="marker-arrow",n.MARKER_ACTIVATE_ARROW="marker-active-arrow",n);var P=((i=P||{}).LOOP_END_TEXT="loop-end-text",i.LOOP_TRAVERSE_TEXT="loop-traverse-text",i.LOOP_WHILE_TEXT="loop-while-text",i.TRY_START_TEXT="try-start-text",i.TRY_END_TEXT="try-end-text",i.CATCH_TEXT="catch-text",i),R=class{constructor(){this.componentsMap=new Map,this.textMap=new Map,this.contribs=[]}init(){this.contribs.forEach(t=>t.registerRenderer?.(this))}registerRendererComponents(t,e){this.componentsMap.set(t,e)}registerReactComponent(t,e){this.componentsMap.set(t,{type:0,renderer:e})}registerText(t){Object.entries(t).forEach(([t,e])=>{this.textMap.set(t,e)})}getText(t){return g.o.t(t,{disableReturnKey:!0})||this.textMap.get(t)}getRendererComponent(t){let e=this.componentsMap.get(t);if(!e)throw Error(`Unknown render key ${t}`);return e}tryToGetRendererComponent(t){return this.componentsMap.get(t)}registerLayers(...t){t.forEach(t=>this.pipeline.registerLayer(t))}registerLayer(t,e){this.pipeline.registerLayer(t,e)}};w([(0,f.n)(k),(0,p.j)()],R.prototype,"contribs",2),w([(0,l.f)(a.Rm)],R.prototype,"pipeline",2),R=w([(0,c.b)()],R);var B=class extends a.mh{constructor(){super(...arguments),this.renderMemoCache=new WeakMap,this.node=s.xF.createDivWithClass("gedit-flow-nodes-layer"),this.reactPortals=s.Ct.create(t=>{let{node:e,entity:r}=t,{config:n}=this,i=this.getPortalRenderer(t);return{id:e.id||r.id,dispose:()=>{},Portal:function(){return d.useEffect(()=>{if(e.clientWidth&&e.clientHeight){let t=r.getData(o.eG);t&&(t.size={width:e.clientWidth,height:e.clientHeight})}},[]),h.createPortal(d.createElement(a.rQ.Provider,{value:r},d.createElement(i,{node:r,version:t?.version,activated:t?.activated,readonly:n.readonly,disabled:n.disabled})),e)}}})}get renderStatesVisible(){return this.document.getRenderDatas(o.Lz,!1)}getPortalRenderer(t){let e=t.entity.getNodeMeta(),r=this.rendererRegistry.getRendererComponent(e.renderKey||"node-render").renderer,n=this.renderMemoCache.get(r);return!n&&(n=d.memo(r),this.renderMemoCache.set(r,n)),n}onZoom(t){this.node.style.transform=`scale(${t})`}dispose(){this.reactPortals.dispose(),super.dispose()}onReady(){this.node.style.zIndex="10"}onReadonlyOrDisabledChange(){this.render()}getPortals(){return this.reactPortals.getMoreByItems(this.renderStatesVisible)}render(){return this.documentTransformer.loading?d.createElement(d.Fragment,null):(this.documentTransformer.refresh(),d.createElement(d.Fragment,null,this.getPortals().map(t=>d.createElement(t.Portal,{key:t.id}))))}};w([(0,l.f)(o.pQ)],B.prototype,"document",2),w([(0,l.f)(R)],B.prototype,"rendererRegistry",2),w([(0,a.O0)(o.Vl)],B.prototype,"documentTransformer",2),w([(0,a.aI)(o.GA,o.Lz)],B.prototype,"_renderStates",2),B=w([(0,c.b)()],B);var j=function(t){let{from:e,to:r,activated:n,style:i}=t,{baseColor:o,baseActivatedColor:a}=D();return d.createElement("path",{"data-line-id":t.lineId,d:`M ${e.x} ${e.y} L ${r.x} ${r.y}`,...E,stroke:n?a:o,style:i})},F="$marker_arrow$",U=function(t){let{baseColor:e}=D();return d.createElement("marker",{"data-line-id":t.id,id:t.id||F,markerWidth:"11",markerHeight:"14",refX:"10",refY:"7",orient:"auto"},d.createElement("path",{d:"M9.6 5.2C10.8 6.1 10.8 7.9 9.6 8.8L3.6 13.3C2.11672 14.4125 0 13.3541 0 11.5L0 2.5C0 0.645898 2.11672 -0.412461 3.6 0.7L9.6 5.2Z",fill:e}))},z="$marker_arrow_activated$",q=function(t){let{baseActivatedColor:e}=D();return d.createElement("marker",{"data-line-id":t.id,id:t.id||z,markerWidth:"11",markerHeight:"14",refX:"10",refY:"7",orient:"auto"},d.createElement("path",{d:"M9.6 5.2C10.8 6.1 10.8 7.9 9.6 8.8L3.6 13.3C2.11672 14.4125 0 13.3541 0 11.5L0 2.5C0 0.645898 2.11672 -0.412461 3.6 0.7L9.6 5.2Z",fill:e}))};function H(t){let e=(0,a.G2)(R),r=e?.tryToGetRendererComponent(t.activated?"marker-active-arrow":"marker-arrow");return r?d.createElement(r.renderer,{...t}):t.activated?d.createElement("defs",null,d.createElement(q,{id:t.id})):d.createElement("defs",null,d.createElement(U,{id:t.id}))}var V=function(t){let{vertices:e,radius:r=16,hide:n,xRadius:i,yRadius:a,...l}=t,{from:c,to:h,arrow:f,activated:p,style:g}=l||{},{baseActivatedColor:y,baseColor:m}=D(),b=e||(t.isHorizontal?function(t,e=16,r=20){let{from:n,to:i,type:a}=t||{},s=Math.abs(i.y-n.y),u=Math.abs(i.x-n.x),l=u/e,c=s/r,h=[];if(l<1)return[];switch(a){case o.IG.DIVERGE_LINE:case o.IG.DRAGGING_LINE:if(l<=1)return[{x:i.x,y:n.y,radiusX:u}];if(h=[{x:n.x+r,y:n.y},{x:n.x+r,y:i.y}],l<2){let t=u-r;h=[{x:n.x+t,y:n.y,radiusX:t},{x:n.x+t,y:i.y}]}return c<2&&(h[0].moveY=s/2,h[1].moveY=s/2),h;case o.IG.MERGE_LINE:if(l<2)return[{x:i.x,y:n.y}];return h=[{x:i.x-r,y:n.y},{x:i.x-r,y:i.y}],c<2&&(h[0].moveY=s/2,h[1].moveY=s/2),h}return[]}(l,i,a):function(t,e=16,r=20){let{from:n,to:i,type:a}=t||{},s=Math.abs(i.y-n.y),u=Math.abs(i.x-n.x),l=s/r,c=u/e,h=[];if(l<1)return[];switch(a){case o.IG.DIVERGE_LINE:case o.IG.DRAGGING_LINE:if(l<=1)return[{x:i.x,y:n.y,radiusY:s}];if(h=[{x:n.x,y:n.y+r},{x:i.x,y:n.y+r}],l<2){let t=s-r;h=[{x:n.x,y:n.y+t,radiusY:t},{x:i.x,y:n.y+t}]}return c<2&&(h[0].moveX=u/2,h[1].moveX=u/2),h;case o.IG.MERGE_LINE:if(l<2)return[{x:n.x,y:i.y}];return h=[{x:n.x,y:i.y-r},{x:i.x,y:i.y-r}],c<2&&(h[0].moveX=u/2,h[1].moveX=u/2),h}return[]}(l,i,a)),w=(0,d.useMemo)(()=>b.map((t,e)=>{let n=b[e-1]||c,i=b[e+1]||h,o={x:Math.abs(n.x-t.x),y:Math.abs(n.y-t.y)},a={x:Math.abs(i.x-t.x),y:Math.abs(i.y-t.y)},l=0===o.x&&0===a.y,d=0===o.y&&0===a.x;!(l||d)&&console.error(`vertex ${t.x},${t.y} is not right angle`);let f=new s.E9().copyFrom(t),p=new s.E9().copyFrom(t),g=(0,u.isNil)(t.radiusX)?r:t.radiusX,y=(0,u.isNil)(t.radiusY)?r:t.radiusY,m=g,w=y;if(l){w=Math.min(o.y,y);let e=(0,u.isNil)(t.moveY)?w:t.moveY;f.y+=c.y<t.y?-e:+e,m=Math.min(a.x,g);let r=(0,u.isNil)(t.moveX)?m:t.moveX;p.x+=h.x<t.x?-r:+r}if(d){m=Math.min(o.x,g);let e=(0,u.isNil)(t.moveX)?m:t.moveX;f.x+=c.x<t.x?-e:+e,w=Math.min(a.y,y);let r=(0,u.isNil)(t.moveY)?w:t.moveY;p.y+=h.y<t.y?-r:+r}let A=(t.x-f.x)*(p.y-f.y)-(t.y-f.y)*(p.x-f.x);return`L ${f.x} ${f.y} A ${m} ${w} 0 0 ${A>0?1:0} ${p.x} ${p.y}`}).join(" "),[b]);if(n)return null;let A=`M ${c.x} ${c.y} ${w} L ${h.x} ${h.y}`,x=p?`${z}${t.lineId}`:`${F}${t.lineId}`;return d.createElement(d.Fragment,null,f?d.createElement(H,{id:x,activated:p}):null,d.createElement("path",{"data-line-id":t.lineId,d:A,...E,stroke:p?y:m,...f?{markerEnd:`url(#${x})`}:{},style:g}))},Z=function(t){let{renderKey:e,rendererRegistry:r,...n}=t;if(!e)return d.createElement(d.Fragment,null);let i=r.getRendererComponent(e);if(!i)return d.createElement(d.Fragment,null);let o=i.renderer;return d.createElement(o,{lineId:t.lineId,...n})},G=class extends a.mh{constructor(){super(...arguments),this.node=s.xF.createDivWithClass("gedit-flow-lines-layer"),this.onViewportChange=(0,u.throttle)(()=>{this.render()},100)}get transitions(){return this.document.getRenderDatas(o.Xr)}onZoom(){let t=this.node.querySelector("svg.flow-lines-container");t?.setAttribute?.("viewBox",this.viewBox)}onReady(){this.node.style.zIndex="1"}get viewBox(){let t=1e3/this.config.finalScale;return`0 0 ${t} ${t}`}render(){let t=[],e=this.config.isViewportVisible.bind(this.config);if(this.documentTransformer.loading)return d.createElement(d.Fragment,null);this.documentTransformer.refresh(),this.transitions.forEach(r=>{!function(t){let{data:e,rendererRegistry:r,linesSave:n,dragService:i}=t,{lines:a,entity:u}=e||{},l=(0,o.yI)(u,o.T4.ROUNDED_LINE_X_RADIUS),c=(0,o.yI)(u,o.T4.ROUNDED_LINE_Y_RADIUS),h=(t,n)=>{let{renderData:a}=e,{isVertical:s}=e.entity,{lineActivated:u}=a||{},h=t.type===o.IG.DRAGGING_LINE&&!i.isDroppableBranch(e.entity,t.side),f=t.type===o.IG.DRAGGING_LINE&&e.entity?.id===i.dropNodeId&&t.side===i.labelSide;switch(t.type){case o.IG.STRAIGHT_LINE:return d.createElement(j,{key:`${e.entity.id}_${n}`,lineId:e.entity.id,activated:u,...t});case o.IG.DIVERGE_LINE:case o.IG.DRAGGING_LINE:case o.IG.MERGE_LINE:case o.IG.ROUNDED_LINE:return d.createElement(V,{key:`${e.entity.id}_${n}`,lineId:e.entity.id,isHorizontal:!s,activated:u||f,...t,xRadius:l,yRadius:c,hide:h});case o.IG.CUSTOM_LINE:return d.createElement(Z,{key:`${e.entity.id}_${n}`,lineId:e.entity.id,...t,rendererRegistry:r})}};a.forEach((e,r)=>{let i=s.Ae.createRectangleWithTwoPoints(e.from,e.to).pad(10);if(t.isViewportVisible(i)){let t=h(e,r);t&&n.push(t)}})}({data:r,rendererRegistry:this.rendererRegistry,isViewportVisible:e,linesSave:t,dragService:this.dragService})});let{activateLines:r=[],normalLines:n=[]}=(0,u.groupBy)(t,t=>t.props.activated?"activateLines":"normalLines"),i=[...n,...r];return d.createElement("svg",{className:"flow-lines-container",width:"1000",height:"1000",overflow:"visible",viewBox:this.viewBox,xmlns:"http://www.w3.org/2000/svg"},i)}};function W(t){let{data:e,rendererRegistry:r,forceVisible:n,hoverHeight:i=S(e),hoverWidth:a=x(e),wrapperStyle:s,...u}=t,{activateNode:l}=u,[c,h]=(0,d.useState)(!1),f=l?.getData(o.Lz),p=(0,d.useCallback)(()=>{h(!0),f?.toggleMouseEnter()},[]),g=(0,d.useCallback)(()=>{h(!1),f?.toggleMouseLeave()},[]),y=r.getRendererComponent("collapse"),m=e.entity,b=d.createElement(y.renderer,{node:m,collapseNode:m,...u,hoverActivated:c}),w=e.collapsed||f?.hovered||c||n;return d.createElement("div",{className:"flow-canvas-collapse",onMouseEnter:p,onMouseLeave:g,style:{width:a,height:i,display:"flex",justifyContent:"center",alignItems:"center",...s}},w?b:null)}w([(0,l.f)(o.pQ)],G.prototype,"document",2),w([(0,l.f)(o.eE)],G.prototype,"dragService",2),w([(0,l.f)(R)],G.prototype,"rendererRegistry",2),w([(0,a.O0)(o.Vl)],G.prototype,"documentTransformer",2),w([(0,a.O0)(o.y3)],G.prototype,"flowRenderState",2),w([(0,a.aI)(o.GA,o.Xr)],G.prototype,"_transitions",2),G=w([(0,c.b)()],G);var Y=(t,{dragService:e})=>{if(e&&e.dragging&&e.isDroppableNode(t))return e.dropNodeId===t.id?"drag-highlight-adder":"draggable-adder";return"adder"};function $(t){let{data:e,rendererRegistry:r,hoverHeight:n=S(e),hoverWidth:i=x(e),...s}=t,[u,l]=(0,d.useState)(!1),c=(0,d.useCallback)(()=>l(!0),[]),h=(0,d.useCallback)(()=>l(!1),[]),f=e.entity,p=Y(f,{dragService:(0,a.G2)(o.eE)}),g=r.getRendererComponent(p),y=e.entity.document.renderTree.getOriginInfo(f).next,m=f.next,b=d.createElement(g.renderer,{node:f,from:f,to:y,renderTo:m,hoverActivated:u,setHoverActivated:l,hoverWidth:i,hoverHeight:n,...s});return d.createElement("div",{className:"flow-canvas-adder","data-testid":"sdk.flowcanvas.line.adder","data-from":f.id,"data-to":y?.id??"",onMouseEnter:c,onMouseLeave:h,style:{width:i,height:n,display:"flex",justifyContent:"center",alignItems:"center"}},b)}function Q(t){let{data:e,rendererRegistry:r,...n}=t,{activateNode:i}=n,[a,s]=(0,d.useState)(!1),u=i?.getData(o.Lz),l=(0,d.useCallback)(()=>{s(!0)},[]),c=(0,d.useCallback)(()=>{s(!1)},[]),h=i?.isVertical,f=u?.hovered||a;return h?d.createElement("div",{className:"flow-canvas-collapse-adder",onMouseEnter:l,onMouseLeave:c},(f||e.collapsed)&&d.createElement(W,{forceVisible:!0,...t,wrapperStyle:{alignItems:"flex-end"},hoverHeight:20}),!e.collapsed&&d.createElement($,{...t,hoverHeight:f?20:40,hoverActivated:f})):d.createElement("div",{className:"flow-canvas-collapse-adder",onMouseEnter:l,onMouseLeave:c,style:{display:e.collapsed?"block":"flex"}},(f||e.collapsed)&&d.createElement(W,{forceVisible:!0,...t,wrapperStyle:{justifyContent:"flex-end"},hoverWidth:20}),!e.collapsed&&d.createElement($,{...t,hoverWidth:f?20:40,hoverActivated:f}))}var J=(t,{dragService:e,side:r})=>{if(e.isDragBranch&&r&&e.labelSide===r&&e.isDroppableBranch(t,r))return e.dropNodeId===t.id?"drag-branch-highlight-adder":"draggable-adder";return""};function X(t){let{data:e,rendererRegistry:r,side:n,...i}=t,s=e.entity,u=J(s,{side:n,dragService:(0,a.G2)(o.eE)});if(!u)return null;let l=r.getRendererComponent(u),c=e.entity.document.renderTree.getOriginInfo(s).next,h=s.next,f=d.createElement(l.renderer,{node:s,from:s,to:c,renderTo:h,...i});return d.createElement("div",{className:"flow-canvas-branch-draggable-adder"},f)}var K={fontSize:12,color:"#8F959E",textAlign:"center",whiteSpace:"nowrap",backgroundColor:"var(--g-editor-background)",lineHeight:"20px"},tt=class extends a.mh{constructor(){super(...arguments),this.node=s.xF.createDivWithClass("gedit-flow-labels-layer"),this.onViewportChange=(0,u.throttle)(()=>{this.render()},100)}get transitions(){return this.document.getRenderDatas(o.Xr)}onZoom(t){this.node.style.transform=`scale(${t})`}onReady(){this.node.style.zIndex="9"}onReadonlyOrDisabledChange(){this.render()}render(){let t=[];if(this.documentTransformer?.loading)return d.createElement(d.Fragment,null);this.documentTransformer?.refresh?.();let{baseActivatedColor:e,baseColor:r}=D(),n=this.config.isViewportVisible.bind(this.config);return this.transitions.forEach(i=>{!function(t){let{data:e,rendererRegistry:r,labelsSave:n,getLabelColor:i}=t,{labels:a,renderData:u}=e||{},{activated:l}=u||{},c=(n,a)=>{let{offset:s,renderKey:u,props:c,rotate:h,type:f}=n||{},p=s.x,g=s.y,y=null;switch(f){case o.nx.BRANCH_DRAGGING_LABEL:y=d.createElement(X,{labelId:n.labelId||t.data.entity.id,rendererRegistry:r,data:e,...c});break;case o.nx.ADDER_LABEL:y=d.createElement($,{labelId:n.labelId||t.data.entity.id,rendererRegistry:r,data:e,...c});break;case o.nx.COLLAPSE_LABEL:y=d.createElement(W,{labelId:n.labelId||t.data.entity.id,rendererRegistry:r,data:e,...c});break;case o.nx.COLLAPSE_ADDER_LABEL:y=d.createElement(Q,{labelId:n.labelId||t.data.entity.id,rendererRegistry:r,data:e,...c});break;case o.nx.TEXT_LABEL:if(!u)return null;let m=r.getText(u)||u;y=d.createElement("div",{"data-label-id":n.labelId||t.data.entity.id,style:{...K,...c?.style,color:i(l),transform:h?`rotate(${h})`:void 0}},m);break;case o.nx.CUSTOM_LABEL:if(!u)return null;try{let i=r.getRendererComponent(u);y=d.createElement(i.renderer,{node:e.entity,labelId:n.labelId||t.data.entity.id,...c})}catch(t){console.error(t),y=u}}return d.createElement("div",{key:`${e.entity.id}${a}`,"data-label-id":n.labelId||t.data.entity.id,style:{position:"absolute",left:p,top:g,transform:"translate(-50%, -50%)"}},y)};a.forEach((e,r)=>{var i;if(t.isViewportVisible((i=e.offset,new s.Ae(i.x-75,i.y-30,150,60))))n.push(c(e,r))})}({data:i,rendererRegistry:this.rendererRegistry,isViewportVisible:n,labelsSave:t,getLabelColor:t=>t?e:r})}),d.createElement(d.Fragment,null,t)}};w([(0,l.f)(o.pQ)],tt.prototype,"document",2),w([(0,l.f)(R)],tt.prototype,"rendererRegistry",2),w([(0,a.O0)(o.Vl)],tt.prototype,"documentTransformer",2),w([(0,a.O0)(o.y3)],tt.prototype,"flowRenderState",2),w([(0,a.aI)(o.GA,o.Xr)],tt.prototype,"_transitions",2),tt=w([(0,c.b)()],tt);function te(t,e){let r=e.finalScale;return new s.Ae(t.scrollX/r,t.scrollY/r,e.config.width/r,e.config.height/r).pad(-120/r,-120/r)}var tr=Symbol("ScrollBarEvents"),tn=0;function ti(t){let e=Math.min(t/10*255,255),r=(tn+=1)%3,n=()=>Math.floor(Math.random()*e);return`rgb(${0===r?n():0}, ${1===r?n():0}, ${2===r?n():0})`}var to=class extends a.mh{constructor(){super(...arguments),this.node=document.createElement("div"),this.viewport=s.xF.createDivWithClass("gedit-flow-debug-bounds"),this.boundsNodes=s.xF.createDivWithClass("gedit-flow-debug-bounds"),this.pointsNodes=s.xF.createDivWithClass("gedit-flow-debug-points"),this.versionNodes=s.xF.createDivWithClass("gedit-flow-debug-versions gedit-hidden"),this.filterKey=window.location.search.match(/debug=([^&]+)/)?.[1]||"",this.originLine=document.createElement("div"),this.domCache=new WeakMap}get transforms(){return this.document.getRenderDatas(o.eG)}onReady(){this.node.style.zIndex="20",s.xF.setStyle(this.originLine,{position:"absolute",width:1,height:"100%",left:this.pipelineNode.style.left,top:0,borderLeft:"1px dashed rgba(255, 0, 0, 0.5)"}),this.pipelineNode.parentElement.appendChild(this.originLine),this.node.appendChild(this.viewport),this.node.appendChild(this.versionNodes),this.node.appendChild(this.boundsNodes),this.node.appendChild(this.pointsNodes),this.renderScrollViewportBounds()}onScroll(){this.originLine.style.left=this.pipelineNode.style.left,this.renderScrollViewportBounds()}onResize(){this.renderScrollViewportBounds()}onZoom(t){this.node.style.transform=`scale(${t})`,this.renderScrollViewportBounds()}createBounds(t,e,r){if(this.filterKey&&-1===t.key.indexOf(this.filterKey))return;let n=this.domCache.get(t),{bounds:i,inputPoint:o,outputPoint:a}=t;if(!n){let r=s.xF.createDivWithClass(""),i=s.xF.createDivWithClass(""),o=s.xF.createDivWithClass(""),a=s.xF.createDivWithClass("");r.title=t.key,i.title=t.key+"(input)",o.title=t.key+"(output)",a.title=t.key,this.boundsNodes.appendChild(r),this.pointsNodes.appendChild(i),this.pointsNodes.appendChild(o),this.versionNodes.appendChild(a),t.onDispose(()=>{r.remove(),i.remove(),o.remove()}),n={bbox:r,input:i,output:o,version:a,color:e},this.domCache.set(t,n)}s.xF.setStyle(n.version,{position:"absolute",marginLeft:"-9px",marginTop:"-10px",borderRadius:12,background:"#f54a45",padding:4,color:"navajowhite",display:t.renderState.hidden?"none":"block",zIndex:r+1e3,left:i.center.x,top:i.center.y}),n.version.innerHTML=t.version.toString(),s.xF.setStyle(n.input,{position:"absolute",width:10,height:10,marginLeft:-5,marginTop:-5,borderRadius:5,left:o.x,top:o.y,opacity:.4,zIndex:r,backgroundColor:n.color,whiteSpace:"nowrap",overflow:"visible"}),n.input.innerHTML=`${o.x},${o.y}`,s.xF.setStyle(n.output,{position:"absolute",width:10,height:10,marginLeft:-5,marginTop:-5,borderRadius:5,left:a.x,top:a.y,opacity:.4,zIndex:r,backgroundColor:n.color,whiteSpace:"nowrap",overflow:"visible"}),n.output.innerHTML=`${a.x},${a.y}`,s.xF.setStyle(n.bbox,{position:"absolute",width:i.width,height:i.height,left:i.left,top:i.top,opacity:`${r/30}`,backgroundColor:n.color})}renderScrollViewportBounds(){let t=te({scrollX:this.config.config.scrollX,scrollY:this.config.config.scrollY},this.config);s.xF.setStyle(this.viewport,{position:"absolute",width:t.width-2,height:t.height-2,left:t.left+1,top:t.top+1,border:"1px solid rgba(200, 200, 255, 0.5)"})}autorun(){if(this.documentTransformer.loading)return;this.documentTransformer.refresh();let t=ti(0);this.document.traverse((e,r)=>{let n=e.getData(o.eG);t=ti(r),this.createBounds(n,t,r)}),this.renderScrollViewportBounds()}};w([(0,l.f)(o.pQ)],to.prototype,"document",2),w([(0,a.O0)(o.Vl)],to.prototype,"documentTransformer",2),w([(0,a.aI)(o.GA,o.eG)],to.prototype,"_transforms",2),to=w([(0,c.b)()],to);var ta=class extends a.mh{constructor(){super(...arguments),this.rightScrollBar=s.xF.createDivWithClass("gedit-playground-scroll-right"),this.rightScrollBarBlock=s.xF.createDivWithClass("gedit-playground-scroll-right-block"),this.bottomScrollBar=s.xF.createDivWithClass("gedit-playground-scroll-bottom"),this.bottomScrollBarBlock=s.xF.createDivWithClass("gedit-playground-scroll-bottom-block"),this.sum=0,this.initialScrollX=0,this.initialScrollY=0,this.bottomGrabDragger=new a.s5({onDragStart:t=>{this.config.updateCursor("grabbing"),this.sum=0,this.initialScrollX=this.config.getViewport().x,this.onBoardingToast()},onDrag:t=>{this.sum+=t.movingDelta.x,this.playgroundConfigEntity.scroll({scrollX:(this.initialScrollX+this.sum*this.viewportFullWidth/(this.clientViewportWidth-this.scrollBottomWidth))*this.scale},!1)},onDragEnd:t=>{this.config.updateCursor("default")}}),this.rightGrabDragger=new a.s5({onDragStart:t=>{this.config.updateCursor("grabbing"),this.sum=0,this.initialScrollY=this.config.getViewport().y,this.onBoardingToast()},onDrag:t=>{this.sum+=t.movingDelta.y,this.playgroundConfigEntity.scroll({scrollY:(this.initialScrollY+this.sum*this.viewportFullHeight/(this.clientViewportHeight-this.scrollRightHeight))*this.scale},!1)},onDragEnd:t=>{this.config.updateCursor("default")}})}get clientViewportWidth(){return this.viewportWidth*this.scale-11}get clientViewportHeight(){return this.viewportHeight*this.scale-11}get viewportFullWidth(){return this.mostLeft-this.mostRight}get viewportFullHeight(){return this.mostTop-this.mostBottom}get viewportMoveWidth(){return this.mostLeft-this.mostRight+this.width}get viewportMoveHeight(){return this.mostTop-this.mostBottom+this.height}getToLeft(t){return(t-this.mostRight)/this.viewportMoveWidth*this.clientViewportWidth}getToTop(t){return(t-this.mostBottom)/this.viewportMoveHeight*this.clientViewportHeight}clickRightScrollBar(t){t.preventDefault(),t.stopPropagation();let e=1-(t?.y||0)/this.clientViewportHeight,r=(this.mostTop-this.viewportFullHeight*e)*this.scale;this.playgroundConfigEntity.scroll({scrollY:r},!1)}clickBottomScrollBar(t){t.preventDefault(),t.stopPropagation();let e=1-(t?.x||0)/this.clientViewportWidth,r=(this.mostLeft-this.viewportFullWidth*e)*this.scale;this.playgroundConfigEntity.scroll({scrollX:r},!1)}onBoardingToast(){this.events?.dragStart()}changeScrollBarVisibility(t,e){s.xF.addClass(t,"show"===e?"gedit-playground-scroll-show":"gedit-playground-scroll-hidden"),s.xF.delClass(t,"show"===e?"gedit-playground-scroll-hidden":"gedit-playground-scroll-show")}onReady(){!this.options.getBounds&&(this.options={getBounds:()=>{let t=this.flowDocument;return t?(t.transformer.refresh(),t.root.getData(o.eG).bounds):s.Ae.EMPTY},showScrollBars:"whenScrolling"}),this.pipelineNode.parentNode.appendChild(this.rightScrollBar),this.pipelineNode.parentNode.appendChild(this.rightScrollBarBlock),this.pipelineNode.parentNode.appendChild(this.bottomScrollBar),this.pipelineNode.parentNode.appendChild(this.bottomScrollBarBlock),this.rightScrollBar.onclick=this.clickRightScrollBar.bind(this),this.bottomScrollBar.onclick=this.clickBottomScrollBar.bind(this),"whenScrolling"===this.options.showScrollBars&&(this.rightScrollBar.addEventListener("mouseenter",t=>{this.changeScrollBarVisibility(this.rightScrollBarBlock,"show")}),this.rightScrollBar.addEventListener("mouseleave",t=>{this.changeScrollBarVisibility(this.rightScrollBarBlock,"hidden")}),this.bottomScrollBar.addEventListener("mouseenter",t=>{this.changeScrollBarVisibility(this.bottomScrollBarBlock,"show")}),this.bottomScrollBar.addEventListener("mouseleave",t=>{this.changeScrollBarVisibility(this.bottomScrollBarBlock,"hidden")})),this.bottomScrollBarBlock.addEventListener("mousedown",t=>{this.bottomGrabDragger.start(t.clientX,t.clientY),t.stopPropagation()}),this.rightScrollBarBlock.addEventListener("mousedown",t=>{this.rightGrabDragger.start(t.clientX,t.clientY),t.stopPropagation()})}autorun(){this.hideTimeout&&clearTimeout(this.hideTimeout);let t=te({scrollX:this.config.config.scrollX,scrollY:this.config.config.scrollY},this.config),e=this.config.getViewport();this.viewportWidth=e.width,this.viewportHeight=e.height;let r=this.options.getBounds();this.width=r?.width||0,this.height=r?.height||0;let n=(this.viewportWidth-t.width)/2-2,i=(this.viewportHeight-t.height)/2-2,o=this.width+t.width,a=this.height+t.height,u=r.x,l=r.y;this.mostLeft=this.width+u-n,this.mostRight=this.mostLeft-o,this.mostTop=this.height+l-i,this.mostBottom=this.mostTop-a,this.scale=this.config.finalScale;let c=this.clientViewportWidth,h=this.clientViewportHeight;this.scrollBottomWidth=c-c*(this.mostLeft-this.mostRight)/this.viewportMoveWidth,this.scrollRightHeight=h-h*(this.mostTop-this.mostBottom)/this.viewportMoveHeight;let d=this.getToLeft(e.x),f=this.getToTop(e.y);s.xF.setStyle(this.rightScrollBarBlock,{right:2,top:f,background:"#1F2329",zIndex:10,height:this.scrollRightHeight,width:"7px"}),s.xF.setStyle(this.bottomScrollBarBlock,{left:d,bottom:2,background:"#1F2329",zIndex:10,height:"7px",width:this.scrollBottomWidth}),this.changeScrollBarVisibility(this.rightScrollBarBlock,"show"),this.changeScrollBarVisibility(this.bottomScrollBarBlock,"show"),"whenScrolling"===this.options.showScrollBars&&(this.hideTimeout=window.setTimeout(()=>{this.changeScrollBarVisibility(this.rightScrollBarBlock,"hidden"),this.changeScrollBarVisibility(this.bottomScrollBarBlock,"hidden"),this.hideTimeout=void 0},1e3))}};w([(0,p.j)(),(0,l.f)(tr)],ta.prototype,"events",2),w([(0,l.f)(o.pQ),(0,p.j)()],ta.prototype,"flowDocument",2),w([(0,a.O0)(a.ER)],ta.prototype,"playgroundConfigEntity",2),ta=w([(0,c.b)()],ta);var ts=class extends a.mh{constructor(){super(...arguments),this.dragOffset={x:8,y:8},this.containerRef=d.createRef(),this.draggingNodeMask=document.createElement("div"),this._dragger=new a.s5({onDrag:t=>{this.handleMouseMove(t)},onDragEnd:()=>{this.handleMouseUp()},stopGlobalEventNames:["contextmenu"]})}get transitions(){let t=[];return this.document.traverse(e=>{t.push(e.getData(o.Xr))}),t}get dragStartEntity(){return this.flowRenderStateEntity.getDragStartEntity()}set dragStartEntity(t){this.flowRenderStateEntity.setDragStartEntity(t)}get dragEntities(){return this.flowRenderStateEntity.getDragEntities()}set dragEntities(t){this.flowRenderStateEntity.setDragEntities(t)}isGrab(){return this.editorStateConfig.getCurrentState()===a.yy.STATE_GRAB}setDraggingStatus(t){this.service.nodeDragIdsWithChildren.length&&this.service.nodeDragIdsWithChildren.forEach(e=>{let r=this.entityManager.getEntityById(e);(r?.getData(o.Lz)).dragging=t})}dragEnable(t){return Math.abs(t.clientX-this.initialPosition.x)>10||Math.abs(t.clientY-this.initialPosition.y)>10}handleMouseMove(t){if(this.dragStartEntity&&this.dragEnable(t)){this.setDraggingStatus(!0);let e=this.playgroundConfigEntity.finalScale;if(this.containerRef.current){let r;let n=this.containerRef.current.children?.[0],i=t.clientX-(this.pipelineNode.offsetLeft||0)-this.playgroundConfigEntity.config.clientX-(n.clientWidth-this.dragOffset.x)*e,o=t.clientY-(this.pipelineNode.offsetTop||0)-this.playgroundConfigEntity.config.clientY-(n.clientHeight-this.dragOffset.y)*e,a=this.service.isDragBranch,u=new s.Ae(i,o,n.clientWidth*e,n.clientHeight*e),l=this.transitions.find(t=>{if(t?.entity?.parent?.collapsed)return!1;let{hasCollision:e,labelOffsetType:n}=this.flowDragConfigEntity.isCollision(t,u,a);return r=n,e});l&&(a?this.service.isDroppableBranch(l.entity,r):this.service.isDroppableNode(l.entity))&&(!this.options.canDrop||this.options.canDrop({dragNodes:this.dragEntities,dropNode:l.entity,isBranch:a}))?this.flowRenderStateEntity.setNodeDroppingId(l.entity.id):this.flowRenderStateEntity.setNodeDroppingId(""),this.flowRenderStateEntity.setDragLabelSide(r),this.containerRef.current.style.visibility="visible",this.pipelineNode.parentElement.appendChild(this.draggingNodeMask),this.containerRef.current.style.left=`${i}px`,this.containerRef.current.style.top=`${o}px`,this.containerRef.current.style.transformOrigin="top left",this.containerRef.current.style.transform=`scale(${e})`,this.flowDragConfigEntity.scrollDirection(t,this.containerRef.current,i,o)}}}handleMouseUp(){this.setDraggingStatus(!1),this.dragStartEntity&&(this.service.dropNodeId&&(this.service.isDragBranch?this.service.dropBranch():(this.service.dropNode(),this.selectConfigEntity.clearSelectedNodes())),this.flowRenderStateEntity.setNodeDroppingId(""),this.flowRenderStateEntity.setDragLabelSide(),this.dragStartEntity=void 0,this.dragEntities=[],this.flowDragConfigEntity.stopAllScroll()),this.containerRef.current&&(this.containerRef.current.style.visibility="hidden",this.pipelineNode.parentElement.contains(this.draggingNodeMask)&&this.pipelineNode.parentElement.removeChild(this.draggingNodeMask))}async startDrag(t,{dragStartEntity:e,dragEntities:r},n){if(this.isGrab()||this.config.disabled||this.config.readonly)return;this.dragOffset.x=n?.dragOffsetX||8,this.dragOffset.y=n?.dragOffsetY||8;let i=e.flowNodeType===o.Sy.BLOCK_ICON,a=e.flowNodeType===o.Sy.BLOCK_ORDER_ICON,s=i||a?e.parent:e;if(!!s.getData(o.Lz).draggable)return this.initialPosition={x:t.clientX,y:t.clientY},this.dragStartEntity=s,this.dragEntities=r||[this.dragStartEntity],this._dragger.start(t.clientX,t.clientY)}onReady(){this.draggingNodeMask.style.width="100%",this.draggingNodeMask.style.height="100%",this.draggingNodeMask.style.position="absolute",this.draggingNodeMask.classList.add("dragging-node"),this.draggingNodeMask.style.zIndex="99",this.draggingNodeMask.style.cursor="pointer",this.dragNodeComp=this.rendererRegistry.getRendererComponent("drag-node"),this.options.onDrop&&this.toDispose.push(this.service.onDrop(this.options.onDrop))}render(){let t=this.dragNodeComp.renderer;return d.createElement("div",{ref:this.containerRef,style:{position:"absolute",zIndex:99999,visibility:"hidden"},onMouseEnter:t=>t.stopPropagation()},d.createElement(t,{dragStart:this.dragStartEntity,dragNodes:this.dragEntities}))}};w([(0,l.f)(o.pQ)],ts.prototype,"document",2),w([(0,l.f)(o.eE)],ts.prototype,"service",2),w([(0,a.aI)(o.GA,o.eG)],ts.prototype,"transforms",2),w([(0,a.O0)(a.Zs)],ts.prototype,"editorStateConfig",2),w([(0,a.O0)(a.ER)],ts.prototype,"playgroundConfigEntity",2),w([(0,a.O0)(M)],ts.prototype,"flowDragConfigEntity",2),w([(0,a.O0)(o.y3)],ts.prototype,"flowRenderStateEntity",2),w([(0,a.O0)(_)],ts.prototype,"selectConfigEntity",2),w([(0,l.f)(R)],ts.prototype,"rendererRegistry",2),ts=w([(0,c.b)()],ts);var tu=class extends a.mh{constructor(){super(...arguments),this.node=s.xF.createDivWithClass("gedit-selector-box-layer"),this.selectorBox=this.createDOMCache("gedit-selector-box"),this.selectorBoxBlock=this.createDOMCache("gedit-selector-box-block"),this.selectboxDragger=new a.s5({onDragStart:t=>{this.selectConfigEntity.clearSelectedNodes();let e=this.playgroundConfigEntity.getPosFromMouseEvent(t);this.transformVisibles=this.flowDocument.getRenderDatas(o.eG,!1).filter(t=>{let{entity:r}=t;return r.originParent?this.nodeSelectable(r,e)&&this.nodeSelectable(r.originParent,e):this.nodeSelectable(r,e)}),this.selectorBoxConfigEntity.setDragInfo(t),this.updateSelectorBox(this.selectorBoxConfigEntity)},onDrag:t=>{this.selectorBoxConfigEntity.setDragInfo(t),this.selectConfigEntity.selectFromBounds(this.selectorBoxConfigEntity.toRectangle(this.playgroundConfigEntity.finalScale),this.transformVisibles),this.updateSelectorBox(this.selectorBoxConfigEntity)},onDragEnd:t=>{this.selectorBoxConfigEntity.setDragInfo(t),this.transformVisibles.length=0,this.updateSelectorBox(this.selectorBoxConfigEntity)}})}onReady(){!this.options.canSelect&&(this.options.canSelect=t=>{let e=t.target;return e===this.pipelineNode||e===this.playgroundNode}),this.toDispose.pushAll([this.selectConfigEntity.onConfigChanged(()=>{this.selectionService.selection=this.selectConfigEntity.selectedNodes}),this.selectionService.onSelectionChanged(()=>{let t=this.selectionService.selection.filter(t=>t instanceof o.GA);this.selectConfigEntity.selectedNodes=t})]),this.listenPlaygroundEvent("mousedown",t=>{if(!!this.isEnabled()&&(!this.options.canSelect||!!this.options.canSelect(t,this.selectorBoxConfigEntity)))return this.editorStateConfig.getCurrentState()===a.yy.STATE_MOUSE_FRIENDLY_SELECT&&this.selectConfigEntity.clearSelectedNodes(),this.selectboxDragger.start(t.clientX,t.clientY,this.config),!0},a.nn.BASE_LAYER)}isEnabled(){let t=this.editorStateConfig.getCurrentState(),e=t===a.yy.STATE_MOUSE_FRIENDLY_SELECT;return!this.config.disabled&&!this.config.readonly&&(e&&this.editorStateConfig.isPressingShift||t===a.yy.STATE_SELECT)&&!this.selectorBoxConfigEntity.disabled}dispose(){this.selectorBox.dispose(),this.selectorBoxBlock.dispose(),super.dispose()}updateSelectorBox(t){let e=this.selectorBox.get(),r=this.selectorBoxBlock.get();!this.isEnabled()&&t.isMoving&&this.selectorBoxConfigEntity.collapse(),this.isEnabled()&&t.isMoving?(e.setStyle({display:"block",left:t.position.x,top:t.position.y,width:t.size.width,height:t.size.height}),r.setStyle({display:"block",left:t.position.x-10,top:t.position.y-10,width:t.size.width+20,height:t.size.height+20})):(e.setStyle({display:"none"}),r.setStyle({display:"none"}))}nodeSelectable(t,e){let r=t.getNodeMeta().selectable;return"function"==typeof r?r(t,e):r}};w([(0,l.f)(o.pQ)],tu.prototype,"flowDocument",2),w([(0,l.f)(a.Lk)],tu.prototype,"contextMenuService",2),w([(0,a.O0)(a.ER)],tu.prototype,"playgroundConfigEntity",2),w([(0,l.f)(a.z2)],tu.prototype,"selectionService",2),w([(0,a.O0)(N)],tu.prototype,"selectorBoxConfigEntity",2),w([(0,a.O0)(_)],tu.prototype,"selectConfigEntity",2),w([(0,a.O0)(a.Zs)],tu.prototype,"editorStateConfig",2),tu=w([(0,c.b)()],tu);var tl=class extends a.mh{constructor(){super(...arguments),this.node=s.xF.createDivWithClass("gedit-selector-bounds-layer"),this.selectBoundsBackground=s.xF.createDivWithClass("gedit-selector-bounds-background")}onReady(){this.node.style.zIndex="20";let{firstChild:t}=this.pipelineNode;void 0!==this.options.boundsPadding&&(this.flowSelectConfigEntity.boundsPadding=this.options.boundsPadding),this.options.backgroundClassName&&this.selectBoundsBackground.classList.add(this.options.backgroundClassName);let e=s.xF.createDivWithClass("gedit-playground-layer");e.appendChild(this.selectBoundsBackground),this.pipelineNode.insertBefore(e,t)}onZoom(t){this.node.style.transform=`scale(${t})`,this.selectBoundsBackground.parentElement.style.transform=`scale(${t})`}onViewportChange(){this.render()}isEnabled(){return this.editorStateConfig.getCurrentState()===a.yy.STATE_SELECT}render(){let{ignoreOneSelect:t,ignoreChildrenLength:e,SelectorBoxPopover:r,disableBackground:n,CustomBoundsRenderer:i}=this.options,o=this.flowSelectConfigEntity.getSelectedBounds(),a=this.flowSelectConfigEntity.selectedNodes,u=this.selectBoundsBackground,l=!this.selectorBoxConfigEntity.isStart;if(0===o.width||0===o.height||t&&1===a.length&&(e||a[0].childrenLength<=1))return s.xF.setStyle(u,{display:"none"}),d.createElement(d.Fragment,null);if(i)return d.createElement(i,{bounds:o,config:this.config,flowSelectConfig:this.flowSelectConfigEntity,commandRegistry:this.commandRegistry});let c={display:"block",left:o.left,top:o.top,width:o.width,height:o.height};!n&&s.xF.setStyle(u,c);let h="gedit-selector-bounds-foreground";this.options.foregroundClassName&&(h+=" "+this.options.foregroundClassName);let f=r||this.rendererRegistry.tryToGetRendererComponent("selector-box-popover")?.renderer;return l&&f?d.createElement(f,{bounds:o,config:this.config,flowSelectConfig:this.flowSelectConfigEntity,commandRegistry:this.commandRegistry},d.createElement("div",{className:h,style:c})):d.createElement("div",{className:h,style:c})}};w([(0,l.f)(R)],tl.prototype,"rendererRegistry",2),w([(0,l.f)(a.Ho)],tl.prototype,"commandRegistry",2),w([(0,a.O0)(_)],tl.prototype,"flowSelectConfigEntity",2),w([(0,a.O0)(a.Zs)],tl.prototype,"editorStateConfig",2),w([(0,a.O0)(N)],tl.prototype,"selectorBoxConfigEntity",2),w([(0,a.aI)(o.GA,o.Lz)],tl.prototype,"renderStates",2),w([(0,a.aI)(o.GA,o.eG)],tl.prototype,"_transforms",2),tl=w([(0,c.b)()],tl);var tc=class extends a.mh{constructor(){super(...arguments),this.node=s.xF.createDivWithClass("gedit-context-menu-layer"),this.nodeRef=d.createRef()}isEnabled(){let t=this.editorStateConfig.getCurrentState();return!this.config.disabled&&!this.config.readonly&&t===a.yy.STATE_SELECT&&!this.selectorBoxConfigEntity.disabled}onReady(){this.node.style.zIndex="30",this.node.style.display="block",this.toDispose.pushAll([this.listenPlaygroundEvent("contextmenu",t=>{if(!this.isEnabled())return;this.contextMenuService.rightPanelVisible=!0;let e=this.flowSelectConfigEntity.getSelectedBounds();if(0===e.width||0===e.height)return;t.stopPropagation(),t.preventDefault(),this.nodeRef.current?.setVisible(!0);let r=t.clientX-(this.pipelineNode.offsetLeft||0)-this.playgroundConfigEntity.config.clientX,n=t.clientY-(this.pipelineNode.offsetTop||0)-this.playgroundConfigEntity.config.clientY;this.node.style.left=`${r}px`,this.node.style.top=`${n}px`},a.nn.BASE_LAYER),this.listenPlaygroundEvent("mousedown",()=>{this.nodeRef.current?.setVisible(!1),this.contextMenuService.rightPanelVisible=!1})])}onScroll(){this.nodeRef.current?.setVisible(!1)}onZoom(){this.nodeRef.current?.setVisible(!1)}dispose(){super.dispose()}renderCommandMenus(){return this.commandRegistry.commands.filter(t=>"SELECTOR_BOX"===t.category).map(t=>{let e=this.rendererRegistry.getRendererComponent(t.icon||t.id)?.renderer;return d.createElement(e,{key:t.id,command:t,isContextMenu:!0,disabled:!this.commandRegistry.isEnabled(t.id),onClick:e=>this.commandRegistry.executeCommand(t.id,e)})}).filter(t=>t)}render(){let t=this.rendererRegistry.getRendererComponent("context-menu-popover").renderer;return d.createElement(t,{ref:this.nodeRef,content:this.renderCommandMenus()})}};w([(0,l.f)(a.Ho)],tc.prototype,"commandRegistry",2),w([(0,l.f)(R)],tc.prototype,"rendererRegistry",2),w([(0,l.f)(a.Lk)],tc.prototype,"contextMenuService",2),w([(0,a.O0)(_)],tc.prototype,"flowSelectConfigEntity",2),w([(0,l.f)(a.z2)],tc.prototype,"selectionService",2),w([(0,a.O0)(a.ER)],tc.prototype,"playgroundConfigEntity",2),w([(0,a.O0)(a.Zs)],tc.prototype,"editorStateConfig",2),w([(0,a.O0)(N)],tc.prototype,"selectorBoxConfigEntity",2),tc=w([(0,c.b)()],tc);var th=class extends a.mh{getInitScroll(){return this.document.layout.getInitScroll(this.pipelineNode.getBoundingClientRect())}onReady(){let t=()=>this.getInitScroll();this.config.updateConfig(t()),this.config.addScrollLimit(e=>(function(t,e,r,n){t={...t};let i=r.config,o={scrollX:i.scrollX,scrollY:i.scrollY};if(0===e.length||0===i.width||0===i.height)return t;let a=te(t,r);if(!e.find(t=>s.Ae.isViewportVisible(t,a))){let t=te(o,r);return e.find(e=>s.Ae.isViewportVisible(e,t))?o:n()}return t})(e,[this.document.root.getData(o.eG).bounds],this.config,t))}};w([(0,l.f)(o.pQ)],th.prototype,"document",2),th=w([(0,c.b)()],th);var td=new y.n(t=>{t(R).toSelf().inSingletonScope(),t(I).toSelf().inSingletonScope()})},163455:function(t,e,r){"use strict";r.d(e,{Y:function(){return i}});var n=r(755e3),i=(0,r(952522).M1)({onInit(t,e){!1!==e.enable&&(t.playground.registerLayer(n.aK,e),t.playground.registerLayer(n.Kz,{canSelect:e.canSelect}))}})},875453:function(t,e,r){"use strict";r.d(e,{cL:function(){return m}});var n=r(952522),i=r(771531),o=r(734371),a=r(686346),s=r(259674),u=r(435946),l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,h=(t,e,r,n)=>{for(var i=n>1?void 0:n?c(e,r):e,o,a=t.length-1;a>=0;a--)(o=t[a])&&(i=(n?o(e,r,i):o(i))||i);return n&&i&&l(e,r,i),i},d=Symbol("ShortcutsContribution"),f=class{constructor(){this.shortcutsHandlers=[]}addHandlers(...t){t.forEach(t=>{this.commandRegistry.getCommand(t.commandId)?this.commandRegistry.registerHandler(t.commandId,{execute:t.execute,isEnabled:t.isEnabled}):this.commandRegistry.registerCommand({id:t.commandId,...t.commandDetail||{}},{execute:t.execute,isEnabled:t.isEnabled})}),this.shortcutsHandlers.unshift(...t)}addHandlersIfNotFound(...t){t.forEach(t=>{!this.has(t.commandId)&&this.addHandlers(t)})}has(t){return this.shortcutsHandlers.some(e=>e.commandId===t)}init(){this.contribs?.forEach(t=>t.registerShortcuts(this))}};h([(0,i.f)(n.Qc),(0,o.t)(d),(0,a.j)()],f.prototype,"contribs",2),h([(0,i.f)(n.Ho)],f.prototype,"commandRegistry",2),h([(0,s.z)()],f.prototype,"init",1),f=h([(0,u.b)()],f);var p={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:/(mac|iphone|ipod|ipad)/i.test("undefined"!=typeof navigator?navigator?.platform:"")?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,"=":187,comma:188,dash:189,"-":189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},g={ctrl:t=>t.ctrlKey,shift:t=>t.shiftKey,alt:t=>t.altKey,meta:t=>"keyup"===t.type?p.meta.includes(t.keyCode):t.metaKey},y=class extends n.mh{onReady(){this.shortcuts.addHandlersIfNotFound({commandId:n.mY.Default.ZOOM_IN,shortcuts:["meta =","ctrl ="],execute:()=>{this.config.zoomin()}},{commandId:n.mY.Default.ZOOM_OUT,shortcuts:["meta -","ctrl -"],execute:()=>{this.config.zoomout()}}),this.toDispose.pushAll([this.listenPlaygroundEvent("keydown",t=>{if(!!this.isFocused&&t.target===this.playgroundNode)this.shortcuts.shortcutsHandlers.some(e=>{var r;if(r=t,e.shortcuts.some(t=>(function(t,e,r=!0){if(!t.key||!e)return!1;let n=e.split(/\s+/),i=0;for(let e of n){let r=g[e],n=p[e.toLowerCase()];(r&&r(t)||n&&n===t.keyCode)&&i++}return r?i===n.length&&function(t){let e=Object.keys(g).reduce((e,r)=>g[r](t)?e+1:e,0);return[16,17,18,91,92].includes(t.keyCode)?e:e+1}(t)===n.length:i===n.length})(r,t))&&(!e.isEnabled||e.isEnabled(t)))return e.execute(t),t.preventDefault(),!0})})])}};y.type="ShortcutsLayer",h([(0,i.f)(f)],y.prototype,"shortcuts",2),h([(0,i.f)(n.z2)],y.prototype,"selection",2),y=h([(0,u.b)()],y);var m=(0,n.M1)({onBind:({bind:t})=>{t(f).toSelf().inSingletonScope(),(0,n.yb)(t,d)},onInit:t=>{t.playground.registerLayer(y)},contributionKeys:[d]})},168316:function(t,e,r){"use strict";r.d(e,{AU:function(){return te},Ae:function(){return C},BH:function(){return tn},Cd:function(){return O},Ct:function(){return p},E9:function(){return T},JA:function(){return tx},JT:function(){return h},K4:function(){return X},KV:function(){return ty},Kn:function(){return V},Of:function(){return tl},Oo:function(){return tA},Pq:function(){return J},Q5:function(){return Q},Qc:function(){return tv},RZ:function(){return l},S9:function(){return tc},V_:function(){return y},XJ:function(){return f},Zp:function(){return ts},_b:function(){return M},cO:function(){return tr},dG:function(){return H},ei:function(){return U},gE:function(){return to},gw:function(){return ti},hY:function(){return th},hj:function(){return W},i1:function(){return ta},jl:function(){return _},kg:function(){return tD},mf:function(){return Z},oN:function(){return tg},pL:function(){return m},qC:function(){return tm},r4:function(){return tE},r9:function(){return td},rM:function(){return b},sI:function(){return w},xF:function(){return D},y3:function(){return k},yb:function(){return tw},z:function(){return tu}});var n,i,o,a,s,u,l,c,h,d,f,p,g,y,m,b,w,A,D,E=r(171505),x=r(455069),{PI:S}=Math,M=2*S,_=180/S,N=class t{constructor(t=0,e=0){this.x=t,this.y=e}sub(e){return new t(this.x-e.x,this.y-e.y)}dot(t){return this.x*t.x+this.y*t.y}},T=class t{constructor(t=0,e=0){this.x=t,this.y=e}clone(){return new t(this.x,this.y)}copyFrom(t){return this.set(t.x,t.y),this}copyTo(t){return t.x=this.x,t.y=this.y,t}equals(t){return t.x===this.x&&t.y===this.y}set(t=0,e=t){return this.x=t,this.y=e,this}};(t=>{t.EMPTY={x:0,y:0};t.getDistance=function(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)};function e(t,e,r){return{x:t.x+r*(e.x-t.x),y:t.y+r*(e.y-t.y)}}t.getMiddlePoint=function(t,r){return e(t,r,.5)},t.getRatioPoint=e;t.fixZero=function(t){return 0===t.x&&(t.x=0),0===t.y&&(t.y=0),t};t.move=function(t,e){return{x:t.x+(e.x||0),y:t.y+(e.y||0)}};t.moveDistanceToDirection=function(t,e,r){let n=e.x-t.x,i=e.y-t.y,o=0===n?0:Math.sqrt(r**2/(1+i**2/n**2)),a=0===n?r:Math.abs(o*i/n);return{x:t.x+(n>0?o:-o),y:t.y+(i>0?a:-a)}}})(T||(T={}));var C=class t{constructor(t=0,e=0,r=0,n=0){this.x=t,this.y=e,this.width=r,this.height=n,this.type=1}static get EMPTY(){return new t(0,0,0,0)}get left(){return this.x}get right(){return this.x+this.width}get top(){return this.y}get bottom(){return this.y+this.height}clone(){return new t(this.x,this.y,this.width,this.height)}copyFrom(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this}copyTo(t){return t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t}contains(t,e){return!(this.width<=0)&&!(this.height<=0)&&(!!(t>=this.x)&&!!(t<=this.right)&&!!(e>=this.y)&&!!(e<=this.bottom)||!1)}isEqual(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height}containsRectangle(t){return t.left>=this.left&&t.right<=this.right&&t.top>=this.top&&t.bottom<=this.bottom}pad(t=0,e=t){return this.x-=t,this.y-=e,this.width+=2*t,this.height+=2*e,this}fit(t){let e=Math.max(this.x,t.x),r=Math.min(this.x+this.width,t.x+t.width),n=Math.max(this.y,t.y),i=Math.min(this.y+this.height,t.y+t.height);return this.x=e,this.width=Math.max(r-e,0),this.y=n,this.height=Math.max(i-n,0),this}ceil(t=1,e=.001){let r=Math.ceil((this.x+this.width-e)*t)/t,n=Math.ceil((this.y+this.height-e)*t)/t;return this.x=Math.floor((this.x+e)*t)/t,this.y=Math.floor((this.y+e)*t)/t,this.width=r-this.x,this.height=n-this.y,this}enlarge(t){let e=Math.min(this.x,t.x),r=Math.max(this.x+this.width,t.x+t.width),n=Math.min(this.y,t.y),i=Math.max(this.y+this.height,t.y+t.height);return this.x=e,this.width=r-e,this.y=n,this.height=i-n,this}get center(){return{x:this.x+this.width/2,y:this.y+this.height/2}}get rightBottom(){return{x:this.right,y:this.bottom}}get leftBottom(){return{x:this.left,y:this.bottom}}get rightTop(){return{x:this.right,y:this.top}}get leftTop(){return{x:this.left,y:this.top}}get bottomCenter(){return{x:this.x+this.width/2,y:this.bottom}}get topCenter(){return{x:this.x+this.width/2,y:this.top}}get rightCenter(){return{x:this.right,y:this.y+this.height/2}}get leftCenter(){return{x:this.left,y:this.y+this.height/2}}update(t){return t(this)}get crossDistance(){return T.getDistance(this.leftTop,this.rightBottom)}toStyleStr(){return`left: ${this.x}px; top: ${this.y}px; width: ${this.width}px; height: ${this.height}px;`}withPadding(t){return this.x-=t.left,this.y-=t.top,this.width+=t.left+t.right,this.height+=t.top+t.bottom,this}withoutPadding(t){return this.x+=t.left,this.y+=t.top,this.width=this.width-t.left-t.right,this.height=this.height-t.top-t.bottom,this}withHeight(t){return this.height=t,this}clearSpace(){return this.width=0,this.height=0,this}};(t=>{function e(e){let r=t.EMPTY.clone();if(!e.length)return r;let n=[],i=[],o=[],a=[];e.forEach(t=>{n.push(t.left),o.push(t.right),a.push(t.bottom),i.push(t.top)});let s=Math.min.apply(Math,n),u=Math.max.apply(Math,o),l=Math.min.apply(Math,i),c=Math.max.apply(Math,a);return r.x=s,r.width=u-s,r.y=l,r.height=c-l,r}t.align=function(t,r){if(t.length<=1)return t;switch(r){case"align-bottom":let n=Math.max(...t.map(t=>t.bottom));t.forEach(t=>{t.y=n-t.height});break;case"align-center":let i=e(t).center.x;t.forEach(t=>{t.x=i-t.width/2});break;case"align-left":let o=Math.min(...t.map(t=>t.left));t.forEach(t=>{t.x=o});break;case"align-middle":let a=e(t).center.y;t.forEach(t=>{t.y=a-t.height/2});break;case"align-right":let s=Math.max(...t.map(t=>t.right));t.forEach(t=>{t.x=s-t.width});break;case"align-top":let u=Math.min(...t.map(t=>t.top));t.forEach(t=>{t.y=u});break;case"distribute-horizontal":if(t.length<=2)break;let l=t.slice().sort((t,e)=>t.left-e.left),c=e(t),h=t.reduce((t,e)=>t-e.width,c.width)/(t.length-1);l.reduce((t,e)=>(e.x=t,t+e.width+h),c.x);break;case"distribute-vertical":if(t.length<=2)break;let d=t.slice().sort((t,e)=>t.top-e.top),f=e(t),p=t.reduce((t,e)=>t-e.height,f.height)/(t.length-1);d.reduce((t,e)=>(e.y=t,t+e.height+p),f.y)}return t},t.enlarge=e;t.intersects=function(t,e,r){let n=t.left,i=t.top,o=t.right,a=t.bottom,s=e.left,u=e.top,l=e.right,c=e.bottom;return"horizontal"===r?o>s&&n<l:"vertical"===r?a>u&&i<c:!!(o>s)&&!!(n<l)&&!!(a>u)&&!!(i<c)||!1};t.intersectsWithRotation=function(t,e,r,n){let i=new I(t.center,t.width,t.height,e),o=new I(r.center,r.width,r.height,n),a=i.centerPoint.sub(o.centerPoint),s=i.axesX;if(i.getProjectionRadius(s)+o.getProjectionRadius(s)<=Math.abs(a.dot(s)))return!1;let u=i.axesY;if(i.getProjectionRadius(u)+o.getProjectionRadius(u)<=Math.abs(a.dot(u)))return!1;let l=o.axesX;if(i.getProjectionRadius(l)+o.getProjectionRadius(l)<=Math.abs(a.dot(l)))return!1;let c=o.axesY;return!(i.getProjectionRadius(c)+o.getProjectionRadius(c)<=Math.abs(a.dot(c)))&&!0};t.isViewportVisible=function(e,r,n=0,i=!1){return i?r.containsRectangle(e):0===n?t.intersects(e,r):t.intersectsWithRotation(e,n,r,0)};t.setViewportVisible=function(t,e,r=0){let{left:n,right:i,top:o,bottom:a,width:s,height:u}=t,{left:l,right:c,top:h,bottom:d}=e;return n<=l?t.x=l+r:i>=c&&(t.x=c-r-s),o<=h?t.y=h+r:a>=d&&(t.y=d-r-u),t};t.createRectangleWithTwoPoints=function(e,r){let n=e.x<r.x?e.x:r.x,i=e.y<r.y?e.y:r.y,o=Math.abs(e.x-r.x);return new t(n,i,o,Math.abs(e.y-r.y))}})(C||(C={}));var I=class{constructor(t,e,r,n){this.width=e,this.height=r,this.centerPoint=new N(t.x,t.y),this.axesX=new N(Math.cos(n),Math.sin(n)),this.axesY=new N(-1*this.axesX.y,this.axesX.x)}getProjectionRadius(t){return this.width/2*Math.abs(t.dot(this.axesX))+this.height/2*Math.abs(t.dot(this.axesY))}},O=class t{constructor(t=0,e=0,r=0){this.x=t,this.y=e,this.radius=r,this.type=2}clone(){return new t(this.x,this.y,this.radius)}contains(t,e){if(this.radius<=0)return!1;let r=this.radius*this.radius,n=this.x-t,i=this.y-e;return n*=n,i*=i,n+i<=r}getBounds(){return new C(this.x-this.radius,this.y-this.radius,2*this.radius,2*this.radius)}},k=class t{constructor(t=1,e=0,r=0,n=1,i=0,o=0){this.a=t,this.b=e,this.c=r,this.d=n,this.tx=i,this.ty=o,this.array=null}static get IDENTITY(){return new t}static get TEMP_MATRIX(){return new t}fromArray(t){return t.length<6?this:(this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5],this)}set(t,e,r,n,i,o){return this.a=t,this.b=e,this.c=r,this.d=n,this.tx=i,this.ty=o,this}toArray(t,e){!this.array&&(this.array=new Float32Array(9));let r=e||this.array;return t?(r[0]=this.a,r[1]=this.b,r[2]=0,r[3]=this.c,r[4]=this.d,r[5]=0,r[6]=this.tx,r[7]=this.ty):(r[0]=this.a,r[1]=this.c,r[2]=this.tx,r[3]=this.b,r[4]=this.d,r[5]=this.ty,r[6]=0,r[7]=0),r[8]=1,r}apply(t,e){let{x:r,y:n}=t;return(e=e||{x:0,y:0}).x=this.a*r+this.c*n+this.tx,e.y=this.b*r+this.d*n+this.ty,e}applyInverse(t,e){e=e||{x:0,y:0};let r=1/(this.a*this.d+-(this.c*this.b)),{x:n}=t,{y:i}=t;return e.x=this.d*r*n+-this.c*r*i+(this.ty*this.c-this.tx*this.d)*r,e.y=this.a*r*i+-this.b*r*n+(-this.ty*this.a+this.tx*this.b)*r,e}translate(t,e){return this.tx+=t,this.ty+=e,this}scale(t,e){return this.a*=t,this.d*=e,this.c*=t,this.b*=e,this.tx*=t,this.ty*=e,this}rotate(t){let e=Math.cos(t),r=Math.sin(t),n=this.a,i=this.c,o=this.tx;return this.a=n*e-this.b*r,this.b=n*r+this.b*e,this.c=i*e-this.d*r,this.d=i*r+this.d*e,this.tx=o*e-this.ty*r,this.ty=o*r+this.ty*e,this}append(t){let e=this.a,r=this.b,n=this.c,i=this.d;return this.a=t.a*e+t.b*n,this.b=t.a*r+t.b*i,this.c=t.c*e+t.d*n,this.d=t.c*r+t.d*i,this.tx=t.tx*e+t.ty*n+this.tx,this.ty=t.tx*r+t.ty*i+this.ty,this}setTransform(t,e,r,n,i,o,a,s,u){return this.a=Math.cos(a+u)*i,this.b=Math.sin(a+u)*i,this.c=-Math.sin(a-s)*o,this.d=Math.cos(a-s)*o,this.tx=t-(r*this.a+n*this.c),this.ty=e-(r*this.b+n*this.d),this}prepend(t){let e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){let e=this.a,r=this.c;this.a=e*t.a+this.b*t.c,this.b=e*t.b+this.b*t.d,this.c=r*t.a+this.d*t.c,this.d=r*t.b+this.d*t.d}return this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty,this}decompose(t){let{a:e}=this,{b:r}=this,{c:n}=this,{d:i}=this,o=-Math.atan2(-n,i),a=Math.atan2(r,e),s=Math.abs(o+a);return s<1e-5||1e-5>Math.abs(M-s)?(t.rotation=a,t.skew.x=0,t.skew.y=0):(t.rotation=0,t.skew.x=o,t.skew.y=a),t.scale.x=Math.sqrt(e*e+r*r),t.scale.y=Math.sqrt(n*n+i*i),t.position.x=this.tx,t.position.y=this.ty,t}invert(){let t=this.a,e=this.b,r=this.c,n=this.d,i=this.tx,o=t*n-e*r;return this.a=n/o,this.b=-e/o,this.c=-r/o,this.d=t/o,this.tx=(r*this.ty-n*i)/o,this.ty=-(t*this.ty-e*i)/o,this}identity(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this}isSimple(){return 1===this.a&&0===this.b&&0===this.c&&1===this.d}clone(){let e=new t;return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e}copyTo(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t}copyFrom(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this}},L=class t{constructor(t,e,r=0,n=0){this._x=r,this._y=n,this.cb=t,this.scope=e}get x(){return this._x}set x(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))}get y(){return this._y}set y(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))}clone(e=this.cb,r=this.scope){return new t(e,r,this._x,this._y)}set(t=0,e=t){return(this._x!==t||this._y!==e)&&(this._x=t,this._y=e,this.cb.call(this.scope)),this}copyFrom(t){return(this._x!==t.x||this._y!==t.y)&&(this._x=t.x,this._y=t.y,this.cb.call(this.scope)),this}copyTo(t){return t.x=this._x,t.y=this._y,t}equals(t){return t.x===this._x&&t.y===this._y}},P=class{constructor(){this.worldTransform=new k,this.localTransform=new k,this.position=new L(this.onChange,this,0,0),this.scale=new L(this.onChange,this,1,1),this.pivot=new L(this.onChange,this,0,0),this.skew=new L(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}onChange(){this._localID++}updateSkew(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++}updateLocalTransform(){let t=this.localTransform;this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1)}updateTransform(t){let e=this.localTransform;if(this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==t._worldID){let r=t.worldTransform,n=this.worldTransform;n.a=e.a*r.a+e.b*r.c,n.b=e.a*r.b+e.b*r.d,n.c=e.c*r.a+e.d*r.c,n.d=e.c*r.b+e.d*r.d,n.tx=e.tx*r.a+e.ty*r.c+r.tx,n.ty=e.tx*r.b+e.ty*r.d+r.ty,this._parentID=t._worldID,this._worldID++}}setFromMatrix(t){t.decompose(this),this._localID++}get rotation(){return this._rotation}set rotation(t){this._rotation!==t&&(this._rotation=t,this.updateSkew())}};function R(t,e,r){let n=r-e;return e+((t-e)%n+n)%n}P.IDENTITY=new P,(n=l||(l={})).wrap=function(t){return R(t,-Math.PI,Math.PI)},n.wrapDegrees=function(t){return R(t,-180,180)},n.betweenPoints=function(t,e,r={x:0,y:0}){let n={x:t.x-r.x,y:t.y-r.y},i={x:e.x-r.x,y:e.y-r.y};return Math.atan2(n.x*i.y-n.y*i.x,n.x*i.x+n.y*i.y)};var{keys:B}=Object;Object.prototype.hasOwnProperty;var j=(t,e)=>B(t).forEach(r=>e(t[r],r)),F=(t,e,r)=>B(t).reduce((r,n)=>e(t[n],n)?Object.assign(r,{[n]:t[n]}):r,r||{}),U=(t,e,r)=>F(t,(t,r)=>-1!==e.indexOf(r),r),z=(t,e,r={})=>B(t).reduce((r,n)=>e(r,t[n],n),r),q=(t,e)=>z(t,(t,r,n)=>Object.assign(t,{[n]:e(r,n)})),H=()=>{};function V(t){return"object"==typeof t&&null!==t}function Z(t){return"function"==typeof t}var G=Object.prototype.toString;function W(t){var e;return"number"==typeof t||V(t)&&"[object Number]"===(null==(e=t)?void 0===e?"[object Undefined]":"[object Null]":G.call(e))}var Y=Object.freeze({dispose:H});(c||(c={})).None=()=>Y;var $=class t{constructor(){this._disposed=!1}get event(){return!this._event&&(this._event=(e,r)=>{if(this._disposed)return Y;!this._listeners&&(this._listeners=[]);let n=r?e.bind(r):e;this._listeners.length>=t.LEAK_WARNING_THRESHHOLD&&console.warn(`[Emitter] Listeners length >= ${t.LEAK_WARNING_THRESHHOLD}`),this._listeners.push(n);let i={dispose:()=>{if(i.dispose=H,!this._disposed){let t=this._listeners.indexOf(n);-1!==t&&this._listeners.splice(t,1)}}};return i}),this._event}fire(t){this._listeners&&this._listeners.forEach(e=>e(t))}get disposed(){return this._disposed}dispose(){this._listeners&&(this._listeners=void 0),this._disposed=!0}};$.LEAK_WARNING_THRESHHOLD=175;var Q=$;(t=>{function e(t){return{dispose:t}}t.is=function(t){return"object"==typeof t&&null!==t&&"function"==typeof t.dispose},t.create=e,t.NULL=Object.freeze(e(()=>{}))})(h||(h={}));var J=class{constructor(){this.toDispose=new X}dispose(){this.toDispose.dispose()}get disposed(){return this.toDispose.disposed}get onDispose(){return this.toDispose.onDispose}},X=class{constructor(...t){this.disposables=[],this.onDisposeEmitter=new Q,this._disposed=!1,t.forEach(t=>this.push(t))}get onDispose(){return this.onDisposeEmitter.event}get disposed(){return this._disposed}dispose(){if(!this.disposed)this._disposed=!0,this.disposables.slice().reverse().forEach(t=>{try{t.dispose()}catch(t){console.error(t)}}),this.onDisposeEmitter.fire(void 0),this.onDisposeEmitter.dispose()}push(t){let e;if(this.disposed)return h.NULL;let{disposables:r}=this;if(r.find(e=>e._origin===t))return h.NULL;let n=h.create(()=>{let t=r.indexOf(e);-1!==t&&r.splice(t,1)});return e={dispose:()=>{n.dispose(),t.dispose()},_origin:t},r.push(e),n}pushAll(t){return t.map(t=>this.push(t))}},K=Object.freeze(function(t,e){let r=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(r)}}});(i=d||(d={})).isCancellationToken=function(t){return t===i.None||t===i.Cancelled||t instanceof tt||!!t&&"object"==typeof t&&"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested},i.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:c.None}),i.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:K});var tt=class{constructor(){this._isCancelled=!1}cancel(){!this._isCancelled&&(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?K:(!this._emitter&&(this._emitter=new Q),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},te=class{get token(){return!this._token&&(this._token=new tt),this._token}cancel(){this._token?this._token!==d.Cancelled&&this._token.cancel():this._token=d.Cancelled}dispose(){this.cancel()}},tr=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}},tn=tr;function ti(t,e=d.None){let r=new tr,n=setTimeout(()=>r.resolve(),t);return e.onCancellationRequested(()=>{clearTimeout(n),r.reject(Error("Cancelled"))}),r.promise}(t=>{function e(t,r,n=1,i=!0){if(t===r)return!1;if(0===n||"object"!=typeof t||"object"!=typeof r)return t!==r;let o=Object.keys(r);if(!i){let e=Object.keys(t);if(o.length!==e.length)return!0}for(let a=0,s=o.length;a<s;a++){let s=o[a];if(e(t[s],r[s],n-1,i))return!0}return!1}t.isChanged=e;t.isDeepChanged=function(t,r,n){return e(t,r,1/0,n)};t.isArrayShallowChanged=function(t,e){if(t.length!==e.length)return!0;for(let r=0,n=t.length;r<n;r++)if(t[r]!==e[r])return!0;return!1}})(f||(f={})),(o=p||(p={})).create=function(t,e={}){let r=[];return{getFromCache:()=>r,getMore(n,i=!0){if(n===r.length);else if(n>r.length){let e=n-r.length;for(;e>0;)r.push(t()),e--}else if(i){let t=e.deleteLimit??0;r.length-n>t&&r.splice(n).forEach(t=>t.dispose&&t.dispose())}return r.slice(0,n)},getMoreByItemKeys(e){let n=[],i=new Map;return r.forEach(t=>{e.find(e=>e.key===t.key)?i.set(t.key,t):t.dispose?.()}),e.forEach(e=>{if(!e.key)throw Error("getMoreByItemKeys need a key");let r=i.get(e.key);r?n.push(r):n.push(t(e))}),r=n},getMoreByItems(e){let n=[],i=new Map;return r.forEach(t=>{e.find(e=>e===t.key)?i.set(t.key,t):t.dispose?.()}),e.forEach(e=>{let r=i.get(e);r?n.push(r):n.push({...t(e),key:e})}),r=n},get:()=>r.length>0?r[0]:(r.push(t()),r[0]),getFromCacheByKey:t=>r.find(e=>e.key===t),dispose(){r.forEach(t=>t.dispose&&t.dispose()),r.length=0},clear(){this.dispose()}}},o.assign=function(t,e){return Object.assign(t,e)},o.createShortCache=function(t=1e3){let e,r;function n(){r&&clearTimeout(r),r=setTimeout(()=>{r=void 0,e=void 0},t)}return{get:t=>e?(n(),e):(e=t(),n(),e)}},o.createWeakCache=function(){let t=new WeakMap;return{get:e=>t.get(e),save:(e,r)=>t.set(e,r),isChanged:(e,r)=>f.isChanged(t.get(e),r)}},(g||(g={})).create=function(t,e,r){return{type:"object",properties:{...e?.properties,...t},mixinDefaults:{...e?.mixinDefaults,...r}}},(a=y||(y={})).createDefault=function t(e,r,n){r={...e.mixinDefaults,...r};let i=n?`${n}.`:"";return e.properties?q(e.properties,(e,n)=>{let o=i+n;return r&&void 0!==r[o]?r[o]:t(e,r,o)}):"function"==typeof e.default?e.default():e.default},a.isBaseType=function(t){return"string"===t.type||"float"===t.type||"integer"===t.type||"boolean"===t.type||"enum"===t.type||"color"===t.type||"range"===t.type};var to={label:"大小",properties:{width:{label:"宽",default:0,type:"float"},height:{label:"高",default:0,type:"float"},locked:{label:"等比锁",default:!1,type:"boolean"}},type:"object"},ta={label:"原点",description:"用于设置旋转的中心位置",properties:{x:{label:"x",default:.5,type:"float"},y:{label:"y",default:.5,type:"float"}},type:"object"},ts={label:"位置",properties:{x:{label:"x",default:0,type:"float"},y:{label:"y",default:0,type:"float"}},type:"object"},tu={label:"旋转",type:"float",default:0},tl={label:"缩放",properties:{x:{label:"x",default:1,type:"float"},y:{label:"y",default:1,type:"float"}},type:"object"},tc={label:"倾斜",properties:{x:{label:"x",default:0,type:"float"},y:{label:"y",default:0,type:"float"}},type:"object"},th={properties:{position:ts,size:to,origin:ta,scale:tl,skew:tc,rotation:tu},type:"object"};(s=m||(m={})).createDefault=function(){return y.createDefault(th)},s.toJSON=function(t){return{position:{x:t.position.x,y:t.position.y},size:{width:t.size.width,height:t.size.height,locked:t.size.locked},origin:{x:t.origin.x,y:t.origin.y},scale:{x:t.scale.x,y:t.scale.y},skew:{x:t.skew.x,y:t.skew.y},rotation:t.rotation}},s.getDelta=function(t,e){return{position:{x:e.position.x-t.position.x,y:e.position.y-t.position.y},size:{width:e.size.width-t.size.width,height:e.size.height-t.size.height},origin:{x:e.origin.x-t.origin.x,y:e.origin.y-t.origin.y},scale:{x:e.scale.x-t.scale.x,y:e.scale.y-t.scale.y},skew:{x:e.skew.x-t.skew.x,y:e.skew.y-t.skew.y},rotation:e.rotation-t.rotation}},s.mergeDelta=function(t,e,r){let n=void 0!==r?t=>Math.round(100*t)/100:t=>t;return{position:{x:n(e.position.x+t.position.x),y:n(e.position.y+t.position.y)},size:{width:n(e.size.width+t.size.width),height:n(e.size.height+t.size.height),locked:t.size.locked},origin:{x:n(e.origin.x+t.origin.x),y:n(e.origin.y+t.origin.y)},scale:{x:n(e.scale.x+t.scale.x),y:n(e.scale.y+t.scale.y)},skew:{x:n(e.skew.x+t.skew.x),y:n(e.skew.y+t.skew.y)},rotation:e.rotation+t.rotation}},s.is=function(t){return t&&t.position&&t.size&&"number"==typeof t.position.x&&"number"==typeof t.size.width},(u=b||(b={})).fixSize=function(t,e){if(t.width<=e.width&&t.height<=e.height)return 1;let r=t.width/e.width,n=t.height/e.height;return 1/(r>n?r:n)},u.coverSize=function(t,e){let r=t.width/e.width,n=t.height/e.height;return 1/(r<n?r:n)},u.empty=function(){return{width:0,height:0}},(w||(w={})).empty=()=>({left:0,right:0,top:0,bottom:0}),(A||(A={})).isEmpty=function(t){return!t||void 0===t.topLeft&&void 0===t.topRight&&void 0===t.bottomLeft&&void 0===t.bottomRight};var td={label:"透明度",type:"float",min:0,max:1,default:1},tf=t=>t.replace(/([A-Z])/,t=>`-${t.toLowerCase()}`);(t=>{function e(t){return`${t}px`}t.toPixel=e;t.fromPercent=function(t){return parseFloat(t.substring(0,t.length-1))};t.toPercent=function(t){return`${t}%`};t.enableEvent=function(t){t.style.pointerEvents="all"};function r(t,...e){let n=document.createElement(t);return e.length>0&&(n.className=(0,E.default)(e)),n}t.disableEvent=function(t){t.style.pointerEvents="none"},t.createElement=r;t.createDivWithClass=function(...t){return r("div",...t)};t.addClass=function(t,...e){t.className=(0,E.default)(e.concat(t.className.split(" ")))};t.delClass=function(t,...e){e.forEach(e=>{t.classList.remove(e)}),t.className=t.classList.toString()};t.coverClass=function(t,...e){t.className=(0,E.default)(e)};t.clearChildren=function(t){t.innerHTML=""};t.translatePercent=function(t,e,r){t.style.transform=`translate(${e}%, ${r}%)`};t.translateXPercent=function(t,e){t.style.transform=`translateX(${e}%)`};t.translateYPercent=function(t,e){t.style.transform=`translateY(${e}%)`};t.setStyle=function(t,r){let n=[];j(r,(t,r)=>{void 0!==t&&("number"==typeof t&&"opacity"!==r&&"zIndex"!==r&&"scale"!==r&&(t=e(t)),n.push(`${tf(r)}:${t}`))});let i=t.getAttribute("style"),o=n.join(";");i!==o&&t.setAttribute("style",o)};t.classNameWithPrefix=function(t){return(e,r)=>(0,E.default)(e.split(/\s+/).map(e=>`${t}-${e}`).join(" "),r)};t.addStandardDisposableListener=function(t,e,r,n){return t.addEventListener(e,r,n),h.create(()=>{t.removeEventListener(e,r)})};t.createDOMCache=function(e,r,n){return p.create(()=>{let i="string"==typeof r?t.createDivWithClass(r):r();return n&&(i.innerHTML=n),e.appendChild(i),Object.assign(i,{dispose:()=>{let{parentNode:t}=i;t&&t.removeChild(i)},setStyle:e=>{t.setStyle(i,e)}})})}})(D||(D={}));var tp=0;function tg(){return tp===Number.MAX_SAFE_INTEGER&&(tp=0),tp++}function ty(t,e,r){t(e).toSelf().inSingletonScope(),r.forEach(r=>t(r).toService(e))}function tm(...t){return(e,...r)=>{let n=0;for(;t[n];)e=t[n](e,...r),n+=1;return e}}var tv=Symbol("ContributionProvider"),tb=class{constructor(t,e){this.container=t,this.identifier=e}forEach(t){this.getContributions().forEach(t)}getContributions(){if(!this.services){let t=[],{container:e}=this;if(e.isBound(this.identifier))try{t.push(...e.getAll(this.identifier))}catch(t){console.error(t)}this.services=t}return this.services}};function tw(t,e){t(tv).toDynamicValue(t=>new tb(t.container,e)).inSingletonScope().whenTargetNamed(e)}function tA(t,e,r,n){return t.addEventListener(e,r,n),h.create(()=>t.removeEventListener(e,r,n))}var tD=new class{isDevEnv(){return!1}info(...t){if(this.isDevEnv())return console.info(t)}log(...t){if(this.isDevEnv())return console.log(...t)}error(...t){return console.error(...t)}warn(...t){return console.warn(...t)}},tE={createStyleElement:function(t,e=document.head){let r=document.createElement("style");return r.id=t,r.type="text/css",r.media="screen",r.appendChild(document.createTextNode("")),e.appendChild(r),r}};function tx(t){let[,e]=(0,x.useState)(t);return(0,x.useCallback)(t=>e(void 0!==t?t:{}),[])}},541683:function(t,e,r){"use strict";r.d(e,{$Y:function(){return tM},$e:function(){return t_},$s:function(){return H},Ew:function(){return $},Hx:function(){return V},OI:function(){return tm},VI:function(){return tl},fE:function(){return ts},gJ:function(){return tx},i2:function(){return tD},q7:function(){return G},qR:function(){return u},qm:function(){return tE},rB:function(){return J},sX:function(){return tA},ts:function(){return X}});var n,i,o,a,s,u,l=r(702570),c=r(118586),h=r(771531),d=r(574467),f=r(435946),p=r(168316),g=r(646275),y=r(854585),m=r(797686),b=r(876911),w=r(195852),A=r(669210),D=r(896933),E=r(608872),x=r(824609),S=r(450725),M=r(749381),_=r(801815),N=r(690880),T=r(535660),C=r(982206),I=r(694578),O=r(259674),k=r(455069);r(952522);var L=Object.defineProperty,P=Object.getOwnPropertyDescriptor,R=(t,e,r,n)=>{for(var i=n>1?void 0:n?P(e,r):e,o,a=t.length-1;a>=0;a--)(o=t[a])&&(i=(n?o(e,r,i):o(i))||i);return n&&i&&L(e,r,i),i},B=(t,e)=>(r,n)=>e(r,n,t);function j(t){return p.JT.create(()=>t.unsubscribe())}var F=()=>{let t=new Map,e=(e,r)=>{if(t.has(e))return t.get(e);let n=r();return t.set(e,n),n};return e.clear=e=>{e?t.delete(e):t.clear()},e},U=class{constructor(t){this.parentTable=t,this.table=new Map,this.onDataChangeEmitter=new p.Q5,this.variables$=new c.x,this.anyVariableChange$=this.variables$.pipe((0,g.w)(t=>(0,y.T)(...t.map(t=>t.value$.pipe((0,m.T)(1))))),(0,b.B)()),this.onDataChange=this.onDataChangeEmitter.event,this._version=0}onAnyVariableChange(t){return j(this.anyVariableChange$.subscribe(t))}onAnyChange(t){let e=new p.K4;return e.pushAll([this.onDataChange(t),this.onAnyVariableChange(t)]),e}fireChange(){this._version++,this.onDataChangeEmitter.fire(),this.parentTable?.fireChange()}get version(){return this._version}get variables(){return Array.from(this.table.values())}get variableKeys(){return Array.from(this.table.keys())}getByKeyPath(t){let[e,...r]=t||[];if(!e)return;let n=this.getVariableByKey(e);return r.length?n?.getByKeyPath(r):n}getVariableByKey(t){return this.table.get(t)}addVariableToTable(t){this.table.set(t.key,t),this.parentTable&&this.parentTable.addVariableToTable(t),this.variables$.next(this.variables)}removeVariableFromTable(t){this.table.delete(t),this.parentTable&&this.parentTable.removeVariableFromTable(t),this.variables$.next(this.variables)}dispose(){this.variableKeys.forEach(t=>this.parentTable?.removeVariableFromTable(t)),this.onDataChangeEmitter.dispose()}},z=Symbol("DynamicVariableEngine"),q=Symbol("ContainerProvider"),H=class{constructor(){this.toDispose=new p.K4}get variableEngine(){return this.variableEngineProvider()}refreshAllChange(){this.variableEngine.getAllScopes().forEach(t=>{t.refreshCovers(),t.refreshDeps()})}dispose(){this.toDispose.dispose()}get disposed(){return this.toDispose.disposed}get onDispose(){return this.toDispose.onDispose}};R([(0,h.f)(z)],H.prototype,"variableEngineProvider",2),H=R([(0,f.b)()],H);var V=((n=V||{}).String="String",n.Number="Number",n.Integer="Integer",n.Boolean="Boolean",n.Object="Object",n.Array="Array",n.Map="Map",n.Union="Union",n.Any="Any",n.CustomType="CustomType",n.Property="Property",n.VariableDeclaration="VariableDeclaration",n.VariableDeclarationList="VariableDeclarationList",n.KeyPathExpression="KeyPathExpression",n.EnumerateExpression="EnumerateExpression",n.ExpressionList="ExpressionList",n.ListNode="ListNode",n.DataNode="DataNode",n.MapNode="MapNode",n),Z=Symbol("post_construct_ast"),G=()=>(t,e)=>{if(Reflect.hasMetadata(Z,t))throw Error("Duplication Post Construct AST");Reflect.defineMetadata(Z,e,t)};function W({getChildNode:t,updateChildNode:e,removeChildNode:r,nextJSON:n}){let i=t(),o=i?.kind!==n?.kind,a=n?.key&&n?.key!==i?.key;if(o||a){if(i&&(i.dispose(),r()),n){let t=this.createChildNode(n);return e(t),this.fireChange(),t}this.fireChange()}else n&&i?.fromJSON(n);return i}function Y(t){return"string"==typeof t?{kind:t}:t}(i=s||(s={})).isString=t=>t?.kind==="String",i.isNumber=t=>t?.kind==="Number",i.isBoolean=t=>t?.kind==="Boolean",i.isInteger=t=>t?.kind==="Integer",i.isObject=t=>t?.kind==="Object",i.isArray=t=>t?.kind==="Array",i.isMap=t=>t?.kind==="Map",i.isCustomType=t=>t?.kind==="CustomType",i.isVariableDeclaration=t=>t?.kind==="VariableDeclaration",i.isProperty=t=>t?.kind==="Property",i.isVariableDeclarationList=t=>t?.kind==="VariableDeclarationList",i.isEnumerateExpression=t=>t?.kind==="EnumerateExpression",i.isKeyPathExpression=t=>t?.kind==="KeyPathExpression",i.is=function(t,e){return t?.kind===e?.kind};var $=((o=$||{})[o.None=0]="None",o[o.VariableField=1]="VariableField",o[o.Expression=4]="Expression",o[o.BasicType=8]="BasicType",o[o.DrilldownType=16]="DrilldownType",o[o.EnumerateType=32]="EnumerateType",o[o.UnionType=64]="UnionType",o[o.VariableType=120]="VariableType",o),Q=class t{constructor({key:t,parent:e,scope:r},n){this.flags=0,this._version=0,this.changeLocked=!1,this._batch={batching:!1,hasChangesInBatch:!1},this.value$=new A.X(this),this._children=new Set,this.toDispose=new p.K4(p.JT.create(()=>{this.parent?.fireChange(),this.children.forEach(t=>t.dispose())})),this.onDispose=this.toDispose.onDispose,this.scope=r,this.parent=e,this.opts=n,this.key=t||(0,_.x0)(),this.fromJSON=this.withBatchUpdate(this.fromJSON.bind(this)),this.dispatchGlobalEvent({type:"NewAST"})}get kind(){if(!this.constructor.kind)throw Error(`ASTNode Registry need a kind: ${this.constructor.name}`);return this.constructor.kind}get children(){return Array.from(this._children)}toJSON(){return console.warn("[VariableEngine] Please Implement toJSON method for "+this.kind),{kind:this.kind}}createChildNode(t){let e=this.scope.variableEngine.astRegisters.createAST(t,{parent:this,scope:this.scope});return this._children.add(e),e.toDispose.push(p.JT.create(()=>{this._children.delete(e)})),e}updateChildNodeByKey(t,e){this.withBatchUpdate(W).call(this,{getChildNode:()=>this[t],updateChildNode:e=>this[t]=e,removeChildNode:()=>this[t]=void 0,nextJSON:e})}withBatchUpdate(t){return(...e)=>{if(this._batch.batching)return t.call(this,...e);this._batch.hasChangesInBatch=!1,this._batch.batching=!0;let r=t.call(this,...e);return this._batch.batching=!1,this._batch.hasChangesInBatch&&this.fireChange(),this._batch.hasChangesInBatch=!1,r}}fireChange(){if(!this.changeLocked&&!this.disposed){if(this._batch.batching){this._batch.hasChangesInBatch=!0;return}this._version++,this.value$.next(this),this.dispatchGlobalEvent({type:"UpdateAST"}),this.parent?.fireChange()}}get version(){return this._version}get hash(){return`${this._version}${this.kind}${this.key}`}subscribe(e,{selector:r,debounceAnimation:n,triggerOnInit:i}={}){return j(this.value$.pipe((0,D.U)(()=>r?r(this):this),(0,E.x)((t,e)=>(0,N.shallowEqual)(t,e),e=>e instanceof t?e.hash:e),i?(0,x.b)(()=>null):(0,m.T)(1),n?(0,S.b)(0,M.Z):(0,x.b)(()=>null)).subscribe(e))}dispatchGlobalEvent(t){this.scope.event.dispatch({...t,ast:this})}dispose(){if(!this.toDispose.disposed)this.toDispose.dispose(),this.dispatchGlobalEvent({type:"DisposeAST"}),this.value$.complete(),this.value$.unsubscribe()}get disposed(){return this.toDispose.disposed}},J=class extends Q{constructor(){super(...arguments),this.flags=8}isTypeEqual(t){let e=Y(t);return e?.kind==="Union"?(e?.types||[])?.some(t=>this.isTypeEqual(t)):this.kind===e?.kind}getByKeyPath(t=[]){throw Error(`Get By Key Path is not implemented for Type: ${this.kind}`)}toJSON(){return{kind:this.kind}}},X=class extends J{constructor(){super(...arguments),this.flags=48}fromJSON({items:t}){this.updateChildNodeByKey("items",Y(t))}get canDrilldownItems(){return!!(this.items?.flags&16)}getByKeyPath(t){let[e,...r]=t||[];if("0"===e&&this.canDrilldownItems)return this.items.getByKeyPath(r)}isTypeEqual(t){let e=Y(t),r=super.isTypeEqual(t);return e?.weak||e?.kind==="Union"?r:e&&r&&(e?.weak||this.customStrongEqual(e))}customStrongEqual(t){return this.items?this.items?.isTypeEqual(t.items):!t?.items}toJSON(){return{kind:"Array",items:this.items?.toJSON()}}};X.kind="Array";var K=class extends J{constructor(){super(...arguments),this.flags=8}fromJSON(){}};K.kind="String";var tt=class extends J{constructor(){super(...arguments),this.flags=8}fromJSON(){}};tt.kind="Integer";var te=class extends J{fromJSON(){}};te.kind="Boolean";var tr=class extends J{fromJSON(){}};tr.kind="Number";var tn=class extends J{fromJSON({keyType:t="String",valueType:e}){this.updateChildNodeByKey("keyType",Y(t)),this.updateChildNodeByKey("valueType",Y(e))}isTypeEqual(t){let e=Y(t),r=super.isTypeEqual(t);return e?.weak||e?.kind==="Union"?r:e&&r&&(e?.weak||this.customStrongEqual(e))}customStrongEqual(t){let{keyType:e="String",valueType:r}=t;return(!r&&!this.valueType||this.valueType?.isTypeEqual(r))&&this.keyType?.isTypeEqual(e)}toJSON(){return{kind:"Map",keyType:this.keyType?.toJSON(),valueType:this.valueType?.toJSON()}}};tn.kind="Map";var ti=class extends J{constructor(){super(...arguments),this.flags=16,this.propertyTable=new Map}fromJSON({properties:t}){let e=new Set(this.propertyTable.keys()),r=[...this.properties||[]];this.properties=(t||[]).map(t=>{let r=this.propertyTable.get(t.key);if(e.delete(t.key),r)return r.fromJSON(t),r;{let e=this.createChildNode({...t,kind:"Property"});return this.fireChange(),this.propertyTable.set(t.key,e),e}}),e.forEach(t=>{let e=this.propertyTable.get(t);e?.dispose(),this.propertyTable.delete(t),this.fireChange()}),this.dispatchGlobalEvent({type:"ObjectPropertiesChange",payload:{prev:r,next:[...this.properties]}})}toJSON(){return{kind:"Object",properties:this.properties.map(t=>t.toJSON())}}getByKeyPath(t){let[e,...r]=t,n=this.propertyTable.get(e);return r.length?n?.type&&n?.type?.flags&16?n.type.getByKeyPath(r):void 0:n}isTypeEqual(t){let e=Y(t),r=super.isTypeEqual(t);return e?.weak||e?.kind==="Union"?r:e&&r&&(e?.weak||this.customStrongEqual(e))}customStrongEqual(t){let e=t.properties||[],r=Array.from(this.propertyTable.keys()),n=e.map(t=>t.key);return!(0,w.xor)(r,n).length&&e.every(t=>{let e=this.propertyTable.get(t.key);return e&&e.key===t.key&&e.type?.isTypeEqual(t?.type)})}};ti.kind="Object";var to=class extends J{get typeName(){return this._typeName}fromJSON(t){this._typeName!==t.typeName&&(this._typeName=t.typeName,this.fireChange())}isTypeEqual(t){let e=Y(t);return e?.kind==="Union"?(e?.types||[])?.some(t=>this.isTypeEqual(t)):e?.kind===this.kind&&e?.typeName===this.typeName}};function ta(t){let e=t.parent,r=[];for(;e;)1&e.flags&&r.push(e),e=e.parent;return r}to.kind="CustomType";var ts=class extends Q{constructor(t,e){super(t,e),this.flags=4,this._refs=[],this.refreshRefs$=new c.x,this.refs$=this.refreshRefs$.pipe((0,D.U)(()=>this.getRefFields()),(0,E.x)(N.shallowEqual),(0,g.w)(t=>t?.length?(0,C.a)(t.map(t=>t?t.value$:(0,T.of)(void 0))):(0,T.of)([])),(0,b.B)()),this.toDispose.push(j(this.refs$.subscribe(t=>{this._refs=t,this.fireChange()})))}get globalVariableTable(){return this.scope.variableEngine.globalVariableTable}get parentFields(){return ta(this)}get refs(){return this._refs}refreshRefs(){this.refreshRefs$.next()}},tu=class extends Q{fromJSON({expressions:t}){this.expressions=t.map((t,e)=>{let r=this.expressions[e];return r.kind!==t.kind?(r.dispose(),this.fireChange(),this.createChildNode(t)):(r.fromJSON(t),r)})}toJSON(){return{kind:"ExpressionList",properties:this.expressions.map(t=>t.toJSON())}}};tu.kind="ExpressionList";var tl=class extends ts{constructor(t,e){super(t,e),this._keyPath=[],this.toDispose.pushAll([this.scope.available.onVariableListChange(()=>{this.refreshRefs()}),this.scope.available.onAnyVariableChange(t=>{t.key===this._keyPath[0]&&this.refreshRefs()})])}get keyPath(){return this._keyPath}getRefFields(){let t=this.scope.available.getByKeyPath(this._keyPath);return t?[t]:[]}get returnType(){let[t]=this._refs||[];if(t&&1&t.flags)return t.type}parseToKeyPath(t){return t.keyPath}fromJSON(t){let e=this.parseToKeyPath(t);!(0,N.shallowEqual)(e,this._keyPath)&&(this._keyPath=e,this.refreshRefs())}toJSON(){return{kind:"KeyPathExpression",keyPath:this._keyPath}}};tl.kind="KeyPathExpression";var tc=class extends ts{get enumerateFor(){return this._enumerateFor}get returnType(){let t=this.enumerateFor?.returnType;if(t?.kind==="Array")return t.items}getRefFields(){return[]}fromJSON({enumerateFor:t}){this.updateChildNodeByKey("_enumerateFor",t)}toJSON(){return{kind:"EnumerateExpression",enumerateFor:this.enumerateFor?.toJSON()}}};tc.kind="EnumerateExpression";(class extends ts{constructor(t,e){super(t,e),this._keyPath=[],this.toDispose.pushAll([this.scope.available.onVariableListChange(()=>{this.refreshRefs()}),this.scope.available.onAnyVariableChange(t=>{t.key===this._keyPath[0]&&this.refreshRefs()}),j(this.refs$.subscribe(t=>{let[e]=this._refs;this.prevRefTypeHash!==e?.type?.hash&&(this.prevRefTypeHash=e?.type?.hash,this.updateChildNodeByKey("_returnType",this.getReturnTypeJSONByRef(e)))}))])}get keyPath(){return this._keyPath}getRefFields(){let t=this.scope.available.getByKeyPath(this._keyPath);return function(t,e){if(0===(0,w.intersection)(t.scope.coverScopes,e.map(t=>t?.scope).filter(Boolean)).length)return!1;let r=new Set,n=[...e];for(;n.length;){let t=n.shift();for(let e of(r.add(t),(function t(e){return[...e.children,...e.children.map(e=>t(e)).flat()]})(t).filter(t=>4&t.flags).map(t=>t.refs).flat().filter(Boolean).filter(t=>!r.has(t))))n.push(e)}return(0,w.intersection)(Array.from(r),ta(t)).length>0}(this,[t])?(console.warn("[CustomKeyPathExpression] checkRefCycle: Reference Cycle Existed",this.parentFields.map(t=>t.key).reverse()),[]):t?[t]:[]}get returnType(){return this._returnType}parseToKeyPath(t){return t.keyPath}fromJSON(t){let e=this.parseToKeyPath(t);!(0,N.shallowEqual)(e,this._keyPath)&&(this._keyPath=e,this.refreshRefs())}getReturnTypeJSONByRef(t){return t?.type?.toJSON()}toJSON(){return{kind:"KeyPathExpression",keyPath:this._keyPath}}}).kind="KeyPathExpression";var th=class extends Q{constructor(){super(...arguments),this.flags=1,this._meta={}}get parentFields(){return ta(this)}get meta(){return this._meta}get type(){return this._initializer?.returnType||this._type}get initializer(){return this._initializer}fromJSON({type:t,initializer:e,meta:r}){this.updateType(t),this.updateInitializer(e),this.updateMeta(r)}updateType(t){this.updateChildNodeByKey("_type","string"==typeof t?{kind:t}:t)}updateInitializer(t){this.updateChildNodeByKey("_initializer",t)}updateMeta(t){!(0,N.shallowEqual)(t,this._meta)&&(this._meta=t,this.fireChange())}getByKeyPath(t){if(this.type?.flags&16)return this.type.getByKeyPath(t)}onTypeChange(t){return this.subscribe(t,{selector:t=>t.type})}toJSON(){return{kind:this.kind,key:this.key,type:this.type?.toJSON(),initializer:this.initializer?.toJSON(),meta:this._meta}}},td=class extends th{constructor(t){super(t),this._order=0}get order(){return this._order}fromJSON({order:t,...e}){this.updateOrder(t),super.fromJSON(e)}updateOrder(t=0){t!==this._order&&(this._order=t,this.dispatchGlobalEvent({type:"ReSortVariableDeclarations"}),this.fireChange())}onTypeChange(t){return this.subscribe(t,{selector:t=>t.type})}};td.kind="VariableDeclaration";var tf=class extends Q{constructor(){super(...arguments),this.declarationTable=new Map}fromJSON({declarations:t,startOrder:e}){let r=new Set(this.declarationTable.keys()),n=[...this.declarations||[]];this.declarations=(t||[]).map((t,n)=>{let i=(e||0)+n,o=t.key||this.declarations?.[n]?.key,a=this.declarationTable.get(o);if(o&&r.delete(o),a)return a.fromJSON({order:i,...t}),a;{let e=this.createChildNode({order:i,...t,kind:"VariableDeclaration"});return this.fireChange(),this.declarationTable.set(e.key,e),e}}),r.forEach(t=>{let e=this.declarationTable.get(t);e?.dispose(),this.declarationTable.delete(t)}),this.dispatchGlobalEvent({type:"VariableListChange",payload:{prev:n,next:[...this.declarations]}})}toJSON(){return{kind:"VariableDeclarationList",properties:this.declarations.map(t=>t.toJSON())}}};tf.kind="VariableDeclarationList";var tp=class extends th{};tp.kind="Property";var tg=class extends Q{get data(){return this._data}fromJSON(t){let{kind:e,...r}=t;!(0,N.shallowEqual)(r,this._data)&&(this._data=r,this.fireChange())}toJSON(){return{kind:"DataNode",...this._data}}partialUpdate(t){!(0,N.shallowEqual)(t,this._data)&&(this._data={...this._data,...t},this.fireChange())}};tg.kind="DataNode",(class extends Q{get list(){return this._list}fromJSON({list:t}){this._list.slice(t.length).forEach(t=>{t.dispose(),this.fireChange()}),this._list=t.map((t,e)=>{let r=this._list[e];return r.kind!==t.kind?(r.dispose(),this.fireChange(),this.createChildNode(t)):(r.fromJSON(t),r)})}toJSON(){return{kind:"ListNode",list:this._list.map(t=>t.toJSON())}}}).kind="ListNode";var ty=class extends Q{constructor(){super(...arguments),this.map=new Map}fromJSON({map:t}){let e=new Set(this.map.keys());for(let[r,n]of t||[])e.delete(r),this.set(r,n);for(let t of Array.from(e))this.remove(t)}toJSON(){return{kind:"MapNode",map:Array.from(this.map.entries())}}set(t,e){return this.withBatchUpdate(W).call(this,{getChildNode:()=>this.get(t),removeChildNode:()=>this.map.delete(t),updateChildNode:e=>this.map.set(t,e),nextJSON:e})}remove(t){this.get(t)?.dispose(),this.map.delete(t),this.fireChange()}get(t){return this.map.get(t)}};ty.kind="MapNode";var tm=class{constructor(){this.injectors=new Map,this.astMap=new Map,this.registerAST(K),this.registerAST(tr),this.registerAST(te),this.registerAST(tt),this.registerAST(ti),this.registerAST(X),this.registerAST(tn),this.registerAST(to),this.registerAST(tp),this.registerAST(td),this.registerAST(tf),this.registerAST(tl),this.registerAST(tc),this.registerAST(tu),this.registerAST(ty),this.registerAST(tg)}createAST(t,{parent:e,scope:r}){let n=this.astMap.get(t.kind);if(!n)throw Error(`ASTKind: ${String(t.kind)} can not find its ASTNode Registry`);let i=this.injectors.get(t.kind),o=new n({key:t.key,scope:r,parent:e},i?.()||{});if(o.changeLocked=!0,o.fromJSON((0,w.omit)(t,["key","kind"])),o.changeLocked=!1,Reflect.hasMetadata(Z,o)){let t=Reflect.getMetadata(Z,o);o[t]?.()}return o}getASTRegistryByKind(t){return this.astMap.get(t)}registerAST(t,e){this.astMap.set(t.kind,t),e&&this.injectors.set(t.kind,e)}};tm=R([(0,f.b)()],tm),(a=u||(u={})).createString=()=>({kind:"String"}),a.createNumber=()=>({kind:"Number"}),a.createBoolean=()=>({kind:"Boolean"}),a.createInteger=()=>({kind:"Integer"}),a.createObject=t=>({kind:"Object",...t}),a.createArray=t=>({kind:"Array",...t}),a.createMap=t=>({kind:"Map",...t}),a.createUnion=t=>({kind:"Union",...t}),a.createCustomType=t=>({kind:"CustomType",...t}),a.createVariableDeclaration=t=>({kind:"VariableDeclaration",...t}),a.createProperty=t=>({kind:"Property",...t}),a.createVariableDeclarationList=t=>({kind:"VariableDeclarationList",...t}),a.createEnumerateExpression=t=>({kind:"EnumerateExpression",...t}),a.createKeyPathExpression=t=>({kind:"KeyPathExpression",...t}),a.create=(t,e)=>({kind:t.kind,...e});var tv=class{constructor(t){this.scope=t,this.memo=F(),this._hasChanges=!1,this.variableTable=new U(t.variableEngine.globalVariableTable),this.scope.toDispose.pushAll([this.scope.ast.subscribe(()=>{this._hasChanges&&(this.memo.clear(),this.notifyCoversChange(),this.variableTable.fireChange(),this._hasChanges=!1)}),this.scope.event.on("DisposeAST",t=>{t.ast?.kind==="VariableDeclaration"&&this.removeVariableFromTable(t.ast.key)}),this.scope.event.on("NewAST",t=>{t.ast?.kind==="VariableDeclaration"&&this.addVariableToTable(t.ast)}),this.scope.event.on("ReSortVariableDeclarations",()=>{this._hasChanges=!0}),this.variableTable])}get variableEngine(){return this.scope.variableEngine}get globalVariableTable(){return this.scope.variableEngine.globalVariableTable}get onDataChange(){return this.variableTable.onDataChange.bind(this.variableTable)}get onAnyVariableChange(){return this.variableTable.onAnyVariableChange.bind(this.variableTable)}get variables(){return this.memo("variables",()=>this.variableTable.variables.sort((t,e)=>t.order-e.order))}get variableKeys(){return this.memo("variableKeys",()=>this.variableTable.variableKeys)}addVariableToTable(t){if(t.scope!==this.scope)throw Error("VariableDeclaration must be a ast node in scope");this.variableTable.addVariableToTable(t),this._hasChanges=!0}removeVariableFromTable(t){this.variableTable.removeVariableFromTable(t),this._hasChanges=!0}getVariableByKey(t){return this.variableTable.getVariableByKey(t)}notifyCoversChange(){this.scope.coverScopes.forEach(t=>t.available.refresh())}},tb=class{constructor(t){this.scope=t,this.memo=F(),this.refresh$=new c.x,this._variables=[],this.variables$=this.refresh$.pipe((0,D.U)(()=>(0,w.flatten)(this.depScopes.map(t=>t.output.variables||[]))),(0,E.x)(N.shallowEqual),(0,b.B)()),this.anyVariableChange$=this.variables$.pipe((0,g.w)(t=>(0,y.T)(...t.map(t=>t.value$.pipe((0,m.T)(1))))),(0,b.B)()),this.onDataChangeEmitter=new p.Q5,this.onDataChange=this.onDataChangeEmitter.event,this.scope.toDispose.pushAll([this.onVariableListChange(t=>{this._variables=t,this.memo.clear(),this.onDataChangeEmitter.fire(this._variables)}),this.onAnyVariableChange(()=>{this.onDataChangeEmitter.fire(this._variables)}),p.JT.create(()=>{this.refresh$.complete(),this.refresh$.unsubscribe()})])}get globalVariableTable(){return this.scope.variableEngine.globalVariableTable}refresh(){if(!this.scope.disposed)this.refresh$.next()}onAnyVariableChange(t){return j(this.anyVariableChange$.subscribe(t))}onVariableListChange(t){return j(this.variables$.subscribe(t))}get variables(){return this._variables}get variableKeys(){return this.memo("availableKeys",()=>this._variables.map(t=>t.key))}get depScopes(){return this.scope.depScopes}getByKeyPath(t=[]){if(!!this.variableKeys.includes(t[0]))return this.globalVariableTable.getByKeyPath(t)}},tw=class{constructor(t){this.scope=t,this.event$=new c.x,t.toDispose.pushAll([this.subscribe(e=>{t.variableEngine.fireGlobalEvent(e)})])}dispatch(t){if(!this.scope.disposed)this.event$.next(t)}subscribe(t){return j(this.event$.subscribe(t))}on(t,e){return j(this.event$.pipe((0,I.h)(e=>e.type===t)).subscribe(e))}},tA=class{constructor(t){this.memo=F(),this.toDispose=new p.K4,this.onDispose=this.toDispose.onDispose,this.id=t.id,this.meta=t.meta||{},this.variableEngine=t.variableEngine,this.event=new tw(this),this.ast=this.variableEngine.astRegisters.createAST({kind:"MapNode",key:String(this.id)},{scope:this}),this.output=new tv(this),this.available=new tb(this)}refreshCovers(){this.memo.clear("covers")}refreshDeps(){this.memo.clear("deps"),this.available.refresh()}get depScopes(){return this.memo("deps",()=>this.variableEngine.chain.getDeps(this).filter(t=>!!t&&!t?.disposed))}get coverScopes(){return this.memo("covers",()=>this.variableEngine.chain.getCovers(this).filter(t=>!!t&&!t?.disposed))}dispose(){this.ast.dispose(),this.toDispose.dispose(),this.coverScopes.forEach(t=>t.refreshDeps()),this.depScopes.forEach(t=>t.refreshCovers())}get disposed(){return this.toDispose.disposed}},tD=class{constructor(t,e){this.chain=t,this.astRegisters=e,this.toDispose=new p.K4,this.memo=F(),this.scopeMap=new Map,this.globalEvent$=new c.x,this.onScopeChangeEmitter=new p.Q5,this.globalVariableTable=new U,this.onScopeChange=this.onScopeChangeEmitter.event,this.toDispose.pushAll([t,p.JT.create(()=>{this.getAllScopes().forEach(t=>t.dispose()),this.globalVariableTable.dispose()})])}get container(){return this.containerProvider()}dispose(){this.toDispose.dispose()}getScopeById(t){return this.scopeMap.get(t)}removeScopeById(t){this.getScopeById(t)?.dispose()}createScope(t,e,r={}){let{ScopeConstructor:n=tA}=r,i=this.getScopeById(t);return!i&&(i=new n({variableEngine:this,meta:e,id:t}),this.scopeMap.set(t,i),this.onScopeChangeEmitter.fire({type:"add",scope:i}),i.toDispose.pushAll([i.ast.subscribe(()=>{this.onScopeChangeEmitter.fire({type:"update",scope:i})}),i.available.onDataChange(()=>{this.onScopeChangeEmitter.fire({type:"available",scope:i})})]),i.onDispose(()=>{this.scopeMap.delete(t),this.onScopeChangeEmitter.fire({type:"delete",scope:i})})),i}getAllScopes({sort:t}={}){let e=Array.from(this.scopeMap.values());if(t){let t=this.chain.sortAll(),r=new Set(e);return t.forEach(t=>r.delete(t)),[...t,...Array.from(r)]}return[...e]}fireGlobalEvent(t){this.globalEvent$.next(t)}onGlobalEvent(t,e){return j(this.globalEvent$.subscribe(r=>{r.type===t&&e(r)}))}};R([(0,h.f)(q)],tD.prototype,"containerProvider",2),R([(0,d.P)()],tD.prototype,"dispose",1),tD=R([(0,f.b)(),B(0,(0,h.f)(H)),B(1,(0,h.f)(tm))],tD);var tE=class{constructor(){this.toDispose=new p.K4,this.renameEmitter=new p.Q5,this.disposeInListEmitter=new p.Q5,this.onRename=this.renameEmitter.event,this.onDisposeInList=this.disposeInListEmitter.event}handleFieldListChange(t,e,r){if(!t||!e?.length||!r?.length||e.length!==r.length){this.notifyFieldsDispose(e,r);return}let n=null,i=!1;for(let[t,o]of e.entries()){let a=r[t];if(o.key!==a.key){if(i){this.notifyFieldsDispose(e,r);return}i=!0,o.type?.kind===a.type?.kind&&(n={before:o,after:a})}}if(!n){this.notifyFieldsDispose(e,r);return}this.renameEmitter.fire(n)}notifyFieldsDispose(t,e){(0,w.difference)(t||[],e||[]).forEach(t=>this.disposeInListEmitter.fire(t))}init(){this.toDispose.pushAll([this.variableEngine.onGlobalEvent("VariableListChange",t=>{this.handleFieldListChange(t.ast,t.payload?.prev,t.payload?.next)}),this.variableEngine.onGlobalEvent("ObjectPropertiesChange",t=>{this.handleFieldListChange(t.ast,t.payload?.prev,t.payload?.next)})])}dispose(){this.toDispose.dispose()}};R([(0,h.f)(tD)],tE.prototype,"variableEngine",2),R([(0,O.z)()],tE.prototype,"init",1),R([(0,d.P)()],tE.prototype,"dispose",1),tE=R([(0,f.b)()],tE);var tx=new l.n(t=>{t(tD).toSelf().inSingletonScope(),t(tm).toSelf().inSingletonScope(),t(tE).toSelf().inSingletonScope(),t(z).toDynamicValue(t=>()=>t.container.get(tD)),t(q).toDynamicValue(t=>()=>t.container)}),tS=(0,k.createContext)(null),tM=tS.Provider,t_=()=>k.useContext(tS)?.scope},810059:function(t,e,r){"use strict";r.d(e,{qm:()=>s.qm,qR:()=>s.qR,rB:()=>s.rB,_J:()=>g,Ys:()=>D,q7:()=>s.q7,$e:()=>s.$e,Hx:()=>s.Hx,Ew:()=>s.Ew,fE:()=>s.fE,VI:()=>s.VI,ts:()=>s.ts,$Y:()=>s.$Y,i2:()=>s.i2});var n=r("952522"),i=r("771531"),o=r("686346"),a=r("259674"),s=r("541683"),u=r("58096"),l=r("2553"),c=r("435946"),h=Object.defineProperty,d=Object.getOwnPropertyDescriptor,f=(t,e,r,n)=>{for(var i=n>1?void 0:n?d(e,r):e,o,a=t.length-1;a>=0;a--)(o=t[a])&&(i=(n?o(e,r,i):o(i))||i);return n&&i&&h(e,r,i),i},p=(t,e)=>(r,n)=>e(r,n,t),g=class extends n.RD{constructor(t,e){super(t),this.opts=e;let{variableEngine:r}=e||{};this.variableEngine=r,this._public=this.variableEngine.createScope(this.entity.id,{node:this.entity,type:"public"}),this.toDispose.push(this._public)}get private(){return this._private}get public(){return this._public}setVar(t,e){if("string"==typeof t&&void 0!==e)return this.public.ast.set(t,e);if("object"==typeof t&&void 0===e)return this.public.ast.set("outputs",t);throw Error("Invalid arguments")}getVar(t="outputs"){return this.public.ast.get(t)}clearVar(t="outputs"){return this.public.ast.remove(t)}setPrivateVar(t,e){if("string"==typeof t&&void 0!==e)return this.initPrivate().ast.set(t,e);if("object"==typeof t&&void 0===e)return this.initPrivate().ast.set("outputs",t);throw Error("Invalid arguments")}getPrivateVar(t="outputs"){return this.private?.ast.get(t)}clearPrivateVar(t="outputs"){return this.private?.ast.remove(t)}get allScopes(){let t=[];return this._public&&t.push(this._public),this._private&&t.push(this._private),t}getDefaultData(){return{}}initPrivate(){return!this._private&&(this._private=this.variableEngine.createScope(`${this.entity.id}_private`,{node:this.entity,type:"private"}),this._private.coverScopes.forEach(t=>{t.refreshDeps()}),this._private.depScopes.forEach(t=>{t.refreshCovers()}),this._private.available.refresh(),this.toDispose.push(this._private)),this._private}};g.type="FlowNodeVariableData";var y=Symbol("VariableLayoutConfig"),m=class extends s.sX{static is(t){return t.id===m.ID}setVar(t,e){if("string"==typeof t&&void 0!==e)return this.ast.set(t,e);if("object"==typeof t&&void 0===e)return this.ast.set("outputs",t);throw Error("Invalid arguments")}getVar(t="outputs"){return this.ast.get(t)}clearVar(t="outputs"){return this.ast.remove(t)}};m.ID=Symbol("GlobalScope"),m=f([(0,c.b)()],m);var b=t=>{t(m).toDynamicValue(t=>{let e=t.container.get(s.i2),r=e.getScopeById(m.ID);return!r&&(r=e.createScope(m.ID,{},{ScopeConstructor:m}),e.chain.refreshAllChange()),r})},w=class extends s.$s{get tree(){return this.flowDocument.originTree}onInit(){this.toDispose.pushAll([this.entityManager.onEntityDataChange(({entityDataType:t})=>{t===u.Z1.type&&this.refreshAllChange()}),this.tree.onTreeChange(()=>{this.refreshAllChange()})])}getAllInputLayerNodes(t){return(t.getData(u.Z1)?.allInputNodes||[]).filter(e=>e.parent===t.parent)}getAllOutputLayerNodes(t){return(t.getData(u.Z1)?.allOutputNodes||[]).filter(e=>e.parent===t.parent)}getDeps(t){let{node:e}=t.meta||{};if(!e)return this.transformDeps([],{scope:t});let r=[],n=e;for(;n;){let e=this.getAllInputLayerNodes(n);r.push(...e.map(t=>t.getData(g).public).filter(Boolean));let i=n.getData(g);i?.private&&t!==i.private&&r.push(i.private),n=this.getParent(n)}let i=this.variableEngine.getScopeById(m.ID);i&&r.unshift(i);let o=Array.from(new Set(r));return this.transformDeps(o,{scope:t})}getCovers(t){if(m.is(t))return this.variableEngine.getAllScopes({sort:!0}).filter(t=>!m.is(t));let{node:e}=t.meta||{};if(!e)return this.transformCovers([],{scope:t});let r="private"===t.meta.type,n=[];r?n.push(...this.getChildren(e)):n.push(...this.getAllOutputLayerNodes(e)||[]);let i=[];for(;n.length;){let t=n.shift(),e=t.getData(g);i.push(...e.allScopes);let r=t&&this.getChildren(t);r?.length&&n.push(...r)}let o=e.getData(g);r&&o.public&&i.push(o.public);let a=Array.from(new Set(i));return this.transformCovers(a,{scope:t})}transformCovers(t,{scope:e}){return this.configs?.transformCovers?this.configs.transformCovers(t,{scope:e,document:this.flowDocument,variableEngine:this.variableEngine}):t}transformDeps(t,{scope:e}){return this.configs?.transformDeps?this.configs.transformDeps(t,{scope:e,document:this.flowDocument,variableEngine:this.variableEngine}):t}getChildren(t){if(this.configs?.getFreeChildren)return this.configs.getFreeChildren?.(t);let e=t.getNodeMeta(),r=e.subCanvas?.(t);if(r)return r.isCanvas?[]:r.canvasNode.collapsedChildren;return this.tree.getChildren(t)}getParent(t){if(this.configs?.getFreeParent)return this.configs.getFreeParent(t);let e=t.document.originTree.getParent(t);if(!e)return e;let r=e.getNodeMeta(),n=r.subCanvas?.(e);return n?.isCanvas?n.parentNode:e}sortAll(){return console.warn("FreeLayoutScopeChain.sortAll is not implemented"),[]}};f([(0,i.f)(n.v2)],w.prototype,"entityManager",2),f([(0,i.f)(l.pQ)],w.prototype,"flowDocument",2),f([(0,o.j)(),(0,i.f)(y)],w.prototype,"configs",2),f([(0,a.z)()],w.prototype,"onInit",1);var A=class extends s.$s{constructor(t,e){super(),this.flowDocument=t,this.configs=e,this.bindTree(t.originTree),this.toDispose.push(t.originTree.onTreeChange(()=>{this.refreshAllChange()}))}bindTree(t){this.tree=t}getDeps(t){if(!this.tree)return this.transformDeps([],{scope:t});let e=t.meta.node;if(!e)return this.transformDeps([],{scope:t});let r=[],n=e;for(;n;){let{parent:i,pre:o}=this.tree.getInfo(n),a=this.getVariableData(n);if(n===e?"public"===t.meta.type&&a?.private&&r.unshift(a.private):this.hasChildren(n)&&!this.isNodeChildrenPrivate(n)&&r.unshift(...this.getAllSortedChildScope(n,{ignoreNodeChildrenPrivate:!0})),a&&n!==e&&r.unshift(a.public),o){n=o;continue}if(i){let t=i,e=this.tree.getPre(t);for(;t;){let n=this.getVariableData(t);if(n&&r.unshift(...n.allScopes),e)break;e=(t=this.tree.getParent(t))?this.tree.getPre(t):void 0}n=e;continue}n=void 0}let i=this.variableEngine.getScopeById(m.ID);return i&&r.unshift(i),this.transformDeps(r,{scope:t})}getCovers(t){if(!this.tree)return this.transformCovers([],{scope:t});if(m.is(t))return this.variableEngine.getAllScopes({sort:!0}).filter(t=>!m.is(t));let e=t.meta.node;if(!e)return this.transformCovers([],{scope:t});let r=[];if("private"===t.meta.type)return r.push(...this.getAllSortedChildScope(e,{addNodePrivateScope:!0})),this.transformCovers(r,{scope:t});let n=e;for(;n;){let{next:i,parent:o}=this.tree.getInfo(n),a=this.getVariableData(n);if(n!==e&&(this.hasChildren(n)?r.push(...this.getAllSortedChildScope(n,{addNodePrivateScope:!0})):a&&r.push(...a.allScopes)),i){n=i;continue}if(o){let e=o,i=this.tree.getNext(e);for(;e;){if(this.isNodeChildrenPrivate(e))return this.transformCovers(r,{scope:t});if(i)break;i=(e=this.tree.getParent(e))?this.tree.getNext(e):void 0}if(!i&&e)break;n=i;continue}n=void 0}return this.transformCovers(r,{scope:t})}transformCovers(t,{scope:e}){return this.configs?.transformCovers?this.configs.transformCovers(t,{scope:e,document:this.flowDocument,variableEngine:this.variableEngine}):t}transformDeps(t,{scope:e}){return this.configs?.transformDeps?this.configs.transformDeps(t,{scope:e,document:this.flowDocument,variableEngine:this.variableEngine}):t}sortAll(){let t=this.flowDocument.getAllNodes().find(t=>t.isStart);if(!t)return[];let e=t.getData(g).public,r=this.getDeps(e),n=this.getCovers(e).filter(t=>!r.includes(t)&&t!==e);return[...r,e,...n]}getVariableData(t){if(!("virtualNode"===t.flowNodeType||t.id.startsWith("$")))return t.getData(g)}isNodeChildrenPrivate(t){return this.configs?.isNodeChildrenPrivate?!!t&&this.configs?.isNodeChildrenPrivate(t):!t?.id.startsWith("$")&&this.hasChildren(t)}hasChildren(t){return!!(this.tree&&t&&this.tree.getChildren(t).length>0)}getAllSortedChildScope(t,{ignoreNodeChildrenPrivate:e,addNodePrivateScope:r}={}){let n=[],i=this.getVariableData(t);if(i&&n.push(i.public),e&&this.isNodeChildrenPrivate(t))return n;r&&i?.private&&n.push(i.private);let o=this.tree?.getChildren(t)||[];return n.push(...o.map(t=>this.getAllSortedChildScope(t,{ignoreNodeChildrenPrivate:e,addNodePrivateScope:r})).flat()),n}};A=f([p(0,(0,i.f)(l.pQ)),p(1,(0,o.j)()),p(1,(0,i.f)(y))],A);var D=(0,n.M1)({onBind({bind:t},e){let{layout:r,layoutConfig:n}=e;"free"===r&&t(s.$s).to(w).inSingletonScope(),"fixed"===r&&t(s.$s).to(A).inSingletonScope(),n&&t(y).toConstantValue(n||{}),b(t)},onInit(t,e){let{extendASTNodes:r}=e||{},i=t.get(s.i2),o=t.get(s.OI),a=t.get(n.v2),u=t.get(l.pQ);(r||[]).forEach(e=>{if(Array.isArray(e)){let[r,n]=e;o.registerAST(r,n?()=>n(t):void 0);return}o.registerAST(e)}),a.registerEntityData(g,()=>({variableEngine:i})),u.registerNodeDatas(g)},containerModules:[s.gJ]})},670419:function(t,e){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),!function(t){function e(t,e,r,n){void 0===r&&(r=0),void 0===n&&(n=-1);var i,o=t.length;if(0===o)return -1;r=r<0?Math.max(0,r+o):Math.min(r,o-1),i=(n=n<0?Math.max(0,n+o):Math.min(n,o-1))<r?n+1+(o-r):n-r+1;for(var a=0;a<i;++a){var s=(r+a)%o;if(t[s]===e)return s}return -1}function r(t,e,r,n){void 0===r&&(r=-1),void 0===n&&(n=0);var i,o=t.length;if(0===o)return -1;i=(r=r<0?Math.max(0,r+o):Math.min(r,o-1))<(n=n<0?Math.max(0,n+o):Math.min(n,o-1))?r+1+(o-n):r-n+1;for(var a=0;a<i;++a){var s=(r-a+o)%o;if(t[s]===e)return s}return -1}function n(t,e,r,n){void 0===r&&(r=0),void 0===n&&(n=-1);var i,o=t.length;if(0===o)return -1;r=r<0?Math.max(0,r+o):Math.min(r,o-1),i=(n=n<0?Math.max(0,n+o):Math.min(n,o-1))<r?n+1+(o-r):n-r+1;for(var a=0;a<i;++a){var s=(r+a)%o;if(e(t[s],s))return s}return -1}function i(t,e,r,n){void 0===r&&(r=-1),void 0===n&&(n=0);var i,o=t.length;if(0===o)return -1;i=(r=r<0?Math.max(0,r+o):Math.min(r,o-1))<(n=n<0?Math.max(0,n+o):Math.min(n,o-1))?r+1+(o-n):r-n+1;for(var a=0;a<i;++a){var s=(r-a+o)%o;if(e(t[s],s))return s}return -1}t.firstIndexOf=e,t.lastIndexOf=r,t.findFirstIndex=n,t.findLastIndex=i;t.findFirstValue=function(t,e,r,i){void 0===r&&(r=0),void 0===i&&(i=-1);var o=n(t,e,r,i);return -1!==o?t[o]:void 0};t.findLastValue=function(t,e,r,n){void 0===r&&(r=-1),void 0===n&&(n=0);var o=i(t,e,r,n);return -1!==o?t[o]:void 0};t.lowerBound=function(t,e,r,n,i){void 0===n&&(n=0),void 0===i&&(i=-1);var o=t.length;if(0===o)return 0;for(var a=n=n<0?Math.max(0,n+o):Math.min(n,o-1),s=(i=i<0?Math.max(0,i+o):Math.min(i,o-1))-n+1;s>0;){var u=s>>1,l=a+u;0>r(t[l],e)?(a=l+1,s-=u+1):s=u}return a};t.upperBound=function(t,e,r,n,i){void 0===n&&(n=0),void 0===i&&(i=-1);var o=t.length;if(0===o)return 0;for(var a=n=n<0?Math.max(0,n+o):Math.min(n,o-1),s=(i=i<0?Math.max(0,i+o):Math.min(i,o-1))-n+1;s>0;){var u=s>>1,l=a+u;r(t[l],e)>0?s=u:(a=l+1,s-=u+1)}return a};t.shallowEqual=function(t,e,r){if(t===e)return!0;if(t.length!==e.length)return!1;for(var n=0,i=t.length;n<i;++n)if(r?!r(t[n],e[n]):t[n]!==e[n])return!1;return!0};t.slice=function(t,e){void 0===e&&(e={});var r,n=e.start,i=e.stop,o=e.step;if(void 0===o&&(o=1),0===o)throw Error("Slice `step` cannot be zero.");var a=t.length;void 0===n?n=o<0?a-1:0:n<0?n=Math.max(n+a,o<0?-1:0):n>=a&&(n=o<0?a-1:a),void 0===i?i=o<0?-1:a:i<0?i=Math.max(i+a,o<0?-1:0):i>=a&&(i=o<0?a-1:a),r=o<0&&i>=n||o>0&&n>=i?0:o<0?Math.floor((i-n+1)/o+1):Math.floor((i-n-1)/o+1);for(var s=[],u=0;u<r;++u)s[u]=t[n+u*o];return s};function o(t,e,r){void 0===e&&(e=0),void 0===r&&(r=-1);var n=t.length;if(!(n<=1))for(e=e<0?Math.max(0,e+n):Math.min(e,n-1),r=r<0?Math.max(0,r+n):Math.min(r,n-1);e<r;){var i=t[e],o=t[r];t[e++]=o,t[r--]=i}}t.move=function(t,e,r){var n=t.length;if(!(n<=1)&&(e=e<0?Math.max(0,e+n):Math.min(e,n-1))!==(r=r<0?Math.max(0,r+n):Math.min(r,n-1))){for(var i=t[e],o=e<r?1:-1,a=e;a!==r;a+=o)t[a]=t[a+o];t[r]=i}},t.reverse=o;t.rotate=function(t,e,r,n){void 0===r&&(r=0),void 0===n&&(n=-1);var i=t.length;if(i<=1||(r=r<0?Math.max(0,r+i):Math.min(r,i-1))>=(n=n<0?Math.max(0,n+i):Math.min(n,i-1)))return;var a=n-r+1;if(e>0?e%=a:e<0&&(e=(e%a+a)%a),0!==e){var s=r+e;o(t,r,s-1),o(t,s,n),o(t,r,n)}};t.fill=function(t,e,r,n){void 0===r&&(r=0),void 0===n&&(n=-1);var i,o=t.length;if(0!==o){r=r<0?Math.max(0,r+o):Math.min(r,o-1),i=(n=n<0?Math.max(0,n+o):Math.min(n,o-1))<r?n+1+(o-r):n-r+1;for(var a=0;a<i;++a)t[(r+a)%o]=e}};function a(t,e){var r=t.length;if(e<0&&(e+=r),!(e<0)&&!(e>=r)){for(var n=t[e],i=e+1;i<r;++i)t[i-1]=t[i];return t.length=r-1,n}}t.insert=function(t,e,r){var n=t.length;e=e<0?Math.max(0,e+n):Math.min(e,n);for(var i=n;i>e;--i)t[i]=t[i-1];t[e]=r},t.removeAt=a;t.removeFirstOf=function(t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=-1);var o=e(t,r,n,i);return -1!==o&&a(t,o),o};t.removeLastOf=function(t,e,n,i){void 0===n&&(n=-1),void 0===i&&(i=0);var o=r(t,e,n,i);return -1!==o&&a(t,o),o};t.removeAllOf=function(t,e,r,n){void 0===r&&(r=0),void 0===n&&(n=-1);var i=t.length;if(0===i)return 0;r=r<0?Math.max(0,r+i):Math.min(r,i-1),n=n<0?Math.max(0,n+i):Math.min(n,i-1);for(var o=0,a=0;a<i;++a)r<=n&&a>=r&&a<=n&&t[a]===e?o++:n<r&&(a<=n||a>=r)&&t[a]===e?o++:o>0&&(t[a-o]=t[a]);return o>0&&(t.length=i-o),o};t.removeFirstWhere=function(t,e,r,i){void 0===r&&(r=0),void 0===i&&(i=-1);var o,s=n(t,e,r,i);return -1!==s&&(o=a(t,s)),{index:s,value:o}};t.removeLastWhere=function(t,e,r,n){void 0===r&&(r=-1),void 0===n&&(n=0);var o,s=i(t,e,r,n);return -1!==s&&(o=a(t,s)),{index:s,value:o}};t.removeAllWhere=function(t,e,r,n){void 0===r&&(r=0),void 0===n&&(n=-1);var i=t.length;if(0===i)return 0;r=r<0?Math.max(0,r+i):Math.min(r,i-1),n=n<0?Math.max(0,n+i):Math.min(n,i-1);for(var o=0,a=0;a<i;++a)r<=n&&a>=r&&a<=n&&e(t[a],a)?o++:n<r&&(a<=n||a>=r)&&e(t[a],a)?o++:o>0&&(t[a-o]=t[a]);return o>0&&(t.length=i-o),o}}(e.ArrayExt||(e.ArrayExt={}))},876049:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(70549);e.chain=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new i(n.iter(t.map(n.iter)))};var i=function(){function t(t){this._cloned=!1,this._source=t,this._active=void 0}return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source.clone());return e._active=this._active&&this._active.clone(),e._cloned=!0,this._cloned=!0,e},t.prototype.next=function(){if(void 0===this._active){var t=this._source.next();if(void 0===t)return;this._active=this._cloned?t.clone():t}var e=this._active.next();return void 0!==e?e:(this._active=void 0,this.next())},t}();e.ChainIterator=i},529994:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.empty=function(){return new r};var r=function(){function t(){}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t},t.prototype.next=function(){},t}();e.EmptyIterator=r},592717:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(70549);e.enumerate=function(t,e){return void 0===e&&(e=0),new i(n.iter(t),e)};var i=function(){function t(t,e){this._source=t,this._index=e}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._source.clone(),this._index)},t.prototype.next=function(){var t=this._source.next();if(void 0!==t)return[this._index++,t]},t}();e.EnumerateIterator=i},709978:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(70549);e.filter=function(t,e){return new i(n.iter(t),e)};var i=function(){function t(t,e){this._index=0,this._source=t,this._fn=e}return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source.clone(),this._fn);return e._index=this._index,e},t.prototype.next=function(){for(var t,e=this._fn,r=this._source;void 0!==(t=r.next());)if(e(t,this._index++))return t},t}();e.FilterIterator=i},138252:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(70549);e.find=function(t,e){for(var r,i=0,o=n.iter(t);void 0!==(r=o.next());)if(e(r,i++))return r};e.findIndex=function(t,e){for(var r,i=0,o=n.iter(t);void 0!==(r=o.next());)if(e(r,i++))return i-1;return -1};e.min=function(t,e){var r=n.iter(t),i=r.next();if(void 0!==i){for(var o=i;void 0!==(i=r.next());)0>e(i,o)&&(o=i);return o}};e.max=function(t,e){var r=n.iter(t),i=r.next();if(void 0!==i){for(var o=i;void 0!==(i=r.next());)e(i,o)>0&&(o=i);return o}};e.minmax=function(t,e){var r=n.iter(t),i=r.next();if(void 0!==i){for(var o=i,a=i;void 0!==(i=r.next());)0>e(i,o)?o=i:e(i,a)>0&&(a=i);return[o,a]}}},432502:function(t,e,r){"use strict";function n(t){for(var r in t)!e.hasOwnProperty(r)&&(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0}),n(r(670419)),n(r(876049)),n(r(529994)),n(r(592717)),n(r(709978)),n(r(138252)),n(r(70549)),n(r(205414)),n(r(608151)),n(r(851930)),n(r(140379)),n(r(921204)),n(r(745414)),n(r(332021)),n(r(19454)),n(r(55811)),n(r(738790))},70549:function(t,e){"use strict";function r(t){var e;return e="function"==typeof t.iter?t.iter():new n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.iter=r;e.iterKeys=function(t){return new i(t)};e.iterValues=function(t){return new o(t)};e.iterItems=function(t){return new a(t)};e.iterFn=function(t){return new s(t)};e.each=function(t,e){for(var n,i=0,o=r(t);void 0!==(n=o.next());)if(!1===e(n,i++))return};e.every=function(t,e){for(var n,i=0,o=r(t);void 0!==(n=o.next());)if(!e(n,i++))return!1;return!0};e.some=function(t,e){for(var n,i=0,o=r(t);void 0!==(n=o.next());)if(e(n,i++))return!0;return!1};e.toArray=function(t){for(var e,n=0,i=[],o=r(t);void 0!==(e=o.next());)i[n++]=e;return i};e.toObject=function(t){for(var e,n=r(t),i={};void 0!==(e=n.next());)i[e[0]]=e[1];return i};var n=function(){function t(t){this._index=0,this._source=t}return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source);return e._index=this._index,e},t.prototype.next=function(){if(!(this._index>=this._source.length))return this._source[this._index++]},t}();e.ArrayIterator=n;var i=function(){function t(t,e){void 0===e&&(e=Object.keys(t)),this._index=0,this._source=t,this._keys=e}return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source,this._keys);return e._index=this._index,e},t.prototype.next=function(){if(!(this._index>=this._keys.length)){var t=this._keys[this._index++];return t in this._source?t:this.next()}},t}();e.KeyIterator=i;var o=function(){function t(t,e){void 0===e&&(e=Object.keys(t)),this._index=0,this._source=t,this._keys=e}return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source,this._keys);return e._index=this._index,e},t.prototype.next=function(){if(!(this._index>=this._keys.length)){var t=this._keys[this._index++];return t in this._source?this._source[t]:this.next()}},t}();e.ValueIterator=o;var a=function(){function t(t,e){void 0===e&&(e=Object.keys(t)),this._index=0,this._source=t,this._keys=e}return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source,this._keys);return e._index=this._index,e},t.prototype.next=function(){if(!(this._index>=this._keys.length)){var t=this._keys[this._index++];return t in this._source?[t,this._source[t]]:this.next()}},t}();e.ItemIterator=a;var s=function(){function t(t){this._fn=t}return t.prototype.iter=function(){return this},t.prototype.clone=function(){throw Error("An `FnIterator` cannot be cloned.")},t.prototype.next=function(){return this._fn.call(void 0)},t}();e.FnIterator=s},205414:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(70549);e.map=function(t,e){return new i(n.iter(t),e)};var i=function(){function t(t,e){this._index=0,this._source=t,this._fn=e}return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source.clone(),this._fn);return e._index=this._index,e},t.prototype.next=function(){var t=this._source.next();if(void 0!==t)return this._fn.call(void 0,t,this._index++)},t}();e.MapIterator=i},608151:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.range=function(t,e,r){return void 0===e?new n(0,t,1):void 0===r?new n(t,e,1):new n(t,e,r)};var r,n=function(){function t(t,e,n){this._index=0,this._start=t,this._stop=e,this._step=n,this._length=r.rangeLength(t,e,n)}return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._start,this._stop,this._step);return e._index=this._index,e},t.prototype.next=function(){if(!(this._index>=this._length))return this._start+this._step*this._index++},t}();e.RangeIterator=n,(r||(r={})).rangeLength=function(t,e,r){return 0===r?1/0:t>e&&r>0||t<e&&r<0?0:Math.ceil((e-t)/r)}},851930:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(70549);e.reduce=function(t,e,r){var i,o,a=0,s=n.iter(t),u=s.next();if(void 0===u&&void 0===r)throw TypeError("Reduce of empty iterable with no initial value.");if(void 0===u)return r;var l=s.next();if(void 0===l&&void 0===r)return u;if(void 0===l)return e(r,u,a++);for(i=void 0===r?e(u,l,a++):e(e(r,u,a++),l,a++);void 0!==(o=s.next());)i=e(i,o,a++);return i}},140379:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.repeat=function(t,e){return new r(t,e)};e.once=function(t){return new r(t,1)};var r=function(){function t(t,e){this._value=t,this._count=e}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._value,this._count)},t.prototype.next=function(){if(!(this._count<=0))return this._count--,this._value},t}();e.RepeatIterator=r},921204:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.retro=function(t){var e;return e="function"==typeof t.retro?t.retro():new r(t)};var r=function(){function t(t){this._source=t,this._index=t.length-1}return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source);return e._index=this._index,e},t.prototype.next=function(){if(!(this._index<0)&&!(this._index>=this._source.length))return this._source[this._index--]},t}();e.RetroArrayIterator=r},745414:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(70549);e.topologicSort=function(t){var e=[],r=new Set,i=new Map;return n.each(t,function(t){var e=t[0],r=t[1],n=i.get(r);n?n.push(e):i.set(r,[e])}),i.forEach(function(t,n){(function t(n){if(!r.has(n)){r.add(n);var o=i.get(n);o&&o.forEach(t),e.push(n)}})(n)}),e}},332021:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(70549);e.stride=function(t,e){return new i(n.iter(t),e)};var i=function(){function t(t,e){this._source=t,this._step=e}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._source.clone(),this._step)},t.prototype.next=function(){for(var t=this._source.next(),e=this._step-1;e>0;--e)this._source.next();return t},t}();e.StrideIterator=i},19454:function(t,e){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),!function(t){function e(t,e,r){void 0===r&&(r=0);for(var n=Array(e.length),i=0,o=r,a=e.length;i<a;++i,++o){if(-1===(o=t.indexOf(e[i],o)))return null;n[i]=o}return n}t.findIndices=e;t.matchSumOfSquares=function(t,r,n){void 0===n&&(n=0);var i=e(t,r,n);if(!i)return null;for(var o=0,a=0,s=i.length;a<s;++a){var u=i[a]-n;o+=u*u}return{score:o,indices:i}};t.matchSumOfDeltas=function(t,r,n){void 0===n&&(n=0);var i=e(t,r,n);if(!i)return null;for(var o=0,a=n-1,s=0,u=i.length;s<u;++s){var l=i[s];o+=l-a-1,a=l}return{score:o,indices:i}};t.highlight=function(t,e,r){for(var n=[],i=0,o=0,a=e.length;i<a;){for(var s=e[i],u=e[i];++i<a&&e[i]===u+1;)u++;o<s&&n.push(t.slice(o,s)),s<u+1&&n.push(r(t.slice(s,u+1))),o=u+1}return o<t.length&&n.push(t.slice(o)),n};t.cmp=function(t,e){return t<e?-1:t>e?1:0}}(e.StringExt||(e.StringExt={}))},55811:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(70549);e.take=function(t,e){return new i(n.iter(t),e)};var i=function(){function t(t,e){this._source=t,this._count=e}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._source.clone(),this._count)},t.prototype.next=function(){if(this._count<=0)return;var t=this._source.next();if(void 0!==t)return this._count--,t},t}();e.TakeIterator=i},738790:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(70549);e.zip=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new i(t.map(n.iter))};var i=function(){function t(t){this._source=t}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._source.map(function(t){return t.clone()}))},t.prototype.next=function(){for(var t=Array(this._source.length),e=0,r=this._source.length;e<r;++e){var n=this._source[e].next();if(void 0===n)return;t[e]=n}return t},t}();e.ZipIterator=i},636367:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,o=r(432502),a=function(){function t(t){this._root=new i.LeafNode,this.cmp=t}return Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this._root.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._root.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){var t=i.firstLeaf(this._root);return t.size>0?t.items[0]:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){var t=i.lastLeaf(this._root);return t.size>0?t.items[t.size-1]:void 0},enumerable:!0,configurable:!0}),t.prototype.iter=function(){return i.iterItems(this._root)},t.prototype.retro=function(){return i.retroItems(this._root)},t.prototype.slice=function(t,e){return i.sliceItems(this._root,t,e)},t.prototype.retroSlice=function(t,e){return i.retroSliceItems(this._root,t,e)},t.prototype.at=function(t){return i.itemAt(this._root,t)},t.prototype.has=function(t,e){return i.hasItem(this._root,t,e)},t.prototype.indexOf=function(t,e){return i.indexOf(this._root,t,e)},t.prototype.get=function(t,e){return i.getItem(this._root,t,e)},t.prototype.assign=function(t){this.clear(),this.update(t)},t.prototype.insert=function(t){var e=i.insertItem(this._root,t,this.cmp);return this._root=i.maybeSplitRoot(this._root),e},t.prototype.update=function(t){var e=this;o.each(t,function(t){e.insert(t)})},t.prototype.delete=function(t,e){var r=i.deleteItem(this._root,t,e);return this._root=i.maybeExtractRoot(this._root),r},t.prototype.remove=function(t){var e=i.removeItem(this._root,t);return this._root=i.maybeExtractRoot(this._root),e},t.prototype.clear=function(){i.clear(this._root),this._root=new i.LeafNode},t}();e.BPlusTree=a,(n=a=e.BPlusTree||(e.BPlusTree={})).from=function(t,e){var r=new n(e);return r.assign(t),r},e.BPlusTree=a,!function(t){var e=function(){function t(){this.items=[],this.sizes=[],this.children=[]}return Object.defineProperty(t.prototype,"type",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.sizes[this.sizes.length-1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.children.length},enumerable:!0,configurable:!0}),t}();t.BranchNode=e;var r=function(){function t(){this.next=null,this.prev=null,this.items=[]}return Object.defineProperty(t.prototype,"type",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.items.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.items.length},enumerable:!0,configurable:!0}),t}();function n(t){for(;0===t.type;)t=t.children[0];return t}function i(t){for(;0===t.type;)t=t.children[t.children.length-1];return t}t.LeafNode=r,t.firstLeaf=n,t.lastLeaf=i;t.iterItems=function(t){return new l(n(t),0,-1)};t.retroItems=function(t){var e=i(t);return new c(e,e.size-1,-1)};t.sliceItems=function(t,e,r){e=void 0===e?0:e<0?Math.max(0,e+t.size):Math.min(e,t.size);var n=Math.max(0,(r=void 0===r?t.size:r<0?Math.max(0,r+t.size):Math.min(r,t.size))-e);if(0===n)return o.empty();for(;0===t.type;){var i=h(t.sizes,e);i>0&&(e-=t.sizes[i-1]),t=t.children[i]}return new l(t,e,n)};t.retroSliceItems=function(t,e,r){e=void 0===e?t.size-1:e<0?Math.max(-1,e+t.size):Math.min(e,t.size-1);var n=Math.max(0,e-(r=void 0===r?-1:r<0?Math.max(-1,r+t.size):Math.min(r,t.size-1)));if(0===n)return o.empty();for(;0===t.type;){var i=h(t.sizes,e);i>0&&(e-=t.sizes[i-1]),t=t.children[i]}return new c(t,e,n)};t.itemAt=function(t,e){if(e<0&&(e+=t.size),!(e<0)&&!(e>=t.size)){for(;0===t.type;){var r=h(t.sizes,e);r>0&&(e-=t.sizes[r-1]),t=t.children[r]}return t.items[e]}};t.hasItem=function(t,e,r){for(;0===t.type;){var n=d(t.items,e,r);t=t.children[n]}return f(t.items,e,r)>=0};t.indexOf=function(t,e,r){for(var n=0;0===t.type;){var i=d(t.items,e,r);i>0&&(n+=t.sizes[i-1]),t=t.children[i]}var o=f(t.items,e,r);return o>=0?n+o:-n+o};t.getItem=function(t,e,r){for(;0===t.type;){var n=d(t.items,e,r);t=t.children[n]}var i=f(t.items,e,r);return i>=0?t.items[i]:void 0};t.insertItem=function t(e,r,n){if(1===e.type){var i,a=f(e.items,r,n);return a>=0?(i=e.items[a],e.items[a]=r):(i=void 0,o.ArrayExt.insert(e.items,-a-1,r)),i}var u=d(e.items,r,n),l=e.children[u],c=l.size,h=t(l,r,n),y=l.size;if(e.items[u]=l.items[0],c===y)return h;if(l.width>s){var m=g(l);o.ArrayExt.insert(e.children,u+1,m),o.ArrayExt.insert(e.items,u+1,m.items[0])}return p(e,u),h};t.deleteItem=function t(e,r,n){if(1===e.type){var i=f(e.items,r,n);if(i<0)return;return o.ArrayExt.removeAt(e.items,i)}var a=d(e.items,r,n),s=e.children[a],l=s.size,c=t(s,r,n);return l===s.size?c:(e.items[a]=s.items[0],s.width<u&&(a=y(e,a)),p(e,a),c)};function a(t){0===t.type?(o.each(t.children,a),t.children.length=0,t.sizes.length=0,t.items.length=0):(t.items.length=0,t.next=null,t.prev=null)}t.removeItem=function t(e,r){if(r<0&&(r+=e.size),!(r<0)&&!(r>=e.size)){if(1===e.type)return o.ArrayExt.removeAt(e.items,r);var n=h(e.sizes,r);n>0&&(r-=e.sizes[n]);var i=e.children[n],a=t(i,r);return e.items[n]=i.items[0],i.width<u&&(n=y(e,n)),p(e,n),a}},t.clear=a;t.maybeSplitRoot=function(t){if(t.width<=s)return t;var r=new e,n=g(t);return r.sizes[0]=t.size,r.sizes[1]=t.size+n.size,r.children[0]=t,r.children[1]=n,r.items[0]=t.items[0],r.items[1]=n.items[0],r};t.maybeExtractRoot=function(t){if(1===t.type||t.children.length>1)return t;var e=t.children.pop();return a(t),e};var s=32,u=16,l=function(){function t(t,e,r){this._node=t,this._index=e,this._count=r}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._node,this._index,this._count)},t.prototype.next=function(){return null===this._node||0===this._count?void 0:this._index>=this._node.size?(this._node=this._node.next,this._index=0,this.next()):(this._count>0&&this._count--,this._node.items[this._index++])},t}(),c=function(){function t(t,e,r){this._node=t,this._index=e,this._count=r}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._node,this._index,this._count)},t.prototype.next=function(){return null===this._node||0===this._count?void 0:(this._index>=this._node.size&&(this._index=this._node.size-1),this._index<0)?(this._node=this._node.prev,this._index=this._node?this._node.size-1:-1,this.next()):(this._count>0&&this._count--,this._node.items[this._index--])},t}();function h(t,e){for(var r=t.length,n=0;n<r;++n)if(t[n]>e)return n;return r-1}function d(t,e,r){for(var n=t.length,i=1;i<n;++i)if(r(t[i],e)>0)return i-1;return n-1}function f(t,e,r){for(var n=t.length,i=0;i<n;++i){var o=r(t[i],e);if(0===o)return i;if(o>0)return-i-1}return-n-1}function p(t,e){for(var r=t.sizes,n=t.children,i=e>0?r[e-1]:0,o=n.length;e<o;++e)i=r[e]=i+n[e].size;r.length=n.length}function g(t){if(1===t.type){for(var n=new r,i=t.items,o=n.items,a=u,s=i.length;a<s;++a)o.push(i[a]);return i.length=u,t.next&&(t.next.prev=n),n.next=t.next,n.prev=t,t.next=n,n}for(var l=new e,c=t.children,h=l.children,a=u,s=c.length;a<s;++a)h.push(c[a]);c.length=u;for(var d=t.items,f=l.items,a=u,s=d.length;a<s;++a)f.push(d[a]);return d.length=u,p(t,u),p(l,0),l}function y(t,e){var r,n,i,s,l,c,h=t.children[e],d=0===e?t.children[e+1]:t.children[e-1],f=0===e,g=1===h.type,y=d.width>u;if(g&&y&&f){var m=h,b=d;return m.items.push(b.items.shift()),t.items[e+1]=b.items[0],e}if(g&&y&&!f){var m=h,b=d;return m.items.unshift(b.items.pop()),t.items[e]=m.items[0],e-1}if(g&&!y&&f){var m=h,b=d;return(r=b.items).unshift.apply(r,m.items),o.ArrayExt.removeAt(t.children,e),o.ArrayExt.removeAt(t.items,e+1),m.prev&&(m.prev.next=b),b.prev=m.prev,a(m),e}if(g&&!y&&!f){var m=h,b=d;return(n=b.items).push.apply(n,m.items),o.ArrayExt.removeAt(t.children,e),o.ArrayExt.removeAt(t.items,e),m.next&&(m.next.prev=b),b.next=m.next,a(m),e-1}if(!g&&y&&f){var m=h,b=d;return m.children.push(b.children.shift()),m.items.push(b.items.shift()),t.items[e+1]=b.items[0],p(m,m.width-1),p(b,0),e}if(!g&&y&&!f){var m=h,b=d;return m.children.unshift(b.children.pop()),m.items.unshift(b.items.pop()),t.items[e]=m.items[0],p(m,0),p(b,b.width-1),e-1}if(!g&&!y&&f){var m=h,b=d;return(i=b.children).unshift.apply(i,m.children),(s=b.items).unshift.apply(s,m.items),o.ArrayExt.removeAt(t.children,e),o.ArrayExt.removeAt(t.items,e+1),p(b,0),m.children.length=0,a(m),e}if(!g&&!y&&!f){var m=h,b=d;return(l=b.children).push.apply(l,m.children),(c=b.items).push.apply(c,m.items),o.ArrayExt.removeAt(t.children,e),o.ArrayExt.removeAt(t.items,e),p(b,0),m.children.length=0,a(m),e-1}throw"unreachable"}}(i||(i={}))},34116:function(t,e,r){"use strict";function n(t){for(var r in t)!e.hasOwnProperty(r)&&(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0}),n(r(636367)),n(r(91169))},91169:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,o,a,s,u,l=r(432502),c=function(){function t(){this._first=null,this._last=null,this._size=0}return Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this._size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._first?this._first.value:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._last?this._last.value:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstNode",{get:function(){return this._first},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lastNode",{get:function(){return this._last},enumerable:!0,configurable:!0}),t.prototype.iter=function(){return new t.ForwardValueIterator(this._first)},t.prototype.retro=function(){return new t.RetroValueIterator(this._last)},t.prototype.nodes=function(){return new t.ForwardNodeIterator(this._first)},t.prototype.retroNodes=function(){return new t.RetroNodeIterator(this._last)},t.prototype.assign=function(t){var e=this;this.clear(),l.each(t,function(t){e.addLast(t)})},t.prototype.push=function(t){this.addLast(t)},t.prototype.pop=function(){return this.removeLast()},t.prototype.shift=function(t){this.addFirst(t)},t.prototype.unshift=function(){return this.removeFirst()},t.prototype.addFirst=function(t){var e=new u.LinkedListNode(this,t);return this._first?(e.next=this._first,this._first.prev=e,this._first=e):(this._first=e,this._last=e),this._size++,e},t.prototype.addLast=function(t){var e=new u.LinkedListNode(this,t);return this._last?(e.prev=this._last,this._last.next=e):this._first=e,this._last=e,this._size++,e},t.prototype.insertBefore=function(t,e){if(!e||e===this._first)return this.addFirst(t);if(!(e instanceof u.LinkedListNode)||e.list!==this)throw Error("Reference node is not owned by the list.");var r=new u.LinkedListNode(this,t),n=e.prev;return r.next=e,r.prev=n,e.prev=r,n.next=r,this._size++,r},t.prototype.insertAfter=function(t,e){if(!e||e===this._last)return this.addLast(t);if(!(e instanceof u.LinkedListNode)||e.list!==this)throw Error("Reference node is not owned by the list.");var r=new u.LinkedListNode(this,t),n=e.next;return r.next=n,r.prev=e,e.next=r,n.prev=r,this._size++,r},t.prototype.removeFirst=function(){var t=this._first;if(!!t)return t===this._last?(this._first=null,this._last=null):(this._first=t.next,this._first.prev=null),t.list=null,t.next=null,t.prev=null,this._size--,t.value},t.prototype.removeLast=function(){var t=this._last;if(!!t)return t===this._first?(this._first=null,this._last=null):(this._last=t.prev,this._last.next=null),t.list=null,t.next=null,t.prev=null,this._size--,t.value},t.prototype.removeNode=function(t){if(!(t instanceof u.LinkedListNode)||t.list!==this)throw Error("Node is not owned by the list.");t===this._first&&t===this._last?(this._first=null,this._last=null):t===this._first?(this._first=t.next,this._first.prev=null):t===this._last?(this._last=t.prev,this._last.next=null):(t.next.prev=t.prev,t.prev.next=t.next),t.list=null,t.next=null,t.prev=null,this._size--},t.prototype.clear=function(){for(var t=this._first;t;){var e=t.next;t.list=null,t.prev=null,t.next=null,t=e}this._first=null,this._last=null,this._size=0},t}();e.LinkedList=c,(n=c=e.LinkedList||(e.LinkedList={})).from=function(t){var e=new n;return e.assign(t),e},i=function(){function t(t){this._node=t}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._node)},t.prototype.next=function(){if(!!this._node){var t=this._node;return this._node=t.next,t.value}},t}(),n.ForwardValueIterator=i,o=function(){function t(t){this._node=t}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._node)},t.prototype.next=function(){if(!!this._node){var t=this._node;return this._node=t.prev,t.value}},t}(),n.RetroValueIterator=o,a=function(){function t(t){this._node=t}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._node)},t.prototype.next=function(){if(!!this._node){var t=this._node;return this._node=t.next,t}},t}(),n.ForwardNodeIterator=a,s=function(){function t(t){this._node=t}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._node)},t.prototype.next=function(){if(!!this._node){var t=this._node;return this._node=t.prev,t}},t}(),n.RetroNodeIterator=s,e.LinkedList=c,(u||(u={})).LinkedListNode=function(t,e){this.list=null,this.next=null,this.prev=null,this.list=t,this.value=e}},678261:function(t,e,r){"use strict";var n,i,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var a=r(432502),s=r(34116),u=function(){function t(t){this.type=t}return Object.defineProperty(t.prototype,"isConflatable",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.conflate=function(t){return!1},t}();e.Message=u;var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"isConflatable",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.conflate=function(t){return!0},e}(u);e.ConflatableMessage=l,!function(t){function e(t,e){var r=n.get(t);if(!r||0===r.length){d(t,e);return}a.every(a.retro(r),function(r){return!r||function(t,e,r){var n=!0;try{n="function"==typeof t?t(e,r):t.messageHook(e,r)}catch(t){o(t)}return n}(r,t,e)})&&d(t,e)}t.sendMessage=e;t.postMessage=function(t,e){if(!e.isConflatable){f(t,e);return}!a.some(r,function(r){return r.handler===t&&!!r.msg&&r.msg.type===e.type&&!!r.msg.isConflatable&&r.msg.conflate(e)})&&f(t,e)};t.installMessageHook=function(t,e){var r=n.get(t);if(!r||-1===r.indexOf(e))r?r.push(e):n.set(t,[e])};t.removeMessageHook=function(t,e){var r=n.get(t);if(!r)return;var i=r.indexOf(e);if(-1!==i)r[i]=null,g(r)};t.clearData=function(t){var e=n.get(t);e&&e.length>0&&(a.ArrayExt.fill(e,null),g(e)),a.each(r,function(e){e.handler===t&&(e.handler=null,e.msg=null)})};t.flush=function(){if(!l&&0!==u)h(u),l=!0,p(),l=!1};t.getExceptionHandler=function(){return o};t.setExceptionHandler=function(t){var e=o;return o=t,e};var r=new s.LinkedList,n=new WeakMap,i=new Set,o=function(t){console.error(t)},u=0,l=!1,c="function"==typeof requestAnimationFrame?requestAnimationFrame:setImmediate,h="function"==typeof cancelAnimationFrame?cancelAnimationFrame:clearImmediate;function d(t,e){try{t.processMessage(e)}catch(t){o(t)}}function f(t,e){if(r.addLast({handler:t,msg:e}),0===u)u=c(p)}function p(){if(u=0,!r.isEmpty){var t={handler:null,msg:null};for(r.addLast(t);;){var n=r.removeFirst();if(n===t)return;n.handler&&n.msg&&e(n.handler,n.msg)}}}function g(t){0===i.size&&c(y),i.add(t)}function y(){i.forEach(m),i.clear()}function m(t){a.ArrayExt.removeAllWhere(t,b)}function b(t){return null===t}}(e.MessageLoop||(e.MessageLoop={}))},88231:function(t,e,r){"use strict";var n,i,o,a;function s(){return(s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}r.r(e),r.d(e,{AbortedDeferredError:function(){return V},Action:function(){return n},IDLE_BLOCKER:function(){return to},IDLE_FETCHER:function(){return ti},IDLE_NAVIGATION:function(){return tn},UNSAFE_DEFERRED_SYMBOL:function(){return tc},UNSAFE_DeferredData:function(){return Z},UNSAFE_ErrorResponseImpl:function(){return Q},UNSAFE_convertRouteMatchToUiMatch:function(){return x},UNSAFE_convertRoutesToDataRoutes:function(){return A},UNSAFE_decodePath:function(){return T},UNSAFE_getResolveToMatches:function(){return L},UNSAFE_invariant:function(){return d},UNSAFE_warning:function(){return f},createBrowserHistory:function(){return c},createHashHistory:function(){return h},createMemoryHistory:function(){return l},createPath:function(){return y},createRouter:function(){return tl},createStaticHandler:function(){return th},data:function(){return H},defer:function(){return G},generatePath:function(){return _},getStaticContextFromError:function(){return td},getToPathname:function(){return R},isDataWithResponseInit:function(){return tZ},isDeferredData:function(){return tG},isRouteErrorResponse:function(){return J},joinPaths:function(){return B},json:function(){return z},matchPath:function(){return N},matchRoutes:function(){return D},normalizePathname:function(){return j},parsePath:function(){return m},redirect:function(){return W},redirectDocument:function(){return Y},replace:function(){return $},resolvePath:function(){return I},resolveTo:function(){return P},stripBasename:function(){return C}}),(o=n||(n={})).Pop="POP",o.Push="PUSH",o.Replace="REPLACE";let u="popstate";function l(t){let e;void 0===t&&(t={});let{initialEntries:r=["/"],initialIndex:i,v5Compat:o=!1}=t;e=r.map((t,e)=>h(t,"string"==typeof t?null:t.state,0===e?"default":void 0));let a=l(null==i?e.length-1:i),s=n.Pop,u=null;function l(t){return Math.min(Math.max(t,0),e.length-1)}function c(){return e[a]}function h(t,r,n){void 0===r&&(r=null);let i=g(e?e[a].pathname:"/",t,r,n);return f("/"===i.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(t)),i}function d(t){return"string"==typeof t?t:y(t)}return{get index(){return a},get action(){return s},get location(){return e[a]},createHref:d,createURL:t=>new URL(d(t),"http://localhost"),encodeLocation(t){let e="string"==typeof t?m(t):t;return{pathname:e.pathname||"",search:e.search||"",hash:e.hash||""}},push(t,r){s=n.Push;let i=h(t,r);a+=1,e.splice(a,e.length,i),o&&u&&u({action:s,location:i,delta:1})},replace(t,r){s=n.Replace;let i=h(t,r);e[a]=i,o&&u&&u({action:s,location:i,delta:0})},go(t){s=n.Pop;let r=l(a+t),i=e[r];a=r,u&&u({action:s,location:i,delta:t})},listen:t=>(u=t,()=>{u=null})}}function c(t){return void 0===t&&(t={}),b(function(t,e){let{pathname:r,search:n,hash:i}=t.location;return g("",{pathname:r,search:n,hash:i},e.state&&e.state.usr||null,e.state&&e.state.key||"default")},function(t,e){return"string"==typeof e?e:y(e)},null,t)}function h(t){return void 0===t&&(t={}),b(function(t,e){let{pathname:r="/",search:n="",hash:i=""}=m(t.location.hash.substr(1));return!r.startsWith("/")&&!r.startsWith(".")&&(r="/"+r),g("",{pathname:r,search:n,hash:i},e.state&&e.state.usr||null,e.state&&e.state.key||"default")},function(t,e){let r=t.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let e=t.location.href,r=e.indexOf("#");n=-1===r?e:e.slice(0,r)}return n+"#"+("string"==typeof e?e:y(e))},function(t,e){f("/"===t.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(e)+")")},t)}function d(t,e){if(!1===t||null==t)throw Error(e)}function f(t,e){if(!t){"undefined"!=typeof console&&console.warn(e);try{throw Error(e)}catch(t){}}}function p(t,e){return{usr:t.state,key:t.key,idx:e}}function g(t,e,r,n){return void 0===r&&(r=null),s({pathname:"string"==typeof t?t:t.pathname,search:"",hash:""},"string"==typeof e?m(e):e,{state:r,key:e&&e.key||n||Math.random().toString(36).substr(2,8)})}function y(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&"?"!==r&&(e+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function m(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function b(t,e,r,i){void 0===i&&(i={});let{window:o=document.defaultView,v5Compat:a=!1}=i,l=o.history,c=n.Pop,h=null,f=m();function m(){return(l.state||{idx:null}).idx}function b(){c=n.Pop;let t=m(),e=null==t?null:t-f;f=t,h&&h({action:c,location:A.location,delta:e})}null==f&&(f=0,l.replaceState(s({},l.state,{idx:f}),""));function w(t){let e="null"!==o.location.origin?o.location.origin:o.location.href,r="string"==typeof t?t:y(t);return d(e,"No window.location.(origin|href) available to create URL for href: "+(r=r.replace(/ $/,"%20"))),new URL(r,e)}let A={get action(){return c},get location(){return t(o,l)},listen(t){if(h)throw Error("A history only accepts one active listener");return o.addEventListener(u,b),h=t,()=>{o.removeEventListener(u,b),h=null}},createHref:t=>e(o,t),createURL:w,encodeLocation(t){let e=w(t);return{pathname:e.pathname,search:e.search,hash:e.hash}},push:function(t,e){c=n.Push;let i=g(A.location,t,e);r&&r(i,t);let s=p(i,f=m()+1),u=A.createHref(i);try{l.pushState(s,"",u)}catch(t){if(t instanceof DOMException&&"DataCloneError"===t.name)throw t;o.location.assign(u)}a&&h&&h({action:c,location:A.location,delta:1})},replace:function(t,e){c=n.Replace;let i=g(A.location,t,e);r&&r(i,t);let o=p(i,f=m()),s=A.createHref(i);l.replaceState(o,"",s),a&&h&&h({action:c,location:A.location,delta:0})},go:t=>l.go(t)};return A}(a=i||(i={})).data="data",a.deferred="deferred",a.redirect="redirect",a.error="error";let w=new Set(["lazy","caseSensitive","path","id","index","children"]);function A(t,e,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),t.map((t,i)=>{let o=[...r,String(i)],a="string"==typeof t.id?t.id:o.join("-");if(d(!0!==t.index||!t.children,"Cannot specify children on an index route"),d(!n[a],'Found a route id collision on id "'+a+"\". Route id's must be globally unique within Data Router usages"),!0===t.index){let r=s({},t,e(t),{id:a});return n[a]=r,r}{let r=s({},t,e(t),{id:a,children:void 0});return n[a]=r,t.children&&(r.children=A(t.children,e,o,n)),r}})}function D(t,e,r){return void 0===r&&(r="/"),E(t,e,r,!1)}function E(t,e,r,n){let i=C(("string"==typeof e?m(e):e).pathname||"/",r);if(null==i)return null;let o=function t(e,r,n,i){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===i&&(i="");let o=(e,o,a)=>{let s={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};s.relativePath.startsWith("/")&&(d(s.relativePath.startsWith(i),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+i)+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(i.length));let u=B([i,s.relativePath]),l=n.concat(s);if(e.children&&e.children.length>0&&(d(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+u+'".'),t(e.children,r,l,u)),null!=e.path||!!e.index)r.push({path:u,score:function(t,e){let r=t.split("/"),n=r.length;return r.some(M)&&(n+=-2),e&&(n+=2),r.filter(t=>!M(t)).reduce((t,e)=>t+(S.test(e)?3:""===e?1:10),n)}(u,e.index),routesMeta:l})};return e.forEach((t,e)=>{var r;if(""!==t.path&&null!=(r=t.path)&&r.includes("?"))for(let r of function t(e){let r=e.split("/");if(0===r.length)return[];let[n,...i]=r,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===i.length)return o?[a,""]:[a];let s=t(i.join("/")),u=[];return u.push(...s.map(t=>""===t?a:[a,t].join("/"))),o&&u.push(...s),u.map(t=>e.startsWith("/")&&""===t?"/":t)}(t.path))o(t,e,r);else o(t,e)}),r}(t);(function(t){t.sort((t,e)=>t.score!==e.score?e.score-t.score:function(t,e){return t.length===e.length&&t.slice(0,-1).every((t,r)=>t===e[r])?t[t.length-1]-e[e.length-1]:0}(t.routesMeta.map(t=>t.childrenIndex),e.routesMeta.map(t=>t.childrenIndex)))})(o);let a=null;for(let t=0;null==a&&t<o.length;++t){let e=T(i);a=function(t,e,r){void 0===r&&(r=!1);let{routesMeta:n}=t,i={},o="/",a=[];for(let t=0;t<n.length;++t){let s=n[t],u=t===n.length-1,l="/"===o?e:e.slice(o.length)||"/",c=N({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},l),h=s.route;if(!c&&u&&r&&!n[n.length-1].route.index&&(c=N({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!c)return null;Object.assign(i,c.params),a.push({params:i,pathname:B([o,c.pathname]),pathnameBase:j(B([o,c.pathnameBase])),route:h}),"/"!==c.pathnameBase&&(o=B([o,c.pathnameBase]))}return a}(o[t],e,n)}return a}function x(t,e){let{route:r,pathname:n,params:i}=t;return{id:r.id,pathname:n,params:i,data:e[r.id],handle:r.handle}}let S=/^:[\w-]+$/,M=t=>"*"===t;function _(t,e){void 0===e&&(e={});let r=t;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(f(!1,'Route path "'+r+'" will be treated as if it were '+('"'+r.replace(/\*$/,"/*"))+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, '+('please change the route path to "'+r.replace(/\*$/,"/*"))+'".'),r=r.replace(/\*$/,"/*"));let n=r.startsWith("/")?"/":"",i=t=>null==t?"":"string"==typeof t?t:String(t);return n+r.split(/\/+/).map((t,r,n)=>{if(r===n.length-1&&"*"===t)return i(e["*"]);let o=t.match(/^:([\w-]+)(\??)$/);if(o){let[,t,r]=o,n=e[t];return d("?"===r||null!=n,'Missing ":'+t+'" param'),i(n)}return t.replace(/\?$/g,"")}).filter(t=>!!t).join("/")}function N(t,e){"string"==typeof t&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=function(t,e,r){void 0===e&&(e=!1),void 0===r&&(r=!0),f("*"===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 n=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(t,e,r)=>(n.push({paramName:e,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),i+="*"===t||"/*"===t?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":""!==t&&"/"!==t&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}(t.path,t.caseSensitive,t.end),i=e.match(r);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:n.reduce((t,e,r)=>{let{paramName:n,isOptional:i}=e;if("*"===n){let t=s[r]||"";a=o.slice(0,o.length-t.length).replace(/(.)\/+$/,"$1")}let u=s[r];return i&&!u?t[n]=void 0:t[n]=(u||"").replace(/%2F/g,"/"),t},{}),pathname:o,pathnameBase:a,pattern:t}}function T(t){try{return t.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(e){return f(!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 C(t,e){if("/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&"/"!==n?null:t.slice(r)||"/"}function I(t,e){void 0===e&&(e="/");let{pathname:r,search:n="",hash:i=""}="string"==typeof t?m(t):t;return{pathname:r?r.startsWith("/")?r:function(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(t=>{".."===t?r.length>1&&r.pop():"."!==t&&r.push(t)}),r.length>1?r.join("/"):"/"}(r,e):e,search:F(n),hash:U(i)}}function O(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n))+"]. Please separate it out to the "+("`to."+r)+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function k(t){return t.filter((t,e)=>0===e||t.route.path&&t.route.path.length>0)}function L(t,e){let r=k(t);return e?r.map((t,e)=>e===r.length-1?t.pathname:t.pathnameBase):r.map(t=>t.pathnameBase)}function P(t,e,r,n){let i,o;void 0===n&&(n=!1),"string"==typeof t?i=m(t):(d(!(i=s({},t)).pathname||!i.pathname.includes("?"),O("?","pathname","search",i)),d(!i.pathname||!i.pathname.includes("#"),O("#","pathname","hash",i)),d(!i.search||!i.search.includes("#"),O("#","search","hash",i)));let a=""===t||""===i.pathname,u=a?"/":i.pathname;if(null==u)o=r;else{let t=e.length-1;if(!n&&u.startsWith("..")){let e=u.split("/");for(;".."===e[0];)e.shift(),t-=1;i.pathname=e.join("/")}o=t>=0?e[t]:"/"}let l=I(i,o),c=u&&"/"!==u&&u.endsWith("/"),h=(a||"."===u)&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||h)&&(l.pathname+="/"),l}function R(t){return""===t||""===t.pathname?"/":"string"==typeof t?m(t).pathname:t.pathname}let B=t=>t.join("/").replace(/\/\/+/g,"/"),j=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),F=t=>t&&"?"!==t?t.startsWith("?")?t:"?"+t:"",U=t=>t&&"#"!==t?t.startsWith("#")?t:"#"+t:"",z=function(t,e){void 0===e&&(e={});let r="number"==typeof e?{status:e}:e,n=new Headers(r.headers);return!n.has("Content-Type")&&n.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(t),s({},r,{headers:n}))};class q{constructor(t,e){this.type="DataWithResponseInit",this.data=t,this.init=e||null}}function H(t,e){return new q(t,"number"==typeof e?{status:e}:e)}class V extends Error{}class Z{constructor(t,e){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],d(t&&"object"==typeof t&&!Array.isArray(t),"defer() only accepts plain objects"),this.abortPromise=new Promise((t,e)=>r=e),this.controller=new AbortController;let n=()=>r(new V("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(t).reduce((t,e)=>{let[r,n]=e;return Object.assign(t,{[r]:this.trackPromise(r,n)})},{}),this.done&&this.unlistenAbortSignal(),this.init=e}trackPromise(t,e){if(!(e instanceof Promise))return e;this.deferredKeys.push(t),this.pendingKeysSet.add(t);let r=Promise.race([e,this.abortPromise]).then(e=>this.onSettle(r,t,void 0,e),e=>this.onSettle(r,t,e));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(t,e,r,n){if(this.controller.signal.aborted&&r instanceof V)return this.unlistenAbortSignal(),Object.defineProperty(t,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(e),this.done&&this.unlistenAbortSignal(),void 0===r&&void 0===n){let r=Error('Deferred data for key "'+e+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(t,"_error",{get:()=>r}),this.emit(!1,e),Promise.reject(r)}return void 0===n?(Object.defineProperty(t,"_error",{get:()=>r}),this.emit(!1,e),Promise.reject(r)):(Object.defineProperty(t,"_data",{get:()=>n}),this.emit(!1,e),n)}emit(t,e){this.subscribers.forEach(r=>r(t,e))}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((t,e)=>this.pendingKeysSet.delete(e)),this.emit(!0)}async resolveData(t){let e=!1;if(!this.done){let r=()=>this.cancel();t.addEventListener("abort",r),e=await new Promise(e=>{this.subscribe(n=>{t.removeEventListener("abort",r),(n||this.done)&&e(n)})})}return e}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return d(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((t,e)=>{let[r,n]=e;return Object.assign(t,{[r]:function(t){var e;if(!((e=t)instanceof Promise&&!0===e._tracked))return t;if(t._error)throw t._error;return t._data}(n)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}let G=function(t,e){return void 0===e&&(e={}),new Z(t,"number"==typeof e?{status:e}:e)},W=function(t,e){void 0===e&&(e=302);let r=e;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",t),new Response(null,s({},r,{headers:n}))},Y=(t,e)=>{let r=W(t,e);return r.headers.set("X-Remix-Reload-Document","true"),r},$=(t,e)=>{let r=W(t,e);return r.headers.set("X-Remix-Replace","true"),r};class Q{constructor(t,e,r,n){void 0===n&&(n=!1),this.status=t,this.statusText=e||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function J(t){return null!=t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"boolean"==typeof t.internal&&"data"in t}let X=["post","put","patch","delete"],K=new Set(X),tt=new Set(["get",...X]),te=new Set([301,302,303,307,308]),tr=new Set([307,308]),tn={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ti={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},to={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ta=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ts=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),tu="remix-router-transitions";function tl(t){let e,r,o,a,u,l;let c=t.window?t.window:"undefined"!=typeof window?window:void 0,h=void 0!==c&&void 0!==c.document&&void 0!==c.document.createElement,p=!h;if(d(t.routes.length>0,"You must provide a non-empty routes array to createRouter"),t.mapRouteProperties)e=t.mapRouteProperties;else if(t.detectErrorBoundary){let r=t.detectErrorBoundary;e=t=>({hasErrorBoundary:r(t)})}else e=ts;let y={},m=A(t.routes,e,void 0,y),b=t.basename||"/",w=t.dataStrategy||tE,S=t.patchRoutesOnNavigation,M=s({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},t.future),_=null,N=new Set,T=null,I=null,O=null,k=null!=t.hydrationData,L=D(m,t.history.location,b),P=!1,R=null;if(null==L&&!S){let e=tj(404,{pathname:t.history.location.pathname}),{matches:r,route:n}=tB(m);L=r,R={[n.id]:e}}if(L&&!t.hydrationData&&ea(L,m,t.history.location.pathname).active&&(L=null),L){if(L.some(t=>t.route.lazy))o=!1;else if(L.some(t=>t.route.loader)){if(M.v7_partialHydration){let e=t.hydrationData?t.hydrationData.loaderData:null,r=t.hydrationData?t.hydrationData.errors:null;if(r){let t=L.findIndex(t=>void 0!==r[t.route.id]);o=L.slice(0,t+1).every(t=>!tv(t.route,e,r))}else o=L.every(t=>!tv(t.route,e,r))}else o=null!=t.hydrationData}else o=!0}else if(o=!1,L=[],M.v7_partialHydration){let e=ea(null,m,t.history.location.pathname);e.active&&e.matches&&(P=!0,L=e.matches)}let B={historyAction:t.history.action,location:t.history.location,matches:L,initialized:o,navigation:tn,restoreScrollPosition:null==t.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||R,fetchers:new Map,blockers:new Map},j=n.Pop,F=!1,U=!1,z=new Map,q=null,H=!1,V=!1,Z=[],G=new Set,W=new Map,Y=0,$=-1,Q=new Map,X=new Set,K=new Map,tt=new Map,te=new Set,tl=new Map,tc=new Map;function th(t,e){void 0===e&&(e={}),B=s({},B,t);let r=[],n=[];M.v7_fetcherPersist&&B.fetchers.forEach((t,e)=>{"idle"===t.state&&(te.has(e)?n.push(e):r.push(e))}),te.forEach(t=>{!B.fetchers.has(t)&&!W.has(t)&&n.push(t)}),[...N].forEach(t=>t(B,{deletedFetchers:n,viewTransitionOpts:e.viewTransitionOpts,flushSync:!0===e.flushSync})),M.v7_fetcherPersist?(r.forEach(t=>B.fetchers.delete(t)),n.forEach(t=>tK(t))):n.forEach(t=>te.delete(t))}function td(e,i,o){var a,u;let l,c;let{flushSync:h}=void 0===o?{}:o,d=null!=B.actionData&&null!=B.navigation.formMethod&&t$(B.navigation.formMethod)&&"loading"===B.navigation.state&&(null==(a=e.state)?void 0:a._isRedirect)!==!0;l=i.actionData?Object.keys(i.actionData).length>0?i.actionData:null:d?B.actionData:null;let f=i.loaderData?tL(B.loaderData,i.loaderData,i.matches||[],i.errors):B.loaderData,p=B.blockers;p.size>0&&(p=new Map(p)).forEach((t,e)=>p.set(e,to));let g=!0===F||null!=B.navigation.formMethod&&t$(B.navigation.formMethod)&&(null==(u=e.state)?void 0:u._isRedirect)!==!0;if(r&&(m=r,r=void 0),H||j===n.Pop||(j===n.Push?t.history.push(e,e.state):j===n.Replace&&t.history.replace(e,e.state)),j===n.Pop){let t=z.get(B.location.pathname);t&&t.has(e.pathname)?c={currentLocation:B.location,nextLocation:e}:z.has(e.pathname)&&(c={currentLocation:e,nextLocation:B.location})}else if(U){let t=z.get(B.location.pathname);t?t.add(e.pathname):(t=new Set([e.pathname]),z.set(B.location.pathname,t)),c={currentLocation:B.location,nextLocation:e}}th(s({},i,{actionData:l,loaderData:f,historyAction:j,location:e,initialized:!0,navigation:tn,revalidation:"idle",restoreScrollPosition:eo(e,i.matches||B.matches),preventScrollReset:g,blockers:p}),{viewTransitionOpts:c,flushSync:!0===h}),j=n.Pop,F=!1,U=!1,H=!1,V=!1,Z=[]}async function tf(e,r){if("number"==typeof e){t.history.go(e);return}let i=tp(B.location,B.matches,b,M.v7_prependBasename,e,M.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:o,submission:a,error:u}=tg(M.v7_normalizeFormMethod,!1,i,r),l=B.location,c=g(B.location,o,r&&r.state);c=s({},c,t.history.encodeLocation(c));let h=r&&null!=r.replace?r.replace:void 0,d=n.Push;!0===h?d=n.Replace:!1===h||null!=a&&t$(a.formMethod)&&a.formAction===B.location.pathname+B.location.search&&(d=n.Replace);let f=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,p=!0===(r&&r.flushSync),y=ee({currentLocation:l,nextLocation:c,historyAction:d});if(y){et(y,{state:"blocked",location:c,proceed(){et(y,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),tf(e,r)},reset(){let t=new Map(B.blockers);t.set(y,to),th({blockers:t})}});return}return await ty(d,c,{submission:a,pendingError:u,preventScrollReset:f,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:p})}async function ty(e,n,o){let a;u&&u.abort(),u=null,j=e,H=!0===(o&&o.startUninterruptedRevalidation),function(t,e){T&&O&&(T[ei(t,e)]=O())}(B.location,B.matches),F=!0===(o&&o.preventScrollReset),U=!0===(o&&o.enableViewTransition);let l=r||m,c=o&&o.overrideNavigation,h=null!=o&&o.initialHydration&&B.matches&&B.matches.length>0&&!P?B.matches:D(l,n,b),d=!0===(o&&o.flushSync);if(h&&B.initialized&&!V&&function(t,e){if(t.pathname!==e.pathname||t.search!==e.search)return!1;if(""===t.hash)return""!==e.hash;if(t.hash===e.hash)return!0;if(""!==e.hash)return!0;return!1}(B.location,n)&&!(o&&o.submission&&t$(o.submission.formMethod))){td(n,{matches:h},{flushSync:d});return}let f=ea(h,l,n.pathname);if(f.active&&f.matches&&(h=f.matches),!h){let{error:t,notFoundMatches:e,route:r}=er(n.pathname);td(n,{matches:e,loaderData:{},errors:{[r.id]:t}},{flushSync:d});return}u=new AbortController;let p=tT(t.history,n,u.signal,o&&o.submission);if(o&&o.pendingError)a=[tR(h).route.id,{type:i.error,error:o.pendingError}];else if(o&&o.submission&&t$(o.submission.formMethod)){let e=await tb(p,n,o.submission,h,f.active,{replace:o.replace,flushSync:d});if(e.shortCircuited)return;if(e.pendingActionResult){let[t,r]=e.pendingActionResult;if(tH(r)&&J(r.error)&&404===r.error.status){u=null,td(n,{matches:e.matches,loaderData:{},errors:{[t]:r.error}});return}}h=e.matches||h,a=e.pendingActionResult,c=t2(n,o.submission),d=!1,f.active=!1,p=tT(t.history,p.url,p.signal)}let{shortCircuited:g,matches:y,loaderData:w,errors:A}=await tw(p,n,h,f.active,c,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,d,a);if(!g)u=null,td(n,s({matches:y||h},tP(a),{loaderData:w,errors:A}))}async function tb(t,e,r,o,a,s){let u;if(void 0===s&&(s={}),tZ(),th({navigation:function(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}}(e,r)},{flushSync:!0===s.flushSync}),a){let r=await es(o,e.pathname,t.signal);if("aborted"===r.type)return{shortCircuited:!0};if("error"===r.type){let t=tR(r.partialMatches).route.id;return{matches:r.partialMatches,pendingActionResult:[t,{type:i.error,error:r.error}]}}else if(r.matches)o=r.matches;else{let{notFoundMatches:t,error:r,route:n}=er(e.pathname);return{matches:t,pendingActionResult:[n.id,{type:i.error,error:r}]}}}let l=t0(o,e);if(l.route.action||l.route.lazy){if(u=(await tO("action",B,t,[l],o,null))[l.route.id],t.signal.aborted)return{shortCircuited:!0}}else u={type:i.error,error:tj(405,{method:t.method,pathname:e.pathname,routeId:l.route.id})};if(tV(u)){let e;return e=s&&null!=s.replace?s.replace:tN(u.response.headers.get("Location"),new URL(t.url),b)===B.location.pathname+B.location.search,await tI(t,u,!0,{submission:r,replace:e}),{shortCircuited:!0}}if(tq(u))throw tj(400,{type:"defer-action"});if(tH(u)){let t=tR(o,l.route.id);return!0!==(s&&s.replace)&&(j=n.Push),{matches:o,pendingActionResult:[t.route.id,u]}}return{matches:o,pendingActionResult:[l.route.id,u]}}async function tw(e,n,i,o,a,l,c,h,d,f,p){let g=a||t2(n,l),y=l||c||t1(g),w=!H&&(!M.v7_partialHydration||!d);if(o){if(w){let t=tD(p);th(s({navigation:g},void 0!==t?{actionData:t}:{}),{flushSync:f})}let t=await es(i,n.pathname,e.signal);if("aborted"===t.type)return{shortCircuited:!0};if("error"===t.type){let e=tR(t.partialMatches).route.id;return{matches:t.partialMatches,loaderData:{},errors:{[e]:t.error}}}else if(t.matches)i=t.matches;else{let{error:t,notFoundMatches:e,route:r}=er(n.pathname);return{matches:e,loaderData:{},errors:{[r.id]:t}}}}let A=r||m,[D,E]=tm(t.history,B,i,y,n,M.v7_partialHydration&&!0===d,M.v7_skipActionErrorRevalidation,V,Z,G,te,K,X,A,b,p);if(en(t=>!(i&&i.some(e=>e.route.id===t))||D&&D.some(e=>e.route.id===t)),$=++Y,0===D.length&&0===E.length){let t=t6();return td(n,s({matches:i,loaderData:{},errors:p&&tH(p[1])?{[p[0]]:p[1].error}:null},tP(p),t?{fetchers:new Map(B.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(w){let t={};if(!o){t.navigation=g;let e=tD(p);void 0!==e&&(t.actionData=e)}E.length>0&&(t.fetchers=function(t){return t.forEach(t=>{let e=B.fetchers.get(t.key),r=t4(void 0,e?e.data:void 0);B.fetchers.set(t.key,r)}),new Map(B.fetchers)}(E)),th(t,{flushSync:f})}E.forEach(t=>{t3(t.key),t.controller&&W.set(t.key,t.controller)});let x=()=>E.forEach(t=>t3(t.key));u&&u.signal.addEventListener("abort",x);let{loaderResults:S,fetcherResults:_}=await tU(B,i,D,E,e);if(e.signal.aborted)return{shortCircuited:!0};u&&u.signal.removeEventListener("abort",x),E.forEach(t=>W.delete(t.key));let N=tF(S);if(N)return await tI(e,N.result,!0,{replace:h}),{shortCircuited:!0};if(N=tF(_))return X.add(N.key),await tI(e,N.result,!0,{replace:h}),{shortCircuited:!0};let{loaderData:T,errors:C}=tk(B,i,S,p,E,_,tl);tl.forEach((t,e)=>{t.subscribe(r=>{(r||t.done)&&tl.delete(e)})}),M.v7_partialHydration&&d&&B.errors&&(C=s({},B.errors,C));let I=t6(),O=t7($),k=I||O||E.length>0;return s({matches:i,loaderData:T,errors:C},k?{fetchers:new Map(B.fetchers)}:{})}function tD(t){if(t&&!tH(t[1]))return{[t[0]]:t[1].data};if(B.actionData)return 0===Object.keys(B.actionData).length?null:B.actionData}async function tS(e,n,i,o,a,s,l,c,h){function f(t){if(!t.route.action&&!t.route.lazy){let t=tj(405,{method:h.formMethod,pathname:i,routeId:n});return tW(e,n,t,{flushSync:l}),!0}return!1}if(tZ(),K.delete(e),!s&&f(o))return;let p=B.fetchers.get(e);tG(e,function(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}}(h,p),{flushSync:l});let g=new AbortController,y=tT(t.history,i,g.signal,h);if(s){let t=await es(a,new URL(y.url).pathname,y.signal,e);if("aborted"===t.type)return;if("error"===t.type){tW(e,n,t.error,{flushSync:l});return}else if(t.matches){if(f(o=t0(a=t.matches,i)))return}else{tW(e,n,tj(404,{pathname:i}),{flushSync:l});return}}W.set(e,g);let w=Y,A=(await tO("action",B,y,[o],a,e))[o.route.id];if(y.signal.aborted){W.get(e)===g&&W.delete(e);return}if(M.v7_fetcherPersist&&te.has(e)){if(tV(A)||tH(A)){tG(e,t5(void 0));return}}else{if(tV(A)){if(W.delete(e),!($>w))return X.add(e),tG(e,t4(h)),tI(y,A,!1,{fetcherSubmission:h,preventScrollReset:c});tG(e,t5(void 0));return}if(tH(A)){tW(e,n,A.error);return}}if(tq(A))throw tj(400,{type:"defer-action"});let E=B.navigation.location||B.location,x=tT(t.history,E,g.signal),S=r||m,_="idle"!==B.navigation.state?D(S,B.navigation.location,b):B.matches;d(_,"Didn't find any matches after fetcher action");let N=++Y;Q.set(e,N);let T=t4(h,A.data);B.fetchers.set(e,T);let[C,I]=tm(t.history,B,_,h,E,!1,M.v7_skipActionErrorRevalidation,V,Z,G,te,K,X,S,b,[o.route.id,A]);I.filter(t=>t.key!==e).forEach(t=>{let e=t.key,r=B.fetchers.get(e),n=t4(void 0,r?r.data:void 0);B.fetchers.set(e,n),t3(e),t.controller&&W.set(e,t.controller)}),th({fetchers:new Map(B.fetchers)});let O=()=>I.forEach(t=>t3(t.key));g.signal.addEventListener("abort",O);let{loaderResults:k,fetcherResults:L}=await tU(B,_,C,I,x);if(g.signal.aborted)return;g.signal.removeEventListener("abort",O),Q.delete(e),W.delete(e),I.forEach(t=>W.delete(t.key));let P=tF(k);if(P)return tI(x,P.result,!1,{preventScrollReset:c});if(P=tF(L))return X.add(P.key),tI(x,P.result,!1,{preventScrollReset:c});let{loaderData:R,errors:F}=tk(B,_,k,void 0,I,L,tl);if(B.fetchers.has(e)){let t=t5(A.data);B.fetchers.set(e,t)}t7(N),"loading"===B.navigation.state&&N>$?(d(j,"Expected pending action"),u&&u.abort(),td(B.navigation.location,{matches:_,loaderData:R,errors:F,fetchers:new Map(B.fetchers)})):(th({errors:F,loaderData:tL(B.loaderData,R,_,F),fetchers:new Map(B.fetchers)}),V=!1)}async function tC(e,r,n,i,o,a,s,u,l){let c=B.fetchers.get(e);tG(e,t4(l,c?c.data:void 0),{flushSync:s});let h=new AbortController,f=tT(t.history,n,h.signal);if(a){let t=await es(o,new URL(f.url).pathname,f.signal,e);if("aborted"===t.type)return;if("error"===t.type){tW(e,r,t.error,{flushSync:s});return}else if(t.matches)i=t0(o=t.matches,n);else{tW(e,r,tj(404,{pathname:n}),{flushSync:s});return}}W.set(e,h);let p=Y,g=(await tO("loader",B,f,[i],o,e))[i.route.id];if(tq(g)&&(g=await tX(g,f.signal,!0)||g),W.get(e)===h&&W.delete(e),!f.signal.aborted){if(te.has(e)){tG(e,t5(void 0));return}if(tV(g)){if($>p){tG(e,t5(void 0));return}X.add(e),await tI(f,g,!1,{preventScrollReset:u});return}if(tH(g)){tW(e,r,g.error);return}d(!tq(g),"Unhandled fetcher deferred data"),tG(e,t5(g.data))}}async function tI(e,r,i,o){let{submission:a,fetcherSubmission:l,preventScrollReset:f,replace:p}=void 0===o?{}:o;r.response.headers.has("X-Remix-Revalidate")&&(V=!0);let y=r.response.headers.get("Location");d(y,"Expected a Location header on the redirect Response"),y=tN(y,new URL(e.url),b);let m=g(B.location,y,{_isRedirect:!0});if(h){let e=!1;if(r.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(ta.test(y)){let r=t.history.createURL(y);e=r.origin!==c.location.origin||null==C(r.pathname,b)}if(e){p?c.location.replace(y):c.location.assign(y);return}}u=null;let w=!0===p||r.response.headers.has("X-Remix-Replace")?n.Replace:n.Push,{formMethod:A,formAction:D,formEncType:E}=B.navigation;!a&&!l&&A&&D&&E&&(a=t1(B.navigation));let x=a||l;if(tr.has(r.response.status)&&x&&t$(x.formMethod))await ty(w,m,{submission:s({},x,{formAction:y}),preventScrollReset:f||F,enableViewTransition:i?U:void 0});else{let t=t2(m,a);await ty(w,m,{overrideNavigation:t,fetcherSubmission:l,preventScrollReset:f||F,enableViewTransition:i?U:void 0})}}async function tO(t,r,n,o,a,s){let u;let l={};try{u=await tx(w,t,r,n,o,a,s,y,e)}catch(t){return o.forEach(e=>{l[e.route.id]={type:i.error,error:t}}),l}for(let[t,e]of Object.entries(u))if(tz(e)){let r=e.result;l[t]={type:i.redirect,response:t_(r,n,t,a,b,M.v7_relativeSplatPath)}}else l[t]=await tM(e);return l}async function tU(e,r,n,o,a){let s=e.matches,u=tO("loader",e,a,n,r,null),l=Promise.all(o.map(async r=>{if(!r.matches||!r.match||!r.controller)return Promise.resolve({[r.key]:{type:i.error,error:tj(404,{pathname:r.path})}});{let n=(await tO("loader",e,tT(t.history,r.path,r.controller.signal),[r.match],r.matches,r.key))[r.match.route.id];return{[r.key]:n}}})),c=await u,h=(await l).reduce((t,e)=>Object.assign(t,e),{});return await Promise.all([tQ(r,c,a.signal,s,e.loaderData),tJ(r,h,o)]),{loaderResults:c,fetcherResults:h}}function tZ(){V=!0,Z.push(...en()),K.forEach((t,e)=>{W.has(e)&&G.add(e),t3(e)})}function tG(t,e,r){void 0===r&&(r={}),B.fetchers.set(t,e),th({fetchers:new Map(B.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function tW(t,e,r,n){void 0===n&&(n={});let i=tR(B.matches,e);tK(t),th({errors:{[i.route.id]:r},fetchers:new Map(B.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function tY(t){return tt.set(t,(tt.get(t)||0)+1),te.has(t)&&te.delete(t),B.fetchers.get(t)||ti}function tK(t){let e=B.fetchers.get(t);W.has(t)&&!(e&&"loading"===e.state&&Q.has(t))&&t3(t),K.delete(t),Q.delete(t),X.delete(t),M.v7_fetcherPersist&&te.delete(t),G.delete(t),B.fetchers.delete(t)}function t3(t){let e=W.get(t);e&&(e.abort(),W.delete(t))}function t8(t){for(let e of t){let t=t5(tY(e).data);B.fetchers.set(e,t)}}function t6(){let t=[],e=!1;for(let r of X){let n=B.fetchers.get(r);d(n,"Expected fetcher: "+r),"loading"===n.state&&(X.delete(r),t.push(r),e=!0)}return t8(t),e}function t7(t){let e=[];for(let[r,n]of Q)if(n<t){let t=B.fetchers.get(r);d(t,"Expected fetcher: "+r),"loading"===t.state&&(t3(r),Q.delete(r),e.push(r))}return t8(e),e.length>0}function t9(t){B.blockers.delete(t),tc.delete(t)}function et(t,e){let r=B.blockers.get(t)||to;d("unblocked"===r.state&&"blocked"===e.state||"blocked"===r.state&&"blocked"===e.state||"blocked"===r.state&&"proceeding"===e.state||"blocked"===r.state&&"unblocked"===e.state||"proceeding"===r.state&&"unblocked"===e.state,"Invalid blocker state transition: "+r.state+" -> "+e.state);let n=new Map(B.blockers);n.set(t,e),th({blockers:n})}function ee(t){let{currentLocation:e,nextLocation:r,historyAction:n}=t;if(0===tc.size)return;tc.size>1&&f(!1,"A router only supports one blocker at a time");let i=Array.from(tc.entries()),[o,a]=i[i.length-1],s=B.blockers.get(o);if(!s||"proceeding"!==s.state){if(a({currentLocation:e,nextLocation:r,historyAction:n}))return o}}function er(t){let e=tj(404,{pathname:t}),{matches:n,route:i}=tB(r||m);return en(),{notFoundMatches:n,route:i,error:e}}function en(t){let e=[];return tl.forEach((r,n)=>{(!t||t(n))&&(r.cancel(),e.push(n),tl.delete(n))}),e}function ei(t,e){return I&&I(t,e.map(t=>x(t,B.loaderData)))||t.key}function eo(t,e){if(T){let r=T[ei(t,e)];if("number"==typeof r)return r}return null}function ea(t,e,r){if(S){if(!t)return{active:!0,matches:E(e,r,b,!0)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:E(e,r,b,!0)}}return{active:!1,matches:null}}async function es(t,n,i,o){if(!S)return{type:"success",matches:t};let a=t;for(;;){let t=null==r,s=r||m,u=y;try{await S({signal:i,path:n,matches:a,fetcherKey:o,patch:(t,r)=>{!i.aborted&&tA(t,r,s,u,e)}})}catch(t){return{type:"error",error:t,partialMatches:a}}finally{t&&!i.aborted&&(m=[...m])}if(i.aborted)return{type:"aborted"};let l=D(s,n,b);if(l)return{type:"success",matches:l};let c=E(s,n,b,!0);if(!c||a.length===c.length&&a.every((t,e)=>t.route.id===c[e].route.id))return{type:"success",matches:null};a=c}}return a={get basename(){return b},get future(){return M},get state(){return B},get routes(){return m},get window(){return c},initialize:function(){if(_=t.history.listen(e=>{let{action:r,location:n,delta:i}=e;if(l){l(),l=void 0;return}f(0===tc.size||null!=i,"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 o=ee({currentLocation:B.location,nextLocation:n,historyAction:r});if(o&&null!=i){let e=new Promise(t=>{l=t});t.history.go(-1*i),et(o,{state:"blocked",location:n,proceed(){et(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),e.then(()=>t.history.go(i))},reset(){let t=new Map(B.blockers);t.set(o,to),th({blockers:t})}});return}return ty(r,n)}),h){(function(t,e){try{let r=t.sessionStorage.getItem(tu);if(r){let t=JSON.parse(r);for(let[r,n]of Object.entries(t||{}))n&&Array.isArray(n)&&e.set(r,new Set(n||[]))}}catch(t){}})(c,z);let t=()=>(function(t,e){if(e.size>0){let r={};for(let[t,n]of e)r[t]=[...n];try{t.sessionStorage.setItem(tu,JSON.stringify(r))}catch(t){f(!1,"Failed to save applied view transitions in sessionStorage ("+t+").")}}})(c,z);c.addEventListener("pagehide",t),q=()=>c.removeEventListener("pagehide",t)}return!B.initialized&&ty(n.Pop,B.location,{initialHydration:!0}),a},subscribe:function(t){return N.add(t),()=>N.delete(t)},enableScrollRestoration:function(t,e,r){if(T=t,O=e,I=r||null,!k&&B.navigation===tn){k=!0;let t=eo(B.location,B.matches);null!=t&&th({restoreScrollPosition:t})}return()=>{T=null,O=null,I=null}},navigate:tf,fetch:function(t,e,n,i){if(p)throw 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.");t3(t);let o=!0===(i&&i.flushSync),a=r||m,s=tp(B.location,B.matches,b,M.v7_prependBasename,n,M.v7_relativeSplatPath,e,null==i?void 0:i.relative),u=D(a,s,b),l=ea(u,a,s);if(l.active&&l.matches&&(u=l.matches),!u){tW(t,e,tj(404,{pathname:s}),{flushSync:o});return}let{path:c,submission:h,error:d}=tg(M.v7_normalizeFormMethod,!0,s,i);if(d){tW(t,e,d,{flushSync:o});return}let f=t0(u,c),g=!0===(i&&i.preventScrollReset);if(h&&t$(h.formMethod)){tS(t,e,c,f,u,l.active,o,g,h);return}K.set(t,{routeId:e,path:c}),tC(t,e,c,f,u,l.active,o,g,h)},revalidate:function(){if(tZ(),th({revalidation:"loading"}),"submitting"!==B.navigation.state){if("idle"===B.navigation.state){ty(B.historyAction,B.location,{startUninterruptedRevalidation:!0});return}ty(j||B.historyAction,B.navigation.location,{overrideNavigation:B.navigation,enableViewTransition:!0===U})}},createHref:e=>t.history.createHref(e),encodeLocation:e=>t.history.encodeLocation(e),getFetcher:tY,deleteFetcher:function(t){let e=(tt.get(t)||0)-1;e<=0?(tt.delete(t),te.add(t),!M.v7_fetcherPersist&&tK(t)):tt.set(t,e),th({fetchers:new Map(B.fetchers)})},dispose:function(){_&&_(),q&&q(),N.clear(),u&&u.abort(),B.fetchers.forEach((t,e)=>tK(e)),B.blockers.forEach((t,e)=>t9(e))},getBlocker:function(t,e){let r=B.blockers.get(t)||to;return tc.get(t)!==e&&tc.set(t,e),r},deleteBlocker:t9,patchRoutes:function(t,n){let i=null==r;tA(t,n,r||m,y,e),i&&(m=[...m],th({}))},_internalFetchControllers:W,_internalActiveDeferreds:tl,_internalSetRoutes:function(t){r=A(t,e,void 0,y={})}}}let tc=Symbol("deferred");function th(t,e){let r;d(t.length>0,"You must provide a non-empty routes array to createStaticHandler");let n={},o=(e?e.basename:null)||"/";if(null!=e&&e.mapRouteProperties)r=e.mapRouteProperties;else if(null!=e&&e.detectErrorBoundary){let t=e.detectErrorBoundary;r=e=>({hasErrorBoundary:t(e)})}else r=ts;let a=s({v7_relativeSplatPath:!1,v7_throwAbortReason:!1},e?e.future:null),u=A(t,r,void 0,n);async function l(t,e){let{requestContext:r,skipLoaderErrorBubbling:n,dataStrategy:i}=void 0===e?{}:e,a=new URL(t.url),l=t.method,c=g("",y(a),null,"default"),d=D(u,c,o);if(tY(l)||"HEAD"===l){if(!d){let t=tj(404,{pathname:c.pathname}),{matches:e,route:r}=tB(u);return{basename:o,location:c,matches:e,loaderData:{},actionData:null,errors:{[r.id]:t},statusCode:t.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}}else{let t=tj(405,{method:l}),{matches:e,route:r}=tB(u);return{basename:o,location:c,matches:e,loaderData:{},actionData:null,errors:{[r.id]:t},statusCode:t.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let f=await h(t,c,d,r,i||null,!0===n,null);return tW(f)?f:s({location:c,basename:o},f)}async function c(t,e){let{routeId:r,requestContext:n,dataStrategy:i}=void 0===e?{}:e,a=new URL(t.url),s=t.method,l=g("",y(a),null,"default"),c=D(u,l,o);if(tY(s)||"HEAD"===s||"OPTIONS"===s){if(!c)throw tj(404,{pathname:l.pathname})}else throw tj(405,{method:s});let d=r?c.find(t=>t.route.id===r):t0(c,l);if(r&&!d)throw tj(403,{pathname:l.pathname,routeId:r});if(!d)throw tj(404,{pathname:l.pathname});let f=await h(t,l,c,n,i||null,!1,d);if(tW(f))return f;let p=f.errors?Object.values(f.errors)[0]:void 0;if(void 0!==p)throw p;if(f.actionData)return Object.values(f.actionData)[0];if(f.loaderData){var m;let t=Object.values(f.loaderData)[0];return null!=(m=f.activeDeferreds)&&m[d.route.id]&&(t[tc]=f.activeDeferreds[d.route.id]),t}}async function h(t,e,r,n,o,a,u){d(t.signal,"query()/queryRoute() requests must contain an AbortController signal");try{if(t$(t.method.toLowerCase()))return await f(t,r,u||t0(r,e),n,o,a,null!=u);let i=await p(t,r,n,o,a,u);return tW(i)?i:s({},i,{actionData:null,actionHeaders:{}})}catch(t){if(function(t){return null!=t&&"object"==typeof t&&"type"in t&&"result"in t&&(t.type===i.data||t.type===i.error)}(t)&&tW(t.result)){if(t.type===i.error)throw t.result;return t.result}if(function(t){if(!tW(t))return!1;let e=t.status,r=t.headers.get("Location");return e>=300&&e<=399&&null!=r}(t))return t;throw t}}async function f(t,e,r,n,o,u,l){let c;if(r.route.action||r.route.lazy)c=(await m("action",t,[r],e,l,n,o))[r.route.id],t.signal.aborted&&tf(t,l,a);else{let e=tj(405,{method:t.method,pathname:new URL(t.url).pathname,routeId:r.route.id});if(l)throw e;c={type:i.error,error:e}}if(tV(c))throw new Response(null,{status:c.response.status,headers:{Location:c.response.headers.get("Location")}});if(tq(c)){let t=tj(400,{type:"defer-action"});if(l)throw t;c={type:i.error,error:t}}if(l){if(tH(c))throw c.error;return{matches:[r],loaderData:{},actionData:{[r.route.id]:c.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let h=new Request(t.url,{headers:t.headers,redirect:t.redirect,signal:t.signal});if(tH(c)){let t=u?r:tR(e,r.route.id),i=await p(h,e,n,o,u,null,[t.route.id,c]);return s({},i,{statusCode:J(c.error)?c.error.status:null!=c.statusCode?c.statusCode:500,actionData:null,actionHeaders:s({},c.headers?{[r.route.id]:c.headers}:{})})}let d=await p(h,e,n,o,u,null);return s({},d,{actionData:{[r.route.id]:c.data}},c.statusCode?{statusCode:c.statusCode}:{},{actionHeaders:c.headers?{[r.route.id]:c.headers}:{}})}async function p(t,e,r,n,i,o,u){let l=null!=o;if(l&&!(null!=o&&o.route.loader)&&!(null!=o&&o.route.lazy))throw tj(400,{method:t.method,pathname:new URL(t.url).pathname,routeId:null==o?void 0:o.route.id});let c=(o?[o]:u&&tH(u[1])?ty(e,u[0]):e).filter(t=>t.route.loader||t.route.lazy);if(0===c.length)return{matches:e,loaderData:e.reduce((t,e)=>Object.assign(t,{[e.route.id]:null}),{}),errors:u&&tH(u[1])?{[u[0]]:u[1].error}:null,statusCode:200,loaderHeaders:{},activeDeferreds:null};let h=await m("loader",t,c,e,l,r,n);t.signal.aborted&&tf(t,l,a);let d=new Map,f=tO(e,h,u,d,i),p=new Set(c.map(t=>t.route.id));return e.forEach(t=>{!p.has(t.route.id)&&(f.loaderData[t.route.id]=null)}),s({},f,{matches:e,activeDeferreds:d.size>0?Object.fromEntries(d.entries()):null})}async function m(t,e,i,s,u,l,c){let h=await tx(c||tE,t,null,e,i,s,null,n,r,l),d={};return await Promise.all(s.map(async t=>{if(!(t.route.id in h))return;let r=h[t.route.id];if(tz(r))throw t_(r.result,e,t.route.id,s,o,a.v7_relativeSplatPath);if(tW(r.result)&&u)throw r;d[t.route.id]=await tM(r)})),d}return{dataRoutes:u,query:l,queryRoute:c}}function td(t,e,r){return s({},e,{statusCode:J(r)?r.status:500,errors:{[e._deepestRenderedBoundaryId||t[0].id]:r}})}function tf(t,e,r){if(r.v7_throwAbortReason&&void 0!==t.signal.reason)throw t.signal.reason;throw Error((e?"queryRoute":"query")+"() call aborted: "+t.method+" "+t.url)}function tp(t,e,r,n,i,o,a,s){let u,l;if(a){for(let t of(u=[],e))if(u.push(t),t.route.id===a){l=t;break}}else u=e,l=e[e.length-1];let c=P(i||".",L(u,o),C(t.pathname,r)||t.pathname,"path"===s);if(null==i&&(c.search=t.search,c.hash=t.hash),(null==i||""===i||"."===i)&&l){let t=tK(c.search);if(l.route.index&&!t)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!l.route.index&&t){let t=new URLSearchParams(c.search),e=t.getAll("index");t.delete("index"),e.filter(t=>t).forEach(e=>t.append("index",e));let r=t.toString();c.search=r?"?"+r:""}}return n&&"/"!==r&&(c.pathname="/"===c.pathname?r:B([r,c.pathname])),y(c)}function tg(t,e,r,n){var i;let o,a;if(!n||!(null!=(i=n)&&("formData"in i&&null!=i.formData||"body"in i&&void 0!==i.body)))return{path:r};if(n.formMethod&&!tY(n.formMethod))return{path:r,error:tj(405,{method:n.formMethod})};let s=()=>({path:r,error:tj(400,{type:"invalid-body"})}),u=n.formMethod||"get",l=t?u.toUpperCase():u.toLowerCase(),c=tU(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!t$(l))return s();let t="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((t,e)=>{let[r,n]=e;return""+t+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:l,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:t}}}if("application/json"===n.formEncType){if(!t$(l))return s();try{let t="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:l,formAction:c,formEncType:n.formEncType,formData:void 0,json:t,text:void 0}}}catch(t){return s()}}}if(d("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=tC(n.formData),a=n.formData;else if(n.body instanceof FormData)o=tC(n.body),a=n.body;else if(n.body instanceof URLSearchParams)a=tI(o=n.body);else if(null==n.body)o=new URLSearchParams,a=new FormData;else try{o=new URLSearchParams(n.body),a=tI(o)}catch(t){return s()}let h={formMethod:l,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:a,json:void 0,text:void 0};if(t$(h.formMethod))return{path:r,submission:h};let f=m(r);return e&&f.search&&tK(f.search)&&o.append("index",""),f.search="?"+o,{path:y(f),submission:h}}function ty(t,e,r){void 0===r&&(r=!1);let n=t.findIndex(t=>t.route.id===e);return n>=0?t.slice(0,r?n+1:n):t}function tm(t,e,r,n,i,o,a,u,l,c,h,d,f,p,g,y){let m=y?tH(y[1])?y[1].error:y[1].data:void 0,b=t.createURL(e.location),w=t.createURL(i),A=r;o&&e.errors?A=ty(r,Object.keys(e.errors)[0],!0):y&&tH(y[1])&&(A=ty(r,y[0]));let E=y?y[1].statusCode:void 0,x=a&&E&&E>=400,S=A.filter((t,r)=>{let{route:i}=t;if(i.lazy)return!0;if(null==i.loader)return!1;if(o)return tv(i,e.loaderData,e.errors);if(function(t,e,r){let n=!e||r.route.id!==e.route.id,i=void 0===t[r.route.id];return n||i}(e.loaderData,e.matches[r],t)||l.some(e=>e===t.route.id))return!0;let a=e.matches[r];return tw(t,s({currentUrl:b,currentParams:a.params,nextUrl:w,nextParams:t.params},n,{actionResult:m,actionStatus:E,defaultShouldRevalidate:!x&&(u||b.pathname+b.search===w.pathname+w.search||b.search!==w.search||tb(a,t))}))}),M=[];return d.forEach((t,i)=>{if(o||!r.some(e=>e.route.id===t.routeId)||h.has(i))return;let a=D(p,t.path,g);if(!a){M.push({key:i,routeId:t.routeId,path:t.path,matches:null,match:null,controller:null});return}let l=e.fetchers.get(i),d=t0(a,t.path),y=!1;f.has(i)?y=!1:c.has(i)?(c.delete(i),y=!0):y=l&&"idle"!==l.state&&void 0===l.data?u:tw(d,s({currentUrl:b,currentParams:e.matches[e.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:m,actionStatus:E,defaultShouldRevalidate:!x&&u})),y&&M.push({key:i,routeId:t.routeId,path:t.path,matches:a,match:d,controller:new AbortController})}),[S,M]}function tv(t,e,r){if(t.lazy)return!0;if(!t.loader)return!1;let n=null!=e&&void 0!==e[t.id],i=null!=r&&void 0!==r[t.id];return(!!n||!i)&&("function"==typeof t.loader&&!0===t.loader.hydrate||!n&&!i)}function tb(t,e){let r=t.route.path;return t.pathname!==e.pathname||null!=r&&r.endsWith("*")&&t.params["*"]!==e.params["*"]}function tw(t,e){if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate(e);if("boolean"==typeof r)return r}return e.defaultShouldRevalidate}function tA(t,e,r,n,i){var o;let a;if(t){let e=n[t];d(e,"No route found to patch children into: routeId = "+t),!e.children&&(e.children=[]),a=e.children}else a=r;let s=A(e.filter(t=>!a.some(e=>(function t(e,r){return"id"in e&&"id"in r&&e.id===r.id||e.index===r.index&&e.path===r.path&&e.caseSensitive===r.caseSensitive&&((!e.children||0===e.children.length)&&(!r.children||0===r.children.length)||e.children.every((e,n)=>{var i;return null==(i=r.children)?void 0:i.some(r=>t(e,r))}))})(t,e))),i,[t||"_","patch",String((null==(o=a)?void 0:o.length)||"0")],n);a.push(...s)}async function tD(t,e,r){if(!t.lazy)return;let n=await t.lazy();if(!t.lazy)return;let i=r[t.id];d(i,"No route found in manifest");let o={};for(let t in n){let e=void 0!==i[t]&&"hasErrorBoundary"!==t;f(!e,'Route "'+i.id+'" has a static property "'+t+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+t)+'" will be ignored.'),!e&&!w.has(t)&&(o[t]=n[t])}Object.assign(i,o),Object.assign(i,s({},e(i),{lazy:void 0}))}async function tE(t){let{matches:e}=t,r=e.filter(t=>t.shouldLoad);return(await Promise.all(r.map(t=>t.resolve()))).reduce((t,e,n)=>Object.assign(t,{[r[n].route.id]:e}),{})}async function tx(t,e,r,n,o,a,u,l,c,h){let d=a.map(t=>t.route.lazy?tD(t.route,c,l):void 0),f=a.map((t,r)=>{let a=d[r],u=o.some(e=>e.route.id===t.route.id),l=async r=>(r&&"GET"===n.method&&(t.route.lazy||t.route.loader)&&(u=!0),u?tS(e,n,t,a,r,h):Promise.resolve({type:i.data,result:void 0}));return s({},t,{shouldLoad:u,resolve:l})}),p=await t({matches:f,request:n,params:a[0].params,fetcherKey:u,context:h});try{await Promise.all(d)}catch(t){}return p}async function tS(t,e,r,n,o,a){let s,u;let l=n=>{let i;let s=new Promise((t,e)=>i=e);u=()=>i(),e.signal.addEventListener("abort",u);let l=i=>"function"!=typeof n?Promise.reject(Error("You cannot call the handler for a route which defines a boolean "+('"'+t+'" [routeId: '+r.route.id)+"]")):n({request:e,params:r.params,context:a},...void 0!==i?[i]:[]);return Promise.race([(async()=>{try{let t=await (o?o(t=>l(t)):l());return{type:"data",result:t}}catch(t){return{type:"error",result:t}}})(),s])};try{let o=r.route[t];if(n){if(o){let t;let[e]=await Promise.all([l(o).catch(e=>{t=e}),n]);if(void 0!==t)throw t;s=e}else if(await n,o=r.route[t])s=await l(o);else{if("action"!==t)return{type:i.data,result:void 0};let n=new URL(e.url),o=n.pathname+n.search;throw tj(405,{method:e.method,pathname:o,routeId:r.route.id})}}else if(o)s=await l(o);else{let t=new URL(e.url),r=t.pathname+t.search;throw tj(404,{pathname:r})}d(void 0!==s.result,"You defined "+("action"===t?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+t)+"` function. Please return a value or `null`.")}catch(t){return{type:i.error,result:t}}finally{u&&e.signal.removeEventListener("abort",u)}return s}async function tM(t){var e,r,n,o,a,s,u,l;let{result:c,type:h}=t;if(tW(c)){let t;try{let e=c.headers.get("Content-Type");t=e&&/\bapplication\/json\b/.test(e)?null==c.body?null:await c.json():await c.text()}catch(t){return{type:i.error,error:t}}return h===i.error?{type:i.error,error:new Q(c.status,c.statusText,t),statusCode:c.status,headers:c.headers}:{type:i.data,data:t,statusCode:c.status,headers:c.headers}}if(h===i.error){if(tZ(c))return c.data instanceof Error?{type:i.error,error:c.data,statusCode:null==(n=c.init)?void 0:n.status,headers:null!=(o=c.init)&&o.headers?new Headers(c.init.headers):void 0}:{type:i.error,error:new Q((null==(e=c.init)?void 0:e.status)||500,void 0,c.data),statusCode:J(c)?c.status:void 0,headers:null!=(r=c.init)&&r.headers?new Headers(c.init.headers):void 0};return{type:i.error,error:c,statusCode:J(c)?c.status:void 0}}return tG(c)?{type:i.deferred,deferredData:c,statusCode:null==(a=c.init)?void 0:a.status,headers:(null==(s=c.init)?void 0:s.headers)&&new Headers(c.init.headers)}:tZ(c)?{type:i.data,data:c.data,statusCode:null==(u=c.init)?void 0:u.status,headers:null!=(l=c.init)&&l.headers?new Headers(c.init.headers):void 0}:{type:i.data,data:c}}function t_(t,e,r,n,i,o){let a=t.headers.get("Location");if(d(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!ta.test(a)){let s=n.slice(0,n.findIndex(t=>t.route.id===r)+1);a=tp(new URL(e.url),s,i,!0,a,o),t.headers.set("Location",a)}return t}function tN(t,e,r){if(ta.test(t)){let n=new URL(t.startsWith("//")?e.protocol+t:t),i=null!=C(n.pathname,r);if(n.origin===e.origin&&i)return n.pathname+n.search+n.hash}return t}function tT(t,e,r,n){let i=t.createURL(tU(e)).toString(),o={signal:r};if(n&&t$(n.formMethod)){let{formMethod:t,formEncType:e}=n;o.method=t.toUpperCase(),"application/json"===e?(o.headers=new Headers({"Content-Type":e}),o.body=JSON.stringify(n.json)):"text/plain"===e?o.body=n.text:"application/x-www-form-urlencoded"===e&&n.formData?o.body=tC(n.formData):o.body=n.formData}return new Request(i,o)}function tC(t){let e=new URLSearchParams;for(let[r,n]of t.entries())e.append(r,"string"==typeof n?n:n.name);return e}function tI(t){let e=new FormData;for(let[r,n]of t.entries())e.append(r,n);return e}function tO(t,e,r,n,i){let o,a={},s=null,u=!1,l={},c=r&&tH(r[1])?r[1].error:void 0;return t.forEach(r=>{if(!(r.route.id in e))return;let h=r.route.id,f=e[h];if(d(!tV(f),"Cannot handle redirect results in processLoaderData"),tH(f)){let e=f.error;if(void 0!==c&&(e=c,c=void 0),s=s||{},i)s[h]=e;else{let r=tR(t,h);null==s[r.route.id]&&(s[r.route.id]=e)}a[h]=void 0,!u&&(u=!0,o=J(f.error)?f.error.status:500),f.headers&&(l[h]=f.headers)}else tq(f)?(n.set(h,f.deferredData),a[h]=f.deferredData.data,null!=f.statusCode&&200!==f.statusCode&&!u&&(o=f.statusCode)):(a[h]=f.data,f.statusCode&&200!==f.statusCode&&!u&&(o=f.statusCode)),f.headers&&(l[h]=f.headers)}),void 0!==c&&r&&(s={[r[0]]:c},a[r[0]]=void 0),{loaderData:a,errors:s,statusCode:o||200,loaderHeaders:l}}function tk(t,e,r,n,i,o,a){let{loaderData:u,errors:l}=tO(e,r,n,a,!1);return i.forEach(e=>{let{key:r,match:n,controller:i}=e,a=o[r];if(d(a,"Did not find corresponding fetcher result"),!i||!i.signal.aborted)if(tH(a)){let e=tR(t.matches,null==n?void 0:n.route.id);!(l&&l[e.route.id])&&(l=s({},l,{[e.route.id]:a.error})),t.fetchers.delete(r)}else if(tV(a))d(!1,"Unhandled fetcher revalidation redirect");else if(tq(a))d(!1,"Unhandled fetcher deferred data");else{let e=t5(a.data);t.fetchers.set(r,e)}}),{loaderData:u,errors:l}}function tL(t,e,r,n){let i=s({},e);for(let o of r){let r=o.route.id;if(e.hasOwnProperty(r)?void 0!==e[r]&&(i[r]=e[r]):void 0!==t[r]&&o.route.loader&&(i[r]=t[r]),n&&n.hasOwnProperty(r))break}return i}function tP(t){return t?tH(t[1])?{actionData:{}}:{actionData:{[t[0]]:t[1].data}}:{}}function tR(t,e){return(e?t.slice(0,t.findIndex(t=>t.route.id===e)+1):[...t]).reverse().find(t=>!0===t.route.hasErrorBoundary)||t[0]}function tB(t){let e=1===t.length?t[0]:t.find(t=>t.index||!t.path||"/"===t.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function tj(t,e){let{pathname:r,routeId:n,method:i,type:o,message:a}=void 0===e?{}:e,s="Unknown Server Error",u="Unknown @remix-run/router error";return 400===t?(s="Bad Request",i&&r&&n?u="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n)+'", so there is no way to handle the request.':"defer-action"===o?u="defer() is not supported in actions":"invalid-body"===o&&(u="Unable to encode submission body")):403===t?(s="Forbidden",u='Route "'+n+'" does not match URL "'+r+'"'):404===t?(s="Not Found",u='No route matches URL "'+r+'"'):405===t&&(s="Method Not Allowed",i&&r&&n?u="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n)+'", so there is no way to handle the request.':i&&(u='Invalid request method "'+i.toUpperCase()+'"')),new Q(t||500,s,Error(u),!0)}function tF(t){let e=Object.entries(t);for(let t=e.length-1;t>=0;t--){let[r,n]=e[t];if(tV(n))return{key:r,result:n}}}function tU(t){let e="string"==typeof t?m(t):t;return y(s({},e,{hash:""}))}function tz(t){return tW(t.result)&&te.has(t.result.status)}function tq(t){return t.type===i.deferred}function tH(t){return t.type===i.error}function tV(t){return(t&&t.type)===i.redirect}function tZ(t){return"object"==typeof t&&null!=t&&"type"in t&&"data"in t&&"init"in t&&"DataWithResponseInit"===t.type}function tG(t){return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}function tW(t){return null!=t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"object"==typeof t.headers&&void 0!==t.body}function tY(t){return tt.has(t.toLowerCase())}function t$(t){return K.has(t.toLowerCase())}async function tQ(t,e,r,n,i){let o=Object.entries(e);for(let a=0;a<o.length;a++){let[s,u]=o[a],l=t.find(t=>(null==t?void 0:t.route.id)===s);if(!l)continue;let c=n.find(t=>t.route.id===l.route.id),h=null!=c&&!tb(c,l)&&(i&&i[l.route.id])!==void 0;tq(u)&&h&&await tX(u,r,!1).then(t=>{t&&(e[s]=t)})}}async function tJ(t,e,r){for(let n=0;n<r.length;n++){let{key:i,routeId:o,controller:a}=r[n],s=e[i];if(!!t.find(t=>(null==t?void 0:t.route.id)===o))tq(s)&&(d(a,"Expected an AbortController for revalidating fetcher deferred result"),await tX(s,a.signal,!0).then(t=>{t&&(e[i]=t)}))}}async function tX(t,e,r){if(void 0===r&&(r=!1),!await t.deferredData.resolveData(e)){if(r)try{return{type:i.data,data:t.deferredData.unwrappedData}}catch(t){return{type:i.error,error:t}}return{type:i.data,data:t.deferredData.data}}}function tK(t){return new URLSearchParams(t).getAll("index").some(t=>""===t)}function t0(t,e){let r="string"==typeof e?m(e).search:e.search;if(t[t.length-1].route.index&&tK(r||""))return t[t.length-1];let n=k(t);return n[n.length-1]}function t1(t){let{formMethod:e,formAction:r,formEncType:n,text:i,formData:o,json:a}=t;if(!!e&&!!r&&!!n){if(null!=i)return{formMethod:e,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i};if(null!=o)return{formMethod:e,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(void 0!==a)return{formMethod:e,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}}}function t2(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 t4(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 t5(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}},77843:function(t,e){"use strict";var r,n,i={Linear:{None:function(t){return t}},Quadratic:{In:function(t){return t*t},Out:function(t){return t*(2-t)},InOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},Cubic:{In:function(t){return t*t*t},Out:function(t){return--t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},Quartic:{In:function(t){return t*t*t*t},Out:function(t){return 1- --t*t*t*t},InOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},Quintic:{In:function(t){return t*t*t*t*t},Out:function(t){return--t*t*t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},Sinusoidal:{In:function(t){return 1-Math.cos(t*Math.PI/2)},Out:function(t){return Math.sin(t*Math.PI/2)},InOut:function(t){return .5*(1-Math.cos(Math.PI*t))}},Exponential:{In:function(t){return 0===t?0:Math.pow(1024,t-1)},Out:function(t){return 1===t?1:1-Math.pow(2,-10*t)},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)}},Circular:{In:function(t){return 1-Math.sqrt(1-t*t)},Out:function(t){return Math.sqrt(1- --t*t)},InOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},Elastic:{In:function(t){return 0===t?0:1===t?1:-Math.pow(2,10*(t-1))*Math.sin((t-1.1)*5*Math.PI)},Out:function(t){return 0===t?0:1===t?1:Math.pow(2,-10*t)*Math.sin((t-.1)*5*Math.PI)+1},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?-.5*Math.pow(2,10*(t-1))*Math.sin((t-1.1)*5*Math.PI):.5*Math.pow(2,-10*(t-1))*Math.sin((t-1.1)*5*Math.PI)+1}},Back:{In:function(t){return t*t*(2.70158*t-1.70158)},Out:function(t){return--t*t*(2.70158*t+1.70158)+1},InOut:function(t){return(t*=2)<1?t*t*(3.5949095*t-2.5949095)*.5:.5*((t-=2)*t*(3.5949095*t+2.5949095)+2)}},Bounce:{In:function(t){return 1-i.Bounce.Out(1-t)},Out:function(t){if(t<1/2.75)return 7.5625*t*t;if(t<2/2.75)return 7.5625*(t-=1.5/2.75)*t+.75;if(t<2.5/2.75)return 7.5625*(t-=2.25/2.75)*t+.9375;else return 7.5625*(t-=2.625/2.75)*t+.984375},InOut:function(t){return t<.5?.5*i.Bounce.In(2*t):.5*i.Bounce.Out(2*t-1)+.5}}};"undefined"==typeof self&&"undefined"!=typeof process&&process.hrtime?n=function(){var t=process.hrtime();return 1e3*t[0]+t[1]/1e6}:"undefined"!=typeof self&&void 0!==self.performance&&void 0!==self.performance.now?n=self.performance.now.bind(self.performance):n=void 0!==Date.now?Date.now:function(){return new Date().getTime()};var o=n,a=function(){function t(){this._tweens={},this._tweensAddedDuringUpdate={}}return t.prototype.getAll=function(){var t=this;return Object.keys(this._tweens).map(function(e){return t._tweens[e]})},t.prototype.removeAll=function(){this._tweens={}},t.prototype.add=function(t){this._tweens[t.getId()]=t,this._tweensAddedDuringUpdate[t.getId()]=t},t.prototype.remove=function(t){delete this._tweens[t.getId()],delete this._tweensAddedDuringUpdate[t.getId()]},t.prototype.update=function(t,e){void 0===t&&(t=o()),void 0===e&&(e=!1);var r=Object.keys(this._tweens);if(0===r.length)return!1;for(;r.length>0;){this._tweensAddedDuringUpdate={};for(var n=0;n<r.length;n++){var i=this._tweens[r[n]],a=!e;i&&!1===i.update(t,a)&&!e&&delete this._tweens[r[n]]}r=Object.keys(this._tweensAddedDuringUpdate)}return!0},t}();var s={Linear:function(t,e){var r=t.length-1,n=r*e,i=Math.floor(n),o=s.Utils.Linear;return e<0?o(t[0],t[1],n):e>1?o(t[r],t[r-1],r-n):o(t[i],t[i+1>r?r:i+1],n-i)},Bezier:function(t,e){for(var r=0,n=t.length-1,i=Math.pow,o=s.Utils.Bernstein,a=0;a<=n;a++)r+=i(1-e,n-a)*i(e,a)*t[a]*o(n,a);return r},CatmullRom:function(t,e){var r=t.length-1,n=r*e,i=Math.floor(n),o=s.Utils.CatmullRom;return t[0]===t[r]?(e<0&&(i=Math.floor(n=r*(1+e))),o(t[(i-1+r)%r],t[i],t[(i+1)%r],t[(i+2)%r],n-i)):e<0?t[0]-(o(t[0],t[0],t[1],t[1],-n)-t[0]):e>1?t[r]-(o(t[r],t[r],t[r-1],t[r-1],n-r)-t[r]):o(t[i?i-1:0],t[i],t[r<i+1?r:i+1],t[r<i+2?r:i+2],n-i)},Utils:{Linear:function(t,e,r){return(e-t)*r+t},Bernstein:function(t,e){var r=s.Utils.Factorial;return r(t)/r(e)/r(t-e)},Factorial:(r=[1],function(t){var e=1;if(r[t])return r[t];for(var n=t;n>1;n--)e*=n;return r[t]=e,e}),CatmullRom:function(t,e,r,n,i){var o=(r-t)*.5,a=(n-e)*.5,s=i*i;return i*s*(2*e-2*r+o+a)+(-3*e+3*r-2*o-a)*s+o*i+e}}},u=function(){function t(){}return t.nextId=function(){return t._nextId++},t._nextId=0,t}(),l=new a,c=function(){function t(t,e){void 0===e&&(e=l),this._object=t,this._group=e,this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=i.Linear.None,this._interpolationFunction=s.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._id=u.nextId(),this._isChainStopped=!1,this._goToEnd=!1}return t.prototype.getId=function(){return this._id},t.prototype.isPlaying=function(){return this._isPlaying},t.prototype.isPaused=function(){return this._isPaused},t.prototype.to=function(t,e){return this._valuesEnd=Object.create(t),void 0!==e&&(this._duration=e),this},t.prototype.duration=function(t){return this._duration=t,this},t.prototype.start=function(t){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed)for(var e in this._reversed=!1,this._valuesStartRepeat)this._swapEndStartRepeatValues(e),this._valuesStart[e]=this._valuesStartRepeat[e];return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=void 0!==t?"string"==typeof t?o()+parseFloat(t):t:o(),this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this},t.prototype._setupProperties=function(t,e,r,n){for(var i in r){var o=t[i],a=Array.isArray(o),s=a?"array":typeof o,u=!a&&Array.isArray(r[i]);if("undefined"!==s&&"function"!==s){if(u){var l=r[i];if(0===l.length)continue;l=l.map(this._handleRelativeValue.bind(this,o)),r[i]=[o].concat(l)}if(("object"===s||a)&&o&&!u){for(var c in e[i]=a?[]:{},o)e[i][c]=o[c];n[i]=a?[]:{},this._setupProperties(o,e[i],r[i],n[i])}else void 0===e[i]&&(e[i]=o),!a&&(e[i]*=1),u?n[i]=r[i].slice().reverse():n[i]=e[i]||0}}},t.prototype.stop=function(){return(!this._isChainStopped&&(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying)?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},t.prototype.end=function(){return this._goToEnd=!0,this.update(1/0),this},t.prototype.pause=function(t){return(void 0===t&&(t=o()),this._isPaused||!this._isPlaying)?this:(this._isPaused=!0,this._pauseStart=t,this._group&&this._group.remove(this),this)},t.prototype.resume=function(t){return(void 0===t&&(t=o()),this._isPaused&&this._isPlaying)?(this._isPaused=!1,this._startTime+=t-this._pauseStart,this._pauseStart=0,this._group&&this._group.add(this),this):this},t.prototype.stopChainedTweens=function(){for(var t=0,e=this._chainedTweens.length;t<e;t++)this._chainedTweens[t].stop();return this},t.prototype.group=function(t){return this._group=t,this},t.prototype.delay=function(t){return this._delayTime=t,this},t.prototype.repeat=function(t){return this._initialRepeat=t,this._repeat=t,this},t.prototype.repeatDelay=function(t){return this._repeatDelayTime=t,this},t.prototype.yoyo=function(t){return this._yoyo=t,this},t.prototype.easing=function(t){return this._easingFunction=t,this},t.prototype.interpolation=function(t){return this._interpolationFunction=t,this},t.prototype.chain=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this._chainedTweens=t,this},t.prototype.onStart=function(t){return this._onStartCallback=t,this},t.prototype.onUpdate=function(t){return this._onUpdateCallback=t,this},t.prototype.onRepeat=function(t){return this._onRepeatCallback=t,this},t.prototype.onComplete=function(t){return this._onCompleteCallback=t,this},t.prototype.onStop=function(t){return this._onStopCallback=t,this},t.prototype.update=function(t,e){if(void 0===t&&(t=o()),void 0===e&&(e=!0),this._isPaused)return!0;var r,n,i=this._startTime+this._duration;if(!this._goToEnd&&!this._isPlaying){if(t>i)return!1;e&&this.start(t)}if(this._goToEnd=!1,t<this._startTime)return!0;!1===this._onStartCallbackFired&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),n=(t-this._startTime)/this._duration,n=0===this._duration||n>1?1:n;var a=this._easingFunction(n);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,a),this._onUpdateCallback&&this._onUpdateCallback(this._object,n),1===n){if(this._repeat>0){for(r in isFinite(this._repeat)&&this._repeat--,this._valuesStartRepeat)!this._yoyo&&"string"==typeof this._valuesEnd[r]&&(this._valuesStartRepeat[r]=this._valuesStartRepeat[r]+parseFloat(this._valuesEnd[r])),this._yoyo&&this._swapEndStartRepeatValues(r),this._valuesStart[r]=this._valuesStartRepeat[r];this._yoyo&&(this._reversed=!this._reversed),void 0!==this._repeatDelayTime?this._startTime=t+this._repeatDelayTime:this._startTime=t+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object)}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var s=0,u=this._chainedTweens.length;s<u;s++)this._chainedTweens[s].start(this._startTime+this._duration);return this._isPlaying=!1,!1}}return!0},t.prototype._updateProperties=function(t,e,r,n){for(var i in r){if(void 0!==e[i]){var o=e[i]||0,a=r[i],s=Array.isArray(t[i]),u=Array.isArray(a);!s&&u?t[i]=this._interpolationFunction(a,n):"object"==typeof a&&a?this._updateProperties(t[i],o,a,n):"number"==typeof(a=this._handleRelativeValue(o,a))&&(t[i]=o+(a-o)*n)}}},t.prototype._handleRelativeValue=function(t,e){return"string"!=typeof e?e:"+"===e.charAt(0)||"-"===e.charAt(0)?t+parseFloat(e):parseFloat(e)},t.prototype._swapEndStartRepeatValues=function(t){var e=this._valuesStartRepeat[t],r=this._valuesEnd[t];"string"==typeof r?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(r):this._valuesStartRepeat[t]=this._valuesEnd[t],this._valuesEnd[t]=e},t}(),h=u.nextId,d=l.getAll.bind(l),f=l.removeAll.bind(l),p=l.add.bind(l),g=l.remove.bind(l),y=l.update.bind(l);e.ZP={Easing:i,Group:a,Interpolation:s,now:o,Sequence:u,nextId:h,Tween:c,VERSION:"18.6.4",getAll:d,removeAll:f,add:p,remove:g,update:y}},294113:function(t,e,r){"use strict";r.d(e,{A:function(){return Z}});var n=r(455069),i=function(){return(i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function o(t,e){var r={};for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&0>e.indexOf(i)&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(t);n<i.length;n++)0>e.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(r[i[n]]=t[i[n]]);return r}function a(t,e,r,n){return new(r=r||Promise)(function(i,o){function a(t){try{u(n.next(t))}catch(t){o(t)}}function s(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,s)}u((n=n.apply(t,e||[])).next())})}function s(t,e){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){var l=[s,u];if(r)throw TypeError("Generator is already executing.");for(;o=a&&l[a=0]?0:o;)try{if(r=1,n&&(i=2&l[0]?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,(l=i?[2&l[0],i.value]:l)[0]){case 0:case 1:i=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,n=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===l[0]||2===l[0])){o=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3]))o.label=l[1];else if(6===l[0]&&o.label<i[1])o.label=i[1],i=l;else{if(!(i&&o.label<i[2])){i[2]&&o.ops.pop(),o.trys.pop();continue}o.label=i[2],o.ops.push(l)}}l=e.call(t,o)}catch(t){l=[6,t],n=0}finally{r=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}var u,l={formats:["webp"],imageSizes:[480,750,1080,1366,1920],quality:75,loading:"lazy",lazyBoundary:"200px",placeholder:"empty"},c={webp:"awebp",heic:"heif",avif:"avis",jpeg:"jpeg",png:"png"},h={protocol:"http://",domain:"",src:"",search:""},d={protocol:"http://",domain:"",src:"",search:"",template:"",suffix:"",templateWithoutParams:"",params:[]},f=function(t){return void 0!==t.default},p=function(t){return"object"==typeof t&&(f(t)||void 0!==t.src)},g=/^(.+)~(tplv-[a-zA-Z0-9]{2,10}-.+)\.([a-zA-Z]+)\??(.*)$/,y=function(t){return t.startsWith("tos://")||t.startsWith("TOS://")},m=function(t){try{var e=t.startsWith("http")?t:(t.startsWith("//")?"https:":"http://").concat(t),r=new URL(e),n=g.exec(r.pathname.slice(1)),o={protocol:r.protocol,domain:r.hostname,src:n[1],template:n[2],suffix:n[3],search:r.search},a=(o.template||"").split(":");return i(i({},o),{templateWithoutParams:a.shift()||"",params:a})}catch(t){return console.error(t),d}},b=function(t){try{var e=t.startsWith("http")?t:(t.startsWith("//")?"https:":"http://").concat(t),r=new URL(e);return{protocol:r.protocol,domain:r.hostname,src:r.pathname.slice(1),search:r.search}}catch(t){return h}},w=function(){return"undefined"==typeof window},A=function(){return"undefined"!=typeof localStorage};function D(t){if(w()||!A())return null;var e=localStorage.getItem(t);if(!e)return null;try{return JSON.parse(e)}catch(e){return console.error("imagex get localStorage key [".concat(t,"] failed"),e),null}}function E(t,e){if(w()||!A())return!1;try{var r=JSON.stringify(e);return localStorage.setItem(t,r),!0}catch(e){return console.error("imagex set localStorage key [".concat(t,"] failed"),e),!1}}var x=w()||"undefined"==typeof navigator?"":(null!=(u=navigator.userAgent)?u:"").toLocaleLowerCase(),S=function(t){return 0<=t.indexOf("safari")&&0>t.indexOf("chrome")||/iphone|ipad/.test(t)&&0<=t.indexOf("mobile")},M=function(t){return void 0!==t?S(t.toLocaleLowerCase()):!w()&&S(x)},_=function(t){return void 0!==t?0<=t.toLocaleLowerCase().indexOf("firefox"):!w()&&0<=x.indexOf("firefox")},N={"imagex-type":"react","imagex-version":"2.1.1"},T=function(t,e,r,n,i,o){var a;return o?{widths:[0],kind:"x"}:i?{widths:t,kind:"w"}:"fill"===r?{widths:Array.from(new Set([a=(null==(i=null==(o=n.current)?void 0:o.parentElement)?void 0:i.clientWidth)||0,2*a].map(function(e){return 0<t.length?t.find(function(t){return e<=t})||t[t.length-1]:e}))),kind:"x"}:"responsive"===r?(a=(null==(i=null==(o=n.current)?void 0:o.parentElement)?void 0:i.clientWidth)||0,{widths:Array.from(new Set([r=Math.max(a-(n=parseInt((null==(i=null==(o=null==(r=n.current)?void 0:r.parentElement)?void 0:o.style)?void 0:i.paddingLeft)||"0")+parseInt((null==(i=null==(o=null==(r=n.current)?void 0:r.parentElement)?void 0:o.style)?void 0:i.paddingRight)||"0")),0),2*r].map(function(e){return 0<t.length?t.find(function(t){return e<=t})||t[t.length-1]:e}))),kind:"x"}):void 0!==e?{widths:Array.from(new Set([e,2*e].map(function(e){return 0<t.length?t.find(function(t){return e<=t})||t[t.length-1]:e}))),kind:"x"}:{widths:[0],kind:"x"}},C=function(t,e,r,n,i){var o;!t||null!=(o=t.src)&&o.startsWith("data:")||null!=(o=t.src)&&o.startsWith("blob:")||t["loaded-src"]===t.src?"empty"!==r&&e(!0):(t["loaded-src"]=t.src,("decode"in t?t.decode():Promise.resolve()).catch(function(){}).then(function(){var o,a;t.parentNode&&(i.current.add(t.src),"empty"!==r&&e(!0),null!=n)&&n.current&&(o=t.naturalWidth,a=t.naturalHeight,n.current({naturalWidth:o,naturalHeight:a}))}))},I=function(t){var e,r,n,i,o,a,s,u,l,c,h,d,f,p,w,A,D,E,x,S=t.src,M=t.unoptimized,_=t.layout,N=t.quality,C=t.sizes,I=t.loader,O=t.imageSizes,k=t.format,L=void 0===k?"image":k,k=t.width,P=t.wrapperElement,t=t.ssr;return S?M?{src:S}:(O=(M=T(O,k,_,P,C,t)).widths,r=M.kind,(e=S,g.test(e))?(n=(k=m(S)).src,i=k.protocol,o=k.domain,a=k.suffix,s=k.template,u=k.search,l=k.templateWithoutParams,c=k.params,O.length<=1?{srcSet:E=I({src:n,width:O[0]||0,quality:N,format:L,extra:{suffix:a,template:s,templateWithoutParams:l,params:c,search:u,protocol:i,domain:o,origin:S}}),src:E}:(h=O.map(function(t){return I({src:n,width:t,quality:N,format:L,extra:{suffix:a,template:s,templateWithoutParams:l,params:c,search:u,protocol:i,domain:o,origin:S}})}),{srcSet:O.map(function(t,e){return"".concat(h[e]," ").concat("w"===r?t:e+1).concat(r)}).join(", "),sizes:"w"===r?C:void 0,src:h[h.length-1]})):y(S)?(d=S.slice(6),O.length<=1?{srcSet:E=I({src:d,width:O[0]||0,quality:N,format:L,extra:{origin:S}}),src:E}:(f=O.map(function(t){return I({src:d,width:t,quality:N,format:L,extra:{origin:S}})}),{srcSet:O.map(function(t,e){return"".concat(f[e]," ").concat("w"===r?t:e+1).concat(r)}).join(", "),sizes:"w"===r?C:void 0,src:f[f.length-1]})):(p=(_=b(S)).src,w=_.protocol,A=_.domain,D=_.search,O.length<=1?{srcSet:E=I({src:p,width:O[0]||0,quality:N,format:L,extra:{protocol:w,domain:A,search:D,origin:S}}),src:E}:(x=O.map(function(t){return I({src:p,width:t,quality:N,format:L,extra:{protocol:w,domain:A,search:D,origin:S}})}),{srcSet:O.map(function(t,e){return"".concat(x[e]," ").concat("w"===r?t:e+1).concat(r)}).join(", "),sizes:"w"===r?C:void 0,src:x[x.length-1]}))):{src:""}},O=function(t){var e=t.imgStyle,r=t.errorDataURL,o=t.alt,t=t.error;return t?n.createElement("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0}},t):n.createElement("div",{style:i(i({},e||{}),{color:"#C9CDD4",backgroundColor:"#F7F8FA",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"})},n.createElement("div",{style:{maxWidth:"100%",maxHeight:"100%",width:"100%",lineHeight:0,fontSize:0,textAlign:"center"}},n.createElement("img",{style:{maxWidth:"60%",verticalAlign:"middle"},src:r||"data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBzdHJva2U9IiNDOUNERDQiIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgc3Ryb2tlLXdpZHRoPSI0IiB2aWV3Qm94PSIwIDAgNDggNDgiIGFyaWEtaGlkZGVuPSJ0cnVlIiBmb2N1c2FibGU9ImZhbHNlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj48cGF0aCBkPSJNNDEgMjZWOWEyIDIgMCAwIDAtMi0ySDlhMiAyIDAgMCAwLTIgMnYzMGEyIDIgMCAwIDAgMiAyaDE3Ij48L3BhdGg+PHBhdGggZD0ibTI0IDMzIDktOC41VjI3cy0yIDEtMy41IDIuNUMyNy44NDEgMzEuMTU5IDI3IDMzIDI3IDMzaC0zWm0wIDAtMy41LTQuNUwxNyAzM2g3WiI+PC9wYXRoPjxwYXRoIGZpbGw9IiNDOUNERDQiIHN0cm9rZT0ibm9uZSIgZD0iTTIwLjUgMjguNSAxNyAzM2g3bC0zLjUtNC41Wk0zMyAyNC41IDI0IDMzaDNzLjg0MS0xLjg0MSAyLjUtMy41QzMxIDI4IDMzIDI3IDMzIDI3di0yLjVaIj48L3BhdGg+PHBhdGggZmlsbD0iI0M5Q0RENCIgZmlsbC1ydWxlPSJldmVub2RkIiBzdHJva2U9Im5vbmUiIGQ9Ik00NiAzOGE4IDggMCAxIDEtMTYgMCA4IDggMCAwIDEgMTYgMFptLTQuOTUtNC43ODIgMS43NCAxLjc0LTMuMDQ1IDMuMDQ2IDMuMDQ2IDMuMDQ2LTEuNzQgMS43NC0zLjA0Ny0zLjA0NS0zLjA0NiAzLjA0Ni0xLjc0LTEuNzQgMy4wNDYtMy4wNDctMy4wNDYtMy4wNDYgMS43NC0xLjc0IDMuMDQ2IDMuMDQ2IDMuMDQ2LTMuMDQ2WiIgY2xpcC1ydWxlPSJldmVub2RkIj48L3BhdGg+PHBhdGggZD0iTTE3IDE1aC0ydjJoMnYtMloiPjwvcGF0aD48L3N2Zz4="})),o&&n.createElement("div",{style:{fontSize:"12px",lineHeight:1.667,textAlign:"center",padding:"8px 16px",width:"100%",overflow:"hidden",textOverflow:"ellipsis"}},o))},k=function(t){function e(t){var e=t.format||"image";return G.current[e]||(G.current[e]=I(t)),G.current[e]}var r,a=t.formats,s=t.src,u=t.srcString,l=t.unoptimized,h=t.layout,d=t.loader,f=t.imageSizes,p=t.quality,g=void 0===p?75:p,y=t.sizes,p=t.placeholderStyle,m=t.imgStyle,b=t.isVisible,w=t.width,A=t.height,D=t.setPlaceholderComplete,E=t.placeholder,x=t.setTarget,S=t.onLoadingCompleteRef,T=t.loadedImageURLsRef,k=t.onLoad,L=t.onError,P=t.wrapperElement,R=t.errorDataURL,B=t.error,j=t.supportWebP,F=t.supportAVIF,U=t.ssr,z=t.ua,q=o(t,["formats","src","srcString","unoptimized","layout","loader","imageSizes","quality","sizes","placeholderStyle","imgStyle","isVisible","width","height","setPlaceholderComplete","placeholder","setTarget","onLoadingCompleteRef","loadedImageURLsRef","onLoad","onError","wrapperElement","errorDataURL","error","supportWebP","supportAVIF","ssr","ua"]),H=(0,n.useState)(!1),V=H[0],Z=H[1],G=(0,n.useRef)({}),H=((0,n.useEffect)(function(){G.current={}},[u,l,h,g,y,d,f,w,P]),(0,n.useCallback)(function(t){x(t),null!=t&&t.complete&&C(t,D,E,S,T)},[D,E,x,S]));return u?l?n.createElement(n.Fragment,null,n.createElement("img",i({},q,{ref:H,decoding:"async",style:i(i({},m),p),width:w,height:A},b?e({src:u,unoptimized:l,width:w,height:A,layout:h,loader:d,imageSizes:f,quality:g,sizes:y,wrapperElement:P}):{src:s},{onLoad:function(t){Z(!1),C(t.currentTarget,D,E,S,T),k&&k(t)},onError:function(t){u&&("empty"!==E&&D(!0),Z(!0)),L&&L(t)}},N)),V&&"raw"!==h&&O({imgStyle:m,alt:t.alt,errorDataURL:R,error:B})):(r=a||[],_(z)&&(r=r.filter(function(t){return"avif"!==t||!U&&F})),U?M(z)||"empty"===z?n.createElement(n.Fragment,null,n.createElement("img",i({},q,{ref:H,decoding:"async",style:i(i({},m),p),width:w,height:A,src:e({src:u,unoptimized:l,width:w,height:A,layout:h,loader:d,imageSizes:f,quality:g,sizes:y,wrapperElement:P,ssr:U}).src,onLoad:function(t){Z(!1),C(t.currentTarget,D,E,S,T),k&&k(t)},onError:function(t){u&&("empty"!==E&&D(!0),Z(!0)),L&&L(t)}},N)),V&&"raw"!==h&&O({imgStyle:m,alt:t.alt,errorDataURL:R,error:B})):n.createElement(n.Fragment,null,n.createElement("picture",null,Array.isArray(r)&&0<(null==r?void 0:r.length)&&r.map(function(t){return n.createElement("source",{key:t,type:"image/".concat(t),srcSet:e({src:u,unoptimized:l,width:w,height:A,layout:h,loader:d,imageSizes:f,format:c[t],quality:g,sizes:y,wrapperElement:P,ssr:U}).srcSet})}),n.createElement("img",i({},q,{ref:H,decoding:"async",style:i(i({},m),p),width:w,height:A},e({src:u,unoptimized:l,width:w,height:A,layout:h,loader:d,imageSizes:f,quality:g,sizes:y,wrapperElement:P,ssr:U}),{onLoad:function(t){Z(!1),C(t.currentTarget,D,E,S,T),k&&k(t)},onError:function(t){u&&("empty"!==E&&D(!0),Z(!0)),L&&L(t)}},N))),V&&"raw"!==h&&O({imgStyle:m,alt:t.alt,errorDataURL:R,error:B})):n.createElement(n.Fragment,null,M()?n.createElement("img",i({},q,{ref:H,decoding:"async",style:i(i({},m),p),width:w,height:A},b?e({src:u,unoptimized:l,width:w,height:A,layout:h,loader:d,imageSizes:f,quality:g,sizes:y,wrapperElement:P,format:null!=a&&a.includes("webp")&&j?c.webp:void 0}):{src:s},{onLoad:function(t){Z(!1),C(t.currentTarget,D,E,S,T),k&&k(t)},onError:function(t){u&&("empty"!==E&&D(!0),Z(!0)),L&&L(t)}},N)):n.createElement("picture",null,b&&Array.isArray(r)&&0<(null==r?void 0:r.length)&&r.map(function(t){return n.createElement("source",i({key:t,type:"image/".concat(t)},e({src:u,unoptimized:l,width:w,height:A,layout:h,loader:d,imageSizes:f,format:c[t],quality:g,sizes:y,wrapperElement:P})))}),n.createElement("img",i({},q,{ref:H,decoding:"async",style:i(i({},m),p),width:w,height:A},b?e({src:u,unoptimized:l,width:w,height:A,layout:h,loader:d,imageSizes:f,quality:g,sizes:y,wrapperElement:P}):{src:s},{onLoad:function(t){Z(!1),C(t.currentTarget,D,E,S,T),k&&k(t)},onError:function(t){u&&("empty"!==E&&D(!0),Z(!0)),L&&L(t)}},N))),V&&"raw"!==h&&O({imgStyle:m,alt:t.alt,errorDataURL:R,error:B}))):n.createElement("img",i({},q,{style:i(i({},m),p),width:w,height:A,src:s},N))},L=function(){return"undefined"!=typeof IntersectionObserver},P=new Map,R=[],B=function(t){var e,r={root:t.root||null,margin:t.rootMargin||""},n=R.find(function(t){return t.root===r.root&&t.margin===r.margin});return n?P.get(n):(e=new Map,t={id:r,observer:n=new IntersectionObserver(function(t){t.forEach(function(t){var r=e.get(t.target),t=t.isIntersecting||0<t.intersectionRatio;r&&t&&r(t)})},t),elements:e},R.push(r),P.set(r,t),t)},j=function(t,e,r){var r=B(r),n=r.id,i=r.observer,o=r.elements;return o.set(t,e),i.observe(t),function(){var e;o.delete(t),i.unobserve(t),0===o.size&&(i.disconnect(),P.delete(n),-1<(e=R.findIndex(function(t){return t.root===n.root&&t.margin===n.margin})))&&R.splice(e,1)}},F=function(t){var e=t.rootRef,r=t.rootMargin,t=t.disabled,i=t||!L(),o=(0,n.useRef)(),t=(0,n.useState)(t||!1),a=t[0],s=t[1],t=(0,n.useState)(e?e.current:null),u=t[0],l=t[1],t=((0,n.useEffect)(function(){L()||a||s(!0)},[a]),(0,n.useEffect)(function(){e&&l(e.current)},[e]),(0,n.useCallback)(function(t){o.current&&(o.current(),o.current=void 0),i||a||t&&t.tagName&&(o.current=j(t,function(t){return t&&s(t)},{root:u,rootMargin:r}))},[i,u,r,a]));return[t,a,(0,n.useCallback)(function(){s(!1)},[])]},U=function(t){void 0===t&&(t=!1),w()||(e="boolean"==typeof window.imagex_support_webp?window.imagex_support_webp:"boolean"==typeof(e=D("imagex_support_webp"))&&D("imagex_ua")===x?e:void 0);var e,t=(0,n.useState)(!t&&e),r=t[0],i=t[1];return(0,n.useEffect)(function(){void 0===r&&a(void 0,void 0,void 0,function(){var t;return s(this,function(e){switch(e.label){case 0:return[4,new Promise(function(t){var e=new Image;e.onload=function(){t(160===(null==e?void 0:e.height))},e.onerror=function(){t(!1)},e.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvn8AnAAdQiUpUov+BiOh/AAA="})];case 1:return t=e.sent(),w()||(window.imagex_support_webp=t),i(t),E("imagex_support_webp",t),E("imagex_ua",x),[2]}})}).catch(console.error)},[r]),[r]},z=function(t){void 0===t&&(t=!1),w()||(e="boolean"==typeof window.imagex_support_avif?window.imagex_support_avif:"boolean"==typeof(e=D("imagex_support_avif"))&&D("imagex_ua")===x?e:void 0);var e,t=(0,n.useState)(!t&&e),r=t[0],i=t[1];return(0,n.useEffect)(function(){void 0===r&&a(void 0,void 0,void 0,function(){var t;return s(this,function(e){switch(e.label){case 0:return[4,new Promise(function(t){var e=new Image;e.onload=function(){t(1===(null==e?void 0:e.width))},e.onerror=function(){t(!1)},e.src="data:image/avif;base64,AAAALGZ0eXBhdmlzAAAAAGF2aWZhdmlzbXNmMWlzbzhtaWYxbWlhZk1BMUEAAAElbWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAiaWxvYwAAAABEQAABAAIAAAAABgAAAQAAACUAAAAYAAAAKGlpbmYAAAAAAAEAAAAaaW5mZQIAAAAAAgAAYXYwMUFscGhhAAAAAAxpcmVmAAAAAAAAAI1pcHJwAAAAbmlwY28AAAAUaXNwZQAAAAAAAAABAAAAAQAAAA5waXhpAAAAAAEIAAAADGF2MUOBABwAAAAAOGF1eEMAAAAAdXJuOm1wZWc6bXBlZ0I6Y2ljcDpzeXN0ZW1zOmF1eGlsaWFyeTphbHBoYQAAAAAXaXBtYQAAAAAAAAABAAIEAQKDBAAABKdtb292AAAAbG12aGQAAAAA4GrKgOBqyoAAAABkAAAAZAABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAACGXRyYWsAAABcdGtoZAAAAAHgasqA4GrL+AAAAAEAAAAAAAAAZAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAQAAAAEAAAAAAbVtZGlhAAAAIG1kaGQAAAAA4GrKgOBqyoAAAABkAAAAZFXEAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAABZW1pbmYAAAAUdm1oZAAAAAEAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAASVzdGJsAAAAlXN0c2QAAAAAAAAAAQAAAIVhdjAxAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAEAAQBIAAAASAAAAAAAAAABCkFPTSBDb2RpbmcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGP//AAAADGF2MUOBIAAAAAAAE2NvbHJuY2x4AAEADQAGgAAAABBjY3N0AAAAAHwAAAAAAAAYc3R0cwAAAAAAAAABAAAAAgAAADIAAAAUc3RzcwAAAAAAAAABAAAAAQAAAChzdHNjAAAAAAAAAAIAAAABAAAAAQAAAAEAAAACAAAAAQAAAAEAAAAcc3RzegAAAAAAAAAAAAAAAgAAACUAAAAaAAAAGHN0Y28AAAAAAAAAAgAABgAAAAY9AAACGnRyYWsAAABcdGtoZAAAAAHgasqA4GrL+AAAAAIAAAAAAAAAZAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAQAAAAEAAAAAABR0cmVmAAAADGF1eGwAAAABAAABom1kaWEAAAAgbWRoZAAAAADgasqA4GrKgAAAAGQAAABkVcQAAAAAAChoZGxyAAAAAAAAAABwaWN0AAAAAAAAAAAAAAAAbGliYXZpZgAAAAFSbWluZgAAABR2bWhkAAAAAQAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAABEnN0YmwAAACCc3RzZAAAAAAAAAABAAAAcmF2MDEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAQABAEgAAABIAAAAAAAAAAEKQU9NIENvZGluZwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY//8AAAAMYXYxQ4EAHAAAAAAQY2NzdAAAAAB8AAAAAAAAGHN0dHMAAAAAAAAAAQAAAAIAAAAyAAAAFHN0c3MAAAAAAAAAAQAAAAEAAAAoc3RzYwAAAAAAAAACAAAAAQAAAAEAAAABAAAAAgAAAAEAAAABAAAAHHN0c3oAAAAAAAAAAAAAAAIAAAAYAAAAEAAAABhzdGNvAAAAAAAAAAIAAAYlAAAGVwAAAG9tZGF0EgAKCyAAAAAAffyQENBpMhQQALAAAAJAAAAAeUzeCGsZI8iw4BIACggAAAAAAH38lTIKEACAAAAY3qKVUBIAMhYwA8CAAABGsAAAAkAAIAAeeln6XS7gEgAyDDADwIAAAEaABACRkAAAAENmcmVlSXNvTWVkaWEgRmlsZSBQcm9kdWNlZCB3aXRoIEdQQUMgMi4yLXJldjAtZ2FiMDEyYmJmLW1hc3RlcgA="})];case 1:return t=e.sent(),w()||(window.imagex_support_avif=t),i(t),E("imagex_support_avif",t),E("imagex_ua",x),[2]}})}).catch(console.error)},[r]),[r]},q="undefined"==typeof window?n.useEffect:n.useLayoutEffect,H={},V=function(t){return t.src},Z=function(t){var e,r,a,s,u,c=(0,n.useState)(!1),h=c[0],c=c[1],d=(0,n.useRef)(null),g=U(!M())[0],m=z(!_())[0],b=(0,n.useRef)(new Set),w=void 0!==t.width&&void 0!==t.height?"data:image/svg+xml;base64,".concat((e='<svg width="'.concat(t.width,'" height="').concat(t.height,'" version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>'),"undefined"!=typeof btoa?btoa(e):"undefined"!=typeof Buffer?Buffer.from(e,"base64").toString():"")):"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",t=(r=i(i(i({},l),H),t),i(i({},r||{}),{formats:Array.isArray(r.formats)?Array.from(new Set(r.formats)):void 0})),A=t.lazyBoundary,D=t.lazyRoot,E=t.onLoadingComplete,x=t.unoptimized,x=void 0!==x&&x,S=t.src,N=void 0===S?"":S,S=t.objectFit,T=t.objectPosition,C=t.loading,I=o(t,["lazyBoundary","lazyRoot","onLoadingComplete","unoptimized","src","objectFit","objectPosition","loading"]),O=p(a=t.src)?(f(a)?a.default:a).src:a,C="lazy"===C||void 0===C,D=(((N="string"==typeof N?N:O).startsWith("data:")||N.startsWith("blob:")||"undefined"!=typeof window&&b.current.has(N)||t.ssr)&&(C=!1),s=N,/^https?:\/\//i.test(s)||s.startsWith("//")||y(N)||(x=!0),F({rootRef:D||null,rootMargin:A,disabled:!C})),A=D[0],L=D[1],P=D[2],D=!!t.ssr||(!C||L)&&!!N&&(!M()||void 0!==g)&&(!_()||void 0!==m),R=(0,n.useRef)(E),B=((0,n.useEffect)(function(){R.current=E},[E]),(0,n.useRef)(N)),C=(q(function(){B.current!==N&&(P(),B.current=N)},[P,N]),t.layout||(t.sizes?"responsive":"intrinsic")),L={boxSizing:"border-box",display:"block",overflow:"hidden",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},j={boxSizing:"border-box",display:"block",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},Z="raw"===t.layout?{}:{position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",padding:0,border:"none",margin:"auto",display:"block",width:0,height:0,minWidth:"100%",maxWidth:"100%",minHeight:"100%",maxHeight:"100%",objectFit:S,objectPosition:T},h="empty"===t.placeholder||h?{}:{backgroundSize:S||"cover",backgroundImage:'url("'.concat("skeleton"===t.placeholder?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwLDAsMjAlLDEwMCUiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgPGRlZnM+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9ImciPgogICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjRjJGM0Y1IiBvZmZzZXQ9IjI1JSIgLz4KICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0U1RTZFQiIgb2Zmc2V0PSIzNyUiIC8+CiAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGMkYzRjUiIG9mZnNldD0iNjMlIiAvPgogICAgPC9saW5lYXJHcmFkaWVudD4KICA8L2RlZnM+CiAgPHJlY3QgaWQ9InIiIHdpZHRoPSI0MDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZykiIC8+CiAgPGFuaW1hdGUgeGxpbms6aHJlZj0iI3IiIGF0dHJpYnV0ZU5hbWU9IngiIGZyb209Ii0zMDAlIiB0bz0iMCUiIGR1cj0iMS41cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiICAvPgo8L3N2Zz4=":t.placeholder,'")'),backgroundPosition:T||"0% 0%"},S=!1,T=("fill"===C?(L.display="block",L.position="absolute",L.top=0,L.left=0,L.bottom=0,L.right=0):void 0!==t.width&&void 0!==t.height&&("intrinsic"===C?(L.display="inline-block",L.position="relative",S=!0,j.maxWidth=L.maxWidth="100%",u="data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27".concat(t.width,"%27%20height=%27").concat(t.height,"%27/%3e")):"responsive"===C?(T=isNaN(T=t.height/t.width)?"100%":"".concat(100*T,"%"),L.display="block",L.position="relative",S=!0,j.paddingTop=T):"fixed"===C&&(L.display="inline-block",L.position="relative",L.width=t.width,L.height=t.height)),i(i({},I),{src:w,srcString:O,loader:t.loader||V,imageSizes:t.imageSizes,placeholderStyle:h,isVisible:D,unoptimized:x,setPlaceholderComplete:c,setTarget:A,imgStyle:Object.assign({},t.style,Z),onLoadingCompleteRef:R,loadedImageURLsRef:b,wrapperElement:d,supportWebP:g,supportAVIF:m}));return n.createElement(n.Fragment,null,"raw"===t.layout?n.createElement(k,i({},T)):n.createElement("span",{ref:d,style:L},S&&n.createElement("span",{style:j},u&&n.createElement("img",{style:{display:"block",maxWidth:"100%",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},alt:"","aria-hidden":!0,src:u})),n.createElement(k,i({},T))))}},689951:function(t,e,r){"use strict";r.d(e,{Z:()=>a});var n=r("130001"),i=r("455069"),o=function(t,e){void 0===t&&(t=!1);var r=(0,n.CR)((0,i.useState)(t),2),o=r[0],a=r[1];return[o,(0,i.useMemo)(function(){var r=void 0===e?!t:e;return{toggle:function(){return a(function(e){return e===t?r:t})},set:function(t){return a(t)},setLeft:function(){return a(t)},setRight:function(){return a(r)}}},[])]};function a(t){void 0===t&&(t=!1);var e=(0,n.CR)(o(!!t),2),r=e[0],a=e[1],s=a.toggle,u=a.set;return[r,(0,i.useMemo)(function(){return{toggle:s,set:function(t){return u(!!t)},setTrue:function(){return u(!0)},setFalse:function(){return u(!1)}}},[])]}},906092:function(t,e,r){"use strict";r.d(e,{Z:()=>s});var n=r("444479"),i=r("334131"),o=function(t){if(!t||!document.getRootNode)return document;var e,r=Array.isArray(t)?t:[t];if(r.every(function(t){var e=(0,i.n)(t);return!!e&&(e.getRootNode()instanceof ShadowRoot||void 0)})){;return(e=(0,i.n)(r[0]))?e.getRootNode():document}return document},a=r("242681");function s(t,e,r){void 0===r&&(r="click");var s=(0,n.Z)(t);(0,a.Z)(function(){var t=function(t){if(!(Array.isArray(e)?e:[e]).some(function(e){var r=(0,i.n)(e);return!r||r.contains(t.target)}))s.current(t)},n=o(e),a=Array.isArray(r)?r:[r];return a.forEach(function(e){return n.addEventListener(e,t)}),function(){a.forEach(function(e){return n.removeEventListener(e,t)})}},Array.isArray(r)?r:[r],e)}},232413:function(t,e,r){"use strict";var n=r(130001),i=r(455069),o=r(750274),a=r(537845),s=r(61279);e.Z=function(t,e){void 0===t&&(t={}),void 0===e&&(e={});var r=e.defaultValue,u=e.defaultValuePropName,l=void 0===u?"defaultValue":u,c=e.valuePropName,h=void 0===c?"value":c,d=e.trigger,f=void 0===d?"onChange":d,p=t[h],g=t.hasOwnProperty(h),y=(0,i.useMemo)(function(){return g?p:t.hasOwnProperty(l)?t[l]:r},[]),m=(0,i.useRef)(y);g&&(m.current=p);var b=(0,s.Z)();return[m.current,(0,a.Z)(function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var a=(0,o.mf)(e)?e(m.current):e;!g&&(m.current=a,b()),t[f]&&t[f].apply(t,(0,n.ev)([a],(0,n.CR)(r),!1))})]}},487082:function(t,e,r){"use strict";var n=r(130001),i=r(479886),o=r.n(i),a=r(455069),s=r(444479),u=r(750274),l=function(t){if(!t)return 0;var e=o()(t).valueOf()-Date.now();return e<0?0:e};e.Z=function(t){void 0===t&&(t={});var e=t||{},r=e.leftTime,i=e.targetDate,o=e.interval,c=void 0===o?1e3:o,h=e.onEnd,d=(0,a.useMemo)(function(){return"leftTime"in t?(0,u.hj)(r)&&r>0?Date.now()+r:void 0:i},[r,i]),f=(0,n.CR)((0,a.useState)(function(){return l(d)}),2),p=f[0],g=f[1],y=(0,s.Z)(h);(0,a.useEffect)(function(){if(!d){g(0);return}g(l(d));var t=setInterval(function(){var e,r=l(d);g(r),0===r&&(clearInterval(t),null===(e=y.current)||void 0===e||e.call(y))},c);return function(){return clearInterval(t)}},[d,c]);var m=(0,a.useMemo)(function(){var t;return{days:Math.floor((t=p)/864e5),hours:Math.floor(t/36e5)%24,minutes:Math.floor(t/6e4)%60,seconds:Math.floor(t/1e3)%60,milliseconds:Math.floor(t)%1e3}},[p]);return[p,m]}},363036:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(455069),i=r(696452);function o(t,e){var r=(0,n.useRef)({deps:e,obj:void 0,initialized:!1}).current;return(!1===r.initialized||!(0,i.Z)(r.deps,e))&&(r.deps=e,r.obj=t(),r.initialized=!0),r.obj}},523830:function(t,e,r){"use strict";var n=r(130001),i=r(455069),o=r(998600),a=r(136515);e.Z=function(t,e,r){var s=(0,n.CR)((0,i.useState)({}),2),u=s[0],l=s[1],c=(0,o.Z)(function(){l({})},r).run;(0,i.useEffect)(function(){return c()},e),(0,a.Z)(t,[u])}},998600:function(t,e,r){"use strict";var n=r(130001),i=r(612447),o=r.n(i),a=r(455069),s=r(444479),u=r(606947),l=r(750274),c=r(598565);e.Z=function(t,e){c.Z&&!(0,l.mf)(t)&&console.error("useDebounceFn expected parameter is a function, got ".concat(typeof t));var r,i=(0,s.Z)(t),h=null!==(r=null==e?void 0:e.wait)&&void 0!==r?r:1e3,d=(0,a.useMemo)(function(){return o()(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i.current.apply(i,(0,n.ev)([],(0,n.CR)(t),!1))},h,e)},[]);return(0,u.Z)(function(){d.cancel()}),{run:d,cancel:d.cancel,flush:d.flush}}},293318:function(t,e,r){"use strict";var n=r(130001),i=r(455069),o=r(253655),a=r(801547),s=function(){return a.Z?document.visibilityState:"visible"};e.Z=function(){var t=(0,n.CR)((0,i.useState)(function(){return s()}),2),e=t[0],r=t[1];return(0,o.Z)("visibilitychange",function(){r(s())},{target:function(){return document}}),e}},253655:function(t,e,r){"use strict";var n=r(444479),i=r(334131),o=r(242681);e.Z=function(t,e,r){void 0===r&&(r={});var a=(0,n.Z)(e);(0,o.Z)(function(){var e=(0,i.n)(r.target,window);if(!!(null==e?void 0:e.addEventListener)){var n=function(t){return a.current(t)};return e.addEventListener(t,n,{capture:r.capture,once:r.once,passive:r.passive}),function(){e.removeEventListener(t,n,{capture:r.capture})}}},[t,r.capture,r.once,r.passive],r.target)}},966140:function(t,e,r){"use strict";var n=r(130001),i=r(689951),o=r(253655);e.Z=function(t,e){var r=e||{},a=r.onEnter,s=r.onLeave,u=r.onChange,l=(0,n.CR)((0,i.Z)(!1),2),c=l[0],h=l[1],d=h.setTrue,f=h.setFalse;return(0,o.Z)("mouseenter",function(){null==a||a(),d(),null==u||u(!0)},{target:t}),(0,o.Z)("mouseleave",function(){null==s||s(),f(),null==u||u(!1)},{target:t}),c}},584466:function(t,e,r){"use strict";var n=r(130001);r(337639);var i=r(455069),o=r(334131),a=r(242681);e.Z=function(t,e){var r=(0,n.CR)((0,i.useState)(),2),s=r[0],u=r[1],l=(0,n.CR)((0,i.useState)(),2),c=l[0],h=l[1];return(0,a.Z)(function(){var r=(0,o.n)(t);if(!!r){var i=new IntersectionObserver(function(t){var e,r;try{for(var i=(0,n.XA)(t),o=i.next();!o.done;o=i.next()){var a=o.value;h(a.intersectionRatio),u(a.isIntersecting)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}},(0,n.pi)((0,n.pi)({},e),{root:(0,o.n)(null==e?void 0:e.root)}));return i.observe(r),function(){i.disconnect()}}},[null==e?void 0:e.rootMargin,null==e?void 0:e.threshold],t),[s,c]}},974235:function(t,e,r){"use strict";r.d(e,{Z:()=>c});var n=r("130001"),i=r("455069"),o=r("253655"),a=r("537845"),s=r("735114"),u=r("136515"),l=r("334131"),c=function(t,e){void 0===e&&(e={});var r=e.target,c=e.isNoMore,h=e.threshold,d=void 0===h?100:h,f=e.reloadDeps,p=e.manual,g=e.onBefore,y=e.onSuccess,m=e.onError,b=e.onFinally,w=(0,n.CR)((0,i.useState)(),2),A=w[0],D=w[1],E=(0,n.CR)((0,i.useState)(!1),2),x=E[0],S=E[1],M=(0,i.useMemo)(function(){return!!c&&c(A)},[A]),_=(0,s.Z)(function(e){return(0,n.mG)(void 0,void 0,void 0,function(){var r,i,o;return(0,n.Jh)(this,function(a){switch(a.label){case 0:return[4,t(e)];case 1:return r=a.sent(),e?D((0,n.pi)((0,n.pi)({},r),{list:(0,n.ev)((0,n.ev)([],(0,n.CR)(null!==(o=e.list)&&void 0!==o?o:[]),!1),(0,n.CR)(r.list),!1)})):D((0,n.pi)((0,n.pi)({},r),{list:(0,n.ev)([],(0,n.CR)(null!==(i=r.list)&&void 0!==i?i:[]),!1)})),[2,r]}})})},{manual:p,onFinally:function(t,e,r){S(!1),null==b||b(e,r)},onBefore:function(){return null==g?void 0:g()},onSuccess:function(t){setTimeout(function(){L()},10),null==y||y(t)},onError:function(t){return null==m?void 0:m(t)}}),N=_.loading,T=_.run,C=_.runAsync,I=_.cancel,O=(0,a.Z)(function(){!M&&(S(!0),T(A))}),k=(0,a.Z)(function(){return M?Promise.reject():(S(!0),C(A))}),L=function(){var t,e=(0,l.n)(r);if(!!e){var n=(t=e=e===document?document.documentElement:e)===document||t===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):t.scrollTop;(e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight))-n<=(e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight))+d&&O()}};return(0,o.Z)("scroll",function(){if(!N&&!x)L()},{target:r}),(0,u.Z)(function(){T()},(0,n.ev)([],(0,n.CR)(void 0===f?[]:f),!1)),{data:A,loading:!x&&N,loadingMore:x,noMore:M,loadMore:O,loadMoreAsync:k,reload:(0,a.Z)(function(){return S(!1),T()}),reloadAsync:(0,a.Z)(function(){return S(!1),C()}),mutate:D,cancel:I}}},273910:function(t,e,r){"use strict";var n=r(455069),i=r(537845),o=r(750274);e.Z=function(t,e,r){void 0===r&&(r={});var a=(0,i.Z)(t),s=(0,n.useRef)(null),u=(0,n.useCallback)(function(){s.current&&clearInterval(s.current)},[]);return(0,n.useEffect)(function(){if(!!(0,o.hj)(e)&&!(e<0))return r.immediate&&a(),s.current=setInterval(a,e),u},[e,r.immediate]),u}},803901:function(t,e,r){"use strict";r.d(e,{Z:()=>f});var n=r("130001"),i=r("444479"),o=r("750274"),a=r("334131"),s=r("364769"),u=/(mac|iphone|ipod|ipad)/i.test("undefined"!=typeof navigator?null==navigator?void 0:navigator.platform:""),l={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:u?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},c={ctrl:function(t){return t.ctrlKey},shift:function(t){return t.shiftKey},alt:function(t){return t.altKey},meta:function(t){return"keyup"===t.type?l.meta.includes(t.keyCode):t.metaKey}};function h(t,e,r){if(!t.key)return!1;if((0,o.hj)(e))return t.keyCode===e;var i,a,s,u,h=e.split("."),d=0;try{for(var f=(0,n.XA)(h),p=f.next();!p.done;p=f.next()){var g=p.value,y=c[g],m=l[g.toLowerCase()];(y&&y(t)||m&&m===t.keyCode)&&d++}}catch(t){s={error:t}}finally{try{p&&!p.done&&(u=f.return)&&u.call(f)}finally{if(s)throw s.error}}if(r){;return d===h.length&&(i=t,a=Object.keys(c).reduce(function(t,e){return c[e](i)?t+1:t},0),([16,17,18,91,92].includes(i.keyCode)?a:a+1)===h.length)}return d===h.length}var d=["keydown"],f=function(t,e,r){var u=r||{},l=u.events,c=void 0===l?d:l,f=u.target,p=u.exactMatch,g=void 0!==p&&p,y=u.useCapture,m=void 0!==y&&y,b=(0,i.Z)(e),w=(0,i.Z)(t);(0,s.Z)(function(){var t,e,r,i=(0,a.n)(f,window);if(!!i){var s=function(t){var e,r,n;if((e=w.current,r=g,(0,o.mf)(e)?e:(0,o.HD)(e)||(0,o.hj)(e)?function(t){return h(t,e,r)}:Array.isArray(e)?function(t){return e.some(function(e){return h(t,e,r)})}:function(){return!!e})(t))return null===(n=b.current)||void 0===n?void 0:n.call(b,t)};try{for(var u=(0,n.XA)(c),l=u.next();!l.done;l=u.next()){var d=l.value;null===(r=null==i?void 0:i.addEventListener)||void 0===r||r.call(i,d,s,m)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}return function(){try{for(var t,e,r,o=(0,n.XA)(c),a=o.next();!a.done;a=o.next()){var u=a.value;null===(r=null==i?void 0:i.removeEventListener)||void 0===r||r.call(i,u,s,m)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}}}},[c],f)}},444479:function(t,e,r){"use strict";var n=r(455069);e.Z=function(t){var e=(0,n.useRef)(t);return e.current=t,e}},537845:function(t,e,r){"use strict";var n=r(455069),i=r(750274),o=r(598565);e.Z=function(t){o.Z&&!(0,i.mf)(t)&&console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof t));var e=(0,n.useRef)(t);e.current=(0,n.useMemo)(function(){return t},[t]);var r=(0,n.useRef)();return!r.current&&(r.current=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.current.apply(this,t)}),r.current}},550540:function(t,e,r){"use strict";var n=r(455069),i=r(750274),o=r(598565);e.Z=function(t){o.Z&&!(0,i.mf)(t)&&console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof t,'".')),(0,n.useEffect)(function(){null==t||t()},[])}},563440:function(t,e,r){"use strict";var n=r(455069),i=function(t,e){return!Object.is(t,e)};e.Z=function(t,e){void 0===e&&(e=i);var r=(0,n.useRef)(),o=(0,n.useRef)();return e(o.current,t)&&(r.current=o.current,o.current=t),r.current}},43917:function(t,e,r){"use strict";var n=r(130001),i=r(455069),o=r(606947);e.Z=function(t){var e=(0,i.useRef)(0),r=(0,n.CR)((0,i.useState)(t),2),a=r[0],s=r[1],u=(0,i.useCallback)(function(t){cancelAnimationFrame(e.current),e.current=requestAnimationFrame(function(){s(t)})},[]);return(0,o.Z)(function(){cancelAnimationFrame(e.current)}),[a,u]}},626862:function(t,e,r){"use strict";var n=r(455069),i=r(199585),o=r.n(i),a=r(363036),s=r(61279),u=new WeakMap,l=new WeakMap;e.Z=function(t){var e=(0,s.Z)(),r=(0,n.useRef)(t);return(0,a.Z)(function(){return function t(e,r){var n=u.get(e);if(n)return n;if(l.has(e))return e;var i=new Proxy(e,{get:function(e,n,i){var a=Reflect.get(e,n,i);return o()(a)||Array.isArray(a)?t(a,r):a},set:function(t,e,n){var i=Reflect.set(t,e,n);return r(),i},deleteProperty:function(t,e){var n=Reflect.deleteProperty(t,e);return r(),n}});return u.set(e,i),l.set(i,e),i}(r.current,function(){e()})},[])}},735114:function(t,e,r){"use strict";r.d(e,{Z:()=>z});var n=r("130001"),i=r("455069"),o=r("136515"),a=function(t,e){var r=e.manual,a=e.ready,s=void 0===a||a,u=e.defaultParams,l=void 0===u?[]:u,c=e.refreshDeps,h=e.refreshDepsAction,d=(0,i.useRef)(!1);return d.current=!1,(0,o.Z)(function(){!r&&s&&(d.current=!0,t.run.apply(t,(0,n.ev)([],(0,n.CR)(l),!1)))},[s]),(0,o.Z)(function(){if(!d.current)!r&&(d.current=!0,h?h():t.refresh())},(0,n.ev)([],(0,n.CR)(void 0===c?[]:c),!1)),{onBefore:function(){if(!s)return{stopNow:!0}}}};a.onInit=function(t){var e=t.ready;return{loading:!t.manual&&(void 0===e||e)}};var s=r("363036"),u=r("606947"),l=new Map,c=function(t,e,r){var i=l.get(t);(null==i?void 0:i.timer)&&clearTimeout(i.timer);var o=void 0;e>-1&&(o=setTimeout(function(){l.delete(t)},e)),l.set(t,(0,n.pi)((0,n.pi)({},r),{timer:o}))},h=new Map,d=function(t,e){h.set(t,e),e.then(function(e){return h.delete(t),e}).catch(function(){h.delete(t)})},f={},p=function(t,e){f[t]&&f[t].forEach(function(t){return t(e)})},g=function(t,e){return!f[t]&&(f[t]=[]),f[t].push(e),function(){var r=f[t].indexOf(e);f[t].splice(r,1)}},y=function(t,e){var r=e.cacheKey,o=e.cacheTime,a=void 0===o?3e5:o,f=e.staleTime,y=void 0===f?0:f,m=e.setCache,b=e.getCache,w=(0,i.useRef)(),A=(0,i.useRef)(),D=function(t,e){m?m(e):c(t,a,e),p(t,e.data)},E=function(t,e){var r;if(void 0===e&&(e=[]),b)return b(e);return r=t,l.get(r)};return((0,s.Z)(function(){if(!!r){var e=E(r);e&&Object.hasOwnProperty.call(e,"data")&&(t.state.data=e.data,t.state.params=e.params,(-1===y||new Date().getTime()-e.time<=y)&&(t.state.loading=!1)),w.current=g(r,function(e){t.setState({data:e})})}},[]),(0,u.Z)(function(){var t;null===(t=w.current)||void 0===t||t.call(w)}),r)?{onBefore:function(t){var e=E(r,t);return e&&Object.hasOwnProperty.call(e,"data")?-1===y||new Date().getTime()-e.time<=y?{loading:!1,data:null==e?void 0:e.data,error:void 0,returnNow:!0}:{data:null==e?void 0:e.data,error:void 0}:{}},onRequest:function(t,e){var i,o=(i=r,h.get(i));return o&&o!==A.current?{servicePromise:o}:(o=t.apply(void 0,(0,n.ev)([],(0,n.CR)(e),!1)),A.current=o,d(r,o),{servicePromise:o})},onSuccess:function(e,n){var i;r&&(null===(i=w.current)||void 0===i||i.call(w),D(r,{data:e,params:n,time:new Date().getTime()}),w.current=g(r,function(e){t.setState({data:e})}))},onMutate:function(e){var n;r&&(null===(n=w.current)||void 0===n||n.call(w),D(r,{data:e,params:t.state.params,time:new Date().getTime()}),w.current=g(r,function(e){t.setState({data:e})}))}}:{}},m=r("612447"),b=r.n(m),w=function(t,e){var r=e.debounceWait,o=e.debounceLeading,a=e.debounceTrailing,s=e.debounceMaxWait,u=(0,i.useRef)(),l=(0,i.useMemo)(function(){var t={};return void 0!==o&&(t.leading=o),void 0!==a&&(t.trailing=a),void 0!==s&&(t.maxWait=s),t},[o,a,s]);return((0,i.useEffect)(function(){if(r){var e=t.runAsync.bind(t);return u.current=b()(function(t){t()},r,l),t.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new Promise(function(r,i){var o;null===(o=u.current)||void 0===o||o.call(u,function(){e.apply(void 0,(0,n.ev)([],(0,n.CR)(t),!1)).then(r).catch(i)})})},function(){var r;null===(r=u.current)||void 0===r||r.cancel(),t.runAsync=e}}},[r,l]),r)?{onCancel:function(){var t;null===(t=u.current)||void 0===t||t.cancel()}}:{}},A=function(t,e){var r=e.loadingDelay,n=e.ready,o=(0,i.useRef)();if(!r)return{};var a=function(){o.current&&clearTimeout(o.current)};return{onBefore:function(){return a(),!1!==n&&(o.current=setTimeout(function(){t.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){a()},onCancel:function(){a()}}},D=r("801547");function E(){return!D.Z||"hidden"!==document.visibilityState}var x=[];D.Z&&window.addEventListener("visibilitychange",function(){if(E())for(var t=0;t<x.length;t++)(0,x[t])()},!1);var S=function(t,e){var r=e.pollingInterval,n=e.pollingWhenHidden,a=void 0===n||n,s=e.pollingErrorRetryCount,u=void 0===s?-1:s,l=(0,i.useRef)(),c=(0,i.useRef)(),h=(0,i.useRef)(0),d=function(){var t;l.current&&clearTimeout(l.current),null===(t=c.current)||void 0===t||t.call(c)};return((0,o.Z)(function(){!r&&d()},[r]),r)?{onBefore:function(){d()},onError:function(){h.current+=1},onSuccess:function(){h.current=0},onFinally:function(){-1===u||-1!==u&&h.current<=u?l.current=setTimeout(function(){if(a||E())t.refresh();else{var e;c.current=(e=function(){t.refresh()},x.push(e),function(){var t=x.indexOf(e);x.splice(t,1)})}},r):h.current=0},onCancel:function(){d()}}:{}},M=[];if(D.Z){var _=function(){if(E()&&(!D.Z||void 0===navigator.onLine||navigator.onLine))for(var t=0;t<M.length;t++)(0,M[t])()};window.addEventListener("visibilitychange",_,!1),window.addEventListener("focus",_,!1)}var N=function(t,e){var r=e.refreshOnWindowFocus,o=e.focusTimespan,a=void 0===o?5e3:o,s=(0,i.useRef)(),l=function(){var t;null===(t=s.current)||void 0===t||t.call(s)};return(0,i.useEffect)(function(){if(r){var e,i,o,u,c=(e=t.refresh.bind(t),i=a,o=!1,function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];!o&&(o=!0,e.apply(void 0,(0,n.ev)([],(0,n.CR)(t),!1)),setTimeout(function(){o=!1},i))});s.current=(u=function(){c()},M.push(u),function(){var t=M.indexOf(u);t>-1&&M.splice(t,1)})}return function(){l()}},[r,a]),(0,u.Z)(function(){l()}),{}},T=function(t,e){var r=e.retryInterval,n=e.retryCount,o=(0,i.useRef)(),a=(0,i.useRef)(0),s=(0,i.useRef)(!1);return n?{onBefore:function(){!s.current&&(a.current=0),s.current=!1,o.current&&clearTimeout(o.current)},onSuccess:function(){a.current=0},onError:function(){if(a.current+=1,-1===n||a.current<=n){var e=null!=r?r:Math.min(1e3*Math.pow(2,a.current),3e4);o.current=setTimeout(function(){s.current=!0,t.refresh()},e)}else a.current=0},onCancel:function(){a.current=0,o.current&&clearTimeout(o.current)}}:{}},C=r("122540"),I=r.n(C),O=function(t,e){var r=e.throttleWait,o=e.throttleLeading,a=e.throttleTrailing,s=(0,i.useRef)(),u={};return(void 0!==o&&(u.leading=o),void 0!==a&&(u.trailing=a),(0,i.useEffect)(function(){if(r){var e=t.runAsync.bind(t);return s.current=I()(function(t){t()},r,u),t.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new Promise(function(r,i){var o;null===(o=s.current)||void 0===o||o.call(s,function(){e.apply(void 0,(0,n.ev)([],(0,n.CR)(t),!1)).then(r).catch(i)})})},function(){var r;t.runAsync=e,null===(r=s.current)||void 0===r||r.cancel()}}},[r,o,a]),r)?{onCancel:function(){var t;null===(t=s.current)||void 0===t||t.cancel()}}:{}},k=r("444479"),L=r("537845"),P=r("550540"),R=r("61279"),B=r("598565"),j=r("750274"),F=function(){function t(t,e,r,i){void 0===i&&(i={}),this.serviceRef=t,this.options=e,this.subscribe=r,this.initState=i,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=(0,n.pi)((0,n.pi)((0,n.pi)({},this.state),{loading:!e.manual}),i)}return t.prototype.setState=function(t){void 0===t&&(t={}),this.state=(0,n.pi)((0,n.pi)({},this.state),t),this.subscribe()},t.prototype.runPluginHandler=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=this.pluginImpls.map(function(r){var i;return null===(i=r[t])||void 0===i?void 0:i.call.apply(i,(0,n.ev)([r],(0,n.CR)(e),!1))}).filter(Boolean);return Object.assign.apply(Object,(0,n.ev)([{}],(0,n.CR)(i),!1))},t.prototype.runAsync=function(){for(var t,e,r,i,o,a,s,u,l,c,h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];return(0,n.mG)(this,void 0,void 0,function(){var d,f,p,g,y,m,b,w,A,D,E;return(0,n.Jh)(this,function(x){switch(x.label){case 0:if(this.count+=1,d=this.count,g=void 0!==(p=(f=this.runPluginHandler("onBefore",h)).stopNow)&&p,m=void 0!==(y=f.returnNow)&&y,b=(0,n._T)(f,["stopNow","returnNow"]),g)return[2,new Promise(function(){})];if(this.setState((0,n.pi)({loading:!0,params:h},b)),m)return[2,Promise.resolve(b.data)];null===(e=(t=this.options).onBefore)||void 0===e||e.call(t,h),x.label=1;case 1:return x.trys.push([1,3,,4]),!(w=this.runPluginHandler("onRequest",this.serviceRef.current,h).servicePromise)&&(w=(E=this.serviceRef).current.apply(E,(0,n.ev)([],(0,n.CR)(h),!1))),[4,w];case 2:if(A=x.sent(),d!==this.count)return[2,new Promise(function(){})];return this.setState({data:A,error:void 0,loading:!1}),null===(i=(r=this.options).onSuccess)||void 0===i||i.call(r,A,h),this.runPluginHandler("onSuccess",A,h),null===(a=(o=this.options).onFinally)||void 0===a||a.call(o,h,A,void 0),d===this.count&&this.runPluginHandler("onFinally",h,A,void 0),[2,A];case 3:if(D=x.sent(),d!==this.count)return[2,new Promise(function(){})];throw this.setState({error:D,loading:!1}),null===(u=(s=this.options).onError)||void 0===u||u.call(s,D,h),this.runPluginHandler("onError",D,h),null===(c=(l=this.options).onFinally)||void 0===c||c.call(l,h,void 0,D),d===this.count&&this.runPluginHandler("onFinally",h,void 0,D),D;case 4:return[2]}})})},t.prototype.run=function(){for(var t=this,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.runAsync.apply(this,(0,n.ev)([],(0,n.CR)(e),!1)).catch(function(e){!t.options.onError&&console.error(e)})},t.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},t.prototype.refresh=function(){this.run.apply(this,(0,n.ev)([],(0,n.CR)(this.state.params||[]),!1))},t.prototype.refreshAsync=function(){return this.runAsync.apply(this,(0,n.ev)([],(0,n.CR)(this.state.params||[]),!1))},t.prototype.mutate=function(t){var e=(0,j.mf)(t)?t(this.state.data):t;this.runPluginHandler("onMutate",e),this.setState({data:e})},t}(),U=function(t,e,r){void 0===e&&(e={}),void 0===r&&(r=[]);var i=e.manual,o=void 0!==i&&i,a=(0,n._T)(e,["manual"]);B.Z&&e.defaultParams&&!Array.isArray(e.defaultParams)&&console.warn("expected defaultParams is array, got ".concat(typeof e.defaultParams));var l=(0,n.pi)({manual:o},a),c=(0,k.Z)(t),h=(0,R.Z)(),d=(0,s.Z)(function(){var t=r.map(function(t){var e;return null===(e=null==t?void 0:t.onInit)||void 0===e?void 0:e.call(t,l)}).filter(Boolean);return new F(c,l,h,Object.assign.apply(Object,(0,n.ev)([{}],(0,n.CR)(t),!1)))},[]);return d.options=l,d.pluginImpls=r.map(function(t){return t(d,l)}),(0,P.Z)(function(){if(!o){var t=d.state.params||e.defaultParams||[];d.run.apply(d,(0,n.ev)([],(0,n.CR)(t),!1))}}),(0,u.Z)(function(){d.cancel()}),{loading:d.state.loading,data:d.state.data,error:d.state.error,params:d.state.params||[],cancel:(0,L.Z)(d.cancel.bind(d)),refresh:(0,L.Z)(d.refresh.bind(d)),refreshAsync:(0,L.Z)(d.refreshAsync.bind(d)),run:(0,L.Z)(d.run.bind(d)),runAsync:(0,L.Z)(d.runAsync.bind(d)),mutate:(0,L.Z)(d.mutate.bind(d))}},z=function(t,e,r){return U(t,e,(0,n.ev)((0,n.ev)([],(0,n.CR)(r||[]),!1),[w,A,S,N,O,a,y,T],!1))}},416290:function(t,e,r){"use strict";r.d(e,{Z:()=>d});var n=r("130001"),i=r("714682"),o=r("43917"),a=r("334131"),s=r("801547"),u=r("242681"),l=r("455069"),c=(0,r("896552").Z)(l.useLayoutEffect),h=s.Z?c:u.Z,d=function(t){var e=(0,n.CR)((0,o.Z)(function(){var e=(0,a.n)(t);return e?{width:e.clientWidth,height:e.clientHeight}:void 0}),2),r=e[0],s=e[1];return h(function(){var e=(0,a.n)(t);if(!!e){var r=new i.Z(function(t){t.forEach(function(t){var e=t.target;s({width:e.clientWidth,height:e.clientHeight})})});return r.observe(e),function(){r.disconnect()}}},[],t),r}},810981:function(t,e,r){"use strict";var n=r(130001),i=r(122540),o=r.n(i),a=r(455069),s=r(444479),u=r(606947),l=r(750274),c=r(598565);e.Z=function(t,e){c.Z&&!(0,l.mf)(t)&&console.error("useThrottleFn expected parameter is a function, got ".concat(typeof t));var r,i=(0,s.Z)(t),h=null!==(r=null==e?void 0:e.wait)&&void 0!==r?r:1e3,d=(0,a.useMemo)(function(){return o()(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i.current.apply(i,(0,n.ev)([],(0,n.CR)(t),!1))},h,e)},[]);return(0,u.Z)(function(){d.cancel()}),{run:d,cancel:d.cancel,flush:d.flush}}},606947:function(t,e,r){"use strict";var n=r(455069),i=r(444479),o=r(750274),a=r(598565);e.Z=function(t){a.Z&&!(0,o.mf)(t)&&console.error("useUnmount expected parameter is a function, got ".concat(typeof t));var e=(0,i.Z)(t);(0,n.useEffect)(function(){return function(){e.current()}},[])}},61279:function(t,e,r){"use strict";var n=r(130001),i=r(455069);e.Z=function(){var t=(0,n.CR)((0,i.useState)({}),2)[1];return(0,i.useCallback)(function(){return t({})},[])}},136515:function(t,e,r){"use strict";r.d(e,{Z:()=>o});var n,i=r("455069");var o=(n=i.useEffect,function(t,e){var r=(0,i.useRef)(!1);n(function(){return function(){r.current=!1}},[]),n(function(){if(r.current)return t();r.current=!0},e)})},896552:function(t,e,r){"use strict";var n=r(455069),i=r(606947),o=r(696452),a=r(334131);e.Z=function(t){return function(e,r,s){var u=(0,n.useRef)(!1),l=(0,n.useRef)([]),c=(0,n.useRef)([]),h=(0,n.useRef)();t(function(){var t,n=(Array.isArray(s)?s:[s]).map(function(t){return(0,a.n)(t)});if(!u.current){u.current=!0,l.current=n,c.current=r,h.current=e();return}(n.length!==l.current.length||!(0,o.Z)(n,l.current)||!(0,o.Z)(r,c.current))&&(null===(t=h.current)||void 0===t||t.call(h),l.current=n,c.current=r,h.current=e())}),(0,i.Z)(function(){var t;null===(t=h.current)||void 0===t||t.call(h),u.current=!1})}}},696452:function(t,e,r){"use strict";function n(t,e){if(t===e)return!0;for(var r=0;r<t.length;r++)if(!Object.is(t[r],e[r]))return!1;return!0}r.d(e,{Z:function(){return n}})},334131:function(t,e,r){"use strict";r.d(e,{n:function(){return o}});var n=r(750274),i=r(801547);function o(t,e){var r;return i.Z?t?r=(0,n.mf)(t)?t():"current"in t?t.current:t:e:void 0}},750274:function(t,e,r){"use strict";r.d(e,{G7:function(){return a},HD:function(){return i},hj:function(){return o},mf:function(){return n}});var n=function(t){return"function"==typeof t},i=function(t){return"string"==typeof t},o=function(t){return"number"==typeof t},a=function(t){return void 0===t}},801547:function(t,e){"use strict";var r=!!("undefined"!=typeof window&&window.document&&window.document.createElement);e.Z=r},598565:function(t,e){"use strict";e.Z=!1},364769:function(t,e,r){"use strict";r.d(e,{Z:()=>s});var n=r("455069"),i=r("242681"),o=r("770685"),a=r.n(o),s=function(t,e,r){var o,s,u=(0,n.useRef)(),l=(0,n.useRef)(0);if(o=e,s=u.current,void 0===o&&(o=[]),void 0===s&&(s=[]),!a()(o,s))u.current=e,l.current+=1;(0,i.Z)(t,[l.current],r)}},242681:function(t,e,r){"use strict";var n=r(455069),i=(0,r(896552).Z)(n.useEffect);e.Z=i},288242:function(t,e){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function n(t){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t,e,r){return(o=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&i(o,r.prototype),o}).apply(null,arguments)}function a(t){var e="function"==typeof Map?new Map:void 0;return(a=function(t){var r;if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,a)}function a(){return o(t,arguments,n(this).constructor)}return a.prototype=Object.create(t.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i(a,t)})(t)}var s=/%[sdj%]/g;function u(t){if(!t||!t.length)return null;var e={};return t.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function l(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=1,i=e[0],o=e.length;return"function"==typeof i?i.apply(null,e.slice(1)):"string"==typeof i?String(i).replace(s,function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return String(e[n++]);case"%d":return Number(e[n++]);case"%j":try{return JSON.stringify(e[n++])}catch(t){return"[Circular]"}break;default:return t}}):i}"undefined"!=typeof process&&process.env;function c(t,e){var r;if(null==t||"array"===e&&Array.isArray(t)&&!t.length)return!0;return("string"===(r=e)||"url"===r||"hex"===r||"email"===r||"date"===r||"pattern"===r)&&"string"==typeof t&&!t&&!0}function h(t,e,r){var n=0,i=t.length;!function o(a){if(a&&a.length){r(a);return}var s=n;n+=1,s<i?e(t[s],o):r([])}([])}var d=function(t){var e,r;function n(e,r){var n;return(n=t.call(this,"Async Validation Error")||this).errors=e,n.fields=r,n}return e=n,r=t,e.prototype=Object.create(r.prototype),e.prototype.constructor=e,i(e,r),n}(a(Error));function f(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:"function"==typeof e?e():e,field:e.field||t.fullField}}}function p(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];"object"==typeof i&&"object"==typeof t[n]?t[n]=r({},t[n],i):t[n]=i}}return t}function g(t,e,r,n,i,o){t.required&&(!r.hasOwnProperty(t.field)||c(e,o||t.type))&&n.push(l(i.messages.required,t.fullField))}var y={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},m={integer:function(t){return m.number(t)&&parseInt(t,10)===t},float:function(t){return m.number(t)&&!m.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return new RegExp(t),!0}catch(t){return!1}},date:function(t){return"function"==typeof t.getTime&&"function"==typeof t.getMonth&&"function"==typeof t.getYear&&!isNaN(t.getTime())},number:function(t){return!isNaN(t)&&"number"==typeof t},object:function(t){return"object"==typeof t&&!m.array(t)},method:function(t){return"function"==typeof t},email:function(t){return"string"==typeof t&&!!t.match(y.email)&&t.length<255},url:function(t){return"string"==typeof t&&!!t.match(y.url)},hex:function(t){return"string"==typeof t&&!!t.match(y.hex)}},b="enum",w={required:g,whitespace:function(t,e,r,n,i){(/^\s+$/.test(e)||""===e)&&n.push(l(i.messages.whitespace,t.fullField))},type:function(t,e,r,n,i){if(t.required&&void 0===e){g(t,e,r,n,i);return}var o=t.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?!m[o](e)&&n.push(l(i.messages.types[o],t.fullField,t.type)):o&&typeof e!==t.type&&n.push(l(i.messages.types[o],t.fullField,t.type))},range:function(t,e,r,n,i){var o="number"==typeof t.len,a="number"==typeof t.min,s="number"==typeof t.max,u=e,c=null,h="number"==typeof e,d="string"==typeof e,f=Array.isArray(e);if(h?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(u=e.length),d&&(u=e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?u!==t.len&&n.push(l(i.messages[c].len,t.fullField,t.len)):a&&!s&&u<t.min?n.push(l(i.messages[c].min,t.fullField,t.min)):s&&!a&&u>t.max?n.push(l(i.messages[c].max,t.fullField,t.max)):a&&s&&(u<t.min||u>t.max)&&n.push(l(i.messages[c].range,t.fullField,t.min,t.max))},enum:function(t,e,r,n,i){t[b]=Array.isArray(t[b])?t[b]:[],-1===t[b].indexOf(e)&&n.push(l(i.messages[b],t.fullField,t[b].join(", ")))},pattern:function(t,e,r,n,i){t.pattern&&(t.pattern instanceof RegExp?(t.pattern.lastIndex=0,!t.pattern.test(e)&&n.push(l(i.messages.pattern.mismatch,t.fullField,e,t.pattern))):"string"==typeof t.pattern&&!new RegExp(t.pattern).test(e)&&n.push(l(i.messages.pattern.mismatch,t.fullField,e,t.pattern)))}};function A(t,e,r,n,i){var o=t.type,a=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(c(e,o)&&!t.required)return r();w.required(t,e,n,a,i,o),!c(e,o)&&w.type(t,e,n,a,i)}r(a)}var D={string:function(t,e,r,n,i){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(c(e,"string")&&!t.required)return r();w.required(t,e,n,o,i,"string"),!c(e,"string")&&(w.type(t,e,n,o,i),w.range(t,e,n,o,i),w.pattern(t,e,n,o,i),!0===t.whitespace&&w.whitespace(t,e,n,o,i))}r(o)},method:function(t,e,r,n,i){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(c(e)&&!t.required)return r();w.required(t,e,n,o,i),void 0!==e&&w.type(t,e,n,o,i)}r(o)},number:function(t,e,r,n,i){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(""===e&&(e=void 0),c(e)&&!t.required)return r();w.required(t,e,n,o,i),void 0!==e&&(w.type(t,e,n,o,i),w.range(t,e,n,o,i))}r(o)},boolean:function(t,e,r,n,i){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(c(e)&&!t.required)return r();w.required(t,e,n,o,i),void 0!==e&&w.type(t,e,n,o,i)}r(o)},regexp:function(t,e,r,n,i){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(c(e)&&!t.required)return r();w.required(t,e,n,o,i),!c(e)&&w.type(t,e,n,o,i)}r(o)},integer:function(t,e,r,n,i){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(c(e)&&!t.required)return r();w.required(t,e,n,o,i),void 0!==e&&(w.type(t,e,n,o,i),w.range(t,e,n,o,i))}r(o)},float:function(t,e,r,n,i){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(c(e)&&!t.required)return r();w.required(t,e,n,o,i),void 0!==e&&(w.type(t,e,n,o,i),w.range(t,e,n,o,i))}r(o)},array:function(t,e,r,n,i){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(null==e&&!t.required)return r();w.required(t,e,n,o,i,"array"),null!=e&&(w.type(t,e,n,o,i),w.range(t,e,n,o,i))}r(o)},object:function(t,e,r,n,i){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(c(e)&&!t.required)return r();w.required(t,e,n,o,i),void 0!==e&&w.type(t,e,n,o,i)}r(o)},enum:function(t,e,r,n,i){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(c(e)&&!t.required)return r();w.required(t,e,n,o,i),void 0!==e&&w.enum(t,e,n,o,i)}r(o)},pattern:function(t,e,r,n,i){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(c(e,"string")&&!t.required)return r();w.required(t,e,n,o,i),!c(e,"string")&&w.pattern(t,e,n,o,i)}r(o)},date:function(t,e,r,n,i){var o,a=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(c(e,"date")&&!t.required)return r();w.required(t,e,n,a,i),!c(e,"date")&&(o=e instanceof Date?e:new Date(e),w.type(t,o,n,a,i),o&&w.range(t,o.getTime(),n,a,i))}r(a)},url:A,hex:A,email:A,required:function(t,e,r,n,i){var o=[],a=Array.isArray(e)?"array":typeof e;w.required(t,e,n,o,i,a),r(o)},any:function(t,e,r,n,i){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(c(e)&&!t.required)return r();w.required(t,e,n,o,i)}r(o)}};function E(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var x=E();function S(t){this.rules=null,this._messages=x,this.define(t)}S.prototype={messages:function(t){return t&&(this._messages=p(E(),t)),this._messages},define:function(t){var e,r;if(!t)throw Error("Cannot configure a schema with no rules");if("object"!=typeof t||Array.isArray(t))throw Error("Rules must be an object");for(e in this.rules={},t)t.hasOwnProperty(e)&&(r=t[e],this.rules[e]=Array.isArray(r)?r:[r])},validate:function(t,e,n){var i,o,a=this;void 0===e&&(e={}),void 0===n&&(n=function(){});var s=t,c=e,g=n;if("function"==typeof c&&(g=c,c={}),!this.rules||0===Object.keys(this.rules).length)return g&&g(),Promise.resolve();if(c.messages){var y=this.messages();y===x&&(y=E()),p(y,c.messages),c.messages=y}else c.messages=this.messages();var m={};(c.keys||Object.keys(this.rules)).forEach(function(e){i=a.rules[e],o=s[e],i.forEach(function(n){var i=n;if("function"==typeof i.transform&&(s===t&&(s=r({},s)),o=s[e]=i.transform(o)),(i="function"==typeof i?{validator:i}:r({},i)).validator=a.getValidationMethod(i),i.field=e,i.fullField=i.fullField||e,i.type=a.getType(i),!!i.validator)m[e]=m[e]||[],m[e].push({rule:i,value:o,source:s,field:e})})});var b={};return function(t,e,r,n){if(e.first){var i=new Promise(function(e,i){var o,a;h((a=[],Object.keys(o=t).forEach(function(t){a.push.apply(a,o[t])}),a),r,function(t){return n(t),t.length?i(new d(t,u(t))):e()})});return i.catch(function(t){return t}),i}var o=e.firstFields||[];!0===o&&(o=Object.keys(t));var a=Object.keys(t),s=a.length,l=0,c=[],f=new Promise(function(e,i){var f=function(t){if(c.push.apply(c,t),++l===s)return n(c),c.length?i(new d(c,u(c))):e()};!a.length&&(n(c),e()),a.forEach(function(e){var n=t[e];-1!==o.indexOf(e)?h(n,r,f):!function(t,e,r){var n=[],i=0,o=t.length;function a(t){n.push.apply(n,t),++i===o&&r(n)}t.forEach(function(t){e(t,a)})}(n,r,f)})});return f.catch(function(t){return t}),f}(m,c,function(t,e){var n,i=t.rule,o=("object"===i.type||"array"===i.type)&&("object"==typeof i.fields||"object"==typeof i.defaultField);function a(t,e){return r({},e,{fullField:i.fullField+"."+t})}function s(n){void 0===n&&(n=[]);var s=n;if(!Array.isArray(s)&&(s=[s]),!c.suppressWarning&&s.length&&S.warning("async-validator:",s),s.length&&void 0!==i.message&&(s=[].concat(i.message)),s=s.map(f(i)),c.first&&s.length)return b[i.field]=1,e(s);if(o){if(i.required&&!t.value)return void 0!==i.message?s=[].concat(i.message).map(f(i)):c.error&&(s=[c.error(i,l(c.messages.required,i.field))]),e(s);var u={};if(i.defaultField)for(var h in t.value)t.value.hasOwnProperty(h)&&(u[h]=i.defaultField);for(var d in u=r({},u,t.rule.fields))if(u.hasOwnProperty(d)){var p=Array.isArray(u[d])?u[d]:[u[d]];u[d]=p.map(a.bind(null,d))}var g=new S(u);g.messages(c.messages),t.rule.options&&(t.rule.options.messages=c.messages,t.rule.options.error=c.error),g.validate(t.value,t.rule.options||c,function(t){var r=[];s&&s.length&&r.push.apply(r,s),t&&t.length&&r.push.apply(r,t),e(r.length?r:null)})}else e(s)}o=o&&(i.required||!i.required&&t.value),i.field=t.field,i.asyncValidator?n=i.asyncValidator(i,t.value,s,t.source,c):i.validator&&(!0===(n=i.validator(i,t.value,s,t.source,c))?s():!1===n?s(i.message||i.field+" fails"):n instanceof Array?s(n):n instanceof Error&&s(n.message)),n&&n.then&&n.then(function(){return s()},function(t){return s(t)})},function(t){!function(t){var e,r=[],n={};for(e=0;e<t.length;e++)!function(t){if(Array.isArray(t)){var e;r=(e=r).concat.apply(e,t)}else r.push(t)}(t[e]);r.length?n=u(r):(r=null,n=null),g(r,n)}(t)})},getType:function(t){if(void 0===t.type&&t.pattern instanceof RegExp&&(t.type="pattern"),"function"!=typeof t.validator&&t.type&&!D.hasOwnProperty(t.type))throw Error(l("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if("function"==typeof t.validator)return t.validator;var e=Object.keys(t),r=e.indexOf("message");return(-1!==r&&e.splice(r,1),1===e.length&&"required"===e[0])?D.required:D[this.getType(t)]||!1}},S.register=function(t,e){if("function"!=typeof e)throw Error("Cannot register a validator by type, validator is not a function");D[t]=e},S.warning=function(){},S.messages=x,S.validators=D,e.Z=S},144448:function(t,e){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,o,a,s=u(t),l=s[0],c=s[1];var h=new i((e=0,(l+(r=c))*3/4-r)),d=0,f=c>0?l-4:l;for(a=0;a<f;a+=4)o=n[t.charCodeAt(a)]<<18|n[t.charCodeAt(a+1)]<<12|n[t.charCodeAt(a+2)]<<6|n[t.charCodeAt(a+3)],h[d++]=o>>16&255,h[d++]=o>>8&255,h[d++]=255&o;return 2===c&&(o=n[t.charCodeAt(a)]<<2|n[t.charCodeAt(a+1)]>>4,h[d++]=255&o),1===c&&(o=n[t.charCodeAt(a)]<<10|n[t.charCodeAt(a+1)]<<4|n[t.charCodeAt(a+2)]>>2,h[d++]=o>>8&255,h[d++]=255&o),h},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(function(t,e,n){for(var i,o,a=[],s=e;s<n;s+=3){;o=(t[s]<<16&0xff0000)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i])}return a.join("")}(t,a,a+16383>s?s:a+16383));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function u(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},150990:function(t){var e=.1,r="function"==typeof Float32Array;function n(t,e){return 1-3*e+3*t}function i(t,e){return 3*e-6*t}function o(t){return 3*t}function a(t,e,r){return(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t}function s(t,e,r){return 3*(1-3*r+3*e)*t*t+2*(3*r-6*e)*t+3*e}function u(t){return t}t.exports=function(t,n,i,o){if(!(0<=t&&t<=1&&0<=i&&i<=1))throw Error("bezier x values must be in [0, 1] range");if(t===n&&i===o)return u;for(var l=r?new Float32Array(11):Array(11),c=0;c<11;++c)l[c]=a(c*e,t,i);return function(r){return 0===r?0:1===r?1:a(function(r){for(var n=0,o=1,u=10;o!==u&&l[o]<=r;++o)n+=e;var c=n+(r-l[--o])/(l[o+1]-l[o])*e,h=s(c,t,i);return h>=.001?function(t,e,r,n){for(var i=0;i<4;++i){var o=s(e,r,n);if(0===o)break;var u=a(e,r,n)-t;e-=u/o}return e}(r,c,t,i):0===h?c:function(t,e,r,n,i){var o,s,u=0;do(o=a(s=e+(r-e)/2,n,i)-t)>0?r=s:e=s;while(Math.abs(o)>1e-7&&++u<10);return s}(r,n,n+e,t,i)}(r),n,o)}}},850392:function(t,e,r){t=r.nmd(t);var n=function(t){"use strict";var e=c(0x20000000000000),r="0123456789abcdefghijklmnopqrstuvwxyz",i="function"==typeof BigInt;function o(t,e,r,n){return void 0===t?o[0]:void 0!==e?10!=+e||r?z(t,e,r,n):G(t):G(t)}function a(t,e){this.value=t,this.sign=e,this.isSmall=!1}function s(t){this.value=t,this.sign=t<0,this.isSmall=!0}function u(t){this.value=t}function l(t){return -0x20000000000000<t&&t<0x20000000000000}function c(t){return t<1e7?[t]:t<1e14?[t%1e7,Math.floor(t/1e7)]:[t%1e7,Math.floor(t/1e7)%1e7,Math.floor(t/1e14)]}function h(t){d(t);var r=t.length;if(r<4&&0>N(t,e))switch(r){case 0:return 0;case 1:return t[0];case 2:return t[0]+1e7*t[1];default:return t[0]+(t[1]+1e7*t[2])*1e7}return t}function d(t){for(var e=t.length;0===t[--e];);t.length=e+1}function f(t){for(var e=Array(t),r=-1;++r<t;)e[r]=0;return e}function p(t){return t>0?Math.floor(t):Math.ceil(t)}function g(t,e){var r,n,i=t.length,o=e.length,a=Array(i),s=0;for(n=0;n<o;n++)s=(r=t[n]+e[n]+s)>=1e7?1:0,a[n]=r-1e7*s;for(;n<i;)s=1e7===(r=t[n]+s)?1:0,a[n++]=r-1e7*s;return s>0&&a.push(s),a}function y(t,e){return t.length>=e.length?g(t,e):g(e,t)}function m(t,e){var r,n,i=t.length,o=Array(i);for(n=0;n<i;n++)e=Math.floor((r=t[n]-1e7+e)/1e7),o[n]=r-1e7*e,e+=1;for(;e>0;)o[n++]=e%1e7,e=Math.floor(e/1e7);return o}function b(t,e){var r,n,i=t.length,o=e.length,a=Array(i),s=0;for(r=0;r<o;r++)(n=t[r]-s-e[r])<0?(n+=1e7,s=1):s=0,a[r]=n;for(r=o;r<i;r++){if((n=t[r]-s)<0)n+=1e7;else{a[r++]=n;break}a[r]=n}for(;r<i;r++)a[r]=t[r];return d(a),a}a.prototype=Object.create(o.prototype),s.prototype=Object.create(o.prototype),u.prototype=Object.create(o.prototype),a.prototype.add=function(t){var e=G(t);if(this.sign!==e.sign)return this.subtract(e.negate());var r=this.value,n=e.value;return e.isSmall?new a(m(r,Math.abs(n)),this.sign):new a(y(r,n),this.sign)},a.prototype.plus=a.prototype.add,s.prototype.add=function(t){var e=G(t),r=this.value;if(r<0!==e.sign)return this.subtract(e.negate());var n=e.value;if(e.isSmall){if(l(r+n))return new s(r+n);n=c(Math.abs(n))}return new a(m(n,Math.abs(r)),r<0)},s.prototype.plus=s.prototype.add,u.prototype.add=function(t){return new u(this.value+G(t).value)},u.prototype.plus=u.prototype.add;function w(t,e,r){var n,i,o=t.length,u=Array(o),l=-e;for(n=0;n<o;n++)l=Math.floor((i=t[n]+l)/1e7),i%=1e7,u[n]=i<0?i+1e7:i;return"number"==typeof(u=h(u))?(r&&(u=-u),new s(u)):new a(u,r)}function A(t,e){var r,n,i,o,a=t.length,s=e.length,u=f(a+s);for(i=0;i<a;++i){o=t[i];for(var l=0;l<s;++l)n=Math.floor((r=o*e[l]+u[i+l])/1e7),u[i+l]=r-1e7*n,u[i+l+1]+=n}return d(u),u}function D(t,e){var r,n,i=t.length,o=Array(i),a=0;for(n=0;n<i;n++)a=Math.floor((r=t[n]*e+a)/1e7),o[n]=r-1e7*a;for(;a>0;)o[n++]=a%1e7,a=Math.floor(a/1e7);return o}function E(t,e){for(var r=[];e-- >0;)r.push(0);return r.concat(t)}a.prototype.subtract=function(t){var e,r,n,i,o=G(t);if(this.sign!==o.sign)return this.add(o.negate());var u=this.value,l=o.value;if(o.isSmall)return w(u,Math.abs(l),this.sign);return e=u,r=l,n=this.sign,(N(e,r)>=0?i=b(e,r):(i=b(r,e),n=!n),"number"==typeof(i=h(i)))?(n&&(i=-i),new s(i)):new a(i,n)},a.prototype.minus=a.prototype.subtract,s.prototype.subtract=function(t){var e=G(t),r=this.value;if(r<0!==e.sign)return this.add(e.negate());var n=e.value;return e.isSmall?new s(r-n):w(n,Math.abs(r),r>=0)},s.prototype.minus=s.prototype.subtract,u.prototype.subtract=function(t){return new u(this.value-G(t).value)},u.prototype.minus=u.prototype.subtract,a.prototype.negate=function(){return new a(this.value,!this.sign)},s.prototype.negate=function(){var t=this.sign,e=new s(-this.value);return e.sign=!t,e},u.prototype.negate=function(){return new u(-this.value)},a.prototype.abs=function(){return new a(this.value,!1)},s.prototype.abs=function(){return new s(Math.abs(this.value))},u.prototype.abs=function(){return new u(this.value>=0?this.value:-this.value)};function x(t,e,r){return t<1e7?new a(D(e,t),r):new a(A(e,c(t)),r)}function S(t){var e,r,n,i,o=t.length,a=f(o+o);for(n=0;n<o;n++){r=0-(i=t[n])*i;for(var s=n;s<o;s++)r=Math.floor((e=i*t[s]*2+a[n+s]+r)/1e7),a[n+s]=e-1e7*r;a[n+o]=r}return d(a),a}a.prototype.multiply=function(t){var e,r,n,i=G(t),s=this.value,u=i.value,l=this.sign!==i.sign;if(i.isSmall){if(0===u)return o[0];if(1===u)return this;if(-1===u)return this.negate();if((n=Math.abs(u))<1e7)return new a(D(s,n),l);u=c(n)}return(e=s.length,-.012*e-.012*(r=u.length)+15e-6*e*r>0)?new a(function t(e,r){var n=Math.max(e.length,r.length);if(n<=30)return A(e,r);n=Math.ceil(n/2);var i=e.slice(n),o=e.slice(0,n),a=r.slice(n),s=r.slice(0,n),u=t(o,s),l=t(i,a),c=t(y(o,i),y(s,a)),h=y(y(u,E(b(b(c,u),l),n)),E(l,2*n));return d(h),h}(s,u),l):new a(A(s,u),l)},a.prototype.times=a.prototype.multiply,s.prototype._multiplyBySmall=function(t){return l(t.value*this.value)?new s(t.value*this.value):x(Math.abs(t.value),c(Math.abs(this.value)),this.sign!==t.sign)},a.prototype._multiplyBySmall=function(t){return 0===t.value?o[0]:1===t.value?this:-1===t.value?this.negate():x(Math.abs(t.value),this.value,this.sign!==t.sign)},s.prototype.multiply=function(t){return G(t)._multiplyBySmall(this)},s.prototype.times=s.prototype.multiply,u.prototype.multiply=function(t){return new u(this.value*G(t).value)},u.prototype.times=u.prototype.multiply,a.prototype.square=function(){return new a(S(this.value),!1)},s.prototype.square=function(){var t=this.value*this.value;return l(t)?new s(t):new a(S(c(Math.abs(this.value))),!1)},u.prototype.square=function(t){return new u(this.value*this.value)};function M(t,e){var r,n,i,o,a=t.length,s=f(a);for(i=0,r=a-1;r>=0;--r)n=p((o=1e7*i+t[r])/e),i=o-n*e,s[r]=0|n;return[s,0|i]}function _(t,e){var r,n,l=G(e);if(i)return[new u(t.value/l.value),new u(t.value%l.value)];var g=t.value,y=l.value;if(0===y)throw Error("Cannot divide by zero");if(t.isSmall)return l.isSmall?[new s(p(g/y)),new s(g%y)]:[o[0],t];if(l.isSmall){if(1===y)return[t,o[0]];if(-1==y)return[t.negate(),o[0]];var m=Math.abs(y);if(m<1e7){r=h((n=M(g,m))[0]);var w=n[1];return(t.sign&&(w=-w),"number"==typeof r)?(t.sign!==l.sign&&(r=-r),[new s(r),new s(w)]):[new a(r,t.sign!==l.sign),new s(w)]}y=c(m)}var A=N(g,y);if(-1===A)return[o[0],t];if(0===A)return[o[t.sign===l.sign?1:-1],o[0]];r=(n=g.length+y.length<=200?function(t,e){var r,n,i,o,a,s,u,l=t.length,c=e.length,d=f(e.length),p=e[c-1],g=Math.ceil(1e7/(2*p)),y=D(t,g),m=D(e,g);for(y.length<=l&&y.push(0),m.push(0),p=m[c-1],n=l-c;n>=0;n--){for(r=1e7-1,y[n+c]!==p&&(r=Math.floor((1e7*y[n+c]+y[n+c-1])/p)),i=0,o=0,s=m.length,a=0;a<s;a++)i+=r*m[a],u=Math.floor(i/1e7),o+=y[n+a]-(i-1e7*u),i=u,o<0?(y[n+a]=o+1e7,o=-1):(y[n+a]=o,o=0);for(;0!==o;){for(r-=1,i=0,a=0;a<s;a++)(i+=y[n+a]-1e7+m[a])<0?(y[n+a]=i+1e7,i=0):(y[n+a]=i,i=1);o+=i}d[n]=r}return y=M(y,g)[0],[h(d),h(y)]}(g,y):function(t,e){for(var r,n,i,o,a,s=t.length,u=e.length,l=[],c=[];s;){if(c.unshift(t[--s]),d(c),0>N(c,e)){l.push(0);continue}n=c.length,i=1e7*c[n-1]+c[n-2],o=1e7*e[u-1]+e[u-2],n>u&&(i=(i+1)*1e7),r=Math.ceil(i/o);do{if(0>=N(a=D(e,r),c))break;r--}while(r);l.push(r),c=b(c,a)}return l.reverse(),[h(l),h(c)]}(g,y))[0];var E=t.sign!==l.sign,x=n[1],S=t.sign;return"number"==typeof r?(E&&(r=-r),r=new s(r)):r=new a(r,E),"number"==typeof x?(S&&(x=-x),x=new s(x)):x=new a(x,S),[r,x]}function N(t,e){if(t.length!==e.length)return t.length>e.length?1:-1;for(var r=t.length-1;r>=0;r--)if(t[r]!==e[r])return t[r]>e[r]?1:-1;return 0}function T(t){var e=t.abs();return!e.isUnit()&&(!!(e.equals(2)||e.equals(3)||e.equals(5))||!(e.isEven()||e.isDivisibleBy(3)||e.isDivisibleBy(5))&&(!!e.lesser(49)||void 0))}function C(t,e){for(var r,i,o,a=t.prev(),s=a,u=0;s.isEven();)s=s.divide(2),u++;t:for(i=0;i<e.length;i++){if(!t.lesser(e[i])){if(!((o=n(e[i]).modPow(s,t)).isUnit()||o.equals(a))){for(r=u-1;0!=r&&!(o=o.square().mod(t)).isUnit();r--){;if(o.equals(a))continue t}return!1}}}return!0}a.prototype.divmod=function(t){var e=_(this,t);return{quotient:e[0],remainder:e[1]}},u.prototype.divmod=s.prototype.divmod=a.prototype.divmod,a.prototype.divide=function(t){return _(this,t)[0]},u.prototype.over=u.prototype.divide=function(t){return new u(this.value/G(t).value)},s.prototype.over=s.prototype.divide=a.prototype.over=a.prototype.divide,a.prototype.mod=function(t){return _(this,t)[1]},u.prototype.mod=u.prototype.remainder=function(t){return new u(this.value%G(t).value)},s.prototype.remainder=s.prototype.mod=a.prototype.remainder=a.prototype.mod,a.prototype.pow=function(t){var e,r,n,i=G(t),a=this.value,u=i.value;if(0===u)return o[1];if(0===a)return o[0];if(1===a)return o[1];if(-1===a)return i.isEven()?o[1]:o[-1];if(i.sign)return o[0];if(!i.isSmall)throw Error("The exponent "+i.toString()+" is too large.");if(this.isSmall&&l(e=Math.pow(a,u)))return new s(p(e));for(r=this,n=o[1];!0&u&&(n=n.times(r),--u),0!==u;){;u/=2,r=r.square()}return n},s.prototype.pow=a.prototype.pow,u.prototype.pow=function(t){var e=G(t),r=this.value,n=e.value,i=BigInt(0),a=BigInt(1),s=BigInt(2);if(n===i)return o[1];if(r===i)return o[0];if(r===a)return o[1];if(r===BigInt(-1))return e.isEven()?o[1]:o[-1];if(e.isNegative())return new u(i);for(var l=this,c=o[1];(n&a)===a&&(c=c.times(l),--n),n!==i;){;n/=s,l=l.square()}return c},a.prototype.modPow=function(t,e){if(t=G(t),(e=G(e)).isZero())throw Error("Cannot take modPow with modulus 0");var r=o[1],n=this.mod(e);for(t.isNegative()&&(t=t.multiply(o[-1]),n=n.modInv(e));t.isPositive();){if(n.isZero())return o[0];t.isOdd()&&(r=r.multiply(n).mod(e)),t=t.divide(2),n=n.square().mod(e)}return r},u.prototype.modPow=s.prototype.modPow=a.prototype.modPow,a.prototype.compareAbs=function(t){var e=G(t),r=this.value,n=e.value;return e.isSmall?1:N(r,n)},s.prototype.compareAbs=function(t){var e=G(t),r=Math.abs(this.value),n=e.value;return e.isSmall?r===(n=Math.abs(n))?0:r>n?1:-1:-1},u.prototype.compareAbs=function(t){var e=this.value,r=G(t).value;return(e=e>=0?e:-e)===(r=r>=0?r:-r)?0:e>r?1:-1},a.prototype.compare=function(t){if(t===1/0)return -1;if(t===-1/0)return 1;var e=G(t),r=this.value,n=e.value;return this.sign!==e.sign?e.sign?1:-1:e.isSmall?this.sign?-1:1:N(r,n)*(this.sign?-1:1)},a.prototype.compareTo=a.prototype.compare,s.prototype.compare=function(t){if(t===1/0)return -1;if(t===-1/0)return 1;var e=G(t),r=this.value,n=e.value;return e.isSmall?r==n?0:r>n?1:-1:r<0!==e.sign?r<0?-1:1:r<0?1:-1},s.prototype.compareTo=s.prototype.compare,u.prototype.compare=function(t){if(t===1/0)return -1;if(t===-1/0)return 1;var e=this.value,r=G(t).value;return e===r?0:e>r?1:-1},u.prototype.compareTo=u.prototype.compare,a.prototype.equals=function(t){return 0===this.compare(t)},u.prototype.eq=u.prototype.equals=s.prototype.eq=s.prototype.equals=a.prototype.eq=a.prototype.equals,a.prototype.notEquals=function(t){return 0!==this.compare(t)},u.prototype.neq=u.prototype.notEquals=s.prototype.neq=s.prototype.notEquals=a.prototype.neq=a.prototype.notEquals,a.prototype.greater=function(t){return this.compare(t)>0},u.prototype.gt=u.prototype.greater=s.prototype.gt=s.prototype.greater=a.prototype.gt=a.prototype.greater,a.prototype.lesser=function(t){return 0>this.compare(t)},u.prototype.lt=u.prototype.lesser=s.prototype.lt=s.prototype.lesser=a.prototype.lt=a.prototype.lesser,a.prototype.greaterOrEquals=function(t){return this.compare(t)>=0},u.prototype.geq=u.prototype.greaterOrEquals=s.prototype.geq=s.prototype.greaterOrEquals=a.prototype.geq=a.prototype.greaterOrEquals,a.prototype.lesserOrEquals=function(t){return 0>=this.compare(t)},u.prototype.leq=u.prototype.lesserOrEquals=s.prototype.leq=s.prototype.lesserOrEquals=a.prototype.leq=a.prototype.lesserOrEquals,a.prototype.isEven=function(){return(1&this.value[0])==0},s.prototype.isEven=function(){return(1&this.value)==0},u.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},a.prototype.isOdd=function(){return(1&this.value[0])==1},s.prototype.isOdd=function(){return(1&this.value)==1},u.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},a.prototype.isPositive=function(){return!this.sign},s.prototype.isPositive=function(){return this.value>0},u.prototype.isPositive=s.prototype.isPositive,a.prototype.isNegative=function(){return this.sign},s.prototype.isNegative=function(){return this.value<0},u.prototype.isNegative=s.prototype.isNegative,a.prototype.isUnit=function(){return!1},s.prototype.isUnit=function(){return 1===Math.abs(this.value)},u.prototype.isUnit=function(){return this.abs().value===BigInt(1)},a.prototype.isZero=function(){return!1},s.prototype.isZero=function(){return 0===this.value},u.prototype.isZero=function(){return this.value===BigInt(0)},a.prototype.isDivisibleBy=function(t){var e=G(t);return!e.isZero()&&(!!e.isUnit()||(0===e.compareAbs(2)?this.isEven():this.mod(e).isZero()))},u.prototype.isDivisibleBy=s.prototype.isDivisibleBy=a.prototype.isDivisibleBy,a.prototype.isPrime=function(t){var e=T(this);if(void 0!==e)return e;var r=this.abs(),i=r.bitLength();if(i<=64)return C(r,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var o=Math.log(2)*i.toJSNumber(),a=Math.ceil(!0===t?2*Math.pow(o,2):o),s=[],u=0;u<a;u++)s.push(n(u+2));return C(r,s)},u.prototype.isPrime=s.prototype.isPrime=a.prototype.isPrime,a.prototype.isProbablePrime=function(e,r){var i=T(this);if(t!==i)return i;for(var o=this.abs(),a=t===e?5:e,s=[],u=0;u<a;u++)s.push(n.randBetween(2,o.minus(2),r));return C(o,s)},u.prototype.isProbablePrime=s.prototype.isProbablePrime=a.prototype.isProbablePrime,a.prototype.modInv=function(t){for(var e,r,i,o=n.zero,a=n.one,s=G(t),u=this.abs();!u.isZero();)e=s.divide(u),r=o,i=s,o=a,s=u,a=r.subtract(e.multiply(a)),u=i.subtract(e.multiply(u));if(!s.isUnit())throw Error(this.toString()+" and "+t.toString()+" are not co-prime");return(-1===o.compare(0)&&(o=o.add(t)),this.isNegative())?o.negate():o},u.prototype.modInv=s.prototype.modInv=a.prototype.modInv,a.prototype.next=function(){var t=this.value;return this.sign?w(t,1,this.sign):new a(m(t,1),this.sign)},s.prototype.next=function(){var t=this.value;return t+1<0x20000000000000?new s(t+1):new a(e,!1)},u.prototype.next=function(){return new u(this.value+BigInt(1))},a.prototype.prev=function(){var t=this.value;return this.sign?new a(m(t,1),!0):w(t,1,this.sign)},s.prototype.prev=function(){var t=this.value;return t-1>-0x20000000000000?new s(t-1):new a(e,!0)},u.prototype.prev=function(){return new u(this.value-BigInt(1))};for(var I=[1];2*I[I.length-1]<=1e7;)I.push(2*I[I.length-1]);var O=I.length,k=I[O-1];function L(t){return 1e7>=Math.abs(t)}function P(t,e,r){e=G(e);for(var i=t.isNegative(),o=e.isNegative(),a=i?t.not():t,s=o?e.not():e,u=0,l=0,c=null,h=null,d=[];!a.isZero()||!s.isZero();)u=(c=_(a,k))[1].toJSNumber(),i&&(u=k-1-u),l=(h=_(s,k))[1].toJSNumber(),o&&(l=k-1-l),a=c[0],s=h[0],d.push(r(u,l));for(var f=0!==r(i?1:0,o?1:0)?n(-1):n(0),p=d.length-1;p>=0;p-=1)f=f.multiply(k).add(n(d[p]));return f}a.prototype.shiftLeft=function(t){var e=G(t).toJSNumber();if(!L(e))throw Error(String(e)+" is too large for shifting.");if(e<0)return this.shiftRight(-e);var r=this;if(r.isZero())return r;for(;e>=O;)r=r.multiply(k),e-=O-1;return r.multiply(I[e])},u.prototype.shiftLeft=s.prototype.shiftLeft=a.prototype.shiftLeft,a.prototype.shiftRight=function(t){var e,r=G(t).toJSNumber();if(!L(r))throw Error(String(r)+" is too large for shifting.");if(r<0)return this.shiftLeft(-r);for(var n=this;r>=O;){if(n.isZero()||n.isNegative()&&n.isUnit())return n;n=(e=_(n,k))[1].isNegative()?e[0].prev():e[0],r-=O-1}return(e=_(n,I[r]))[1].isNegative()?e[0].prev():e[0]},u.prototype.shiftRight=s.prototype.shiftRight=a.prototype.shiftRight,a.prototype.not=function(){return this.negate().prev()},u.prototype.not=s.prototype.not=a.prototype.not,a.prototype.and=function(t){return P(this,t,function(t,e){return t&e})},u.prototype.and=s.prototype.and=a.prototype.and,a.prototype.or=function(t){return P(this,t,function(t,e){return t|e})},u.prototype.or=s.prototype.or=a.prototype.or,a.prototype.xor=function(t){return P(this,t,function(t,e){return t^e})},u.prototype.xor=s.prototype.xor=a.prototype.xor;var R=0x40004000;function B(t){var e=t.value,r="number"==typeof e?0x40000000|e:"bigint"==typeof e?e|BigInt(0x40000000):e[0]+1e7*e[1]|R;return r&-r}function j(t,e){return t=G(t),e=G(e),t.greater(e)?t:e}function F(t,e){return t=G(t),e=G(e),t.lesser(e)?t:e}function U(t,e){if(t=G(t).abs(),e=G(e).abs(),t.equals(e))return t;if(t.isZero())return e;if(e.isZero())return t;for(var r,n,i=o[1];t.isEven()&&e.isEven();)r=F(B(t),B(e)),t=t.divide(r),e=e.divide(r),i=i.multiply(r);for(;t.isEven();)t=t.divide(B(t));do{for(;e.isEven();)e=e.divide(B(e));t.greater(e)&&(n=e,e=t,t=n),e=e.subtract(t)}while(!e.isZero());return i.isUnit()?t:t.multiply(i)}a.prototype.bitLength=function(){var t=this;return(0>t.compareTo(n(0))&&(t=t.negate().subtract(n(1))),0===t.compareTo(n(0)))?n(0):n(function t(e,r){if(0>=r.compareTo(e)){var i=t(e,r.square(r)),o=i.p,a=i.e,s=o.multiply(r);return 0>=s.compareTo(e)?{p:s,e:2*a+1}:{p:o,e:2*a}}return{p:n(1),e:0}}(t,n(2)).e).add(n(1))},u.prototype.bitLength=s.prototype.bitLength=a.prototype.bitLength;var z=function(t,e,n,i){n=n||r,t=String(t),!i&&(t=t.toLowerCase(),n=n.toLowerCase());var o,a=t.length,s=Math.abs(e),u={};for(o=0;o<n.length;o++)u[n[o]]=o;for(o=0;o<a;o++){var l=t[o];if("-"!==l&&l in u&&u[l]>=s){if("1"===l&&1===s)continue;throw Error(l+" is not a valid digit in base "+e+".")}}e=G(e);var c=[],h="-"===t[0];for(o=h?1:0;o<t.length;o++){var l=t[o];if(l in u)c.push(G(u[l]));else if("<"===l){var d=o;do o++;while(">"!==t[o]&&o<t.length);c.push(G(t.slice(d+1,o)))}else throw Error(l+" is not a valid character")}return q(c,e,h)};function q(t,e,r){var n,i=o[0],a=o[1];for(n=t.length-1;n>=0;n--)i=i.add(t[n].times(a)),a=a.times(e);return r?i.negate():i}function H(t,e){if((e=n(e)).isZero()){if(t.isZero())return{value:[0],isNegative:!1};throw Error("Cannot convert nonzero numbers to base 0.")}if(e.equals(-1)){if(t.isZero())return{value:[0],isNegative:!1};if(t.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-t.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var r=Array.apply(null,Array(t.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return r.unshift([1]),{value:[].concat.apply([],r),isNegative:!1}}var i=!1;if(t.isNegative()&&e.isPositive()&&(i=!0,t=t.abs()),e.isUnit())return t.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(t.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:i};for(var o=[],a,s=t;s.isNegative()||s.compareAbs(e)>=0;){s=(a=s.divmod(e)).quotient;var u=a.remainder;u.isNegative()&&(u=e.minus(u).abs(),s=s.next()),o.push(u.toJSNumber())}return o.push(s.toJSNumber()),{value:o.reverse(),isNegative:i}}function V(t,e,n){var i=H(t,e);return(i.isNegative?"-":"")+i.value.map(function(t){var e,i;return(e=t)<(i=(i=n)||r).length?i[e]:"<"+e+">"}).join("")}function Z(t){if(l(+t)){var e=+t;if(e===p(e))return i?new u(BigInt(e)):new s(e);throw Error("Invalid integer: "+t)}var r="-"===t[0];r&&(t=t.slice(1));var n=t.split(/e/i);if(n.length>2)throw Error("Invalid integer: "+n.join("e"));if(2===n.length){var o=n[1];if("+"===o[0]&&(o=o.slice(1)),(o=+o)!==p(o)||!l(o))throw Error("Invalid integer: "+o+" is not a valid exponent.");var c=n[0],h=c.indexOf(".");if(h>=0&&(o-=c.length-h-1,c=c.slice(0,h)+c.slice(h+1)),o<0)throw Error("Cannot include negative exponent part for integers");c+=Array(o+1).join("0"),t=c}if(!/^([0-9][0-9]*)$/.test(t))throw Error("Invalid integer: "+t);if(i)return new u(BigInt(r?"-"+t:t));for(var f=[],g=t.length,y=g-7;g>0;)f.push(+t.slice(y,g)),(y-=7)<0&&(y=0),g-=7;return d(f),new a(f,r)}a.prototype.toArray=function(t){return H(this,t)},s.prototype.toArray=function(t){return H(this,t)},u.prototype.toArray=function(t){return H(this,t)},a.prototype.toString=function(e,r){if(t===e&&(e=10),10!==e||r)return V(this,e,r);for(var n,i=this.value,o=i.length,a=String(i[--o]);--o>=0;)n=String(i[o]),a+="0000000".slice(n.length)+n;return(this.sign?"-":"")+a},s.prototype.toString=function(e,r){return(t===e&&(e=10),10!=e||r)?V(this,e,r):String(this.value)},u.prototype.toString=s.prototype.toString,u.prototype.toJSON=a.prototype.toJSON=s.prototype.toJSON=function(){return this.toString()},a.prototype.valueOf=function(){return parseInt(this.toString(),10)},a.prototype.toJSNumber=a.prototype.valueOf,s.prototype.valueOf=function(){return this.value},s.prototype.toJSNumber=s.prototype.valueOf,u.prototype.valueOf=u.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function G(t){return"number"==typeof t?function(t){if(i)return new u(BigInt(t));if(l(t)){if(t!==p(t))throw Error(t+" is not an integer.");return new s(t)}return Z(t.toString())}(t):"string"==typeof t?Z(t):"bigint"==typeof t?new u(t):t}for(var W=0;W<1e3;W++)o[W]=G(W),W>0&&(o[-W]=G(-W));return o.one=o[1],o.zero=o[0],o.minusOne=o[-1],o.max=j,o.min=F,o.gcd=U,o.lcm=function(t,e){return t=G(t).abs(),e=G(e).abs(),t.divide(U(t,e)).multiply(e)},o.isInstance=function(t){return t instanceof a||t instanceof s||t instanceof u},o.randBetween=function(t,e,r){t=G(t),e=G(e);var n=r||Math.random,i=F(t,e),a=j(t,e).subtract(i).add(1);if(a.isSmall)return i.add(Math.floor(n()*a));for(var s=H(a,1e7).value,u=[],l=!0,c=0;c<s.length;c++){var h=l?s[c]+(c+1<s.length?s[c+1]/1e7:0):1e7,d=p(n()*h);u.push(d),d<s[c]&&(l=!1)}return i.add(o.fromArray(u,1e7,!1))},o.fromArray=function(t,e,r){return q(t.map(G),G(e||10),r)},o}();t.hasOwnProperty("exports")&&(t.exports=n),"function"==typeof define&&define.amd&&define(function(){return n})},227997:function(t){!function(e){"use strict";var r,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,i=Math.ceil,o=Math.floor,a="[BigNumber Error] ",s=a+"Number primitive has more than 15 significant digits: ",u=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function l(t){var e=0|t;return t>0||t===e?e:e-1}function c(t){for(var e,r,n=1,i=t.length,o=t[0]+"";n<i;){for(r=14-(e=t[n++]+"").length;r--;e="0"+e);o+=e}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function h(t,e){var r,n,i=t.c,o=e.c,a=t.s,s=e.s,u=t.e,l=e.e;if(!a||!s)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=u==l,!i||!o)return n?0:!i^r?1:-1;if(!n)return u>l^r?1:-1;for(a=0,s=(u=i.length)<(l=o.length)?u:l;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return u==l?0:u>l^r?1:-1}function d(t,e,r,n){if(t<e||t>r||t!==o(t))throw Error(a+(n||"Argument")+("number"==typeof t?t<e||t>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function f(t){var e=t.c.length-1;return l(t.e/14)==e&&t.c[e]%2!=0}function p(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function g(t,e,r){var n,i;if(e<0){for(i=r+".";++e;i+=r);t=i+t}else if(n=t.length,++e>n){for(i=r,e-=n;--e;i+=r);t+=i}else e<n&&(t=t.slice(0,e)+"."+t.slice(e));return t}(r=function t(e){var r,y,m,b,w,A,D,E,x,S=F.prototype={constructor:F,toString:null,valueOf:null},M=new F(1),_=20,N=4,T=-7,C=21,I=-1e7,O=1e7,k=!1,L=1,P=0,R={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},B="0123456789abcdefghijklmnopqrstuvwxyz",j=!0;function F(t,e){var r,i,a,u,l,c,h,f,p=this;if(!(p instanceof F))return new F(t,e);if(null==e){if(t&&!0===t._isBigNumber){p.s=t.s,!t.c||t.e>O?p.c=p.e=null:t.e<I?p.c=[p.e=0]:(p.e=t.e,p.c=t.c.slice());return}if((c="number"==typeof t)&&0*t==0){if(p.s=1/t<0?(t=-t,-1):1,t===~~t){for(u=0,l=t;l>=10;l/=10,u++);u>O?p.c=p.e=null:(p.e=u,p.c=[t]);return}f=String(t)}else{if(!n.test(f=String(t)))return x(p,f,c);p.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(u=f.indexOf("."))>-1&&(f=f.replace(".","")),(l=f.search(/e/i))>0?(u<0&&(u=l),u+=+f.slice(l+1),f=f.substring(0,l)):u<0&&(u=f.length)}else{if(d(e,2,B.length,"Base"),10==e&&j)return H(p=new F(t),_+p.e+1,N);if(f=String(t),c="number"==typeof t){if(0*t!=0)return x(p,f,c,e);if(p.s=1/t<0?(f=f.slice(1),-1):1,F.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(s+t)}else p.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(r=B.slice(0,e),u=l=0,h=f.length;l<h;l++)if(0>r.indexOf(i=f.charAt(l))){if("."==i){if(l>u){u=h;continue}}else if(!a&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){a=!0,l=-1,u=0;continue}return x(p,String(t),c,e)}c=!1,(u=(f=E(f,e,10,p.s)).indexOf("."))>-1?f=f.replace(".",""):u=f.length}for(l=0;48===f.charCodeAt(l);l++);for(h=f.length;48===f.charCodeAt(--h););if(f=f.slice(l,++h)){if(h-=l,c&&F.DEBUG&&h>15&&(t>0x1fffffffffffff||t!==o(t)))throw Error(s+p.s*t);if((u=u-l-1)>O)p.c=p.e=null;else if(u<I)p.c=[p.e=0];else{if(p.e=u,p.c=[],l=(u+1)%14,u<0&&(l+=14),l<h){for(l&&p.c.push(+f.slice(0,l)),h-=14;l<h;)p.c.push(+f.slice(l,l+=14));l=14-(f=f.slice(l)).length}else l-=h;for(;l--;f+="0");p.c.push(+f)}}else p.c=[p.e=0]}function U(t,e,r,n){var i,o,a,s,u;if(null==r?r=N:d(r,0,8),!t.c)return t.toString();if(i=t.c[0],a=t.e,null==e)u=c(t.c),u=1==n||2==n&&(a<=T||a>=C)?p(u,a):g(u,a,"0");else if(o=(t=H(new F(t),e,r)).e,s=(u=c(t.c)).length,1==n||2==n&&(e<=o||o<=T)){for(;s<e;u+="0",s++);u=p(u,o)}else if(e-=a,u=g(u,o,"0"),o+1>s){if(--e>0)for(u+=".";e--;u+="0");}else if((e+=o-s)>0)for(o+1==s&&(u+=".");e--;u+="0");return t.s<0&&i?"-"+u:u}function z(t,e){for(var r,n=1,i=new F(t[0]);n<t.length;n++)if((r=new F(t[n])).s)e.call(i,r)&&(i=r);else{i=r;break}return i}function q(t,e,r){for(var n=1,i=e.length;!e[--i];e.pop());for(i=e[0];i>=10;i/=10,n++);return(r=n+14*r-1)>O?t.c=t.e=null:r<I?t.c=[t.e=0]:(t.e=r,t.c=e),t}function H(t,e,r,n){var a,s,l,c,h,d,f,p=t.c;if(p){e:{for(a=1,c=p[0];c>=10;c/=10,a++);if((s=e-a)<0)s+=14,l=e,f=(h=p[d=0])/u[a-l-1]%10|0;else if((d=i((s+1)/14))>=p.length){if(n){for(;p.length<=d;p.push(0));h=f=0,a=1,s%=14,l=s-14+1}else break e}else{for(a=1,h=c=p[d];c>=10;c/=10,a++);s%=14,f=(l=s-14+a)<0?0:h/u[a-l-1]%10|0}if(n=n||e<0||null!=p[d+1]||(l<0?h:h%u[a-l-1]),n=r<4?(f||n)&&(0==r||r==(t.s<0?3:2)):f>5||5==f&&(4==r||n||6==r&&(s>0?l>0?h/u[a-l]:0:p[d-1])%10&1||r==(t.s<0?8:7)),e<1||!p[0])return p.length=0,n?(e-=t.e+1,p[0]=u[(14-e%14)%14],t.e=-e||0):p[0]=t.e=0,t;if(0==s?(p.length=d,c=1,d--):(p.length=d+1,c=u[14-s],p[d]=l>0?o(h/u[a-l]%u[l])*c:0),n)for(;;){if(0==d){for(s=1,l=p[0];l>=10;l/=10,s++);for(l=p[0]+=c,c=1;l>=10;l/=10,c++);s!=c&&(t.e++,1e14==p[0]&&(p[0]=1));break}if(p[d]+=c,1e14!=p[d])break;p[d--]=0,c=1}for(s=p.length;0===p[--s];p.pop());}t.e>O?t.c=t.e=null:t.e<I&&(t.c=[t.e=0])}return t}function V(t){var e,r=t.e;return null===r?t.toString():(e=c(t.c),e=r<=T||r>=C?p(e,r):g(e,r,"0"),t.s<0?"-"+e:e)}return F.clone=t,F.ROUND_UP=0,F.ROUND_DOWN=1,F.ROUND_CEIL=2,F.ROUND_FLOOR=3,F.ROUND_HALF_UP=4,F.ROUND_HALF_DOWN=5,F.ROUND_HALF_EVEN=6,F.ROUND_HALF_CEIL=7,F.ROUND_HALF_FLOOR=8,F.EUCLID=9,F.config=F.set=function(t){var e,r;if(null!=t){if("object"==typeof t){if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(d(r=t[e],0,1e9,e),_=r),t.hasOwnProperty(e="ROUNDING_MODE")&&(d(r=t[e],0,8,e),N=r),t.hasOwnProperty(e="EXPONENTIAL_AT")&&((r=t[e])&&r.pop?(d(r[0],-1e9,0,e),d(r[1],0,1e9,e),T=r[0],C=r[1]):(d(r,-1e9,1e9,e),T=-(C=r<0?-r:r))),t.hasOwnProperty(e="RANGE")){if((r=t[e])&&r.pop)d(r[0],-1e9,-1,e),d(r[1],1,1e9,e),I=r[0],O=r[1];else if(d(r,-1e9,1e9,e),r)I=-(O=r<0?-r:r);else throw Error(a+e+" cannot be zero: "+r)}if(t.hasOwnProperty(e="CRYPTO")){if(!!(r=t[e])===r){if(r){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))k=r;else throw k=!r,Error(a+"crypto unavailable")}else k=r}else throw Error(a+e+" not true or false: "+r)}if(t.hasOwnProperty(e="MODULO_MODE")&&(d(r=t[e],0,9,e),L=r),t.hasOwnProperty(e="POW_PRECISION")&&(d(r=t[e],0,1e9,e),P=r),t.hasOwnProperty(e="FORMAT")){if("object"==typeof(r=t[e]))R=r;else throw Error(a+e+" not an object: "+r)}if(t.hasOwnProperty(e="ALPHABET")){if("string"!=typeof(r=t[e])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(a+e+" invalid: "+r);j="0123456789"==r.slice(0,10),B=r}}else throw Error(a+"Object expected: "+t)}return{DECIMAL_PLACES:_,ROUNDING_MODE:N,EXPONENTIAL_AT:[T,C],RANGE:[I,O],CRYPTO:k,MODULO_MODE:L,POW_PRECISION:P,FORMAT:R,ALPHABET:B}},F.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!F.DEBUG)return!0;var e,r,n=t.c,i=t.e,s=t.s;e:if("[object Array]"==({}).toString.call(n)){if((1===s||-1===s)&&i>=-1e9&&i<=1e9&&i===o(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((e=(i+1)%14)<1&&(e+=14),String(n[0]).length==e){for(e=0;e<n.length;e++)if((r=n[e])<0||r>=1e14||r!==o(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===s||1===s||-1===s))return!0;throw Error(a+"Invalid BigNumber: "+t)},F.maximum=F.max=function(){return z(arguments,S.lt)},F.minimum=F.min=function(){return z(arguments,S.gt)},F.random=(r=0x20000000000000*Math.random()&2097151?function(){return o(0x20000000000000*Math.random())}:function(){return(0x40000000*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(t){var e,n,s,l,c,h=0,f=[],p=new F(M);if(null==t?t=_:d(t,0,1e9),l=i(t/14),k){if(crypto.getRandomValues){for(e=crypto.getRandomValues(new Uint32Array(l*=2));h<l;)(c=131072*e[h]+(e[h+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),e[h]=n[0],e[h+1]=n[1]):(f.push(c%1e14),h+=2);h=l/2}else if(crypto.randomBytes){for(e=crypto.randomBytes(l*=7);h<l;)(c=(31&e[h])*0x1000000000000+0x10000000000*e[h+1]+0x100000000*e[h+2]+0x1000000*e[h+3]+(e[h+4]<<16)+(e[h+5]<<8)+e[h+6])>=9e15?crypto.randomBytes(7).copy(e,h):(f.push(c%1e14),h+=7);h=l/7}else throw k=!1,Error(a+"crypto unavailable")}if(!k)for(;h<l;)(c=r())<9e15&&(f[h++]=c%1e14);for(l=f[--h],t%=14,l&&t&&(c=u[14-t],f[h]=o(l/c)*c);0===f[h];f.pop(),h--);if(h<0)f=[s=0];else{for(s=-1;0===f[0];f.splice(0,1),s-=14);for(h=1,c=f[0];c>=10;c/=10,h++);h<14&&(s-=14-h)}return p.e=s,p.c=f,p}),F.sum=function(){for(var t=1,e=arguments,r=new F(e[0]);t<e.length;)r=r.plus(e[t++]);return r},E=function(){var t="0123456789";function e(t,e,r,n){for(var i,o,a=[0],s=0,u=t.length;s<u;){for(o=a.length;o--;a[o]*=e);for(a[0]+=n.indexOf(t.charAt(s++)),i=0;i<a.length;i++)a[i]>r-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(r,n,i,o,a){var s,u,l,h,d,f,p,y,m=r.indexOf("."),b=_,w=N;for(m>=0&&(h=P,P=0,r=r.replace(".",""),f=(y=new F(n)).pow(r.length-m),P=h,y.c=e(g(c(f.c),f.e,"0"),10,i,t),y.e=y.c.length),l=h=(p=e(r,n,i,a?(s=B,t):(s=t,B))).length;0==p[--h];p.pop());if(!p[0])return s.charAt(0);if(m<0?--l:(f.c=p,f.e=l,f.s=o,p=(f=D(f,y,b,w,i)).c,d=f.r,l=f.e),m=p[u=l+b+1],h=i/2,d=d||u<0||null!=p[u+1],d=w<4?(null!=m||d)&&(0==w||w==(f.s<0?3:2)):m>h||m==h&&(4==w||d||6==w&&1&p[u-1]||w==(f.s<0?8:7)),u<1||!p[0])r=d?g(s.charAt(1),-b,s.charAt(0)):s.charAt(0);else{if(p.length=u,d)for(--i;++p[--u]>i;)p[u]=0,!u&&(++l,p=[1].concat(p));for(h=p.length;!p[--h];);for(m=0,r="";m<=h;r+=s.charAt(p[m++]));r=g(r,l,s.charAt(0))}return r}}(),D=function(){function t(t,e,r){var n,i,o,a,s=0,u=t.length,l=e%1e7,c=e/1e7|0;for(t=t.slice();u--;)o=t[u]%1e7,n=c*o+(a=t[u]/1e7|0)*l,s=((i=l*o+n%1e7*1e7+s)/r|0)+(n/1e7|0)+c*a,t[u]=i%r;return s&&(t=[s].concat(t)),t}function e(t,e,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function r(t,e,r,n){for(var i=0;r--;)t[r]-=i,i=t[r]<e[r]?1:0,t[r]=i*n+t[r]-e[r];for(;!t[0]&&t.length>1;t.splice(0,1));}return function(n,i,a,s,u){var c,h,d,f,p,g,y,m,b,w,A,D,E,x,S,M,_,N=n.s==i.s?1:-1,T=n.c,C=i.c;if(!T||!T[0]||!C||!C[0])return new F(n.s&&i.s&&(T?!C||T[0]!=C[0]:C)?T&&0==T[0]||!C?0*N:N/0:NaN);for(b=(m=new F(N)).c=[],N=a+(h=n.e-i.e)+1,!u&&(u=1e14,h=l(n.e/14)-l(i.e/14),N=N/14|0),d=0;C[d]==(T[d]||0);d++);if(C[d]>(T[d]||0)&&h--,N<0)b.push(1),f=!0;else{for(x=T.length,M=C.length,d=0,N+=2,(p=o(u/(C[0]+1)))>1&&(C=t(C,p,u),T=t(T,p,u),M=C.length,x=T.length),E=M,A=(w=T.slice(0,M)).length;A<M;w[A++]=0);_=[0].concat(_=C.slice()),S=C[0],C[1]>=u/2&&S++;do{if(p=0,(c=e(C,w,M,A))<0){if(D=w[0],M!=A&&(D=D*u+(w[1]||0)),(p=o(D/S))>1)for(p>=u&&(p=u-1),y=(g=t(C,p,u)).length,A=w.length;1==e(g,w,y,A);)p--,r(g,M<y?_:C,y,u),y=g.length,c=1;else 0==p&&(c=p=1),y=(g=C.slice()).length;if(y<A&&(g=[0].concat(g)),r(w,g,A,u),A=w.length,-1==c)for(;1>e(C,w,M,A);)p++,r(w,M<A?_:C,A,u),A=w.length}else 0===c&&(p++,w=[0]);b[d++]=p,w[0]?w[A++]=T[E]||0:(w=[T[E]],A=1)}while((E++<x||null!=w[0])&&N--);f=null!=w[0],!b[0]&&b.splice(0,1)}if(1e14==u){for(d=1,N=b[0];N>=10;N/=10,d++);H(m,a+(m.e=d+14*h-1)+1,s,f)}else m.e=h,m.r=+f;return m}}(),y=/^(-?)0([xbo])(?=\w[\w.]*$)/i,m=/^([^.]+)\.$/,b=/^\.([^.]+)$/,w=/^-?(Infinity|NaN)$/,A=/^\s*\+(?=[\w.])|^\s+|\s+$/g,x=function(t,e,r,n){var i,o=r?e:e.replace(A,"");if(w.test(o))t.s=isNaN(o)?null:o<0?-1:1;else{if(!r&&(o=o.replace(y,function(t,e,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?t:e}),n&&(i=n,o=o.replace(m,"$1").replace(b,"0.$1")),e!=o))return new F(o,i);if(F.DEBUG)throw Error(a+"Not a"+(n?" base "+n:"")+" number: "+e);t.s=null}t.c=t.e=null},S.absoluteValue=S.abs=function(){var t=new F(this);return t.s<0&&(t.s=1),t},S.comparedTo=function(t,e){return h(this,new F(t,e))},S.decimalPlaces=S.dp=function(t,e){var r,n,i;if(null!=t)return d(t,0,1e9),null==e?e=N:d(e,0,8),H(new F(this),t+this.e+1,e);if(!(r=this.c))return null;if(n=((i=r.length-1)-l(this.e/14))*14,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},S.dividedBy=S.div=function(t,e){return D(this,new F(t,e),_,N)},S.dividedToIntegerBy=S.idiv=function(t,e){return D(this,new F(t,e),0,1)},S.exponentiatedBy=S.pow=function(t,e){var r,n,s,u,l,c,h,d,p,g=this;if((t=new F(t)).c&&!t.isInteger())throw Error(a+"Exponent not an integer: "+V(t));if(null!=e&&(e=new F(e)),c=t.e>14,!g.c||!g.c[0]||1==g.c[0]&&!g.e&&1==g.c.length||!t.c||!t.c[0])return p=new F(Math.pow(+V(g),c?2-f(t):+V(t))),e?p.mod(e):p;if(h=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new F(NaN);(n=!h&&g.isInteger()&&e.isInteger())&&(g=g.mod(e))}else{if(t.e>9&&(g.e>0||g.e<-1||(0==g.e?g.c[0]>1||c&&g.c[1]>=24e7:g.c[0]<8e13||c&&g.c[0]<=9999975e7)))return u=g.s<0&&f(t)?-0:0,g.e>-1&&(u=1/u),new F(h?1/u:u);P&&(u=i(P/14+2))}for(c?(r=new F(.5),h&&(t.s=1),d=f(t)):d=(s=Math.abs(+V(t)))%2,p=new F(M);;){if(d){if(!(p=p.times(g)).c)break;u?p.c.length>u&&(p.c.length=u):n&&(p=p.mod(e))}if(s){if(0===(s=o(s/2)))break;d=s%2}else if(H(t=t.times(r),t.e+1,1),t.e>14)d=f(t);else{if(0==(s=+V(t)))break;d=s%2}g=g.times(g),u?g.c&&g.c.length>u&&(g.c.length=u):n&&(g=g.mod(e))}return n?p:(h&&(p=M.div(p)),e?p.mod(e):u?H(p,P,N,l):p)},S.integerValue=function(t){var e=new F(this);return null==t?t=N:d(t,0,8),H(e,e.e+1,t)},S.isEqualTo=S.eq=function(t,e){return 0===h(this,new F(t,e))},S.isFinite=function(){return!!this.c},S.isGreaterThan=S.gt=function(t,e){return h(this,new F(t,e))>0},S.isGreaterThanOrEqualTo=S.gte=function(t,e){return 1===(e=h(this,new F(t,e)))||0===e},S.isInteger=function(){return!!this.c&&l(this.e/14)>this.c.length-2},S.isLessThan=S.lt=function(t,e){return 0>h(this,new F(t,e))},S.isLessThanOrEqualTo=S.lte=function(t,e){return -1===(e=h(this,new F(t,e)))||0===e},S.isNaN=function(){return!this.s},S.isNegative=function(){return this.s<0},S.isPositive=function(){return this.s>0},S.isZero=function(){return!!this.c&&0==this.c[0]},S.minus=function(t,e){var r,n,i,o,a=this.s;if(e=(t=new F(t,e)).s,!a||!e)return new F(NaN);if(a!=e)return t.s=-e,this.plus(t);var s=this.e/14,u=t.e/14,c=this.c,h=t.c;if(!s||!u){if(!c||!h)return c?(t.s=-e,t):new F(h?this:NaN);if(!c[0]||!h[0])return h[0]?(t.s=-e,t):new F(c[0]?this:3==N?-0:0)}if(s=l(s),u=l(u),c=c.slice(),a=s-u){for((o=a<0)?(a=-a,i=c):(u=s,i=h),i.reverse(),e=a;e--;i.push(0));i.reverse()}else for(n=(o=(a=c.length)<(e=h.length))?a:e,a=e=0;e<n;e++)if(c[e]!=h[e]){o=c[e]<h[e];break}if(o&&(i=c,c=h,h=i,t.s=-t.s),(e=(n=h.length)-(r=c.length))>0)for(;e--;c[r++]=0);for(e=1e14-1;n>a;){if(c[--n]<h[n]){for(r=n;r&&!c[--r];c[r]=e);--c[r],c[n]+=1e14}c[n]-=h[n]}for(;0==c[0];c.splice(0,1),--u);return c[0]?q(t,c,u):(t.s=3==N?-1:1,t.c=[t.e=0],t)},S.modulo=S.mod=function(t,e){var r,n;return(t=new F(t,e),this.c&&t.s&&(!t.c||t.c[0]))?t.c&&(!this.c||this.c[0])?(9==L?(n=t.s,t.s=1,r=D(this,t,0,3),t.s=n,r.s*=n):r=D(this,t,0,L),!(t=this.minus(r.times(t))).c[0]&&1==L&&(t.s=this.s),t):new F(this):new F(NaN)},S.multipliedBy=S.times=function(t,e){var r,n,i,o,a,s,u,c,h,d,f,p,g,y=this.c,m=(t=new F(t,e)).c;if(!y||!m||!y[0]||!m[0])return this.s&&t.s&&(!y||y[0]||m)&&(!m||m[0]||y)?(t.s*=this.s,y&&m?(t.c=[0],t.e=0):t.c=t.e=null):t.c=t.e=t.s=null,t;for(n=l(this.e/14)+l(t.e/14),t.s*=this.s,u=y.length,u<(d=m.length)&&(g=y,y=m,m=g,i=u,u=d,d=i),i=u+d,g=[];i--;g.push(0));for(i=d;--i>=0;){for(r=0,f=m[i]%1e7,p=m[i]/1e7|0,o=i+(a=u);o>i;)c=y[--a]%1e7,s=p*c+(h=y[a]/1e7|0)*f,r=((c=f*c+s%1e7*1e7+g[o]+r)/1e14|0)+(s/1e7|0)+p*h,g[o--]=c%1e14;g[o]=r}return r?++n:g.splice(0,1),q(t,g,n)},S.negated=function(){var t=new F(this);return t.s=-t.s||null,t},S.plus=function(t,e){var r,n=this.s;if(e=(t=new F(t,e)).s,!n||!e)return new F(NaN);if(n!=e)return t.s=-e,this.minus(t);var i=this.e/14,o=t.e/14,a=this.c,s=t.c;if(!i||!o){if(!a||!s)return new F(n/0);if(!a[0]||!s[0])return s[0]?t:new F(a[0]?this:0*n)}if(i=l(i),o=l(o),a=a.slice(),n=i-o){for(n>0?(o=i,r=s):(n=-n,r=a),r.reverse();n--;r.push(0));r.reverse()}for(n=a.length,n-(e=s.length)<0&&(r=s,s=a,a=r,e=n),n=0;e;)n=(a[--e]=a[e]+s[e]+n)/1e14|0,a[e]=1e14===a[e]?0:a[e]%1e14;return n&&(a=[n].concat(a),++o),q(t,a,o)},S.precision=S.sd=function(t,e){var r,n,i;if(null!=t&&!!t!==t)return d(t,1,1e9),null==e?e=N:d(e,0,8),H(new F(this),t,e);if(!(r=this.c))return null;if(n=14*(i=r.length-1)+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return t&&this.e+1>n&&(n=this.e+1),n},S.shiftedBy=function(t){return d(t,-0x1fffffffffffff,0x1fffffffffffff),this.times("1e"+t)},S.squareRoot=S.sqrt=function(){var t,e,r,n,i,o=this.c,a=this.s,s=this.e,u=_+4,h=new F("0.5");if(1!==a||!o||!o[0])return new F(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+V(this)))||a==1/0?(((e=c(o)).length+s)%2==0&&(e+="0"),a=Math.sqrt(+e),s=l((s+1)/2)-(s<0||s%2),r=new F(e=a==1/0?"5e"+s:(e=a.toExponential()).slice(0,e.indexOf("e")+1)+s)):r=new F(a+""),r.c[0]){for((a=(s=r.e)+u)<3&&(a=0);;)if(i=r,r=h.times(i.plus(D(this,i,u,1))),c(i.c).slice(0,a)===(e=c(r.c)).slice(0,a)){if(r.e<s&&--a,"9999"!=(e=e.slice(a-3,a+1))&&(n||"4999"!=e)){(!+e||!+e.slice(1)&&"5"==e.charAt(0))&&(H(r,r.e+_+2,1),t=!r.times(r).eq(this));break}if(!n&&(H(i,i.e+_+2,0),i.times(i).eq(this))){r=i;break}u+=4,a+=4,n=1}}return H(r,r.e+_+1,N,t)},S.toExponential=function(t,e){return null!=t&&(d(t,0,1e9),t++),U(this,t,e,1)},S.toFixed=function(t,e){return null!=t&&(d(t,0,1e9),t=t+this.e+1),U(this,t,e)},S.toFormat=function(t,e,r){var n;if(null==r)null!=t&&e&&"object"==typeof e?(r=e,e=null):t&&"object"==typeof t?(r=t,t=e=null):r=R;else if("object"!=typeof r)throw Error(a+"Argument not an object: "+r);if(n=this.toFixed(t,e),this.c){var i,o=n.split("."),s=+r.groupSize,u=+r.secondaryGroupSize,l=r.groupSeparator||"",c=o[0],h=o[1],d=this.s<0,f=d?c.slice(1):c,p=f.length;if(u&&(i=s,s=u,u=i,p-=i),s>0&&p>0){for(i=p%s||s,c=f.substr(0,i);i<p;i+=s)c+=l+f.substr(i,s);u>0&&(c+=l+f.slice(i)),d&&(c="-"+c)}n=h?c+(r.decimalSeparator||"")+((u=+r.fractionGroupSize)?h.replace(RegExp("\\d{"+u+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):h):c}return(r.prefix||"")+n+(r.suffix||"")},S.toFraction=function(t){var e,r,n,i,o,s,l,h,d,f,p,g,y=this.c;if(null!=t&&(!(l=new F(t)).isInteger()&&(l.c||1!==l.s)||l.lt(M)))throw Error(a+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+V(l));if(!y)return new F(this);for(e=new F(M),d=r=new F(M),n=h=new F(M),g=c(y),o=e.e=g.length-this.e-1,e.c[0]=u[(s=o%14)<0?14+s:s],t=!t||l.comparedTo(e)>0?o>0?e:d:l,s=O,O=1/0,l=new F(g),h.c[0]=0;f=D(l,e,0,1),1!=(i=r.plus(f.times(n))).comparedTo(t);){;r=n,n=i,d=h.plus(f.times(i=d)),h=i,e=l.minus(f.times(i=e)),l=i}return i=D(t.minus(r),n,0,1),h=h.plus(i.times(d)),r=r.plus(i.times(n)),h.s=d.s=this.s,o*=2,p=1>D(d,n,o,N).minus(this).abs().comparedTo(D(h,r,o,N).minus(this).abs())?[d,n]:[h,r],O=s,p},S.toNumber=function(){return+V(this)},S.toPrecision=function(t,e){return null!=t&&d(t,1,1e9),U(this,t,e,2)},S.toString=function(t){var e,r=this,n=r.s,i=r.e;return null===i?n?(e="Infinity",n<0&&(e="-"+e)):e="NaN":(null==t?e=i<=T||i>=C?p(c(r.c),i):g(c(r.c),i,"0"):10===t&&j?e=g(c((r=H(new F(r),_+i+1,N)).c),r.e,"0"):(d(t,2,B.length,"Base"),e=E(g(c(r.c),i,"0"),10,t,n,!0)),n<0&&r.c[0]&&(e="-"+e)),e},S.valueOf=S.toJSON=function(){return V(this)},S._isBigNumber=!0,null!=e&&F.set(e),F}()).default=r.BigNumber=r,"function"==typeof define&&define.amd?define(function(){return r}):t.exports?t.exports=r:(!e&&(e="undefined"!=typeof self&&self?self:window),e.BigNumber=r)}(this)},650818:function(t){var e,r;e=0,r=function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e||4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,(function(e){return t[e]}).bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=90)}({17:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=r(18),i=function(){function t(){}return t.getFirstMatch=function(t,e){var r=e.match(t);return r&&r.length>0&&r[1]||""},t.getSecondMatch=function(t,e){var r=e.match(t);return r&&r.length>1&&r[2]||""},t.matchAndReturnConst=function(t,e,r){if(t.test(e))return r},t.getWindowsVersionName=function(t){switch(t){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},t.getMacOSVersionName=function(t){var e=t.split(".").splice(0,2).map(function(t){return parseInt(t,10)||0});if(e.push(0),10===e[0])switch(e[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},t.getAndroidVersionName=function(t){var e=t.split(".").splice(0,2).map(function(t){return parseInt(t,10)||0});if(e.push(0),!(1===e[0]&&e[1]<5))return 1===e[0]&&e[1]<6?"Cupcake":1===e[0]&&e[1]>=6?"Donut":2===e[0]&&e[1]<2?"Eclair":2===e[0]&&2===e[1]?"Froyo":2===e[0]&&e[1]>2?"Gingerbread":3===e[0]?"Honeycomb":4===e[0]&&e[1]<1?"Ice Cream Sandwich":4===e[0]&&e[1]<4?"Jelly Bean":4===e[0]&&e[1]>=4?"KitKat":5===e[0]?"Lollipop":6===e[0]?"Marshmallow":7===e[0]?"Nougat":8===e[0]?"Oreo":9===e[0]?"Pie":void 0},t.getVersionPrecision=function(t){return t.split(".").length},t.compareVersions=function(e,r,n){void 0===n&&(n=!1);var i=t.getVersionPrecision(e),o=t.getVersionPrecision(r),a=Math.max(i,o),s=0,u=t.map([e,r],function(e){var r=a-t.getVersionPrecision(e),n=e+Array(r+1).join(".0");return t.map(n.split("."),function(t){return Array(20-t.length).join("0")+t}).reverse()});for(n&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(u[0][a]>u[1][a])return 1;if(u[0][a]===u[1][a]){if(a===s)return 0;a-=1}else if(u[0][a]<u[1][a])return -1}},t.map=function(t,e){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(t,e);for(r=0;r<t.length;r+=1)n.push(e(t[r]));return n},t.find=function(t,e){var r,n;if(Array.prototype.find)return Array.prototype.find.call(t,e);for(r=0,n=t.length;r<n;r+=1){var i=t[r];if(e(i,r))return i}},t.assign=function(t){for(var e,r,n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];if(Object.assign)return Object.assign.apply(Object,[t].concat(i));for(e=0,r=i.length;e<r;e+=1)(function(){var r=i[e];"object"==typeof r&&null!==r&&Object.keys(r).forEach(function(e){t[e]=r[e]})})();return t},t.getBrowserAlias=function(t){return n.BROWSER_ALIASES_MAP[t]},t.getBrowserTypeByAlias=function(t){return n.BROWSER_MAP[t]||""},t}();e.default=i,t.exports=e.default},18:function(t,e,r){"use strict";e.__esModule=!0,e.ENGINE_MAP=e.OS_MAP=e.PLATFORMS_MAP=e.BROWSER_MAP=e.BROWSER_ALIASES_MAP=void 0,e.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},e.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},e.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},e.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},e.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=r(91))&&n.__esModule?n:{default:n},o=r(18),a=function(){var t;function e(){}return e.getParser=function(t,e){if(void 0===e&&(e=!1),"string"!=typeof t)throw Error("UserAgent should be a string");return new i.default(t,e)},e.parse=function(t){return new i.default(t).getResult()},t=[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e,t),e}();e.default=a,t.exports=e.default},91:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=u(r(92)),i=u(r(93)),o=u(r(94)),a=u(r(95)),s=u(r(17));function u(t){return t&&t.__esModule?t:{default:t}}var l=function(){function t(t,e){if(void 0===e&&(e=!1),null==t||""===t)throw Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},!0!==e&&this.parse()}var e=t.prototype;return e.getUA=function(){return this._ua},e.test=function(t){return t.test(this._ua)},e.parseBrowser=function(){var t=this;this.parsedResult.browser={};var e=s.default.find(n.default,function(e){if("function"==typeof e.test)return e.test(t);if(e.test instanceof Array)return e.test.some(function(e){return t.test(e)});throw Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser},e.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},e.getBrowserName=function(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},e.getBrowserVersion=function(){return this.getBrowser().version},e.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},e.parseOS=function(){var t=this;this.parsedResult.os={};var e=s.default.find(i.default,function(e){if("function"==typeof e.test)return e.test(t);if(e.test instanceof Array)return e.test.some(function(e){return t.test(e)});throw Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os},e.getOSName=function(t){var e=this.getOS().name;return t?String(e).toLowerCase()||"":e||""},e.getOSVersion=function(){return this.getOS().version},e.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},e.getPlatformType=function(t){void 0===t&&(t=!1);var e=this.getPlatform().type;return t?String(e).toLowerCase()||"":e||""},e.parsePlatform=function(){var t=this;this.parsedResult.platform={};var e=s.default.find(o.default,function(e){if("function"==typeof e.test)return e.test(t);if(e.test instanceof Array)return e.test.some(function(e){return t.test(e)});throw Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform},e.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},e.getEngineName=function(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},e.parseEngine=function(){var t=this;this.parsedResult.engine={};var e=s.default.find(a.default,function(e){if("function"==typeof e.test)return e.test(t);if(e.test instanceof Array)return e.test.some(function(e){return t.test(e)});throw Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine},e.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},e.getResult=function(){return s.default.assign({},this.parsedResult)},e.satisfies=function(t){var e=this,r={},n=0,i={},o=0;if(Object.keys(t).forEach(function(e){var a=t[e];"string"==typeof a?(i[e]=a,o+=1):"object"==typeof a&&(r[e]=a,n+=1)}),n>0){var a=Object.keys(r),u=s.default.find(a,function(t){return e.isOS(t)});if(u){var l=this.satisfies(r[u]);if(void 0!==l)return l}var c=s.default.find(a,function(t){return e.isPlatform(t)});if(c){var h=this.satisfies(r[c]);if(void 0!==h)return h}}if(o>0){var d=Object.keys(i),f=s.default.find(d,function(t){return e.isBrowser(t,!0)});if(void 0!==f)return this.compareVersion(i[f])}},e.isBrowser=function(t,e){void 0===e&&(e=!1);var r=this.getBrowserName().toLowerCase(),n=t.toLowerCase(),i=s.default.getBrowserTypeByAlias(n);return e&&i&&(n=i.toLowerCase()),n===r},e.compareVersion=function(t){var e=[0],r=t,n=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===t[0]||"<"===t[0]?(r=t.substr(1),"="===t[1]?(n=!0,r=t.substr(2)):e=[],">"===t[0]?e.push(1):e.push(-1)):"="===t[0]?r=t.substr(1):"~"===t[0]&&(n=!0,r=t.substr(1)),e.indexOf(s.default.compareVersions(i,r,n))>-1},e.isOS=function(t){return this.getOSName(!0)===String(t).toLowerCase()},e.isPlatform=function(t){return this.getPlatformType(!0)===String(t).toLowerCase()},e.isEngine=function(t){return this.getEngineName(!0)===String(t).toLowerCase()},e.is=function(t,e){return void 0===e&&(e=!1),this.isBrowser(t,e)||this.isOS(t)||this.isPlatform(t)},e.some=function(t){var e=this;return void 0===t&&(t=[]),t.some(function(t){return e.is(t)})},t}();e.default=l,t.exports=e.default},92:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(t){var e={name:"Googlebot"},r=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/opera/i],describe:function(t){var e={name:"Opera"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/opr\/|opios/i],describe:function(t){var e={name:"Opera"},r=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/SamsungBrowser/i],describe:function(t){var e={name:"Samsung Internet for Android"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/Whale/i],describe:function(t){var e={name:"NAVER Whale Browser"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/MZBrowser/i],describe:function(t){var e={name:"MZ Browser"},r=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/focus/i],describe:function(t){var e={name:"Focus"},r=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/swing/i],describe:function(t){var e={name:"Swing"},r=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/coast/i],describe:function(t){var e={name:"Opera Coast"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(t){var e={name:"Opera Touch"},r=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/yabrowser/i],describe:function(t){var e={name:"Yandex Browser"},r=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/ucbrowser/i],describe:function(t){var e={name:"UC Browser"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/Maxthon|mxios/i],describe:function(t){var e={name:"Maxthon"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/epiphany/i],describe:function(t){var e={name:"Epiphany"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/puffin/i],describe:function(t){var e={name:"Puffin"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sleipnir/i],describe:function(t){var e={name:"Sleipnir"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/k-meleon/i],describe:function(t){var e={name:"K-Meleon"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/micromessenger/i],describe:function(t){var e={name:"WeChat"},r=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/qqbrowser/i],describe:function(t){var e={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},r=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/msie|trident/i],describe:function(t){var e={name:"Internet Explorer"},r=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/\sedg\//i],describe:function(t){var e={name:"Microsoft Edge"},r=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/edg([ea]|ios)/i],describe:function(t){var e={name:"Microsoft Edge"},r=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/vivaldi/i],describe:function(t){var e={name:"Vivaldi"},r=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/seamonkey/i],describe:function(t){var e={name:"SeaMonkey"},r=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sailfish/i],describe:function(t){var e={name:"Sailfish"},r=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return r&&(e.version=r),e}},{test:[/silk/i],describe:function(t){var e={name:"Amazon Silk"},r=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/phantom/i],describe:function(t){var e={name:"PhantomJS"},r=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/slimerjs/i],describe:function(t){var e={name:"SlimerJS"},r=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var e={name:"BlackBerry"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var e={name:"WebOS Browser"},r=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/bada/i],describe:function(t){var e={name:"Bada"},r=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/tizen/i],describe:function(t){var e={name:"Tizen"},r=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/qupzilla/i],describe:function(t){var e={name:"QupZilla"},r=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/firefox|iceweasel|fxios/i],describe:function(t){var e={name:"Firefox"},r=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/electron/i],describe:function(t){var e={name:"Electron"},r=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/MiuiBrowser/i],describe:function(t){var e={name:"Miui"},r=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/chromium/i],describe:function(t){var e={name:"Chromium"},r=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/chrome|crios|crmo/i],describe:function(t){var e={name:"Chrome"},r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/GSA/i],describe:function(t){var e={name:"Google Search"},r=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:function(t){var e=!t.test(/like android/i),r=t.test(/android/i);return e&&r},describe:function(t){var e={name:"Android Browser"},r=i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/playstation 4/i],describe:function(t){var e={name:"PlayStation 4"},r=i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/safari|applewebkit/i],describe:function(t){var e={name:"Safari"},r=i.default.getFirstMatch(o,t);return r&&(e.version=r),e}},{test:[/.*/i],describe:function(t){var e=-1!==t.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(e,t),version:i.default.getSecondMatch(e,t)}}}];e.default=a,t.exports=e.default},93:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/Roku\/DVP/],describe:function(t){var e=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:o.OS_MAP.Roku,version:e}}},{test:[/windows phone/i],describe:function(t){var e=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.WindowsPhone,version:e}}},{test:[/windows /i],describe:function(t){var e=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),r=i.default.getWindowsVersionName(e);return{name:o.OS_MAP.Windows,version:e,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(t){var e={name:o.OS_MAP.iOS},r=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return r&&(e.version=r),e}},{test:[/macintosh/i],describe:function(t){var e=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),r=i.default.getMacOSVersionName(e),n={name:o.OS_MAP.MacOS,version:e};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(t){var e=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:e}}},{test:function(t){var e=!t.test(/like android/i),r=t.test(/android/i);return e&&r},describe:function(t){var e=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),r=i.default.getAndroidVersionName(e),n={name:o.OS_MAP.Android,version:e};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var e=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),r={name:o.OS_MAP.WebOS};return e&&e.length&&(r.version=e),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var e=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||i.default.getFirstMatch(/\bbb(\d+)/i,t);return{name:o.OS_MAP.BlackBerry,version:e}}},{test:[/bada/i],describe:function(t){var e=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.Bada,version:e}}},{test:[/tizen/i],describe:function(t){var e=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.Tizen,version:e}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(t){var e=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.PlayStation4,version:e}}}];e.default=a,t.exports=e.default},94:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(t){var e=i.default.getFirstMatch(/(can-l01)/i,t)&&"Nova",r={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return e&&(r.model=e),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(t){var e=t.test(/ipod|iphone/i),r=t.test(/like (ipod|iphone)/i);return e&&!r},describe:function(t){var e=i.default.getFirstMatch(/(ipod|iphone)/i,t);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(t){return"blackberry"===t.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(t){return"bada"===t.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(t){return"windows phone"===t.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(t){var e=Number(String(t.getOSVersion()).split(".")[0]);return"android"===t.getOSName(!0)&&e>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(t){return"android"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(t){return"macos"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(t){return"windows"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(t){return"linux"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(t){return"playstation 4"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(t){return"roku"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];e.default=a,t.exports=e.default},95:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:function(t){return"microsoft edge"===t.getBrowserName(!0)},describe:function(t){if(/\sedg\//i.test(t))return{name:o.ENGINE_MAP.Blink};var e=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:o.ENGINE_MAP.EdgeHTML,version:e}}},{test:[/trident/i],describe:function(t){var e={name:o.ENGINE_MAP.Trident},r=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:function(t){return t.test(/presto/i)},describe:function(t){var e={name:o.ENGINE_MAP.Presto},r=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:function(t){var e=t.test(/gecko/i),r=t.test(/like gecko/i);return e&&!r},describe:function(t){var e={name:o.ENGINE_MAP.Gecko},r=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(t){var e={name:o.ENGINE_MAP.WebKit},r=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}}];e.default=a,t.exports=e.default}})},t.exports=r()},740223:function(t,e,r){"use strict";var n;let i=r(144448),o=r(308144),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u;e.INSPECT_MAX_BYTES=50;u.TYPED_ARRAY_SUPPORT=function(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),!u.TYPED_ARRAY_SUPPORT&&"undefined"!=typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return h(t)}return l(t,e,r)}function l(t,e,r){if("string"==typeof t)return function(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!u.isEncoding(e))throw TypeError("Unknown encoding: "+e);let r=0|g(t,e),n=s(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(F(t,Uint8Array)){let e=new Uint8Array(t);return f(e.buffer,e.byteOffset,e.byteLength)}return d(t)}(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(F(t,ArrayBuffer)||t&&F(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(F(t,SharedArrayBuffer)||t&&F(t.buffer,SharedArrayBuffer)))return f(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');let n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return u.from(n,e,r);let i=function(t){if(u.isBuffer(t)){let e=0|p(t.length),r=s(e);return 0===r.length?r:(t.copy(r,0,0,e),r)}if(void 0!==t.length)return"number"!=typeof t.length||U(t.length)?s(0):d(t);if("Buffer"===t.type&&Array.isArray(t.data))return d(t.data)}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,e,r){return l(t,e,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function h(t){return c(t),s(t<0?0:0|p(t))}u.alloc=function(t,e,r){var n,i,o;return n=t,i=e,o=r,(c(n),n<=0)?s(n):void 0!==i?"string"==typeof o?s(n).fill(i,o):s(n).fill(i):s(n)},u.allocUnsafe=function(t){return h(t)},u.allocUnsafeSlow=function(t){return h(t)};function d(t){let e=t.length<0?0:0|p(t.length),r=s(e);for(let n=0;n<e;n+=1)r[n]=255&t[n];return r}function f(t,e,r){let n;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),u.prototype),n}function p(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+"7fffffff bytes");return 0|t}function g(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||F(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return R(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return B(t).length;default:if(i)return n?-1:R(t).length;e=(""+e).toLowerCase(),i=!0}}function y(t,e,r){let n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0))return"";for(!t&&(t="utf8");;)switch(t){case"hex":return function(t,e,r){let n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=e;n<r;++n)i+=z[t[n]];return i}(this,e,r);case"utf8":case"utf-8":return A(this,e,r);case"ascii":return function(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}(this,e,r);case"base64":return function(t,e,r){return 0===e&&r===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,r))}(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){let n=t.slice(e,r),i="";for(let t=0;t<n.length-1;t+=2)i+=String.fromCharCode(n[t]+256*n[t+1]);return i}(this,e,r);default:if(n)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}function b(t,e,r,n,i){if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),function(t){return t!=t}(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return -1;r=t.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:w(t,e,r,n,i);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)return i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r);return w(t,[e],r,n,i)}throw TypeError("val must be string, number or Buffer")}function w(t,e,r,n,i){let o,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;a=2,s/=2,u/=2,r/=2}function l(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){let n=-1;for(o=r;o<s;o++)if(l(t,o)===l(e,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===u)return n*a}else -1!==n&&(o-=o-n),n=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){let r=!0;for(let n=0;n<u;n++)if(l(t,o+n)!==l(e,n)){r=!1;break}if(r)return o}return -1}u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,e){if(F(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),F(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,n=e.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){let r;if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;let n=u.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){let e=t[r];if(F(e,Uint8Array))i+e.length>n.length?(!u.isBuffer(e)&&(e=u.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else if(u.isBuffer(e))e.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=e.length}return n},u.byteLength=g,u.prototype._isBuffer=!0,u.prototype.swap16=function(){let t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)m(this,e,e+1);return this},u.prototype.swap32=function(){let t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},u.prototype.swap64=function(){let t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},u.prototype.toString=function(){let t=this.length;return 0===t?"":0==arguments.length?A(this,0,t):y.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(t){if(!u.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){let t="",r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,i){if(F(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;let o=i-n,a=r-e,s=Math.min(o,a),l=this.slice(n,i),c=t.slice(e,r);for(let t=0;t<s;++t)if(l[t]!==c[t]){o=l[t],a=c[t];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return b(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return b(this,t,e,r,!1)};u.prototype.write=function(t,e,r,n){var i,o,a,s,u,l,c,h,d,f,p,g,y,m,b,w;if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let A=this.length-e;if((void 0===r||r>A)&&(r=A),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");!n&&(n="utf8");let D=!1;for(;;)switch(n){case"hex":return function(t,e,r,n){let i;r=Number(r)||0;let o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;let a=e.length;for(n>a/2&&(n=a/2),i=0;i<n;++i){let n=parseInt(e.substr(2*i,2),16);if(function(t){return t!=t}(n))break;t[r+i]=n}return i}(this,t,e,r);case"utf8":case"utf-8":;return i=this,o=t,a=e,s=r,j(R(o,i.length-a),i,a,s);case"ascii":case"latin1":case"binary":;return u=this,l=t,c=e,h=r,j(function(t){let e=[];for(let r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(l),u,c,h);case"base64":;return d=this,f=t,p=e,g=r,j(B(f),d,p,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":;return y=this,m=t,b=e,w=r,j(function(t,e){let r,n,i;let o=[];for(let a=0;a<t.length&&!((e-=2)<0);++a)n=(r=t.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(m,y.length-b),y,b,w);default:if(D)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),D=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function A(t,e,r){r=Math.min(t.length,r);let n=[],i=e;for(;i<r;){let e=t[i],o=null,a=e>239?4:e>223?3:e>191?2:1;if(i+a<=r){let r,n,s,u;switch(a){case 1:e<128&&(o=e);break;case 2:(192&(r=t[i+1]))==128&&(u=(31&e)<<6|63&r)>127&&(o=u);break;case 3:r=t[i+1],n=t[i+2],(192&r)==128&&(192&n)==128&&(u=(15&e)<<12|(63&r)<<6|63&n)>2047&&(u<55296||u>57343)&&(o=u);break;case 4:r=t[i+1],n=t[i+2],s=t[i+3],(192&r)==128&&(192&n)==128&&(192&s)==128&&(u=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&s)>65535&&u<1114112&&(o=u)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return function(t){let e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}function D(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function E(t,e,r,n,i,o){if(!u.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function x(t,e,r,n,i){O(e,n,i,t,r,7);let o=Number(e&BigInt(0xffffffff));t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o;let a=Number(e>>BigInt(32)&BigInt(0xffffffff));return t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,r}function S(t,e,r,n,i){O(e,n,i,t,r,7);let o=Number(e&BigInt(0xffffffff));t[r+7]=o,o>>=8,t[r+6]=o,o>>=8,t[r+5]=o,o>>=8,t[r+4]=o;let a=Number(e>>BigInt(32)&BigInt(0xffffffff));return t[r+3]=a,a>>=8,t[r+2]=a,a>>=8,t[r+1]=a,a>>=8,t[r]=a,r+8}function M(t,e,r,n,i,o){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function _(t,e,r,n,i){return e=+e,r>>>=0,!i&&M(t,e,r,4,34028234663852886e22,-34028234663852886e22),o.write(t,e,r,n,23,4),r+4}function N(t,e,r,n,i){return e=+e,r>>>=0,!i&&M(t,e,r,8,17976931348623157e292,-17976931348623157e292),o.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){let r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);let n=this.subarray(t,e);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUintLE=u.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,!r&&D(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return n},u.prototype.readUintBE=u.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,!r&&D(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,!e&&D(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,!e&&D(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,!e&&D(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,!e&&D(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,!e&&D(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readBigUInt64LE=q(function(t){k(t>>>=0,"offset");let e=this[t],r=this[t+7];(void 0===e||void 0===r)&&L(t,this.length-8);let n=e+256*this[++t]+65536*this[++t]+0x1000000*this[++t],i=this[++t]+256*this[++t]+65536*this[++t]+0x1000000*r;return BigInt(n)+(BigInt(i)<<BigInt(32))}),u.prototype.readBigUInt64BE=q(function(t){k(t>>>=0,"offset");let e=this[t],r=this[t+7];(void 0===e||void 0===r)&&L(t,this.length-8);let n=0x1000000*e+65536*this[++t]+256*this[++t]+this[++t],i=0x1000000*this[++t]+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,!r&&D(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,!r&&D(t,e,this.length);let n=e,i=1,o=this[t+--n];for(;n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return(t>>>=0,!e&&D(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,!e&&D(t,2,this.length);let r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,!e&&D(t,2,this.length);let r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,!e&&D(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,!e&&D(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readBigInt64LE=q(function(t){k(t>>>=0,"offset");let e=this[t],r=this[t+7];return(void 0===e||void 0===r)&&L(t,this.length-8),(BigInt(this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24))<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+0x1000000*this[++t])}),u.prototype.readBigInt64BE=q(function(t){k(t>>>=0,"offset");let e=this[t],r=this[t+7];return(void 0===e||void 0===r)&&L(t,this.length-8),(BigInt((e<<24)+65536*this[++t]+256*this[++t]+this[++t])<<BigInt(32))+BigInt(0x1000000*this[++t]+65536*this[++t]+256*this[++t]+r)}),u.prototype.readFloatLE=function(t,e){return t>>>=0,!e&&D(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,!e&&D(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,!e&&D(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,!e&&D(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;E(this,t,e,r,n,0)}let i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;E(this,t,e,r,n,0)}let i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,!r&&E(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,!r&&E(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,!r&&E(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,!r&&E(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,!r&&E(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigUInt64LE=q(function(t,e=0){return x(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=q(function(t,e=0){return S(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){let n=Math.pow(2,8*r-1);E(this,t,e,r,n-1,-n)}let i=0,o=1,a=0;for(this[e]=255&t;++i<r&&(o*=256);)t<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(t/o>>0)-a&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){let n=Math.pow(2,8*r-1);E(this,t,e,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/o>>0)-a&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,!r&&E(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,!r&&E(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,!r&&E(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,!r&&E(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,!r&&E(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigInt64LE=q(function(t,e=0){return x(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=q(function(t,e=0){return S(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(t,e,r){return _(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return _(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return N(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return N(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.isBuffer(t))throw TypeError("argument should be a Buffer");if(!r&&(r=0),!n&&0!==n&&(n=this.length),e>=t.length&&(e=t.length),!e&&(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);let i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},u.prototype.fill=function(t,e,r,n){let i;if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){let e=t.charCodeAt(0);("utf8"===n&&e<128||"latin1"===n)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,!t&&(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{let o=u.isBuffer(t)?t:u.from(t,n),a=o.length;if(0===a)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=o[i%a]}return this};let T={};function C(t,e,r){T[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function I(t){let e="",r=t.length,n="-"===t[0]?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}C("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),C("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),C("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>0x100000000?i=I(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=I(i)),i+="n"),n+=` It must be ${e}. Received ${i}`},RangeError);function O(t,e,r,n,i,o){var a,s,u;if(t>r||t<e){let n;let i="bigint"==typeof e?"n":"";throw n=o>3?0===e||e===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${e}${i} and <= ${r}${i}`,new T.ERR_OUT_OF_RANGE("value",n,t)}a=n,s=i,u=o,k(s,"offset"),(void 0===a[s]||void 0===a[s+u])&&L(s,a.length-(u+1))}function k(t,e){if("number"!=typeof t)throw new T.ERR_INVALID_ARG_TYPE(e,"number",t)}function L(t,e,r){if(Math.floor(t)!==t)throw k(t,r),new T.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new T.ERR_BUFFER_OUT_OF_BOUNDS;throw new T.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}let P=/[^+/0-9A-Za-z-_]/g;function R(t,e){let r;e=e||1/0;let n=t.length,i=null,o=[];for(let a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function B(t){return i.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(P,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function j(t,e,r,n){let i;for(i=0;i<n&&!(i+r>=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function F(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function U(t){return t!=t}let z=function(){let t="0123456789abcdef",e=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function q(t){return"undefined"==typeof BigInt?H:t}function H(){throw Error("BigInt not supported")}},538881:function(t,e,r){"use strict";var n=r(619914),i=r(300),o=r(68110),a=r(298715);t.exports=a||n.call(o,i)},300:function(t){"use strict";t.exports=Function.prototype.apply},68110:function(t){"use strict";t.exports=Function.prototype.call},825951:function(t,e,r){"use strict";var n=r(619914),i=r(951637),o=r(68110),a=r(538881);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new i("a function is required");return a(n,o,t)}},298715:function(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},796054:function(t,e,r){"use strict";var n=r(380217),i=r(825951),o=i([n("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&o(t,".prototype.")>-1?i([r]):r}},171505:function(t,e,r){"use strict";r.r(e),r.d(e,{clsx:function(){return n}});function n(){for(var t,e,r=0,n="";r<arguments.length;)(t=arguments[r++])&&(e=function t(e){var r,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e){if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(n=t(e[r]))&&(i&&(i+=" "),i+=n);else for(r in e)e[r]&&(i&&(i+=" "),i+=r)}return i}(t))&&(n&&(n+=" "),n+=e);return n}e.default=n},283966:function(t){"use strict";let e=(t,{target:e=document.body}={})=>{let r=document.createElement("textarea"),n=document.activeElement;r.value=t,r.setAttribute("readonly",""),r.style.contain="strict",r.style.position="absolute",r.style.left="-9999px",r.style.fontSize="12pt";let i=document.getSelection(),o=!1;i.rangeCount>0&&(o=i.getRangeAt(0)),e.append(r),r.select(),r.selectionStart=0,r.selectionEnd=t.length;let a=!1;try{a=document.execCommand("copy")}catch(t){}return r.remove(),o&&(i.removeAllRanges(),i.addRange(o)),n&&n.focus(),a};t.exports=e,t.exports.default=e},626389:function(t,e,r){"use strict";var n=r(26308),i={"text/plain":"Text","text/html":"Url",default:"Text"};t.exports=function(t,e){var r,o,a,s,u,l,c,h,d=!1;!e&&(e={}),a=e.debug||!1;try{if(u=n(),l=document.createRange(),c=document.getSelection(),(h=document.createElement("span")).textContent=t,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(r){if(r.stopPropagation(),e.format){if(r.preventDefault(),void 0===r.clipboardData){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var n=i[e.format]||i.default;window.clipboardData.setData(n,t)}else r.clipboardData.clearData(),r.clipboardData.setData(e.format,t)}e.onCopy&&(r.preventDefault(),e.onCopy(r.clipboardData))}),document.body.appendChild(h),l.selectNodeContents(h),c.addRange(l),!document.execCommand("copy"))throw Error("copy command was unsuccessful");d=!0}catch(n){a&&console.error("unable to copy using execCommand: ",n),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),d=!0}catch(n){;a&&console.error("unable to copy using clipboardData: ",n),a&&console.error("falling back to prompt"),r="message"in e?e.message:"Copy to clipboard: #{key}, Enter",o=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",s=r.replace(/#{\s*key\s*}/g,o),window.prompt(s,t)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(l):c.removeAllRanges()),h&&document.body.removeChild(h),u()}return d}},814785:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var r=Math.abs(t).toString();r.length<e;)r="0"+r;return(t<0?"-":"")+r};t.exports=e.default},272438:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(null==t)throw TypeError("assign requires that input parameter not be null or undefined");for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t};t.exports=e.default},730043:function(t,e,r){"use strict";var n=r(377416).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,i.default)({},t)};var i=n(r(272438));t.exports=e.default},650484:function(t,e,r){"use strict";var n=r(377416).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r(422463)).default;e.default=i,t.exports=e.default},433921:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDefaultOptions=function(){return r},e.setDefaultOptions=function(t){r=t};var r={}},159012:function(t,e,r){"use strict";var n=r(377416).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r(85293)),o=n(r(4287)),a=n(r(162528)),s=n(r(667687)),u=n(r(134325)),l=n(r(814785)),c=n(r(699451)),h={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function d(t,e){var r=t>0?"-":"+",n=Math.abs(t),i=Math.floor(n/60),o=n%60;return 0===o?r+String(i):r+String(i)+(e||"")+(0,l.default)(o,2)}function f(t,e){return t%60==0?(t>0?"-":"+")+(0,l.default)(Math.abs(t)/60,2):p(t,e)}function p(t,e){var r=Math.abs(t);return(t>0?"-":"+")+(0,l.default)(Math.floor(r/60),2)+(e||"")+(0,l.default)(r%60,2)}e.default={G:function(t,e,r){var n=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(t,e,r){if("yo"===e){var n=t.getUTCFullYear();return r.ordinalNumber(n>0?n:1-n,{unit:"year"})}return c.default.y(t,e)},Y:function(t,e,r,n){var i=(0,u.default)(t,n),o=i>0?i:1-i;if("YY"===e){var a=o%100;return(0,l.default)(a,2)}return"Yo"===e?r.ordinalNumber(o,{unit:"year"}):(0,l.default)(o,e.length)},R:function(t,e){var r=(0,a.default)(t);return(0,l.default)(r,e.length)},u:function(t,e){var r=t.getUTCFullYear();return(0,l.default)(r,e.length)},Q:function(t,e,r){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return(0,l.default)(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,r){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return(0,l.default)(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,r){var n=t.getUTCMonth();switch(e){case"M":case"MM":return c.default.M(t,e);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,r){var n=t.getUTCMonth();switch(e){case"L":return String(n+1);case"LL":return(0,l.default)(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,r,n){var i=(0,s.default)(t,n);return"wo"===e?r.ordinalNumber(i,{unit:"week"}):(0,l.default)(i,e.length)},I:function(t,e,r){var n=(0,o.default)(t);return"Io"===e?r.ordinalNumber(n,{unit:"week"}):(0,l.default)(n,e.length)},d:function(t,e,r){return"do"===e?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):c.default.d(t,e)},D:function(t,e,r){var n=(0,i.default)(t);return"Do"===e?r.ordinalNumber(n,{unit:"dayOfYear"}):(0,l.default)(n,e.length)},E:function(t,e,r){var n=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,r,n){var i=t.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return(0,l.default)(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,r,n){var i=t.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return(0,l.default)(o,e.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,r){var n=t.getUTCDay(),i=0===n?7:n;switch(e){case"i":return String(i);case"ii":return(0,l.default)(i,e.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,r){var n,i=t.getUTCHours();switch(n=12===i?h.noon:0===i?h.midnight:i/12>=1?"pm":"am",e){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,r){var n,i=t.getUTCHours();switch(n=i>=17?h.evening:i>=12?h.afternoon:i>=4?h.morning:h.night,e){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,r){if("ho"===e){var n=t.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return c.default.h(t,e)},H:function(t,e,r){return"Ho"===e?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):c.default.H(t,e)},K:function(t,e,r){var n=t.getUTCHours()%12;return"Ko"===e?r.ordinalNumber(n,{unit:"hour"}):(0,l.default)(n,e.length)},k:function(t,e,r){var n=t.getUTCHours();return(0===n&&(n=24),"ko"===e)?r.ordinalNumber(n,{unit:"hour"}):(0,l.default)(n,e.length)},m:function(t,e,r){return"mo"===e?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):c.default.m(t,e)},s:function(t,e,r){return"so"===e?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):c.default.s(t,e)},S:function(t,e){return c.default.S(t,e)},X:function(t,e,r,n){var i=(n._originalDate||t).getTimezoneOffset();if(0===i)return"Z";switch(e){case"X":return f(i);case"XXXX":case"XX":return p(i);default:return p(i,":")}},x:function(t,e,r,n){var i=(n._originalDate||t).getTimezoneOffset();switch(e){case"x":return f(i);case"xxxx":case"xx":return p(i);default:return p(i,":")}},O:function(t,e,r,n){var i=(n._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+d(i,":");default:return"GMT"+p(i,":")}},z:function(t,e,r,n){var i=(n._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+d(i,":");default:return"GMT"+p(i,":")}},t:function(t,e,r,n){var i=Math.floor((n._originalDate||t).getTime()/1e3);return(0,l.default)(i,e.length)},T:function(t,e,r,n){var i=(n._originalDate||t).getTime();return(0,l.default)(i,e.length)}},t.exports=e.default},699451:function(t,e,r){"use strict";var n=r(377416).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r(814785));e.default={y:function(t,e){var r=t.getUTCFullYear(),n=r>0?r:1-r;return(0,i.default)("yy"===e?n%100:n,e.length)},M:function(t,e){var r=t.getUTCMonth();return"M"===e?String(r+1):(0,i.default)(r+1,2)},d:function(t,e){return(0,i.default)(t.getUTCDate(),e.length)},a:function(t,e){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:function(t,e){return(0,i.default)(t.getUTCHours()%12||12,e.length)},H:function(t,e){return(0,i.default)(t.getUTCHours(),e.length)},m:function(t,e){return(0,i.default)(t.getUTCMinutes(),e.length)},s:function(t,e){return(0,i.default)(t.getUTCSeconds(),e.length)},S:function(t,e){var r=e.length,n=Math.floor(t.getUTCMilliseconds()*Math.pow(10,r-3));return(0,i.default)(n,e.length)}},t.exports=e.default},934015:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},n=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}};e.default={p:n,P:function(t,e){var i,o=t.match(/(P+)(p+)?/)||[],a=o[1],s=o[2];if(!s)return r(t,e);switch(a){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"})}return i.replace("{{date}}",r(a,e)).replace("{{time}}",n(s,e))}},t.exports=e.default},236542:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()};t.exports=e.default},85293:function(t,e,r){"use strict";var n=r(377416).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,o.default)(1,arguments);var e=(0,i.default)(t),r=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var n=e.getTime();return Math.floor((r-n)/864e5)+1};var i=n(r(179677)),o=n(r(995938));t.exports=e.default},4287:function(t,e,r){"use strict";var n=r(377416).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,s.default)(1,arguments);var e=(0,i.default)(t);return Math.round(((0,o.default)(e).getTime()-(0,a.default)(e).getTime())/6048e5)+1};var i=n(r(179677)),o=n(r(746611)),a=n(r(751527)),s=n(r(995938));t.exports=e.default},162528:function(t,e,r){"use strict";var n=r(377416).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,o.default)(1,arguments);var e=(0,i.default)(t),r=e.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var s=(0,a.default)(n),u=new Date(0);u.setUTCFullYear(r,0,4),u.setUTCHours(0,0,0,0);var l=(0,a.default)(u);return e.getTime()>=s.getTime()?r+1:e.getTime()>=l.getTime()?r:r-1};var i=n(r(179677)),o=n(r(995938)),a=n(r(746611));t.exports=e.default},667687:function(t,e,r){"use strict";var n=r(377416).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,s.default)(1,arguments);var r=(0,i.default)(t);return Math.round(((0,o.default)(r,e).getTime()-(0,a.default)(r,e).getTime())/6048e5)+1};var i=n(r(179677)),o=n(r(827915)),a=n(r(120361)),s=n(r(995938));t.exports=e.default},134325:function(t,e,r){"use strict";var n=r(377416).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,o.default)(1,arguments);var r,n,l,c,h,d,f,p,g=(0,i.default)(t),y=g.getUTCFullYear(),m=(0,u.getDefaultOptions)(),b=(0,s.default)(null!==(r=null!==(n=null!==(l=null!==(c=null==e?void 0:e.firstWeekContainsDate)&&void 0!==c?c:null==e?void 0:null===(h=e.locale)||void 0===h?void 0:null===(d=h.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==l?l:m.firstWeekContainsDate)&&void 0!==n?n:null===(f=m.locale)||void 0===f?void 0:null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==r?r:1);if(!(b>=1&&b<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var w=new Date(0);w.setUTCFullYear(y+1,0,b),w.setUTCHours(0,0,0,0);var A=(0,a.default)(w,e),D=new Date(0);D.setUTCFullYear(y,0,b),D.setUTCHours(0,0,0,0);var E=(0,a.default)(D,e);return g.getTime()>=A.getTime()?y+1:g.getTime()>=E.getTime()?y:y-1};var i=n(r(179677)),o=n(r(995938)),a=n(r(827915)),s=n(r(956293)),u=r(433921);t.exports=e.default},245414:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isProtectedDayOfYearToken=function(t){return -1!==r.indexOf(t)},e.isProtectedWeekYearToken=function(t){return -1!==n.indexOf(t)},e.throwProtectedError=function(t,e,r){if("YYYY"===t)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));else if("DD"===t)throw RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))};var r=["D","DD"],n=["YY","YYYY"]},995938:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(e.length<t)throw TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")};t.exports=e.default},746611:function(t,e,r){"use strict";var n=r(377416).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,o.default)(1,arguments);var e=(0,i.default)(t),r=e.getUTCDay();return e.setUTCDate(e.getUTCDate()-((r<1?7:0)+r-1)),e.setUTCHours(0,0,0,0),e};var i=n(r(179677)),o=n(r(995938));t.exports=e.default},751527:function(t,e,r){"use strict";var n=r(377416).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,a.default)(1,arguments);var e=(0,i.default)(t),r=new Date(0);return r.setUTCFullYear(e,0,4),r.setUTCHours(0,0,0,0),(0,o.default)(r)};var i=n(r(162528)),o=n(r(746611)),a=n(r(995938));t.exports=e.default},827915:function(t,e,r){"use strict";var n=r(377416).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,o.default)(1,arguments);var r,n,u,l,c,h,d,f,p=(0,s.getDefaultOptions)(),g=(0,a.default)(null!==(r=null!==(n=null!==(u=null!==(l=null==e?void 0:e.weekStartsOn)&&void 0!==l?l:null==e?void 0:null===(c=e.locale)||void 0===c?void 0:null===(h=c.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==u?u:p.weekStartsOn)&&void 0!==n?n:null===(d=p.locale)||void 0===d?void 0:null===(f=d.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==r?r:0);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=(0,i.default)(t),m=y.getUTCDay();return y.setUTCDate(y.getUTCDate()-((m<g?7:0)+m-g)),y.setUTCHours(0,0,0,0),y};var i=n(r(179677)),o=n(r(995938)),a=n(r(956293)),s=r(433921);t.exports=e.default},120361:function(t,e,r){"use strict";var n=r(377416).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,o.default)(1,arguments);var r,n,l,c,h,d,f,p,g=(0,u.getDefaultOptions)(),y=(0,s.default)(null!==(r=null!==(n=null!==(l=null!==(c=null==e?void 0:e.firstWeekContainsDate)&&void 0!==c?c:null==e?void 0:null===(h=e.locale)||void 0===h?void 0:null===(d=h.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==l?l:g.firstWeekContainsDate)&&void 0!==n?n:null===(f=g.locale)||void 0===f?void 0:null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==r?r:1),m=(0,i.default)(t,e),b=new Date(0);return b.setUTCFullYear(m,0,y),b.setUTCHours(0,0,0,0),(0,a.default)(b,e)};var i=n(r(134325)),o=n(r(995938)),a=n(r(827915)),s=n(r(956293)),u=r(433921);t.exports=e.default},956293:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)};t.exports=e.default},962350:function(t,e,r){"use strict";var n=r(377416).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return(0,a.default)(2,arguments),new Date((0,o.default)(t).getTime()+(0,i.default)(e))};var i=n(r(956293)),o=n(r(179677)),a=n(r(995938));t.exports=e.default},779917:function(t,e,r){"use strict";var n=r(158823);e.Z=n.Z},664762:function(t,e,r){"use strict";r.d(e,{j:function(){return i}});var n={};function i(){return n}},770828:function(t,e){"use strict";var r=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},n=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}};e.Z={p:n,P:function(t,e){var i,o=t.match(/(P+)(p+)?/)||[],a=o[1],s=o[2];if(!s)return r(t,e);switch(a){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"})}return i.replace("{{date}}",r(a,e)).replace("{{time}}",n(s,e))}}},590310:function(t,e,r){"use strict";function n(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}r.d(e,{Z:function(){return n}})},436668:function(t,e,r){"use strict";r.d(e,{Z:()=>s});var n=r("881255"),i=r("830160"),o=r("237227"),a=r("247853");function s(t){(0,a.Z)(1,arguments);var e=(0,n.Z)(t);return Math.round(((0,i.Z)(e).getTime()-(function(t){(0,a.Z)(1,arguments);var e=(0,o.Z)(t),r=new Date(0);return r.setUTCFullYear(e,0,4),r.setUTCHours(0,0,0,0),(0,i.Z)(r)})(e).getTime())/6048e5)+1}},237227:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var n=r(881255),i=r(247853),o=r(830160);function a(t){(0,i.Z)(1,arguments);var e=(0,n.Z)(t),r=e.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(r+1,0,4),a.setUTCHours(0,0,0,0);var s=(0,o.Z)(a),u=new Date(0);u.setUTCFullYear(r,0,4),u.setUTCHours(0,0,0,0);var l=(0,o.Z)(u);return e.getTime()>=s.getTime()?r+1:e.getTime()>=l.getTime()?r:r-1}},916447:function(t,e,r){"use strict";r.d(e,{Z:()=>l});var n=r("881255"),i=r("245301"),o=r("340542"),a=r("247853"),s=r("230942"),u=r("664762");function l(t,e){(0,a.Z)(1,arguments);var r=(0,n.Z)(t);return Math.round(((0,i.Z)(r,e).getTime()-(function(t,e){(0,a.Z)(1,arguments);var r,n,l,c,h,d,f,p,g=(0,u.j)(),y=(0,s.Z)(null!==(r=null!==(n=null!==(l=null!==(c=null==e?void 0:e.firstWeekContainsDate)&&void 0!==c?c:null==e?void 0:null===(h=e.locale)||void 0===h?void 0:null===(d=h.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==l?l:g.firstWeekContainsDate)&&void 0!==n?n:null===(f=g.locale)||void 0===f?void 0:null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==r?r:1),m=(0,o.Z)(t,e),b=new Date(0);return b.setUTCFullYear(m,0,y),b.setUTCHours(0,0,0,0),(0,i.Z)(b,e)})(r,e).getTime())/6048e5)+1}},340542:function(t,e,r){"use strict";r.d(e,{Z:function(){return u}});var n=r(881255),i=r(247853),o=r(245301),a=r(230942),s=r(664762);function u(t,e){(0,i.Z)(1,arguments);var r,u,l,c,h,d,f,p,g=(0,n.Z)(t),y=g.getUTCFullYear(),m=(0,s.j)(),b=(0,a.Z)(null!==(r=null!==(u=null!==(l=null!==(c=null==e?void 0:e.firstWeekContainsDate)&&void 0!==c?c:null==e?void 0:null===(h=e.locale)||void 0===h?void 0:null===(d=h.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==l?l:m.firstWeekContainsDate)&&void 0!==u?u:null===(f=m.locale)||void 0===f?void 0:null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==r?r:1);if(!(b>=1&&b<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var w=new Date(0);w.setUTCFullYear(y+1,0,b),w.setUTCHours(0,0,0,0);var A=(0,o.Z)(w,e),D=new Date(0);D.setUTCFullYear(y,0,b),D.setUTCHours(0,0,0,0);var E=(0,o.Z)(D,e);return g.getTime()>=A.getTime()?y+1:g.getTime()>=E.getTime()?y:y-1}},842292:function(t,e,r){"use strict";r.d(e,{Do:function(){return a},Iu:function(){return o},qp:function(){return s}});var n=["D","DD"],i=["YY","YYYY"];function o(t){return -1!==n.indexOf(t)}function a(t){return -1!==i.indexOf(t)}function s(t,e,r){if("YYYY"===t)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));else if("DD"===t)throw RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},247853:function(t,e,r){"use strict";function n(t,e){if(e.length<t)throw TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}r.d(e,{Z:function(){return n}})},830160:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(881255),i=r(247853);function o(t){(0,i.Z)(1,arguments);var e=(0,n.Z)(t),r=e.getUTCDay();return e.setUTCDate(e.getUTCDate()-((r<1?7:0)+r-1)),e.setUTCHours(0,0,0,0),e}},245301:function(t,e,r){"use strict";r.d(e,{Z:function(){return s}});var n=r(881255),i=r(247853),o=r(230942),a=r(664762);function s(t,e){(0,i.Z)(1,arguments);var r,s,u,l,c,h,d,f,p=(0,a.j)(),g=(0,o.Z)(null!==(r=null!==(s=null!==(u=null!==(l=null==e?void 0:e.weekStartsOn)&&void 0!==l?l:null==e?void 0:null===(c=e.locale)||void 0===c?void 0:null===(h=c.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==u?u:p.weekStartsOn)&&void 0!==s?s:null===(d=p.locale)||void 0===d?void 0:null===(f=d.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==r?r:0);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=(0,n.Z)(t),m=y.getUTCDay();return y.setUTCDate(y.getUTCDate()-((m<g?7:0)+m-g)),y.setUTCHours(0,0,0,0),y}},230942:function(t,e,r){"use strict";function n(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}r.d(e,{Z:function(){return n}})},928459:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var n=r(230942),i=r(881255),o=r(247853);function a(t,e){(0,o.Z)(2,arguments);var r=(0,i.Z)(t),a=(0,n.Z)(e);return isNaN(a)?new Date(NaN):a?(r.setDate(r.getDate()+a),r):r}},651897:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var n=r(230942),i=r(392706),o=r(247853);function a(t,e){(0,o.Z)(2,arguments);var r=(0,n.Z)(e);return(0,i.Z)(t,36e5*r)}},392706:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var n=r(230942),i=r(881255),o=r(247853);function a(t,e){return(0,o.Z)(2,arguments),new Date((0,i.Z)(t).getTime()+(0,n.Z)(e))}},156622:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var n=r(230942),i=r(881255),o=r(247853);function a(t,e){(0,o.Z)(2,arguments);var r=(0,i.Z)(t),a=(0,n.Z)(e);if(isNaN(a))return new Date(NaN);if(!a)return r;var s=r.getDate(),u=new Date(r.getTime());return(u.setMonth(r.getMonth()+a+1,0),s>=u.getDate())?u:(r.setFullYear(u.getFullYear(),u.getMonth(),s),r)}},522503:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var n=r(230942),i=r(156622),o=r(247853);function a(t,e){(0,o.Z)(2,arguments);var r=(0,n.Z)(e);return(0,i.Z)(t,12*r)}},469231:function(t,e,r){"use strict";r.d(e,{qk:function(){return o},vh:function(){return i},yJ:function(){return n}});var n=6e4,i=36e5,o=1e3},690936:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var n=r(590310),i=r(839610),o=r(247853);function a(t,e){(0,o.Z)(2,arguments);var r=(0,i.Z)(t),a=(0,i.Z)(e);return Math.round((r.getTime()-(0,n.Z)(r)-(a.getTime()-(0,n.Z)(a)))/864e5)}},316618:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(881255),i=r(247853);function o(t,e){(0,i.Z)(2,arguments);var r=(0,n.Z)(t),o=(0,n.Z)(e);return 12*(r.getFullYear()-o.getFullYear())+(r.getMonth()-o.getMonth())}},720722:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(881255),i=r(247853);function o(t,e){(0,i.Z)(2,arguments);var r=(0,n.Z)(t),o=(0,n.Z)(e);return r.getFullYear()-o.getFullYear()}},419983:function(t,e,r){"use strict";r.d(e,{Z:()=>s});var n=r("469231"),i=r("881255"),o=r("247853"),a={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}};function s(t,e,r){(0,o.Z)(2,arguments);var s,u=function(t,e){return(0,o.Z)(2,arguments),(0,i.Z)(t).getTime()-(0,i.Z)(e).getTime()}(t,e)/n.vh;return((s=null==r?void 0:r.roundingMethod)?a[s]:a.trunc)(u)}},813524:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(881255),i=r(247853);function o(t){(0,i.Z)(1,arguments);var e=(0,n.Z)(t);return e.setHours(23,59,59,999),e}},356:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(881255),i=r(247853);function o(t){(0,i.Z)(1,arguments);var e=(0,n.Z)(t),r=e.getMonth();return e.setFullYear(e.getFullYear(),r+1,0),e.setHours(23,59,59,999),e}},43809:function(t,e,r){"use strict";r.d(e,{Z:function(){return s}});var n=r(664762),i=r(881255),o=r(230942),a=r(247853);function s(t,e){(0,a.Z)(1,arguments);var r,s,u,l,c,h,d,f,p=(0,n.j)(),g=(0,o.Z)(null!==(r=null!==(s=null!==(u=null!==(l=null==e?void 0:e.weekStartsOn)&&void 0!==l?l:null==e?void 0:null===(c=e.locale)||void 0===c?void 0:null===(h=c.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==u?u:p.weekStartsOn)&&void 0!==s?s:null===(d=p.locale)||void 0===d?void 0:null===(f=d.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==r?r:0);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=(0,i.Z)(t),m=y.getDay();return y.setDate(y.getDate()+((m<g?-7:0)+6-(m-g))),y.setHours(23,59,59,999),y}},780866:function(t,e,r){"use strict";r.d(e,{Z:()=>C});var n=r("46639"),i=r("609253"),o=r("881255"),a=r("247853"),s=r("436668"),u=r("237227"),l=r("916447"),c=r("340542");function h(t,e){for(var r=Math.abs(t).toString();r.length<e;)r="0"+r;return(t<0?"-":"")+r}var d={y:function(t,e){var r=t.getUTCFullYear(),n=r>0?r:1-r;return h("yy"===e?n%100:n,e.length)},M:function(t,e){var r=t.getUTCMonth();return"M"===e?String(r+1):h(r+1,2)},d:function(t,e){return h(t.getUTCDate(),e.length)},h:function(t,e){return h(t.getUTCHours()%12||12,e.length)},H:function(t,e){return h(t.getUTCHours(),e.length)},m:function(t,e){return h(t.getUTCMinutes(),e.length)},s:function(t,e){return h(t.getUTCSeconds(),e.length)},S:function(t,e){var r=e.length;return h(Math.floor(t.getUTCMilliseconds()*Math.pow(10,r-3)),e.length)}},f={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function p(t,e){var r=t>0?"-":"+",n=Math.abs(t),i=Math.floor(n/60),o=n%60;return 0===o?r+String(i):r+String(i)+(e||"")+h(o,2)}function g(t,e){return t%60==0?(t>0?"-":"+")+h(Math.abs(t)/60,2):y(t,e)}function y(t,e){var r=Math.abs(t);return(t>0?"-":"+")+h(Math.floor(r/60),2)+(e||"")+h(r%60,2)}var m={G:function(t,e,r){var n=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(t,e,r){if("yo"===e){var n=t.getUTCFullYear();return r.ordinalNumber(n>0?n:1-n,{unit:"year"})}return d.y(t,e)},Y:function(t,e,r,n){var i=(0,c.Z)(t,n),o=i>0?i:1-i;return"YY"===e?h(o%100,2):"Yo"===e?r.ordinalNumber(o,{unit:"year"}):h(o,e.length)},R:function(t,e){return h((0,u.Z)(t),e.length)},u:function(t,e){return h(t.getUTCFullYear(),e.length)},Q:function(t,e,r){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return h(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,r){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return h(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,r){var n=t.getUTCMonth();switch(e){case"M":case"MM":return d.M(t,e);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,r){var n=t.getUTCMonth();switch(e){case"L":return String(n+1);case"LL":return h(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,r,n){var i=(0,l.Z)(t,n);return"wo"===e?r.ordinalNumber(i,{unit:"week"}):h(i,e.length)},I:function(t,e,r){var n=(0,s.Z)(t);return"Io"===e?r.ordinalNumber(n,{unit:"week"}):h(n,e.length)},d:function(t,e,r){return"do"===e?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):d.d(t,e)},D:function(t,e,r){var n=function(t){(0,a.Z)(1,arguments);var e=(0,o.Z)(t),r=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var n=e.getTime();return Math.floor((r-n)/864e5)+1}(t);return"Do"===e?r.ordinalNumber(n,{unit:"dayOfYear"}):h(n,e.length)},E:function(t,e,r){var n=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,r,n){var i=t.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return h(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,r,n){var i=t.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return h(o,e.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,r){var n=t.getUTCDay(),i=0===n?7:n;switch(e){case"i":return String(i);case"ii":return h(i,e.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,r){var n,i=t.getUTCHours();switch(n=12===i?f.noon:0===i?f.midnight:i/12>=1?"pm":"am",e){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,r){var n,i=t.getUTCHours();switch(n=i>=17?f.evening:i>=12?f.afternoon:i>=4?f.morning:f.night,e){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,r){if("ho"===e){var n=t.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return d.h(t,e)},H:function(t,e,r){return"Ho"===e?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):d.H(t,e)},K:function(t,e,r){var n=t.getUTCHours()%12;return"Ko"===e?r.ordinalNumber(n,{unit:"hour"}):h(n,e.length)},k:function(t,e,r){var n=t.getUTCHours();return(0===n&&(n=24),"ko"===e)?r.ordinalNumber(n,{unit:"hour"}):h(n,e.length)},m:function(t,e,r){return"mo"===e?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):d.m(t,e)},s:function(t,e,r){return"so"===e?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):d.s(t,e)},S:function(t,e){return d.S(t,e)},X:function(t,e,r,n){var i=(n._originalDate||t).getTimezoneOffset();if(0===i)return"Z";switch(e){case"X":return g(i);case"XXXX":case"XX":return y(i);default:return y(i,":")}},x:function(t,e,r,n){var i=(n._originalDate||t).getTimezoneOffset();switch(e){case"x":return g(i);case"xxxx":case"xx":return y(i);default:return y(i,":")}},O:function(t,e,r,n){var i=(n._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+p(i,":");default:return"GMT"+y(i,":")}},z:function(t,e,r,n){var i=(n._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+p(i,":");default:return"GMT"+y(i,":")}},t:function(t,e,r,n){return h(Math.floor((n._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,r,n){return h((n._originalDate||t).getTime(),e.length)}},b=r("770828"),w=r("590310"),A=r("842292"),D=r("230942"),E=r("664762"),x=r("779917"),S=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,M=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_=/^'([^]*?)'?$/,N=/''/g,T=/[a-zA-Z]/;function C(t,e,r){(0,a.Z)(2,arguments);var s,u,l,c,h,d,f,p,g,y,C,I,O,k,L,P,R,B,j=String(e),F=(0,E.j)(),U=null!==(s=null!==(u=null==r?void 0:r.locale)&&void 0!==u?u:F.locale)&&void 0!==s?s:x.Z,z=(0,D.Z)(null!==(l=null!==(c=null!==(h=null!==(d=null==r?void 0:r.firstWeekContainsDate)&&void 0!==d?d:null==r?void 0:null===(f=r.locale)||void 0===f?void 0:null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==h?h:F.firstWeekContainsDate)&&void 0!==c?c:null===(g=F.locale)||void 0===g?void 0:null===(y=g.options)||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==l?l:1);if(!(z>=1&&z<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var q=(0,D.Z)(null!==(C=null!==(I=null!==(O=null!==(k=null==r?void 0:r.weekStartsOn)&&void 0!==k?k:null==r?void 0:null===(L=r.locale)||void 0===L?void 0:null===(P=L.options)||void 0===P?void 0:P.weekStartsOn)&&void 0!==O?O:F.weekStartsOn)&&void 0!==I?I:null===(R=F.locale)||void 0===R?void 0:null===(B=R.options)||void 0===B?void 0:B.weekStartsOn)&&void 0!==C?C:0);if(!(q>=0&&q<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!U.localize)throw RangeError("locale must contain localize property");if(!U.formatLong)throw RangeError("locale must contain formatLong property");var H=(0,o.Z)(t);if(!(0,n.Z)(H))throw RangeError("Invalid time value");var V=(0,w.Z)(H),Z=(0,i.Z)(H,V),G={firstWeekContainsDate:z,weekStartsOn:q,locale:U,_originalDate:H};return j.match(M).map(function(t){var e=t[0];return"p"===e||"P"===e?(0,b.Z[e])(t,U.formatLong):t}).join("").match(S).map(function(n){if("''"===n)return"'";var i=n[0];if("'"===i)return function(t){var e=t.match(_);return e?e[1].replace(N,"'"):t}(n);var o=m[i];if(o)return!(null!=r&&r.useAdditionalWeekYearTokens)&&(0,A.Do)(n)&&(0,A.qp)(n,e,String(t)),!(null!=r&&r.useAdditionalDayOfYearTokens)&&(0,A.Iu)(n)&&(0,A.qp)(n,e,String(t)),o(Z,n,U.localize,G);if(i.match(T))throw RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return n}).join("")}},383341:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(881255),i=r(247853);function o(t){(0,i.Z)(1,arguments);var e=(0,n.Z)(t),r=e.getFullYear(),o=e.getMonth(),a=new Date(0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}},343965:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(881255),i=r(247853);function o(t){return(0,i.Z)(1,arguments),(0,n.Z)(t).getHours()}},990835:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(881255),i=r(247853);function o(t){return(0,i.Z)(1,arguments),(0,n.Z)(t).getMinutes()}},267767:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(881255),i=r(247853);function o(t){return(0,i.Z)(1,arguments),(0,n.Z)(t).getSeconds()}},805641:function(t,e,r){"use strict";r.d(e,{Z:()=>u});var n=r("664762"),i=r("881255"),o=r("247853"),a=r("923198"),s=r("230942");function u(t,e){(0,o.Z)(1,arguments);var r,u,l,c,h,d,f,p,g=(0,n.j)(),y=(0,s.Z)(null!==(r=null!==(u=null!==(l=null!==(c=null==e?void 0:e.weekStartsOn)&&void 0!==c?c:null==e?void 0:null===(h=e.locale)||void 0===h?void 0:null===(d=h.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==l?l:g.weekStartsOn)&&void 0!==u?u:null===(f=g.locale)||void 0===f?void 0:null===(p=f.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==r?r:0);if(!(y>=0&&y<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=function(t){return(0,o.Z)(1,arguments),(0,i.Z)(t).getDate()}(t);if(isNaN(m))return NaN;var b=y-function(t){return(0,o.Z)(1,arguments),(0,i.Z)(t).getDay()}((0,a.Z)(t));return b<=0&&(b+=7),Math.ceil((m-b)/7)+1}},172756:function(t,e,r){"use strict";r.d(e,{Z:()=>u});var n=r("214424"),i=r("590310"),o=r("247853"),a=r("641392"),s=r("923198");function u(t,e){return(0,o.Z)(1,arguments),function(t,e,r){(0,o.Z)(2,arguments);var a=(0,n.Z)(t,r),s=(0,n.Z)(e,r);return Math.round((a.getTime()-(0,i.Z)(a)-(s.getTime()-(0,i.Z)(s)))/6048e5)}((0,a.Z)(t),(0,s.Z)(t),e)+1}},74166:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(881255),i=r(247853);function o(t,e){(0,i.Z)(2,arguments);var r=(0,n.Z)(t),o=(0,n.Z)(e);return r.getTime()>o.getTime()}},30870:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(881255),i=r(247853);function o(t,e){(0,i.Z)(2,arguments);var r=(0,n.Z)(t),o=(0,n.Z)(e);return r.getTime()<o.getTime()}},276056:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(980581),i=r(247853);function o(t){return(0,i.Z)(1,arguments),t instanceof Date||"object"===(0,n.Z)(t)&&"[object Date]"===Object.prototype.toString.call(t)}},257279:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(881255),i=r(247853);function o(t,e){(0,i.Z)(2,arguments);var r=(0,n.Z)(t),o=(0,n.Z)(e);return r.getTime()===o.getTime()}},302861:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(839610),i=r(247853);function o(t,e){(0,i.Z)(2,arguments);var r=(0,n.Z)(t),o=(0,n.Z)(e);return r.getTime()===o.getTime()}},194128:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(881255),i=r(247853);function o(t,e){(0,i.Z)(2,arguments);var r=(0,n.Z)(t),o=(0,n.Z)(e);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}},955478:function(t,e,r){"use strict";r.d(e,{Z:()=>a});var n=r("881255"),i=r("247853");function o(t){(0,i.Z)(1,arguments);var e=(0,n.Z)(t);return e.setMilliseconds(0),e}function a(t,e){(0,i.Z)(2,arguments);var r=o(t),n=o(e);return r.getTime()===n.getTime()}},774235:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(214424),i=r(247853);function o(t,e,r){(0,i.Z)(2,arguments);var o=(0,n.Z)(t,r),a=(0,n.Z)(e,r);return o.getTime()===a.getTime()}},46639:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var n=r(276056),i=r(881255),o=r(247853);function a(t){return(0,o.Z)(1,arguments),(!!(0,n.Z)(t)||"number"==typeof t)&&!isNaN(Number((0,i.Z)(t)))}},33713:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(881255),i=r(247853);function o(t){(0,i.Z)(1,arguments);var e=(0,n.Z)(t).getDay();return 0===e||6===e}},499304:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(881255),i=r(247853);function o(t,e){(0,i.Z)(2,arguments);var r=(0,n.Z)(t).getTime(),o=(0,n.Z)(e.start).getTime(),a=(0,n.Z)(e.end).getTime();if(!(o<=a))throw RangeError("Invalid interval");return r>=o&&r<=a}},641392:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(881255),i=r(247853);function o(t){(0,i.Z)(1,arguments);var e=(0,n.Z)(t),r=e.getMonth();return e.setFullYear(e.getFullYear(),r+1,0),e.setHours(0,0,0,0),e}},412901:function(t,e,r){"use strict";function n(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}r.d(e,{Z:function(){return n}})},232273:function(t,e,r){"use strict";function n(t){return function(e,r){var n;if("formatting"===(null!=r&&r.context?String(r.context):"standalone")&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,o=null!=r&&r.width?String(r.width):i;n=t.formattingValues[o]||t.formattingValues[i]}else{var a=t.defaultWidth,s=null!=r&&r.width?String(r.width):t.defaultWidth;n=t.values[s]||t.values[a]}return n[t.argumentCallback?t.argumentCallback(e):e]}}r.d(e,{Z:function(){return n}})},877564:function(t,e,r){"use strict";function n(t){return function(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,o=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],a=e.match(o);if(!a)return null;var s=a[0],u=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(u)?function(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return r}(u,function(t){return t.test(s)}):function(t,e){for(var r in t)if(t.hasOwnProperty(r)&&e(t[r]))return r}(u,function(t){return t.test(s)});return r=t.valueCallback?t.valueCallback(l):l,{value:r=n.valueCallback?n.valueCallback(r):r,rest:e.slice(s.length)}}}r.d(e,{Z:function(){return n}})},659785:function(t,e,r){"use strict";function n(t){return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(t.matchPattern);if(!n)return null;var i=n[0],o=e.match(t.parsePattern);if(!o)return null;var a=t.valueCallback?t.valueCallback(o[0]):o[0];return{value:a=r.valueCallback?r.valueCallback(a):a,rest:e.slice(i.length)}}}r.d(e,{Z:function(){return n}})},158823:function(t,e,r){"use strict";r.d(e,{Z:()=>d});var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},i=r("412901"),o={date:(0,i.Z)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,i.Z)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,i.Z)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},s=r("232273"),u={ordinalNumber:function(t,e){var r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:(0,s.Z)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,s.Z)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:(0,s.Z)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,s.Z)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,s.Z)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},l=r("877564"),c=r("659785"),h={ordinalNumber:(0,c.Z)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:(0,l.Z)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,l.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:(0,l.Z)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,l.Z)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,l.Z)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},d={code:"en-US",formatDistance:function(t,e,r){var i,o=n[t];if(i="string"==typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),null!=r&&r.addSuffix)return r.comparison&&r.comparison>0?"in "+i:i+" ago";return i},formatLong:o,formatRelative:function(t,e,r,n){return a[t]},localize:u,match:h,options:{weekStartsOn:0,firstWeekContainsDate:1}}},450250:function(t,e,r){"use strict";r.d(e,{Z:()=>g});var n={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},i=r("412901"),o={date:(0,i.Z)({formats:{full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:(0,i.Z)({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:(0,i.Z)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},a=r("247853"),s=r("245301");function u(t,e,r){var n="eeee p";return function(t,e,r){(0,a.Z)(2,arguments);var n=(0,s.Z)(t,r),i=(0,s.Z)(e,r);return n.getTime()===i.getTime()}(t,e,r)?n:t.getTime()>e.getTime()?"'下个'"+n:"'上个'"+n}var l={lastWeek:u,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:u,other:"PP p"},c=r("232273"),h={ordinalNumber:function(t,e){var r=Number(t);switch(null==e?void 0:e.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},era:(0,c.Z)({values:{narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},defaultWidth:"wide"}),quarter:(0,c.Z)({values:{narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:(0,c.Z)({values:{narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},defaultWidth:"wide"}),day:(0,c.Z)({values:{narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},defaultWidth:"wide"}),dayPeriod:(0,c.Z)({values:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultWidth:"wide",formattingValues:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultFormattingWidth:"wide"})},d=r("877564"),f=r("659785"),p={ordinalNumber:(0,f.Z)({matchPattern:/^(第\s*)?\d+(日|时|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:(0,d.Z)({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:"any"}),quarter:(0,d.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:(0,d.Z)({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:"any"}),day:(0,d.Z)({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:"any"}),dayPeriod:(0,d.Z)({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:"any"})},g={code:"zh-CN",formatDistance:function(t,e,r){var i,o=n[t];if(i="string"==typeof o?o:1===e?o.one:o.other.replace("{{count}}",String(e)),null!=r&&r.addSuffix)return r.comparison&&r.comparison>0?i+"内":i+"前";return i},formatLong:o,formatRelative:function(t,e,r,n){var i=l[t];return"function"==typeof i?i(e,r,n):i},localize:h,match:p,options:{weekStartsOn:1,firstWeekContainsDate:4}}},828619:function(t,e,r){"use strict";r.d(e,{Z:()=>tT});var n=r("980581"),i=r("10457"),o=r("779917"),a=r("609253"),s=r("881255"),u=r("770828"),l=r("590310"),c=r("842292"),h=r("230942"),d=r("247853"),f=r("187625"),p=r("780396"),g=r("111153"),y=r("266755"),m=r("781502"),b=r("582288"),w=function(){function t(){(0,y.Z)(this,t),(0,b.Z)(this,"priority",void 0),(0,b.Z)(this,"subPriority",0)}return(0,m.Z)(t,[{key:"validate",value:function(t,e){return!0}}]),t}(),A=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(t,n,i,o,a){var s;return(0,y.Z)(this,r),(s=e.call(this)).value=t,s.validateValue=n,s.setValue=i,s.priority=o,a&&(s.subPriority=a),s}return(0,m.Z)(r,[{key:"validate",value:function(t,e){return this.validateValue(t,this.value,e)}},{key:"set",value:function(t,e,r){return this.setValue(t,e,this.value,r)}}]),r}(w),D=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",10),(0,b.Z)((0,f.Z)(t),"subPriority",-1),t}return(0,m.Z)(r,[{key:"set",value:function(t,e){if(e.timestampIsSet)return t;var r=new Date(0);return r.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),r.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),r}}]),r}(w),E=function(){function t(){(0,y.Z)(this,t),(0,b.Z)(this,"incompatibleTokens",void 0),(0,b.Z)(this,"priority",void 0),(0,b.Z)(this,"subPriority",void 0)}return(0,m.Z)(t,[{key:"run",value:function(t,e,r,n){var i=this.parse(t,e,r,n);return i?{setter:new A(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:"validate",value:function(t,e,r){return!0}}]),t}(),x=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",140),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["R","u","t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}},{key:"set",value:function(t,e,r){return e.era=r,t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t}}]),r}(E),S=r("469231"),M={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},_={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function N(t,e){return t?{value:e(t.value),rest:t.rest}:t}function T(t,e){var r=e.match(t);return r?{value:parseInt(r[0],10),rest:e.slice(r[0].length)}:null}function C(t,e){var r=e.match(t);if(!r)return null;if("Z"===r[0])return{value:0,rest:e.slice(1)};var n="+"===r[1]?1:-1,i=r[2]?parseInt(r[2],10):0,o=r[3]?parseInt(r[3],10):0,a=r[5]?parseInt(r[5],10):0;return{value:n*(i*S.vh+o*S.yJ+a*S.qk),rest:e.slice(r[0].length)}}function I(t){return T(M.anyDigitsSigned,t)}function O(t,e){switch(t){case 1:return T(M.singleDigit,e);case 2:return T(M.twoDigits,e);case 3:return T(M.threeDigits,e);case 4:return T(M.fourDigits,e);default:return T(RegExp("^\\d{1,"+t+"}"),e)}}function k(t,e){switch(t){case 1:return T(M.singleDigitSigned,e);case 2:return T(M.twoDigitsSigned,e);case 3:return T(M.threeDigitsSigned,e);case 4:return T(M.fourDigitsSigned,e);default:return T(RegExp("^-?\\d{1,"+t+"}"),e)}}function L(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function P(t,e){var r,n=e>0,i=n?e:1-e;if(i<=50)r=t||100;else{var o=i+50,a=100*Math.floor(o/100);r=t+a-(t>=o%100?100:0)}return n?r:1-r}function R(t){return t%400==0||t%4==0&&t%100!=0}var B=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",130),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e,r){var n=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return N(O(4,t),n);case"yo":return N(r.ordinalNumber(t,{unit:"year"}),n);default:return N(O(e.length,t),n)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,r){var n=t.getUTCFullYear();if(r.isTwoDigitYear){var i=P(r.year,n);return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}var o="era"in e&&1!==e.era?1-r.year:r.year;return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t}}]),r}(E),j=r("340542"),F=r("245301"),U=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",130),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e,r){var n=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return N(O(4,t),n);case"Yo":return N(r.ordinalNumber(t,{unit:"year"}),n);default:return N(O(e.length,t),n)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,r,n){var i=(0,j.Z)(t,n);if(r.isTwoDigitYear){var o=P(r.year,i);return t.setUTCFullYear(o,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),(0,F.Z)(t,n)}var a="era"in e&&1!==e.era?1-r.year:r.year;return t.setUTCFullYear(a,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),(0,F.Z)(t,n)}}]),r}(E),z=r("830160"),q=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",130),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e){return"R"===e?k(4,t):k(e.length,t)}},{key:"set",value:function(t,e,r){var n=new Date(0);return n.setUTCFullYear(r,0,4),n.setUTCHours(0,0,0,0),(0,z.Z)(n)}}]),r}(E),H=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",130),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e){return"u"===e?k(4,t):k(e.length,t)}},{key:"set",value:function(t,e,r){return t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t}}]),r}(E),V=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",120),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"Q":case"QQ":return O(e.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,r){return t.setUTCMonth((r-1)*3,1),t.setUTCHours(0,0,0,0),t}}]),r}(E),Z=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",120),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"q":case"qq":return O(e.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,r){return t.setUTCMonth((r-1)*3,1),t.setUTCHours(0,0,0,0),t}}]),r}(E),G=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),(0,b.Z)((0,f.Z)(t),"priority",110),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e,r){var n=function(t){return t-1};switch(e){case"M":return N(T(M.month,t),n);case"MM":return N(O(2,t),n);case"Mo":return N(r.ordinalNumber(t,{unit:"month"}),n);case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,r){return t.setUTCMonth(r,1),t.setUTCHours(0,0,0,0),t}}]),r}(E),W=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",110),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e,r){var n=function(t){return t-1};switch(e){case"L":return N(T(M.month,t),n);case"LL":return N(O(2,t),n);case"Lo":return N(r.ordinalNumber(t,{unit:"month"}),n);case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,r){return t.setUTCMonth(r,1),t.setUTCHours(0,0,0,0),t}}]),r}(E),Y=r("916447"),$=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",100),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"w":return T(M.week,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return O(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,r,n){return(0,F.Z)(function(t,e,r){(0,d.Z)(2,arguments);var n=(0,s.Z)(t),i=(0,h.Z)(e),o=(0,Y.Z)(n,r)-i;return n.setUTCDate(n.getUTCDate()-7*o),n}(t,r,n),n)}}]),r}(E),Q=r("436668"),J=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",100),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"I":return T(M.week,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return O(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,r){return(0,z.Z)(function(t,e){(0,d.Z)(2,arguments);var r=(0,s.Z)(t),n=(0,h.Z)(e),i=(0,Q.Z)(r)-n;return r.setUTCDate(r.getUTCDate()-7*i),r}(t,r))}}]),r}(E),X=[31,28,31,30,31,30,31,31,30,31,30,31],K=[31,29,31,30,31,30,31,31,30,31,30,31],tt=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",90),(0,b.Z)((0,f.Z)(t),"subPriority",1),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"d":return T(M.date,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return O(e.length,t)}}},{key:"validate",value:function(t,e){var r=R(t.getUTCFullYear()),n=t.getUTCMonth();return r?e>=1&&e<=K[n]:e>=1&&e<=X[n]}},{key:"set",value:function(t,e,r){return t.setUTCDate(r),t.setUTCHours(0,0,0,0),t}}]),r}(E),te=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",90),(0,b.Z)((0,f.Z)(t),"subpriority",1),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"D":case"DD":return T(M.dayOfYear,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return O(e.length,t)}}},{key:"validate",value:function(t,e){return R(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365}},{key:"set",value:function(t,e,r){return t.setUTCMonth(0,r),t.setUTCHours(0,0,0,0),t}}]),r}(E),tr=r("664762");function tn(t,e,r){(0,d.Z)(2,arguments);var n,i,o,a,u,l,c,f,p=(0,tr.j)(),g=(0,h.Z)(null!==(n=null!==(i=null!==(o=null!==(a=null==r?void 0:r.weekStartsOn)&&void 0!==a?a:null==r?void 0:null===(u=r.locale)||void 0===u?void 0:null===(l=u.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:p.weekStartsOn)&&void 0!==i?i:null===(c=p.locale)||void 0===c?void 0:null===(f=c.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==n?n:0);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=(0,s.Z)(t),m=(0,h.Z)(e),b=y.getUTCDay();return y.setUTCDate(y.getUTCDate()+(((m%7+7)%7<g?7:0)+m-b)),y}var ti=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",90),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["D","i","e","c","t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,r,n){return(t=tn(t,r,n)).setUTCHours(0,0,0,0),t}}]),r}(E),to=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",90),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e,r,n){var i=function(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return N(O(e.length,t),i);case"eo":return N(r.ordinalNumber(t,{unit:"day"}),i);case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,r,n){return(t=tn(t,r,n)).setUTCHours(0,0,0,0),t}}]),r}(E),ta=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",90),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e,r,n){var i=function(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return N(O(e.length,t),i);case"co":return N(r.ordinalNumber(t,{unit:"day"}),i);case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,r,n){return(t=tn(t,r,n)).setUTCHours(0,0,0,0),t}}]),r}(E),ts=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",90),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e,r){var n=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return O(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return N(r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n);case"iiiii":return N(r.day(t,{width:"narrow",context:"formatting"}),n);case"iiiiii":return N(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n);default:return N(r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n)}}},{key:"validate",value:function(t,e){return e>=1&&e<=7}},{key:"set",value:function(t,e,r){return(t=function(t,e){(0,d.Z)(2,arguments);var r=(0,h.Z)(e);r%7==0&&(r-=7);var n=(0,s.Z)(t),i=n.getUTCDay(),o=r%7,a=((o+7)%7<1?7:0)+r-i;return n.setUTCDate(n.getUTCDate()+a),n}(t,r)).setUTCHours(0,0,0,0),t}}]),r}(E),tu=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",80),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["b","B","H","k","t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,r){return t.setUTCHours(L(r),0,0,0),t}}]),r}(E),tl=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",80),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["a","B","H","k","t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,r){return t.setUTCHours(L(r),0,0,0),t}}]),r}(E),tc=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",80),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["a","b","t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,r){return t.setUTCHours(L(r),0,0,0),t}}]),r}(E),th=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",70),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["H","K","k","t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"h":return T(M.hour12h,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return O(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=12}},{key:"set",value:function(t,e,r){var n=t.getUTCHours()>=12;return n&&r<12?t.setUTCHours(r+12,0,0,0):n||12!==r?t.setUTCHours(r,0,0,0):t.setUTCHours(0,0,0,0),t}}]),r}(E),td=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",70),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["a","b","h","K","k","t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"H":return T(M.hour23h,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return O(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=23}},{key:"set",value:function(t,e,r){return t.setUTCHours(r,0,0,0),t}}]),r}(E),tf=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",70),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["h","H","k","t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"K":return T(M.hour11h,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return O(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,r){return t.getUTCHours()>=12&&r<12?t.setUTCHours(r+12,0,0,0):t.setUTCHours(r,0,0,0),t}}]),r}(E),tp=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",70),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["a","b","h","H","K","t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"k":return T(M.hour24h,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return O(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=24}},{key:"set",value:function(t,e,r){return t.setUTCHours(r<=24?r%24:r,0,0,0),t}}]),r}(E),tg=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",60),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"m":return T(M.minute,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return O(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,r){return t.setUTCMinutes(r,0,0),t}}]),r}(E),ty=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",50),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e,r){switch(e){case"s":return T(M.second,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return O(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,r){return t.setUTCSeconds(r,0),t}}]),r}(E),tm=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",30),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["t","T"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e){return N(O(e.length,t),function(t){return Math.floor(t*Math.pow(10,-e.length+3))})}},{key:"set",value:function(t,e,r){return t.setUTCMilliseconds(r),t}}]),r}(E),tv=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",10),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["t","T","x"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e){switch(e){case"X":return C(_.basicOptionalMinutes,t);case"XX":return C(_.basic,t);case"XXXX":return C(_.basicOptionalSeconds,t);case"XXXXX":return C(_.extendedOptionalSeconds,t);default:return C(_.extended,t)}}},{key:"set",value:function(t,e,r){return e.timestampIsSet?t:new Date(t.getTime()-r)}}]),r}(E),tb=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",10),(0,b.Z)((0,f.Z)(t),"incompatibleTokens",["t","T","X"]),t}return(0,m.Z)(r,[{key:"parse",value:function(t,e){switch(e){case"x":return C(_.basicOptionalMinutes,t);case"xx":return C(_.basic,t);case"xxxx":return C(_.basicOptionalSeconds,t);case"xxxxx":return C(_.extendedOptionalSeconds,t);default:return C(_.extended,t)}}},{key:"set",value:function(t,e,r){return e.timestampIsSet?t:new Date(t.getTime()-r)}}]),r}(E),tw=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",40),(0,b.Z)((0,f.Z)(t),"incompatibleTokens","*"),t}return(0,m.Z)(r,[{key:"parse",value:function(t){return I(t)}},{key:"set",value:function(t,e,r){return[new Date(1e3*r),{timestampIsSet:!0}]}}]),r}(E),tA=function(t){(0,p.Z)(r,t);var e=(0,g.Z)(r);function r(){var t;(0,y.Z)(this,r);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,b.Z)((0,f.Z)(t),"priority",20),(0,b.Z)((0,f.Z)(t),"incompatibleTokens","*"),t}return(0,m.Z)(r,[{key:"parse",value:function(t){return I(t)}},{key:"set",value:function(t,e,r){return[new Date(r),{timestampIsSet:!0}]}}]),r}(E),tD={G:new x,y:new B,Y:new U,R:new q,u:new H,Q:new V,q:new Z,M:new G,L:new W,w:new $,I:new J,d:new tt,D:new te,E:new ti,e:new to,c:new ta,i:new ts,a:new tu,b:new tl,B:new tc,h:new th,H:new td,K:new tf,k:new tp,m:new tg,s:new ty,S:new tm,X:new tv,x:new tb,t:new tw,T:new tA},tE=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,tx=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tS=/^'([^]*?)'?$/,tM=/''/g,t_=/\S/,tN=/[a-zA-Z]/;function tT(t,e,r,f){(0,d.Z)(3,arguments);var p=String(t),g=String(e),y=(0,tr.j)(),m=null!==(M=null!==(_=null==f?void 0:f.locale)&&void 0!==_?_:y.locale)&&void 0!==M?M:o.Z;if(!m.match)throw RangeError("locale must contain match property");var b=(0,h.Z)(null!==(N=null!==(T=null!==(C=null!==(I=null==f?void 0:f.firstWeekContainsDate)&&void 0!==I?I:null==f?void 0:null===(O=f.locale)||void 0===O?void 0:null===(k=O.options)||void 0===k?void 0:k.firstWeekContainsDate)&&void 0!==C?C:y.firstWeekContainsDate)&&void 0!==T?T:null===(L=y.locale)||void 0===L?void 0:null===(P=L.options)||void 0===P?void 0:P.firstWeekContainsDate)&&void 0!==N?N:1);if(!(b>=1&&b<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var w=(0,h.Z)(null!==(R=null!==(B=null!==(j=null!==(F=null==f?void 0:f.weekStartsOn)&&void 0!==F?F:null==f?void 0:null===(U=f.locale)||void 0===U?void 0:null===(z=U.options)||void 0===z?void 0:z.weekStartsOn)&&void 0!==j?j:y.weekStartsOn)&&void 0!==B?B:null===(q=y.locale)||void 0===q?void 0:null===(H=q.options)||void 0===H?void 0:H.weekStartsOn)&&void 0!==R?R:0);if(!(w>=0&&w<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===g)return""===p?(0,s.Z)(r):new Date(NaN);var A={firstWeekContainsDate:b,weekStartsOn:w,locale:m},E=[new D],x=g.match(tx).map(function(t){var e=t[0];return e in u.Z?(0,u.Z[e])(t,m.formatLong):t}).join("").match(tE),S=[],M,_,N,T,C,I,O,k,L,P,R,B,j,F,U,z,q,H,V,Z=(0,i.Z)(x);try{for(Z.s();!(V=Z.n()).done;){var G=function(){var e=V.value;!(null!=f&&f.useAdditionalWeekYearTokens)&&(0,c.Do)(e)&&(0,c.qp)(e,g,t),!(null!=f&&f.useAdditionalDayOfYearTokens)&&(0,c.Iu)(e)&&(0,c.qp)(e,g,t);var r=e[0],n=tD[r];if(n){var i=n.incompatibleTokens;if(Array.isArray(i)){var o=S.find(function(t){return i.includes(t.token)||t.token===r});if(o)throw RangeError("The format string mustn't contain `".concat(o.fullToken,"` and `").concat(e,"` at the same time"))}else if("*"===n.incompatibleTokens&&S.length>0)throw RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));S.push({token:r,fullToken:e});var a=n.run(p,e,m.match,A);if(!a)return{v:new Date(NaN)};E.push(a.setter),p=a.rest}else{if(r.match(tN))throw RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");if("''"===e?e="'":"'"===r&&(e=function(t){return t.match(tS)[1].replace(tM,"'")}(e)),0!==p.indexOf(e))return{v:new Date(NaN)};p=p.slice(e.length)}}();if("object"===(0,n.Z)(G))return G.v}}catch(t){Z.e(t)}finally{Z.f()}if(p.length>0&&t_.test(p))return new Date(NaN);var W=E.map(function(t){return t.priority}).sort(function(t,e){return e-t}).filter(function(t,e,r){return r.indexOf(t)===e}).map(function(t){return E.filter(function(e){return e.priority===t}).sort(function(t,e){return e.subPriority-t.subPriority})}).map(function(t){return t[0]}),Y=(0,s.Z)(r);if(isNaN(Y.getTime()))return new Date(NaN);var $=(0,a.Z)(Y,(0,l.Z)(Y)),Q={},J,X=(0,i.Z)(W);try{for(X.s();!(J=X.n()).done;){var K=J.value;if(!K.validate($,A))return new Date(NaN);var tt=K.set($,Q,A);Array.isArray(tt)?($=tt[0],!function(t,e){if(null==t)throw TypeError("assign requires that input parameter not be null or undefined");for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}(Q,tt[1])):$=tt}}catch(t){X.e(t)}finally{X.f()}return $}},607221:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var n=r(469231),i=r(247853),o=r(230942);function a(t,e){(0,i.Z)(1,arguments);var r,a,g,y=(0,o.Z)(null!==(r=null==e?void 0:e.additionalDigits)&&void 0!==r?r:2);if(2!==y&&1!==y&&0!==y)throw RangeError("additionalDigits must be 0, 1 or 2");if(!("string"==typeof t||"[object String]"===Object.prototype.toString.call(t)))return new Date(NaN);var m=function(t){var e,r={},n=t.split(s.dateTimeDelimiter);if(n.length>2)return r;if(/:/.test(n[0])?e=n[0]:(r.date=n[0],e=n[1],s.timeZoneDelimiter.test(r.date)&&(r.date=t.split(s.timeZoneDelimiter)[0],e=t.substr(r.date.length,t.length))),e){var i=s.timezone.exec(e);i?(r.time=e.replace(i[1],""),r.timezone=i[1]):r.time=e}return r}(t);if(m.date){var b=function(t,e){var r=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=t.match(r);if(!n)return{year:NaN,restDateString:""};var i=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:null===o?i:100*o,restDateString:t.slice((n[1]||n[2]).length)}}(m.date,y);a=function(t,e){if(null===e)return new Date(NaN);var r=t.match(u);if(!r)return new Date(NaN);var n=!!r[4],i=h(r[1]),o=h(r[2])-1,a=h(r[3]),s=h(r[4]),l=h(r[5])-1;if(n)return!function(t,e,r){return e>=1&&e<=53&&r>=0&&r<=6}(e,s,l)?new Date(NaN):function(t,e,r){var n=new Date(0);n.setUTCFullYear(t,0,4);var i=n.getUTCDay()||7;return n.setUTCDate(n.getUTCDate()+((e-1)*7+r+1-i)),n}(e,s,l);var c=new Date(0);return!function(t,e,r){return e>=0&&e<=11&&r>=1&&r<=(f[e]||(p(t)?29:28))}(e,o,a)||!function(t,e){return e>=1&&e<=(p(t)?366:365)}(e,i)?new Date(NaN):(c.setUTCFullYear(e,o,Math.max(i,a)),c)}(b.restDateString,b.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var w=a.getTime(),A=0;if(m.time&&isNaN(A=function(t){var e=t.match(l);if(!e)return NaN;var r=d(e[1]),i=d(e[2]),o=d(e[3]);return!function(t,e,r){return 24===t?0===e&&0===r:r>=0&&r<60&&e>=0&&e<60&&t>=0&&t<25}(r,i,o)?NaN:r*n.vh+i*n.yJ+1e3*o}(m.time)))return new Date(NaN);if(m.timezone){if(isNaN(g=function(t){if("Z"===t)return 0;var e=t.match(c);if(!e)return 0;var r="+"===e[1]?-1:1,i=parseInt(e[2]),o=e[3]&&parseInt(e[3])||0;return!function(t,e){return e>=0&&e<=59}(i,o)?NaN:r*(i*n.vh+o*n.yJ)}(m.timezone)))return new Date(NaN)}else{var D=new Date(w+A),E=new Date(0);return E.setFullYear(D.getUTCFullYear(),D.getUTCMonth(),D.getUTCDate()),E.setHours(D.getUTCHours(),D.getUTCMinutes(),D.getUTCSeconds(),D.getUTCMilliseconds()),E}return new Date(w+A+g)}var s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},u=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,l=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,c=/^([+-])(\d{2})(?::?(\d{2}))?$/;function h(t){return t?parseInt(t):1}function d(t){return t&&parseFloat(t.replace(",","."))||0}var f=[31,null,31,30,31,30,31,31,30,31,30,31];function p(t){return t%400==0||t%4==0&&t%100!=0}},89690:function(t,e,r){"use strict";r.d(e,{Z:function(){return u}});var n=r(980581),i=r(881255),o=r(411045),a=r(230942),s=r(247853);function u(t,e){if((0,s.Z)(2,arguments),"object"!==(0,n.Z)(e)||null===e)throw RangeError("values parameter must be an object");var r=(0,i.Z)(t);return isNaN(r.getTime())?new Date(NaN):(null!=e.year&&r.setFullYear(e.year),null!=e.month&&(r=(0,o.Z)(r,e.month)),null!=e.date&&r.setDate((0,a.Z)(e.date)),null!=e.hours&&r.setHours((0,a.Z)(e.hours)),null!=e.minutes&&r.setMinutes((0,a.Z)(e.minutes)),null!=e.seconds&&r.setSeconds((0,a.Z)(e.seconds)),null!=e.milliseconds&&r.setMilliseconds((0,a.Z)(e.milliseconds)),r)}},411045:function(t,e,r){"use strict";r.d(e,{Z:function(){return s}});var n=r(230942),i=r(881255),o=r(383341),a=r(247853);function s(t,e){(0,a.Z)(2,arguments);var r=(0,i.Z)(t),s=(0,n.Z)(e),u=r.getFullYear(),l=r.getDate(),c=new Date(0);c.setFullYear(u,s,15),c.setHours(0,0,0,0);var h=(0,o.Z)(c);return r.setMonth(s,Math.min(l,h)),r}},378734:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var n=r(230942),i=r(881255),o=r(247853);function a(t,e){(0,o.Z)(2,arguments);var r=(0,i.Z)(t),a=(0,n.Z)(e);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(a),r)}},839610:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(881255),i=r(247853);function o(t){(0,i.Z)(1,arguments);var e=(0,n.Z)(t);return e.setHours(0,0,0,0),e}},923198:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(881255),i=r(247853);function o(t){(0,i.Z)(1,arguments);var e=(0,n.Z)(t);return e.setDate(1),e.setHours(0,0,0,0),e}},214424:function(t,e,r){"use strict";r.d(e,{Z:function(){return s}});var n=r(881255),i=r(230942),o=r(247853),a=r(664762);function s(t,e){(0,o.Z)(1,arguments);var r,s,u,l,c,h,d,f,p=(0,a.j)(),g=(0,i.Z)(null!==(r=null!==(s=null!==(u=null!==(l=null==e?void 0:e.weekStartsOn)&&void 0!==l?l:null==e?void 0:null===(c=e.locale)||void 0===c?void 0:null===(h=c.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==u?u:p.weekStartsOn)&&void 0!==s?s:null===(d=p.locale)||void 0===d?void 0:null===(f=d.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==r?r:0);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=(0,n.Z)(t),m=y.getDay();return y.setDate(y.getDate()-((m<g?7:0)+m-g)),y.setHours(0,0,0,0),y}},609253:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var n=r(392706),i=r(247853),o=r(230942);function a(t,e){(0,i.Z)(2,arguments);var r=(0,o.Z)(e);return(0,n.Z)(t,-r)}},662693:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var n=r(230942),i=r(156622),o=r(247853);function a(t,e){(0,o.Z)(2,arguments);var r=(0,n.Z)(e);return(0,i.Z)(t,-r)}},914662:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var n=r(230942),i=r(522503),o=r(247853);function a(t,e){(0,o.Z)(2,arguments);var r=(0,n.Z)(e);return(0,i.Z)(t,-r)}},881255:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(980581),i=r(247853);function o(t){(0,i.Z)(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===(0,n.Z)(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):(("string"==typeof t||"[object String]"===e)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}},64213:function(t,e,r){"use strict";var n=r(377416).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r){(0,d.default)(2,arguments);var n,A,D,E,x,S,M,_,N,T,C,I,O,k,L,P,R,B,j=String(e),F=(0,f.getDefaultOptions)(),U=null!==(n=null!==(A=null==r?void 0:r.locale)&&void 0!==A?A:F.locale)&&void 0!==n?n:p.default,z=(0,h.default)(null!==(D=null!==(E=null!==(x=null!==(S=null==r?void 0:r.firstWeekContainsDate)&&void 0!==S?S:null==r?void 0:null===(M=r.locale)||void 0===M?void 0:null===(_=M.options)||void 0===_?void 0:_.firstWeekContainsDate)&&void 0!==x?x:F.firstWeekContainsDate)&&void 0!==E?E:null===(N=F.locale)||void 0===N?void 0:null===(T=N.options)||void 0===T?void 0:T.firstWeekContainsDate)&&void 0!==D?D:1);if(!(z>=1&&z<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var q=(0,h.default)(null!==(C=null!==(I=null!==(O=null!==(k=null==r?void 0:r.weekStartsOn)&&void 0!==k?k:null==r?void 0:null===(L=r.locale)||void 0===L?void 0:null===(P=L.options)||void 0===P?void 0:P.weekStartsOn)&&void 0!==O?O:F.weekStartsOn)&&void 0!==I?I:null===(R=F.locale)||void 0===R?void 0:null===(B=R.options)||void 0===B?void 0:B.weekStartsOn)&&void 0!==C?C:0);if(!(q>=0&&q<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!U.localize)throw RangeError("locale must contain localize property");if(!U.formatLong)throw RangeError("locale must contain formatLong property");var H=(0,a.default)(t);if(!(0,i.default)(H))throw RangeError("Invalid time value");var V=(0,l.default)(H),Z=(0,o.default)(H,V),G={firstWeekContainsDate:z,weekStartsOn:q,locale:U,_originalDate:H};return j.match(y).map(function(t){var e=t[0];return"p"===e||"P"===e?(0,u.default[e])(t,U.formatLong):t}).join("").match(g).map(function(n){if("''"===n)return"'";var i=n[0];if("'"===i)return function(t){var e=t.match(m);return e?e[1].replace(b,"'"):t}(n);var o=s.default[i];if(o)return!(null!=r&&r.useAdditionalWeekYearTokens)&&(0,c.isProtectedWeekYearToken)(n)&&(0,c.throwProtectedError)(n,e,String(t)),!(null!=r&&r.useAdditionalDayOfYearTokens)&&(0,c.isProtectedDayOfYearToken)(n)&&(0,c.throwProtectedError)(n,e,String(t)),o(Z,n,U.localize,G);if(i.match(w))throw RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return n}).join("")};var i=n(r(150512)),o=n(r(353248)),a=n(r(179677)),s=n(r(159012)),u=n(r(934015)),l=n(r(236542)),c=r(245414),h=n(r(956293)),d=n(r(995938)),f=r(433921),p=n(r(650484)),g=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,y=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,b=/''/g,w=/[a-zA-Z]/;t.exports=e.default},967960:function(t,e,r){"use strict";var n=r(377416).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,o.default)(1,arguments),t instanceof Date||"object"===(0,i.default)(t)&&"[object Date]"===Object.prototype.toString.call(t)};var i=n(r(616250)),o=n(r(995938));t.exports=e.default},150512:function(t,e,r){"use strict";var n=r(377416).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,a.default)(1,arguments),(!!(0,i.default)(t)||"number"==typeof t)&&!isNaN(Number((0,o.default)(t)))};var i=n(r(967960)),o=n(r(179677)),a=n(r(995938));t.exports=e.default},168752:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}};t.exports=e.default},849377:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(e,r){var n;if("formatting"===(null!=r&&r.context?String(r.context):"standalone")&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,o=null!=r&&r.width?String(r.width):i;n=t.formattingValues[o]||t.formattingValues[i]}else{var a=t.defaultWidth,s=null!=r&&r.width?String(r.width):t.defaultWidth;n=t.values[s]||t.values[a]}return n[t.argumentCallback?t.argumentCallback(e):e]}};t.exports=e.default},652667:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,o=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],a=e.match(o);if(!a)return null;var s=a[0],u=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(u)?function(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return r}(u,function(t){return t.test(s)}):function(t,e){for(var r in t)if(t.hasOwnProperty(r)&&e(t[r]))return r}(u,function(t){return t.test(s)});return r=t.valueCallback?t.valueCallback(l):l,{value:r=n.valueCallback?n.valueCallback(r):r,rest:e.slice(s.length)}}};t.exports=e.default},472407:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(t.matchPattern);if(!n)return null;var i=n[0],o=e.match(t.parsePattern);if(!o)return null;var a=t.valueCallback?t.valueCallback(o[0]):o[0];return{value:a=r.valueCallback?r.valueCallback(a):a,rest:e.slice(i.length)}}};t.exports=e.default},372990:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};e.default=function(t,e,n){var i,o=r[t];if(i="string"==typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),null!=n&&n.addSuffix)return n.comparison&&n.comparison>0?"in "+i:i+" ago";return i},t.exports=e.default},702318:function(t,e,r){"use strict";var n=r(377416).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r(168752)),o={date:(0,i.default)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,i.default)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,i.default)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};e.default=o,t.exports=e.default},362690:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};e.default=function(t,e,n,i){return r[t]},t.exports=e.default},446065:function(t,e,r){"use strict";var n=r(377416).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r(849377)),o={ordinalNumber:function(t,e){var r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:(0,i.default)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,i.default)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:(0,i.default)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,i.default)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,i.default)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};e.default=o,t.exports=e.default},366032:function(t,e,r){"use strict";var n=r(377416).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r(652667)),o=n(r(472407)),a={ordinalNumber:(0,o.default)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:(0,i.default)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,i.default)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:(0,i.default)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,i.default)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,i.default)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};e.default=a,t.exports=e.default},422463:function(t,e,r){"use strict";var n=r(377416).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(r(372990)),o=n(r(702318)),a=n(r(362690)),s=n(r(446065)),u=n(r(366032)),l={code:"en-US",formatDistance:i.default,formatLong:o.default,formatRelative:a.default,localize:s.default,match:u.default,options:{weekStartsOn:0,firstWeekContainsDate:1}};e.default=l,t.exports=e.default},353248:function(t,e,r){"use strict";var n=r(377416).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,o.default)(2,arguments);var r=(0,a.default)(e);return(0,i.default)(t,-r)};var i=n(r(962350)),o=n(r(995938)),a=n(r(956293));t.exports=e.default},179677:function(t,e,r){"use strict";var n=r(377416).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,o.default)(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===(0,i.default)(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):(("string"==typeof t||"[object String]"===e)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))};var i=n(r(616250)),o=n(r(995938));t.exports=e.default},479886:function(t){var e,r;e=0,r=function(){"use strict";var t="millisecond",e="second",r="minute",n="hour",i="week",o="month",a="quarter",s="year",u="date",l="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},f="en",p={};p[f]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||"th")+"]"}};var g="$isDayjsObject",y=function(t){return t instanceof A||!(!t||!t[g])},m=function t(e,r,n){var i;if(!e)return f;if("string"==typeof e){var o=e.toLowerCase();p[o]&&(i=o),r&&(p[o]=r,i=o);var a=e.split("-");if(!i&&a.length>1)return t(a[0])}else{var s=e.name;p[s]=e,i=s}return!n&&i&&(f=i),i||!n&&f},b=function(t,e){if(y(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new A(r)},w={s:d,z:function(t){var e=-t.utcOffset(),r=Math.abs(e);return(e<=0?"+":"-")+d(Math.floor(r/60),2,"0")+":"+d(r%60,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,o),a=r-i<0,s=e.clone().add(n+(a?-1:1),o);return+(-(n+(r-i)/(a?i-s:s-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(l){return({M:o,y:s,w:i,d:"day",D:u,h:n,m:r,s:e,ms:t,Q:a})[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};w.l=m,w.i=y,w.w=function(t,e){return b(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var A=function(){function d(t){this.$L=m(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[g]=!0}var f=d.prototype;return f.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(w.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(c);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(e)}(t),this.init()},f.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},f.$utils=function(){return w},f.isValid=function(){return this.$d.toString()!==l},f.isSame=function(t,e){var r=b(t);return this.startOf(e)<=r&&r<=this.endOf(e)},f.isAfter=function(t,e){return b(t)<this.startOf(e)},f.isBefore=function(t,e){return this.endOf(e)<b(t)},f.$g=function(t,e,r){return w.u(t)?this[e]:this.set(r,t)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(t,a){var l=this,c=!!w.u(a)||a,h=w.p(t),d=function(t,e){var r=w.w(l.$u?Date.UTC(l.$y,e,t):new Date(l.$y,e,t),l);return c?r:r.endOf("day")},f=function(t,e){return w.w(l.toDate()[t].apply(l.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),l)},p=this.$W,g=this.$M,y=this.$D,m="set"+(this.$u?"UTC":"");switch(h){case s:return c?d(1,0):d(31,11);case o:return c?d(1,g):d(0,g+1);case i:var b=this.$locale().weekStart||0,A=(p<b?p+7:p)-b;return d(c?y-A:y+(6-A),g);case"day":case u:return f(m+"Hours",0);case n:return f(m+"Minutes",1);case r:return f(m+"Seconds",2);case e:return f(m+"Milliseconds",3);default:return this.clone()}},f.endOf=function(t){return this.startOf(t,!1)},f.$set=function(i,a){var l,c=w.p(i),h="set"+(this.$u?"UTC":""),d=((l={}).day=h+"Date",l[u]=h+"Date",l[o]=h+"Month",l[s]=h+"FullYear",l[n]=h+"Hours",l[r]=h+"Minutes",l[e]=h+"Seconds",l[t]=h+"Milliseconds",l)[c],f="day"===c?this.$D+(a-this.$W):a;if(c===o||c===s){var p=this.clone().set(u,1);p.$d[d](f),p.init(),this.$d=p.set(u,Math.min(this.$D,p.daysInMonth())).$d}else d&&this.$d[d](f);return this.init(),this},f.set=function(t,e){return this.clone().$set(t,e)},f.get=function(t){return this[w.p(t)]()},f.add=function(t,a){var u,l=this;t=Number(t);var c=w.p(a),h=function(e){var r=b(l);return w.w(r.date(r.date()+Math.round(e*t)),l)};if(c===o)return this.set(o,this.$M+t);if(c===s)return this.set(s,this.$y+t);if("day"===c)return h(1);if(c===i)return h(7);var d=((u={})[r]=6e4,u[n]=36e5,u[e]=1e3,u)[c]||1,f=this.$d.getTime()+t*d;return w.w(f,this)},f.subtract=function(t,e){return this.add(-1*t,e)},f.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||l;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=w.z(this),o=this.$H,a=this.$m,s=this.$M,u=r.weekdays,c=r.months,d=r.meridiem,f=function(t,r,i,o){return t&&(t[r]||t(e,n))||i[r].slice(0,o)},p=function(t){return w.s(o%12||12,t,"0")},g=d||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(h,function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return w.s(e.$y,4,"0");case"M":return s+1;case"MM":return w.s(s+1,2,"0");case"MMM":return f(r.monthsShort,s,c,3);case"MMMM":return f(c,s);case"D":return e.$D;case"DD":return w.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return f(r.weekdaysMin,e.$W,u,2);case"ddd":return f(r.weekdaysShort,e.$W,u,3);case"dddd":return u[e.$W];case"H":return String(o);case"HH":return w.s(o,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(o,a,!0);case"A":return g(o,a,!1);case"m":return String(a);case"mm":return w.s(a,2,"0");case"s":return String(e.$s);case"ss":return w.s(e.$s,2,"0");case"SSS":return w.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")})},f.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},f.diff=function(t,u,l){var c,h=this,d=w.p(u),f=b(t),p=(f.utcOffset()-this.utcOffset())*6e4,g=this-f,y=function(){return w.m(h,f)};switch(d){case s:c=y()/12;break;case o:c=y();break;case a:c=y()/3;break;case i:c=(g-p)/6048e5;break;case"day":c=(g-p)/864e5;break;case n:c=g/36e5;break;case r:c=g/6e4;break;case e:c=g/1e3;break;default:c=g}return l?c:w.a(c)},f.daysInMonth=function(){return this.endOf(o).$D},f.$locale=function(){return p[this.$L]},f.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=m(t,e,!0);return n&&(r.$L=n),r},f.clone=function(){return w.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},d}(),D=A.prototype;return b.prototype=D,[["$ms",t],["$s",e],["$m",r],["$H",n],["$W","day"],["$M",o],["$y",s],["$D",u]].forEach(function(t){D[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),b.extend=function(t,e){return t.$i||(t(e,A,b),t.$i=!0),b},b.locale=m,b.isDayjs=y,b.unix=function(t){return b(1e3*t)},b.en=p[f],b.Ls=p,b.p={},b},t.exports=r()},695913:function(t){var e,r;e=0,r=function(){"use strict";var t,e,r=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,n=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,i={years:31536e6,months:2628e6,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1,weeks:6048e5},o=function(t){return t instanceof h},a=function(t,e,r){return new h(t,r,e.$l)},s=function(t){return e.p(t)+"s"},u=function(t){return t<0},l=function(t){return u(t)?Math.ceil(t):Math.floor(t)},c=function(t,e){return t?u(t)?{negative:!0,format:""+Math.abs(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},h=function(){function u(t,e,r){var o=this;if(this.$d={},this.$l=r,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),e)return a(t*i[s(e)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach(function(e){o.$d[s(e)]=t[e]}),this.calMilliseconds(),this;if("string"==typeof t){var u=t.match(n);if(u){var l=u.slice(2).map(function(t){return null!=t?Number(t):0});return this.$d.years=l[0],this.$d.months=l[1],this.$d.weeks=l[2],this.$d.days=l[3],this.$d.hours=l[4],this.$d.minutes=l[5],this.$d.seconds=l[6],this.calMilliseconds(),this}}return this}var h=u.prototype;return h.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce(function(e,r){return e+(t.$d[r]||0)*i[r]},0)},h.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=l(t/31536e6),t%=31536e6,this.$d.months=l(t/2628e6),t%=2628e6,this.$d.days=l(t/864e5),t%=864e5,this.$d.hours=l(t/36e5),t%=36e5,this.$d.minutes=l(t/6e4),t%=6e4,this.$d.seconds=l(t/1e3),t%=1e3,this.$d.milliseconds=t},h.toISOString=function(){var t=c(this.$d.years,"Y"),e=c(this.$d.months,"M"),r=+this.$d.days||0;this.$d.weeks&&(r+=7*this.$d.weeks);var n=c(r,"D"),i=c(this.$d.hours,"H"),o=c(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var s=c(a,"S"),u=t.negative||e.negative||n.negative||i.negative||o.negative||s.negative,l=i.format||o.format||s.format?"T":"",h=(u?"-":"")+"P"+t.format+e.format+n.format+l+i.format+o.format+s.format;return"P"===h||"-P"===h?"P0D":h},h.toJSON=function(){return this.toISOString()},h.format=function(t){var n={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return(t||"YYYY-MM-DDTHH:mm:ss").replace(r,function(t,e){return e||String(n[t])})},h.as=function(t){return this.$ms/i[s(t)]},h.get=function(t){var e=this.$ms,r=s(t);return"milliseconds"===r?e%=1e3:e="weeks"===r?l(e/i[r]):this.$d[r],e||0},h.add=function(t,e,r){var n;return n=e?t*i[s(e)]:o(t)?t.$ms:a(t,this).$ms,a(this.$ms+n*(r?-1:1),this)},h.subtract=function(t,e){return this.add(t,e,!0)},h.locale=function(t){var e=this.clone();return e.$l=t,e},h.clone=function(){return a(this.$ms,this)},h.humanize=function(e){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},h.valueOf=function(){return this.asMilliseconds()},h.milliseconds=function(){return this.get("milliseconds")},h.asMilliseconds=function(){return this.as("milliseconds")},h.seconds=function(){return this.get("seconds")},h.asSeconds=function(){return this.as("seconds")},h.minutes=function(){return this.get("minutes")},h.asMinutes=function(){return this.as("minutes")},h.hours=function(){return this.get("hours")},h.asHours=function(){return this.as("hours")},h.days=function(){return this.get("days")},h.asDays=function(){return this.as("days")},h.weeks=function(){return this.get("weeks")},h.asWeeks=function(){return this.as("weeks")},h.months=function(){return this.get("months")},h.asMonths=function(){return this.as("months")},h.years=function(){return this.get("years")},h.asYears=function(){return this.as("years")},u}(),d=function(t,e,r){return t.add(e.years()*r,"y").add(e.months()*r,"M").add(e.days()*r,"d").add(e.hours()*r,"h").add(e.minutes()*r,"m").add(e.seconds()*r,"s").add(e.milliseconds()*r,"ms")};return function(r,n,i){t=i,e=i().$utils(),i.duration=function(t,e){return a(t,{$l:i.locale()},e)},i.isDuration=o;var s=n.prototype.add,u=n.prototype.subtract;n.prototype.add=function(t,e){return o(t)?d(this,t,1):s.bind(this)(t,e)},n.prototype.subtract=function(t,e){return o(t)?d(this,t,-1):u.bind(this)(t,e)}}},t.exports=r()},233773:function(t){var e,r;e=0,r=function(){"use strict";var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(r,n,i){var o,a=function(t,r,n){void 0===n&&(n={});var i,o,a,s,u,l=new Date(t);return(i=r,void 0===(o=n)&&(o={}),(u=e[s=i+"|"+(a=o.timeZoneName||"short")])||(u=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:i,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:a}),e[s]=u),u).formatToParts(l)},s=function(e,r){for(var n=a(e,r),o=[],s=0;s<n.length;s+=1){var u=n[s],l=u.type,c=u.value,h=t[l];h>=0&&(o[h]=parseInt(c,10))}var d=o[3],f=o[0]+"-"+o[1]+"-"+o[2]+" "+(24===d?0:d)+":"+o[4]+":"+o[5]+":000",p=+e;return(i.utc(f).valueOf()-(p-=p%1e3))/6e4},u=n.prototype;u.tz=function(t,e){void 0===t&&(t=o);var r,n=this.utcOffset(),a=this.toDate(),s=a.toLocaleString("en-US",{timeZone:t}),u=Math.round((a-new Date(s))/1e3/60),l=-(15*Math.round(a.getTimezoneOffset()/15))-u;if(Number(l)){if(r=i(s,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(l,!0),e){var c=r.utcOffset();r=r.add(n-c,"minute")}}else r=this.utcOffset(0,e);return r.$x.$timezone=t,r},u.offsetName=function(t){var e=this.$x.$timezone||i.tz.guess(),r=a(this.valueOf(),e,{timeZoneName:t}).find(function(t){return"timezonename"===t.type.toLowerCase()});return r&&r.value};var l=u.startOf;u.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return l.call(this,t,e);var r=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return l.call(r,t,e).tz(this.$x.$timezone,!0)},i.tz=function(t,e,r){var n=r&&e,a=r||e||o,u=s(+i(),a);if("string"!=typeof t)return i(t).tz(a);var l=function(t,e,r){var n=t-60*e*1e3,i=s(n,r);if(e===i)return[n,e];var o=s(n-=60*(i-e)*1e3,r);return i===o?[n,i]:[t-60*Math.min(i,o)*1e3,Math.max(i,o)]}(i.utc(t,n).valueOf(),u,a),c=l[0],h=l[1],d=i(c).utcOffset(h);return d.$x.$timezone=a,d},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(t){o=t}}},t.exports=r()},44408:function(t){var e,r;e=0,r=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,i,o){var a=i.prototype;o.utc=function(t){var e={date:t,utc:!0,args:arguments};return new i(e)},a.utc=function(e){var r=o(this.toDate(),{locale:this.$L,utc:!0});return e?r.add(this.utcOffset(),t):r},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),s.call(this,t)};var u=a.init;a.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else u.call(this)};var l=a.utcOffset;a.utcOffset=function(n,i){var o=this.$utils().u;if(o(n))return this.$u?0:o(this.$offset)?l.call(this):this.$offset;if("string"==typeof n&&null===(n=function(t){void 0===t&&(t="");var n=t.match(e);if(!n)return null;var i=(""+n[0]).match(r)||["-",0,0],o=i[0],a=60*+i[1]+ +i[2];return 0===a?0:"+"===o?a:-a}(n)))return this;var a=16>=Math.abs(n)?60*n:n,s=this;if(i)return s.$offset=a,s.$u=0===n,s;if(0!==n){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+u,t)).$offset=a,s.$x.$localOffset=u}else s=this.utc();return s};var c=a.format;a.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,e)},a.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var h=a.toDate;a.toDate=function(t){return"s"===t&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var d=a.diff;a.diff=function(t,e,r){if(t&&this.$u===t.$u)return d.call(this,t,e,r);var n=this.local(),i=o(t).local();return d.call(n,i,e,r)}}},t.exports=r()},584437:function(t){var e,r;e=this,r=function(t){var e=["N","E","A","D"];function r(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}function n(t,e){Object.defineProperty(this,"kind",{value:t,enumerable:!0}),e&&e.length&&Object.defineProperty(this,"path",{value:e,enumerable:!0})}function i(t,e,r){i.super_.call(this,"E",t),Object.defineProperty(this,"lhs",{value:e,enumerable:!0}),Object.defineProperty(this,"rhs",{value:r,enumerable:!0})}function o(t,e){o.super_.call(this,"N",t),Object.defineProperty(this,"rhs",{value:e,enumerable:!0})}function a(t,e){a.super_.call(this,"D",t),Object.defineProperty(this,"lhs",{value:e,enumerable:!0})}function s(t,e,r){s.super_.call(this,"A",t),Object.defineProperty(this,"index",{value:e,enumerable:!0}),Object.defineProperty(this,"item",{value:r,enumerable:!0})}function u(t,e,r){var n=t.slice((r||e)+1||t.length);return t.length=e<0?t.length+e:e,t.push.apply(t,n),t}function l(t){var e=typeof t;if("object"!==e)return e;if(t===Math)return"math";if(null===t)return"null";if(Array.isArray(t))return"array";else if("[object Date]"===Object.prototype.toString.call(t))return"date";else if("function"==typeof t.toString&&/^\/.*\//.test(t.toString()))return"regexp";return"object"}function c(t){var e=0;if(0===t.length)return e;for(var r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r),e&=e;return e}function h(t){var e=0,r=l(t);if("array"===r){t.forEach(function(t){e+=h(t)});var n="[type: array, hash: "+e+"]";return e+c(n)}if("object"===r){for(var i in t)if(t.hasOwnProperty(i)){var o="[ type: object, key: "+i+", value hash: "+h(t[i])+"]";e+=c(o)}return e}return e+c("[ type: "+r+" ; value: "+t+"]")}function d(t,e,r,n,u,c,f,p){r=r||[],f=f||[];var g,y,m,b,w=(u=u||[]).slice(0);if(null!=c){if(n){if("function"==typeof n&&n(w,c))return;if("object"==typeof n){if(n.prefilter&&n.prefilter(w,c))return;if(n.normalize){var A=n.normalize(w,c,t,e);A&&(t=A[0],e=A[1])}}}w.push(c)}"regexp"===l(t)&&"regexp"===l(e)&&(t=t.toString(),e=e.toString());var D=typeof t,E=typeof e,x="undefined"!==D||f&&f.length>0&&f[f.length-1].lhs&&Object.getOwnPropertyDescriptor(f[f.length-1].lhs,c),S="undefined"!==E||f&&f.length>0&&f[f.length-1].rhs&&Object.getOwnPropertyDescriptor(f[f.length-1].rhs,c);if(!x&&S)r.push(new o(w,e));else if(!S&&x)r.push(new a(w,t));else if(l(t)!==l(e))r.push(new i(w,t,e));else if("date"===l(t)&&t-e!=0)r.push(new i(w,t,e));else if("object"===D&&null!==t&&null!==e){for(g=f.length-1;g>-1;--g)if(f[g].lhs===t){b=!0;break}if(b)t!==e&&r.push(new i(w,t,e));else{if(f.push({lhs:t,rhs:e}),Array.isArray(t)){for(p&&(t.sort(function(t,e){return h(t)-h(e)}),e.sort(function(t,e){return h(t)-h(e)})),g=e.length-1,y=t.length-1;g>y;)r.push(new s(w,g,new o(void 0,e[g--])));for(;y>g;)r.push(new s(w,y,new a(void 0,t[y--])));for(;g>=0;--g)d(t[g],e[g],r,n,w,g,f,p)}else{var M=Object.keys(t),_=Object.keys(e);for(g=0;g<M.length;++g)m=M[g],(b=_.indexOf(m))>=0?(d(t[m],e[m],r,n,w,m,f,p),_[b]=null):d(t[m],void 0,r,n,w,m,f,p);for(g=0;g<_.length;++g)(m=_[g])&&d(void 0,e[m],r,n,w,m,f,p)}f.length=f.length-1}}else t!==e&&!("number"===D&&isNaN(t)&&isNaN(e))&&r.push(new i(w,t,e))}function f(t,e,r,n,i){var o=[];if(d(t,e,o,n,null,null,null,i),r)for(var a=0;a<o.length;++a)r(o[a]);return o}r(i,n),r(o,n),r(a,n),r(s,n);function p(t,e,r,n){var i=f(t,e,n?function(t){t&&n.push(t)}:void 0,r);return n||(i.length?i:void 0)}function g(t,r,n){if(void 0===n&&r&&~e.indexOf(r.kind)&&(n=r),t&&n&&n.kind){for(var i=t,o=-1,a=n.path?n.path.length-1:0;++o<a;)void 0===i[n.path[o]]&&(i[n.path[o]]=void 0!==n.path[o+1]&&"number"==typeof n.path[o+1]?[]:{}),i=i[n.path[o]];switch(n.kind){case"A":n.path&&void 0===i[n.path[o]]&&(i[n.path[o]]=[]),!function t(e,r,n){if(n.path&&n.path.length){var i,o=e[r],a=n.path.length-1;for(i=0;i<a;i++)o=o[n.path[i]];switch(n.kind){case"A":t(o[n.path[i]],n.index,n.item);break;case"D":delete o[n.path[i]];break;case"E":case"N":o[n.path[i]]=n.rhs}}else switch(n.kind){case"A":t(e[r],n.index,n.item);break;case"D":e=u(e,r);break;case"E":case"N":e[r]=n.rhs}return e}(n.path?i[n.path[o]]:i,n.index,n.item);break;case"D":delete i[n.path[o]];break;case"E":case"N":i[n.path[o]]=n.rhs}}}return Object.defineProperties(p,{diff:{value:p,enumerable:!0},orderIndependentDiff:{value:function(t,e,r,n){var i=f(t,e,n?function(t){t&&n.push(t)}:void 0,r,!0);return n||(i.length?i:void 0)},enumerable:!0},observableDiff:{value:f,enumerable:!0},orderIndependentObservableDiff:{value:function(t,e,r,n,i,o,a){return d(t,e,r,n,i,o,a,!0)},enumerable:!0},orderIndepHash:{value:h,enumerable:!0},applyDiff:{value:function(t,e,r){t&&e&&f(t,e,function(n){(!r||r(t,e,n))&&g(t,e,n)})},enumerable:!0},applyChange:{value:g,enumerable:!0},revertChange:{value:function(t,e,r){if(t&&e&&r&&r.kind){var n,i,o=t;for(n=0,i=r.path.length-1;n<i;n++)void 0===o[r.path[n]]&&(o[r.path[n]]={}),o=o[r.path[n]];switch(r.kind){case"A":!function t(e,r,n){if(n.path&&n.path.length){var i,o=e[r],a=n.path.length-1;for(i=0;i<a;i++)o=o[n.path[i]];switch(n.kind){case"A":t(o[n.path[i]],n.index,n.item);break;case"D":case"E":o[n.path[i]]=n.lhs;break;case"N":delete o[n.path[i]]}}else switch(n.kind){case"A":t(e[r],n.index,n.item);break;case"D":case"E":e[r]=n.lhs;break;case"N":e=u(e,r)}return e}(o[r.path[n]],r.index,r.item);break;case"D":case"E":o[r.path[n]]=r.lhs;break;case"N":delete o[r.path[n]]}}},enumerable:!0},isConflict:{value:function(){return"undefined"!=typeof $conflict},enumerable:!0}}),p.DeepDiff=p,t&&(t.DeepDiff=p),p}(e),"function"==typeof define&&define.amd?define("DeepDiff",function(){return r}):t.exports=r},289276:function(t,e,r){"use strict";r.d(e,{qY:function(){return d}});var n=function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i<o;i++)(n||!(i in e))&&(!n&&(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},i=function(t,e,r){this.name=t,this.version=e,this.os=r,this.type="browser"},o=function(t){this.version=t,this.type="node",this.name="node",this.os=process.platform},a=function(t,e,r,n){this.name=t,this.version=e,this.os=r,this.bot=n,this.type="bot-device"},s=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},u=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},l=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,c=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],h=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function d(t){return t?f(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new u:"undefined"!=typeof navigator?f(navigator.userAgent):function(){return"undefined"!=typeof process&&process.version?new o(process.version.slice(1)):null}()}function f(t){var e,r=""!==(e=t)&&c.reduce(function(t,r){var n=r[0],i=r[1];if(t)return t;var o=i.exec(e);return!!o&&[n,o]},!1);if(!r)return null;var o=r[0],u=r[1];if("searchbot"===o)return new s;var d=u[1]&&u[1].split(".").join("_").split("_").slice(0,3);d?d.length<3&&(d=n(n([],d,!0),function(t){for(var e=[],r=0;r<t;r++)e.push("0");return e}(3-d.length),!0)):d=[];var f=d.join("."),p=function(t){for(var e=0,r=h.length;e<r;e++){var n=h[e],i=n[0];if(n[1].exec(t))return i}return null}(t),g=l.exec(t);return g&&g[1]?new a(o,f,p,g[1]):new i(o,f,p)}},979663:function(t,e){"use strict";var r,n;Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0,(n=r=e.ElementType||(e.ElementType={})).Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype";e.isTag=function(t){return t.type===r.Tag||t.type===r.Script||t.type===r.Style},e.Root=r.Root,e.Text=r.Text,e.Directive=r.Directive,e.Comment=r.Comment,e.Script=r.Script,e.Style=r.Style,e.Tag=r.Tag,e.CDATA=r.CDATA,e.Doctype=r.Doctype},825515:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"!==r&&!Object.prototype.hasOwnProperty.call(e,r)&&n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var o=r(979663),a=r(330646);i(r(330646),e);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=function(){function t(t,e,r){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof e&&(r=e,e=s),"object"==typeof t&&(e=t,t=void 0),this.callback=null!=t?t:null,this.options=null!=e?e:s,this.elementCB=null!=r?r:null}return t.prototype.onparserinit=function(t){this.parser=t},t.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},t.prototype.onend=function(){!this.done&&(this.done=!0,this.parser=null,this.handleCallback(null))},t.prototype.onerror=function(t){this.handleCallback(t)},t.prototype.onclosetag=function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)},t.prototype.onopentag=function(t,e){var r=this.options.xmlMode?o.ElementType.Tag:void 0,n=new a.Element(t,e,void 0,r);this.addNode(n),this.tagStack.push(n)},t.prototype.ontext=function(t){var e=this.lastNode;if(e&&e.type===o.ElementType.Text)e.data+=t,this.options.withEndIndices&&(e.endIndex=this.parser.endIndex);else{var r=new a.Text(t);this.addNode(r),this.lastNode=r}},t.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment){this.lastNode.data+=t;return}var e=new a.Comment(t);this.addNode(e),this.lastNode=e},t.prototype.oncommentend=function(){this.lastNode=null},t.prototype.oncdatastart=function(){var t=new a.Text(""),e=new a.CDATA([t]);this.addNode(e),t.parent=e,this.lastNode=t},t.prototype.oncdataend=function(){this.lastNode=null},t.prototype.onprocessinginstruction=function(t,e){var r=new a.ProcessingInstruction(t,e);this.addNode(r)},t.prototype.handleCallback=function(t){if("function"==typeof this.callback)this.callback(t,this.dom);else if(t)throw t},t.prototype.addNode=function(t){var e=this.tagStack[this.tagStack.length-1],r=e.children[e.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),e.children.push(t),r&&(t.prev=r,r.next=t),t.parent=e,this.lastNode=null},t}();e.DomHandler=u,e.default=u},330646:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.cloneNode=e.hasChildren=e.isDocument=e.isDirective=e.isComment=e.isText=e.isCDATA=e.isTag=e.Element=e.Document=e.CDATA=e.NodeWithChildren=e.ProcessingInstruction=e.Comment=e.Text=e.DataNode=e.Node=void 0;var a=r(979663),s=function(){function t(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),t.prototype.cloneNode=function(t){return void 0===t&&(t=!1),E(this,t)},t}();e.Node=s;var u=function(t){function e(e){var r=t.call(this)||this;return r.data=e,r}return i(e,t),Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(t){this.data=t},enumerable:!1,configurable:!0}),e}(s);e.DataNode=u;var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=a.ElementType.Text,e}return i(e,t),Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(u);e.Text=l;var c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=a.ElementType.Comment,e}return i(e,t),Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(u);e.Comment=c;var h=function(t){function e(e,r){var n=t.call(this,r)||this;return n.name=e,n.type=a.ElementType.Directive,n}return i(e,t),Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(u);e.ProcessingInstruction=h;var d=function(t){function e(e){var r=t.call(this)||this;return r.children=e,r}return i(e,t),Object.defineProperty(e.prototype,"firstChild",{get:function(){var t;return null!==(t=this.children[0])&&void 0!==t?t:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(t){this.children=t},enumerable:!1,configurable:!0}),e}(s);e.NodeWithChildren=d;var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=a.ElementType.CDATA,e}return i(e,t),Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(d);e.CDATA=f;var p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=a.ElementType.Root,e}return i(e,t),Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(d);e.Document=p;var g=function(t){function e(e,r,n,i){void 0===n&&(n=[]),void 0===i&&(i="script"===e?a.ElementType.Script:"style"===e?a.ElementType.Style:a.ElementType.Tag);var o=t.call(this,n)||this;return o.name=e,o.attribs=r,o.type=i,o}return i(e,t),Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(t){this.name=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var t=this;return Object.keys(this.attribs).map(function(e){var r,n;return{name:e,value:t.attribs[e],namespace:null===(r=t["x-attribsNamespace"])||void 0===r?void 0:r[e],prefix:null===(n=t["x-attribsPrefix"])||void 0===n?void 0:n[e]}})},enumerable:!1,configurable:!0}),e}(d);function y(t){return(0,a.isTag)(t)}function m(t){return t.type===a.ElementType.CDATA}function b(t){return t.type===a.ElementType.Text}function w(t){return t.type===a.ElementType.Comment}function A(t){return t.type===a.ElementType.Directive}function D(t){return t.type===a.ElementType.Root}e.Element=g,e.isTag=y,e.isCDATA=m,e.isText=b,e.isComment=w,e.isDirective=A,e.isDocument=D;function E(t,e){if(void 0===e&&(e=!1),b(t))r=new l(t.data);else if(w(t))r=new c(t.data);else if(y(t)){var r,n=e?x(t.children):[],i=new g(t.name,o({},t.attribs),n);n.forEach(function(t){return t.parent=i}),null!=t.namespace&&(i.namespace=t.namespace),t["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},t["x-attribsPrefix"])),r=i}else if(m(t)){var n=e?x(t.children):[],a=new f(n);n.forEach(function(t){return t.parent=a}),r=a}else if(D(t)){var n=e?x(t.children):[],s=new p(n);n.forEach(function(t){return t.parent=s}),t["x-mode"]&&(s["x-mode"]=t["x-mode"]),r=s}else if(A(t)){var u=new h(t.name,t.data);null!=t["x-name"]&&(u["x-name"]=t["x-name"],u["x-publicId"]=t["x-publicId"],u["x-systemId"]=t["x-systemId"]),r=u}else throw Error("Not implemented yet: ".concat(t.type));return r.startIndex=t.startIndex,r.endIndex=t.endIndex,null!=t.sourceCodeLocation&&(r.sourceCodeLocation=t.sourceCodeLocation),r}function x(t){for(var e=t.map(function(t){return E(t,!0)}),r=1;r<e.length;r++)e[r].prev=e[r-1],e[r-1].next=e[r];return e}e.hasChildren=function(t){return Object.prototype.hasOwnProperty.call(t,"children")},e.cloneNode=E},472891:function(t){var e,r;e=0,r=function(){"use strict";let{entries:t,setPrototypeOf:e,isFrozen:r,getPrototypeOf:n,getOwnPropertyDescriptor:i}=Object,{freeze:o,seal:a,create:s}=Object,{apply:u,construct:l}="undefined"!=typeof Reflect&&Reflect;!o&&(o=function(t){return t}),!a&&(a=function(t){return t}),!u&&(u=function(t,e,r){return t.apply(e,r)}),!l&&(l=function(t,e){return new t(...e)});let c=D(Array.prototype.forEach),h=D(Array.prototype.pop),d=D(Array.prototype.push),f=D(String.prototype.toLowerCase),p=D(String.prototype.toString),g=D(String.prototype.match),y=D(String.prototype.replace),m=D(String.prototype.indexOf),b=D(String.prototype.trim),w=D(RegExp.prototype.test),A=function(t){return function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return l(t,r)}}(TypeError);function D(t){return function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return u(t,e,n)}}function E(t,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;e&&e(t,null);let o=n.length;for(;o--;){let e=n[o];if("string"==typeof e){let t=i(e);t!==e&&(!r(n)&&(n[o]=t),e=t)}t[e]=!0}return t}function x(e){let r=s(null);for(let[n,o]of t(e))void 0!==i(e,n)&&(Array.isArray(o)?r[n]=function(t){for(let e=0;e<t.length;e++)void 0===i(t,e)&&(t[e]=null);return t}(o):o&&"object"==typeof o&&o.constructor===Object?r[n]=x(o):r[n]=o);return r}function S(t,e){for(;null!==t;){let r=i(t,e);if(r){if(r.get)return D(r.get);if("function"==typeof r.value)return D(r.value)}t=n(t)}return function(t){return console.warn("fallback value for",t),null}}let M=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),_=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),N=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),T=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),C=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),I=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O=o(["#text"]),k=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),L=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),P=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),R=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),j=a(/<%[\w\W]*|[\w\W]*%>/gm),F=a(/\${[\w\W]*}/gm),U=a(/^data-[\-\w.\u00B7-\uFFFF]/),z=a(/^aria-[\-\w]+$/),q=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),H=a(/^(?:\w+script|data):/i),V=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=a(/^html$/i);var G=Object.freeze({__proto__:null,MUSTACHE_EXPR:B,ERB_EXPR:j,TMPLIT_EXPR:F,DATA_ATTR:U,ARIA_ATTR:z,IS_ALLOWED_URI:q,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:V,DOCTYPE_NAME:Z});let W=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let r=null,n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(r=e.getAttribute(n));let i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function e(){let r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,i=t=>e(t);if(i.version="3.0.8",i.removed=[],!n||!n.document||9!==n.document.nodeType)return i.isSupported=!1,i;let{document:a}=n,u=a,l=u.currentScript,{DocumentFragment:D,HTMLTemplateElement:B,Node:j,Element:F,NodeFilter:U,NamedNodeMap:z=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:H,DOMParser:V,trustedTypes:Y}=n,$=F.prototype,Q=S($,"cloneNode"),J=S($,"nextSibling"),X=S($,"childNodes"),K=S($,"parentNode");if("function"==typeof B){let t=a.createElement("template");t.content&&t.content.ownerDocument&&(a=t.content.ownerDocument)}let tt="",{implementation:te,createNodeIterator:tr,createDocumentFragment:tn,getElementsByTagName:ti}=a,{importNode:to}=u,ta={};i.isSupported="function"==typeof t&&"function"==typeof K&&te&&void 0!==te.createHTMLDocument;let{MUSTACHE_EXPR:ts,ERB_EXPR:tu,TMPLIT_EXPR:tl,DATA_ATTR:tc,ARIA_ATTR:th,IS_SCRIPT_OR_DATA:td,ATTR_WHITESPACE:tf}=G,{IS_ALLOWED_URI:tp}=G,tg=null,ty=E({},[...M,..._,...N,...C,...O]),tm=null,tv=E({},[...k,...L,...P,...R]),tb=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),tw=null,tA=null,tD=!0,tE=!0,tx=!1,tS=!0,tM=!1,t_=!1,tN=!1,tT=!1,tC=!1,tI=!1,tO=!1,tk=!0,tL=!1,tP=!0,tR=!1,tB={},tj=null,tF=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),tU=null,tz=E({},["audio","video","img","source","image","track"]),tq=null,tH=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tV="http://www.w3.org/1998/Math/MathML",tZ="http://www.w3.org/2000/svg",tG="http://www.w3.org/1999/xhtml",tW=tG,tY=!1,t$=null,tQ=E({},[tV,tZ,tG],p),tJ=null,tX=["application/xhtml+xml","text/html"],tK=null,t0=null,t1=a.createElement("form"),t2=function(t){return t instanceof RegExp||t instanceof Function},t4=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!t0||t0!==t){if((!t||"object"!=typeof t)&&(t={}),t=x(t),tK="application/xhtml+xml"===(tJ=-1===tX.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE)?p:f,tg="ALLOWED_TAGS"in t?E({},t.ALLOWED_TAGS,tK):ty,tm="ALLOWED_ATTR"in t?E({},t.ALLOWED_ATTR,tK):tv,t$="ALLOWED_NAMESPACES"in t?E({},t.ALLOWED_NAMESPACES,p):tQ,tq="ADD_URI_SAFE_ATTR"in t?E(x(tH),t.ADD_URI_SAFE_ATTR,tK):tH,tU="ADD_DATA_URI_TAGS"in t?E(x(tz),t.ADD_DATA_URI_TAGS,tK):tz,tj="FORBID_CONTENTS"in t?E({},t.FORBID_CONTENTS,tK):tF,tw="FORBID_TAGS"in t?E({},t.FORBID_TAGS,tK):{},tA="FORBID_ATTR"in t?E({},t.FORBID_ATTR,tK):{},tB="USE_PROFILES"in t&&t.USE_PROFILES,tD=!1!==t.ALLOW_ARIA_ATTR,tE=!1!==t.ALLOW_DATA_ATTR,tx=t.ALLOW_UNKNOWN_PROTOCOLS||!1,tS=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,tM=t.SAFE_FOR_TEMPLATES||!1,t_=t.WHOLE_DOCUMENT||!1,tC=t.RETURN_DOM||!1,tI=t.RETURN_DOM_FRAGMENT||!1,tO=t.RETURN_TRUSTED_TYPE||!1,tT=t.FORCE_BODY||!1,tk=!1!==t.SANITIZE_DOM,tL=t.SANITIZE_NAMED_PROPS||!1,tP=!1!==t.KEEP_CONTENT,tR=t.IN_PLACE||!1,tp=t.ALLOWED_URI_REGEXP||q,tW=t.NAMESPACE||tG,tb=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&t2(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(tb.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&t2(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(tb.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(tb.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),tM&&(tE=!1),tI&&(tC=!0),tB&&(tg=E({},O),tm=[],!0===tB.html&&(E(tg,M),E(tm,k)),!0===tB.svg&&(E(tg,_),E(tm,L),E(tm,R)),!0===tB.svgFilters&&(E(tg,N),E(tm,L),E(tm,R)),!0===tB.mathMl&&(E(tg,C),E(tm,P),E(tm,R))),t.ADD_TAGS&&(tg===ty&&(tg=x(tg)),E(tg,t.ADD_TAGS,tK)),t.ADD_ATTR&&(tm===tv&&(tm=x(tm)),E(tm,t.ADD_ATTR,tK)),t.ADD_URI_SAFE_ATTR&&E(tq,t.ADD_URI_SAFE_ATTR,tK),t.FORBID_CONTENTS&&(tj===tF&&(tj=x(tj)),E(tj,t.FORBID_CONTENTS,tK)),tP&&(tg["#text"]=!0),t_&&E(tg,["html","head","body"]),tg.table&&(E(tg,["tbody"]),delete tw.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');tt=(r=t.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===r&&(r=W(Y,l)),null!==r&&"string"==typeof tt&&(tt=r.createHTML(""));o&&o(t),t0=t}},t5=E({},["mi","mo","mn","ms","mtext"]),t3=E({},["foreignobject","desc","title","annotation-xml"]),t8=E({},["title","style","font","a","script"]),t6=E({},[..._,...N,...T]),t7=E({},[...C,...I]),t9=function(t){let e=K(t);(!e||!e.tagName)&&(e={namespaceURI:tW,tagName:"template"});let r=f(t.tagName),n=f(e.tagName);if(!t$[t.namespaceURI])return!1;if(t.namespaceURI===tZ)return e.namespaceURI===tG?"svg"===r:e.namespaceURI===tV?"svg"===r&&("annotation-xml"===n||t5[n]):!!t6[r];if(t.namespaceURI===tV)return e.namespaceURI===tG?"math"===r:e.namespaceURI===tZ?"math"===r&&t3[n]:!!t7[r];if(t.namespaceURI===tG)return(e.namespaceURI!==tZ||!!t3[n])&&(e.namespaceURI!==tV||!!t5[n])&&!t7[r]&&(t8[r]||!t6[r]);return"application/xhtml+xml"===tJ&&!!t$[t.namespaceURI]||!1},et=function(t){d(i.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){t.remove()}},ee=function(t,e){try{d(i.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){d(i.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!tm[t]){if(tC||tI)try{et(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}}},er=function(t){let e=null,n=null;if(tT)t="<remove></remove>"+t;else{let e=g(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===tJ&&tW===tG&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");let i=r?r.createHTML(t):t;if(tW===tG)try{e=new V().parseFromString(i,tJ)}catch(t){}if(!e||!e.documentElement){e=te.createDocument(tW,"template",null);try{e.documentElement.innerHTML=tY?tt:i}catch(t){}}let o=e.body||e.documentElement;return(t&&n&&o.insertBefore(a.createTextNode(n),o.childNodes[0]||null),tW===tG)?ti.call(e,t_?"html":"body")[0]:t_?e.documentElement:o},en=function(t){return tr.call(t.ownerDocument||t,t,U.SHOW_ELEMENT|U.SHOW_COMMENT|U.SHOW_TEXT,null)},ei=function(t){return"function"==typeof j&&t instanceof j},eo=function(t,e,r){if(!!ta[t])c(ta[t],t=>{t.call(i,e,r,t0)})},ea=function(t){var e;let r=null;if(eo("beforeSanitizeElements",t,null),(e=t)instanceof H&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof z)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes))return et(t),!0;let n=tK(t.nodeName);if(eo("uponSanitizeElement",t,{tagName:n,allowedTags:tg}),t.hasChildNodes()&&!ei(t.firstElementChild)&&w(/<[/\w]/g,t.innerHTML)&&w(/<[/\w]/g,t.textContent))return et(t),!0;if(!tg[n]||tw[n]){if(!tw[n]&&eu(n)&&(tb.tagNameCheck instanceof RegExp&&w(tb.tagNameCheck,n)||tb.tagNameCheck instanceof Function&&tb.tagNameCheck(n)))return!1;if(tP&&!tj[n]){let e=K(t)||t.parentNode,r=X(t)||t.childNodes;if(r&&e){let n=r.length;for(let i=n-1;i>=0;--i)e.insertBefore(Q(r[i],!0),J(t))}}return et(t),!0}return t instanceof F&&!t9(t)||("noscript"===n||"noembed"===n||"noframes"===n)&&w(/<\/no(script|embed|frames)/i,t.innerHTML)?(et(t),!0):(tM&&3===t.nodeType&&(r=t.textContent,c([ts,tu,tl],t=>{r=y(r,t," ")}),t.textContent!==r&&(d(i.removed,{element:t.cloneNode()}),t.textContent=r)),eo("afterSanitizeElements",t,null),!1)},es=function(t,e,r){if(tk&&("id"===e||"name"===e)&&(r in a||r in t1))return!1;if(tE&&!tA[e]&&w(tc,e));else if(tD&&w(th,e));else if(!tm[e]||tA[e]){if(!(eu(t)&&(tb.tagNameCheck instanceof RegExp&&w(tb.tagNameCheck,t)||tb.tagNameCheck instanceof Function&&tb.tagNameCheck(t))&&(tb.attributeNameCheck instanceof RegExp&&w(tb.attributeNameCheck,e)||tb.attributeNameCheck instanceof Function&&tb.attributeNameCheck(e))||"is"===e&&tb.allowCustomizedBuiltInElements&&(tb.tagNameCheck instanceof RegExp&&w(tb.tagNameCheck,r)||tb.tagNameCheck instanceof Function&&tb.tagNameCheck(r))))return!1}else if(tq[e]);else if(w(tp,y(r,tf,"")));else if(("src"===e||"xlink:href"===e||"href"===e)&&"script"!==t&&0===m(r,"data:")&&tU[t]);else if(tx&&!w(td,y(r,tf,"")));else if(r)return!1;return!0},eu=function(t){return t.indexOf("-")>0},el=function(t){eo("beforeSanitizeAttributes",t,null);let{attributes:e}=t;if(!e)return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:tm},o=e.length;for(;o--;){let{name:a,namespaceURI:s,value:u}=e[o],l=tK(a),d="value"===a?u:b(u);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,eo("uponSanitizeAttribute",t,n),d=n.attrValue,n.forceKeepAttr)continue;if(ee(a,t),!n.keepAttr)continue;if(!tS&&w(/\/>/i,d)){ee(a,t);continue}tM&&c([ts,tu,tl],t=>{d=y(d,t," ")});let f=tK(t.nodeName);if(!!es(f,l,d)){if(tL&&("id"===l||"name"===l)&&(ee(a,t),d="user-content-"+d),r&&"object"==typeof Y&&"function"==typeof Y.getAttributeType){if(s);else switch(Y.getAttributeType(f,l)){case"TrustedHTML":d=r.createHTML(d);break;case"TrustedScriptURL":d=r.createScriptURL(d)}}try{s?t.setAttributeNS(s,a,d):t.setAttribute(a,d),h(i.removed)}catch(t){}}}eo("afterSanitizeAttributes",t,null)},ec=function t(e){let r=null,n=en(e);for(eo("beforeSanitizeShadowDOM",e,null);r=n.nextNode();){if(eo("uponSanitizeShadowNode",r,null),!ea(r))r.content instanceof D&&t(r.content),el(r)}eo("afterSanitizeShadowDOM",e,null)};return i.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,a=null,s=null;if((tY=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!ei(t)){if("function"==typeof t.toString){if("string"!=typeof(t=t.toString()))throw A("dirty is not a string, aborting")}else throw A("toString is not a function")}if(!i.isSupported)return t;if(!tN&&t4(e),i.removed=[],"string"==typeof t&&(tR=!1),tR){if(t.nodeName){let e=tK(t.nodeName);if(!tg[e]||tw[e])throw A("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof j)1===(o=(n=er("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===o.nodeName?n=o:"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!tC&&!tM&&!t_&&-1===t.indexOf("<"))return r&&tO?r.createHTML(t):t;if(!(n=er(t)))return tC?null:tO?tt:""}n&&tT&&et(n.firstChild);let l=en(tR?t:n);for(;a=l.nextNode();){if(!ea(a))a.content instanceof D&&ec(a.content),el(a)}if(tR)return t;if(tC){if(tI)for(s=tn.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(tm.shadowroot||tm.shadowrootmode)&&(s=to.call(u,s,!0)),s}let h=t_?n.outerHTML:n.innerHTML;return t_&&tg["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&w(Z,n.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+h),tM&&c([ts,tu,tl],t=>{h=y(h,t," ")}),r&&tO?r.createHTML(h):h},i.setConfig=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t4(t),tN=!0},i.clearConfig=function(){t0=null,tN=!1},i.isValidAttribute=function(t,e,r){!t0&&t4({});let n=tK(t);return es(n,tK(e),r)},i.addHook=function(t,e){if("function"==typeof e)ta[t]=ta[t]||[],d(ta[t],e)},i.removeHook=function(t){if(ta[t])return h(ta[t])},i.removeHooks=function(t){ta[t]&&(ta[t]=[])},i.removeAllHooks=function(){ta={}},i}()},t.exports=r()},597282:function(t){"use strict";let{entries:e,setPrototypeOf:r,isFrozen:n,getPrototypeOf:i,getOwnPropertyDescriptor:o}=Object,{freeze:a,seal:s,create:u}=Object,{apply:l,construct:c}="undefined"!=typeof Reflect&&Reflect;!a&&(a=function(t){return t}),!s&&(s=function(t){return t}),!l&&(l=function(t,e,r){return t.apply(e,r)}),!c&&(c=function(t,e){return new t(...e)});let h=M(Array.prototype.forEach),d=M(Array.prototype.lastIndexOf),f=M(Array.prototype.pop),p=M(Array.prototype.push),g=M(Array.prototype.splice),y=M(String.prototype.toLowerCase),m=M(String.prototype.toString),b=M(String.prototype.match),w=M(String.prototype.replace),A=M(String.prototype.indexOf),D=M(String.prototype.trim),E=M(Object.prototype.hasOwnProperty),x=M(RegExp.prototype.test),S=function(t){return function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return c(t,r)}}(TypeError);function M(t){return function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return l(t,e,n)}}function _(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;r&&r(t,null);let o=e.length;for(;o--;){let r=e[o];if("string"==typeof r){let t=i(r);t!==r&&(!n(e)&&(e[o]=t),r=t)}t[r]=!0}return t}function N(t){let r=u(null);for(let[n,i]of e(t))E(t,n)&&(Array.isArray(i)?r[n]=function(t){for(let e=0;e<t.length;e++)!E(t,e)&&(t[e]=null);return t}(i):i&&"object"==typeof i&&i.constructor===Object?r[n]=N(i):r[n]=i);return r}function T(t,e){for(;null!==t;){let r=o(t,e);if(r){if(r.get)return M(r.get);if("function"==typeof r.value)return M(r.value)}t=i(t)}return function(){return null}}let C=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),I=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),O=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),k=a(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),L=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),P=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),R=a(["#text"]),B=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),j=a(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),F=a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),U=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),q=s(/<%[\w\W]*|[\w\W]*%>/gm),H=s(/\$\{[\w\W]*/gm),V=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),Z=s(/^aria-[\-\w]+$/),G=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W=s(/^(?:\w+script|data):/i),Y=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$=s(/^html$/i);var Q=Object.freeze({__proto__:null,ARIA_ATTR:Z,ATTR_WHITESPACE:Y,CUSTOM_ELEMENT:s(/^[a-z][.\w]*(-[.\w]+)+$/i),DATA_ATTR:V,DOCTYPE_NAME:$,ERB_EXPR:q,IS_ALLOWED_URI:G,IS_SCRIPT_OR_DATA:W,MUSTACHE_EXPR:z,TMPLIT_EXPR:H});let J={element:1,text:3,progressingInstruction:7,comment:8,document:9},X=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let r=null,n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(r=e.getAttribute(n));let i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},K=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};var tt=function t(){let r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,i=e=>t(e);if(i.version="3.2.4",i.removed=[],!n||!n.document||n.document.nodeType!==J.document||!n.Element)return i.isSupported=!1,i;let{document:o}=n,s=o,l=s.currentScript,{DocumentFragment:c,HTMLTemplateElement:M,Node:z,Element:q,NodeFilter:H,NamedNodeMap:V=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:Z,DOMParser:W,trustedTypes:Y}=n,tt=q.prototype,te=T(tt,"cloneNode"),tr=T(tt,"remove"),tn=T(tt,"nextSibling"),ti=T(tt,"childNodes"),to=T(tt,"parentNode");if("function"==typeof M){let t=o.createElement("template");t.content&&t.content.ownerDocument&&(o=t.content.ownerDocument)}let ta="",{implementation:ts,createNodeIterator:tu,createDocumentFragment:tl,getElementsByTagName:tc}=o,{importNode:th}=s,td=K();i.isSupported="function"==typeof e&&"function"==typeof to&&ts&&void 0!==ts.createHTMLDocument;let{MUSTACHE_EXPR:tf,ERB_EXPR:tp,TMPLIT_EXPR:tg,DATA_ATTR:ty,ARIA_ATTR:tm,IS_SCRIPT_OR_DATA:tv,ATTR_WHITESPACE:tb,CUSTOM_ELEMENT:tw}=Q,{IS_ALLOWED_URI:tA}=Q,tD=null,tE=_({},[...C,...I,...O,...L,...R]),tx=null,tS=_({},[...B,...j,...F,...U]),tM=Object.seal(u(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),t_=null,tN=null,tT=!0,tC=!0,tI=!1,tO=!0,tk=!1,tL=!0,tP=!1,tR=!1,tB=!1,tj=!1,tF=!1,tU=!1,tz=!0,tq=!1,tH=!0,tV=!1,tZ={},tG=null,tW=_({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),tY=null,t$=_({},["audio","video","img","source","image","track"]),tQ=null,tJ=_({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tX="http://www.w3.org/1998/Math/MathML",tK="http://www.w3.org/2000/svg",t0="http://www.w3.org/1999/xhtml",t1=t0,t2=!1,t4=null,t5=_({},[tX,tK,t0],m),t3=_({},["mi","mo","mn","ms","mtext"]),t8=_({},["annotation-xml"]),t6=_({},["title","style","font","a","script"]),t7=null,t9=["application/xhtml+xml","text/html"],et=null,ee=null,er=o.createElement("form"),en=function(t){return t instanceof RegExp||t instanceof Function},ei=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ee||ee!==t){if((!t||"object"!=typeof t)&&(t={}),t=N(t),et="application/xhtml+xml"===(t7=-1===t9.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE)?m:y,tD=E(t,"ALLOWED_TAGS")?_({},t.ALLOWED_TAGS,et):tE,tx=E(t,"ALLOWED_ATTR")?_({},t.ALLOWED_ATTR,et):tS,t4=E(t,"ALLOWED_NAMESPACES")?_({},t.ALLOWED_NAMESPACES,m):t5,tQ=E(t,"ADD_URI_SAFE_ATTR")?_(N(tJ),t.ADD_URI_SAFE_ATTR,et):tJ,tY=E(t,"ADD_DATA_URI_TAGS")?_(N(t$),t.ADD_DATA_URI_TAGS,et):t$,tG=E(t,"FORBID_CONTENTS")?_({},t.FORBID_CONTENTS,et):tW,t_=E(t,"FORBID_TAGS")?_({},t.FORBID_TAGS,et):{},tN=E(t,"FORBID_ATTR")?_({},t.FORBID_ATTR,et):{},tZ=!!E(t,"USE_PROFILES")&&t.USE_PROFILES,tT=!1!==t.ALLOW_ARIA_ATTR,tC=!1!==t.ALLOW_DATA_ATTR,tI=t.ALLOW_UNKNOWN_PROTOCOLS||!1,tO=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,tk=t.SAFE_FOR_TEMPLATES||!1,tL=!1!==t.SAFE_FOR_XML,tP=t.WHOLE_DOCUMENT||!1,tj=t.RETURN_DOM||!1,tF=t.RETURN_DOM_FRAGMENT||!1,tU=t.RETURN_TRUSTED_TYPE||!1,tB=t.FORCE_BODY||!1,tz=!1!==t.SANITIZE_DOM,tq=t.SANITIZE_NAMED_PROPS||!1,tH=!1!==t.KEEP_CONTENT,tV=t.IN_PLACE||!1,tA=t.ALLOWED_URI_REGEXP||G,t1=t.NAMESPACE||t0,t3=t.MATHML_TEXT_INTEGRATION_POINTS||t3,t8=t.HTML_INTEGRATION_POINTS||t8,tM=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&en(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(tM.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&en(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(tM.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(tM.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),tk&&(tC=!1),tF&&(tj=!0),tZ&&(tD=_({},R),tx=[],!0===tZ.html&&(_(tD,C),_(tx,B)),!0===tZ.svg&&(_(tD,I),_(tx,j),_(tx,U)),!0===tZ.svgFilters&&(_(tD,O),_(tx,j),_(tx,U)),!0===tZ.mathMl&&(_(tD,L),_(tx,F),_(tx,U))),t.ADD_TAGS&&(tD===tE&&(tD=N(tD)),_(tD,t.ADD_TAGS,et)),t.ADD_ATTR&&(tx===tS&&(tx=N(tx)),_(tx,t.ADD_ATTR,et)),t.ADD_URI_SAFE_ATTR&&_(tQ,t.ADD_URI_SAFE_ATTR,et),t.FORBID_CONTENTS&&(tG===tW&&(tG=N(tG)),_(tG,t.FORBID_CONTENTS,et)),tH&&(tD["#text"]=!0),tP&&_(tD,["html","head","body"]),tD.table&&(_(tD,["tbody"]),delete t_.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ta=(r=t.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===r&&(r=X(Y,l)),null!==r&&"string"==typeof ta&&(ta=r.createHTML(""));a&&a(t),ee=t}},eo=_({},[...I,...O,...k]),ea=_({},[...L,...P]),es=function(t){let e=to(t);(!e||!e.tagName)&&(e={namespaceURI:t1,tagName:"template"});let r=y(t.tagName),n=y(e.tagName);if(!t4[t.namespaceURI])return!1;if(t.namespaceURI===tK)return e.namespaceURI===t0?"svg"===r:e.namespaceURI===tX?"svg"===r&&("annotation-xml"===n||t3[n]):!!eo[r];if(t.namespaceURI===tX)return e.namespaceURI===t0?"math"===r:e.namespaceURI===tK?"math"===r&&t8[n]:!!ea[r];if(t.namespaceURI===t0)return(e.namespaceURI!==tK||!!t8[n])&&(e.namespaceURI!==tX||!!t3[n])&&!ea[r]&&(t6[r]||!eo[r]);return"application/xhtml+xml"===t7&&!!t4[t.namespaceURI]||!1},eu=function(t){p(i.removed,{element:t});try{to(t).removeChild(t)}catch(e){tr(t)}},el=function(t,e){try{p(i.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){p(i.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t){if(tj||tF)try{eu(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}}},ec=function(t){let e=null,n=null;if(tB)t="<remove></remove>"+t;else{let e=b(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===t7&&t1===t0&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");let i=r?r.createHTML(t):t;if(t1===t0)try{e=new W().parseFromString(i,t7)}catch(t){}if(!e||!e.documentElement){e=ts.createDocument(t1,"template",null);try{e.documentElement.innerHTML=t2?ta:i}catch(t){}}let a=e.body||e.documentElement;return(t&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),t1===t0)?tc.call(e,tP?"html":"body")[0]:tP?e.documentElement:a},eh=function(t){return tu.call(t.ownerDocument||t,t,H.SHOW_ELEMENT|H.SHOW_COMMENT|H.SHOW_TEXT|H.SHOW_PROCESSING_INSTRUCTION|H.SHOW_CDATA_SECTION,null)},ed=function(t){return t instanceof Z&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof V)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},ef=function(t){return"function"==typeof z&&t instanceof z};function ep(t,e,r){h(t,t=>{t.call(i,e,r,ee)})}let eg=function(t){let e=null;if(ep(td.beforeSanitizeElements,t,null),ed(t))return eu(t),!0;let r=et(t.nodeName);if(ep(td.uponSanitizeElement,t,{tagName:r,allowedTags:tD}),t.hasChildNodes()&&!ef(t.firstElementChild)&&x(/<[/\w]/g,t.innerHTML)&&x(/<[/\w]/g,t.textContent)||t.nodeType===J.progressingInstruction||tL&&t.nodeType===J.comment&&x(/<[/\w]/g,t.data))return eu(t),!0;if(!tD[r]||t_[r]){if(!t_[r]&&em(r)&&(tM.tagNameCheck instanceof RegExp&&x(tM.tagNameCheck,r)||tM.tagNameCheck instanceof Function&&tM.tagNameCheck(r)))return!1;if(tH&&!tG[r]){let e=to(t)||t.parentNode,r=ti(t)||t.childNodes;if(r&&e){let n=r.length;for(let i=n-1;i>=0;--i){let n=te(r[i],!0);n.__removalCount=(t.__removalCount||0)+1,e.insertBefore(n,tn(t))}}}return eu(t),!0}return t instanceof q&&!es(t)||("noscript"===r||"noembed"===r||"noframes"===r)&&x(/<\/no(script|embed|frames)/i,t.innerHTML)?(eu(t),!0):(tk&&t.nodeType===J.text&&(e=t.textContent,h([tf,tp,tg],t=>{e=w(e,t," ")}),t.textContent!==e&&(p(i.removed,{element:t.cloneNode()}),t.textContent=e)),ep(td.afterSanitizeElements,t,null),!1)},ey=function(t,e,r){if(tz&&("id"===e||"name"===e)&&(r in o||r in er))return!1;if(tC&&!tN[e]&&x(ty,e));else if(tT&&x(tm,e));else if(!tx[e]||tN[e]){if(!(em(t)&&(tM.tagNameCheck instanceof RegExp&&x(tM.tagNameCheck,t)||tM.tagNameCheck instanceof Function&&tM.tagNameCheck(t))&&(tM.attributeNameCheck instanceof RegExp&&x(tM.attributeNameCheck,e)||tM.attributeNameCheck instanceof Function&&tM.attributeNameCheck(e))||"is"===e&&tM.allowCustomizedBuiltInElements&&(tM.tagNameCheck instanceof RegExp&&x(tM.tagNameCheck,r)||tM.tagNameCheck instanceof Function&&tM.tagNameCheck(r))))return!1}else if(tQ[e]);else if(x(tA,w(r,tb,"")));else if(("src"===e||"xlink:href"===e||"href"===e)&&"script"!==t&&0===A(r,"data:")&&tY[t]);else if(tI&&!x(tv,w(r,tb,"")));else if(r)return!1;return!0},em=function(t){return"annotation-xml"!==t&&b(t,tw)},ev=function(t){ep(td.beforeSanitizeAttributes,t,null);let{attributes:e}=t;if(!e||ed(t))return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:tx,forceKeepAttr:void 0},o=e.length;for(;o--;){let{name:a,namespaceURI:s,value:u}=e[o],l=et(a),c="value"===a?u:D(u);if(n.attrName=l,n.attrValue=c,n.keepAttr=!0,n.forceKeepAttr=void 0,ep(td.uponSanitizeAttribute,t,n),c=n.attrValue,tq&&("id"===l||"name"===l)&&(el(a,t),c="user-content-"+c),tL&&x(/((--!?|])>)|<\/(style|title)/i,c)){el(a,t);continue}if(n.forceKeepAttr)continue;if(el(a,t),!n.keepAttr)continue;if(!tO&&x(/\/>/i,c)){el(a,t);continue}tk&&h([tf,tp,tg],t=>{c=w(c,t," ")});let d=et(t.nodeName);if(!!ey(d,l,c)){if(r&&"object"==typeof Y&&"function"==typeof Y.getAttributeType){if(s);else switch(Y.getAttributeType(d,l)){case"TrustedHTML":c=r.createHTML(c);break;case"TrustedScriptURL":c=r.createScriptURL(c)}}try{s?t.setAttributeNS(s,a,c):t.setAttribute(a,c),ed(t)?eu(t):f(i.removed)}catch(t){}}}ep(td.afterSanitizeAttributes,t,null)},eb=function t(e){let r=null,n=eh(e);for(ep(td.beforeSanitizeShadowDOM,e,null);r=n.nextNode();)ep(td.uponSanitizeShadowNode,r,null),eg(r),ev(r),r.content instanceof c&&t(r.content);ep(td.afterSanitizeShadowDOM,e,null)};return i.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,a=null,u=null;if((t2=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!ef(t)){if("function"==typeof t.toString){if("string"!=typeof(t=t.toString()))throw S("dirty is not a string, aborting")}else throw S("toString is not a function")}if(!i.isSupported)return t;if(!tR&&ei(e),i.removed=[],"string"==typeof t&&(tV=!1),tV){if(t.nodeName){let e=et(t.nodeName);if(!tD[e]||t_[e])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof z)(o=(n=ec("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType===J.element&&"BODY"===o.nodeName?n=o:"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!tj&&!tk&&!tP&&-1===t.indexOf("<"))return r&&tU?r.createHTML(t):t;if(!(n=ec(t)))return tj?null:tU?ta:""}n&&tB&&eu(n.firstChild);let l=eh(tV?t:n);for(;a=l.nextNode();)eg(a),ev(a),a.content instanceof c&&eb(a.content);if(tV)return t;if(tj){if(tF)for(u=tl.call(n.ownerDocument);n.firstChild;)u.appendChild(n.firstChild);else u=n;return(tx.shadowroot||tx.shadowrootmode)&&(u=th.call(s,u,!0)),u}let d=tP?n.outerHTML:n.innerHTML;return tP&&tD["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&x($,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),tk&&h([tf,tp,tg],t=>{d=w(d,t," ")}),r&&tU?r.createHTML(d):d},i.setConfig=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ei(t),tR=!0},i.clearConfig=function(){ee=null,tR=!1},i.isValidAttribute=function(t,e,r){!ee&&ei({});let n=et(t);return ey(n,et(e),r)},i.addHook=function(t,e){if("function"==typeof e)p(td[t],e)},i.removeHook=function(t,e){if(void 0!==e){let r=d(td[t],e);return -1===r?void 0:g(td[t],r,1)[0]}return f(td[t])},i.removeHooks=function(t){td[t]=[]},i.removeAllHooks=function(){td=K()},i}();t.exports=tt},472786:function(t,e,r){"use strict";var n,i=r(825951),o=r(94758);try{n=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,u=s.getPrototypeOf;t.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof u&&function(t){return u(null==t?t:s(t))}},585173:function(t){"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},500641:function(t){"use strict";t.exports=EvalError},227442:function(t){"use strict";t.exports=Error},966965:function(t){"use strict";t.exports=RangeError},665789:function(t){"use strict";t.exports=ReferenceError},737267:function(t){"use strict";t.exports=SyntaxError},951637:function(t){"use strict";t.exports=TypeError},937464:function(t){"use strict";t.exports=URIError},254367:function(t){"use strict";t.exports=Object},950829:function(t){"use strict";var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,n,o,a){if("function"!=typeof n)throw TypeError("The listener must be a function");var s=new i(n,o||t,a),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],s]:t._events[u].push(s):(t._events[u]=s,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),!new n().__proto__&&(r=!1)),s.prototype.eventNames=function(){var t,n,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},s.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=Array(o);i<o;i++)a[i]=n[i].fn;return a},s.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},s.prototype.emit=function(t,e,n,i,o,a){var s=r?r+t:t;if(!this._events[s])return!1;var u,l,c=this._events[s],h=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),h){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,i),!0;case 5:return c.fn.call(c.context,e,n,i,o),!0;case 6:return c.fn.call(c.context,e,n,i,o,a),!0}for(l=1,u=Array(h-1);l<h;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var d,f=c.length;for(l=0;l<f;l++)switch(c[l].once&&this.removeListener(t,c[l].fn,void 0,!0),h){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,e);break;case 3:c[l].fn.call(c[l].context,e,n);break;case 4:c[l].fn.call(c[l].context,e,n,i);break;default:if(!u)for(d=1,u=Array(h-1);d<h;d++)u[d-1]=arguments[d];c[l].fn.apply(c[l].context,u)}}return!0},s.prototype.on=function(t,e,r){return o(this,t,e,r,!1)},s.prototype.once=function(t,e,r){return o(this,t,e,r,!0)},s.prototype.removeListener=function(t,e,n,i){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn===e&&(!i||s.once)&&(!n||s.context===n)&&a(this,o);else{for(var u=0,l=[],c=s.length;u<c;u++)(s[u].fn!==e||i&&!s[u].once||n&&s[u].context!==n)&&l.push(s[u]);l.length?this._events[o]=1===l.length?l[0]:l:a(this,o)}return this},s.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s;t.exports=s},690880:function(t,e){var r;r=0,function(t){"use strict";var e=Object.keys;function r(t,e){return t===e||t!=t&&e!=e}function n(t){return t.constructor===Object||null==t.constructor}function i(t){return!!t&&"function"==typeof t.then}function o(t){return!!(t&&t.$$typeof)}function a(){var t=[];return{add:function(e){t.push(e)},has:function(e){return -1!==t.indexOf(e)}}}var s="function"==typeof WeakSet?function(){return new WeakSet}:a;function u(t){return function(e){var r=t||e;return function(t,e,n){void 0===n&&(n=s());var i=!!t&&"object"==typeof t,o=!!e&&"object"==typeof e;if(i||o){var a=i&&n.has(t),u=o&&n.has(e);if(a||u)return a&&u;i&&n.add(t),o&&n.add(e)}return r(t,e,n)}}}var l=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function c(t,r,n,i){var a=e(t),s=a.length;if(e(r).length!==s)return!1;if(s){for(var u=void 0;s-- >0;){if("_owner"===(u=a[s])){var c=o(t),h=o(r);if((c||h)&&c!==h)return!1}if(!l(r,u)||!n(t[u],r[u],i))return!1}}return!0}var h="function"==typeof Map,d="function"==typeof Set;function f(t){var e="function"==typeof t?t(o):o;function o(t,o,a){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(n(t)&&n(o))return c(t,o,e,a);var s,u,l=Array.isArray(t),f=Array.isArray(o);if(l||f)return l===f&&function(t,e,r,n){var i=t.length;if(e.length!==i)return!1;for(;i-- >0;)if(!r(t[i],e[i],n))return!1;return!0}(t,o,e,a);if(l=t instanceof Date,f=o instanceof Date,l||f)return l===f&&r(t.getTime(),o.getTime());if(l=t instanceof RegExp,f=o instanceof RegExp,l||f){;return l===f&&(s=t,u=o,s.source===u.source&&s.global===u.global&&s.ignoreCase===u.ignoreCase&&s.multiline===u.multiline&&s.unicode===u.unicode&&s.sticky===u.sticky&&s.lastIndex===u.lastIndex)}return i(t)||i(o)?t===o:h&&(l=t instanceof Map,f=o instanceof Map,l||f)?l===f&&function(t,e,r,n){var i=t.size===e.size;if(i&&t.size){var o={};t.forEach(function(t,a){if(i){var s=!1,u=0;e.forEach(function(e,i){!s&&!o[u]&&(s=r(a,i,n)&&r(t,e,n))&&(o[u]=!0),u++}),i=s}})}return i}(t,o,e,a):d&&(l=t instanceof Set,f=o instanceof Set,l||f)?l===f&&function(t,e,r,n){var i=t.size===e.size;if(i&&t.size){var o={};t.forEach(function(t){if(i){var a=!1,s=0;e.forEach(function(e){!a&&!o[s]&&(a=r(t,e,n))&&(o[s]=!0),s++}),i=a}})}return i}(t,o,e,a):c(t,o,e,a)}return t!=t&&o!=o}return o}var p=f(),g=f(function(){return r}),y=f(u()),m=f(u(r));t.circularDeepEqual=y,t.circularShallowEqual=m,t.createCustomEqual=f,t.deepEqual=p,t.sameValueZeroEqual=r,t.shallowEqual=g,Object.defineProperty(t,"__esModule",{value:!0})}(e)},54969:function(t){"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var i=0;i<e.length;i+=1)r[i+t.length]=e[i];return r},i=function(t,e){for(var r=[],n=e||0,i=0;n<t.length;n+=1,i+=1)r[i]=t[n];return r},o=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};t.exports=function(t){var a,s=this;if("function"!=typeof s||"[object Function]"!==e.apply(s))throw TypeError("Function.prototype.bind called on incompatible "+s);for(var u=i(arguments,1),l=r(0,s.length-u.length),c=[],h=0;h<l;h++)c[h]="$"+h;if(a=Function("binder","return function ("+o(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var e=s.apply(this,n(u,arguments));return Object(e)===e?e:this}return s.apply(t,n(u,arguments))}),s.prototype){var d=function(){};d.prototype=s.prototype,a.prototype=new d,d.prototype=null}return a}},619914:function(t,e,r){"use strict";var n=r(54969);t.exports=Function.prototype.bind||n},380217:function(t,e,r){"use strict";var n,i=r(254367),o=r(227442),a=r(500641),s=r(966965),u=r(665789),l=r(737267),c=r(951637),h=r(937464),d=r(324637),f=r(209071),p=r(993208),g=r(197702),y=r(120635),m=r(506039),b=r(980668),w=Function,A=function(t){try{return w('"use strict"; return ('+t+").constructor;")()}catch(t){}},D=r(94758),E=r(585173),x=function(){throw new c},S=D?function(){try{return arguments.callee,x}catch(t){try{return D(arguments,"callee").get}catch(t){return x}}}():x,M=r(791259)(),_=r(957407),N=r(657125),T=r(548614),C=r(300),I=r(68110),O={},k="undefined"!=typeof Uint8Array&&_?_(Uint8Array):n,L={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":M&&_?_([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":O,"%AsyncGenerator%":O,"%AsyncGeneratorFunction%":O,"%AsyncIteratorPrototype%":O,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":O,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":M&&_?_(_([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&M&&_?_(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":D,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&M&&_?_(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":M&&_?_(""[Symbol.iterator]()):n,"%Symbol%":M?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":S,"%TypedArray%":k,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":h,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":I,"%Function.prototype.apply%":C,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":N,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":g,"%Math.pow%":y,"%Math.round%":m,"%Math.sign%":b,"%Reflect.getPrototypeOf%":T};if(_)try{null.error}catch(t){var P=_(_(t));L["%Error.prototype%"]=P}var R=function t(e){var r;if("%AsyncFunction%"===e)r=A("async function () {}");else if("%GeneratorFunction%"===e)r=A("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=A("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&_&&(r=_(i.prototype))}return L[e]=r,r},B={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},j=r(619914),F=r(36902),U=j.call(I,Array.prototype.concat),z=j.call(C,Array.prototype.splice),q=j.call(I,String.prototype.replace),H=j.call(I,String.prototype.slice),V=j.call(I,RegExp.prototype.exec),Z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,W=function(t){var e=H(t,0,1),r=H(t,-1);if("%"===e&&"%"!==r)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return q(t,Z,function(t,e,r,i){n[n.length]=r?q(i,G,"$1"):e||t}),n},Y=function(t,e){var r,n=t;if(F(B,n)&&(n="%"+(r=B[n])[0]+"%"),F(L,n)){var i=L[n];if(i===O&&(i=R(n)),void 0===i&&!e)throw new c("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new l("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new c('"allowMissing" argument must be a boolean');if(null===V(/^%?[^%]*%?$/,t))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=W(t),n=r.length>0?r[0]:"",i=Y("%"+n+"%",e),o=i.name,a=i.value,s=!1,u=i.alias;u&&(n=u[0],z(r,U([0,1],u)));for(var h=1,d=!0;h<r.length;h+=1){var f=r[h],p=H(f,0,1),g=H(f,-1);if(('"'===p||"'"===p||"`"===p||'"'===g||"'"===g||"`"===g)&&p!==g)throw new l("property names with quotes must have matching quotes");if(("constructor"===f||!d)&&(s=!0),n+="."+f,F(L,o="%"+n+"%"))a=L[o];else if(null!=a){if(!(f in a)){if(!e)throw new c("base intrinsic for "+t+" exists, but the property is not available.");return}if(D&&h+1>=r.length){var y=D(a,f);a=(d=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[f]}else d=F(a,f),a=a[f];d&&!s&&(L[o]=a)}}return a}},657125:function(t,e,r){"use strict";var n=r(254367);t.exports=n.getPrototypeOf||null},548614:function(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},957407:function(t,e,r){"use strict";var n=r(548614),i=r(657125),o=r(472786);t.exports=n?function(t){return n(t)}:i?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("getProto: not an object");return i(t)}:o?function(t){return o(t)}:null},860985:function(t){"use strict";t.exports=Object.getOwnPropertyDescriptor},94758:function(t,e,r){"use strict";var n=r(860985);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},434447:function(t){t.exports&&(t.exports=function(){function t(t,e){void 0===e&&(e=0);var r=t.charCodeAt(e);if(55296<=r&&r<=56319&&e<t.length-1){var n=r,i=t.charCodeAt(e+1);return 56320<=i&&i<=57343?(n-55296)*1024+(i-56320)+65536:n}if(56320<=r&&r<=57343&&e>=1){var n=t.charCodeAt(e-1),i=r;return 55296<=n&&n<=56319?(n-55296)*1024+(i-56320)+65536:i}return r}function e(t){return 1536<=t&&t<=1541||1757==t||1807==t||2274==t||3406==t||69821==t||70082<=t&&t<=70083||72250==t||72326<=t&&t<=72329||73030==t?12:13==t?0:10==t?1:0<=t&&t<=9||11<=t&&t<=12||14<=t&&t<=31||127<=t&&t<=159||173==t||1564==t||6158==t||8203==t||8206<=t&&t<=8207||8232==t||8233==t||8234<=t&&t<=8238||8288<=t&&t<=8292||8293==t||8294<=t&&t<=8303||55296<=t&&t<=57343||65279==t||65520<=t&&t<=65528||65529<=t&&t<=65531||113824<=t&&t<=113827||119155<=t&&t<=119162||917504==t||917505==t||917506<=t&&t<=917535||917632<=t&&t<=917759||918e3<=t&&t<=921599?2:768<=t&&t<=879||1155<=t&&t<=1159||1160<=t&&t<=1161||1425<=t&&t<=1469||1471==t||1473<=t&&t<=1474||1476<=t&&t<=1477||1479==t||1552<=t&&t<=1562||1611<=t&&t<=1631||1648==t||1750<=t&&t<=1756||1759<=t&&t<=1764||1767<=t&&t<=1768||1770<=t&&t<=1773||1809==t||1840<=t&&t<=1866||1958<=t&&t<=1968||2027<=t&&t<=2035||2070<=t&&t<=2073||2075<=t&&t<=2083||2085<=t&&t<=2087||2089<=t&&t<=2093||2137<=t&&t<=2139||2260<=t&&t<=2273||2275<=t&&t<=2306||2362==t||2364==t||2369<=t&&t<=2376||2381==t||2385<=t&&t<=2391||2402<=t&&t<=2403||2433==t||2492==t||2494==t||2497<=t&&t<=2500||2509==t||2519==t||2530<=t&&t<=2531||2561<=t&&t<=2562||2620==t||2625<=t&&t<=2626||2631<=t&&t<=2632||2635<=t&&t<=2637||2641==t||2672<=t&&t<=2673||2677==t||2689<=t&&t<=2690||2748==t||2753<=t&&t<=2757||2759<=t&&t<=2760||2765==t||2786<=t&&t<=2787||2810<=t&&t<=2815||2817==t||2876==t||2878==t||2879==t||2881<=t&&t<=2884||2893==t||2902==t||2903==t||2914<=t&&t<=2915||2946==t||3006==t||3008==t||3021==t||3031==t||3072==t||3134<=t&&t<=3136||3142<=t&&t<=3144||3146<=t&&t<=3149||3157<=t&&t<=3158||3170<=t&&t<=3171||3201==t||3260==t||3263==t||3266==t||3270==t||3276<=t&&t<=3277||3285<=t&&t<=3286||3298<=t&&t<=3299||3328<=t&&t<=3329||3387<=t&&t<=3388||3390==t||3393<=t&&t<=3396||3405==t||3415==t||3426<=t&&t<=3427||3530==t||3535==t||3538<=t&&t<=3540||3542==t||3551==t||3633==t||3636<=t&&t<=3642||3655<=t&&t<=3662||3761==t||3764<=t&&t<=3769||3771<=t&&t<=3772||3784<=t&&t<=3789||3864<=t&&t<=3865||3893==t||3895==t||3897==t||3953<=t&&t<=3966||3968<=t&&t<=3972||3974<=t&&t<=3975||3981<=t&&t<=3991||3993<=t&&t<=4028||4038==t||4141<=t&&t<=4144||4146<=t&&t<=4151||4153<=t&&t<=4154||4157<=t&&t<=4158||4184<=t&&t<=4185||4190<=t&&t<=4192||4209<=t&&t<=4212||4226==t||4229<=t&&t<=4230||4237==t||4253==t||4957<=t&&t<=4959||5906<=t&&t<=5908||5938<=t&&t<=5940||5970<=t&&t<=5971||6002<=t&&t<=6003||6068<=t&&t<=6069||6071<=t&&t<=6077||6086==t||6089<=t&&t<=6099||6109==t||6155<=t&&t<=6157||6277<=t&&t<=6278||6313==t||6432<=t&&t<=6434||6439<=t&&t<=6440||6450==t||6457<=t&&t<=6459||6679<=t&&t<=6680||6683==t||6742==t||6744<=t&&t<=6750||6752==t||6754==t||6757<=t&&t<=6764||6771<=t&&t<=6780||6783==t||6832<=t&&t<=6845||6846==t||6912<=t&&t<=6915||6964==t||6966<=t&&t<=6970||6972==t||6978==t||7019<=t&&t<=7027||7040<=t&&t<=7041||7074<=t&&t<=7077||7080<=t&&t<=7081||7083<=t&&t<=7085||7142==t||7144<=t&&t<=7145||7149==t||7151<=t&&t<=7153||7212<=t&&t<=7219||7222<=t&&t<=7223||7376<=t&&t<=7378||7380<=t&&t<=7392||7394<=t&&t<=7400||7405==t||7412==t||7416<=t&&t<=7417||7616<=t&&t<=7673||7675<=t&&t<=7679||8204==t||8400<=t&&t<=8412||8413<=t&&t<=8416||8417==t||8418<=t&&t<=8420||8421<=t&&t<=8432||11503<=t&&t<=11505||11647==t||11744<=t&&t<=11775||12330<=t&&t<=12333||12334<=t&&t<=12335||12441<=t&&t<=12442||42607==t||42608<=t&&t<=42610||42612<=t&&t<=42621||42654<=t&&t<=42655||42736<=t&&t<=42737||43010==t||43014==t||43019==t||43045<=t&&t<=43046||43204<=t&&t<=43205||43232<=t&&t<=43249||43302<=t&&t<=43309||43335<=t&&t<=43345||43392<=t&&t<=43394||43443==t||43446<=t&&t<=43449||43452==t||43493==t||43561<=t&&t<=43566||43569<=t&&t<=43570||43573<=t&&t<=43574||43587==t||43596==t||43644==t||43696==t||43698<=t&&t<=43700||43703<=t&&t<=43704||43710<=t&&t<=43711||43713==t||43756<=t&&t<=43757||43766==t||44005==t||44008==t||44013==t||64286==t||65024<=t&&t<=65039||65056<=t&&t<=65071||65438<=t&&t<=65439||66045==t||66272==t||66422<=t&&t<=66426||68097<=t&&t<=68099||68101<=t&&t<=68102||68108<=t&&t<=68111||68152<=t&&t<=68154||68159==t||68325<=t&&t<=68326||69633==t||69688<=t&&t<=69702||69759<=t&&t<=69761||69811<=t&&t<=69814||69817<=t&&t<=69818||69888<=t&&t<=69890||69927<=t&&t<=69931||69933<=t&&t<=69940||70003==t||70016<=t&&t<=70017||70070<=t&&t<=70078||70090<=t&&t<=70092||70191<=t&&t<=70193||70196==t||70198<=t&&t<=70199||70206==t||70367==t||70371<=t&&t<=70378||70400<=t&&t<=70401||70460==t||70462==t||70464==t||70487==t||70502<=t&&t<=70508||70512<=t&&t<=70516||70712<=t&&t<=70719||70722<=t&&t<=70724||70726==t||70832==t||70835<=t&&t<=70840||70842==t||70845==t||70847<=t&&t<=70848||70850<=t&&t<=70851||71087==t||71090<=t&&t<=71093||71100<=t&&t<=71101||71103<=t&&t<=71104||71132<=t&&t<=71133||71219<=t&&t<=71226||71229==t||71231<=t&&t<=71232||71339==t||71341==t||71344<=t&&t<=71349||71351==t||71453<=t&&t<=71455||71458<=t&&t<=71461||71463<=t&&t<=71467||72193<=t&&t<=72198||72201<=t&&t<=72202||72243<=t&&t<=72248||72251<=t&&t<=72254||72263==t||72273<=t&&t<=72278||72281<=t&&t<=72283||72330<=t&&t<=72342||72344<=t&&t<=72345||72752<=t&&t<=72758||72760<=t&&t<=72765||72767==t||72850<=t&&t<=72871||72874<=t&&t<=72880||72882<=t&&t<=72883||72885<=t&&t<=72886||73009<=t&&t<=73014||73018==t||73020<=t&&t<=73021||73023<=t&&t<=73029||73031==t||92912<=t&&t<=92916||92976<=t&&t<=92982||94095<=t&&t<=94098||113821<=t&&t<=113822||119141==t||119143<=t&&t<=119145||119150<=t&&t<=119154||119163<=t&&t<=119170||119173<=t&&t<=119179||119210<=t&&t<=119213||119362<=t&&t<=119364||121344<=t&&t<=121398||121403<=t&&t<=121452||121461==t||121476==t||121499<=t&&t<=121503||121505<=t&&t<=121519||122880<=t&&t<=122886||122888<=t&&t<=122904||122907<=t&&t<=122913||122915<=t&&t<=122916||122918<=t&&t<=122922||125136<=t&&t<=125142||125252<=t&&t<=125258||917536<=t&&t<=917631||917760<=t&&t<=917999?3:127462<=t&&t<=127487?4:2307==t||2363==t||2366<=t&&t<=2368||2377<=t&&t<=2380||2382<=t&&t<=2383||2434<=t&&t<=2435||2495<=t&&t<=2496||2503<=t&&t<=2504||2507<=t&&t<=2508||2563==t||2622<=t&&t<=2624||2691==t||2750<=t&&t<=2752||2761==t||2763<=t&&t<=2764||2818<=t&&t<=2819||2880==t||2887<=t&&t<=2888||2891<=t&&t<=2892||3007==t||3009<=t&&t<=3010||3014<=t&&t<=3016||3018<=t&&t<=3020||3073<=t&&t<=3075||3137<=t&&t<=3140||3202<=t&&t<=3203||3262==t||3264<=t&&t<=3265||3267<=t&&t<=3268||3271<=t&&t<=3272||3274<=t&&t<=3275||3330<=t&&t<=3331||3391<=t&&t<=3392||3398<=t&&t<=3400||3402<=t&&t<=3404||3458<=t&&t<=3459||3536<=t&&t<=3537||3544<=t&&t<=3550||3570<=t&&t<=3571||3635==t||3763==t||3902<=t&&t<=3903||3967==t||4145==t||4155<=t&&t<=4156||4182<=t&&t<=4183||4228==t||6070==t||6078<=t&&t<=6085||6087<=t&&t<=6088||6435<=t&&t<=6438||6441<=t&&t<=6443||6448<=t&&t<=6449||6451<=t&&t<=6456||6681<=t&&t<=6682||6741==t||6743==t||6765<=t&&t<=6770||6916==t||6965==t||6971==t||6973<=t&&t<=6977||6979<=t&&t<=6980||7042==t||7073==t||7078<=t&&t<=7079||7082==t||7143==t||7146<=t&&t<=7148||7150==t||7154<=t&&t<=7155||7204<=t&&t<=7211||7220<=t&&t<=7221||7393==t||7410<=t&&t<=7411||7415==t||43043<=t&&t<=43044||43047==t||43136<=t&&t<=43137||43188<=t&&t<=43203||43346<=t&&t<=43347||43395==t||43444<=t&&t<=43445||43450<=t&&t<=43451||43453<=t&&t<=43456||43567<=t&&t<=43568||43571<=t&&t<=43572||43597==t||43755==t||43758<=t&&t<=43759||43765==t||44003<=t&&t<=44004||44006<=t&&t<=44007||44009<=t&&t<=44010||44012==t||69632==t||69634==t||69762==t||69808<=t&&t<=69810||69815<=t&&t<=69816||69932==t||70018==t||70067<=t&&t<=70069||70079<=t&&t<=70080||70188<=t&&t<=70190||70194<=t&&t<=70195||70197==t||70368<=t&&t<=70370||70402<=t&&t<=70403||70463==t||70465<=t&&t<=70468||70471<=t&&t<=70472||70475<=t&&t<=70477||70498<=t&&t<=70499||70709<=t&&t<=70711||70720<=t&&t<=70721||70725==t||70833<=t&&t<=70834||70841==t||70843<=t&&t<=70844||70846==t||70849==t||71088<=t&&t<=71089||71096<=t&&t<=71099||71102==t||71216<=t&&t<=71218||71227<=t&&t<=71228||71230==t||71340==t||71342<=t&&t<=71343||71350==t||71456<=t&&t<=71457||71462==t||72199<=t&&t<=72200||72249==t||72279<=t&&t<=72280||72343==t||72751==t||72766==t||72873==t||72881==t||72884==t||94033<=t&&t<=94078||119142==t||119149==t?5:4352<=t&&t<=4447||43360<=t&&t<=43388?6:4448<=t&&t<=4519||55216<=t&&t<=55238?7:4520<=t&&t<=4607||55243<=t&&t<=55291?8:44032==t||44060==t||44088==t||44116==t||44144==t||44172==t||44200==t||44228==t||44256==t||44284==t||44312==t||44340==t||44368==t||44396==t||44424==t||44452==t||44480==t||44508==t||44536==t||44564==t||44592==t||44620==t||44648==t||44676==t||44704==t||44732==t||44760==t||44788==t||44816==t||44844==t||44872==t||44900==t||44928==t||44956==t||44984==t||45012==t||45040==t||45068==t||45096==t||45124==t||45152==t||45180==t||45208==t||45236==t||45264==t||45292==t||45320==t||45348==t||45376==t||45404==t||45432==t||45460==t||45488==t||45516==t||45544==t||45572==t||45600==t||45628==t||45656==t||45684==t||45712==t||45740==t||45768==t||45796==t||45824==t||45852==t||45880==t||45908==t||45936==t||45964==t||45992==t||46020==t||46048==t||46076==t||46104==t||46132==t||46160==t||46188==t||46216==t||46244==t||46272==t||46300==t||46328==t||46356==t||46384==t||46412==t||46440==t||46468==t||46496==t||46524==t||46552==t||46580==t||46608==t||46636==t||46664==t||46692==t||46720==t||46748==t||46776==t||46804==t||46832==t||46860==t||46888==t||46916==t||46944==t||46972==t||47e3==t||47028==t||47056==t||47084==t||47112==t||47140==t||47168==t||47196==t||47224==t||47252==t||47280==t||47308==t||47336==t||47364==t||47392==t||47420==t||47448==t||47476==t||47504==t||47532==t||47560==t||47588==t||47616==t||47644==t||47672==t||47700==t||47728==t||47756==t||47784==t||47812==t||47840==t||47868==t||47896==t||47924==t||47952==t||47980==t||48008==t||48036==t||48064==t||48092==t||48120==t||48148==t||48176==t||48204==t||48232==t||48260==t||48288==t||48316==t||48344==t||48372==t||48400==t||48428==t||48456==t||48484==t||48512==t||48540==t||48568==t||48596==t||48624==t||48652==t||48680==t||48708==t||48736==t||48764==t||48792==t||48820==t||48848==t||48876==t||48904==t||48932==t||48960==t||48988==t||49016==t||49044==t||49072==t||49100==t||49128==t||49156==t||49184==t||49212==t||49240==t||49268==t||49296==t||49324==t||49352==t||49380==t||49408==t||49436==t||49464==t||49492==t||49520==t||49548==t||49576==t||49604==t||49632==t||49660==t||49688==t||49716==t||49744==t||49772==t||49800==t||49828==t||49856==t||49884==t||49912==t||49940==t||49968==t||49996==t||50024==t||50052==t||50080==t||50108==t||50136==t||50164==t||50192==t||50220==t||50248==t||50276==t||50304==t||50332==t||50360==t||50388==t||50416==t||50444==t||50472==t||50500==t||50528==t||50556==t||50584==t||50612==t||50640==t||50668==t||50696==t||50724==t||50752==t||50780==t||50808==t||50836==t||50864==t||50892==t||50920==t||50948==t||50976==t||51004==t||51032==t||51060==t||51088==t||51116==t||51144==t||51172==t||51200==t||51228==t||51256==t||51284==t||51312==t||51340==t||51368==t||51396==t||51424==t||51452==t||51480==t||51508==t||51536==t||51564==t||51592==t||51620==t||51648==t||51676==t||51704==t||51732==t||51760==t||51788==t||51816==t||51844==t||51872==t||51900==t||51928==t||51956==t||51984==t||52012==t||52040==t||52068==t||52096==t||52124==t||52152==t||52180==t||52208==t||52236==t||52264==t||52292==t||52320==t||52348==t||52376==t||52404==t||52432==t||52460==t||52488==t||52516==t||52544==t||52572==t||52600==t||52628==t||52656==t||52684==t||52712==t||52740==t||52768==t||52796==t||52824==t||52852==t||52880==t||52908==t||52936==t||52964==t||52992==t||53020==t||53048==t||53076==t||53104==t||53132==t||53160==t||53188==t||53216==t||53244==t||53272==t||53300==t||53328==t||53356==t||53384==t||53412==t||53440==t||53468==t||53496==t||53524==t||53552==t||53580==t||53608==t||53636==t||53664==t||53692==t||53720==t||53748==t||53776==t||53804==t||53832==t||53860==t||53888==t||53916==t||53944==t||53972==t||54e3==t||54028==t||54056==t||54084==t||54112==t||54140==t||54168==t||54196==t||54224==t||54252==t||54280==t||54308==t||54336==t||54364==t||54392==t||54420==t||54448==t||54476==t||54504==t||54532==t||54560==t||54588==t||54616==t||54644==t||54672==t||54700==t||54728==t||54756==t||54784==t||54812==t||54840==t||54868==t||54896==t||54924==t||54952==t||54980==t||55008==t||55036==t||55064==t||55092==t||55120==t||55148==t||55176==t?9:44033<=t&&t<=44059||44061<=t&&t<=44087||44089<=t&&t<=44115||44117<=t&&t<=44143||44145<=t&&t<=44171||44173<=t&&t<=44199||44201<=t&&t<=44227||44229<=t&&t<=44255||44257<=t&&t<=44283||44285<=t&&t<=44311||44313<=t&&t<=44339||44341<=t&&t<=44367||44369<=t&&t<=44395||44397<=t&&t<=44423||44425<=t&&t<=44451||44453<=t&&t<=44479||44481<=t&&t<=44507||44509<=t&&t<=44535||44537<=t&&t<=44563||44565<=t&&t<=44591||44593<=t&&t<=44619||44621<=t&&t<=44647||44649<=t&&t<=44675||44677<=t&&t<=44703||44705<=t&&t<=44731||44733<=t&&t<=44759||44761<=t&&t<=44787||44789<=t&&t<=44815||44817<=t&&t<=44843||44845<=t&&t<=44871||44873<=t&&t<=44899||44901<=t&&t<=44927||44929<=t&&t<=44955||44957<=t&&t<=44983||44985<=t&&t<=45011||45013<=t&&t<=45039||45041<=t&&t<=45067||45069<=t&&t<=45095||45097<=t&&t<=45123||45125<=t&&t<=45151||45153<=t&&t<=45179||45181<=t&&t<=45207||45209<=t&&t<=45235||45237<=t&&t<=45263||45265<=t&&t<=45291||45293<=t&&t<=45319||45321<=t&&t<=45347||45349<=t&&t<=45375||45377<=t&&t<=45403||45405<=t&&t<=45431||45433<=t&&t<=45459||45461<=t&&t<=45487||45489<=t&&t<=45515||45517<=t&&t<=45543||45545<=t&&t<=45571||45573<=t&&t<=45599||45601<=t&&t<=45627||45629<=t&&t<=45655||45657<=t&&t<=45683||45685<=t&&t<=45711||45713<=t&&t<=45739||45741<=t&&t<=45767||45769<=t&&t<=45795||45797<=t&&t<=45823||45825<=t&&t<=45851||45853<=t&&t<=45879||45881<=t&&t<=45907||45909<=t&&t<=45935||45937<=t&&t<=45963||45965<=t&&t<=45991||45993<=t&&t<=46019||46021<=t&&t<=46047||46049<=t&&t<=46075||46077<=t&&t<=46103||46105<=t&&t<=46131||46133<=t&&t<=46159||46161<=t&&t<=46187||46189<=t&&t<=46215||46217<=t&&t<=46243||46245<=t&&t<=46271||46273<=t&&t<=46299||46301<=t&&t<=46327||46329<=t&&t<=46355||46357<=t&&t<=46383||46385<=t&&t<=46411||46413<=t&&t<=46439||46441<=t&&t<=46467||46469<=t&&t<=46495||46497<=t&&t<=46523||46525<=t&&t<=46551||46553<=t&&t<=46579||46581<=t&&t<=46607||46609<=t&&t<=46635||46637<=t&&t<=46663||46665<=t&&t<=46691||46693<=t&&t<=46719||46721<=t&&t<=46747||46749<=t&&t<=46775||46777<=t&&t<=46803||46805<=t&&t<=46831||46833<=t&&t<=46859||46861<=t&&t<=46887||46889<=t&&t<=46915||46917<=t&&t<=46943||46945<=t&&t<=46971||46973<=t&&t<=46999||47001<=t&&t<=47027||47029<=t&&t<=47055||47057<=t&&t<=47083||47085<=t&&t<=47111||47113<=t&&t<=47139||47141<=t&&t<=47167||47169<=t&&t<=47195||47197<=t&&t<=47223||47225<=t&&t<=47251||47253<=t&&t<=47279||47281<=t&&t<=47307||47309<=t&&t<=47335||47337<=t&&t<=47363||47365<=t&&t<=47391||47393<=t&&t<=47419||47421<=t&&t<=47447||47449<=t&&t<=47475||47477<=t&&t<=47503||47505<=t&&t<=47531||47533<=t&&t<=47559||47561<=t&&t<=47587||47589<=t&&t<=47615||47617<=t&&t<=47643||47645<=t&&t<=47671||47673<=t&&t<=47699||47701<=t&&t<=47727||47729<=t&&t<=47755||47757<=t&&t<=47783||47785<=t&&t<=47811||47813<=t&&t<=47839||47841<=t&&t<=47867||47869<=t&&t<=47895||47897<=t&&t<=47923||47925<=t&&t<=47951||47953<=t&&t<=47979||47981<=t&&t<=48007||48009<=t&&t<=48035||48037<=t&&t<=48063||48065<=t&&t<=48091||48093<=t&&t<=48119||48121<=t&&t<=48147||48149<=t&&t<=48175||48177<=t&&t<=48203||48205<=t&&t<=48231||48233<=t&&t<=48259||48261<=t&&t<=48287||48289<=t&&t<=48315||48317<=t&&t<=48343||48345<=t&&t<=48371||48373<=t&&t<=48399||48401<=t&&t<=48427||48429<=t&&t<=48455||48457<=t&&t<=48483||48485<=t&&t<=48511||48513<=t&&t<=48539||48541<=t&&t<=48567||48569<=t&&t<=48595||48597<=t&&t<=48623||48625<=t&&t<=48651||48653<=t&&t<=48679||48681<=t&&t<=48707||48709<=t&&t<=48735||48737<=t&&t<=48763||48765<=t&&t<=48791||48793<=t&&t<=48819||48821<=t&&t<=48847||48849<=t&&t<=48875||48877<=t&&t<=48903||48905<=t&&t<=48931||48933<=t&&t<=48959||48961<=t&&t<=48987||48989<=t&&t<=49015||49017<=t&&t<=49043||49045<=t&&t<=49071||49073<=t&&t<=49099||49101<=t&&t<=49127||49129<=t&&t<=49155||49157<=t&&t<=49183||49185<=t&&t<=49211||49213<=t&&t<=49239||49241<=t&&t<=49267||49269<=t&&t<=49295||49297<=t&&t<=49323||49325<=t&&t<=49351||49353<=t&&t<=49379||49381<=t&&t<=49407||49409<=t&&t<=49435||49437<=t&&t<=49463||49465<=t&&t<=49491||49493<=t&&t<=49519||49521<=t&&t<=49547||49549<=t&&t<=49575||49577<=t&&t<=49603||49605<=t&&t<=49631||49633<=t&&t<=49659||49661<=t&&t<=49687||49689<=t&&t<=49715||49717<=t&&t<=49743||49745<=t&&t<=49771||49773<=t&&t<=49799||49801<=t&&t<=49827||49829<=t&&t<=49855||49857<=t&&t<=49883||49885<=t&&t<=49911||49913<=t&&t<=49939||49941<=t&&t<=49967||49969<=t&&t<=49995||49997<=t&&t<=50023||50025<=t&&t<=50051||50053<=t&&t<=50079||50081<=t&&t<=50107||50109<=t&&t<=50135||50137<=t&&t<=50163||50165<=t&&t<=50191||50193<=t&&t<=50219||50221<=t&&t<=50247||50249<=t&&t<=50275||50277<=t&&t<=50303||50305<=t&&t<=50331||50333<=t&&t<=50359||50361<=t&&t<=50387||50389<=t&&t<=50415||50417<=t&&t<=50443||50445<=t&&t<=50471||50473<=t&&t<=50499||50501<=t&&t<=50527||50529<=t&&t<=50555||50557<=t&&t<=50583||50585<=t&&t<=50611||50613<=t&&t<=50639||50641<=t&&t<=50667||50669<=t&&t<=50695||50697<=t&&t<=50723||50725<=t&&t<=50751||50753<=t&&t<=50779||50781<=t&&t<=50807||50809<=t&&t<=50835||50837<=t&&t<=50863||50865<=t&&t<=50891||50893<=t&&t<=50919||50921<=t&&t<=50947||50949<=t&&t<=50975||50977<=t&&t<=51003||51005<=t&&t<=51031||51033<=t&&t<=51059||51061<=t&&t<=51087||51089<=t&&t<=51115||51117<=t&&t<=51143||51145<=t&&t<=51171||51173<=t&&t<=51199||51201<=t&&t<=51227||51229<=t&&t<=51255||51257<=t&&t<=51283||51285<=t&&t<=51311||51313<=t&&t<=51339||51341<=t&&t<=51367||51369<=t&&t<=51395||51397<=t&&t<=51423||51425<=t&&t<=51451||51453<=t&&t<=51479||51481<=t&&t<=51507||51509<=t&&t<=51535||51537<=t&&t<=51563||51565<=t&&t<=51591||51593<=t&&t<=51619||51621<=t&&t<=51647||51649<=t&&t<=51675||51677<=t&&t<=51703||51705<=t&&t<=51731||51733<=t&&t<=51759||51761<=t&&t<=51787||51789<=t&&t<=51815||51817<=t&&t<=51843||51845<=t&&t<=51871||51873<=t&&t<=51899||51901<=t&&t<=51927||51929<=t&&t<=51955||51957<=t&&t<=51983||51985<=t&&t<=52011||52013<=t&&t<=52039||52041<=t&&t<=52067||52069<=t&&t<=52095||52097<=t&&t<=52123||52125<=t&&t<=52151||52153<=t&&t<=52179||52181<=t&&t<=52207||52209<=t&&t<=52235||52237<=t&&t<=52263||52265<=t&&t<=52291||52293<=t&&t<=52319||52321<=t&&t<=52347||52349<=t&&t<=52375||52377<=t&&t<=52403||52405<=t&&t<=52431||52433<=t&&t<=52459||52461<=t&&t<=52487||52489<=t&&t<=52515||52517<=t&&t<=52543||52545<=t&&t<=52571||52573<=t&&t<=52599||52601<=t&&t<=52627||52629<=t&&t<=52655||52657<=t&&t<=52683||52685<=t&&t<=52711||52713<=t&&t<=52739||52741<=t&&t<=52767||52769<=t&&t<=52795||52797<=t&&t<=52823||52825<=t&&t<=52851||52853<=t&&t<=52879||52881<=t&&t<=52907||52909<=t&&t<=52935||52937<=t&&t<=52963||52965<=t&&t<=52991||52993<=t&&t<=53019||53021<=t&&t<=53047||53049<=t&&t<=53075||53077<=t&&t<=53103||53105<=t&&t<=53131||53133<=t&&t<=53159||53161<=t&&t<=53187||53189<=t&&t<=53215||53217<=t&&t<=53243||53245<=t&&t<=53271||53273<=t&&t<=53299||53301<=t&&t<=53327||53329<=t&&t<=53355||53357<=t&&t<=53383||53385<=t&&t<=53411||53413<=t&&t<=53439||53441<=t&&t<=53467||53469<=t&&t<=53495||53497<=t&&t<=53523||53525<=t&&t<=53551||53553<=t&&t<=53579||53581<=t&&t<=53607||53609<=t&&t<=53635||53637<=t&&t<=53663||53665<=t&&t<=53691||53693<=t&&t<=53719||53721<=t&&t<=53747||53749<=t&&t<=53775||53777<=t&&t<=53803||53805<=t&&t<=53831||53833<=t&&t<=53859||53861<=t&&t<=53887||53889<=t&&t<=53915||53917<=t&&t<=53943||53945<=t&&t<=53971||53973<=t&&t<=53999||54001<=t&&t<=54027||54029<=t&&t<=54055||54057<=t&&t<=54083||54085<=t&&t<=54111||54113<=t&&t<=54139||54141<=t&&t<=54167||54169<=t&&t<=54195||54197<=t&&t<=54223||54225<=t&&t<=54251||54253<=t&&t<=54279||54281<=t&&t<=54307||54309<=t&&t<=54335||54337<=t&&t<=54363||54365<=t&&t<=54391||54393<=t&&t<=54419||54421<=t&&t<=54447||54449<=t&&t<=54475||54477<=t&&t<=54503||54505<=t&&t<=54531||54533<=t&&t<=54559||54561<=t&&t<=54587||54589<=t&&t<=54615||54617<=t&&t<=54643||54645<=t&&t<=54671||54673<=t&&t<=54699||54701<=t&&t<=54727||54729<=t&&t<=54755||54757<=t&&t<=54783||54785<=t&&t<=54811||54813<=t&&t<=54839||54841<=t&&t<=54867||54869<=t&&t<=54895||54897<=t&&t<=54923||54925<=t&&t<=54951||54953<=t&&t<=54979||54981<=t&&t<=55007||55009<=t&&t<=55035||55037<=t&&t<=55063||55065<=t&&t<=55091||55093<=t&&t<=55119||55121<=t&&t<=55147||55149<=t&&t<=55175||55177<=t&&t<=55203?10:9757==t||9977==t||9994<=t&&t<=9997||127877==t||127938<=t&&t<=127940||127943==t||127946<=t&&t<=127948||128066<=t&&t<=128067||128070<=t&&t<=128080||128110==t||128112<=t&&t<=128120||128124==t||128129<=t&&t<=128131||128133<=t&&t<=128135||128170==t||128372<=t&&t<=128373||128378==t||128400==t||128405<=t&&t<=128406||128581<=t&&t<=128583||128587<=t&&t<=128591||128675==t||128692<=t&&t<=128694||128704==t||128716==t||129304<=t&&t<=129308||129310<=t&&t<=129311||129318==t||129328<=t&&t<=129337||129341<=t&&t<=129342||129489<=t&&t<=129501?13:127995<=t&&t<=127999?14:8205==t?15:9792==t||9794==t||9877<=t&&t<=9878||9992==t||10084==t||127752==t||127806==t||127859==t||127891==t||127908==t||127912==t||127979==t||127981==t||128139==t||128187<=t&&t<=128188||128295==t||128300==t||128488==t||128640==t||128658==t?16:128102<=t&&t<=128105?17:11}return this.nextBreak=function(r,n){if(void 0===n&&(n=0),n<0)return 0;if(n>=r.length-1)return r.length;for(var i=e(t(r,n)),o=[],a=n+1;a<r.length;a++){if(s=r,u=a-1,!(55296<=s.charCodeAt(u)&&56319>=s.charCodeAt(u)&&56320<=s.charCodeAt(u+1)&&57343>=s.charCodeAt(u+1))){var s,u,l=e(t(r,a));if(function(t,e,r){var n=[t].concat(e).concat([r]),i=n[n.length-2],o=n.lastIndexOf(14);if(o>1&&n.slice(1,o).every(function(t){return 3==t})&&-1==[3,13,17].indexOf(t))return 2;var a=n.lastIndexOf(4);if(a>0&&n.slice(1,a).every(function(t){return 4==t})&&-1==[12,4].indexOf(i))return n.filter(function(t){return 4==t}).length%2==1?3:4;if(0==i&&1==r)return 0;if(2==i||0==i||1==i)return 14==r&&e.every(function(t){return 3==t})?2:1;if(2==r||0==r||1==r)return 1;else if(6==i&&(6==r||7==r||9==r||10==r))return 0;else if((9==i||7==i)&&(7==r||8==r))return 0;else if((10==i||8==i)&&8==r)return 0;else if(3==r||15==r)return 0;else if(5==r)return 0;else if(12==i)return 0;var s=-1!=n.indexOf(3)?n.lastIndexOf(3)-1:n.length-2;return -1!=[13,17].indexOf(n[s])&&n.slice(s+1,-1).every(function(t){return 3==t})&&14==r||15==i&&-1!=[16,17].indexOf(r)?0:-1!=e.indexOf(4)?2:4==i&&4==r?0:1}(i,o,l))return a;o.push(l)}}return r.length},this.splitGraphemes=function(t){for(var e,r=[],n=0;(e=this.nextBreak(t,n))<t.length;)r.push(t.slice(n,e)),n=e;return n<t.length&&r.push(t.slice(n)),r},this.iterateGraphemes=function(t){var e=0,r={next:(function(){var r,n;return(n=this.nextBreak(t,e))<t.length?(r=t.slice(e,n),e=n,{value:r,done:!1}):e<t.length?(r=t.slice(e),e=t.length,{value:r,done:!1}):{value:void 0,done:!0}}).bind(this)};return"undefined"!=typeof Symbol&&Symbol.iterator&&(r[Symbol.iterator]=function(){return r}),r},this.countGraphemes=function(t){for(var e,r=0,n=0;(e=this.nextBreak(t,n))<t.length;)n=e,r++;return n<t.length&&r++,r},this})},791259:function(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(748219);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},748219:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e||"[object Symbol]"!==Object.prototype.toString.call(e)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},36902:function(t,e,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(619914);t.exports=o.call(n,i)},845194:function(t,e,r){t=r.nmd(t),!function(n){var i=t&&t.exports==e&&t,o="object"==typeof r.g&&r.g;(o.global===o||o.window===o)&&(n=o);var a=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s=/[\x01-\x7F]/g,u=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,l=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,c={"\xad":"shy","":"zwnj","":"zwj","":"lrm","":"ic","":"it","":"af","":"rlm","":"ZeroWidthSpace","":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot"," ":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp","\xa0":"nbsp"," ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","\xa1":"iexcl","?":"quest","\xbf":"iquest",".":"period","‥":"nldr","…":"mldr","\xb7":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","\xab":"laquo","\xbb":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","\xa7":"sect","\xb6":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","\xb4":"acute","˜":"tilde","^":"Hat","\xaf":"macr","˘":"breve","˙":"dot","\xa8":"die","˚":"ring","˝":"dblac","\xb8":"cedil","˛":"ogon",ˆ:"circ",ˇ:"caron","\xb0":"deg","\xa9":"copy","\xae":"reg","℗":"copysr",℘:"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","\xb1":"pm","\xf7":"div","\xd7":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","\xac":"not","|":"vert","\xa6":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","\xa4":"curren","\xa2":"cent",$:"dollar","\xa3":"pound","\xa5":"yen","€":"euro","\xb9":"sup1","\xbd":"half","⅓":"frac13","\xbc":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","\xb2":"sup2","⅔":"frac23","⅖":"frac25","\xb3":"sup3","\xbe":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","\uD835\uDCB6":"ascr","\uD835\uDD52":"aopf","\uD835\uDD1E":"afr","\uD835\uDD38":"Aopf","\uD835\uDD04":"Afr","\uD835\uDC9C":"Ascr",ª:"ordf",á:"aacute",Á:"Aacute",à:"agrave",À:"Agrave",ă:"abreve",Ă:"Abreve",â:"acirc",Â:"Acirc",å:"aring",Å:"angst",ä:"auml",Ä:"Auml",ã:"atilde",Ã:"Atilde",ą:"aogon",Ą:"Aogon",ā:"amacr",Ā:"Amacr",æ:"aelig",Æ:"AElig","\uD835\uDCB7":"bscr","\uD835\uDD53":"bopf","\uD835\uDD1F":"bfr","\uD835\uDD39":"Bopf",ℬ:"Bscr","\uD835\uDD05":"Bfr","\uD835\uDD20":"cfr","\uD835\uDCB8":"cscr","\uD835\uDD54":"copf",ℭ:"Cfr","\uD835\uDC9E":"Cscr",ℂ:"Copf",ć:"cacute",Ć:"Cacute",ĉ:"ccirc",Ĉ:"Ccirc",č:"ccaron",Č:"Ccaron",ċ:"cdot",Ċ:"Cdot",ç:"ccedil",Ç:"Ccedil","℅":"incare","\uD835\uDD21":"dfr",ⅆ:"dd","\uD835\uDD55":"dopf","\uD835\uDCB9":"dscr","\uD835\uDC9F":"Dscr","\uD835\uDD07":"Dfr",ⅅ:"DD","\uD835\uDD3B":"Dopf",ď:"dcaron",Ď:"Dcaron",đ:"dstrok",Đ:"Dstrok",ð:"eth",Ð:"ETH",ⅇ:"ee",ℯ:"escr","\uD835\uDD22":"efr","\uD835\uDD56":"eopf",ℰ:"Escr","\uD835\uDD08":"Efr","\uD835\uDD3C":"Eopf",é:"eacute",É:"Eacute",è:"egrave",È:"Egrave",ê:"ecirc",Ê:"Ecirc",ě:"ecaron",Ě:"Ecaron",ë:"euml",Ë:"Euml",ė:"edot",Ė:"Edot",ę:"eogon",Ę:"Eogon",ē:"emacr",Ē:"Emacr","\uD835\uDD23":"ffr","\uD835\uDD57":"fopf","\uD835\uDCBB":"fscr","\uD835\uDD09":"Ffr","\uD835\uDD3D":"Fopf",ℱ:"Fscr",ff:"fflig",ffi:"ffilig",ffl:"ffllig",fi:"filig",fj:"fjlig",fl:"fllig",ƒ:"fnof",ℊ:"gscr","\uD835\uDD58":"gopf","\uD835\uDD24":"gfr","\uD835\uDCA2":"Gscr","\uD835\uDD3E":"Gopf","\uD835\uDD0A":"Gfr",ǵ:"gacute",ğ:"gbreve",Ğ:"Gbreve",ĝ:"gcirc",Ĝ:"Gcirc",ġ:"gdot",Ġ:"Gdot",Ģ:"Gcedil","\uD835\uDD25":"hfr",ℎ:"planckh","\uD835\uDCBD":"hscr","\uD835\uDD59":"hopf",ℋ:"Hscr",ℌ:"Hfr",ℍ:"Hopf",ĥ:"hcirc",Ĥ:"Hcirc",ℏ:"hbar",ħ:"hstrok",Ħ:"Hstrok","\uD835\uDD5A":"iopf","\uD835\uDD26":"ifr","\uD835\uDCBE":"iscr",ⅈ:"ii","\uD835\uDD40":"Iopf",ℐ:"Iscr",ℑ:"Im",í:"iacute",Í:"Iacute",ì:"igrave",Ì:"Igrave",î:"icirc",Î:"Icirc",ï:"iuml",Ï:"Iuml",ĩ:"itilde",Ĩ:"Itilde",İ:"Idot",į:"iogon",Į:"Iogon",ī:"imacr",Ī:"Imacr",ij:"ijlig",IJ:"IJlig",ı:"imath","\uD835\uDCBF":"jscr","\uD835\uDD5B":"jopf","\uD835\uDD27":"jfr","\uD835\uDCA5":"Jscr","\uD835\uDD0D":"Jfr","\uD835\uDD41":"Jopf",ĵ:"jcirc",Ĵ:"Jcirc",ȷ:"jmath","\uD835\uDD5C":"kopf","\uD835\uDCC0":"kscr","\uD835\uDD28":"kfr","\uD835\uDCA6":"Kscr","\uD835\uDD42":"Kopf","\uD835\uDD0E":"Kfr",ķ:"kcedil",Ķ:"Kcedil","\uD835\uDD29":"lfr","\uD835\uDCC1":"lscr",ℓ:"ell","\uD835\uDD5D":"lopf",ℒ:"Lscr","\uD835\uDD0F":"Lfr","\uD835\uDD43":"Lopf",ĺ:"lacute",Ĺ:"Lacute",ľ:"lcaron",Ľ:"Lcaron",ļ:"lcedil",Ļ:"Lcedil",ł:"lstrok",Ł:"Lstrok",ŀ:"lmidot",Ŀ:"Lmidot","\uD835\uDD2A":"mfr","\uD835\uDD5E":"mopf","\uD835\uDCC2":"mscr","\uD835\uDD10":"Mfr","\uD835\uDD44":"Mopf",ℳ:"Mscr","\uD835\uDD2B":"nfr","\uD835\uDD5F":"nopf","\uD835\uDCC3":"nscr",ℕ:"Nopf","\uD835\uDCA9":"Nscr","\uD835\uDD11":"Nfr",ń:"nacute",Ń:"Nacute",ň:"ncaron",Ň:"Ncaron",ñ:"ntilde",Ñ:"Ntilde",ņ:"ncedil",Ņ:"Ncedil","№":"numero",ŋ:"eng",Ŋ:"ENG","\uD835\uDD60":"oopf","\uD835\uDD2C":"ofr",ℴ:"oscr","\uD835\uDCAA":"Oscr","\uD835\uDD12":"Ofr","\uD835\uDD46":"Oopf",º:"ordm",ó:"oacute",Ó:"Oacute",ò:"ograve",Ò:"Ograve",ô:"ocirc",Ô:"Ocirc",ö:"ouml",Ö:"Ouml",ő:"odblac",Ő:"Odblac",õ:"otilde",Õ:"Otilde",ø:"oslash",Ø:"Oslash",ō:"omacr",Ō:"Omacr",œ:"oelig",Œ:"OElig","\uD835\uDD2D":"pfr","\uD835\uDCC5":"pscr","\uD835\uDD61":"popf",ℙ:"Popf","\uD835\uDD13":"Pfr","\uD835\uDCAB":"Pscr","\uD835\uDD62":"qopf","\uD835\uDD2E":"qfr","\uD835\uDCC6":"qscr","\uD835\uDCAC":"Qscr","\uD835\uDD14":"Qfr",ℚ:"Qopf",ĸ:"kgreen","\uD835\uDD2F":"rfr","\uD835\uDD63":"ropf","\uD835\uDCC7":"rscr",ℛ:"Rscr",ℜ:"Re",ℝ:"Ropf",ŕ:"racute",Ŕ:"Racute",ř:"rcaron",Ř:"Rcaron",ŗ:"rcedil",Ŗ:"Rcedil","\uD835\uDD64":"sopf","\uD835\uDCC8":"sscr","\uD835\uDD30":"sfr","\uD835\uDD4A":"Sopf","\uD835\uDD16":"Sfr","\uD835\uDCAE":"Sscr","Ⓢ":"oS",ś:"sacute",Ś:"Sacute",ŝ:"scirc",Ŝ:"Scirc",š:"scaron",Š:"Scaron",ş:"scedil",Ş:"Scedil",ß:"szlig","\uD835\uDD31":"tfr","\uD835\uDCC9":"tscr","\uD835\uDD65":"topf","\uD835\uDCAF":"Tscr","\uD835\uDD17":"Tfr","\uD835\uDD4B":"Topf",ť:"tcaron",Ť:"Tcaron",ţ:"tcedil",Ţ:"Tcedil","™":"trade",ŧ:"tstrok",Ŧ:"Tstrok","\uD835\uDCCA":"uscr","\uD835\uDD66":"uopf","\uD835\uDD32":"ufr","\uD835\uDD4C":"Uopf","\uD835\uDD18":"Ufr","\uD835\uDCB0":"Uscr",ú:"uacute",Ú:"Uacute",ù:"ugrave",Ù:"Ugrave",ŭ:"ubreve",Ŭ:"Ubreve",û:"ucirc",Û:"Ucirc",ů:"uring",Ů:"Uring",ü:"uuml",Ü:"Uuml",ű:"udblac",Ű:"Udblac",ũ:"utilde",Ũ:"Utilde",ų:"uogon",Ų:"Uogon",ū:"umacr",Ū:"Umacr","\uD835\uDD33":"vfr","\uD835\uDD67":"vopf","\uD835\uDCCB":"vscr","\uD835\uDD19":"Vfr","\uD835\uDD4D":"Vopf","\uD835\uDCB1":"Vscr","\uD835\uDD68":"wopf","\uD835\uDCCC":"wscr","\uD835\uDD34":"wfr","\uD835\uDCB2":"Wscr","\uD835\uDD4E":"Wopf","\uD835\uDD1A":"Wfr",ŵ:"wcirc",Ŵ:"Wcirc","\uD835\uDD35":"xfr","\uD835\uDCCD":"xscr","\uD835\uDD69":"xopf","\uD835\uDD4F":"Xopf","\uD835\uDD1B":"Xfr","\uD835\uDCB3":"Xscr","\uD835\uDD36":"yfr","\uD835\uDCCE":"yscr","\uD835\uDD6A":"yopf","\uD835\uDCB4":"Yscr","\uD835\uDD1C":"Yfr","\uD835\uDD50":"Yopf",ý:"yacute",Ý:"Yacute",ŷ:"ycirc",Ŷ:"Ycirc",ÿ:"yuml",Ÿ:"Yuml","\uD835\uDCCF":"zscr","\uD835\uDD37":"zfr","\uD835\uDD6B":"zopf",ℨ:"Zfr",ℤ:"Zopf","\uD835\uDCB5":"Zscr",ź:"zacute",Ź:"Zacute",ž:"zcaron",Ž:"Zcaron",ż:"zdot",Ż:"Zdot",Ƶ:"imped",þ:"thorn",Þ:"THORN",ʼn:"napos",α:"alpha",Α:"Alpha",β:"beta",Β:"Beta",γ:"gamma",Γ:"Gamma",δ:"delta",Δ:"Delta",ε:"epsi",ϵ:"epsiv",Ε:"Epsilon",ϝ:"gammad",Ϝ:"Gammad",ζ:"zeta",Ζ:"Zeta",η:"eta",Η:"Eta",θ:"theta",ϑ:"thetav",Θ:"Theta",ι:"iota",Ι:"Iota",κ:"kappa",ϰ:"kappav",Κ:"Kappa",λ:"lambda",Λ:"Lambda",μ:"mu",µ:"micro",Μ:"Mu",ν:"nu",Ν:"Nu",ξ:"xi",Ξ:"Xi",ο:"omicron",Ο:"Omicron",π:"pi",ϖ:"piv",Π:"Pi",ρ:"rho",ϱ:"rhov",Ρ:"Rho",σ:"sigma",Σ:"Sigma",ς:"sigmaf",τ:"tau",Τ:"Tau",υ:"upsi",Υ:"Upsilon",ϒ:"Upsi",φ:"phi",ϕ:"phiv",Φ:"Phi",χ:"chi",Χ:"Chi",ψ:"psi",Ψ:"Psi",ω:"omega",Ω:"ohm",а:"acy",А:"Acy",б:"bcy",Б:"Bcy",в:"vcy",В:"Vcy",г:"gcy",Г:"Gcy",ѓ:"gjcy",Ѓ:"GJcy",д:"dcy",Д:"Dcy",ђ:"djcy",Ђ:"DJcy",е:"iecy",Е:"IEcy",ё:"iocy",Ё:"IOcy",є:"jukcy",Є:"Jukcy",ж:"zhcy",Ж:"ZHcy",з:"zcy",З:"Zcy",ѕ:"dscy",Ѕ:"DScy",и:"icy",И:"Icy",і:"iukcy",І:"Iukcy",ї:"yicy",Ї:"YIcy",й:"jcy",Й:"Jcy",ј:"jsercy",Ј:"Jsercy",к:"kcy",К:"Kcy",ќ:"kjcy",Ќ:"KJcy",л:"lcy",Л:"Lcy",љ:"ljcy",Љ:"LJcy",м:"mcy",М:"Mcy",н:"ncy",Н:"Ncy",њ:"njcy",Њ:"NJcy",о:"ocy",О:"Ocy",п:"pcy",П:"Pcy",р:"rcy",Р:"Rcy",с:"scy",С:"Scy",т:"tcy",Т:"Tcy",ћ:"tshcy",Ћ:"TSHcy",у:"ucy",У:"Ucy",ў:"ubrcy",Ў:"Ubrcy",ф:"fcy",Ф:"Fcy",х:"khcy",Х:"KHcy",ц:"tscy",Ц:"TScy",ч:"chcy",Ч:"CHcy",џ:"dzcy",Џ:"DZcy",ш:"shcy",Ш:"SHcy",щ:"shchcy",Щ:"SHCHcy",ъ:"hardcy",Ъ:"HARDcy",ы:"ycy",Ы:"Ycy",ь:"softcy",Ь:"SOFTcy",э:"ecy",Э:"Ecy",ю:"yucy",Ю:"YUcy",я:"yacy",Я:"YAcy",ℵ:"aleph",ℶ:"beth",ℷ:"gimel",ℸ:"daleth"},h=/["&'<>`]/g,d={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},f=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,p=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,g=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,y={aacute:"\xe1",Aacute:"\xc1",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"\xe2",Acirc:"\xc2",acute:"\xb4",acy:"а",Acy:"А",aelig:"\xe6",AElig:"\xc6",af:"",afr:"\uD835\uDD1E",Afr:"\uD835\uDD04",agrave:"\xe0",Agrave:"\xc0",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"\xc5",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"\uD835\uDD52",Aopf:"\uD835\uDD38",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",aring:"\xe5",Aring:"\xc5",ascr:"\uD835\uDCB6",Ascr:"\uD835\uDC9C",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"\xe3",Atilde:"\xc3",auml:"\xe4",Auml:"\xc4",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"\uD835\uDD1F",Bfr:"\uD835\uDD05",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"\uD835\uDD53",Bopf:"\uD835\uDD39",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"\xa6",bscr:"\uD835\uDCB7",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"\xe7",Ccedil:"\xc7",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"⦲",cent:"\xa2",centerdot:"\xb7",CenterDot:"\xb7",cfr:"\uD835\uDD20",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"\xae",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"\uD835\uDD54",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"\xa9",COPY:"\xa9",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"\uD835\uDCB8",Cscr:"\uD835\uDC9E",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"\xa4",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"\xb0",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"\uD835\uDD21",Dfr:"\uD835\uDD07",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"\xb4",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"\xa8",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"\xf7",divide:"\xf7",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"\uD835\uDD55",Dopf:"\uD835\uDD3B",dot:"˙",Dot:"\xa8",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"\xa8",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"\uD835\uDCB9",Dscr:"\uD835\uDC9F",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"\xe9",Eacute:"\xc9",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"\xea",Ecirc:"\xca",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"\uD835\uDD22",Efr:"\uD835\uDD08",eg:"⪚",egrave:"\xe8",Egrave:"\xc8",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"\uD835\uDD56",Eopf:"\uD835\uDD3C",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"\xf0",ETH:"\xd0",euml:"\xeb",Euml:"\xcb",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"\uD835\uDD23",Ffr:"\uD835\uDD09",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"\uD835\uDD57",Fopf:"\uD835\uDD3D",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"\xbd",frac13:"⅓",frac14:"\xbc",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"\xbe",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"\uD835\uDCBB",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"\uD835\uDD24",Gfr:"\uD835\uDD0A",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"\uD835\uDD58",Gopf:"\uD835\uDD3E",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"\uD835\uDCA2",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"\xbd",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"\uD835\uDD25",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"\uD835\uDD59",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"\uD835\uDCBD",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"\xed",Iacute:"\xcd",ic:"",icirc:"\xee",Icirc:"\xce",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"\xa1",iff:"⇔",ifr:"\uD835\uDD26",Ifr:"ℑ",igrave:"\xec",Igrave:"\xcc",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"\uD835\uDD5A",Iopf:"\uD835\uDD40",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"\xbf",iscr:"\uD835\uDCBE",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"\xef",Iuml:"\xcf",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"\uD835\uDD27",Jfr:"\uD835\uDD0D",jmath:"ȷ",jopf:"\uD835\uDD5B",Jopf:"\uD835\uDD41",jscr:"\uD835\uDCBF",Jscr:"\uD835\uDCA5",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"\uD835\uDD28",Kfr:"\uD835\uDD0E",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"\uD835\uDD5C",Kopf:"\uD835\uDD42",kscr:"\uD835\uDCC0",Kscr:"\uD835\uDCA6",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"\xab",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"\uD835\uDD29",Lfr:"\uD835\uDD0F",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"\uD835\uDD5D",Lopf:"\uD835\uDD43",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"\uD835\uDCC1",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"\xaf",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"\uD835\uDD2A",Mfr:"\uD835\uDD10",mho:"℧",micro:"\xb5",mid:"∣",midast:"*",midcir:"⫰",middot:"\xb7",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"\uD835\uDD5E",Mopf:"\uD835\uDD44",mp:"∓",mscr:"\uD835\uDCC2",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:"\xa0",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"\uD835\uDD2B",Nfr:"\uD835\uDD11",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:"\xa0",nopf:"\uD835\uDD5F",Nopf:"ℕ",not:"\xac",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"\uD835\uDCC3",Nscr:"\uD835\uDCA9",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"\xf1",Ntilde:"\xd1",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"\xf3",Oacute:"\xd3",oast:"⊛",ocir:"⊚",ocirc:"\xf4",Ocirc:"\xd4",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"\uD835\uDD2C",Ofr:"\uD835\uDD12",ogon:"˛",ograve:"\xf2",Ograve:"\xd2",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"\uD835\uDD60",Oopf:"\uD835\uDD46",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"\xaa",ordm:"\xba",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"\uD835\uDCAA",oslash:"\xf8",Oslash:"\xd8",osol:"⊘",otilde:"\xf5",Otilde:"\xd5",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"\xf6",Ouml:"\xd6",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"\xb6",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"\uD835\uDD2D",Pfr:"\uD835\uDD13",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",Poincareplane:"ℌ",pointint:"⨕",popf:"\uD835\uDD61",Popf:"ℙ",pound:"\xa3",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"\uD835\uDCC5",Pscr:"\uD835\uDCAB",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"\uD835\uDD2E",Qfr:"\uD835\uDD14",qint:"⨌",qopf:"\uD835\uDD62",Qopf:"ℚ",qprime:"⁗",qscr:"\uD835\uDCC6",Qscr:"\uD835\uDCAC",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"\xbb",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"\xae",REG:"\xae",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"\uD835\uDD2F",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"\uD835\uDD63",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"\uD835\uDCC7",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"\xa7",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"\uD835\uDD30",Sfr:"\uD835\uDD16",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"\xad",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"\uD835\uDD64",Sopf:"\uD835\uDD4A",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"\uD835\uDCC8",Sscr:"\uD835\uDCAE",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"\xaf",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"\xdf",Tab:" ",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"\uD835\uDD31",Tfr:"\uD835\uDD17",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"\xfe",THORN:"\xde",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"\xd7",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"\uD835\uDD65",Topf:"\uD835\uDD4B",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"\uD835\uDCC9",Tscr:"\uD835\uDCAF",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"\xfa",Uacute:"\xda",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"\xfb",Ucirc:"\xdb",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"\uD835\uDD32",Ufr:"\uD835\uDD18",ugrave:"\xf9",Ugrave:"\xd9",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"\xa8",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"\uD835\uDD66",Uopf:"\uD835\uDD4C",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"\uD835\uDCCA",Uscr:"\uD835\uDCB0",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"\xfc",Uuml:"\xdc",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"\uD835\uDD33",Vfr:"\uD835\uDD19",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"\uD835\uDD67",Vopf:"\uD835\uDD4D",vprop:"∝",vrtri:"⊳",vscr:"\uD835\uDCCB",Vscr:"\uD835\uDCB1",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"\uD835\uDD34",Wfr:"\uD835\uDD1A",wopf:"\uD835\uDD68",Wopf:"\uD835\uDD4E",wp:"℘",wr:"≀",wreath:"≀",wscr:"\uD835\uDCCC",Wscr:"\uD835\uDCB2",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"\uD835\uDD35",Xfr:"\uD835\uDD1B",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"\uD835\uDD69",Xopf:"\uD835\uDD4F",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"\uD835\uDCCD",Xscr:"\uD835\uDCB3",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"\xfd",Yacute:"\xdd",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"\xa5",yfr:"\uD835\uDD36",Yfr:"\uD835\uDD1C",yicy:"ї",YIcy:"Ї",yopf:"\uD835\uDD6A",Yopf:"\uD835\uDD50",yscr:"\uD835\uDCCE",Yscr:"\uD835\uDCB4",yucy:"ю",YUcy:"Ю",yuml:"\xff",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"",zeta:"ζ",Zeta:"Ζ",zfr:"\uD835\uDD37",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"\uD835\uDD6B",Zopf:"ℤ",zscr:"\uD835\uDCCF",Zscr:"\uD835\uDCB5",zwj:"",zwnj:""},m={aacute:"\xe1",Aacute:"\xc1",acirc:"\xe2",Acirc:"\xc2",acute:"\xb4",aelig:"\xe6",AElig:"\xc6",agrave:"\xe0",Agrave:"\xc0",amp:"&",AMP:"&",aring:"\xe5",Aring:"\xc5",atilde:"\xe3",Atilde:"\xc3",auml:"\xe4",Auml:"\xc4",brvbar:"\xa6",ccedil:"\xe7",Ccedil:"\xc7",cedil:"\xb8",cent:"\xa2",copy:"\xa9",COPY:"\xa9",curren:"\xa4",deg:"\xb0",divide:"\xf7",eacute:"\xe9",Eacute:"\xc9",ecirc:"\xea",Ecirc:"\xca",egrave:"\xe8",Egrave:"\xc8",eth:"\xf0",ETH:"\xd0",euml:"\xeb",Euml:"\xcb",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",gt:">",GT:">",iacute:"\xed",Iacute:"\xcd",icirc:"\xee",Icirc:"\xce",iexcl:"\xa1",igrave:"\xec",Igrave:"\xcc",iquest:"\xbf",iuml:"\xef",Iuml:"\xcf",laquo:"\xab",lt:"<",LT:"<",macr:"\xaf",micro:"\xb5",middot:"\xb7",nbsp:"\xa0",not:"\xac",ntilde:"\xf1",Ntilde:"\xd1",oacute:"\xf3",Oacute:"\xd3",ocirc:"\xf4",Ocirc:"\xd4",ograve:"\xf2",Ograve:"\xd2",ordf:"\xaa",ordm:"\xba",oslash:"\xf8",Oslash:"\xd8",otilde:"\xf5",Otilde:"\xd5",ouml:"\xf6",Ouml:"\xd6",para:"\xb6",plusmn:"\xb1",pound:"\xa3",quot:'"',QUOT:'"',raquo:"\xbb",reg:"\xae",REG:"\xae",sect:"\xa7",shy:"\xad",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",szlig:"\xdf",thorn:"\xfe",THORN:"\xde",times:"\xd7",uacute:"\xfa",Uacute:"\xda",ucirc:"\xfb",Ucirc:"\xdb",ugrave:"\xf9",Ugrave:"\xd9",uml:"\xa8",uuml:"\xfc",Uuml:"\xdc",yacute:"\xfd",Yacute:"\xdd",yen:"\xa5",yuml:"\xff"},b={0:"<22>",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},w=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],A=String.fromCharCode,D={}.hasOwnProperty,E=function(t,e){return D.call(t,e)},x=function(t,e){for(var r=-1,n=t.length;++r<n;)if(t[r]==e)return!0;return!1},S=function(t,e){if(!t)return e;var r,n={};for(r in e)n[r]=E(t,r)?t[r]:e[r];return n},M=function(t,e){var r="";return t>=55296&&t<=57343||t>1114111?(e&&T("character reference outside the permissible Unicode range"),"<22>"):E(b,t)?(e&&T("disallowed character reference"),b[t]):(e&&x(w,t)&&T("disallowed character reference"),t>65535&&(t-=65536,r+=A(t>>>10&1023|55296),t=56320|1023&t),r+=A(t))},_=function(t){return"&#x"+t.toString(16).toUpperCase()+";"},N=function(t){return"&#"+t+";"},T=function(t){throw Error("Parse error: "+t)},C=function(t,e){(e=S(e,C.options)).strict&&p.test(t)&&T("forbidden code point");var r=e.encodeEverything,n=e.useNamedReferences,i=e.allowUnsafeSymbols,o=e.decimal?N:_,d=function(t){return o(t.charCodeAt(0))};return r?(t=t.replace(s,function(t){return n&&E(c,t)?"&"+c[t]+";":d(t)}),n&&(t=t.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),n&&(t=t.replace(l,function(t){return"&"+c[t]+";"}))):n?(!i&&(t=t.replace(h,function(t){return"&"+c[t]+";"})),t=(t=t.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(l,function(t){return"&"+c[t]+";"})):!i&&(t=t.replace(h,d)),t.replace(a,function(t){var e=t.charCodeAt(0),r=t.charCodeAt(1);return o((e-55296)*1024+r-56320+65536)}).replace(u,d)};C.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var I=function(t,e){var r=(e=S(e,I.options)).strict;return r&&f.test(t)&&T("malformed character reference"),t.replace(g,function(t,n,i,o,a,s,u,l,c){var h,d,f;if(n)return y[f=n];if(i)return(f=i,o&&e.isAttributeValue)?(r&&"="==o&&T("`&` did not start a character reference"),t):(r&&T("named character reference was not terminated by a semicolon"),m[f]+(o||""));return a?(d=s,r&&!d&&T("character reference was not terminated by a semicolon"),M(h=parseInt(a,10),r)):u?(d=l,r&&!d&&T("character reference was not terminated by a semicolon"),M(h=parseInt(u,16),r)):(r&&T("named character reference was not terminated by a semicolon"),t)})};I.options={isAttributeValue:!1,strict:!1};var O={version:"1.2.0",encode:C,decode:I,escape:function(t){return t.replace(h,function(t){return d[t]})},unescape:I};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define(function(){return O});else if(e&&!e.nodeType){if(i)i.exports=O;else for(var k in O)E(O,k)&&(e[k]=O[k])}else n.he=O}(this)},488380:function(t,e){e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]},652241:function(t){var e,r="html",n="head",i="body",o=/<([a-zA-Z]+[0-9]?)/,a=/<head[^]*>/i,s=/<body[^]*>/i,u=function(){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var h=new c;u=l=function(t,e){return e&&(t="<"+e+">"+t+"</"+e+">"),h.parseFromString(t,"text/html")}}if("object"==typeof document&&document.implementation){var d=document.implementation.createHTMLDocument();u=function(t,e){return e?(d.documentElement.querySelector(e).innerHTML=t,d):(d.documentElement.innerHTML=t,d)}}var f="object"==typeof document?document.createElement("template"):{};f.content&&(e=function(t){return f.innerHTML=t,f.content.childNodes});t.exports=function(t){var c,h,d,f,p=t.match(o);switch(p&&p[1]&&(c=p[1].toLowerCase()),c){case r:return h=l(t),!a.test(t)&&(d=h.querySelector(n))&&d.parentNode.removeChild(d),!s.test(t)&&(d=h.querySelector(i))&&d.parentNode.removeChild(d),h.querySelectorAll(r);case n:case i:if(f=(h=u(t)).querySelectorAll(c),s.test(t)&&a.test(t))return f[0].parentNode.childNodes;return f;default:if(e)return e(t);return(d=u(t,i).querySelector(i)).childNodes}}},898922:function(t,e,r){var n=r(652241),i=r(76615).formatDOM,o=/<(![a-zA-Z\s]+)>/;t.exports=function(t){if("string"!=typeof t)throw TypeError("First argument must be a string");if(""===t)return[];var e,r=t.match(o);return r&&r[1]&&(e=r[1]),i(n(t),null,e)}},76615:function(t,e,r){for(var n,i=r(825515),o=r(488380).CASE_SENSITIVE_TAG_NAMES,a=i.Comment,s=i.Element,u=i.ProcessingInstruction,l=i.Text,c={},h=0,d=o.length;h<d;h++)c[(n=o[h]).toLowerCase()]=n;function f(t){for(var e,r={},n=0,i=t.length;n<i;n++)r[(e=t[n]).name]=e.value;return r}e.formatAttributes=f,e.formatDOM=function t(e,r,n){r=r||null;for(var i=[],o=0,h=e.length;o<h;o++){var d,p,g=e[o];switch(g.nodeType){case 1:(p=new s(d=function(t){var e=c[t=t.toLowerCase()];return e?e:t}(g.nodeName),f(g.attributes))).children=t("template"===d?g.content.childNodes:g.childNodes,p);break;case 3:p=new l(g.nodeValue);break;case 8:p=new a(g.nodeValue);break;default:continue}var y=i[o-1]||null;y&&(y.next=p),p.parent=r,p.prev=y,p.next=null,i.push(p)}return n&&((p=new u(n.substring(0,n.indexOf(" ")).toLowerCase(),n)).next=i[0]||null,p.parent=r,i.unshift(p),i[1]&&(i[1].prev=i[0])),i}},484961:function(t,e,r){var n=r(825515),i=r(898922),o=r(253915),a=r(849438);i="function"==typeof i.default?i.default:i;var s={lowerCaseAttributeNames:!1};function u(t,e){if("string"!=typeof t)throw TypeError("First argument must be a string");return""===t?[]:a(i(t,(e=e||{}).htmlparser2||s),e)}u.domToReact=a,u.htmlToDOM=i,u.attributesToProps=o,u.Comment=n.Comment,u.Element=n.Element,u.ProcessingInstruction=n.ProcessingInstruction,u.Text=n.Text,t.exports=u,u.default=u},253915:function(t,e,r){var n=r(874607),i=r(44882),o=["checked","value"],a=["input","select","textarea"],s={reset:!0,submit:!0};function u(t){return n.possibleStandardNames[t]}t.exports=function(t,e){var r,l,c,h,d,f={},p=(t=t||{}).type&&s[t.type];for(r in t){if(c=t[r],n.isCustomAttribute(r)){f[r]=c;continue}if(h=u(l=r.toLowerCase())){switch(d=n.getPropertyInfo(h),-1!==o.indexOf(h)&&-1!==a.indexOf(e)&&!p&&(h=u("default"+l)),f[h]=c,d&&d.type){case n.BOOLEAN:f[h]=!0;break;case n.OVERLOADED_BOOLEAN:""===c&&(f[h]=!0)}continue}i.PRESERVE_CUSTOM_ATTRIBUTES&&(f[r]=c)}return i.setStyleProp(t.style,f),f}},849438:function(t,e,r){var n=r(455069),i=r(253915),o=r(44882),a=o.setStyleProp,s=o.canTextBeChildOfNode;t.exports=function t(e,r){for(var u,l,c,h,d,f=(r=r||{}).library||n,p=f.cloneElement,g=f.createElement,y=f.isValidElement,m=[],b="function"==typeof r.replace,w=r.trim,A=0,D=e.length;A<D;A++){if(u=e[A],b&&y(c=r.replace(u))){D>1&&(c=p(c,{key:c.key||A})),m.push(c);continue}if("text"===u.type){if((l=!u.data.trim().length)&&u.parent&&!s(u.parent)||w&&l)continue;m.push(u.data);continue}switch(h=u.attribs,function(t){return o.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===t.type&&o.isCustomComponent(t.name,t.attribs)}(u)?a(h.style,h):h&&(h=i(h,u.name)),d=null,u.type){case"script":case"style":u.children[0]&&(h.dangerouslySetInnerHTML={__html:u.children[0].data});break;case"tag":"textarea"===u.name&&u.children[0]?h.defaultValue=u.children[0].data:u.children&&u.children.length&&(d=t(u.children,r));break;default:continue}D>1&&(h.key=A),m.push(g(u.name,h,d))}return 1===m.length?m[0]:m}},44882:function(t,e,r){var n=r(455069),i=r(845813).default,o={reactCompat:!0},a=n.version.split(".")[0]>=16,s=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);t.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,invertObject:function(t,e){if(!t||"object"!=typeof t)throw TypeError("First argument must be an object");var r,n,i="function"==typeof e,o={},a={};for(r in t){if(n=t[r],i&&(o=e(r,n))&&2===o.length){a[o[0]]=o[1];continue}"string"==typeof n&&(a[n]=r)}return a},isCustomComponent:function(t,e){if(-1===t.indexOf("-"))return e&&"string"==typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(t,e){if(null!=t)try{e.style=i(t,o)}catch(t){e.style={}}},canTextBeChildOfNode:function(t){return!s.has(t.name)},elementsWithNoTextChildren:s}},228632:function(t,e,r){"use strict";function n(t,e,r){function n(t){return t&&t.indexOf("###")>-1?t.replace(/###/g,"."):t}function i(){return!t||"string"==typeof t}for(var o="string"!=typeof e?[].concat(e):e.split(".");o.length>1;){if(i())return{};var a=n(o.shift());!t[a]&&r&&(t[a]=new r),t=t[a]}return i()?{}:{obj:t,k:n(o.shift())}}r.d(e,{Z:()=>tC});var i,o,a,s,u,l,c,h,d,f,p,g,y=[],m=y.forEach,b=y.slice,w=r("130001");function A(t,e){var r=e&&e.cache?e.cache:N,n=e&&e.serializer?e.serializer:M;return(e&&e.strategy?e.strategy:S)(t,{cache:r,serializer:n})}function D(t,e,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),a=e.get(o);return void 0===a&&(a=t.call(this,n),e.set(o,a)),a}function E(t,e,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=e.get(i);return void 0===o&&(o=t.apply(this,n),e.set(i,o)),o}function x(t,e,r,n,i){return r.bind(e,t,n,i)}function S(t,e){var r,n,i,o,a,s=1===t.length?D:E;return r=t,n=this,i=s,o=e.cache.create(),a=e.serializer,i.bind(n,r,o,a)}var M=function(){return JSON.stringify(arguments)},_=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(t){return this.cache[t]},t.prototype.set=function(t,e){this.cache[t]=e},t}(),N={create:function(){return new _}},T={variadic:function(t,e){var r,n,i,o,a;return r=t,n=this,i=E,o=e.cache.create(),a=e.serializer,i.bind(n,r,o,a)},monadic:function(t,e){var r,n,i,o,a;return r=t,n=this,i=D,o=e.cache.create(),a=e.serializer,i.bind(n,r,o,a)}};function C(t){return t.type===c.literal}(i=l||(l={}))[i.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",i[i.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",i[i.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",i[i.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",i[i.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",i[i.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",i[i.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",i[i.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",i[i.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",i[i.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",i[i.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",i[i.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",i[i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",i[i.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",i[i.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",i[i.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",i[i.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",i[i.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",i[i.INVALID_TAG=23]="INVALID_TAG",i[i.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",i[i.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",i[i.UNCLOSED_TAG=27]="UNCLOSED_TAG",(o=c||(c={}))[o.literal=0]="literal",o[o.argument=1]="argument",o[o.number=2]="number",o[o.date=3]="date",o[o.time=4]="time",o[o.select=5]="select",o[o.plural=6]="plural",o[o.pound=7]="pound",o[o.tag=8]="tag",(a=h||(h={}))[a.number=0]="number",a[a.dateTime=1]="dateTime";function I(t){return t.type===c.number}function O(t){return t.type===c.date}function k(t){return t.type===c.time}function L(t){return t.type===c.select}function P(t){return t.type===c.plural}function R(t){return t.type===c.tag}function B(t){return!!(t&&"object"==typeof t&&t.type===h.number)}function j(t){return!!(t&&"object"==typeof t&&t.type===h.dateTime)}var F=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,U=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,z=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,q=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,H=/^(@+)?(\+|#+)?[rs]?$/g,V=/(\*)(0+)|(#+)(0+)|(0+)/g,Z=/^(0+)$/;function G(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(H,function(t,r,n){return"string"!=typeof n?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):"+"===n?e.minimumSignificantDigits=r.length:"#"===r[0]?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),e}function W(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Y(t){var e=W(t);return e?e:{}}var $={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},Q=new RegExp("^".concat(F.source,"*")),J=new RegExp("".concat(F.source,"*$"));function X(t,e){return{start:t,end:e}}var K=!!String.prototype.startsWith&&"_a".startsWith("a",1),tt=!!String.fromCodePoint,te=!!Object.fromEntries,tr=!!String.prototype.codePointAt,tn=!!String.prototype.trimStart,ti=!!String.prototype.trimEnd,to=Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&0x1fffffffffffff>=Math.abs(t)},ta=!0;try{var ts=tp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ta=(null===(d=ts.exec("a"))||void 0===d?void 0:d[0])==="a"}catch(t){ta=!1}var tu=K?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},tl=tt?String.fromCodePoint:function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var n="",i=e.length,o=0;i>o;){if((t=e[o++])>1114111)throw RangeError(t+" is not a valid code point");n+=t<65536?String.fromCharCode(t):String.fromCharCode(((t-=65536)>>10)+55296,t%1024+56320)}return n},tc=te?Object.fromEntries:function(t){for(var e={},r=0;r<t.length;r++){var n=t[r],i=n[0],o=n[1];e[i]=o}return e},th=tr?function(t,e){return t.codePointAt(e)}:function(t,e){var r,n=t.length;if(!(e<0)&&!(e>=n)){var i=t.charCodeAt(e);return i<55296||i>56319||e+1===n||(r=t.charCodeAt(e+1))<56320||r>57343?i:(i-55296<<10)+(r-56320)+65536}},td=tn?function(t){return t.trimStart()}:function(t){return t.replace(Q,"")},tf=ti?function(t){return t.trimEnd()}:function(t){return t.replace(J,"")};function tp(t,e){return new RegExp(t,e)}if(ta){var tg=tp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");f=function(t,e){var r;return tg.lastIndex=e,null!==(r=tg.exec(t)[1])&&void 0!==r?r:""}}else f=function(t,e){for(var r=[];;){var n=th(t,e);if(void 0===n||tv(n)||function(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}(n))break;r.push(n),e+=n>=65536?2:1}return tl.apply(void 0,r)};var ty=function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){var o=this.parseArgument(t,r);if(o.err)return o;n.push(o.val)}else if(125===i&&t>0)break;else if(35===i&&("plural"===e||"selectordinal"===e)){var a=this.clonePosition();this.bump(),n.push({type:c.pound,location:X(a,this.clonePosition())})}else if(60!==i||this.ignoreTag||47!==this.peek()){if(60===i&&!this.ignoreTag&&tm(this.peek()||0)){var o=this.parseTag(t,e);if(o.err)return o;n.push(o.val)}else{var o=this.parseLiteral(t,e);if(o.err)return o;n.push(o.val)}}else{if(!r)return this.error(l.UNMATCHED_CLOSING_TAG,X(this.clonePosition(),this.clonePosition()));break}}return{val:n,err:null}},t.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:c.literal,value:"<".concat(n,"/>"),location:X(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(l.INVALID_TAG,X(r,this.clonePosition()));var i=this.parseMessage(t+1,e,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(!this.bumpIf("</"))return this.error(l.UNCLOSED_TAG,X(r,this.clonePosition()));if(this.isEOF()||!tm(this.char()))return this.error(l.INVALID_TAG,X(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(l.UNMATCHED_CLOSING_TAG,X(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:c.tag,value:n,children:o,location:X(r,this.clonePosition())},err:null}:this.error(l.INVALID_TAG,X(a,this.clonePosition()))},t.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&function(t){return 45===t||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}(this.char());)this.bump();return this.message.slice(t,this.offset())},t.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(e);if(i){n+=i;continue}var o=this.tryParseUnquoted(t,e);if(o){n+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){n+=a;continue}break}var s=X(r,this.clonePosition());return{val:{type:c.literal,value:n,location:s},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&60===this.char()&&(this.ignoreTag||!function(t){return tm(t)||47===t}(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39===this.peek())e.push(39),this.bump();else{this.bump();break}}else e.push(r);this.bump()}return tl.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===e||"selectordinal"===e)||125===r&&t>0?null:(this.bump(),tl(r))},t.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(l.EXPECT_ARGUMENT_CLOSING_BRACE,X(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(l.EMPTY_ARGUMENT,X(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(l.MALFORMED_ARGUMENT,X(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(l.EXPECT_ARGUMENT_CLOSING_BRACE,X(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:c.argument,value:n,location:X(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(l.EXPECT_ARGUMENT_CLOSING_BRACE,X(r,this.clonePosition()));return this.parseArgumentOptions(t,e,n,r);default:return this.error(l.MALFORMED_ARGUMENT,X(r,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=f(this.message,e),n=e+r.length;return this.bumpTo(n),{value:r,location:X(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,r,n){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(l.EXPECT_ARGUMENT_TYPE,X(o,s));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var p=tf(f.val);if(0===p.length)return this.error(l.EXPECT_ARGUMENT_STYLE,X(this.clonePosition(),this.clonePosition()));u={style:p,styleLocation:X(d,this.clonePosition())}}var g=this.tryParseArgumentClose(n);if(g.err)return g;var y=X(n,this.clonePosition());if(u&&tu(null==u?void 0:u.style,"::",0)){var m,b=td(u.style.slice(2));if("number"===a){var f=this.parseNumberSkeletonFromString(b,u.styleLocation);if(f.err)return f;return{val:{type:c.number,value:r,location:y,style:f.val},err:null}}if(0===b.length)return this.error(l.EXPECT_DATE_TIME_SKELETON,y);var A=b;this.locale&&(A=function(t,e){for(var r="",n=0;n<t.length;n++){var i=t.charAt(n);if("j"===i){for(var o=0;n+1<t.length&&t.charAt(n+1)===i;)o++,n++;var a=1+(1&o),s=o<2?1:3+(o>>1),u=function(t){var e,r=t.hourCycle;if(void 0===r&&t.hourCycles&&t.hourCycles.length&&(r=t.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var n=t.language;return"root"!==n&&(e=t.maximize().region),($[e||""]||$[n||""]||$["".concat(n,"-001")]||$["001"])[0]}(e);for(("H"==u||"k"==u)&&(s=0);s-- >0;)r+="a";for(;a-- >0;)r=u+r}else"J"===i?r+="H":r+=i}return r}(b,this.locale));var p={type:h.dateTime,pattern:A,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?(m={},A.replace(U,function(t){var e=t.length;switch(t[0]){case"G":m.era=4===e?"long":5===e?"narrow":"short";break;case"y":m.year=2===e?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":m.month=["numeric","2-digit","short","long","narrow"][e-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":m.day=["numeric","2-digit"][e-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":m.weekday=4===e?"long":5===e?"narrow":"short";break;case"e":if(e<4)throw RangeError("`e..eee` (weekday) patterns are not supported");m.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");m.weekday=["short","long","narrow","short"][e-4];break;case"a":m.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":m.hourCycle="h12",m.hour=["numeric","2-digit"][e-1];break;case"H":m.hourCycle="h23",m.hour=["numeric","2-digit"][e-1];break;case"K":m.hourCycle="h11",m.hour=["numeric","2-digit"][e-1];break;case"k":m.hourCycle="h24",m.hour=["numeric","2-digit"][e-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":m.minute=["numeric","2-digit"][e-1];break;case"s":m.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":m.timeZoneName=e<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),m):{}};return{val:{type:"date"===a?c.date:c.time,value:r,location:y,style:p},err:null}}return{val:{type:"number"===a?c.number:"date"===a?c.date:c.time,value:r,location:y,style:null!==(i=null==u?void 0:u.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var D=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(l.EXPECT_SELECT_ARGUMENT_OPTIONS,X(D,(0,w.pi)({},D)));this.bumpSpace();var E=this.parseIdentifierIfPossible(),x=0;if("select"!==a&&"offset"===E.value){if(!this.bumpIf(":"))return this.error(l.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,X(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(l.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,l.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),E=this.parseIdentifierIfPossible(),x=f.val}var S=this.tryParsePluralOrSelectOptions(t,a,e,E);if(S.err)return S;var g=this.tryParseArgumentClose(n);if(g.err)return g;var M=X(n,this.clonePosition());if("select"===a)return{val:{type:c.select,value:r,options:tc(S.val),location:M},err:null};return{val:{type:c.plural,value:r,options:tc(S.val),offset:x,pluralType:"plural"===a?"cardinal":"ordinal",location:M},err:null};default:return this.error(l.INVALID_ARGUMENT_TYPE,X(o,s))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(l.EXPECT_ARGUMENT_CLOSING_BRACE,X(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(l.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,X(r,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw Error("Number skeleton cannot be empty");for(var e=t.split(z).filter(function(t){return t.length>0}),r=[],n=0;n<e.length;n++){var i=e[n].split("/");if(0===i.length)throw Error("Invalid number skeleton");for(var o=i[0],a=i.slice(1),s=0;s<a.length;s++)if(0===a[s].length)throw Error("Invalid number skeleton");r.push({stem:o,options:a})}return r}(t)}catch(t){return this.error(l.INVALID_NUMBER_SKELETON,e)}return{val:{type:h.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?function(t){for(var e={},r=0;r<t.length;r++){var n=t[r];switch(n.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=n.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=(0,w.pi)((0,w.pi)((0,w.pi)({},e),{notation:"scientific"}),n.options.reduce(function(t,e){return(0,w.pi)((0,w.pi)({},t),Y(e))},{}));continue;case"engineering":e=(0,w.pi)((0,w.pi)((0,w.pi)({},e),{notation:"engineering"}),n.options.reduce(function(t,e){return(0,w.pi)((0,w.pi)({},t),Y(e))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw RangeError("integer-width stems only accept a single optional option");n.options[0].replace(V,function(t,r,n,i,o,a){if(r)e.minimumIntegerDigits=n.length;else if(i&&o)throw Error("We currently do not support maximum integer digits");else if(a)throw Error("We currently do not support exact integer digits");return""});continue}if(Z.test(n.stem)){e.minimumIntegerDigits=n.stem.length;continue}if(q.test(n.stem)){if(n.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(q,function(t,r,n,i,o,a){return"*"===n?e.minimumFractionDigits=r.length:i&&"#"===i[0]?e.maximumFractionDigits=i.length:o&&a?(e.minimumFractionDigits=o.length,e.maximumFractionDigits=o.length+a.length):(e.minimumFractionDigits=r.length,e.maximumFractionDigits=r.length),""});var i=n.options[0];"w"===i?e=(0,w.pi)((0,w.pi)({},e),{trailingZeroDisplay:"stripIfInteger"}):i&&(e=(0,w.pi)((0,w.pi)({},e),G(i)));continue}if(H.test(n.stem)){e=(0,w.pi)((0,w.pi)({},e),G(n.stem));continue}var o=W(n.stem);o&&(e=(0,w.pi)((0,w.pi)({},e),o));var a=function(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!Z.test(t))throw Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(n.stem);a&&(e=(0,w.pi)((0,w.pi)({},e),a))}return e}(r):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,e,r,n){for(var i,o=!1,a=[],s=new Set,u=n.value,c=n.location;;){if(0===u.length){var h=this.clonePosition();if("select"!==e&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(l.EXPECT_PLURAL_ARGUMENT_SELECTOR,l.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=X(h,this.clonePosition()),u=this.message.slice(h.offset,this.offset())}else break}if(s.has(u))return this.error("select"===e?l.DUPLICATE_SELECT_ARGUMENT_SELECTOR:l.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(o=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?l.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:l.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,X(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,e,r);if(p.err)return p;var g=this.tryParseArgumentClose(f);if(g.err)return g;a.push([u,{value:p.val,location:X(f,this.clonePosition())}]),s.add(u),this.bumpSpace(),u=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===a.length?this.error("select"===e?l.EXPECT_SELECT_ARGUMENT_SELECTOR:l.EXPECT_PLURAL_ARGUMENT_SELECTOR,X(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(l.MISSING_OTHER_CLAUSE,X(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)i=!0,o=10*o+(a-48),this.bump();else break}var s=X(n,this.clonePosition());return i?to(o*=r)?{val:o,err:null}:this.error(e,s):this.error(t,s)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=th(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(tu(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(t){var e=this.offset(),r=this.message.indexOf(t,e);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&tv(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(t>=65536?2:1));return null!=r?r:null},t}();function tm(t){return t>=97&&t<=122||t>=65&&t<=90}function tv(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function tb(t,e){void 0===e&&(e={});var r=new ty(t,e=(0,w.pi)({shouldParseSkeletons:!0,requiresOtherClause:!0},e)).parse();if(r.err){var n=SyntaxError(l[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return!(null==e?void 0:e.captureLocation)&&!function t(e){e.forEach(function(e){if(delete e.location,L(e)||P(e))for(var r in e.options)delete e.options[r].location,t(e.options[r].value);else I(e)&&B(e.style)?delete e.style.location:(O(e)||k(e))&&j(e.style)?delete e.style.location:R(e)&&t(e.children)})}(r.val),r.val}(s=p||(p={})).MISSING_VALUE="MISSING_VALUE",s.INVALID_VALUE="INVALID_VALUE",s.MISSING_INTL_API="MISSING_INTL_API";var tw=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.code=r,i.originalMessage=n,i}return(0,w.ZT)(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),tA=function(t){function e(e,r,n,i){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),p.INVALID_VALUE,i)||this}return(0,w.ZT)(e,t),e}(tw),tD=function(t){function e(e,r,n){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),p.INVALID_VALUE,n)||this}return(0,w.ZT)(e,t),e}(tw),tE=function(t){function e(e,r){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),p.MISSING_VALUE,r)||this}return(0,w.ZT)(e,t),e}(tw);(u=g||(g={}))[u.literal=0]="literal",u[u.object=1]="object";function tx(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}var tS=function(){function t(e,r,n,i){void 0===r&&(r=t.defaultLocale);var o,a,s,u=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=u.formatToParts(t);if(1===e.length)return e[0].value;var r=e.reduce(function(t,e){return t.length&&e.type===g.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(t){return function t(e,r,n,i,o,a,s){if(1===e.length&&C(e[0]))return[{type:g.literal,value:e[0].value}];for(var u,l=[],h=0;h<e.length;h++){var d=e[h];if(C(d)){l.push({type:g.literal,value:d.value});continue}if(d.type===c.pound){"number"==typeof a&&l.push({type:g.literal,value:n.getNumberFormat(r).format(a)});continue}var f=d.value;if(!(o&&f in o))throw new tE(f,s);var y=o[f];if(d.type===c.argument){(!y||"string"==typeof y||"number"==typeof y)&&(y="string"==typeof y||"number"==typeof y?String(y):""),l.push({type:"string"==typeof y?g.literal:g.object,value:y});continue}if(O(d)){var m="string"==typeof d.style?i.date[d.style]:j(d.style)?d.style.parsedOptions:void 0;l.push({type:g.literal,value:n.getDateTimeFormat(r,m).format(y)});continue}if(k(d)){var m="string"==typeof d.style?i.time[d.style]:j(d.style)?d.style.parsedOptions:i.time.medium;l.push({type:g.literal,value:n.getDateTimeFormat(r,m).format(y)});continue}if(I(d)){var m="string"==typeof d.style?i.number[d.style]:B(d.style)?d.style.parsedOptions:void 0;m&&m.scale&&(y*=m.scale||1),l.push({type:g.literal,value:n.getNumberFormat(r,m).format(y)});continue}if(R(d)){var b=d.children,w=d.value,A=o[w];if("function"!=typeof A)throw new tD(w,"function",s);var D=A(t(b,r,n,i,o,a).map(function(t){return t.value}));!Array.isArray(D)&&(D=[D]),l.push.apply(l,D.map(function(t){return{type:"string"==typeof t?g.literal:g.object,value:t}}))}if(L(d)){var E=d.options[y]||d.options.other;if(!E)throw new tA(d.value,y,Object.keys(d.options),s);l.push.apply(l,t(E.value,r,n,i,o));continue}if(P(d)){var E=d.options["=".concat(y)];if(!E){if(!Intl.PluralRules)throw new tw('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',p.MISSING_INTL_API,s);var x=n.getPluralRules(r,{type:d.pluralType}).select(y-(d.offset||0));E=d.options[x]||d.options.other}if(!E)throw new tA(d.value,y,Object.keys(d.options),s);l.push.apply(l,t(E.value,r,n,i,o,y-(d.offset||0)));continue}}return(u=l).length<2?u:u.reduce(function(t,e){var r=t[t.length-1];return r&&r.type===g.literal&&e.type===g.literal?r.value+=e.value:t.push(e),t},[])}(u.ast,u.locales,u.formatters,u.formats,t,void 0,u.message)},this.resolvedOptions=function(){var t;return{locale:(null===(t=u.resolvedLocale)||void 0===t?void 0:t.toString())||Intl.NumberFormat.supportedLocalesOf(u.locales)[0]}},this.getAst=function(){return u.ast},this.locales=r,this.resolvedLocale=t.resolveLocale(r),"string"==typeof e){if(this.message=e,!t.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var l=i||{},h=(l.formatters,(0,w._T)(l,["formatters"]));this.ast=t.__parse(e,(0,w.pi)((0,w.pi)({},h),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=(o=t.formats,(a=n)?Object.keys(o).reduce(function(t,e){var r,n;return t[e]=(r=o[e],(n=a[e])?(0,w.pi)((0,w.pi)((0,w.pi)({},r||{}),n||{}),Object.keys(r).reduce(function(t,e){return t[e]=(0,w.pi)((0,w.pi)({},r[e]),n[e]||{}),t},{})):r),t},(0,w.pi)({},o)):o),this.formatters=i&&i.formatters||(void 0===(s=this.formatterCache)&&(s={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:A(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,(0,w.ev)([void 0],e,!1)))},{cache:tx(s.number),strategy:T.variadic}),getDateTimeFormat:A(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,(0,w.ev)([void 0],e,!1)))},{cache:tx(s.dateTime),strategy:T.variadic}),getPluralRules:A(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,(0,w.ev)([void 0],e,!1)))},{cache:tx(s.pluralRules),strategy:T.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return!t.memoizedDefaultLocale&&(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){if(void 0!==Intl.Locale){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])}},t.__parse=tb,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();function tM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function t_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tM(Object(r),!0).forEach(function(e){(function(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tM(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function tN(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var tT=function(){var t,e,r;function i(t){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,i),this.type="i18nFormat",this.mem={},this.init(null,t)}return t=i,e=[{key:"init",value:function(t,e){var r=this,n=t&&t.options&&t.options.i18nFormat||{};if(this.options=function(t){return m.call(b.call(arguments,1),function(e){if(e)for(var r in e)void 0===t[r]&&(t[r]=e[r])}),t}(n,e,this.options||{},{memoize:!0,memoizeFallback:!1,bindI18n:"",bindI18nStore:"",parseErrorHandler:function(t,e,r,n){return r},parseLngForICU:function(t){return t}}),this.formats=this.options.formats,t){var i=this.options,o=i.bindI18n,a=i.bindI18nStore,s=i.memoize;t.IntlMessageFormat=tS,t.ICU=this,s&&(o&&t.on(o,function(){return r.clearCache()}),a&&t.store.on(a,function(){return r.clearCache()}))}}},{key:"addUserDefinedFormats",value:function(t){this.formats=this.formats?t_(t_({},this.formats),t):t}},{key:"parse",value:function(t,e,r,i,o,a){var s,u=a&&a.resolved&&a.resolved.res,l=this.options.memoize&&"".concat(r,".").concat(i,".").concat(o.replace(/\./g,"###"));this.options.memoize&&(s=function(t,e){var r=n(t,e),i=r.obj,o=r.k;if(i)return i[o]}(this.mem,l));try{if(!s){var c,h,d,f,p=this.options.parseLngForICU(r);if(s=new tS(t,p,this.formats,{ignoreTag:!0}),this.options.memoize&&(this.options.memoizeFallback||!a||u)){;c=this.mem,h=l,d=s,(f=n(c,h,Object)).obj[f.k]=d}}return s.format(e)}catch(r){return this.options.parseErrorHandler(r,o,t,e)}}},{key:"addLookupKeys",value:function(t,e,r,n,i){return t}},{key:"clearCache",value:function(){this.mem={}}}],tN(t.prototype,e),i}();tT.type="i18nFormat";var tC=tT},308144:function(t,e){e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,l=u>>1,c=-7,h=r?i-1:0,d=r?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+t[e+h],h+=d,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,n),o-=l}return(f?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,h=c>>1,d=23===i?5960464477539062e-23:0,f=n?0:o-1,p=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(isNaN(e=Math.abs(e))||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+h>=1?e+=d/u:e+=d*Math.pow(2,1-h),e*u>=2&&(a++,u/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[r+f]=255&s,f+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;t[r+f]=255&a,f+=p,a/=256,l-=8);t[r+f-p]|=128*g}},323086:function(t){var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,u=/^\s+|\s+$/g;function l(t){return t?t.replace(u,""):""}t.exports=function(t,u){if("string"!=typeof t)throw TypeError("First argument must be a string");if(!t)return[];u=u||{};var c=1,h=1;function d(t){var e=t.match(r);e&&(c+=e.length);var n=t.lastIndexOf("\n");h=~n?t.length-n:h+t.length}function f(){var t={line:c,column:h};return function(e){return e.position=new p(t),function(){m(n)}(),e}}function p(t){this.start=t,this.end={line:c,column:h},this.source=u.source}p.prototype.content=t;var g=[];function y(e){var r=Error(u.source+":"+c+":"+h+": "+e);if(r.reason=e,r.filename=u.source,r.line=c,r.column=h,r.source=t,u.silent)g.push(r);else throw r}function m(e){var r=e.exec(t);if(r){var n=r[0];return d(n),t=t.slice(n.length),r}}function b(){m(n)}function w(t){var e;for(t=t||[];e=A();)!1!==e&&t.push(e);return t}function A(){var e=f();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var r=2;""!=t.charAt(r)&&("*"!=t.charAt(r)||"/"!=t.charAt(r+1));)++r;if(r+=2,""===t.charAt(r-1))return y("End of comment missing");var n=t.slice(2,r-2);return h+=2,d(n),t=t.slice(r),h+=2,e({type:"comment",comment:n})}}return m(n),function(){var t,r=[];for(w(r);t=function(){var t=f(),r=m(i);if(r){if(A(),!m(o))return y("property missing ':'");var n=m(a),u=t({type:"declaration",property:l(r[0].replace(e,"")),value:n?l(n[0].replace(e,"")):""});return m(s),u}}();)!1!==t&&(r.push(t),w(r));return r}()}},337639:function(){!function(){"use strict";if("object"==typeof window){if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){!("isIntersecting"in window.IntersectionObserverEntry.prototype)&&Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}var t=function(t){for(var e=t,r=i(e);r;)r=i(e=r.ownerDocument);return e}(window.document),e=[],r=null,n=null;a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return!r&&(r=function(t,r){n=t&&r?d(t,r):c(),e.forEach(function(t){t._checkForIntersections()})}),r},a._resetCrossOriginUpdater=function(){r=null,n=null},a.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!(t&&1==t.nodeType))throw Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},a.prototype._initThresholds=function(t){var e=t||[0];return!Array.isArray(e)&&(e=[e]),e.sort().filter(function(t,e,r){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw Error("threshold must be a number between 0 and 1 inclusively");return t!==r[e-1]})},a.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},a.prototype._monitorIntersections=function(e){var r=e.defaultView;if(!!r&&-1==this._monitoringDocuments.indexOf(e)){var n=this._checkForIntersections,o=null,a=null;if(this.POLL_INTERVAL?o=r.setInterval(n,this.POLL_INTERVAL):(s(r,"resize",n,!0),s(e,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in r&&(a=new r.MutationObserver(n)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push(function(){var t=e.defaultView;t&&(o&&t.clearInterval(o),u(t,"resize",n,!0)),u(e,"scroll",n,!0),a&&a.disconnect()}),e!=(this.root&&(this.root.ownerDocument||this.root)||t)){var l=i(e);l&&this._monitorIntersections(l.ownerDocument)}}},a.prototype._unmonitorIntersections=function(e){var r=this._monitoringDocuments.indexOf(e);if(-1==r)return;var n=this.root&&(this.root.ownerDocument||this.root)||t;if(!this._observationTargets.some(function(t){var r=t.element.ownerDocument;if(r==e)return!0;for(;r&&r!=n;){var o=i(r);if((r=o&&o.ownerDocument)==e)return!0}return!1})){var o=this._monitoringUnsubscribes[r];if(this._monitoringDocuments.splice(r,1),this._monitoringUnsubscribes.splice(r,1),o(),e!=n){var a=i(e);a&&this._unmonitorIntersections(a.ownerDocument)}}},a.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},a.prototype._checkForIntersections=function(){if(!!this.root||!r||!!n){var t=this._rootIsInDom(),e=t?this._getRootRect():c();this._observationTargets.forEach(function(n){var i=n.element,a=l(i),s=this._rootContainsTarget(i),u=n.entry,h=t&&s&&this._computeTargetAndRootIntersection(i,a,e),d=null;this._rootContainsTarget(i)?(!r||this.root)&&(d=e):d=c();var f=n.entry=new o({time:function(){return window.performance&&performance.now&&performance.now()}(),target:i,boundingClientRect:a,rootBounds:d,intersectionRect:h});u?t&&s?this._hasCrossedThreshold(u,f)&&this._queuedEntries.push(f):u&&u.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(e,i,o){if("none"!=window.getComputedStyle(e).display){for(var a=i,s=p(e),u=!1;!u&&s;){var c=null,h=1==s.nodeType?window.getComputedStyle(s):{};if("none"==h.display)return null;if(s==this.root||9==s.nodeType){if(u=!0,s==this.root||s==t)r&&!this.root?n&&(0!=n.width||0!=n.height)?c=n:(s=null,c=null,a=null):c=o;else{var f=p(s),g=f&&l(f),y=f&&this._computeTargetAndRootIntersection(f,g,o);g&&y?(s=f,c=d(g,y)):(s=null,a=null)}}else{var m=s.ownerDocument;s!=m.body&&s!=m.documentElement&&"visible"!=h.overflow&&(c=l(s))}if(c&&(a=function(t,e){var r=Math.max(t.top,e.top),n=Math.min(t.bottom,e.bottom),i=Math.max(t.left,e.left),o=Math.min(t.right,e.right),a=o-i,s=n-r;return a>=0&&s>=0&&{top:r,bottom:n,left:i,right:o,width:a,height:s}||null}(c,a)),!a)break;s=s&&p(s)}return a}},a.prototype._getRootRect=function(){var e;if(this.root&&!g(this.root))e=l(this.root);else{var r=g(this.root)?this.root:t,n=r.documentElement,i=r.body;e={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},a.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,r){return"px"==e.unit?e.value:e.value*(r%2?t.width:t.height)/100}),r={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return r.width=r.right-r.left,r.height=r.bottom-r.top,r},a.prototype._hasCrossedThreshold=function(t,e){var r=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(r!==n)for(var i=0;i<this.thresholds.length;i++){var o=this.thresholds[i];if(o==r||o==n||o<r!=o<n)return!0}},a.prototype._rootIsInDom=function(){return!this.root||f(t,this.root)},a.prototype._rootContainsTarget=function(e){var r=this.root&&(this.root.ownerDocument||this.root)||t;return f(r,e)&&(!this.root||r==e.ownerDocument)},a.prototype._registerInstance=function(){0>e.indexOf(this)&&e.push(this)},a.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)};window.IntersectionObserver=a,window.IntersectionObserverEntry=o}function i(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function o(t){this.time=t.time,this.target=t.target,this.rootBounds=h(t.rootBounds),this.boundingClientRect=h(t.boundingClientRect),this.intersectionRect=h(t.intersectionRect||c()),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,r=e.width*e.height,n=this.intersectionRect,i=n.width*n.height;r?this.intersectionRatio=Number((i/r).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function a(t,e){var r=e||{};if("function"!=typeof t)throw Error("callback must be a function");if(r.root&&1!=r.root.nodeType&&9!=r.root.nodeType)throw Error("root must be a Document or Element");this._checkForIntersections=function(t,e){var r=null;return function(){!r&&(r=setTimeout(function(){t(),r=null},e))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(t,e,r,n){"function"==typeof t.addEventListener?t.addEventListener(e,r,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,r)}function u(t,e,r,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,r,n||!1):"function"==typeof t.detachEvent&&t.detachEvent("on"+e,r)}function l(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(!(e.width&&e.height)&&(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):c()}function c(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function h(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function d(t,e){var r=e.top-t.top,n=e.left-t.left;return{top:r,left:n,height:e.height,width:e.width,bottom:r+e.height,right:n+e.width}}function f(t,e){for(var r=e;r;){if(r==t)return!0;r=p(r)}return!1}function p(e){var r=e.parentNode;return 9==e.nodeType&&e!=t?i(e):(r&&r.assignedSlot&&(r=r.assignedSlot.parentNode),r&&11==r.nodeType&&r.host)?r.host:r}function g(t){return t&&9===t.nodeType}}()},30316:function(t,e,r){"use strict";r.d(e,{fo:()=>s,GW:()=>l,D0:()=>o});var n=r("49565"),i=r("784221");function o(t,e,r,o){!function(t){if(void 0!==t)throw Error(n.Cl)}(e),a(i.LD,t,r.toString(),o)}function a(t,e,r,i){var o=function(t){var e=[];if(Array.isArray(t)){var r=function(t){for(var e=new Set,r=0;r<t.length;r++){var n=t[r];if(e.has(n))return n;e.add(n)}}((e=t).map(function(t){return t.key}));if(void 0!==r)throw Error(n.O8+" "+r.toString())}else e=[t];return e}(i),a={};Reflect.hasOwnMetadata(t,e)&&(a=Reflect.getMetadata(t,e));var s=a[r];if(void 0===s)s=[];else{for(var u=function(t){if(o.some(function(e){return e.key===t.key}))throw Error(n.O8+" "+t.key.toString())},l=0,c=s;l<c.length;l++)u(c[l])}s.push.apply(s,o),a[r]=s,Reflect.defineMetadata(t,a,e)}function s(t){return function(e,r,s){"number"==typeof s?o(e,r,s,t):!function(t,e,r){if(void 0!==t.prototype)throw Error(n.Cl);a(i.Sy,t.constructor,e,r)}(e,r,t)}}function u(t,e){Reflect.decorate(t,e)}function l(t,e,r){if("number"==typeof r){var n,i;u([(n=r,i=t,function(t,e){i(t,e,n)})],e)}else"string"==typeof r?Reflect.decorate([t],e,r):u([t],e)}},771531:function(t,e,r){"use strict";r.d(e,{f:function(){return i}});var n=r(784221),i=(0,r(425986).v)(n.B8)},425986:function(t,e,r){"use strict";r.d(e,{v:function(){return a}});var n=r(49565),i=r(252497),o=r(30316);function a(t){return function(e){return function(r,a,s){if(void 0===e){var u="function"==typeof r?r.name:r.constructor.name;throw Error((0,n.MS)(u))}return(0,o.fo)(new i.S(t,e))(r,a,s)}}}},435946:function(t,e,r){"use strict";r.d(e,{b:function(){return o}});var n=r(49565),i=r(784221);function o(){return function(t){if(Reflect.hasOwnMetadata(i.FL,t))throw Error(n.gf);var e=Reflect.getMetadata(i.rQ,t)||[];return Reflect.defineMetadata(i.FL,e,t),t}}},523158:function(t,e,r){"use strict";r.d(e,{n:function(){return i}});var n=r(784221),i=(0,r(425986).v)(n.Lc)},734371:function(t,e,r){"use strict";r.d(e,{t:function(){return a}});var n=r(784221),i=r(252497),o=r(30316);function a(t){return(0,o.fo)(new i.S(n.vO,t))}},686346:function(t,e,r){"use strict";r.d(e,{j:function(){return a}});var n=r(784221),i=r(252497),o=r(30316);function a(){return(0,o.fo)(new i.S(n.YO,!0))}},259674:function(t,e,r){"use strict";r.d(e,{z:function(){return o}});var n=r(49565),i=r(784221),o=(0,r(922557).b)(i.af,n.tE)},574467:function(t,e,r){"use strict";r.d(e,{P:function(){return o}});var n=r(49565),i=r(784221),o=(0,r(922557).b)(i.Z8,n.DL)},922557:function(t,e,r){"use strict";r.d(e,{b:function(){return i}});var n=r(252497);function i(t,e){return function(){return function(r,i){var o=new n.S(t,i);if(Reflect.hasOwnMetadata(t,r.constructor))throw Error(e);Reflect.defineMetadata(t,o,r.constructor)}}}},49565:function(t,e,r){"use strict";r.d(e,{$z:function(){return L},Cl:function(){return A},DL:function(){return _},FJ:function(){return b},GF:function(){return c},H1:function(){return o},Kt:function(){return s},MS:function(){return d},NE:function(){return g},O8:function(){return i},QY:function(){return f},VF:function(){return u},YG:function(){return O},aD:function(){return k},cm:function(){return l},d1:function(){return m},eP:function(){return h},gf:function(){return n},gq:function(){return C},iD:function(){return T},iI:function(){return D},jT:function(){return p},k_:function(){return x},pv:function(){return y},rR:function(){return S},tE:function(){return N},vD:function(){return M},wk:function(){return w},xU:function(){return E},xZ:function(){return I},yu:function(){return a}});var n="Cannot apply @injectable decorator multiple times.",i="Metadata key was used more than once in a parameter:",o="NULL argument",a="Key Not Found",s="Ambiguous match found for serviceIdentifier:",u="Could not unbind serviceIdentifier:",l="No matching bindings found for serviceIdentifier:",c="Missing required @injectable annotation in:",h="Missing required @inject or @multiInject annotation in:",d=function(t){return"@inject called with undefined this could mean that the class "+t+" has a circular dependency problem. You can use a LazyServiceIdentifier to overcome this limitation."},f="Circular dependency found:",p="Invalid binding type:",g="No snapshot available to restore.",y="Invalid return type in middleware. Middleware must return!",m="Value provided to function binding must be a function!",b=function(t){return"You are attempting to construct '"+t+"' in a synchronous way\n but it has asynchronous dependencies."},w="The toSelf function can only be applied when a constructor is used as service identifier",A="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.",D=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"The number of constructor arguments in the derived class "+t[0]+" must be >= than the number of constructor arguments of its base class."},E="Invalid Container constructor argument. Container options must be an object.",x='Invalid Container option. Default scope must be a string ("singleton" or "transient").',S="Invalid Container option. Auto bind injectable must be a boolean",M="Invalid Container option. Skip base check must be a boolean",_="Cannot apply @preDestroy decorator multiple times in the same class",N="Cannot apply @postConstruct decorator multiple times in the same class",T="Attempting to unbind dependency with asynchronous destruction (@preDestroy or onDeactivation)",C=function(t,e){return"@postConstruct error in class "+t+": "+e},I=function(t,e){return"@preDestroy error in class "+t+": "+e},O=function(t,e){return"onDeactivation() error in class "+t+": "+e},k=function(t,e){return"It looks like there is a circular dependency in one of the '"+t+"' bindings. Please investigate bindings with "+("service identifier '"+e)+"'."},L="Maximum call stack size exceeded"},784221:function(t,e,r){"use strict";r.d(e,{B8:function(){return s},FL:function(){return h},LD:function(){return l},Lc:function(){return u},Mx:function(){return o},Sy:function(){return c},YO:function(){return a},Z8:function(){return p},af:function(){return f},dM:function(){return i},rQ:function(){return d},vO:function(){return n},xR:function(){return g}});var n="named",i="name",o="unmanaged",a="optional",s="inject",u="multi_inject",l="inversify:tagged",c="inversify:tagged_props",h="inversify:paramtypes",d="design:paramtypes",f="post_construct",p="pre_destroy",g=[s,u,i,o,n,a]},630243:function(t,e,r){"use strict";r.d(e,{W:()=>tx});var n,i,o={Request:"Request",Singleton:"Singleton",Transient:"Transient"},a={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"},s={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"},u=r("978923"),l=function(){function t(t,e){this.id=(0,u.id)(),this.activated=!1,this.serviceIdentifier=t,this.scope=e,this.type=a.Invalid,this.constraint=function(t){return!0},this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.onActivation=null,this.onDeactivation=null,this.dynamicValue=null}return t.prototype.clone=function(){var e=new t(this.serviceIdentifier,this.scope);return e.activated=e.scope===o.Singleton&&this.activated,e.implementationType=this.implementationType,e.dynamicValue=this.dynamicValue,e.scope=this.scope,e.type=this.type,e.factory=this.factory,e.provider=this.provider,e.constraint=this.constraint,e.onActivation=this.onActivation,e.onDeactivation=this.onDeactivation,e.cache=this.cache,e},t}(),c=r("49565"),h=r("784221"),d=function(){function t(){}return t.prototype.getConstructorMetadata=function(t){return{compilerGeneratedMetadata:Reflect.getMetadata(h.FL,t),userGeneratedMetadata:Reflect.getMetadata(h.LD,t)||{}}},t.prototype.getPropertiesMetadata=function(t){return Reflect.getMetadata(h.Sy,t)||[]},t}(),f={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1};function p(t){return t instanceof RangeError||t.message===c.$z}var g=function(t,e){try{return t()}catch(t){throw p(t)&&(t=e()),t}};function y(t){if("function"==typeof t){var e=t;return e.name}if("symbol"==typeof t)return t.toString();var e=t;return e}function m(t,e,r){var n="",i=r(t,e);return 0!==i.length&&(n="\nRegistered bindings:",i.forEach(function(t){var e="Object";null!==t.implementationType&&(e=b(t.implementationType)),n=n+"\n "+e,t.constraint.metaData&&(n=n+" - "+t.constraint.metaData)})),n}function b(t){if(t.name)return t.name;var e=t.toString(),r=e.match(/^function\s*([^\s(]+)/);return r?r[1]:"Anonymous function: "+e}var w=function(){function t(t){this.id=(0,u.id)(),this.container=t}return t.prototype.addPlan=function(t){this.plan=t},t.prototype.setCurrentRequest=function(t){this.currentRequest=t},t}(),A=r("252497"),D=function(t,e){this.parentContext=t,this.rootRequest=e},E=function(){function t(t){this._cb=t}return t.prototype.unwrap=function(){return this._cb()},t}(),x=function(){function t(t){this.str=t}return t.prototype.startsWith=function(t){return 0===this.str.indexOf(t)},t.prototype.endsWith=function(t){var e="",r=t.split("").reverse().join("");return e=this.str.split("").reverse().join(""),this.startsWith.call({str:e},r)},t.prototype.contains=function(t){return -1!==this.str.indexOf(t)},t.prototype.equals=function(t){return this.str===t},t.prototype.value=function(){return this.str},t}(),S=function(){function t(t,e,r,n){this.id=(0,u.id)(),this.type=t,this.serviceIdentifier=r;var i="symbol"==typeof e?e.toString().slice(7,-1):e;this.name=new x(i||""),this.identifier=e,this.metadata=[];var o=null;"string"==typeof n?o=new A.S(h.vO,n):n instanceof A.S&&(o=n),null!==o&&this.metadata.push(o)}return t.prototype.hasTag=function(t){for(var e=0,r=this.metadata;e<r.length;e++)if(r[e].key===t)return!0;return!1},t.prototype.isArray=function(){return this.hasTag(h.Lc)},t.prototype.matchesArray=function(t){return this.matchesTag(h.Lc)(t)},t.prototype.isNamed=function(){return this.hasTag(h.vO)},t.prototype.isTagged=function(){return this.metadata.some(function(t){return h.xR.every(function(e){return t.key!==e})})},t.prototype.isOptional=function(){return this.matchesTag(h.YO)(!0)},t.prototype.getNamedTag=function(){return this.isNamed()?this.metadata.filter(function(t){return t.key===h.vO})[0]:null},t.prototype.getCustomTags=function(){return this.isTagged()?this.metadata.filter(function(t){return h.xR.every(function(e){return t.key!==e})}):null},t.prototype.matchesNamedTag=function(t){return this.matchesTag(h.vO)(t)},t.prototype.matchesTag=function(t){var e=this;return function(r){for(var n=0,i=e.metadata;n<i.length;n++){var o=i[n];if(o.key===t&&o.value===r)return!0}return!1}},t}(),M=function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i<o;i++)(n||!(i in e))&&(!n&&(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))};function _(t,e,r,n){var i=t.getConstructorMetadata(r),o=i.compilerGeneratedMetadata;if(void 0===o)throw Error(c.GF+" "+e+".");var a=i.userGeneratedMetadata,u=Object.keys(a),l=0===r.length&&u.length>0,h=u.length>r.length,d=function(t,e,r,n,i){for(var o=[],a=0;a<i;a++){var u=function(t,e,r,n,i){var o=i[t.toString()]||[],a=N(o),u=!0!==a.unmanaged,l=n[t],h=a.inject||a.multiInject;if((l=h||l)instanceof E&&(l=l.unwrap()),u){var d=l===Object,f=l===Function,p=void 0===l;if(!e&&(d||f||p))throw Error(c.eP+" argument "+t+" in class "+r+".");var g=new S(s.ConstructorArgument,a.targetName,l);return g.metadata=o,g}return null}(a,t,e,r,n);null!==u&&o.push(u)}return o}(n,e,o,a,l||h?u.length:r.length),f=function t(e,r,n){for(var i=e.getPropertiesMetadata(r),o=[],a=Object.getOwnPropertySymbols(i),u=Object.keys(i).concat(a),l=0;l<u.length;l++){var h=u[l],d=i[h],f=N(d),p=f.targetName||h,g=function(t,e,r,n){var i=t||e;if(void 0===i)throw Error(c.GF+" for property "+String(r)+" in class "+n+".");return i}(f.inject,f.multiInject,h,n),y=new S(s.ClassProperty,p,g);y.metadata=d,o.push(y)}var m=Object.getPrototypeOf(r.prototype).constructor;if(m!==Object){var b=t(e,m,n);o=M(M([],o,!0),b,!0)}return o}(t,r,e);return M(M([],d,!0),f,!0)}function N(t){var e={};return t.forEach(function(t){e[t.key.toString()]=t.value}),{inject:e[h.B8],multiInject:e[h.Lc],targetName:e[h.dM],unmanaged:e[h.Mx]}}var T=function(){function t(t,e,r,n,i){this.id=(0,u.id)(),this.serviceIdentifier=t,this.parentContext=e,this.parentRequest=r,this.target=i,this.childRequests=[],this.bindings=Array.isArray(n)?n:[n],this.requestScope=null===r?new Map:null}return t.prototype.addChildRequest=function(e,r,n){var i=new t(e,this.parentContext,this,r,n);return this.childRequests.push(i),i},t}();function C(t){return t._bindingDictionary}function I(t,e,r,n,i){var o=O(r.container,i.serviceIdentifier),a=[];return o.length===f.NoBindingsAvailable&&r.container.options.autoBindInjectable&&"function"==typeof i.serviceIdentifier&&t.getConstructorMetadata(i.serviceIdentifier).compilerGeneratedMetadata&&(r.container.bind(i.serviceIdentifier).toSelf(),o=O(r.container,i.serviceIdentifier)),a=e?o:o.filter(function(t){var e=new T(t.serviceIdentifier,r,n,t,i);return t.constraint(e)}),function(t,e,r,n){switch(e.length){case f.NoBindingsAvailable:if(r.isOptional())return;var i=y(t),o=c.cm;throw o+=function(t,e){if(!(e.isTagged()||e.isNamed()))return" "+t;var r="",n=e.getNamedTag(),i=e.getCustomTags();return null!==n&&(r+=n.toString()+"\n"),null!==i&&i.forEach(function(t){r+=t.toString()+"\n"})," "+t+"\n "+t+" - "+r}(i,r),Error(o+=m(n,i,O));case f.OnlyOneBindingAvailable:return;case f.MultipleBindingsAvailable:default:if(r.isArray())return;var i=y(t),o=c.Kt+" "+i;throw Error(o+=m(n,i,O))}}(i.serviceIdentifier,a,i,r.container),a}function O(t,e){var r=[],n=C(t);return n.hasKey(e)?r=n.get(e):null!==t.parent&&(r=O(t.parent,e)),r}function k(t){return("object"==typeof t&&null!==t||"function"==typeof t)&&"function"==typeof t.then}function L(t){return!!k(t)||Array.isArray(t)&&t.some(k)}var P=function(t,e){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},R=function(t,e,r){e.scope===o.Singleton&&j(e,r),e.scope===o.Request&&B(t,e,r)},B=function(t,e,r){!t.has(e.id)&&t.set(e.id,r)},j=function(t,e){t.cache=e,t.activated=!0,k(e)&&F(t,e)},F=function(t,e){var r,n,i,o;return r=void 0,n=void 0,i=void 0,o=function(){var r,n;return P(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,e];case 1:return r=i.sent(),t.cache=r,[3,3];case 2:throw n=i.sent(),t.cache=null,t.activated=!1,n;case 3:return[2]}})},new(i||(i=Promise))(function(t,e){function a(t){try{u(o.next(t))}catch(t){e(t)}}function s(t){try{u(o.throw(t))}catch(t){e(t)}}function u(e){var r;e.done?t(e.value):((r=e.value)instanceof i?r:new i(function(t){t(r)})).then(a,s)}u((o=o.apply(r,n||[])).next())})};(n=i||(i={})).DynamicValue="toDynamicValue",n.Factory="toFactory",n.Provider="toProvider";var U=function(t){var e=null;switch(t.type){case a.ConstantValue:case a.Function:e=t.cache;break;case a.Constructor:case a.Instance:e=t.implementationType;break;case a.DynamicValue:e=t.dynamicValue;break;case a.Provider:e=t.provider;break;case a.Factory:e=t.factory}if(null===e){var r=y(t.serviceIdentifier);throw Error(c.jT+" "+r)}},z=function(t){switch(t.type){case a.Factory:return{factory:t.factory,factoryType:i.Factory};case a.Provider:return{factory:t.provider,factoryType:i.Provider};case a.DynamicValue:return{factory:t.dynamicValue,factoryType:i.DynamicValue};default:throw Error("Unexpected factory type "+t.type)}},q=function(){return(q=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},H=function(t,e,r,n){return new(r||(r=Promise))(function(i,o){function a(t){try{u(n.next(t))}catch(t){o(t)}}function s(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,s)}u((n=n.apply(t,e||[])).next())})},V=function(t,e){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},Z=function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i<o;i++)(n||!(i in e))&&(!n&&(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))};function G(t){var e,r=new((e=t.constr).bind.apply(e,Z([void 0],t.constructorInjections,!1)));return t.propertyRequests.forEach(function(e,n){var i=e.target.identifier,o=t.propertyInjections[n];(!e.target.isOptional()||void 0!==o)&&(r[i]=o)}),r}function W(t){return H(this,void 0,void 0,function(){var e,r,n,i;return V(this,function(o){for(r=0,e=[],n=t;r<n.length;r++)Array.isArray(i=n[r])?e.push(Promise.all(i)):e.push(i);return[2,Promise.all(e)]})})}function Y(t,e){var r=function(t,e){var r;if(Reflect.hasMetadata(h.af,t)){var n=Reflect.getMetadata(h.af,t);try{return null===(r=e[n.value])||void 0===r?void 0:r.call(e)}catch(e){if(e instanceof Error)throw Error((0,c.gq)(t.name,e.message))}}}(t,e);return k(r)?r.then(function(){return e}):e}var $=function(t,e){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},Q=function(t){return function(e){e.parentContext.setCurrentRequest(e);var r=e.bindings,n=e.childRequests,i=e.target&&e.target.isArray(),o=!e.parentRequest||!e.parentRequest.target||!e.target||!e.parentRequest.target.matchesArray(e.target.serviceIdentifier);if(i&&o)return n.map(function(e){return Q(t)(e)});if(!e.target.isOptional()||0!==r.length)return tt(t,e,r[0])}},J=function(t,e){var r=z(t);return g(function(){return r.factory.bind(t)(e)},function(){return Error(c.aD(r.factoryType,e.currentRequest.serviceIdentifier.toString()))})},X=function(t,e,r){var n,i,u,l,d,f,p,g,y=e.childRequests;switch(U(r),r.type){case a.ConstantValue:case a.Function:g=r.cache;break;case a.Constructor:g=r.implementationType;break;case a.Instance:;n=r,i=r.implementationType,u=y,l=Q(t),d=n,f=i,d.scope!==o.Singleton&&function(t,e){var r="Class cannot be instantiated in "+(t.scope===o.Request?"request":"transient")+" scope.";if("function"==typeof t.onDeactivation)throw Error((0,c.YG)(e.name,r));if(Reflect.hasMetadata(h.Z8,e))throw Error((0,c.xZ)(e.name,r))}(d,f),g=k(p=function(t,e,r){var n;if(e.length>0){var i,o,a=(i=e,o=r,i.reduce(function(t,e){var r=o(e);return e.target.type===s.ConstructorArgument?t.constructorInjections.push(r):(t.propertyRequests.push(e),t.propertyInjections.push(r)),!t.isAsync&&(t.isAsync=L(r)),t},{constructorInjections:[],propertyInjections:[],propertyRequests:[],isAsync:!1})),u=q(q({},a),{constr:t});n=a.isAsync?function(t){return H(this,void 0,void 0,function(){var e,r;return V(this,function(n){switch(n.label){case 0:return[4,W(t.constructorInjections)];case 1:return e=n.sent(),[4,W(t.propertyInjections)];case 2:return r=n.sent(),[2,G(q(q({},t),{constructorInjections:e,propertyInjections:r}))]}})})}(u):G(u)}else n=new t;return n}(i,u,l))?p.then(function(t){return Y(i,t)}):Y(i,p);break;default:g=J(r,e.parentContext)}return g},K=function(t,e,r){var n,i,a=(n=t,(i=e).scope===o.Singleton&&i.activated?i.cache:i.scope===o.Request&&n.has(i.id)?n.get(i.id):null);return null!==a?a:(R(t,e,a=r()),a)},tt=function(t,e,r){return K(t,r,function(){var n=X(t,e,r);return n=k(n)?n.then(function(t){return te(e,r,t)}):te(e,r,n)})};function te(t,e,r){var n,i=tr(t.parentContext,e,r),o=ta(t.parentContext.container),a=o.next();do{n=a.value;var s=t.parentContext,u=to(n,t.serviceIdentifier);i=k(i)?ti(u,s,i):tn(u,s,i),a=o.next()}while(!0!==a.done&&!C(n).hasKey(t.serviceIdentifier));return i}var tr=function(t,e,r){var n;return n="function"==typeof e.onActivation?e.onActivation(t,r):r},tn=function(t,e,r){for(var n=t.next();!n.done;){if(k(r=n.value(e,r)))return ti(t,e,r);n=t.next()}return r},ti=function(t,e,r){var n,i,o,a;return n=void 0,i=void 0,o=void 0,a=function(){var n,i;return $(this,function(o){switch(o.label){case 0:return[4,r];case 1:n=o.sent(),i=t.next(),o.label=2;case 2:if(i.done)return[3,4];return[4,i.value(e,n)];case 3:return n=o.sent(),i=t.next(),[3,2];case 4:return[2,n]}})},new(o||(o=Promise))(function(t,e){function r(t){try{u(a.next(t))}catch(t){e(t)}}function s(t){try{u(a.throw(t))}catch(t){e(t)}}function u(e){var n;e.done?t(e.value):((n=e.value)instanceof o?n:new o(function(t){t(n)})).then(r,s)}u((a=a.apply(n,i||[])).next())})},to=function(t,e){var r=t._activations;return r.hasKey(e)?r.get(e).values():[].values()},ta=function(t){for(var e=[t],r=t.parent;null!==r;)e.push(r),r=r.parent;return{next:function(){var t=e.pop();return void 0!==t?{done:!1,value:t}:{done:!0,value:void 0}}}},ts=function(t,e){var r=t.parentRequest;return null!==r&&(!!e(r)||ts(r,e))},tu=function(t){return function(e){var r=function(r){return null!==r&&null!==r.target&&r.target.matchesTag(t)(e)};return r.metaData=new A.S(t,e),r}},tl=tu(h.vO),tc=function(t){return function(e){var r=null;if(null!==e)return(r=e.bindings[0],"string"==typeof t)?r.serviceIdentifier===t:t===e.bindings[0].implementationType;return!1}},th=function(){function t(t){this._binding=t}return t.prototype.when=function(t){return this._binding.constraint=t,new td(this._binding)},t.prototype.whenTargetNamed=function(t){return this._binding.constraint=tl(t),new td(this._binding)},t.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(t){return null!==t&&null!==t.target&&!t.target.isNamed()&&!t.target.isTagged()},new td(this._binding)},t.prototype.whenTargetTagged=function(t,e){return this._binding.constraint=tu(t)(e),new td(this._binding)},t.prototype.whenInjectedInto=function(t){return this._binding.constraint=function(e){return null!==e&&tc(t)(e.parentRequest)},new td(this._binding)},t.prototype.whenParentNamed=function(t){return this._binding.constraint=function(e){return null!==e&&tl(t)(e.parentRequest)},new td(this._binding)},t.prototype.whenParentTagged=function(t,e){return this._binding.constraint=function(r){return null!==r&&tu(t)(e)(r.parentRequest)},new td(this._binding)},t.prototype.whenAnyAncestorIs=function(t){return this._binding.constraint=function(e){return null!==e&&ts(e,tc(t))},new td(this._binding)},t.prototype.whenNoAncestorIs=function(t){return this._binding.constraint=function(e){return null!==e&&!ts(e,tc(t))},new td(this._binding)},t.prototype.whenAnyAncestorNamed=function(t){return this._binding.constraint=function(e){return null!==e&&ts(e,tl(t))},new td(this._binding)},t.prototype.whenNoAncestorNamed=function(t){return this._binding.constraint=function(e){return null!==e&&!ts(e,tl(t))},new td(this._binding)},t.prototype.whenAnyAncestorTagged=function(t,e){return this._binding.constraint=function(r){return null!==r&&ts(r,tu(t)(e))},new td(this._binding)},t.prototype.whenNoAncestorTagged=function(t,e){return this._binding.constraint=function(r){return null!==r&&!ts(r,tu(t)(e))},new td(this._binding)},t.prototype.whenAnyAncestorMatches=function(t){return this._binding.constraint=function(e){return null!==e&&ts(e,t)},new td(this._binding)},t.prototype.whenNoAncestorMatches=function(t){return this._binding.constraint=function(e){return null!==e&&!ts(e,t)},new td(this._binding)},t}(),td=function(){function t(t){this._binding=t}return t.prototype.onActivation=function(t){return this._binding.onActivation=t,new th(this._binding)},t.prototype.onDeactivation=function(t){return this._binding.onDeactivation=t,new th(this._binding)},t}(),tf=function(){function t(t){this._binding=t,this._bindingWhenSyntax=new th(this._binding),this._bindingOnSyntax=new td(this._binding)}return t.prototype.when=function(t){return this._bindingWhenSyntax.when(t)},t.prototype.whenTargetNamed=function(t){return this._bindingWhenSyntax.whenTargetNamed(t)},t.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},t.prototype.whenTargetTagged=function(t,e){return this._bindingWhenSyntax.whenTargetTagged(t,e)},t.prototype.whenInjectedInto=function(t){return this._bindingWhenSyntax.whenInjectedInto(t)},t.prototype.whenParentNamed=function(t){return this._bindingWhenSyntax.whenParentNamed(t)},t.prototype.whenParentTagged=function(t,e){return this._bindingWhenSyntax.whenParentTagged(t,e)},t.prototype.whenAnyAncestorIs=function(t){return this._bindingWhenSyntax.whenAnyAncestorIs(t)},t.prototype.whenNoAncestorIs=function(t){return this._bindingWhenSyntax.whenNoAncestorIs(t)},t.prototype.whenAnyAncestorNamed=function(t){return this._bindingWhenSyntax.whenAnyAncestorNamed(t)},t.prototype.whenAnyAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenAnyAncestorTagged(t,e)},t.prototype.whenNoAncestorNamed=function(t){return this._bindingWhenSyntax.whenNoAncestorNamed(t)},t.prototype.whenNoAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenNoAncestorTagged(t,e)},t.prototype.whenAnyAncestorMatches=function(t){return this._bindingWhenSyntax.whenAnyAncestorMatches(t)},t.prototype.whenNoAncestorMatches=function(t){return this._bindingWhenSyntax.whenNoAncestorMatches(t)},t.prototype.onActivation=function(t){return this._bindingOnSyntax.onActivation(t)},t.prototype.onDeactivation=function(t){return this._bindingOnSyntax.onDeactivation(t)},t}(),tp=function(){function t(t){this._binding=t}return t.prototype.inRequestScope=function(){return this._binding.scope=o.Request,new tf(this._binding)},t.prototype.inSingletonScope=function(){return this._binding.scope=o.Singleton,new tf(this._binding)},t.prototype.inTransientScope=function(){return this._binding.scope=o.Transient,new tf(this._binding)},t}(),tg=function(){function t(t){this._binding=t,this._bindingWhenSyntax=new th(this._binding),this._bindingOnSyntax=new td(this._binding),this._bindingInSyntax=new tp(t)}return t.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},t.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},t.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},t.prototype.when=function(t){return this._bindingWhenSyntax.when(t)},t.prototype.whenTargetNamed=function(t){return this._bindingWhenSyntax.whenTargetNamed(t)},t.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},t.prototype.whenTargetTagged=function(t,e){return this._bindingWhenSyntax.whenTargetTagged(t,e)},t.prototype.whenInjectedInto=function(t){return this._bindingWhenSyntax.whenInjectedInto(t)},t.prototype.whenParentNamed=function(t){return this._bindingWhenSyntax.whenParentNamed(t)},t.prototype.whenParentTagged=function(t,e){return this._bindingWhenSyntax.whenParentTagged(t,e)},t.prototype.whenAnyAncestorIs=function(t){return this._bindingWhenSyntax.whenAnyAncestorIs(t)},t.prototype.whenNoAncestorIs=function(t){return this._bindingWhenSyntax.whenNoAncestorIs(t)},t.prototype.whenAnyAncestorNamed=function(t){return this._bindingWhenSyntax.whenAnyAncestorNamed(t)},t.prototype.whenAnyAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenAnyAncestorTagged(t,e)},t.prototype.whenNoAncestorNamed=function(t){return this._bindingWhenSyntax.whenNoAncestorNamed(t)},t.prototype.whenNoAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenNoAncestorTagged(t,e)},t.prototype.whenAnyAncestorMatches=function(t){return this._bindingWhenSyntax.whenAnyAncestorMatches(t)},t.prototype.whenNoAncestorMatches=function(t){return this._bindingWhenSyntax.whenNoAncestorMatches(t)},t.prototype.onActivation=function(t){return this._bindingOnSyntax.onActivation(t)},t.prototype.onDeactivation=function(t){return this._bindingOnSyntax.onDeactivation(t)},t}(),ty=function(){function t(t){this._binding=t}return t.prototype.to=function(t){return this._binding.type=a.Instance,this._binding.implementationType=t,new tg(this._binding)},t.prototype.toSelf=function(){if("function"!=typeof this._binding.serviceIdentifier)throw Error(""+c.wk);var t=this._binding.serviceIdentifier;return this.to(t)},t.prototype.toConstantValue=function(t){return this._binding.type=a.ConstantValue,this._binding.cache=t,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=o.Singleton,new tf(this._binding)},t.prototype.toDynamicValue=function(t){return this._binding.type=a.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=t,this._binding.implementationType=null,new tg(this._binding)},t.prototype.toConstructor=function(t){return this._binding.type=a.Constructor,this._binding.implementationType=t,this._binding.scope=o.Singleton,new tf(this._binding)},t.prototype.toFactory=function(t){return this._binding.type=a.Factory,this._binding.factory=t,this._binding.scope=o.Singleton,new tf(this._binding)},t.prototype.toFunction=function(t){if("function"!=typeof t)throw Error(c.d1);var e=this.toConstantValue(t);return this._binding.type=a.Function,this._binding.scope=o.Singleton,e},t.prototype.toAutoFactory=function(t){return this._binding.type=a.Factory,this._binding.factory=function(e){return function(){return e.container.get(t)}},this._binding.scope=o.Singleton,new tf(this._binding)},t.prototype.toAutoNamedFactory=function(t){return this._binding.type=a.Factory,this._binding.factory=function(e){return function(r){return e.container.getNamed(t,r)}},new tf(this._binding)},t.prototype.toProvider=function(t){return this._binding.type=a.Provider,this._binding.provider=t,this._binding.scope=o.Singleton,new tf(this._binding)},t.prototype.toService=function(t){this.toDynamicValue(function(e){return e.container.get(t)})},t}(),tm=function(){function t(){}return t.of=function(e,r,n,i,o){var a=new t;return a.bindings=e,a.middleware=r,a.deactivations=i,a.activations=n,a.moduleActivationStore=o,a},t}(),tv=function(){function t(){this._map=new Map}return t.prototype.getMap=function(){return this._map},t.prototype.add=function(t,e){if(null==t||null==e)throw Error(c.H1);var r=this._map.get(t);void 0!==r?r.push(e):this._map.set(t,[e])},t.prototype.get=function(t){if(null==t)throw Error(c.H1);var e=this._map.get(t);if(void 0!==e)return e;throw Error(c.yu)},t.prototype.remove=function(t){if(null==t)throw Error(c.H1);if(!this._map.delete(t))throw Error(c.yu)},t.prototype.removeIntersection=function(t){var e=this;this.traverse(function(r,n){var i=t.hasKey(r)?t.get(r):void 0;if(void 0!==i){var o=n.filter(function(t){return!i.some(function(e){return t===e})});e._setValue(r,o)}})},t.prototype.removeByCondition=function(t){var e=this,r=[];return this._map.forEach(function(n,i){for(var o=[],a=0;a<n.length;a++){var s=n[a];t(s)?r.push(s):o.push(s)}e._setValue(i,o)}),r},t.prototype.hasKey=function(t){if(null==t)throw Error(c.H1);return this._map.has(t)},t.prototype.clone=function(){var e=new t;return this._map.forEach(function(t,r){t.forEach(function(t){var n;return e.add(r,"object"==typeof(n=t)&&null!==n&&"clone"in n&&"function"==typeof n.clone?t.clone():t)})}),e},t.prototype.traverse=function(t){this._map.forEach(function(e,r){t(r,e)})},t.prototype._setValue=function(t,e){e.length>0?this._map.set(t,e):this._map.delete(t)},t}(),tb=function(){function t(){this._map=new Map}return t.prototype.remove=function(t){if(this._map.has(t)){var e=this._map.get(t);return this._map.delete(t),e}return this._getEmptyHandlersStore()},t.prototype.addDeactivation=function(t,e,r){this._getModuleActivationHandlers(t).onDeactivations.add(e,r)},t.prototype.addActivation=function(t,e,r){this._getModuleActivationHandlers(t).onActivations.add(e,r)},t.prototype.clone=function(){var e=new t;return this._map.forEach(function(t,r){e._map.set(r,{onActivations:t.onActivations.clone(),onDeactivations:t.onDeactivations.clone()})}),e},t.prototype._getModuleActivationHandlers=function(t){var e=this._map.get(t);return void 0===e&&(e=this._getEmptyHandlersStore(),this._map.set(t,e)),e},t.prototype._getEmptyHandlersStore=function(){return{onActivations:new tv,onDeactivations:new tv}},t}(),tw=function(){return(tw=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},tA=function(t,e,r,n){return new(r||(r=Promise))(function(i,o){function a(t){try{u(n.next(t))}catch(t){o(t)}}function s(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,s)}u((n=n.apply(t,e||[])).next())})},tD=function(t,e){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},tE=function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i<o;i++)(n||!(i in e))&&(!n&&(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},tx=function(){function t(t){var e=t||{};if("object"!=typeof e)throw Error(""+c.xU);if(void 0===e.defaultScope)e.defaultScope=o.Transient;else if(e.defaultScope!==o.Singleton&&e.defaultScope!==o.Transient&&e.defaultScope!==o.Request)throw Error(""+c.k_);if(void 0===e.autoBindInjectable)e.autoBindInjectable=!1;else if("boolean"!=typeof e.autoBindInjectable)throw Error(""+c.rR);if(void 0===e.skipBaseClassChecks)e.skipBaseClassChecks=!1;else if("boolean"!=typeof e.skipBaseClassChecks)throw Error(""+c.vD);this.options={autoBindInjectable:e.autoBindInjectable,defaultScope:e.defaultScope,skipBaseClassChecks:e.skipBaseClassChecks},this.id=(0,u.id)(),this._bindingDictionary=new tv,this._snapshots=[],this._middleware=null,this._activations=new tv,this._deactivations=new tv,this.parent=null,this._metadataReader=new d,this._moduleActivationStore=new tb}return t.merge=function(e,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var o=new t,a=tE([e,r],n,!0).map(function(t){return C(t)}),s=C(o);return a.forEach(function(t){!function(t,e){t.traverse(function(t,r){r.forEach(function(t){e.add(t.serviceIdentifier,t.clone())})})}(t,s)}),o},t.prototype.load=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=this._getContainerModuleHelpersFactory(),n=0;n<t.length;n++){var i=t[n],o=r(i.id);i.registry(o.bindFunction,o.unbindFunction,o.isboundFunction,o.rebindFunction,o.unbindAsyncFunction,o.onActivationFunction,o.onDeactivationFunction)}},t.prototype.loadAsync=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return tA(this,void 0,void 0,function(){var e,r,n,i,o;return tD(this,function(a){switch(a.label){case 0:e=this._getContainerModuleHelpersFactory(),r=0,n=t,a.label=1;case 1:if(!(r<n.length))return[3,4];return i=n[r],o=e(i.id),[4,i.registry(o.bindFunction,o.unbindFunction,o.isboundFunction,o.rebindFunction,o.unbindAsyncFunction,o.onActivationFunction,o.onDeactivationFunction)];case 2:a.sent(),a.label=3;case 3:return r++,[3,1];case 4:return[2]}})})},t.prototype.unload=function(){for(var t=this,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];e.forEach(function(e){var r=t._removeModuleBindings(e.id);t._deactivateSingletons(r),t._removeModuleHandlers(e.id)})},t.prototype.unloadAsync=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return tA(this,void 0,void 0,function(){var e,r,n,i;return tD(this,function(o){switch(o.label){case 0:e=0,r=t,o.label=1;case 1:if(!(e<r.length))return[3,4];return n=r[e],i=this._removeModuleBindings(n.id),[4,this._deactivateSingletonsAsync(i)];case 2:o.sent(),this._removeModuleHandlers(n.id),o.label=3;case 3:return e++,[3,1];case 4:return[2]}})})},t.prototype.bind=function(t){var e=new l(t,this.options.defaultScope||o.Transient);return this._bindingDictionary.add(t,e),new ty(e)},t.prototype.rebind=function(t){return this.unbind(t),this.bind(t)},t.prototype.rebindAsync=function(t){return tA(this,void 0,void 0,function(){return tD(this,function(e){switch(e.label){case 0:return[4,this.unbindAsync(t)];case 1:return e.sent(),[2,this.bind(t)]}})})},t.prototype.unbind=function(t){if(this._bindingDictionary.hasKey(t)){var e=this._bindingDictionary.get(t);this._deactivateSingletons(e)}this._removeServiceFromDictionary(t)},t.prototype.unbindAsync=function(t){return tA(this,void 0,void 0,function(){var e;return tD(this,function(r){switch(r.label){case 0:if(!this._bindingDictionary.hasKey(t))return[3,2];return e=this._bindingDictionary.get(t),[4,this._deactivateSingletonsAsync(e)];case 1:r.sent(),r.label=2;case 2:return this._removeServiceFromDictionary(t),[2]}})})},t.prototype.unbindAll=function(){var t=this;this._bindingDictionary.traverse(function(e,r){t._deactivateSingletons(r)}),this._bindingDictionary=new tv},t.prototype.unbindAllAsync=function(){return tA(this,void 0,void 0,function(){var t,e=this;return tD(this,function(r){switch(r.label){case 0:return t=[],this._bindingDictionary.traverse(function(r,n){t.push(e._deactivateSingletonsAsync(n))}),[4,Promise.all(t)];case 1:return r.sent(),this._bindingDictionary=new tv,[2]}})})},t.prototype.onActivation=function(t,e){this._activations.add(t,e)},t.prototype.onDeactivation=function(t,e){this._deactivations.add(t,e)},t.prototype.isBound=function(t){var e=this._bindingDictionary.hasKey(t);return!e&&this.parent&&(e=this.parent.isBound(t)),e},t.prototype.isCurrentBound=function(t){return this._bindingDictionary.hasKey(t)},t.prototype.isBoundNamed=function(t,e){return this.isBoundTagged(t,h.vO,e)},t.prototype.isBoundTagged=function(t,e,r){var n=!1;if(this._bindingDictionary.hasKey(t)){var i,o,a,u,l,c=this._bindingDictionary.get(t);var h=(i=this,o=t,a=e,u=r,l=new S(s.Variable,"",o,new A.S(a,u)),new T(o,new w(i),null,[],l));n=c.some(function(t){return t.constraint(h)})}return!n&&this.parent&&(n=this.parent.isBoundTagged(t,e,r)),n},t.prototype.snapshot=function(){this._snapshots.push(tm.of(this._bindingDictionary.clone(),this._middleware,this._activations.clone(),this._deactivations.clone(),this._moduleActivationStore.clone()))},t.prototype.restore=function(){var t=this._snapshots.pop();if(void 0===t)throw Error(c.NE);this._bindingDictionary=t.bindings,this._activations=t.activations,this._deactivations=t.deactivations,this._middleware=t.middleware,this._moduleActivationStore=t.moduleActivationStore},t.prototype.createChild=function(e){var r=new t(e||this.options);return r.parent=this,r},t.prototype.applyMiddleware=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=this._middleware?this._middleware:this._planAndResolve();this._middleware=t.reduce(function(t,e){return e(t)},r)},t.prototype.applyCustomMetadataReader=function(t){this._metadataReader=t},t.prototype.get=function(t){var e=this._getNotAllArgs(t,!1);return this._getButThrowIfAsync(e)},t.prototype.getAsync=function(t){return tA(this,void 0,void 0,function(){var e;return tD(this,function(r){return e=this._getNotAllArgs(t,!1),[2,this._get(e)]})})},t.prototype.getTagged=function(t,e,r){var n=this._getNotAllArgs(t,!1,e,r);return this._getButThrowIfAsync(n)},t.prototype.getTaggedAsync=function(t,e,r){return tA(this,void 0,void 0,function(){var n;return tD(this,function(i){return n=this._getNotAllArgs(t,!1,e,r),[2,this._get(n)]})})},t.prototype.getNamed=function(t,e){return this.getTagged(t,h.vO,e)},t.prototype.getNamedAsync=function(t,e){return this.getTaggedAsync(t,h.vO,e)},t.prototype.getAll=function(t){var e=this._getAllArgs(t);return this._getButThrowIfAsync(e)},t.prototype.getAllAsync=function(t){var e=this._getAllArgs(t);return this._getAll(e)},t.prototype.getAllTagged=function(t,e,r){var n=this._getNotAllArgs(t,!0,e,r);return this._getButThrowIfAsync(n)},t.prototype.getAllTaggedAsync=function(t,e,r){var n=this._getNotAllArgs(t,!0,e,r);return this._getAll(n)},t.prototype.getAllNamed=function(t,e){return this.getAllTagged(t,h.vO,e)},t.prototype.getAllNamedAsync=function(t,e){return this.getAllTaggedAsync(t,h.vO,e)},t.prototype.resolve=function(t){var e=this.isBound(t);!e&&this.bind(t).toSelf();var r=this.get(t);return!e&&this.unbind(t),r},t.prototype._preDestroy=function(t,e){var r;if(Reflect.hasMetadata(h.Z8,t))return null===(r=e[Reflect.getMetadata(h.Z8,t).value])||void 0===r?void 0:r.call(e)},t.prototype._removeModuleHandlers=function(t){var e=this._moduleActivationStore.remove(t);this._activations.removeIntersection(e.onActivations),this._deactivations.removeIntersection(e.onDeactivations)},t.prototype._removeModuleBindings=function(t){return this._bindingDictionary.removeByCondition(function(e){return e.moduleId===t})},t.prototype._deactivate=function(t,e){var r=this,n=Object.getPrototypeOf(e).constructor;try{if(this._deactivations.hasKey(t.serviceIdentifier)){var i=this._deactivateContainer(e,this._deactivations.get(t.serviceIdentifier).values());if(k(i))return this._handleDeactivationError(i.then(function(){return r._propagateContainerDeactivationThenBindingAndPreDestroyAsync(t,e,n)}),n)}var o=this._propagateContainerDeactivationThenBindingAndPreDestroy(t,e,n);if(k(o))return this._handleDeactivationError(o,n)}catch(t){if(t instanceof Error)throw Error(c.YG(n.name,t.message))}},t.prototype._handleDeactivationError=function(t,e){return tA(this,void 0,void 0,function(){var r;return tD(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,t];case 1:return n.sent(),[3,3];case 2:if((r=n.sent())instanceof Error)throw Error(c.YG(e.name,r.message));return[3,3];case 3:return[2]}})})},t.prototype._deactivateContainer=function(t,e){for(var r=this,n=e.next();n.value;){var i=n.value(t);if(k(i))return i.then(function(){return r._deactivateContainerAsync(t,e)});n=e.next()}},t.prototype._deactivateContainerAsync=function(t,e){return tA(this,void 0,void 0,function(){var r;return tD(this,function(n){switch(n.label){case 0:r=e.next(),n.label=1;case 1:if(!r.value)return[3,3];return[4,r.value(t)];case 2:return n.sent(),r=e.next(),[3,1];case 3:return[2]}})})},t.prototype._getContainerModuleHelpersFactory=function(){var t=this,e=function(t,e){t._binding.moduleId=e};return function(r){var n,i,o,a;return{bindFunction:(n=r,function(r){var i=t.bind(r);return e(i,n),i}),isboundFunction:function(e){return t.isBound(e)},onActivationFunction:(i=r,function(e,r){t._moduleActivationStore.addActivation(i,e,r),t.onActivation(e,r)}),onDeactivationFunction:(o=r,function(e,r){t._moduleActivationStore.addDeactivation(o,e,r),t.onDeactivation(e,r)}),rebindFunction:(a=r,function(r){var n=t.rebind(r);return e(n,a),n}),unbindFunction:function(e){return t.unbind(e)},unbindAsyncFunction:function(e){return t.unbindAsync(e)}}}},t.prototype._getAll=function(t){return Promise.all(this._get(t))},t.prototype._get=function(t){var e=tw(tw({},t),{contextInterceptor:function(t){return t},targetType:s.Variable});if(this._middleware){var r=this._middleware(e);if(null==r)throw Error(c.pv);return r}return this._planAndResolve()(e)},t.prototype._getButThrowIfAsync=function(t){var e=this._get(t);if(L(e))throw Error(c.FJ(t.serviceIdentifier));return e},t.prototype._getAllArgs=function(t){return{avoidConstraints:!0,isMultiInject:!0,serviceIdentifier:t}},t.prototype._getNotAllArgs=function(t,e,r,n){return{avoidConstraints:!1,isMultiInject:e,serviceIdentifier:t,key:r,value:n}},t.prototype._planAndResolve=function(){var t=this;return function(e){var r,n=function(t,e,r,n,i,o,s,u){void 0===u&&(u=!1);var l=new w(e),d=function(t,e,r,n,i,o){var a=t?h.Lc:h.B8,s=new A.S(a,r),u=new S(e,"",r,s);if(void 0!==i){var l=new A.S(i,o);u.metadata.push(l)}return u}(r,n,i,"",o,s);try{return!function t(e,r,n,i,o,s){if(null===o){u=I(e,r,i,null,s),l=new T(n,i,null,u,s);var u,l,d=new D(i,l);i.addPlan(d)}else u=I(e,r,i,o,s),l=o.addChildRequest(s.serviceIdentifier,u,s);u.forEach(function(r){var n=null;if(s.isArray())n=l.addChildRequest(r.serviceIdentifier,r,s);else{if(r.cache)return;n=l}if(r.type===a.Instance&&null!==r.implementationType){var o,u=_(e,b(o=r.implementationType),o,!1);if(!i.container.options.skipBaseClassChecks){var d=function t(e,r){var n=Object.getPrototypeOf(r.prototype).constructor;if(n===Object)return 0;var i=_(e,b(n),n,!0),o=i.map(function(t){return t.metadata.filter(function(t){return t.key===h.Mx})}),a=[].concat.apply([],o).length,s=i.length-a;return s>0?s:t(e,n)}(e,r.implementationType);if(u.length<d)throw Error(c.iI(b(r.implementationType)))}u.forEach(function(r){t(e,!1,r.serviceIdentifier,i,n,r)})}})}(t,u,i,l,null,d),l}catch(t){throw p(t)&&!function t(e){e.childRequests.forEach(function(e){if(function t(e,r){return null!==e.parentRequest&&(e.parentRequest.serviceIdentifier===r||t(e.parentRequest,r))}(e,e.serviceIdentifier)){var r=(function t(e,r){void 0===r&&(r=[]);var n=y(e.serviceIdentifier);return(r.push(n),null!==e.parentRequest)?t(e.parentRequest,r):r})(e).reverse().join(" --\x3e ");throw Error(c.QY+" "+r)}t(e)})}(l.plan.rootRequest),t}}(t._metadataReader,t,e.isMultiInject,e.targetType,e.serviceIdentifier,e.key,e.value,e.avoidConstraints);return Q((r=n=e.contextInterceptor(n)).plan.rootRequest.requestScope)(r.plan.rootRequest)}},t.prototype._deactivateIfSingleton=function(t){var e=this;return t.activated?k(t.cache)?t.cache.then(function(r){return e._deactivate(t,r)}):this._deactivate(t,t.cache):void 0},t.prototype._deactivateSingletons=function(t){for(var e=0;e<t.length;e++){var r=t[e];if(k(this._deactivateIfSingleton(r)))throw Error(c.iD)}},t.prototype._deactivateSingletonsAsync=function(t){return tA(this,void 0,void 0,function(){var e=this;return tD(this,function(r){switch(r.label){case 0:return[4,Promise.all(t.map(function(t){return e._deactivateIfSingleton(t)}))];case 1:return r.sent(),[2]}})})},t.prototype._propagateContainerDeactivationThenBindingAndPreDestroy=function(t,e,r){return this.parent?this._deactivate.bind(this.parent)(t,e):this._bindingDeactivationAndPreDestroy(t,e,r)},t.prototype._propagateContainerDeactivationThenBindingAndPreDestroyAsync=function(t,e,r){return tA(this,void 0,void 0,function(){return tD(this,function(n){switch(n.label){case 0:if(!this.parent)return[3,2];return[4,this._deactivate.bind(this.parent)(t,e)];case 1:return n.sent(),[3,4];case 2:return[4,this._bindingDeactivationAndPreDestroyAsync(t,e,r)];case 3:n.sent(),n.label=4;case 4:return[2]}})})},t.prototype._removeServiceFromDictionary=function(t){try{this._bindingDictionary.remove(t)}catch(e){throw Error(c.VF+" "+y(t))}},t.prototype._bindingDeactivationAndPreDestroy=function(t,e,r){var n=this;if("function"==typeof t.onDeactivation){var i=t.onDeactivation(e);if(k(i))return i.then(function(){return n._preDestroy(r,e)})}return this._preDestroy(r,e)},t.prototype._bindingDeactivationAndPreDestroyAsync=function(t,e,r){return tA(this,void 0,void 0,function(){return tD(this,function(n){switch(n.label){case 0:if("function"!=typeof t.onDeactivation)return[3,2];return[4,t.onDeactivation(e)];case 1:n.sent(),n.label=2;case 2:return[4,this._preDestroy(r,e)];case 3:return n.sent(),[2]}})})},t}()},702570:function(t,e,r){"use strict";r.d(e,{n:function(){return i}});var n=r(978923),i=function(t){this.id=(0,n.id)(),this.registry=t}},252497:function(t,e,r){"use strict";r.d(e,{S:function(){return i}});var n=r(784221),i=function(){function t(t,e){this.key=t,this.value=e}return t.prototype.toString=function(){return this.key===n.vO?"named: "+String(this.value).toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+String(this.value)+" }"},t}()},978923:function(t,e,r){"use strict";r.d(e,{id:function(){return i}});var n=0;function i(){return n++}},358152:function(t,e,r){t.exports=window.DOMPurify||(window.DOMPurify=r(597282).default||r(597282))},361075:function(t,e,r){var n;n=function(){return(function t(e,r,n){function i(a,s){if(!r[a]){if(!e[a]){if(o)return o(a,!0);var u=Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=r[a]={exports:{}};e[a][0].call(l.exports,function(t){var r=e[a][1][t];return i(r||t)},l,l.exports,t,e,r,n)}return r[a].exports}for(var o=void 0,a=0;a<n.length;a++)i(n[a]);return i})({1:[function(t,e,n){(function(t){"use strict";var r,n,i=t.MutationObserver||t.WebKitMutationObserver;if(i){var o=0,a=new i(c),s=t.document.createTextNode("");a.observe(s,{characterData:!0}),r=function(){s.data=o=++o%2}}else if(t.setImmediate||void 0===t.MessageChannel)r="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){c(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(c,0)};else{var u=new t.MessageChannel;u.port1.onmessage=c,r=function(){u.port2.postMessage(0)}}var l=[];function c(){n=!0;for(var t,e,r=l.length;r;){for(e=l,l=[],t=-1;++t<r;)e[t]();r=l.length}n=!1}e.exports=function(t){1===l.push(t)&&!n&&r()}}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,e,r){"use strict";var n=t(1);function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],u=["PENDING"];function l(t){if("function"!=typeof t)throw TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,t!==i&&f(this,t)}function c(t,e,r){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function h(t,e,r){n(function(){var n;try{n=e(r)}catch(e){return o.reject(t,e)}n===t?o.reject(t,TypeError("Cannot resolve promise with itself")):o.resolve(t,n)})}function d(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function f(t,e){var r=!1;function n(e){if(!r)r=!0,o.reject(t,e)}function i(e){if(!r)r=!0,o.resolve(t,e)}var a=p(function(){e(i,n)});"error"===a.status&&n(a.value)}function p(t,e){var r={};try{r.value=t(e),r.status="success"}catch(t){r.status="error",r.value=t}return r}e.exports=l,l.prototype.catch=function(t){return this.then(null,t)},l.prototype.then=function(t,e){if("function"!=typeof t&&this.state===s||"function"!=typeof e&&this.state===a)return this;var r=new this.constructor(i);return this.state!==u?h(r,this.state===s?t:e,this.outcome):this.queue.push(new c(r,t,e)),r},c.prototype.callFulfilled=function(t){o.resolve(this.promise,t)},c.prototype.otherCallFulfilled=function(t){h(this.promise,this.onFulfilled,t)},c.prototype.callRejected=function(t){o.reject(this.promise,t)},c.prototype.otherCallRejected=function(t){h(this.promise,this.onRejected,t)},o.resolve=function(t,e){var r=p(d,e);if("error"===r.status)return o.reject(t,r.value);var n=r.value;if(n)f(t,n);else{t.state=s,t.outcome=e;for(var i=-1,a=t.queue.length;++i<a;)t.queue[i].callFulfilled(e)}return t},o.reject=function(t,e){t.state=a,t.outcome=e;for(var r=-1,n=t.queue.length;++r<n;)t.queue[r].callRejected(e);return t},l.resolve=function(t){return t instanceof this?t:o.resolve(new this(i),t)};l.reject=function(t){var e=new this(i);return o.reject(e,t)};l.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(TypeError("must be an array"));var r=t.length,n=!1;if(!r)return this.resolve([]);for(var a=Array(r),s=0,u=-1,l=new this(i);++u<r;)(function(t,i){e.resolve(t).then(function(t){a[i]=t,++s===r&&!n&&(n=!0,o.resolve(l,a))},function(t){!n&&(n=!0,o.reject(l,t))})})(t[u],u);return l};l.race=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(TypeError("must be an array"));var r=t.length,n=!1;if(!r)return this.resolve([]);for(var a=-1,s=new this(i);++a<r;)(function(t){e.resolve(t).then(function(t){!n&&(n=!0,o.resolve(s,t))},function(t){!n&&(n=!0,o.reject(s,t))})})(t[a]);return s}},{1:1}],3:[function(t,e,n){(function(e){"use strict";"function"!=typeof e.Promise&&(e.Promise=t(2))}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(t){return}}();function o(t,e){t=t||[],e=e||{};try{return new Blob(t,e)}catch(i){if("TypeError"!==i.name)throw i;for(var r=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),n=0;n<t.length;n+=1)r.append(t[n]);return r.getBlob(e.type)}}"undefined"==typeof Promise&&t(3);var a=Promise;function s(t,e){e&&t.then(function(t){e(null,t)},function(t){e(t)})}function u(t,e,r){"function"==typeof e&&t.then(e),"function"==typeof r&&t.catch(r)}function l(t){return"string"!=typeof t&&(console.warn(t+" used as a key, but it is not a string."),t=String(t)),t}function c(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var h="local-forage-detect-blob-support",d=void 0,f={},p=Object.prototype.toString,g="readonly",y="readwrite";function m(t){var e=f[t.name],r={};r.promise=new a(function(t,e){r.resolve=t,r.reject=e}),e.deferredOperations.push(r),e.dbReady?e.dbReady=e.dbReady.then(function(){return r.promise}):e.dbReady=r.promise}function b(t){var e=f[t.name].deferredOperations.pop();if(e)return e.resolve(),e.promise}function w(t,e){var r=f[t.name].deferredOperations.pop();if(r)return r.reject(e),r.promise}function A(t,e){return new a(function(r,n){if(f[t.name]=f[t.name]||T(),t.db){if(!e)return r(t.db);m(t),t.db.close()}var o=[t.name];e&&o.push(t.version);var a=i.open.apply(i,o);e&&(a.onupgradeneeded=function(e){var r=a.result;try{r.createObjectStore(t.storeName),e.oldVersion<=1&&r.createObjectStore(h)}catch(r){if("ConstraintError"===r.name)console.warn('The database "'+t.name+'" has been upgraded from version '+e.oldVersion+" to version "+e.newVersion+', but the storage "'+t.storeName+'" already exists.');else throw r}}),a.onerror=function(t){t.preventDefault(),n(a.error)},a.onsuccess=function(){var e=a.result;e.onversionchange=function(t){t.target.close()},r(e),b(t)}})}function D(t){return A(t,!1)}function E(t){return A(t,!0)}function x(t,e){if(!t.db)return!0;var r=!t.db.objectStoreNames.contains(t.storeName),n=t.version<t.db.version,i=t.version>t.db.version;if(n&&(t.version!==e&&console.warn('The database "'+t.name+"\" can't be downgraded from version "+t.db.version+" to version "+t.version+"."),t.version=t.db.version),i||r){if(r){var o=t.db.version+1;o>t.version&&(t.version=o)}return!0}return!1}function S(t){return o([function(t){for(var e=t.length,r=new ArrayBuffer(e),n=new Uint8Array(r),i=0;i<e;i++)n[i]=t.charCodeAt(i);return r}(atob(t.data))],{type:t.type})}function M(t){return t&&t.__local_forage_encoded_blob}function _(t){var e=this,r=e._initReady().then(function(){var t=f[e._dbInfo.name];if(t&&t.dbReady)return t.dbReady});return u(r,t,t),r}function N(t,e,r,n){void 0===n&&(n=1);try{var i=t.db.transaction(t.storeName,e);r(null,i)}catch(i){if(n>0&&(!t.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return a.resolve().then(function(){if(!t.db||"NotFoundError"===i.name&&!t.db.objectStoreNames.contains(t.storeName)&&t.version<=t.db.version)return t.db&&(t.version=t.db.version+1),A(t,!0)}).then(function(){return(function(t){m(t);for(var e=f[t.name],r=e.forages,n=0;n<r.length;n++){var i=r[n];i._dbInfo.db&&(i._dbInfo.db.close(),i._dbInfo.db=null)}return t.db=null,A(t,!1).then(function(e){if(t.db=e,x(t))return A(t,!0);return e}).then(function(n){t.db=e.db=n;for(var i=0;i<r.length;i++)r[i]._dbInfo.db=n}).catch(function(e){throw w(t,e),e})})(t).then(function(){N(t,e,r,n-1)})}).catch(r);r(i)}}function T(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}var C={_driver:"asyncStorage",_initStorage:function(t){var e=this,r={db:null};if(t)for(var n in t)r[n]=t[n];var i=f[r.name];!i&&(i=T(),f[r.name]=i),i.forages.push(e),!e._initReady&&(e._initReady=e.ready,e.ready=_);var o=[];function s(){return a.resolve()}for(var u=0;u<i.forages.length;u++){var l=i.forages[u];l!==e&&o.push(l._initReady().catch(s))}var c=i.forages.slice(0);return a.all(o).then(function(){return r.db=i.db,A(r,!1)}).then(function(t){if(r.db=t,x(r,e._defaultConfig.version))return A(r,!0);return t}).then(function(t){r.db=i.db=t,e._dbInfo=r;for(var n=0;n<c.length;n++){var o=c[n];o!==e&&(o._dbInfo.db=r.db,o._dbInfo.version=r.version)}})},_support:function(){try{if(!i||!i.open)return!1;var t="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),e="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!t||e)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(t){return!1}}(),iterate:function(t,e){var r=this,n=new a(function(e,n){r.ready().then(function(){N(r._dbInfo,g,function(i,o){if(i)return n(i);try{var a=o.objectStore(r._dbInfo.storeName).openCursor(),s=1;a.onsuccess=function(){var r=a.result;if(r){var n=r.value;M(n)&&(n=S(n));var i=t(n,r.key,s++);void 0!==i?e(i):r.continue()}else e()},a.onerror=function(){n(a.error)}}catch(t){n(t)}})}).catch(n)});return s(n,e),n},getItem:function(t,e){var r=this;t=l(t);var n=new a(function(e,n){r.ready().then(function(){N(r._dbInfo,g,function(i,o){if(i)return n(i);try{var a=o.objectStore(r._dbInfo.storeName).get(t);a.onsuccess=function(){var t=a.result;void 0===t&&(t=null),M(t)&&(t=S(t)),e(t)},a.onerror=function(){n(a.error)}}catch(t){n(t)}})}).catch(n)});return s(n,e),n},setItem:function(t,e,r){var n=this;t=l(t);var i=new a(function(r,i){var s;n.ready().then(function(){return(s=n._dbInfo,"[object Blob]"===p.call(e))?(function(t){var e;if("boolean"==typeof d)return a.resolve(d);return(e=t,new a(function(t){var r=e.transaction(h,y),n=o([""]);r.objectStore(h).put(n,"key"),r.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},r.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/);t(navigator.userAgent.match(/Edge\//)||!e||parseInt(e[1],10)>=43)}}).catch(function(){return!1})).then(function(t){return d=t})})(s.db).then(function(t){var r;if(t)return e;return r=e,new a(function(t,e){var n=new FileReader;n.onerror=e,n.onloadend=function(e){t({__local_forage_encoded_blob:!0,data:btoa(e.target.result||""),type:r.type})},n.readAsBinaryString(r)})}):e}).then(function(e){N(n._dbInfo,y,function(o,a){if(o)return i(o);try{var s=a.objectStore(n._dbInfo.storeName);null===e&&(e=void 0);var u=s.put(e,t);a.oncomplete=function(){void 0===e&&(e=null),r(e)},a.onabort=a.onerror=function(){var t=u.error?u.error:u.transaction.error;i(t)}}catch(t){i(t)}})}).catch(i)});return s(i,r),i},removeItem:function(t,e){var r=this;t=l(t);var n=new a(function(e,n){r.ready().then(function(){N(r._dbInfo,y,function(i,o){if(i)return n(i);try{var a=o.objectStore(r._dbInfo.storeName).delete(t);o.oncomplete=function(){e()},o.onerror=function(){n(a.error)},o.onabort=function(){var t=a.error?a.error:a.transaction.error;n(t)}}catch(t){n(t)}})}).catch(n)});return s(n,e),n},clear:function(t){var e=this,r=new a(function(t,r){e.ready().then(function(){N(e._dbInfo,y,function(n,i){if(n)return r(n);try{var o=i.objectStore(e._dbInfo.storeName).clear();i.oncomplete=function(){t()},i.onabort=i.onerror=function(){var t=o.error?o.error:o.transaction.error;r(t)}}catch(t){r(t)}})}).catch(r)});return s(r,t),r},length:function(t){var e=this,r=new a(function(t,r){e.ready().then(function(){N(e._dbInfo,g,function(n,i){if(n)return r(n);try{var o=i.objectStore(e._dbInfo.storeName).count();o.onsuccess=function(){t(o.result)},o.onerror=function(){r(o.error)}}catch(t){r(t)}})}).catch(r)});return s(r,t),r},key:function(t,e){var r=this,n=new a(function(e,n){if(t<0){e(null);return}r.ready().then(function(){N(r._dbInfo,g,function(i,o){if(i)return n(i);try{var a=o.objectStore(r._dbInfo.storeName),s=!1,u=a.openKeyCursor();u.onsuccess=function(){var r=u.result;if(!r){e(null);return}0===t?e(r.key):s?e(r.key):(s=!0,r.advance(t))},u.onerror=function(){n(u.error)}}catch(t){n(t)}})}).catch(n)});return s(n,e),n},keys:function(t){var e=this,r=new a(function(t,r){e.ready().then(function(){N(e._dbInfo,g,function(n,i){if(n)return r(n);try{var o=i.objectStore(e._dbInfo.storeName).openKeyCursor(),a=[];o.onsuccess=function(){var e=o.result;if(!e){t(a);return}a.push(e.key),e.continue()},o.onerror=function(){r(o.error)}}catch(t){r(t)}})}).catch(r)});return s(r,t),r},dropInstance:function(t,e){e=c.apply(this,arguments);var r,n=this.config();!(t="function"!=typeof t&&t||{}).name&&(t.name=t.name||n.name,t.storeName=t.storeName||n.storeName);if(t.name){var o=t.name===n.name&&this._dbInfo.db?a.resolve(this._dbInfo.db):A(t,!1).then(function(e){var r=f[t.name],n=r.forages;r.db=e;for(var i=0;i<n.length;i++)n[i]._dbInfo.db=e;return e});r=t.storeName?o.then(function(e){if(!!e.objectStoreNames.contains(t.storeName)){var r=e.version+1;m(t);var n=f[t.name],o=n.forages;e.close();for(var s=0;s<o.length;s++){var u=o[s];u._dbInfo.db=null,u._dbInfo.version=r}return new a(function(e,n){var o=i.open(t.name,r);o.onerror=function(t){o.result.close(),n(t)},o.onupgradeneeded=function(){o.result.deleteObjectStore(t.storeName)},o.onsuccess=function(){var t=o.result;t.close(),e(t)}}).then(function(t){n.db=t;for(var e=0;e<o.length;e++){var r=o[e];r._dbInfo.db=t,b(r._dbInfo)}}).catch(function(e){throw(w(t,e)||a.resolve()).catch(function(){}),e})}}):o.then(function(e){m(t);var r=f[t.name],n=r.forages;e.close();for(var o=0;o<n.length;o++)n[o]._dbInfo.db=null;return new a(function(e,r){var n=i.deleteDatabase(t.name);n.onerror=function(){var t=n.result;t&&t.close(),r(n.error)},n.onblocked=function(){console.warn('dropInstance blocked for database "'+t.name+'" until all open connections are closed')},n.onsuccess=function(){var t=n.result;t&&t.close(),e(t)}}).then(function(t){r.db=t;for(var e=0;e<n.length;e++)b(n[e]._dbInfo)}).catch(function(e){throw(w(t,e)||a.resolve()).catch(function(){}),e})})}else r=a.reject("Invalid arguments");return s(r,e),r}},I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=/^~~local_forage_type~([^~]+)~/,k="__lfsc__:",L=k.length,P="arbf",R="blob",B="si08",j="ui08",F="uic8",U="si16",z="si32",q="ur16",H="ui32",V="fl32",Z="fl64",G=L+P.length,W=Object.prototype.toString;function Y(t){var e,r,n,i,o,a=.75*t.length,s=t.length,u=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);var l=new ArrayBuffer(a),c=new Uint8Array(l);for(e=0;e<s;e+=4)r=I.indexOf(t[e]),n=I.indexOf(t[e+1]),i=I.indexOf(t[e+2]),o=I.indexOf(t[e+3]),c[u++]=r<<2|n>>4,c[u++]=(15&n)<<4|i>>2,c[u++]=(3&i)<<6|63&o;return l}function $(t){var e,r=new Uint8Array(t),n="";for(e=0;e<r.length;e+=3)n+=I[r[e]>>2],n+=I[(3&r[e])<<4|r[e+1]>>4],n+=I[(15&r[e+1])<<2|r[e+2]>>6],n+=I[63&r[e+2]];return r.length%3==2?n=n.substring(0,n.length-1)+"=":r.length%3==1&&(n=n.substring(0,n.length-2)+"=="),n}var Q={serialize:function(t,e){var r="";if(t&&(r=W.call(t)),t&&("[object ArrayBuffer]"===r||t.buffer&&"[object ArrayBuffer]"===W.call(t.buffer))){var n,i=k;t instanceof ArrayBuffer?(n=t,i+=P):(n=t.buffer,"[object Int8Array]"===r?i+=B:"[object Uint8Array]"===r?i+=j:"[object Uint8ClampedArray]"===r?i+=F:"[object Int16Array]"===r?i+=U:"[object Uint16Array]"===r?i+=q:"[object Int32Array]"===r?i+=z:"[object Uint32Array]"===r?i+=H:"[object Float32Array]"===r?i+=V:"[object Float64Array]"===r?i+=Z:e(Error("Failed to get type for BinaryArray"))),e(i+$(n))}else if("[object Blob]"===r){var o=new FileReader;o.onload=function(){e(k+R+("~~local_forage_type~"+t.type+"~"+$(this.result)))},o.readAsArrayBuffer(t)}else try{e(JSON.stringify(t))}catch(r){console.error("Couldn't convert value into a JSON string: ",t),e(null,r)}},deserialize:function(t){if(t.substring(0,L)!==k)return JSON.parse(t);var e,r=t.substring(G),n=t.substring(L,G);if(n===R&&O.test(r)){var i=r.match(O);e=i[1],r=r.substring(i[0].length)}var a=Y(r);switch(n){case P:return a;case R:return o([a],{type:e});case B:return new Int8Array(a);case j:return new Uint8Array(a);case F:return new Uint8ClampedArray(a);case U:return new Int16Array(a);case q:return new Uint16Array(a);case z:return new Int32Array(a);case H:return new Uint32Array(a);case V:return new Float32Array(a);case Z:return new Float64Array(a);default:throw Error("Unkown type: "+n)}},stringToBuffer:Y,bufferToString:$};function J(t,e,r,n){t.executeSql("CREATE TABLE IF NOT EXISTS "+e.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],r,n)}function X(t,e,r,n,i,o){t.executeSql(r,n,i,function(t,a){a.code===a.SYNTAX_ERR?t.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[e.storeName],function(t,s){s.rows.length?o(t,a):J(t,e,function(){t.executeSql(r,n,i,o)},o)},o):o(t,a)},o)}function K(t,e,r,n){var i=this;t=l(t);var o=new a(function(o,a){i.ready().then(function(){void 0===e&&(e=null);var s=e,u=i._dbInfo;u.serializer.serialize(e,function(e,l){l?a(l):u.db.transaction(function(r){X(r,u,"INSERT OR REPLACE INTO "+u.storeName+" (key, value) VALUES (?, ?)",[t,e],function(){o(s)},function(t,e){a(e)})},function(e){if(e.code===e.QUOTA_ERR){if(n>0){o(K.apply(i,[t,s,r,n-1]));return}a(e)}})})}).catch(a)});return s(o,r),o}var tt={_driver:"webSQLStorage",_initStorage:function(t){var e=this,r={db:null};if(t)for(var n in t)r[n]="string"!=typeof t[n]?t[n].toString():t[n];var i=new a(function(t,n){try{r.db=openDatabase(r.name,String(r.version),r.description,r.size)}catch(t){return n(t)}r.db.transaction(function(i){J(i,r,function(){e._dbInfo=r,t()},function(t,e){n(e)})},n)});return r.serializer=Q,i},_support:"function"==typeof openDatabase,iterate:function(t,e){var r=this,n=new a(function(e,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(r){X(r,i,"SELECT * FROM "+i.storeName,[],function(r,n){for(var o=n.rows,a=o.length,s=0;s<a;s++){var u=o.item(s),l=u.value;if(l&&(l=i.serializer.deserialize(l)),void 0!==(l=t(l,u.key,s+1))){e(l);return}}e()},function(t,e){n(e)})})}).catch(n)});return s(n,e),n},getItem:function(t,e){var r=this;t=l(t);var n=new a(function(e,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(r){X(r,i,"SELECT * FROM "+i.storeName+" WHERE key = ? LIMIT 1",[t],function(t,r){var n=r.rows.length?r.rows.item(0).value:null;n&&(n=i.serializer.deserialize(n)),e(n)},function(t,e){n(e)})})}).catch(n)});return s(n,e),n},setItem:function(t,e,r){return K.apply(this,[t,e,r,1])},removeItem:function(t,e){var r=this;t=l(t);var n=new a(function(e,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(r){X(r,i,"DELETE FROM "+i.storeName+" WHERE key = ?",[t],function(){e()},function(t,e){n(e)})})}).catch(n)});return s(n,e),n},clear:function(t){var e=this,r=new a(function(t,r){e.ready().then(function(){var n=e._dbInfo;n.db.transaction(function(e){X(e,n,"DELETE FROM "+n.storeName,[],function(){t()},function(t,e){r(e)})})}).catch(r)});return s(r,t),r},length:function(t){var e=this,r=new a(function(t,r){e.ready().then(function(){var n=e._dbInfo;n.db.transaction(function(e){X(e,n,"SELECT COUNT(key) as c FROM "+n.storeName,[],function(e,r){t(r.rows.item(0).c)},function(t,e){r(e)})})}).catch(r)});return s(r,t),r},key:function(t,e){var r=this,n=new a(function(e,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(r){X(r,i,"SELECT key FROM "+i.storeName+" WHERE id = ? LIMIT 1",[t+1],function(t,r){e(r.rows.length?r.rows.item(0).key:null)},function(t,e){n(e)})})}).catch(n)});return s(n,e),n},keys:function(t){var e=this,r=new a(function(t,r){e.ready().then(function(){var n=e._dbInfo;n.db.transaction(function(e){X(e,n,"SELECT key FROM "+n.storeName,[],function(e,r){for(var n=[],i=0;i<r.rows.length;i++)n.push(r.rows.item(i).key);t(n)},function(t,e){r(e)})})}).catch(r)});return s(r,t),r},dropInstance:function(t,e){e=c.apply(this,arguments);var r,n=this.config();!(t="function"!=typeof t&&t||{}).name&&(t.name=t.name||n.name,t.storeName=t.storeName||n.storeName);var i=this;return s(r=t.name?new a(function(e){var r,o;if(r=t.name===n.name?i._dbInfo.db:openDatabase(t.name,"","",0),t.storeName)e({db:r,storeNames:[t.storeName]});else{;e((o=r,new a(function(t,e){o.transaction(function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(e,r){for(var n=[],i=0;i<r.rows.length;i++)n.push(r.rows.item(i).name);t({db:o,storeNames:n})},function(t,r){e(r)})},function(t){e(t)})})))}}).then(function(t){return new a(function(e,r){t.db.transaction(function(n){for(var i=[],o=0,s=t.storeNames.length;o<s;o++)i.push(function(t){return new a(function(e,r){n.executeSql("DROP TABLE IF EXISTS "+t,[],function(){e()},function(t,e){r(e)})})}(t.storeNames[o]));a.all(i).then(function(){e()}).catch(function(t){r(t)})},function(t){r(t)})})}):a.reject("Invalid arguments"),e),r}};function te(t,e){var r=t.name+"/";return t.storeName!==e.storeName&&(r+=t.storeName+"/"),r}var tr={_driver:"localStorageWrapper",_initStorage:function(t){var e={};if(t)for(var r in t)e[r]=t[r];return(e.keyPrefix=te(t,this._defaultConfig),!function(){var t="_localforage_support_test";try{return localStorage.setItem(t,!0),localStorage.removeItem(t),!1}catch(t){return!0}}()||localStorage.length>0)?(this._dbInfo=e,e.serializer=Q,a.resolve()):a.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(t){return!1}}(),iterate:function(t,e){var r=this,n=r.ready().then(function(){for(var e=r._dbInfo,n=e.keyPrefix,i=n.length,o=localStorage.length,a=1,s=0;s<o;s++){var u=localStorage.key(s);if(0===u.indexOf(n)){var l=localStorage.getItem(u);if(l&&(l=e.serializer.deserialize(l)),void 0!==(l=t(l,u.substring(i),a++)))return l}}});return s(n,e),n},getItem:function(t,e){var r=this;t=l(t);var n=r.ready().then(function(){var e=r._dbInfo,n=localStorage.getItem(e.keyPrefix+t);return n&&(n=e.serializer.deserialize(n)),n});return s(n,e),n},setItem:function(t,e,r){var n=this;t=l(t);var i=n.ready().then(function(){void 0===e&&(e=null);var r=e;return new a(function(i,o){var a=n._dbInfo;a.serializer.serialize(e,function(e,n){if(n)o(n);else try{localStorage.setItem(a.keyPrefix+t,e),i(r)}catch(t){("QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&o(t),o(t)}})})});return s(i,r),i},removeItem:function(t,e){var r=this;t=l(t);var n=r.ready().then(function(){var e=r._dbInfo;localStorage.removeItem(e.keyPrefix+t)});return s(n,e),n},clear:function(t){var e=this,r=e.ready().then(function(){for(var t=e._dbInfo.keyPrefix,r=localStorage.length-1;r>=0;r--){var n=localStorage.key(r);0===n.indexOf(t)&&localStorage.removeItem(n)}});return s(r,t),r},length:function(t){var e=this.keys().then(function(t){return t.length});return s(e,t),e},key:function(t,e){var r=this,n=r.ready().then(function(){var e,n=r._dbInfo;try{e=localStorage.key(t)}catch(t){e=null}return e&&(e=e.substring(n.keyPrefix.length)),e});return s(n,e),n},keys:function(t){var e=this,r=e.ready().then(function(){for(var t=e._dbInfo,r=localStorage.length,n=[],i=0;i<r;i++){var o=localStorage.key(i);0===o.indexOf(t.keyPrefix)&&n.push(o.substring(t.keyPrefix.length))}return n});return s(r,t),r},dropInstance:function(t,e){if(e=c.apply(this,arguments),!(t="function"!=typeof t&&t||{}).name){var r,n=this.config();t.name=t.name||n.name,t.storeName=t.storeName||n.storeName}var i=this;return s(r=t.name?new a(function(e){e(t.storeName?te(t,i._defaultConfig):t.name+"/")}).then(function(t){for(var e=localStorage.length-1;e>=0;e--){var r=localStorage.key(e);0===r.indexOf(t)&&localStorage.removeItem(r)}}):a.reject("Invalid arguments"),e),r}},tn=function(t,e){for(var r,n,i=t.length,o=0;o<i;){;if(r=t[o],r===(n=e)||"number"==typeof r&&"number"==typeof n&&isNaN(r)&&isNaN(n))return!0;o++}return!1},ti=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},to={},ta={},ts={INDEXEDDB:C,WEBSQL:tt,LOCALSTORAGE:tr},tu=[ts.INDEXEDDB._driver,ts.WEBSQL._driver,ts.LOCALSTORAGE._driver],tl=["dropInstance"],tc=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(tl),th={description:"",driver:tu.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function td(){for(var t=1;t<arguments.length;t++){var e=arguments[t];if(e)for(var r in e)e.hasOwnProperty(r)&&(ti(e[r])?arguments[0][r]=e[r].slice():arguments[0][r]=e[r])}return arguments[0]}var tf=new(function(){function t(e){for(var r in!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),ts)if(ts.hasOwnProperty(r)){var n=ts[r],i=n._driver;this[r]=i,!to[i]&&this.defineDriver(n)}this._defaultConfig=td({},th),this._config=td({},this._defaultConfig,e),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return t.prototype.config=function(t){if((void 0===t?"undefined":n(t))==="object"){if(this._ready)return Error("Can't call config() after localforage has been used.");for(var e in t){if("storeName"===e&&(t[e]=t[e].replace(/\W/g,"_")),"version"===e&&"number"!=typeof t[e])return Error("Database version must be a number.");this._config[e]=t[e]}return!("driver"in t)||!t.driver||this.setDriver(this._config.driver)}if("string"==typeof t)return this._config[t];return this._config},t.prototype.defineDriver=function(t,e,r){var n=new a(function(e,r){try{var n=t._driver,i=Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!t._driver){r(i);return}for(var o=tc.concat("_initStorage"),u=0,l=o.length;u<l;u++){var c=o[u];if((!tn(tl,c)||t[c])&&"function"!=typeof t[c]){r(i);return}}!function(){for(var e=function(t){return function(){var e=Error("Method "+t+" is not implemented by the current driver"),r=a.reject(e);return s(r,arguments[arguments.length-1]),r}},r=0,n=tl.length;r<n;r++){var i=tl[r];!t[i]&&(t[i]=e(i))}}();var h=function(r){to[n]&&console.info("Redefining LocalForage driver: "+n),to[n]=t,ta[n]=r,e()};"_support"in t?t._support&&"function"==typeof t._support?t._support().then(h,r):h(!!t._support):h(!0)}catch(t){r(t)}});return u(n,e,r),n},t.prototype.driver=function(){return this._driver||null},t.prototype.getDriver=function(t,e,r){var n=to[t]?a.resolve(to[t]):a.reject(Error("Driver not found."));return u(n,e,r),n},t.prototype.getSerializer=function(t){var e=a.resolve(Q);return u(e,t),e},t.prototype.ready=function(t){var e=this,r=e._driverSet.then(function(){return null===e._ready&&(e._ready=e._initDriver()),e._ready});return u(r,t,t),r},t.prototype.setDriver=function(t,e,r){var n=this;!ti(t)&&(t=[t]);var i=this._getSupportedDrivers(t);function o(){n._config.driver=n.driver()}function s(t){return n._extend(t),o(),n._ready=n._initStorage(n._config),n._ready}var l=null!==this._driverSet?this._driverSet.catch(function(){return a.resolve()}):a.resolve();return this._driverSet=l.then(function(){var t=i[0];return n._dbInfo=null,n._ready=null,n.getDriver(t).then(function(t){var e;n._driver=t._driver,o(),n._wrapLibraryMethodsWithReady(),n._initDriver=(e=i,function(){var t=0;return function r(){for(;t<e.length;){var i=e[t];return t++,n._dbInfo=null,n._ready=null,n.getDriver(i).then(s).catch(r)}o();var u=Error("No available storage method found.");return n._driverSet=a.reject(u),n._driverSet}()})})}).catch(function(){o();var t=Error("No available storage method found.");return n._driverSet=a.reject(t),n._driverSet}),u(this._driverSet,e,r),this._driverSet},t.prototype.supports=function(t){return!!ta[t]},t.prototype._extend=function(t){td(this,t)},t.prototype._getSupportedDrivers=function(t){for(var e=[],r=0,n=t.length;r<n;r++){var i=t[r];this.supports(i)&&e.push(i)}return e},t.prototype._wrapLibraryMethodsWithReady=function(){for(var t=0,e=tc.length;t<e;t++)!function(t,e){t[e]=function(){var r=arguments;return t.ready().then(function(){return t[e].apply(t,r)})}}(this,tc[t])},t.prototype.createInstance=function(e){return new t(e)},t}());e.exports=tf},{3:3}]},{},[4])(4)},t.exports=n()},747409:function(t,e,r){var n=r(7604)(r(749209),"DataView");t.exports=n},220143:function(t,e,r){var n=r(918859),i=r(955461),o=r(149118),a=r(973367),s=r(119485);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},179310:function(t,e,r){var n=r(753442),i=r(958209),o=r(253859),a=r(67407),s=r(206573);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},542605:function(t,e,r){var n=r(7604)(r(749209),"Map");t.exports=n},973714:function(t,e,r){var n=r(939272),i=r(487955),o=r(971443),a=r(693056),s=r(283581);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},885053:function(t,e,r){var n=r(7604)(r(749209),"Promise");t.exports=n},478526:function(t,e,r){var n=r(7604)(r(749209),"Set");t.exports=n},845009:function(t,e,r){var n=r(973714),i=r(414297),o=r(367334);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,t.exports=a},924678:function(t,e,r){var n=r(179310),i=r(740142),o=r(810399),a=r(878046),s=r(91183),u=r(55088);function l(t){var e=this.__data__=new n(t);this.size=e.size}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,t.exports=l},130927:function(t,e,r){var n=r(749209).Symbol;t.exports=n},152142:function(t,e,r){var n=r(749209).Uint8Array;t.exports=n},79514:function(t,e,r){var n=r(7604)(r(749209),"WeakMap");t.exports=n},698868:function(t){t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},41679:function(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},19249:function(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var a=t[r];e(a,r,t)&&(o[i++]=a)}return o}},321454:function(t,e,r){var n=r(536074);t.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},327219:function(t){t.exports=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1}},861786:function(t,e,r){var n=r(711181),i=r(744120),o=r(873266),a=r(146458),s=r(892947),u=r(70868),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=o(t),c=!r&&i(t),h=!r&&!c&&a(t),d=!r&&!c&&!h&&u(t),f=r||c||h||d,p=f?n(t.length,String):[],g=p.length;for(var y in t)(e||l.call(t,y))&&!(f&&("length"==y||h&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,g)))&&p.push(y);return p}},379576:function(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}},461252:function(t){t.exports=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}},284975:function(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},676133:function(t,e,r){var n=r(274431)("length");t.exports=n},146782:function(t){t.exports=function(t){return t.split("")}},193408:function(t,e,r){var n=r(61656),i=r(372631);t.exports=function(t,e,r){(void 0!==r&&!i(t[e],r)||void 0===r&&!(e in t))&&n(t,e,r)}},651886:function(t,e,r){var n=r(61656),i=r(372631),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];(!(o.call(t,e)&&i(a,r))||void 0===r&&!(e in t))&&n(t,e,r)}},170897:function(t,e,r){var n=r(372631);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return -1}},558298:function(t,e,r){var n=r(268634),i=r(695352);t.exports=function(t,e){return t&&n(e,i(e),t)}},948071:function(t,e,r){var n=r(268634),i=r(9068);t.exports=function(t,e){return t&&n(e,i(e),t)}},61656:function(t,e,r){var n=r(329018);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},221145:function(t,e,r){var n=r(924678),i=r(41679),o=r(651886),a=r(558298),s=r(948071),u=r(625072),l=r(685865),c=r(89661),h=r(918117),d=r(803494),f=r(645527),p=r(598778),g=r(418007),y=r(692260),m=r(779523),b=r(873266),w=r(146458),A=r(649661),D=r(103852),E=r(591558),x=r(695352),S=r(9068),M="[object Arguments]",_="[object Function]",N="[object Object]",T={};T[M]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[N]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[_]=T["[object WeakMap]"]=!1;t.exports=function t(e,r,C,I,O,k){var L,P=1&r,R=2&r,B=4&r;if(C&&(L=O?C(e,I,O,k):C(e)),void 0!==L)return L;if(!D(e))return e;var j=b(e);if(j){if(L=g(e),!P)return l(e,L)}else{var F=p(e),U=F==_||"[object GeneratorFunction]"==F;if(w(e))return u(e,P);if(F==N||F==M||U&&!O){if(L=R||U?{}:m(e),!P)return R?h(e,s(L,e)):c(e,a(L,e))}else{if(!T[F])return O?e:{};L=y(e,F,P)}}k||(k=new n);var z=k.get(e);if(z)return z;k.set(e,L),E(e)?e.forEach(function(n){L.add(t(n,r,C,n,e,k))}):A(e)&&e.forEach(function(n,i){L.set(i,t(n,r,C,i,e,k))});var q=B?R?f:d:R?S:x,H=j?void 0:q(e);return i(H||e,function(n,i){H&&(n=e[i=n]),o(L,i,t(n,r,C,i,e,k))}),L}},982413:function(t,e,r){var n=r(103852),i=Object.create,o=function(){function t(){}return function(e){if(!n(e))return{};if(i)return i(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=o},229451:function(t,e,r){var n=r(845009),i=r(321454),o=r(327219),a=r(379576),s=r(54533),u=r(571566);t.exports=function(t,e,r,l){var c=-1,h=i,d=!0,f=t.length,p=[],g=e.length;if(!f)return p;r&&(e=a(e,s(r))),l?(h=o,d=!1):e.length>=200&&(h=u,d=!1,e=new n(e));r:for(;++c<f;){var y=t[c],m=null==r?y:r(y);if(y=l||0!==y?y:0,d&&m==m){for(var b=g;b--;)if(e[b]===m)continue r;p.push(y)}else!h(e,m,l)&&p.push(y)}return p}},944550:function(t,e,r){var n=r(363246),i=r(72709)(n);t.exports=i},8505:function(t,e,r){var n=r(696772);t.exports=function(t,e,r){for(var i=-1,o=t.length;++i<o;){var a=t[i],s=e(a);if(null!=s&&(void 0===u?s==s&&!n(s):r(s,u)))var u=s,l=a}return l}},988313:function(t,e,r){var n=r(944550);t.exports=function(t,e){var r=[];return n(t,function(t,n,i){e(t,n,i)&&r.push(t)}),r}},452131:function(t){t.exports=function(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return -1}},396047:function(t,e,r){var n=r(461252),i=r(300391);t.exports=function t(e,r,o,a,s){var u=-1,l=e.length;for(o||(o=i),s||(s=[]);++u<l;){var c=e[u];r>0&&o(c)?r>1?t(c,r-1,o,a,s):n(s,c):!a&&(s[s.length]=c)}return s}},809933:function(t,e,r){var n=r(347059)();t.exports=n},363246:function(t,e,r){var n=r(809933),i=r(695352);t.exports=function(t,e){return t&&n(t,e,i)}},585332:function(t,e,r){var n=r(27167),i=r(439522);t.exports=function(t,e){e=n(e,t);for(var r=0,o=e.length;null!=t&&r<o;)t=t[i(e[r++])];return r&&r==o?t:void 0}},558686:function(t,e,r){var n=r(461252),i=r(873266);t.exports=function(t,e,r){var o=e(t);return i(t)?o:n(o,r(t))}},743667:function(t,e,r){var n=r(130927),i=r(888170),o=r(215817),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},73476:function(t){t.exports=function(t,e){return t>e}},576066:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t,r){return null!=t&&e.call(t,r)}},295834:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},536074:function(t,e,r){var n=r(452131),i=r(118647),o=r(773845);t.exports=function(t,e,r){return e==e?o(t,e,r):n(t,i,r)}},249485:function(t){t.exports=function(t,e,r,n){for(var i=r-1,o=t.length;++i<o;)if(n(t[i],e))return i;return -1}},311745:function(t,e,r){var n=r(743667),i=r(850414);t.exports=function(t){return i(t)&&"[object Arguments]"==n(t)}},13222:function(t,e,r){var n=r(743667),i=r(850414);t.exports=function(t){return i(t)&&"[object Date]"==n(t)}},616774:function(t,e,r){var n=r(999892),i=r(850414);t.exports=function t(e,r,o,a,s){return e===r||(null!=e&&null!=r&&(i(e)||i(r))?n(e,r,o,a,t,s):e!=e&&r!=r)}},999892:function(t,e,r){var n=r(924678),i=r(807),o=r(411802),a=r(213740),s=r(598778),u=r(873266),l=r(146458),c=r(70868),h="[object Arguments]",d="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,g,y,m){var b=u(t),w=u(e),A=b?d:s(t),D=w?d:s(e);A=A==h?f:A,D=D==h?f:D;var E=A==f,x=D==f,S=A==D;if(S&&l(t)){if(!l(e))return!1;b=!0,E=!1}if(S&&!E)return m||(m=new n),b||c(t)?i(t,e,r,g,y,m):o(t,e,A,r,g,y,m);if(!(1&r)){var M=E&&p.call(t,"__wrapped__"),_=x&&p.call(e,"__wrapped__");if(M||_){var N=M?t.value():t,T=_?e.value():e;return m||(m=new n),y(N,T,r,g,m)}}return!!S&&(m||(m=new n),a(t,e,r,g,y,m))}},79837:function(t,e,r){var n=r(598778),i=r(850414);t.exports=function(t){return i(t)&&"[object Map]"==n(t)}},570654:function(t,e,r){var n=r(924678),i=r(616774);t.exports=function(t,e,r,o){var a=r.length,s=a,u=!o;if(null==t)return!s;for(t=Object(t);a--;){var l=r[a];if(u&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<s;){var c=(l=r[a])[0],h=t[c],d=l[1];if(u&&l[2]){if(void 0===h&&!(c in t))return!1}else{var f=new n;if(o)var p=o(h,d,c,t,e,f);if(!(void 0===p?i(d,h,3,o,f):p))return!1}}return!0}},118647:function(t){t.exports=function(t){return t!=t}},497514:function(t,e,r){var n=r(581816),i=r(795828),o=r(103852),a=r(849251),s=/^\[object .+?Constructor\]$/,u=Object.prototype,l=Function.prototype.toString,c=u.hasOwnProperty,h=RegExp("^"+l.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(n(t)?h:s).test(a(t))}},424122:function(t,e,r){var n=r(743667),i=r(850414);t.exports=function(t){return i(t)&&"[object RegExp]"==n(t)}},791554:function(t,e,r){var n=r(598778),i=r(850414);t.exports=function(t){return i(t)&&"[object Set]"==n(t)}},574661:function(t,e,r){var n=r(743667),i=r(69167),o=r(850414),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;t.exports=function(t){return o(t)&&i(t.length)&&!!a[n(t)]}},532135:function(t,e,r){var n=r(711927),i=r(254156),o=r(342363),a=r(873266),s=r(701743);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):n(t):s(t)}},739840:function(t,e,r){var n=r(752789),i=r(747333),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=[];for(var r in Object(t))o.call(t,r)&&"constructor"!=r&&e.push(r);return e}},763275:function(t,e,r){var n=r(103852),i=r(752789),o=r(655337),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=i(t),r=[];for(var s in t)!("constructor"==s&&(e||!a.call(t,s)))&&r.push(s);return r}},584828:function(t,e,r){var n=r(944550),i=r(65284);t.exports=function(t,e){var r=-1,o=i(t)?Array(t.length):[];return n(t,function(t,n,i){o[++r]=e(t,n,i)}),o}},711927:function(t,e,r){var n=r(570654),i=r(331335),o=r(384770);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},254156:function(t,e,r){var n=r(616774),i=r(167006),o=r(881478),a=r(897973),s=r(536409),u=r(384770),l=r(439522);t.exports=function(t,e){return a(t)&&s(e)?u(l(t),e):function(r){var a=i(r,t);return void 0===a&&a===e?o(r,t):n(e,a,3)}}},890290:function(t,e,r){var n=r(924678),i=r(193408),o=r(809933),a=r(579121),s=r(103852),u=r(9068),l=r(461895);t.exports=function t(e,r,c,h,d){if(e!==r)o(r,function(o,u){if(d||(d=new n),s(o))a(e,r,u,c,t,h,d);else{var f=h?h(l(e,u),o,u+"",e,r,d):void 0;void 0===f&&(f=o),i(e,u,f)}},u)}},579121:function(t,e,r){var n=r(193408),i=r(625072),o=r(5457),a=r(685865),s=r(779523),u=r(744120),l=r(873266),c=r(780163),h=r(146458),d=r(581816),f=r(103852),p=r(199585),g=r(70868),y=r(461895),m=r(229659);t.exports=function(t,e,r,b,w,A,D){var E=y(t,r),x=y(e,r),S=D.get(x);if(S){n(t,r,S);return}var M=A?A(E,x,r+"",t,e,D):void 0,_=void 0===M;if(_){var N=l(x),T=!N&&h(x),C=!N&&!T&&g(x);M=x,N||T||C?l(E)?M=E:c(E)?M=a(E):T?(_=!1,M=i(x,!0)):C?(_=!1,M=o(x,!0)):M=[]:p(x)||u(x)?(M=E,u(E)?M=m(E):(!f(E)||d(E))&&(M=s(x))):_=!1}_&&(D.set(x,M),w(M,x,b,A,D),D.delete(x)),n(t,r,M)}},797369:function(t,e,r){var n=r(698145),i=r(881478);t.exports=function(t,e){return n(t,e,function(e,r){return i(t,r)})}},698145:function(t,e,r){var n=r(585332),i=r(714901),o=r(27167);t.exports=function(t,e,r){for(var a=-1,s=e.length,u={};++a<s;){var l=e[a],c=n(t,l);r(c,l)&&i(u,o(l,t),c)}return u}},274431:function(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},573559:function(t,e,r){var n=r(585332);t.exports=function(t){return function(e){return n(e,t)}}},386899:function(t,e,r){var n=r(379576),i=r(536074),o=r(249485),a=r(54533),s=r(685865),u=Array.prototype.splice;t.exports=function(t,e,r,l){var c=l?o:i,h=-1,d=e.length,f=t;for(t===e&&(e=s(e)),r&&(f=n(t,a(r)));++h<d;){for(var p=0,g=e[h],y=r?r(g):g;(p=c(f,y,p,l))>-1;)f!==t&&u.call(f,p,1),u.call(t,p,1)}return t}},7479:function(t,e,r){var n=r(342363),i=r(205086),o=r(243785);t.exports=function(t,e){return o(i(t,e,n),t+"")}},714901:function(t,e,r){var n=r(651886),i=r(27167),o=r(892947),a=r(103852),s=r(439522);t.exports=function(t,e,r,u){if(!a(t))return t;e=i(e,t);for(var l=-1,c=e.length,h=c-1,d=t;null!=d&&++l<c;){var f=s(e[l]),p=r;if("__proto__"===f||"constructor"===f||"prototype"===f)break;if(l!=h){var g=d[f];void 0===(p=u?u(g,f,d):void 0)&&(p=a(g)?g:o(e[l+1])?[]:{})}n(d,f,p),d=d[f]}return t}},729370:function(t,e,r){var n=r(252012),i=r(329018),o=r(342363),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:o;t.exports=a},142582:function(t){t.exports=function(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+e];return o}},857115:function(t,e,r){var n=r(944550);t.exports=function(t,e){var r;return n(t,function(t,n,i){return!(r=e(t,n,i))}),!!r}},711181:function(t){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},848702:function(t,e,r){var n=r(130927),i=r(379576),o=r(873266),a=r(696772),s=1/0,u=n?n.prototype:void 0,l=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return l?l.call(e):"";var r=e+"";return"0"==r&&1/e==-s?"-0":r}},323643:function(t,e,r){var n=r(754174),i=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(i,""):t}},54533:function(t){t.exports=function(t){return function(e){return t(e)}}},380740:function(t,e,r){var n=r(845009),i=r(321454),o=r(327219),a=r(571566),s=r(779586),u=r(456697);t.exports=function(t,e,r){var l=-1,c=i,h=t.length,d=!0,f=[],p=f;if(r)d=!1,c=o;else if(h>=200){var g=e?null:s(t);if(g)return u(g);d=!1,c=a,p=new n}else p=e?[]:f;r:for(;++l<h;){var y=t[l],m=e?e(y):y;if(y=r||0!==y?y:0,d&&m==m){for(var b=p.length;b--;)if(p[b]===m)continue r;e&&p.push(m),f.push(y)}else!c(p,m,r)&&(p!==f&&p.push(m),f.push(y))}return f}},387412:function(t,e,r){var n=r(27167),i=r(665984),o=r(307462),a=r(439522);t.exports=function(t,e){return e=n(e,t),null==(t=o(t,e))||delete t[a(i(e))]}},295353:function(t,e,r){var n=r(379576);t.exports=function(t,e){return n(e,function(e){return t[e]})}},571566:function(t){t.exports=function(t,e){return t.has(e)}},680303:function(t,e,r){var n=r(342363);t.exports=function(t){return"function"==typeof t?t:n}},27167:function(t,e,r){var n=r(873266),i=r(897973),o=r(875502),a=r(651595);t.exports=function(t,e){return n(t)?t:i(t,e)?[t]:o(a(t))}},377925:function(t,e,r){var n=r(142582);t.exports=function(t,e,r){var i=t.length;return r=void 0===r?i:r,!e&&r>=i?t:n(t,e,r)}},387332:function(t,e,r){var n=r(152142);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},625072:function(t,e,r){t=r.nmd(t);var n=r(749209),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=s?s(r):new t.constructor(r);return t.copy(n),n}},532876:function(t,e,r){var n=r(387332);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}},811988:function(t){var e=/\w*$/;t.exports=function(t){var r=new t.constructor(t.source,e.exec(t));return r.lastIndex=t.lastIndex,r}},166318:function(t,e,r){var n=r(130927),i=n?n.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},5457:function(t,e,r){var n=r(387332);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},685865:function(t){t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},268634:function(t,e,r){var n=r(651886),i=r(61656);t.exports=function(t,e,r,o){var a=!r;r||(r={});for(var s=-1,u=e.length;++s<u;){var l=e[s],c=o?o(r[l],t[l],l,r,t):void 0;void 0===c&&(c=t[l]),a?i(r,l,c):n(r,l,c)}return r}},89661:function(t,e,r){var n=r(268634),i=r(240092);t.exports=function(t,e){return n(t,i(t),e)}},918117:function(t,e,r){var n=r(268634),i=r(820889);t.exports=function(t,e){return n(t,i(t),e)}},909922:function(t,e,r){var n=r(749209)["__core-js_shared__"];t.exports=n},818208:function(t,e,r){var n=r(7479),i=r(840645);t.exports=function(t){return n(function(e,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(r[0],r[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++n<o;){var u=r[n];u&&t(e,u,n,a)}return e})}},72709:function(t,e,r){var n=r(65284);t.exports=function(t,e){return function(r,i){if(null==r)return r;if(!n(r))return t(r,i);for(var o=r.length,a=e?o:-1,s=Object(r);(e?a--:++a<o)&&!1!==i(s[a],a,s););return r}}},347059:function(t){t.exports=function(t){return function(e,r,n){for(var i=-1,o=Object(e),a=n(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===r(o[u],u,o))break}return e}}},113756:function(t,e,r){var n=r(532135),i=r(65284),o=r(695352);t.exports=function(t){return function(e,r,a){var s=Object(e);if(!i(e)){var u=n(r,3);e=o(e),r=function(t){return u(s[t],t,s)}}var l=t(e,r,a);return l>-1?s[u?e[l]:l]:void 0}}},779586:function(t,e,r){var n=r(478526),i=r(426839),o=r(456697),a=n&&1/o(new n([,-0]))[1]==1/0?function(t){return new n(t)}:i;t.exports=a},220019:function(t,e,r){var n=r(199585);t.exports=function(t){return n(t)?void 0:t}},329018:function(t,e,r){var n=r(7604),i=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},807:function(t,e,r){var n=r(845009),i=r(284975),o=r(571566);t.exports=function(t,e,r,a,s,u){var l=1&r,c=t.length,h=e.length;if(c!=h&&!(l&&h>c))return!1;var d=u.get(t),f=u.get(e);if(d&&f)return d==e&&f==t;var p=-1,g=!0,y=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++p<c;){var m=t[p],b=e[p];if(a)var w=l?a(b,m,p,e,t,u):a(m,b,p,t,e,u);if(void 0!==w){if(w)continue;g=!1;break}if(y){if(!i(e,function(t,e){if(!o(y,e)&&(m===t||s(m,t,r,a,u)))return y.push(e)})){g=!1;break}}else if(!(m===b||s(m,b,r,a,u))){g=!1;break}}return u.delete(t),u.delete(e),g}},411802:function(t,e,r){var n=r(130927),i=r(152142),o=r(372631),a=r(807),s=r(652697),u=r(456697),l=n?n.prototype:void 0,c=l?l.valueOf:void 0;t.exports=function(t,e,r,n,l,h,d){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!h(new i(t),new i(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var f=s;case"[object Set]":var p=1&n;if(f||(f=u),t.size!=e.size&&!p)break;var g=d.get(t);if(g)return g==e;n|=2,d.set(t,e);var y=a(f(t),f(e),n,l,h,d);return d.delete(t),y;case"[object Symbol]":if(c)return c.call(t)==c.call(e)}return!1}},213740:function(t,e,r){var n=r(803494),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,o,a,s){var u=1&r,l=n(t),c=l.length;if(c!=n(e).length&&!u)return!1;for(var h=c;h--;){var d=l[h];if(!(u?d in e:i.call(e,d)))return!1}var f=s.get(t),p=s.get(e);if(f&&p)return f==e&&p==t;var g=!0;s.set(t,e),s.set(e,t);for(var y=u;++h<c;){var m=t[d=l[h]],b=e[d];if(o)var w=u?o(b,m,d,e,t,s):o(m,b,d,t,e,s);if(!(void 0===w?m===b||a(m,b,r,o,s):w)){g=!1;break}y||(y="constructor"==d)}if(g&&!y){var A=t.constructor,D=e.constructor;A!=D&&"constructor"in t&&"constructor"in e&&!("function"==typeof A&&A instanceof A&&"function"==typeof D&&D instanceof D)&&(g=!1)}return s.delete(t),s.delete(e),g}},31665:function(t,e,r){var n=r(611716),i=r(205086),o=r(243785);t.exports=function(t){return o(i(t,void 0,n),t+"")}},914954:function(t,e,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},803494:function(t,e,r){var n=r(558686),i=r(240092),o=r(695352);t.exports=function(t){return n(t,o,i)}},645527:function(t,e,r){var n=r(558686),i=r(820889),o=r(9068);t.exports=function(t){return n(t,o,i)}},132463:function(t,e,r){var n=r(888281);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},331335:function(t,e,r){var n=r(536409),i=r(695352);t.exports=function(t){for(var e=i(t),r=e.length;r--;){var o=e[r],a=t[o];e[r]=[o,a,n(a)]}return e}},7604:function(t,e,r){var n=r(497514),i=r(455772);t.exports=function(t,e){var r=i(t,e);return n(r)?r:void 0}},752446:function(t,e,r){var n=r(526662)(Object.getPrototypeOf,Object);t.exports=n},888170:function(t,e,r){var n=r(130927),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var i=a.call(t);return n&&(e?t[s]=r:delete t[s]),i}},240092:function(t,e,r){var n=r(19249),i=r(719221),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:n(a(t=Object(t)),function(e){return o.call(t,e)})}:i;t.exports=s},820889:function(t,e,r){var n=r(461252),i=r(752446),o=r(240092),a=r(719221),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,o(t)),t=i(t);return e}:a;t.exports=s},598778:function(t,e,r){var n=r(747409),i=r(542605),o=r(885053),a=r(478526),s=r(79514),u=r(743667),l=r(849251),c="[object Map]",h="[object Promise]",d="[object Set]",f="[object WeakMap]",p="[object DataView]",g=l(n),y=l(i),m=l(o),b=l(a),w=l(s),A=u;(n&&A(new n(new ArrayBuffer(1)))!=p||i&&A(new i)!=c||o&&A(o.resolve())!=h||a&&A(new a)!=d||s&&A(new s)!=f)&&(A=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?l(r):"";if(n)switch(n){case g:return p;case y:return c;case m:return h;case b:return d;case w:return f}return e}),t.exports=A},455772:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},336888:function(t,e,r){var n=r(27167),i=r(744120),o=r(873266),a=r(892947),s=r(69167),u=r(439522);t.exports=function(t,e,r){e=n(e,t);for(var l=-1,c=e.length,h=!1;++l<c;){var d=u(e[l]);if(!(h=null!=t&&r(t,d)))break;t=t[d]}return h||++l!=c?h:!!(c=null==t?0:t.length)&&s(c)&&a(d,c)&&(o(t)||i(t))}},483556:function(t){var e=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},918859:function(t,e,r){var n=r(128662);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},955461:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},149118:function(t,e,r){var n=r(128662),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(e,t)?e[t]:void 0}},973367:function(t,e,r){var n=r(128662),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:i.call(e,t)}},119485:function(t,e,r){var n=r(128662);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},418007:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t){var r=t.length,n=new t.constructor(r);return r&&"string"==typeof t[0]&&e.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},692260:function(t,e,r){var n=r(387332),i=r(532876),o=r(811988),a=r(166318),s=r(5457);t.exports=function(t,e,r){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return n(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return i(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(t,r);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return o(t);case"[object Symbol]":return a(t)}}},779523:function(t,e,r){var n=r(982413),i=r(752446),o=r(752789);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:n(i(t))}},300391:function(t,e,r){var n=r(130927),i=r(744120),o=r(873266),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},892947:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},840645:function(t,e,r){var n=r(372631),i=r(65284),o=r(892947),a=r(103852);t.exports=function(t,e,r){if(!a(r))return!1;var s=typeof e;return("number"==s?!!(i(r)&&o(e,r.length)):"string"==s&&e in r)&&n(r[e],t)}},897973:function(t,e,r){var n=r(873266),i=r(696772),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!!("number"==r||"symbol"==r||"boolean"==r||null==t||i(t))||a.test(t)||!o.test(t)||null!=e&&t in Object(e)}},888281:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},795828:function(t,e,r){var n,i=r(909922);var o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!o&&o in t}},752789:function(t){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},536409:function(t,e,r){var n=r(103852);t.exports=function(t){return t==t&&!n(t)}},753442:function(t){t.exports=function(){this.__data__=[],this.size=0}},958209:function(t,e,r){var n=r(170897),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():i.call(e,r,1),--this.size,!0)}},253859:function(t,e,r){var n=r(170897);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},67407:function(t,e,r){var n=r(170897);t.exports=function(t){return n(this.__data__,t)>-1}},206573:function(t,e,r){var n=r(170897);t.exports=function(t,e){var r=this.__data__,i=n(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}},939272:function(t,e,r){var n=r(220143),i=r(179310),o=r(542605);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},487955:function(t,e,r){var n=r(132463);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},971443:function(t,e,r){var n=r(132463);t.exports=function(t){return n(this,t).get(t)}},693056:function(t,e,r){var n=r(132463);t.exports=function(t){return n(this,t).has(t)}},283581:function(t,e,r){var n=r(132463);t.exports=function(t,e){var r=n(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}},652697:function(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}},384770:function(t){t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},906666:function(t,e,r){var n=r(682015);t.exports=function(t){var e=n(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}},128662:function(t,e,r){var n=r(7604)(Object,"create");t.exports=n},747333:function(t,e,r){var n=r(526662)(Object.keys,Object);t.exports=n},655337:function(t){t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},6005:function(t,e,r){t=r.nmd(t);var n=r(914954),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&n.process,s=function(){try{var t=o&&o.require&&o.require("util").types;if(t)return t;return a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},215817:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},526662:function(t){t.exports=function(t,e){return function(r){return t(e(r))}}},205086:function(t,e,r){var n=r(698868),i=Math.max;t.exports=function(t,e,r){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);++a<s;)u[a]=o[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=o[a];return l[e]=r(u),n(t,this,l)}}},307462:function(t,e,r){var n=r(585332),i=r(142582);t.exports=function(t,e){return e.length<2?t:n(t,i(e,0,-1))}},749209:function(t,e,r){var n=r(914954),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();t.exports=o},461895:function(t){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},414297:function(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},367334:function(t){t.exports=function(t){return this.__data__.has(t)}},456697:function(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},243785:function(t,e,r){var n=r(729370),i=r(117733)(n);t.exports=i},117733:function(t){var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var i=e(),o=16-(i-n);if(n=i,o>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},740142:function(t,e,r){var n=r(179310);t.exports=function(){this.__data__=new n,this.size=0}},810399:function(t){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},878046:function(t){t.exports=function(t){return this.__data__.get(t)}},91183:function(t){t.exports=function(t){return this.__data__.has(t)}},55088:function(t,e,r){var n=r(179310),i=r(542605),o=r(973714);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(t,e),this.size=r.size,this}},773845:function(t){t.exports=function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return -1}},740856:function(t,e,r){var n=r(676133),i=r(483556),o=r(268414);t.exports=function(t){return i(t)?o(t):n(t)}},603790:function(t,e,r){var n=r(146782),i=r(483556),o=r(164110);t.exports=function(t){return i(t)?o(t):n(t)}},875502:function(t,e,r){var n=r(906666),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=n(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,function(t,r,n,i){e.push(n?i.replace(o,"$1"):r||t)}),e});t.exports=a},439522:function(t,e,r){var n=r(696772),i=1/0;t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}},849251:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},754174:function(t){var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},268414:function(t){var e="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\ud83c[\udffb-\udfff]",i="[^"+e+"]",o="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",s="(?:"+r+"|"+n+")?",u="[\\ufe0e\\ufe0f]?",l="(?:\\u200d(?:"+[i,o,a].join("|")+")"+u+s+")*",c=RegExp(n+"(?="+n+")|"+("(?:"+[i+r+"?",r,o,a,"["+e+"]"].join("|")+")")+(u+s+l),"g");t.exports=function(t){for(var e=c.lastIndex=0;c.test(t);)++e;return e}},164110:function(t){var e="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\ud83c[\udffb-\udfff]",i="[^"+e+"]",o="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",s="(?:"+r+"|"+n+")?",u="[\\ufe0e\\ufe0f]?",l="(?:\\u200d(?:"+[i,o,a].join("|")+")"+u+s+")*",c=RegExp(n+"(?="+n+")|"+("(?:"+[i+r+"?",r,o,a,"["+e+"]"].join("|")+")")+(u+s+l),"g");t.exports=function(t){return t.match(c)||[]}},944314:function(t,e,r){var n=r(651886),i=r(268634),o=r(818208),a=r(65284),s=r(752789),u=r(695352),l=Object.prototype.hasOwnProperty,c=o(function(t,e){if(s(e)||a(e)){i(e,u(e),t);return}for(var r in e)l.call(e,r)&&n(t,r,e[r])});t.exports=c},230409:function(t,e,r){var n=r(221145);t.exports=function(t){return n(t,4)}},994226:function(t,e,r){var n=r(221145);t.exports=function(t,e){return n(t,5,e="function"==typeof e?e:void 0)}},252012:function(t){t.exports=function(t){return function(){return t}}},612447:function(t,e,r){var n=r(103852),i=r(692001),o=r(483741),a=Math.max,s=Math.min;t.exports=function(t,e,r){var u,l,c,h,d,f,p=0,g=!1,y=!1,m=!0;if("function"!=typeof t)throw TypeError("Expected a function");function b(e){var r=u,n=l;return u=l=void 0,p=e,h=t.apply(n,r)}e=o(e)||0,n(r)&&(g=!!r.leading,c=(y="maxWait"in r)?a(o(r.maxWait)||0,e):c,m="trailing"in r?!!r.trailing:m);function w(t){var r=t-f,n=t-p;return void 0===f||r>=e||r<0||y&&n>=c}function A(){var t,r,n,o,a=i();if(w(a))return D(a);d=setTimeout(A,(r=(t=a)-f,n=t-p,o=e-r,y?s(o,c-n):o))}function D(t){return(d=void 0,m&&u)?b(t):(u=l=void 0,h)}function E(){var t,r=i(),n=w(r);if(u=arguments,l=this,f=r,n){if(void 0===d){;return p=t=f,d=setTimeout(A,e),g?b(t):h}if(y)return clearTimeout(d),d=setTimeout(A,e),b(f)}return void 0===d&&(d=setTimeout(A,e)),h}return E.cancel=function(){void 0!==d&&clearTimeout(d),p=0,u=f=l=d=void 0},E.flush=function(){return void 0===d?h:D(i())},E}},118525:function(t,e,r){var n=r(229451),i=r(396047),o=r(7479),a=r(780163),s=o(function(t,e){return a(t)?n(t,i(e,1,a,!0)):[]});t.exports=s},179466:function(t,e,r){t.exports=r(852169)},372631:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},792567:function(t,e,r){var n=r(19249),i=r(988313),o=r(532135),a=r(873266);t.exports=function(t,e){return(a(t)?n:i)(t,o(e,3))}},941244:function(t,e,r){var n=r(113756)(r(743418));t.exports=n},743418:function(t,e,r){var n=r(452131),i=r(532135),o=r(961533),a=Math.max;t.exports=function(t,e,r){var s=null==t?0:t.length;if(!s)return -1;var u=null==r?0:o(r);return u<0&&(u=a(s+u,0)),n(t,i(e,3),u)}},300626:function(t,e,r){var n=r(452131),i=r(532135),o=r(961533),a=Math.max,s=Math.min;t.exports=function(t,e,r){var u=null==t?0:t.length;if(!u)return -1;var l=u-1;return void 0!==r&&(l=o(r),l=r<0?a(u+l,0):s(l,u-1)),n(t,i(e,3),l,!0)}},611716:function(t,e,r){var n=r(396047);t.exports=function(t){return(null==t?0:t.length)?n(t,1):[]}},387023:function(t,e,r){var n=r(396047),i=1/0;t.exports=function(t){return(null==t?0:t.length)?n(t,i):[]}},852169:function(t,e,r){var n=r(41679),i=r(944550),o=r(680303),a=r(873266);t.exports=function(t,e){return(a(t)?n:i)(t,o(e))}},167006:function(t,e,r){var n=r(585332);t.exports=function(t,e,r){var i=null==t?void 0:n(t,e);return void 0===i?r:i}},272430:function(t,e,r){var n=r(576066),i=r(336888);t.exports=function(t,e){return null!=t&&i(t,e,n)}},881478:function(t,e,r){var n=r(295834),i=r(336888);t.exports=function(t,e){return null!=t&&i(t,e,n)}}}]);
|