@web-site-utilities/feedback 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),lo=require("react-dom");var pt={},zr;function co(){if(zr)return pt;zr=1;var e=lo;return pt.createRoot=e.createRoot,pt.hydrateRoot=e.hydrateRoot,pt}var uo=co(),V=function(){return V=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},V.apply(this,arguments)};function _t(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var k="-ms-",it="-moz-",C="-webkit-",hn="comm",Ot="rule",pr="decl",fo="@import",pn="@keyframes",mo="@layer",gn=Math.abs,gr=String.fromCharCode,ir=Object.assign;function ho(e,t){return B(e,0)^45?(((t<<2^B(e,0))<<2^B(e,1))<<2^B(e,2))<<2^B(e,3):0}function bn(e){return e.trim()}function fe(e,t){return(e=t.exec(e))?e[0]:e}function g(e,t,r){return e.replace(t,r)}function St(e,t,r){return e.indexOf(t,r)}function B(e,t){return e.charCodeAt(t)|0}function ze(e,t,r){return e.slice(t,r)}function ie(e){return e.length}function yn(e){return e.length}function ot(e,t){return t.push(e),e}function po(e,t){return e.map(t).join("")}function Br(e,t){return e.filter(function(r){return!fe(r,t)})}var Nt=1,Be=1,vn=0,Z=0,F=0,Ve="";function $t(e,t,r,n,o,i,l,d){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Nt,column:Be,length:l,return:"",siblings:d}}function be(e,t){return ir($t("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Le(e){for(;e.root;)e=be(e.root,{children:[e]});ot(e,e.siblings)}function go(){return F}function bo(){return F=Z>0?B(Ve,--Z):0,Be--,F===10&&(Be=1,Nt--),F}function oe(){return F=Z<vn?B(Ve,Z++):0,Be++,F===10&&(Be=1,Nt++),F}function xe(){return B(Ve,Z)}function Tt(){return Z}function Dt(e,t){return ze(Ve,e,t)}function sr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function yo(e){return Nt=Be=1,vn=ie(Ve=e),Z=0,[]}function vo(e){return Ve="",e}function Xt(e){return bn(Dt(Z-1,lr(e===91?e+2:e===40?e+1:e)))}function Eo(e){for(;(F=xe())&&F<33;)oe();return sr(e)>2||sr(F)>3?"":" "}function So(e,t){for(;--t&&oe()&&!(F<48||F>102||F>57&&F<65||F>70&&F<97););return Dt(e,Tt()+(t<6&&xe()==32&&oe()==32))}function lr(e){for(;oe();)switch(F){case e:return Z;case 34:case 39:e!==34&&e!==39&&lr(F);break;case 40:e===41&&lr(e);break;case 92:oe();break}return Z}function To(e,t){for(;oe()&&e+F!==57;)if(e+F===84&&xe()===47)break;return"/*"+Dt(t,Z-1)+"*"+gr(e===47?e:oe())}function wo(e){for(;!sr(xe());)oe();return Dt(e,Z)}function xo(e){return vo(wt("",null,null,null,[""],e=yo(e),0,[0],e))}function wt(e,t,r,n,o,i,l,d,u){for(var m=0,p=0,T=l,w=0,v=0,A=0,$=1,G=1,D=1,P=0,_="",b=o,R=i,x=n,y=_;G;)switch(A=P,P=oe()){case 40:if(A!=108&&B(y,T-1)==58){St(y+=g(Xt(P),"&","&\f"),"&\f",gn(m?d[m-1]:0))!=-1&&(D=-1);break}case 34:case 39:case 91:y+=Xt(P);break;case 9:case 10:case 13:case 32:y+=Eo(A);break;case 92:y+=So(Tt()-1,7);continue;case 47:switch(xe()){case 42:case 47:ot(Co(To(oe(),Tt()),t,r,u),u);break;default:y+="/"}break;case 123*$:d[m++]=ie(y)*D;case 125*$:case 59:case 0:switch(P){case 0:case 125:G=0;case 59+p:D==-1&&(y=g(y,/\f/g,"")),v>0&&ie(y)-T&&ot(v>32?Wr(y+";",n,r,T-1,u):Wr(g(y," ","")+";",n,r,T-2,u),u);break;case 59:y+=";";default:if(ot(x=Ur(y,t,r,m,p,o,d,_,b=[],R=[],T,i),i),P===123)if(p===0)wt(y,t,x,x,b,i,T,d,R);else switch(w===99&&B(y,3)===110?100:w){case 100:case 108:case 109:case 115:wt(e,x,x,n&&ot(Ur(e,x,x,0,0,o,d,_,o,b=[],T,R),R),o,R,T,d,n?b:R);break;default:wt(y,x,x,x,[""],R,0,d,R)}}m=p=v=0,$=D=1,_=y="",T=l;break;case 58:T=1+ie(y),v=A;default:if($<1){if(P==123)--$;else if(P==125&&$++==0&&bo()==125)continue}switch(y+=gr(P),P*$){case 38:D=p>0?1:(y+="\f",-1);break;case 44:d[m++]=(ie(y)-1)*D,D=1;break;case 64:xe()===45&&(y+=Xt(oe())),w=xe(),p=T=ie(_=y+=wo(Tt())),P++;break;case 45:A===45&&ie(y)==2&&($=0)}}return i}function Ur(e,t,r,n,o,i,l,d,u,m,p,T){for(var w=o-1,v=o===0?i:[""],A=yn(v),$=0,G=0,D=0;$<n;++$)for(var P=0,_=ze(e,w+1,w=gn(G=l[$])),b=e;P<A;++P)(b=bn(G>0?v[P]+" "+_:g(_,/&\f/g,v[P])))&&(u[D++]=b);return $t(e,t,r,o===0?Ot:d,u,m,p,T)}function Co(e,t,r,n){return $t(e,t,r,hn,gr(go()),ze(e,2,-2),0,n)}function Wr(e,t,r,n,o){return $t(e,t,r,pr,ze(e,0,n),ze(e,n+1,-1),n,o)}function En(e,t,r){switch(ho(e,t)){case 5103:return C+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return C+e+e;case 4789:return it+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return C+e+it+e+k+e+e;case 5936:switch(B(e,t+11)){case 114:return C+e+k+g(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return C+e+k+g(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return C+e+k+g(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return C+e+k+e+e;case 6165:return C+e+k+"flex-"+e+e;case 5187:return C+e+g(e,/(\w+).+(:[^]+)/,C+"box-$1$2"+k+"flex-$1$2")+e;case 5443:return C+e+k+"flex-item-"+g(e,/flex-|-self/g,"")+(fe(e,/flex-|baseline/)?"":k+"grid-row-"+g(e,/flex-|-self/g,""))+e;case 4675:return C+e+k+"flex-line-pack"+g(e,/align-content|flex-|-self/g,"")+e;case 5548:return C+e+k+g(e,"shrink","negative")+e;case 5292:return C+e+k+g(e,"basis","preferred-size")+e;case 6060:return C+"box-"+g(e,"-grow","")+C+e+k+g(e,"grow","positive")+e;case 4554:return C+g(e,/([^-])(transform)/g,"$1"+C+"$2")+e;case 6187:return g(g(g(e,/(zoom-|grab)/,C+"$1"),/(image-set)/,C+"$1"),e,"")+e;case 5495:case 3959:return g(e,/(image-set\([^]*)/,C+"$1$`$1");case 4968:return g(g(e,/(.+:)(flex-)?(.*)/,C+"box-pack:$3"+k+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+C+e+e;case 4200:if(!fe(e,/flex-|baseline/))return k+"grid-column-align"+ze(e,t)+e;break;case 2592:case 3360:return k+g(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,fe(n.props,/grid-\w+-end/)})?~St(e+(r=r[t].value),"span",0)?e:k+g(e,"-start","")+e+k+"grid-row-span:"+(~St(r,"span",0)?fe(r,/\d+/):+fe(r,/\d+/)-+fe(e,/\d+/))+";":k+g(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return fe(n.props,/grid-\w+-start/)})?e:k+g(g(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return g(e,/(.+)-inline(.+)/,C+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ie(e)-1-t>6)switch(B(e,t+1)){case 109:if(B(e,t+4)!==45)break;case 102:return g(e,/(.+:)(.+)-([^]+)/,"$1"+C+"$2-$3$1"+it+(B(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~St(e,"stretch",0)?En(g(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return g(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,i,l,d,u,m){return k+o+":"+i+m+(l?k+o+"-span:"+(d?u:+u-+i)+m:"")+e});case 4949:if(B(e,t+6)===121)return g(e,":",":"+C)+e;break;case 6444:switch(B(e,B(e,14)===45?18:11)){case 120:return g(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+C+(B(e,14)===45?"inline-":"")+"box$3$1"+C+"$2$3$1"+k+"$2box$3")+e;case 100:return g(e,":",":"+k)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return g(e,"scroll-","scroll-snap-")+e}return e}function It(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Ao(e,t,r,n){switch(e.type){case mo:if(e.children.length)break;case fo:case pr:return e.return=e.return||e.value;case hn:return"";case pn:return e.return=e.value+"{"+It(e.children,n)+"}";case Ot:if(!ie(e.value=e.props.join(",")))return""}return ie(r=It(e.children,n))?e.return=e.value+"{"+r+"}":""}function _o(e){var t=yn(e);return function(r,n,o,i){for(var l="",d=0;d<t;d++)l+=e[d](r,n,o,i)||"";return l}}function Io(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ro(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case pr:e.return=En(e.value,e.length,r);return;case pn:return It([be(e,{value:g(e.value,"@","@"+C)})],n);case Ot:if(e.length)return po(r=e.props,function(o){switch(fe(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Le(be(e,{props:[g(o,/:(read-\w+)/,":"+it+"$1")]})),Le(be(e,{props:[o]})),ir(e,{props:Br(r,n)});break;case"::placeholder":Le(be(e,{props:[g(o,/:(plac\w+)/,":"+C+"input-$1")]})),Le(be(e,{props:[g(o,/:(plac\w+)/,":"+it+"$1")]})),Le(be(e,{props:[g(o,/:(plac\w+)/,k+"input-$1")]})),Le(be(e,{props:[o]})),ir(e,{props:Br(r,n)});break}return""})}}var ko={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ue=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Sn="active",Tn="data-styled-version",Mt="6.1.19",br=`/*!sc*/
2
- `,Rt=typeof window<"u"&&typeof document<"u",Po=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""&&process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY),Lt=Object.freeze([]),We=Object.freeze({});function Oo(e,t,r){return r===void 0&&(r=We),e.theme!==r.theme&&e.theme||t||r.theme}var wn=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),No=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,$o=/(^-|-$)/g;function Hr(e){return e.replace(No,"-").replace($o,"")}var Do=/(a)(d)/gi,gt=52,Vr=function(e){return String.fromCharCode(e+(e>25?39:97))};function cr(e){var t,r="";for(t=Math.abs(e);t>gt;t=t/gt|0)r=Vr(t%gt)+r;return(Vr(t%gt)+r).replace(Do,"$1-$2")}var Zt,xn=5381,Fe=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Cn=function(e){return Fe(xn,e)};function Mo(e){return cr(Cn(e)>>>0)}function Lo(e){return e.displayName||e.name||"Component"}function Qt(e){return typeof e=="string"&&!0}var An=typeof Symbol=="function"&&Symbol.for,_n=An?Symbol.for("react.memo"):60115,Fo=An?Symbol.for("react.forward_ref"):60112,zo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Bo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},In={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Uo=((Zt={})[Fo]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Zt[_n]=In,Zt);function Gr(e){return("type"in(t=e)&&t.type.$$typeof)===_n?In:"$$typeof"in e?Uo[e.$$typeof]:zo;var t}var Wo=Object.defineProperty,Ho=Object.getOwnPropertyNames,jr=Object.getOwnPropertySymbols,Vo=Object.getOwnPropertyDescriptor,Go=Object.getPrototypeOf,Yr=Object.prototype;function Rn(e,t,r){if(typeof t!="string"){if(Yr){var n=Go(t);n&&n!==Yr&&Rn(e,n,r)}var o=Ho(t);jr&&(o=o.concat(jr(t)));for(var i=Gr(e),l=Gr(t),d=0;d<o.length;++d){var u=o[d];if(!(u in Bo||r&&r[u]||l&&u in l||i&&u in i)){var m=Vo(t,u);try{Wo(e,u,m)}catch{}}}}return e}function Ae(e){return typeof e=="function"}function yr(e){return typeof e=="object"&&"styledComponentId"in e}function we(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function qr(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function st(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ur(e,t,r){if(r===void 0&&(r=!1),!r&&!st(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=ur(e[n],t[n]);else if(st(t))for(var n in t)e[n]=ur(e[n],t[n]);return e}function vr(e,t){Object.defineProperty(e,"toString",{value:t})}function _e(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var jo=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,i=o;t>=i;)if((i<<=1)<0)throw _e(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var l=o;l<i;l++)this.groupSizes[l]=0}for(var d=this.indexOfGroup(t+1),u=(l=0,r.length);l<u;l++)this.tag.insertRule(d,r[l])&&(this.groupSizes[t]++,d++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var i=n;i<o;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),i=o+n,l=o;l<i;l++)r+="".concat(this.tag.getRule(l)).concat(br);return r},e})(),xt=new Map,kt=new Map,Ct=1,bt=function(e){if(xt.has(e))return xt.get(e);for(;kt.has(Ct);)Ct++;var t=Ct++;return xt.set(e,t),kt.set(t,e),t},Yo=function(e,t){Ct=t+1,xt.set(e,t),kt.set(t,e)},qo="style[".concat(Ue,"][").concat(Tn,'="').concat(Mt,'"]'),Ko=new RegExp("^".concat(Ue,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Xo=function(e,t,r){for(var n,o=r.split(","),i=0,l=o.length;i<l;i++)(n=o[i])&&e.registerName(t,n)},Zo=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(br),o=[],i=0,l=n.length;i<l;i++){var d=n[i].trim();if(d){var u=d.match(Ko);if(u){var m=0|parseInt(u[1],10),p=u[2];m!==0&&(Yo(p,m),Xo(e,p,u[3]),e.getTag().insertRules(m,o)),o.length=0}else o.push(d)}}},Kr=function(e){for(var t=document.querySelectorAll(qo),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Ue)!==Sn&&(Zo(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Qo(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var kn=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=(function(d){var u=Array.from(d.querySelectorAll("style[".concat(Ue,"]")));return u[u.length-1]})(r),i=o!==void 0?o.nextSibling:null;n.setAttribute(Ue,Sn),n.setAttribute(Tn,Mt);var l=Qo();return l&&n.setAttribute("nonce",l),r.insertBefore(n,i),n},Jo=(function(){function e(t){this.element=kn(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,i=n.length;o<i;o++){var l=n[o];if(l.ownerNode===r)return l}throw _e(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e})(),ea=(function(){function e(t){this.element=kn(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),ta=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Xr=Rt,ra={isServer:!Rt,useCSSOMInjection:!Po},Pn=(function(){function e(t,r,n){t===void 0&&(t=We),r===void 0&&(r={});var o=this;this.options=V(V({},ra),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&Rt&&Xr&&(Xr=!1,Kr(this)),vr(this,function(){return(function(i){for(var l=i.getTag(),d=l.length,u="",m=function(T){var w=(function(D){return kt.get(D)})(T);if(w===void 0)return"continue";var v=i.names.get(w),A=l.getGroup(T);if(v===void 0||!v.size||A.length===0)return"continue";var $="".concat(Ue,".g").concat(T,'[id="').concat(w,'"]'),G="";v!==void 0&&v.forEach(function(D){D.length>0&&(G+="".concat(D,","))}),u+="".concat(A).concat($,'{content:"').concat(G,'"}').concat(br)},p=0;p<d;p++)m(p);return u})(o)})}return e.registerId=function(t){return bt(t)},e.prototype.rehydrate=function(){!this.server&&Rt&&Kr(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(V(V({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new ta(o):n?new Jo(o):new ea(o)})(this.options),new jo(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(bt(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(bt(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(bt(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),na=/&/g,oa=/^\s*\/\/.*$/gm;function On(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=On(r.children,t)),r})}function aa(e){var t,r,n,o=We,i=o.options,l=i===void 0?We:i,d=o.plugins,u=d===void 0?Lt:d,m=function(w,v,A){return A.startsWith(r)&&A.endsWith(r)&&A.replaceAll(r,"").length>0?".".concat(t):w},p=u.slice();p.push(function(w){w.type===Ot&&w.value.includes("&")&&(w.props[0]=w.props[0].replace(na,r).replace(n,m))}),l.prefix&&p.push(Ro),p.push(Ao);var T=function(w,v,A,$){v===void 0&&(v=""),A===void 0&&(A=""),$===void 0&&($="&"),t=$,r=v,n=new RegExp("\\".concat(r,"\\b"),"g");var G=w.replace(oa,""),D=xo(A||v?"".concat(A," ").concat(v," { ").concat(G," }"):G);l.namespace&&(D=On(D,l.namespace));var P=[];return It(D,_o(p.concat(Io(function(_){return P.push(_)})))),P};return T.hash=u.length?u.reduce(function(w,v){return v.name||_e(15),Fe(w,v.name)},xn).toString():"",T}var ia=new Pn,dr=aa(),Nn=s.createContext({shouldForwardProp:void 0,styleSheet:ia,stylis:dr});Nn.Consumer;s.createContext(void 0);function Zr(){return s.useContext(Nn)}var sa=(function(){function e(t,r){var n=this;this.inject=function(o,i){i===void 0&&(i=dr);var l=n.name+i.hash;o.hasNameForId(n.id,l)||o.insertRules(n.id,l,i(n.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,vr(this,function(){throw _e(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=dr),this.name+t.hash},e})(),la=function(e){return e>="A"&&e<="Z"};function Qr(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;la(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var $n=function(e){return e==null||e===!1||e===""},Dn=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!$n(i)&&(Array.isArray(i)&&i.isCss||Ae(i)?n.push("".concat(Qr(o),":"),i,";"):st(i)?n.push.apply(n,_t(_t(["".concat(o," {")],Dn(i),!1),["}"],!1)):n.push("".concat(Qr(o),": ").concat((t=o,(r=i)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in ko||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Ce(e,t,r,n){if($n(e))return[];if(yr(e))return[".".concat(e.styledComponentId)];if(Ae(e)){if(!Ae(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return Ce(o,t,r,n)}var i;return e instanceof sa?r?(e.inject(r,n),[e.getName(n)]):[e]:st(e)?Dn(e):Array.isArray(e)?Array.prototype.concat.apply(Lt,e.map(function(l){return Ce(l,t,r,n)})):[e.toString()]}function ca(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ae(r)&&!yr(r))return!1}return!0}var ua=Cn(Mt),da=(function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&ca(t),this.componentId=r,this.baseHash=Fe(ua,r),this.baseStyle=n,Pn.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=we(o,this.staticRulesId);else{var i=qr(Ce(this.rules,t,r,n)),l=cr(Fe(this.baseHash,i)>>>0);if(!r.hasNameForId(this.componentId,l)){var d=n(i,".".concat(l),void 0,this.componentId);r.insertRules(this.componentId,l,d)}o=we(o,l),this.staticRulesId=l}else{for(var u=Fe(this.baseHash,n.hash),m="",p=0;p<this.rules.length;p++){var T=this.rules[p];if(typeof T=="string")m+=T;else if(T){var w=qr(Ce(T,t,r,n));u=Fe(u,w+p),m+=w}}if(m){var v=cr(u>>>0);r.hasNameForId(this.componentId,v)||r.insertRules(this.componentId,v,n(m,".".concat(v),void 0,this.componentId)),o=we(o,v)}}return o},e})(),Pt=s.createContext(void 0);Pt.Consumer;function fa(e){var t=s.useContext(Pt),r=s.useMemo(function(){return(function(n,o){if(!n)throw _e(14);if(Ae(n)){var i=n(o);return i}if(Array.isArray(n)||typeof n!="object")throw _e(8);return o?V(V({},o),n):n})(e.theme,t)},[e.theme,t]);return e.children?s.createElement(Pt.Provider,{value:r},e.children):null}var Jt={};function ma(e,t,r){var n=yr(e),o=e,i=!Qt(e),l=t.attrs,d=l===void 0?Lt:l,u=t.componentId,m=u===void 0?(function(b,R){var x=typeof b!="string"?"sc":Hr(b);Jt[x]=(Jt[x]||0)+1;var y="".concat(x,"-").concat(Mo(Mt+x+Jt[x]));return R?"".concat(R,"-").concat(y):y})(t.displayName,t.parentComponentId):u,p=t.displayName,T=p===void 0?(function(b){return Qt(b)?"styled.".concat(b):"Styled(".concat(Lo(b),")")})(e):p,w=t.displayName&&t.componentId?"".concat(Hr(t.displayName),"-").concat(t.componentId):t.componentId||m,v=n&&o.attrs?o.attrs.concat(d).filter(Boolean):d,A=t.shouldForwardProp;if(n&&o.shouldForwardProp){var $=o.shouldForwardProp;if(t.shouldForwardProp){var G=t.shouldForwardProp;A=function(b,R){return $(b,R)&&G(b,R)}}else A=$}var D=new da(r,w,n?o.componentStyle:void 0);function P(b,R){return(function(x,y,he){var Ie=x.attrs,Ft=x.componentStyle,U=x.defaultProps,je=x.foldedComponentIds,Ye=x.styledComponentId,qe=x.target,zt=s.useContext(Pt),Bt=Zr(),Ke=x.shouldForwardProp||Bt.shouldForwardProp,Xe=Oo(y,zt,U)||We,J=(function(I,te,pe){for(var ge,re=V(V({},te),{className:void 0,theme:pe}),ke=0;ke<I.length;ke+=1){var Ee=Ae(ge=I[ke])?ge(re):ge;for(var j in Ee)re[j]=j==="className"?we(re[j],Ee[j]):j==="style"?V(V({},re[j]),Ee[j]):Ee[j]}return te.className&&(re.className=we(re.className,te.className)),re})(Ie,y,Xe),ve=J.as||qe,O={};for(var ee in J)J[ee]===void 0||ee[0]==="$"||ee==="as"||ee==="theme"&&J.theme===Xe||(ee==="forwardedAs"?O.as=J.forwardedAs:Ke&&!Ke(ee,ve)||(O[ee]=J[ee]));var M=(function(I,te){var pe=Zr(),ge=I.generateAndInjectStyles(te,pe.styleSheet,pe.stylis);return ge})(Ft,J),Re=we(je,Ye);return M&&(Re+=" "+M),J.className&&(Re+=" "+J.className),O[Qt(ve)&&!wn.has(ve)?"class":"className"]=Re,he&&(O.ref=he),s.createElement(ve,O)})(_,b,R)}P.displayName=T;var _=s.forwardRef(P);return _.attrs=v,_.componentStyle=D,_.displayName=T,_.shouldForwardProp=A,_.foldedComponentIds=n?we(o.foldedComponentIds,o.styledComponentId):"",_.styledComponentId=w,_.target=n?o.target:e,Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(b){this._foldedDefaultProps=n?(function(R){for(var x=[],y=1;y<arguments.length;y++)x[y-1]=arguments[y];for(var he=0,Ie=x;he<Ie.length;he++)ur(R,Ie[he],!0);return R})({},o.defaultProps,b):b}}),vr(_,function(){return".".concat(_.styledComponentId)}),i&&Rn(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function Jr(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var en=function(e){return Object.assign(e,{isCss:!0})};function ha(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ae(e)||st(e))return en(Ce(Jr(Lt,_t([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?Ce(n):en(Ce(Jr(n,t)))}function fr(e,t,r){if(r===void 0&&(r=We),!t)throw _e(1,t);var n=function(o){for(var i=[],l=1;l<arguments.length;l++)i[l-1]=arguments[l];return e(t,r,ha.apply(void 0,_t([o],i,!1)))};return n.attrs=function(o){return fr(e,t,V(V({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return fr(e,t,V(V({},r),o))},n}var Mn=function(e){return fr(ma,e)},S=Mn;wn.forEach(function(e){S[e]=Mn(e)});const ye={primary:"#422ad5",primaryContent:"#e0e7ff",secondary:"#f43098",secondaryContent:"#f9e4f0",accent:"#00d3bb",accentContent:"#084d49",neutral:"#09090b",neutralContent:"#e4e4e7",base100:"#ffffff",base200:"#f8f8f8",base300:"#eeeeee",baseContent:"#18181b",info:"#00bafe",infoContent:"#042e49",success:"#00d390",successContent:"#004c39",warning:"#fcb700",warningContent:"#793205",error:"#ff627d",errorContent:"#4d0218",radiusSelectors:"0.25rem",radiusField:"0.25rem",radiusBox:"0.25rem",borderWidth:"1px",fontSize:"1rem",sizeField:".3rem",sizeSelector:".3rem",allFieldsSize:"20rem",spacing:".3rem",depth:1},pa={selectedVariant:"primary",getDefaultVariantOrSelected:()=>"primary",...ye},Ln=s.createContext({...ye,...pa}),ga=S.div`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),lo=require("react-dom");var pt={},zr;function co(){if(zr)return pt;zr=1;var e=lo;return pt.createRoot=e.createRoot,pt.hydrateRoot=e.hydrateRoot,pt}var uo=co(),V=function(){return V=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},V.apply(this,arguments)};function _t(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var k="-ms-",it="-moz-",C="-webkit-",hn="comm",Ot="rule",pr="decl",fo="@import",pn="@keyframes",mo="@layer",gn=Math.abs,gr=String.fromCharCode,ir=Object.assign;function ho(e,t){return B(e,0)^45?(((t<<2^B(e,0))<<2^B(e,1))<<2^B(e,2))<<2^B(e,3):0}function bn(e){return e.trim()}function fe(e,t){return(e=t.exec(e))?e[0]:e}function g(e,t,r){return e.replace(t,r)}function St(e,t,r){return e.indexOf(t,r)}function B(e,t){return e.charCodeAt(t)|0}function ze(e,t,r){return e.slice(t,r)}function ie(e){return e.length}function yn(e){return e.length}function ot(e,t){return t.push(e),e}function po(e,t){return e.map(t).join("")}function Br(e,t){return e.filter(function(r){return!fe(r,t)})}var Nt=1,Be=1,vn=0,Z=0,F=0,Ve="";function $t(e,t,r,n,o,i,l,d){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Nt,column:Be,length:l,return:"",siblings:d}}function be(e,t){return ir($t("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Me(e){for(;e.root;)e=be(e.root,{children:[e]});ot(e,e.siblings)}function go(){return F}function bo(){return F=Z>0?B(Ve,--Z):0,Be--,F===10&&(Be=1,Nt--),F}function oe(){return F=Z<vn?B(Ve,Z++):0,Be++,F===10&&(Be=1,Nt++),F}function we(){return B(Ve,Z)}function Tt(){return Z}function Dt(e,t){return ze(Ve,e,t)}function sr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function yo(e){return Nt=Be=1,vn=ie(Ve=e),Z=0,[]}function vo(e){return Ve="",e}function Xt(e){return bn(Dt(Z-1,lr(e===91?e+2:e===40?e+1:e)))}function Eo(e){for(;(F=we())&&F<33;)oe();return sr(e)>2||sr(F)>3?"":" "}function So(e,t){for(;--t&&oe()&&!(F<48||F>102||F>57&&F<65||F>70&&F<97););return Dt(e,Tt()+(t<6&&we()==32&&oe()==32))}function lr(e){for(;oe();)switch(F){case e:return Z;case 34:case 39:e!==34&&e!==39&&lr(F);break;case 40:e===41&&lr(e);break;case 92:oe();break}return Z}function To(e,t){for(;oe()&&e+F!==57;)if(e+F===84&&we()===47)break;return"/*"+Dt(t,Z-1)+"*"+gr(e===47?e:oe())}function wo(e){for(;!sr(we());)oe();return Dt(e,Z)}function xo(e){return vo(wt("",null,null,null,[""],e=yo(e),0,[0],e))}function wt(e,t,r,n,o,i,l,d,u){for(var m=0,p=0,T=l,w=0,v=0,A=0,$=1,G=1,D=1,P=0,_="",b=o,R=i,x=n,y=_;G;)switch(A=P,P=oe()){case 40:if(A!=108&&B(y,T-1)==58){St(y+=g(Xt(P),"&","&\f"),"&\f",gn(m?d[m-1]:0))!=-1&&(D=-1);break}case 34:case 39:case 91:y+=Xt(P);break;case 9:case 10:case 13:case 32:y+=Eo(A);break;case 92:y+=So(Tt()-1,7);continue;case 47:switch(we()){case 42:case 47:ot(Co(To(oe(),Tt()),t,r,u),u);break;default:y+="/"}break;case 123*$:d[m++]=ie(y)*D;case 125*$:case 59:case 0:switch(P){case 0:case 125:G=0;case 59+p:D==-1&&(y=g(y,/\f/g,"")),v>0&&ie(y)-T&&ot(v>32?Wr(y+";",n,r,T-1,u):Wr(g(y," ","")+";",n,r,T-2,u),u);break;case 59:y+=";";default:if(ot(x=Ur(y,t,r,m,p,o,d,_,b=[],R=[],T,i),i),P===123)if(p===0)wt(y,t,x,x,b,i,T,d,R);else switch(w===99&&B(y,3)===110?100:w){case 100:case 108:case 109:case 115:wt(e,x,x,n&&ot(Ur(e,x,x,0,0,o,d,_,o,b=[],T,R),R),o,R,T,d,n?b:R);break;default:wt(y,x,x,x,[""],R,0,d,R)}}m=p=v=0,$=D=1,_=y="",T=l;break;case 58:T=1+ie(y),v=A;default:if($<1){if(P==123)--$;else if(P==125&&$++==0&&bo()==125)continue}switch(y+=gr(P),P*$){case 38:D=p>0?1:(y+="\f",-1);break;case 44:d[m++]=(ie(y)-1)*D,D=1;break;case 64:we()===45&&(y+=Xt(oe())),w=we(),p=T=ie(_=y+=wo(Tt())),P++;break;case 45:A===45&&ie(y)==2&&($=0)}}return i}function Ur(e,t,r,n,o,i,l,d,u,m,p,T){for(var w=o-1,v=o===0?i:[""],A=yn(v),$=0,G=0,D=0;$<n;++$)for(var P=0,_=ze(e,w+1,w=gn(G=l[$])),b=e;P<A;++P)(b=bn(G>0?v[P]+" "+_:g(_,/&\f/g,v[P])))&&(u[D++]=b);return $t(e,t,r,o===0?Ot:d,u,m,p,T)}function Co(e,t,r,n){return $t(e,t,r,hn,gr(go()),ze(e,2,-2),0,n)}function Wr(e,t,r,n,o){return $t(e,t,r,pr,ze(e,0,n),ze(e,n+1,-1),n,o)}function En(e,t,r){switch(ho(e,t)){case 5103:return C+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return C+e+e;case 4789:return it+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return C+e+it+e+k+e+e;case 5936:switch(B(e,t+11)){case 114:return C+e+k+g(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return C+e+k+g(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return C+e+k+g(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return C+e+k+e+e;case 6165:return C+e+k+"flex-"+e+e;case 5187:return C+e+g(e,/(\w+).+(:[^]+)/,C+"box-$1$2"+k+"flex-$1$2")+e;case 5443:return C+e+k+"flex-item-"+g(e,/flex-|-self/g,"")+(fe(e,/flex-|baseline/)?"":k+"grid-row-"+g(e,/flex-|-self/g,""))+e;case 4675:return C+e+k+"flex-line-pack"+g(e,/align-content|flex-|-self/g,"")+e;case 5548:return C+e+k+g(e,"shrink","negative")+e;case 5292:return C+e+k+g(e,"basis","preferred-size")+e;case 6060:return C+"box-"+g(e,"-grow","")+C+e+k+g(e,"grow","positive")+e;case 4554:return C+g(e,/([^-])(transform)/g,"$1"+C+"$2")+e;case 6187:return g(g(g(e,/(zoom-|grab)/,C+"$1"),/(image-set)/,C+"$1"),e,"")+e;case 5495:case 3959:return g(e,/(image-set\([^]*)/,C+"$1$`$1");case 4968:return g(g(e,/(.+:)(flex-)?(.*)/,C+"box-pack:$3"+k+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+C+e+e;case 4200:if(!fe(e,/flex-|baseline/))return k+"grid-column-align"+ze(e,t)+e;break;case 2592:case 3360:return k+g(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,fe(n.props,/grid-\w+-end/)})?~St(e+(r=r[t].value),"span",0)?e:k+g(e,"-start","")+e+k+"grid-row-span:"+(~St(r,"span",0)?fe(r,/\d+/):+fe(r,/\d+/)-+fe(e,/\d+/))+";":k+g(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return fe(n.props,/grid-\w+-start/)})?e:k+g(g(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return g(e,/(.+)-inline(.+)/,C+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ie(e)-1-t>6)switch(B(e,t+1)){case 109:if(B(e,t+4)!==45)break;case 102:return g(e,/(.+:)(.+)-([^]+)/,"$1"+C+"$2-$3$1"+it+(B(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~St(e,"stretch",0)?En(g(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return g(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,i,l,d,u,m){return k+o+":"+i+m+(l?k+o+"-span:"+(d?u:+u-+i)+m:"")+e});case 4949:if(B(e,t+6)===121)return g(e,":",":"+C)+e;break;case 6444:switch(B(e,B(e,14)===45?18:11)){case 120:return g(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+C+(B(e,14)===45?"inline-":"")+"box$3$1"+C+"$2$3$1"+k+"$2box$3")+e;case 100:return g(e,":",":"+k)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return g(e,"scroll-","scroll-snap-")+e}return e}function It(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Ao(e,t,r,n){switch(e.type){case mo:if(e.children.length)break;case fo:case pr:return e.return=e.return||e.value;case hn:return"";case pn:return e.return=e.value+"{"+It(e.children,n)+"}";case Ot:if(!ie(e.value=e.props.join(",")))return""}return ie(r=It(e.children,n))?e.return=e.value+"{"+r+"}":""}function _o(e){var t=yn(e);return function(r,n,o,i){for(var l="",d=0;d<t;d++)l+=e[d](r,n,o,i)||"";return l}}function Io(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ro(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case pr:e.return=En(e.value,e.length,r);return;case pn:return It([be(e,{value:g(e.value,"@","@"+C)})],n);case Ot:if(e.length)return po(r=e.props,function(o){switch(fe(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Me(be(e,{props:[g(o,/:(read-\w+)/,":"+it+"$1")]})),Me(be(e,{props:[o]})),ir(e,{props:Br(r,n)});break;case"::placeholder":Me(be(e,{props:[g(o,/:(plac\w+)/,":"+C+"input-$1")]})),Me(be(e,{props:[g(o,/:(plac\w+)/,":"+it+"$1")]})),Me(be(e,{props:[g(o,/:(plac\w+)/,k+"input-$1")]})),Me(be(e,{props:[o]})),ir(e,{props:Br(r,n)});break}return""})}}var ko={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ue=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Sn="active",Tn="data-styled-version",Mt="6.1.19",br=`/*!sc*/
2
+ `,Rt=typeof window<"u"&&typeof document<"u",Po=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""&&process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY),Lt=Object.freeze([]),We=Object.freeze({});function Oo(e,t,r){return r===void 0&&(r=We),e.theme!==r.theme&&e.theme||t||r.theme}var wn=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),No=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,$o=/(^-|-$)/g;function Hr(e){return e.replace(No,"-").replace($o,"")}var Do=/(a)(d)/gi,gt=52,Vr=function(e){return String.fromCharCode(e+(e>25?39:97))};function cr(e){var t,r="";for(t=Math.abs(e);t>gt;t=t/gt|0)r=Vr(t%gt)+r;return(Vr(t%gt)+r).replace(Do,"$1-$2")}var Zt,xn=5381,Le=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Cn=function(e){return Le(xn,e)};function Mo(e){return cr(Cn(e)>>>0)}function Lo(e){return e.displayName||e.name||"Component"}function Qt(e){return typeof e=="string"&&!0}var An=typeof Symbol=="function"&&Symbol.for,_n=An?Symbol.for("react.memo"):60115,Fo=An?Symbol.for("react.forward_ref"):60112,zo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Bo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},In={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Uo=((Zt={})[Fo]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Zt[_n]=In,Zt);function Gr(e){return("type"in(t=e)&&t.type.$$typeof)===_n?In:"$$typeof"in e?Uo[e.$$typeof]:zo;var t}var Wo=Object.defineProperty,Ho=Object.getOwnPropertyNames,jr=Object.getOwnPropertySymbols,Vo=Object.getOwnPropertyDescriptor,Go=Object.getPrototypeOf,Yr=Object.prototype;function Rn(e,t,r){if(typeof t!="string"){if(Yr){var n=Go(t);n&&n!==Yr&&Rn(e,n,r)}var o=Ho(t);jr&&(o=o.concat(jr(t)));for(var i=Gr(e),l=Gr(t),d=0;d<o.length;++d){var u=o[d];if(!(u in Bo||r&&r[u]||l&&u in l||i&&u in i)){var m=Vo(t,u);try{Wo(e,u,m)}catch{}}}}return e}function Ce(e){return typeof e=="function"}function yr(e){return typeof e=="object"&&"styledComponentId"in e}function Te(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function qr(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function st(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ur(e,t,r){if(r===void 0&&(r=!1),!r&&!st(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=ur(e[n],t[n]);else if(st(t))for(var n in t)e[n]=ur(e[n],t[n]);return e}function vr(e,t){Object.defineProperty(e,"toString",{value:t})}function Ae(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var jo=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,i=o;t>=i;)if((i<<=1)<0)throw Ae(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var l=o;l<i;l++)this.groupSizes[l]=0}for(var d=this.indexOfGroup(t+1),u=(l=0,r.length);l<u;l++)this.tag.insertRule(d,r[l])&&(this.groupSizes[t]++,d++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var i=n;i<o;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),i=o+n,l=o;l<i;l++)r+="".concat(this.tag.getRule(l)).concat(br);return r},e})(),xt=new Map,kt=new Map,Ct=1,bt=function(e){if(xt.has(e))return xt.get(e);for(;kt.has(Ct);)Ct++;var t=Ct++;return xt.set(e,t),kt.set(t,e),t},Yo=function(e,t){Ct=t+1,xt.set(e,t),kt.set(t,e)},qo="style[".concat(Ue,"][").concat(Tn,'="').concat(Mt,'"]'),Ko=new RegExp("^".concat(Ue,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Xo=function(e,t,r){for(var n,o=r.split(","),i=0,l=o.length;i<l;i++)(n=o[i])&&e.registerName(t,n)},Zo=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(br),o=[],i=0,l=n.length;i<l;i++){var d=n[i].trim();if(d){var u=d.match(Ko);if(u){var m=0|parseInt(u[1],10),p=u[2];m!==0&&(Yo(p,m),Xo(e,p,u[3]),e.getTag().insertRules(m,o)),o.length=0}else o.push(d)}}},Kr=function(e){for(var t=document.querySelectorAll(qo),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Ue)!==Sn&&(Zo(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Qo(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var kn=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=(function(d){var u=Array.from(d.querySelectorAll("style[".concat(Ue,"]")));return u[u.length-1]})(r),i=o!==void 0?o.nextSibling:null;n.setAttribute(Ue,Sn),n.setAttribute(Tn,Mt);var l=Qo();return l&&n.setAttribute("nonce",l),r.insertBefore(n,i),n},Jo=(function(){function e(t){this.element=kn(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,i=n.length;o<i;o++){var l=n[o];if(l.ownerNode===r)return l}throw Ae(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e})(),ea=(function(){function e(t){this.element=kn(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),ta=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Xr=Rt,ra={isServer:!Rt,useCSSOMInjection:!Po},Pn=(function(){function e(t,r,n){t===void 0&&(t=We),r===void 0&&(r={});var o=this;this.options=V(V({},ra),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&Rt&&Xr&&(Xr=!1,Kr(this)),vr(this,function(){return(function(i){for(var l=i.getTag(),d=l.length,u="",m=function(T){var w=(function(D){return kt.get(D)})(T);if(w===void 0)return"continue";var v=i.names.get(w),A=l.getGroup(T);if(v===void 0||!v.size||A.length===0)return"continue";var $="".concat(Ue,".g").concat(T,'[id="').concat(w,'"]'),G="";v!==void 0&&v.forEach(function(D){D.length>0&&(G+="".concat(D,","))}),u+="".concat(A).concat($,'{content:"').concat(G,'"}').concat(br)},p=0;p<d;p++)m(p);return u})(o)})}return e.registerId=function(t){return bt(t)},e.prototype.rehydrate=function(){!this.server&&Rt&&Kr(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(V(V({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new ta(o):n?new Jo(o):new ea(o)})(this.options),new jo(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(bt(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(bt(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(bt(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),na=/&/g,oa=/^\s*\/\/.*$/gm;function On(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=On(r.children,t)),r})}function aa(e){var t,r,n,o=We,i=o.options,l=i===void 0?We:i,d=o.plugins,u=d===void 0?Lt:d,m=function(w,v,A){return A.startsWith(r)&&A.endsWith(r)&&A.replaceAll(r,"").length>0?".".concat(t):w},p=u.slice();p.push(function(w){w.type===Ot&&w.value.includes("&")&&(w.props[0]=w.props[0].replace(na,r).replace(n,m))}),l.prefix&&p.push(Ro),p.push(Ao);var T=function(w,v,A,$){v===void 0&&(v=""),A===void 0&&(A=""),$===void 0&&($="&"),t=$,r=v,n=new RegExp("\\".concat(r,"\\b"),"g");var G=w.replace(oa,""),D=xo(A||v?"".concat(A," ").concat(v," { ").concat(G," }"):G);l.namespace&&(D=On(D,l.namespace));var P=[];return It(D,_o(p.concat(Io(function(_){return P.push(_)})))),P};return T.hash=u.length?u.reduce(function(w,v){return v.name||Ae(15),Le(w,v.name)},xn).toString():"",T}var ia=new Pn,dr=aa(),Nn=s.createContext({shouldForwardProp:void 0,styleSheet:ia,stylis:dr});Nn.Consumer;s.createContext(void 0);function Zr(){return s.useContext(Nn)}var sa=(function(){function e(t,r){var n=this;this.inject=function(o,i){i===void 0&&(i=dr);var l=n.name+i.hash;o.hasNameForId(n.id,l)||o.insertRules(n.id,l,i(n.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,vr(this,function(){throw Ae(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=dr),this.name+t.hash},e})(),la=function(e){return e>="A"&&e<="Z"};function Qr(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;la(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var $n=function(e){return e==null||e===!1||e===""},Dn=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!$n(i)&&(Array.isArray(i)&&i.isCss||Ce(i)?n.push("".concat(Qr(o),":"),i,";"):st(i)?n.push.apply(n,_t(_t(["".concat(o," {")],Dn(i),!1),["}"],!1)):n.push("".concat(Qr(o),": ").concat((t=o,(r=i)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in ko||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function xe(e,t,r,n){if($n(e))return[];if(yr(e))return[".".concat(e.styledComponentId)];if(Ce(e)){if(!Ce(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return xe(o,t,r,n)}var i;return e instanceof sa?r?(e.inject(r,n),[e.getName(n)]):[e]:st(e)?Dn(e):Array.isArray(e)?Array.prototype.concat.apply(Lt,e.map(function(l){return xe(l,t,r,n)})):[e.toString()]}function ca(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ce(r)&&!yr(r))return!1}return!0}var ua=Cn(Mt),da=(function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&ca(t),this.componentId=r,this.baseHash=Le(ua,r),this.baseStyle=n,Pn.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=Te(o,this.staticRulesId);else{var i=qr(xe(this.rules,t,r,n)),l=cr(Le(this.baseHash,i)>>>0);if(!r.hasNameForId(this.componentId,l)){var d=n(i,".".concat(l),void 0,this.componentId);r.insertRules(this.componentId,l,d)}o=Te(o,l),this.staticRulesId=l}else{for(var u=Le(this.baseHash,n.hash),m="",p=0;p<this.rules.length;p++){var T=this.rules[p];if(typeof T=="string")m+=T;else if(T){var w=qr(xe(T,t,r,n));u=Le(u,w+p),m+=w}}if(m){var v=cr(u>>>0);r.hasNameForId(this.componentId,v)||r.insertRules(this.componentId,v,n(m,".".concat(v),void 0,this.componentId)),o=Te(o,v)}}return o},e})(),Pt=s.createContext(void 0);Pt.Consumer;function fa(e){var t=s.useContext(Pt),r=s.useMemo(function(){return(function(n,o){if(!n)throw Ae(14);if(Ce(n)){var i=n(o);return i}if(Array.isArray(n)||typeof n!="object")throw Ae(8);return o?V(V({},o),n):n})(e.theme,t)},[e.theme,t]);return e.children?s.createElement(Pt.Provider,{value:r},e.children):null}var Jt={};function ma(e,t,r){var n=yr(e),o=e,i=!Qt(e),l=t.attrs,d=l===void 0?Lt:l,u=t.componentId,m=u===void 0?(function(b,R){var x=typeof b!="string"?"sc":Hr(b);Jt[x]=(Jt[x]||0)+1;var y="".concat(x,"-").concat(Mo(Mt+x+Jt[x]));return R?"".concat(R,"-").concat(y):y})(t.displayName,t.parentComponentId):u,p=t.displayName,T=p===void 0?(function(b){return Qt(b)?"styled.".concat(b):"Styled(".concat(Lo(b),")")})(e):p,w=t.displayName&&t.componentId?"".concat(Hr(t.displayName),"-").concat(t.componentId):t.componentId||m,v=n&&o.attrs?o.attrs.concat(d).filter(Boolean):d,A=t.shouldForwardProp;if(n&&o.shouldForwardProp){var $=o.shouldForwardProp;if(t.shouldForwardProp){var G=t.shouldForwardProp;A=function(b,R){return $(b,R)&&G(b,R)}}else A=$}var D=new da(r,w,n?o.componentStyle:void 0);function P(b,R){return(function(x,y,he){var _e=x.attrs,Ft=x.componentStyle,U=x.defaultProps,je=x.foldedComponentIds,Ye=x.styledComponentId,qe=x.target,zt=s.useContext(Pt),Bt=Zr(),Ke=x.shouldForwardProp||Bt.shouldForwardProp,Xe=Oo(y,zt,U)||We,J=(function(I,te,pe){for(var ge,re=V(V({},te),{className:void 0,theme:pe}),Re=0;Re<I.length;Re+=1){var ve=Ce(ge=I[Re])?ge(re):ge;for(var j in ve)re[j]=j==="className"?Te(re[j],ve[j]):j==="style"?V(V({},re[j]),ve[j]):ve[j]}return te.className&&(re.className=Te(re.className,te.className)),re})(_e,y,Xe),ye=J.as||qe,O={};for(var ee in J)J[ee]===void 0||ee[0]==="$"||ee==="as"||ee==="theme"&&J.theme===Xe||(ee==="forwardedAs"?O.as=J.forwardedAs:Ke&&!Ke(ee,ye)||(O[ee]=J[ee]));var M=(function(I,te){var pe=Zr(),ge=I.generateAndInjectStyles(te,pe.styleSheet,pe.stylis);return ge})(Ft,J),Ie=Te(je,Ye);return M&&(Ie+=" "+M),J.className&&(Ie+=" "+J.className),O[Qt(ye)&&!wn.has(ye)?"class":"className"]=Ie,he&&(O.ref=he),s.createElement(ye,O)})(_,b,R)}P.displayName=T;var _=s.forwardRef(P);return _.attrs=v,_.componentStyle=D,_.displayName=T,_.shouldForwardProp=A,_.foldedComponentIds=n?Te(o.foldedComponentIds,o.styledComponentId):"",_.styledComponentId=w,_.target=n?o.target:e,Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(b){this._foldedDefaultProps=n?(function(R){for(var x=[],y=1;y<arguments.length;y++)x[y-1]=arguments[y];for(var he=0,_e=x;he<_e.length;he++)ur(R,_e[he],!0);return R})({},o.defaultProps,b):b}}),vr(_,function(){return".".concat(_.styledComponentId)}),i&&Rn(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function Jr(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var en=function(e){return Object.assign(e,{isCss:!0})};function ha(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ce(e)||st(e))return en(xe(Jr(Lt,_t([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?xe(n):en(xe(Jr(n,t)))}function fr(e,t,r){if(r===void 0&&(r=We),!t)throw Ae(1,t);var n=function(o){for(var i=[],l=1;l<arguments.length;l++)i[l-1]=arguments[l];return e(t,r,ha.apply(void 0,_t([o],i,!1)))};return n.attrs=function(o){return fr(e,t,V(V({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return fr(e,t,V(V({},r),o))},n}var Mn=function(e){return fr(ma,e)},S=Mn;wn.forEach(function(e){S[e]=Mn(e)});const Fe={primary:"#422ad5",primaryContent:"#e0e7ff",secondary:"#f43098",secondaryContent:"#f9e4f0",accent:"#00d3bb",accentContent:"#084d49",neutral:"#09090b",neutralContent:"#e4e4e7",base100:"#ffffff",base200:"#f8f8f8",base300:"#eeeeee",baseContent:"#18181b",info:"#00bafe",infoContent:"#042e49",success:"#00d390",successContent:"#004c39",warning:"#fcb700",warningContent:"#793205",error:"#ff627d",errorContent:"#4d0218",radiusSelectors:"0.25rem",radiusField:"0.25rem",radiusBox:"0.25rem",borderWidth:"1px",fontSize:"1rem",sizeField:".3rem",sizeSelector:".3rem",allFieldsSize:"20rem",spacing:".3rem",depth:1},pa={selectedVariant:"primary",getDefaultVariantOrSelected:()=>"primary",...Fe},Ln=s.createContext({...Fe,...pa}),ga=S.div`
3
3
  font-family:
4
4
  ui-sans-serif,
5
5
  system-ui,
@@ -50,7 +50,7 @@
50
50
  --depth: ${e=>e.$theme.depth};
51
51
  --spacing: ${e=>e.$theme.spacing};
52
52
  --all-fields-size: ${e=>e.$theme.allFieldsSize};
53
- `,Er=e=>{const t=e.selectedVariant??"primary";return console.log("ThemeProvider_theme",e.theme??ye),s.createElement(fa,{theme:e.theme??ye,children:s.createElement(ga,{$theme:e.theme??ye,children:s.createElement(Ln.Provider,{value:{selectedVariant:t,getDefaultVariantOrSelected:()=>t,...e.theme??ye},children:e.children})})})},Fn=()=>s.useContext(Ln),me=e=>{const{getDefaultVariantOrSelected:t}=Fn(),r=t();return ye[e??r]},zn=e=>{const{getDefaultVariantOrSelected:t}=Fn(),r=t(),n=e?`${e}Content`:`${r}Content`;return ye[n]},ba=()=>{const e="http://localhost:4000/external",t=async r=>{const n=await r;if(!n.ok)switch(n.status){case 404:throw new Error("Not found");case 400:throw new Error("Bad request");default:throw new Error("Unknown error")}return(await r).json()};return{post:async(r,n,o)=>{var i;try{return t(fetch(`${e}${r}`,{method:"POST",body:JSON.stringify(n),signal:((i=o==null?void 0:o.abortController)==null?void 0:i.signal)??null,headers:{"Content-Type":"application/json",...(o==null?void 0:o.headers)??{}}}))}catch(l){throw console.log(l),l}},get:async(r,n)=>{var o;try{return t(fetch(`${e}${r}`,{method:"GET",signal:((o=n==null?void 0:n.abortController)==null?void 0:o.signal)??null,headers:{"Content-Type":"application/json",...(n==null?void 0:n.headers)??{}}}))}catch(i){throw console.log(i),i}}}},tn={meta:{name:"asd"},steps:[{title:"Overall altitude",meta:{name:"overall"},fields:[{type:"matrix",meta:{name:"asd",fieldKey:"recommendationChance"},validations:{required:!0},label:{default:"How likely are you to recommend this company to a friend or colleague?"},max:10},{type:"radio-group",meta:{name:"asd",fieldKey:"satisfactionLevel"},label:{default:"Overall, how satisfied or dissatisfied are you with our company?"},validations:{required:!0},options:[{label:"Very satisfied",id:"1"},{label:"Somewhat satisfied",id:"2"},{label:"Neither satisfied nor dissatisfied",id:"3"},{label:"Somewhat dissatisfied",id:"4"},{label:"Very dissatisfied",id:"5"}]},{type:"rating",icon:"star2",max:5,meta:{name:"asd",fieldKey:"satisfactionRating"},label:{default:"What is your general satisfaction?"},validations:{required:!0}}]},{meta:{name:"products"},title:"Product questions",fields:[{type:"checkbox-group",meta:{name:"asd",fieldKey:"productDescribeWords"},label:{default:"Which of the following words best describes your experience with our products?"},validations:{required:!0},options:[{label:"Reliable",id:"1"},{label:"High quality",id:"2"},{label:"Useful",id:"3"},{label:"Unique",id:"4"},{label:"Value for money",id:"5"},{label:"Overpriced",id:"6"},{label:"Ineffective",id:"7"},{label:"Poor quality",id:"8"},{label:"Unreliable",id:"9"}]},{type:"radio-group",meta:{name:"asd",fieldKey:"productExpectations"},label:{default:"How well products meet your expectations?"},validations:{required:!0},options:[{label:"Extremely well",id:"1"},{label:"Well",id:"2"},{label:"Somewhat well",id:"3"},{label:"Not well",id:"4"},{label:"Not at all well",id:"5"}]},{type:"matrix",meta:{name:"asd",fieldKey:"productQuality"},label:{default:"How would you rate the quality of our products?"},validations:{required:!0},max:10,minText:"Poor quality",maxText:"Good quality"}]},{meta:{name:"final-questions"},title:"Final questions",fields:[{type:"range-slide",defaultValue:77,meta:{name:"asd",fieldKey:"productsImpressionLevel"},label:{default:"What is your overall impression level of our products?"}},{type:"rating",icon:"heart",max:5,meta:{name:"asd",fieldKey:"productExpectations"},label:{default:"Do you like our service and products?"},validations:{required:!0}},{type:"select",meta:{name:"asd",fieldKey:"fromWhereDidYouHearAboutUs"},label:{default:"From where did you hear about us?"},validations:{required:!0},options:[{label:"Facebook",id:"1"},{label:"Instagram",id:"2"},{label:"Google search",id:"3"},{label:"AD",id:"4"},{label:"Other",id:"5"}]},{type:"textarea",meta:{name:"asd",fieldKey:"lastComments"},validations:{required:!1},label:{values:[{conditions:[{fieldName:"satisfactionRating",lessThan:4}],value:"How can we improve our service? (optional)"}],default:"What you would like to tell us about your experience with this company? (optional)?"}}]}]},ya=(e,t)=>new Promise(r=>{r({id:"",domainId:"",attributes:{theme:{},useSystemTheme:!0,variant:"primary"},popupForm:{meta:{name:"popupForm"},config:{canReturnToPreviousStep:!0,nextButtonText:"Next",previousButtonText:"Previous",submitButtonText:"Submit",formTitle:"We are looking forward to hear from you!",buttonText:"Feedback"},styles:{left:null,top:0,bottom:-20,right:0},form:tn},inlineForm:{meta:{name:"asd"},config:{canReturnToPreviousStep:!0,nextButtonText:"Next",previousButtonText:"Previous",submitButtonText:"Submit",formTitle:"We are looking forward to hear from you!"},form:tn}})}),va=e=>{const[t,r]=s.useState(),[n,o]=s.useState(!0),[i,l]=s.useState(null);return s.useEffect(()=>{const d=new AbortController;return o(!0),e(d).then(r).catch(l).finally(()=>o(!1)),()=>{d.abort()}},[]),{data:t,loading:n,error:i}},He=S.button(e=>{const t=me(),r=zn(),o=!e.$outlined?t:"#fff",i=e.$outlined?t:r,l=e.$outlined?i:o,d=`calc(${e.theme.sizeField} * 10)`;return{borderRadius:e.theme.radiusField,borderColor:e.disabled?"#cfcfcf":l,borderStyle:e.$dashed?"dashed":"solid",cursor:"pointer",boxShadow:"inset 0 0 20px 20px transparent",height:d,fontWeight:"600",opacity:e.disabled?.5:1,paddingInline:"1.2rem",transition:"all 0.2s ease-in-out",background:e.disabled?"#cfcfcf":o,borderWidth:e.theme.borderWidth,userSelect:e.disabled?"none":void 0,color:e.disabled?"#888888":i,"&:active":{transform:e.disabled?void 0:"scale(0.97)"},"&:hover":{opacity:e.disabled?void 0:.8,cursor:e.disabled?"auto":"pointer",boxShadow:e.disabled?void 0:"inset 0 0 20px 20px #00000017"},"@media (max-width: 900px)":{paddingInline:"0.5rem"},"@media (max-width: 700px)":{paddingInline:"0.7rem"},"@media (max-width: 400px)":{paddingInline:"0.7rem"}}}),Ea=S.div`
53
+ `,Er=e=>{const t=e.selectedVariant??"primary";return console.log("ThemeProvider_theme",e.theme??Fe),s.createElement(fa,{theme:e.theme??Fe,children:s.createElement(ga,{$theme:e.theme??Fe,children:s.createElement(Ln.Provider,{value:{selectedVariant:t,getDefaultVariantOrSelected:()=>t,...e.theme??Fe},children:e.children})})})},Fn=()=>s.useContext(Ln),me=e=>{const{getDefaultVariantOrSelected:t,...r}=Fn(),n=t();return r[e??n]},zn=e=>{const{getDefaultVariantOrSelected:t,...r}=Fn(),n=t(),o=e?`${e}Content`:`${n}Content`;return r[o]},ba=()=>{const e="http://localhost:4000/external",t=async r=>{const n=await r;if(!n.ok)switch(n.status){case 404:throw new Error("Not found");case 400:throw new Error("Bad request");default:throw new Error("Unknown error")}return(await r).json()};return{post:async(r,n,o)=>{var i;try{return t(fetch(`${e}${r}`,{method:"POST",body:JSON.stringify(n),signal:((i=o==null?void 0:o.abortController)==null?void 0:i.signal)??null,headers:{"Content-Type":"application/json",...(o==null?void 0:o.headers)??{}}}))}catch(l){throw console.log(l),l}},get:async(r,n)=>{var o;try{return t(fetch(`${e}${r}`,{method:"GET",signal:((o=n==null?void 0:n.abortController)==null?void 0:o.signal)??null,headers:{"Content-Type":"application/json",...(n==null?void 0:n.headers)??{}}}))}catch(i){throw console.log(i),i}}}},tn={meta:{name:"asd"},steps:[{title:"Overall altitude",meta:{name:"overall"},fields:[{type:"matrix",meta:{name:"asd",fieldKey:"recommendationChance"},validations:{required:!0},label:{default:"How likely are you to recommend this company to a friend or colleague?"},max:10},{type:"radio-group",meta:{name:"asd",fieldKey:"satisfactionLevel"},label:{default:"Overall, how satisfied or dissatisfied are you with our company?"},validations:{required:!0},options:[{label:"Very satisfied",id:"1"},{label:"Somewhat satisfied",id:"2"},{label:"Neither satisfied nor dissatisfied",id:"3"},{label:"Somewhat dissatisfied",id:"4"},{label:"Very dissatisfied",id:"5"}]},{type:"rating",icon:"star2",max:5,meta:{name:"asd",fieldKey:"satisfactionRating"},label:{default:"What is your general satisfaction?"},validations:{required:!0}}]},{meta:{name:"products"},title:"Product questions",fields:[{type:"checkbox-group",meta:{name:"asd",fieldKey:"productDescribeWords"},label:{default:"Which of the following words best describes your experience with our products?"},validations:{required:!0},options:[{label:"Reliable",id:"1"},{label:"High quality",id:"2"},{label:"Useful",id:"3"},{label:"Unique",id:"4"},{label:"Value for money",id:"5"},{label:"Overpriced",id:"6"},{label:"Ineffective",id:"7"},{label:"Poor quality",id:"8"},{label:"Unreliable",id:"9"}]},{type:"radio-group",meta:{name:"asd",fieldKey:"productExpectations"},label:{default:"How well products meet your expectations?"},validations:{required:!0},options:[{label:"Extremely well",id:"1"},{label:"Well",id:"2"},{label:"Somewhat well",id:"3"},{label:"Not well",id:"4"},{label:"Not at all well",id:"5"}]},{type:"matrix",meta:{name:"asd",fieldKey:"productQuality"},label:{default:"How would you rate the quality of our products?"},validations:{required:!0},max:10,minText:"Poor quality",maxText:"Good quality"}]},{meta:{name:"final-questions"},title:"Final questions",fields:[{type:"range-slide",defaultValue:77,meta:{name:"asd",fieldKey:"productsImpressionLevel"},label:{default:"What is your overall impression level of our products?"}},{type:"rating",icon:"heart",max:5,meta:{name:"asd",fieldKey:"productExpectations"},label:{default:"Do you like our service and products?"},validations:{required:!0}},{type:"select",meta:{name:"asd",fieldKey:"fromWhereDidYouHearAboutUs"},label:{default:"From where did you hear about us?"},validations:{required:!0},options:[{label:"Facebook",id:"1"},{label:"Instagram",id:"2"},{label:"Google search",id:"3"},{label:"AD",id:"4"},{label:"Other",id:"5"}]},{type:"textarea",meta:{name:"asd",fieldKey:"lastComments"},validations:{required:!1},label:{values:[{conditions:[{fieldName:"satisfactionRating",lessThan:4}],value:"How can we improve our service? (optional)"}],default:"What you would like to tell us about your experience with this company? (optional)?"}}]}]},ya=(e,t)=>new Promise(r=>{r({id:"",domainId:"",attributes:{theme:{},useSystemTheme:!0,variant:"primary"},popupForm:{meta:{name:"popupForm"},config:{canReturnToPreviousStep:!0,nextButtonText:"Next",previousButtonText:"Previous",submitButtonText:"Submit",formTitle:"We are looking forward to hear from you!",buttonText:"Feedback"},styles:{left:null,top:0,bottom:-20,right:0},form:tn},inlineForm:{meta:{name:"asd"},config:{canReturnToPreviousStep:!0,nextButtonText:"Next",previousButtonText:"Previous",submitButtonText:"Submit",formTitle:"We are looking forward to hear from you!"},form:tn}})}),va=e=>{const[t,r]=s.useState(),[n,o]=s.useState(!0),[i,l]=s.useState(null);return s.useEffect(()=>{const d=new AbortController;return o(!0),e(d).then(r).catch(l).finally(()=>o(!1)),()=>{d.abort()}},[]),{data:t,loading:n,error:i}},He=S.button(e=>{const t=me(),r=zn(),o=!e.$outlined?t:"#fff",i=e.$outlined?t:r,l=e.$outlined?i:o,d=`calc(${e.theme.sizeField} * 10)`;return{borderRadius:e.theme.radiusField,borderColor:e.disabled?"#cfcfcf":l,borderStyle:e.$dashed?"dashed":"solid",cursor:"pointer",boxShadow:"inset 0 0 20px 20px transparent",height:d,fontWeight:"600",opacity:e.disabled?.5:1,paddingInline:"1.2rem",transition:"all 0.2s ease-in-out",background:e.disabled?"#cfcfcf":o,borderWidth:e.theme.borderWidth,userSelect:e.disabled?"none":void 0,color:e.disabled?"#888888":i,"&:active":{transform:e.disabled?void 0:"scale(0.97)"},"&:hover":{opacity:e.disabled?void 0:.8,cursor:e.disabled?"auto":"pointer",boxShadow:e.disabled?void 0:"inset 0 0 20px 20px #00000017"},"@media (max-width: 900px)":{paddingInline:"0.5rem"},"@media (max-width: 700px)":{paddingInline:"0.7rem"},"@media (max-width: 400px)":{paddingInline:"0.7rem"}}}),Ea=S.div`
54
54
  visibility: ${e=>e.$isVisible&&e.$height?"visible":"hidden"};
55
55
  opacity: ${e=>e.$isVisible?1:0};
56
56
  display: flex;
@@ -78,8 +78,8 @@
78
78
  @media (max-width: 900px) {
79
79
  display: none;
80
80
  }
81
- `,Ta=S.li(e=>{const t=me(e.colorVariant),r=zn(e.colorVariant),n=e.shouldBeFilled?t:"var(--color-base-300)",o=e.shouldBeFilled?r:"var(--color-base-content)";return{textAlign:"center","--step-bg":n,"--step-fg":o,gridTemplateRows:"40px 1fr",gridTemplateColumns:"auto",gap:".5rem",placeItems:"center",minWidth:"4rem",display:"grid","&:not(:first-of-type):before":{width:"100%",height:"0.5rem",color:"var(--step-bg)",backgroundColor:"var(--step-bg)","--tw-content":"''",content:"var(--tw-content)",border:"1px solid",gridRowStart:"1",gridColumnStart:"1",marginInlineStart:"-100%"},"&:after":{content:"counter(step)",counterIncrement:"step",zIndex:"1",color:"var(--step-fg)",backgroundColor:"var(--step-bg)",border:"1px solid var(--step-bg)",borderRadius:"3.40282e38px",gridRowStart:"1",gridColumnStart:"1",placeSelf:"center",placeItems:"center",width:"2rem",height:"2rem",display:"grid",position:"relative"}}}),Un=e=>(console.log("props.currentStepIndex",e.currentStepIndex),s.createElement(Sa,{children:[e.steps.map((t,r)=>s.createElement(Ta,{key:t.title,colorVariant:e.colorVariant,shouldBeFilled:e.currentStepIndex>=r,children:t.title}))]})),wa={title:{marginTop:"0",marginBottom:".888889em",fontWeight:"700",fontSize:"2.25em",lineHeight:"1.11111"},subtitle:{marginTop:"2em",fontWeight:"700",marginBottom:"1em",fontSize:"1.5em",lineHeight:"1.33333"},section:{marginBottom:"1em",fontWeight:"600",fontSize:"1.25em",lineHeight:"1.6"},subsection:{marginTop:"1.5em",marginBottom:".5em",fontWeight:"600",fontSize:"1rem"},paragraph:{marginTop:"0",marginBottom:"1.25em",fontSize:"1rem"}},xa=S.div(e=>({...wa[e.$variant??"paragraph"],color:e.theme.baseContent,...e.$linear?{margin:"0"}:{}})),se=e=>s.createElement(xa,{$variant:e.variant,$linear:e.linear,children:e.children}),Ca=e=>{switch(e){case"textarea":return"";case"select":return"";case"checkbox-group":return[];case"radio-group":return"";case"matrix":return null;case"range-slide":return null;case"rating":return null;default:return null}},Wn=e=>{const t=s.useMemo(()=>e.form.steps.reduce((l,d,u)=>(l.validationsPerStep[u]={},l.steps=[...l.steps,{...d,fields:d.fields.map(m=>{const p=m.meta.fieldKey;return p?(l.validationsPerStep[u][p]={fieldType:m.type,validations:m.validations},l.state={...l.state,[p]:Ca(m.type)},{dataField:p,...m}):{...m,dataField:null}})}],l),{validationsPerStep:{},state:{},steps:[]}),[e.form]),[r,n]=s.useState(t.state),o=s.useCallback((l,d)=>{l!==null&&n(u=>({...u,[l]:d}))},[n]),i=s.useCallback(l=>l?r[l]:null,[r]);return{steps:t.steps,validationsPerStep:t.validationsPerStep,state:r,setStateByKey:o,getStateByKey:i}},Aa=ba(),_a=(e,t)=>Aa.post("/feedback-receiver",e,t);/*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */const{entries:Hn,setPrototypeOf:rn,isFrozen:Ia,getPrototypeOf:Ra,getOwnPropertyDescriptor:ka}=Object;let{freeze:q,seal:Q,create:Vn}=Object,{apply:mr,construct:hr}=typeof Reflect<"u"&&Reflect;q||(q=function(t){return t});Q||(Q=function(t){return t});mr||(mr=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return t.apply(r,o)});hr||(hr=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return new t(...n)});const yt=K(Array.prototype.forEach),Pa=K(Array.prototype.lastIndexOf),nn=K(Array.prototype.pop),Je=K(Array.prototype.push),Oa=K(Array.prototype.splice),At=K(String.prototype.toLowerCase),er=K(String.prototype.toString),tr=K(String.prototype.match),et=K(String.prototype.replace),Na=K(String.prototype.indexOf),$a=K(String.prototype.trim),ne=K(Object.prototype.hasOwnProperty),Y=K(RegExp.prototype.test),tt=Da(TypeError);function K(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return mr(e,t,n)}}function Da(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return hr(e,r)}}function E(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:At;rn&&rn(e,null);let n=t.length;for(;n--;){let o=t[n];if(typeof o=="string"){const i=r(o);i!==o&&(Ia(t)||(t[n]=i),o=i)}e[o]=!0}return e}function Ma(e){for(let t=0;t<e.length;t++)ne(e,t)||(e[t]=null);return e}function de(e){const t=Vn(null);for(const[r,n]of Hn(e))ne(e,r)&&(Array.isArray(n)?t[r]=Ma(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=de(n):t[r]=n);return t}function rt(e,t){for(;e!==null;){const n=ka(e,t);if(n){if(n.get)return K(n.get);if(typeof n.value=="function")return K(n.value)}e=Ra(e)}function r(){return null}return r}const on=q(["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","search","section","select","shadow","slot","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"]),rr=q(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),nr=q(["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"]),La=q(["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"]),or=q(["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"]),Fa=q(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),an=q(["#text"]),sn=q(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ar=q(["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"]),ln=q(["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"]),vt=q(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),za=Q(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ba=Q(/<%[\w\W]*|[\w\W]*%>/gm),Ua=Q(/\$\{[\w\W]*/gm),Wa=Q(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ha=Q(/^aria-[\-\w]+$/),Gn=Q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Va=Q(/^(?:\w+script|data):/i),Ga=Q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),jn=Q(/^html$/i),ja=Q(/^[a-z][.\w]*(-[.\w]+)+$/i);var cn=Object.freeze({__proto__:null,ARIA_ATTR:Ha,ATTR_WHITESPACE:Ga,CUSTOM_ELEMENT:ja,DATA_ATTR:Wa,DOCTYPE_NAME:jn,ERB_EXPR:Ba,IS_ALLOWED_URI:Gn,IS_SCRIPT_OR_DATA:Va,MUSTACHE_EXPR:za,TMPLIT_EXPR:Ua});const nt={element:1,text:3,progressingInstruction:7,comment:8,document:9},Ya=function(){return typeof window>"u"?null:window},qa=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(n=r.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},un=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Yn(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ya();const t=h=>Yn(h);if(t.version="3.2.7",t.removed=[],!e||!e.document||e.document.nodeType!==nt.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const n=r,o=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:l,Node:d,Element:u,NodeFilter:m,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:T,DOMParser:w,trustedTypes:v}=e,A=u.prototype,$=rt(A,"cloneNode"),G=rt(A,"remove"),D=rt(A,"nextSibling"),P=rt(A,"childNodes"),_=rt(A,"parentNode");if(typeof l=="function"){const h=r.createElement("template");h.content&&h.content.ownerDocument&&(r=h.content.ownerDocument)}let b,R="";const{implementation:x,createNodeIterator:y,createDocumentFragment:he,getElementsByTagName:Ie}=r,{importNode:Ft}=n;let U=un();t.isSupported=typeof Hn=="function"&&typeof _=="function"&&x&&x.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:je,ERB_EXPR:Ye,TMPLIT_EXPR:qe,DATA_ATTR:zt,ARIA_ATTR:Bt,IS_SCRIPT_OR_DATA:Ke,ATTR_WHITESPACE:Xe,CUSTOM_ELEMENT:J}=cn;let{IS_ALLOWED_URI:ve}=cn,O=null;const ee=E({},[...on,...rr,...nr,...or,...an]);let M=null;const Re=E({},[...sn,...ar,...ln,...vt]);let I=Object.seal(Vn(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}})),te=null,pe=null,ge=!0,re=!0,ke=!1,Ee=!0,j=!1,lt=!0,Se=!1,Ut=!1,Wt=!1,Pe=!1,ct=!1,ut=!1,Sr=!0,Tr=!1;const eo="user-content-";let Ht=!0,Ze=!1,Oe={},Ne=null;const wr=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"]);let xr=null;const Cr=E({},["audio","video","img","source","image","track"]);let Vt=null;const Ar=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dt="http://www.w3.org/1998/Math/MathML",ft="http://www.w3.org/2000/svg",le="http://www.w3.org/1999/xhtml";let $e=le,Gt=!1,jt=null;const to=E({},[dt,ft,le],er);let mt=E({},["mi","mo","mn","ms","mtext"]),ht=E({},["annotation-xml"]);const ro=E({},["title","style","font","a","script"]);let Qe=null;const no=["application/xhtml+xml","text/html"],oo="text/html";let z=null,De=null;const ao=r.createElement("form"),_r=function(a){return a instanceof RegExp||a instanceof Function},Yt=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(De&&De===a)){if((!a||typeof a!="object")&&(a={}),a=de(a),Qe=no.indexOf(a.PARSER_MEDIA_TYPE)===-1?oo:a.PARSER_MEDIA_TYPE,z=Qe==="application/xhtml+xml"?er:At,O=ne(a,"ALLOWED_TAGS")?E({},a.ALLOWED_TAGS,z):ee,M=ne(a,"ALLOWED_ATTR")?E({},a.ALLOWED_ATTR,z):Re,jt=ne(a,"ALLOWED_NAMESPACES")?E({},a.ALLOWED_NAMESPACES,er):to,Vt=ne(a,"ADD_URI_SAFE_ATTR")?E(de(Ar),a.ADD_URI_SAFE_ATTR,z):Ar,xr=ne(a,"ADD_DATA_URI_TAGS")?E(de(Cr),a.ADD_DATA_URI_TAGS,z):Cr,Ne=ne(a,"FORBID_CONTENTS")?E({},a.FORBID_CONTENTS,z):wr,te=ne(a,"FORBID_TAGS")?E({},a.FORBID_TAGS,z):de({}),pe=ne(a,"FORBID_ATTR")?E({},a.FORBID_ATTR,z):de({}),Oe=ne(a,"USE_PROFILES")?a.USE_PROFILES:!1,ge=a.ALLOW_ARIA_ATTR!==!1,re=a.ALLOW_DATA_ATTR!==!1,ke=a.ALLOW_UNKNOWN_PROTOCOLS||!1,Ee=a.ALLOW_SELF_CLOSE_IN_ATTR!==!1,j=a.SAFE_FOR_TEMPLATES||!1,lt=a.SAFE_FOR_XML!==!1,Se=a.WHOLE_DOCUMENT||!1,Pe=a.RETURN_DOM||!1,ct=a.RETURN_DOM_FRAGMENT||!1,ut=a.RETURN_TRUSTED_TYPE||!1,Wt=a.FORCE_BODY||!1,Sr=a.SANITIZE_DOM!==!1,Tr=a.SANITIZE_NAMED_PROPS||!1,Ht=a.KEEP_CONTENT!==!1,Ze=a.IN_PLACE||!1,ve=a.ALLOWED_URI_REGEXP||Gn,$e=a.NAMESPACE||le,mt=a.MATHML_TEXT_INTEGRATION_POINTS||mt,ht=a.HTML_INTEGRATION_POINTS||ht,I=a.CUSTOM_ELEMENT_HANDLING||{},a.CUSTOM_ELEMENT_HANDLING&&_r(a.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(I.tagNameCheck=a.CUSTOM_ELEMENT_HANDLING.tagNameCheck),a.CUSTOM_ELEMENT_HANDLING&&_r(a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(I.attributeNameCheck=a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),a.CUSTOM_ELEMENT_HANDLING&&typeof a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(I.allowCustomizedBuiltInElements=a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),j&&(re=!1),ct&&(Pe=!0),Oe&&(O=E({},an),M=[],Oe.html===!0&&(E(O,on),E(M,sn)),Oe.svg===!0&&(E(O,rr),E(M,ar),E(M,vt)),Oe.svgFilters===!0&&(E(O,nr),E(M,ar),E(M,vt)),Oe.mathMl===!0&&(E(O,or),E(M,ln),E(M,vt))),a.ADD_TAGS&&(O===ee&&(O=de(O)),E(O,a.ADD_TAGS,z)),a.ADD_ATTR&&(M===Re&&(M=de(M)),E(M,a.ADD_ATTR,z)),a.ADD_URI_SAFE_ATTR&&E(Vt,a.ADD_URI_SAFE_ATTR,z),a.FORBID_CONTENTS&&(Ne===wr&&(Ne=de(Ne)),E(Ne,a.FORBID_CONTENTS,z)),Ht&&(O["#text"]=!0),Se&&E(O,["html","head","body"]),O.table&&(E(O,["tbody"]),delete te.tbody),a.TRUSTED_TYPES_POLICY){if(typeof a.TRUSTED_TYPES_POLICY.createHTML!="function")throw tt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof a.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw tt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');b=a.TRUSTED_TYPES_POLICY,R=b.createHTML("")}else b===void 0&&(b=qa(v,o)),b!==null&&typeof R=="string"&&(R=b.createHTML(""));q&&q(a),De=a}},Ir=E({},[...rr,...nr,...La]),Rr=E({},[...or,...Fa]),io=function(a){let c=_(a);(!c||!c.tagName)&&(c={namespaceURI:$e,tagName:"template"});const f=At(a.tagName),N=At(c.tagName);return jt[a.namespaceURI]?a.namespaceURI===ft?c.namespaceURI===le?f==="svg":c.namespaceURI===dt?f==="svg"&&(N==="annotation-xml"||mt[N]):!!Ir[f]:a.namespaceURI===dt?c.namespaceURI===le?f==="math":c.namespaceURI===ft?f==="math"&&ht[N]:!!Rr[f]:a.namespaceURI===le?c.namespaceURI===ft&&!ht[N]||c.namespaceURI===dt&&!mt[N]?!1:!Rr[f]&&(ro[f]||!Ir[f]):!!(Qe==="application/xhtml+xml"&&jt[a.namespaceURI]):!1},ae=function(a){Je(t.removed,{element:a});try{_(a).removeChild(a)}catch{G(a)}},Te=function(a,c){try{Je(t.removed,{attribute:c.getAttributeNode(a),from:c})}catch{Je(t.removed,{attribute:null,from:c})}if(c.removeAttribute(a),a==="is")if(Pe||ct)try{ae(c)}catch{}else try{c.setAttribute(a,"")}catch{}},kr=function(a){let c=null,f=null;if(Wt)a="<remove></remove>"+a;else{const L=tr(a,/^[\r\n\t ]+/);f=L&&L[0]}Qe==="application/xhtml+xml"&&$e===le&&(a='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+a+"</body></html>");const N=b?b.createHTML(a):a;if($e===le)try{c=new w().parseFromString(N,Qe)}catch{}if(!c||!c.documentElement){c=x.createDocument($e,"template",null);try{c.documentElement.innerHTML=Gt?R:N}catch{}}const H=c.body||c.documentElement;return a&&f&&H.insertBefore(r.createTextNode(f),H.childNodes[0]||null),$e===le?Ie.call(c,Se?"html":"body")[0]:Se?c.documentElement:H},Pr=function(a){return y.call(a.ownerDocument||a,a,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},qt=function(a){return a instanceof T&&(typeof a.nodeName!="string"||typeof a.textContent!="string"||typeof a.removeChild!="function"||!(a.attributes instanceof p)||typeof a.removeAttribute!="function"||typeof a.setAttribute!="function"||typeof a.namespaceURI!="string"||typeof a.insertBefore!="function"||typeof a.hasChildNodes!="function")},Or=function(a){return typeof d=="function"&&a instanceof d};function ce(h,a,c){yt(h,f=>{f.call(t,a,c,De)})}const Nr=function(a){let c=null;if(ce(U.beforeSanitizeElements,a,null),qt(a))return ae(a),!0;const f=z(a.nodeName);if(ce(U.uponSanitizeElement,a,{tagName:f,allowedTags:O}),lt&&a.hasChildNodes()&&!Or(a.firstElementChild)&&Y(/<[/\w!]/g,a.innerHTML)&&Y(/<[/\w!]/g,a.textContent)||a.nodeType===nt.progressingInstruction||lt&&a.nodeType===nt.comment&&Y(/<[/\w]/g,a.data))return ae(a),!0;if(!O[f]||te[f]){if(!te[f]&&Dr(f)&&(I.tagNameCheck instanceof RegExp&&Y(I.tagNameCheck,f)||I.tagNameCheck instanceof Function&&I.tagNameCheck(f)))return!1;if(Ht&&!Ne[f]){const N=_(a)||a.parentNode,H=P(a)||a.childNodes;if(H&&N){const L=H.length;for(let X=L-1;X>=0;--X){const ue=$(H[X],!0);ue.__removalCount=(a.__removalCount||0)+1,N.insertBefore(ue,D(a))}}}return ae(a),!0}return a instanceof u&&!io(a)||(f==="noscript"||f==="noembed"||f==="noframes")&&Y(/<\/no(script|embed|frames)/i,a.innerHTML)?(ae(a),!0):(j&&a.nodeType===nt.text&&(c=a.textContent,yt([je,Ye,qe],N=>{c=et(c,N," ")}),a.textContent!==c&&(Je(t.removed,{element:a.cloneNode()}),a.textContent=c)),ce(U.afterSanitizeElements,a,null),!1)},$r=function(a,c,f){if(Sr&&(c==="id"||c==="name")&&(f in r||f in ao))return!1;if(!(re&&!pe[c]&&Y(zt,c))){if(!(ge&&Y(Bt,c))){if(!M[c]||pe[c]){if(!(Dr(a)&&(I.tagNameCheck instanceof RegExp&&Y(I.tagNameCheck,a)||I.tagNameCheck instanceof Function&&I.tagNameCheck(a))&&(I.attributeNameCheck instanceof RegExp&&Y(I.attributeNameCheck,c)||I.attributeNameCheck instanceof Function&&I.attributeNameCheck(c,a))||c==="is"&&I.allowCustomizedBuiltInElements&&(I.tagNameCheck instanceof RegExp&&Y(I.tagNameCheck,f)||I.tagNameCheck instanceof Function&&I.tagNameCheck(f))))return!1}else if(!Vt[c]){if(!Y(ve,et(f,Xe,""))){if(!((c==="src"||c==="xlink:href"||c==="href")&&a!=="script"&&Na(f,"data:")===0&&xr[a])){if(!(ke&&!Y(Ke,et(f,Xe,"")))){if(f)return!1}}}}}}return!0},Dr=function(a){return a!=="annotation-xml"&&tr(a,J)},Mr=function(a){ce(U.beforeSanitizeAttributes,a,null);const{attributes:c}=a;if(!c||qt(a))return;const f={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:M,forceKeepAttr:void 0};let N=c.length;for(;N--;){const H=c[N],{name:L,namespaceURI:X,value:ue}=H,Me=z(L),Kt=ue;let W=L==="value"?Kt:$a(Kt);if(f.attrName=Me,f.attrValue=W,f.keepAttr=!0,f.forceKeepAttr=void 0,ce(U.uponSanitizeAttribute,a,f),W=f.attrValue,Tr&&(Me==="id"||Me==="name")&&(Te(L,a),W=eo+W),lt&&Y(/((--!?|])>)|<\/(style|title|textarea)/i,W)){Te(L,a);continue}if(Me==="attributename"&&tr(W,"href")){Te(L,a);continue}if(f.forceKeepAttr)continue;if(!f.keepAttr){Te(L,a);continue}if(!Ee&&Y(/\/>/i,W)){Te(L,a);continue}j&&yt([je,Ye,qe],Fr=>{W=et(W,Fr," ")});const Lr=z(a.nodeName);if(!$r(Lr,Me,W)){Te(L,a);continue}if(b&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!X)switch(v.getAttributeType(Lr,Me)){case"TrustedHTML":{W=b.createHTML(W);break}case"TrustedScriptURL":{W=b.createScriptURL(W);break}}if(W!==Kt)try{X?a.setAttributeNS(X,L,W):a.setAttribute(L,W),qt(a)?ae(a):nn(t.removed)}catch{Te(L,a)}}ce(U.afterSanitizeAttributes,a,null)},so=function h(a){let c=null;const f=Pr(a);for(ce(U.beforeSanitizeShadowDOM,a,null);c=f.nextNode();)ce(U.uponSanitizeShadowNode,c,null),Nr(c),Mr(c),c.content instanceof i&&h(c.content);ce(U.afterSanitizeShadowDOM,a,null)};return t.sanitize=function(h){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=null,f=null,N=null,H=null;if(Gt=!h,Gt&&(h="<!-->"),typeof h!="string"&&!Or(h))if(typeof h.toString=="function"){if(h=h.toString(),typeof h!="string")throw tt("dirty is not a string, aborting")}else throw tt("toString is not a function");if(!t.isSupported)return h;if(Ut||Yt(a),t.removed=[],typeof h=="string"&&(Ze=!1),Ze){if(h.nodeName){const ue=z(h.nodeName);if(!O[ue]||te[ue])throw tt("root node is forbidden and cannot be sanitized in-place")}}else if(h instanceof d)c=kr("<!---->"),f=c.ownerDocument.importNode(h,!0),f.nodeType===nt.element&&f.nodeName==="BODY"||f.nodeName==="HTML"?c=f:c.appendChild(f);else{if(!Pe&&!j&&!Se&&h.indexOf("<")===-1)return b&&ut?b.createHTML(h):h;if(c=kr(h),!c)return Pe?null:ut?R:""}c&&Wt&&ae(c.firstChild);const L=Pr(Ze?h:c);for(;N=L.nextNode();)Nr(N),Mr(N),N.content instanceof i&&so(N.content);if(Ze)return h;if(Pe){if(ct)for(H=he.call(c.ownerDocument);c.firstChild;)H.appendChild(c.firstChild);else H=c;return(M.shadowroot||M.shadowrootmode)&&(H=Ft.call(n,H,!0)),H}let X=Se?c.outerHTML:c.innerHTML;return Se&&O["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&Y(jn,c.ownerDocument.doctype.name)&&(X="<!DOCTYPE "+c.ownerDocument.doctype.name+`>
82
- `+X),j&&yt([je,Ye,qe],ue=>{X=et(X,ue," ")}),b&&ut?b.createHTML(X):X},t.setConfig=function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Yt(h),Ut=!0},t.clearConfig=function(){De=null,Ut=!1},t.isValidAttribute=function(h,a,c){De||Yt({});const f=z(h),N=z(a);return $r(f,N,c)},t.addHook=function(h,a){typeof a=="function"&&Je(U[h],a)},t.removeHook=function(h,a){if(a!==void 0){const c=Pa(U[h],a);return c===-1?void 0:Oa(U[h],c,1)[0]}return nn(U[h])},t.removeHooks=function(h){U[h]=[]},t.removeAllHooks=function(){U=un()},t}var Ka=Yn();const Xa=e=>e==null,at=e=>!Xa(e),Za=(e,t)=>t?t.required&&(e==null||e==="")?"Field is required":t.basicEmailValidation&&(e==null||e==="")?"Field should be email":null:null,dn=(e,t)=>t?Object.keys(t).map(o=>{const i=Za(e[o],t[o].validations);return i?{field:o,error:i}:null},{}).filter(at):[],qn=e=>{const[t,r]=s.useState(0),[n,o]=s.useState([]),i=s.useCallback(async()=>{try{await _a({feedbackFormId:e.formId,link:window.location.pathname,rawHtml:Ka.sanitize(document.getElementsByTagName("html")[0]??""),domainId:e.domainId,data:e.state,formType:e.formType,viewport:{first:document.body.clientWidth,second:document.body.clientHeight},browser:{productSub:navigator.productSub,vendor:navigator.vendor,pdfViewerEnabled:navigator.pdfViewerEnabled,maxTouchPoints:navigator.maxTouchPoints,hardwareConcurrency:navigator.hardwareConcurrency,cookieEnabled:navigator.cookieEnabled,appVersion:navigator.appVersion,platform:navigator.platform,userAgent:navigator.userAgent,language:navigator.language,onLine:navigator.onLine,webdriver:navigator.webdriver,deviceMemory:navigator.deviceMemory}})}catch(u){console.log(u)}},[e.state,e.formType]),l=s.useCallback(()=>{const u=dn(e.state,e.validationsPerStep[t]);o(u),u.length||(t<e.stepsCount-1?r(m=>m+1):i())},[e.state,e.validationsPerStep,t,i]),d=s.useCallback(()=>{t!==0&&(o([]),r(u=>u-1))},[t]);return s.useEffect(()=>{o(u=>{if(u.length){const m=dn(e.state,e.validationsPerStep[t]);if(m.length!==u.length)return m}return u})},[n,e.state,t]),{step:t,errors:n,onContinue:l,onBack:d}},Qa=S.div({marginTop:"1rem",color:"var(--color-error)",height:"20px"}),Ge=({errors:e})=>{var t;return s.createElement(Qa,{children:((t=(e||[])[0])==null?void 0:t.error)??null})},Ja=S.input(({theme:e,colorVariant:t,selected:r})=>{const n=`calc(${e.sizeSelector} * 6);`,o=me(t);return{cursor:"pointer",appearance:"none",borderRadius:"var(--radius-selector)",verticalAlign:"middle",color:"var(--color-base-content)",width:n,border:`1px solid ${o}`,height:n,flexShrink:"0",padding:".25rem",transition:"background-color .2s,box-shadow .2s",display:"inline-block",position:"relative","&::before":{content:'""',opacity:"0",clipPath:"polygon(20% 100%,20% 80%,50% 80%,50% 80%,70% 80%,70% 100%)",width:"100%",height:"100%",boxShadow:"0 3px oklch(100% 0 0/calc(var(--depth)*.1)) inset",backgroundColor:`${o}`,fontSize:"1rem",lineHeight:".75",transition:"clip-path .3s .1s,opacity .1s .1s,rotate .3s .1s,translate .3s .1s",display:"block",rotate:"45deg",...r?{clipPath:"polygon(20% 100%,20% 80%,50% 80%,50% 0%,70% 0%,70% 100%)",opacity:"1"}:{}}}}),ei=S.label(e=>({display:"flex",fontWeight:e.selected?"500":"normal",transition:".2s ease-in-out",alignItems:"center",cursor:"pointer",gap:"calc(var(--spacing) * 2)"})),ti=e=>{const t=s.useMemo(()=>`${e.id}-${e.label.replace(/\s/g,"-").toLowerCase()}`,[]),r=o=>{e.onSelect(e.value.includes(o)?e.value.filter(i=>i!==o):[...e.value,o])},n=e.value.includes(t);return s.createElement(ei,{selected:n,children:[s.createElement(Ja,{id:t,type:"checkbox",selected:n,colorVariant:e.colorVariant,onChange:()=>r(t),name:e.name}),s.createElement(se,{children:e.label,linear:!0})]})},ri=S.div`
81
+ `,Ta=S.li(e=>{const t=me(e.colorVariant),r=zn(e.colorVariant),n=e.shouldBeFilled?t:"var(--color-base-300)",o=e.shouldBeFilled?r:"var(--color-base-content)";return{textAlign:"center","--step-bg":n,"--step-fg":o,gridTemplateRows:"40px 1fr",gridTemplateColumns:"auto",gap:".5rem",placeItems:"center",minWidth:"4rem",display:"grid","&:not(:first-of-type):before":{width:"100%",height:"0.5rem",color:"var(--step-bg)",backgroundColor:"var(--step-bg)","--tw-content":"''",content:"var(--tw-content)",border:"1px solid",gridRowStart:"1",gridColumnStart:"1",marginInlineStart:"-100%"},"&:after":{content:"counter(step)",counterIncrement:"step",zIndex:"1",color:"var(--step-fg)",backgroundColor:"var(--step-bg)",border:"1px solid var(--step-bg)",borderRadius:"3.40282e38px",gridRowStart:"1",gridColumnStart:"1",placeSelf:"center",placeItems:"center",width:"2rem",height:"2rem",display:"grid",position:"relative"}}}),Un=e=>(console.log("props.currentStepIndex",e.currentStepIndex),s.createElement(Sa,{children:[e.steps.map((t,r)=>s.createElement(Ta,{key:t.title,colorVariant:e.colorVariant,shouldBeFilled:e.currentStepIndex>=r,children:t.title}))]})),wa={title:{marginTop:"0",marginBottom:".888889em",fontWeight:"700",fontSize:"2.25em",lineHeight:"1.11111"},subtitle:{marginTop:"2em",fontWeight:"700",marginBottom:"1em",fontSize:"1.5em",lineHeight:"1.33333"},section:{marginBottom:"1em",fontWeight:"600",fontSize:"1.25em",lineHeight:"1.6"},subsection:{marginTop:"1.5em",marginBottom:".5em",fontWeight:"600",fontSize:"1rem"},paragraph:{marginTop:"0",marginBottom:"1.25em",fontSize:"1rem"}},xa=S.div(e=>({...wa[e.$variant??"paragraph"],color:e.theme.baseContent,...e.$linear?{margin:"0"}:{}})),se=e=>s.createElement(xa,{$variant:e.variant,$linear:e.linear,children:e.children}),Ca=e=>{switch(e){case"textarea":return"";case"select":return"";case"checkbox-group":return[];case"radio-group":return"";case"matrix":return null;case"range-slide":return null;case"rating":return null;default:return null}},Wn=e=>{const t=s.useMemo(()=>e.form.steps.reduce((l,d,u)=>(l.validationsPerStep[u]={},l.steps=[...l.steps,{...d,fields:d.fields.map(m=>{const p=m.meta.fieldKey;return p?(l.validationsPerStep[u][p]={fieldType:m.type,validations:m.validations},l.state={...l.state,[p]:Ca(m.type)},{dataField:p,...m}):{...m,dataField:null}})}],l),{validationsPerStep:{},state:{},steps:[]}),[e.form]),[r,n]=s.useState(t.state),o=s.useCallback((l,d)=>{l!==null&&n(u=>({...u,[l]:d}))},[n]),i=s.useCallback(l=>l?r[l]:null,[r]);return{steps:t.steps,validationsPerStep:t.validationsPerStep,state:r,setStateByKey:o,getStateByKey:i}},Aa=ba(),_a=(e,t)=>Aa.post("/feedback-receiver",e,t);/*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */const{entries:Hn,setPrototypeOf:rn,isFrozen:Ia,getPrototypeOf:Ra,getOwnPropertyDescriptor:ka}=Object;let{freeze:q,seal:Q,create:Vn}=Object,{apply:mr,construct:hr}=typeof Reflect<"u"&&Reflect;q||(q=function(t){return t});Q||(Q=function(t){return t});mr||(mr=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return t.apply(r,o)});hr||(hr=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return new t(...n)});const yt=K(Array.prototype.forEach),Pa=K(Array.prototype.lastIndexOf),nn=K(Array.prototype.pop),Je=K(Array.prototype.push),Oa=K(Array.prototype.splice),At=K(String.prototype.toLowerCase),er=K(String.prototype.toString),tr=K(String.prototype.match),et=K(String.prototype.replace),Na=K(String.prototype.indexOf),$a=K(String.prototype.trim),ne=K(Object.prototype.hasOwnProperty),Y=K(RegExp.prototype.test),tt=Da(TypeError);function K(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return mr(e,t,n)}}function Da(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return hr(e,r)}}function E(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:At;rn&&rn(e,null);let n=t.length;for(;n--;){let o=t[n];if(typeof o=="string"){const i=r(o);i!==o&&(Ia(t)||(t[n]=i),o=i)}e[o]=!0}return e}function Ma(e){for(let t=0;t<e.length;t++)ne(e,t)||(e[t]=null);return e}function de(e){const t=Vn(null);for(const[r,n]of Hn(e))ne(e,r)&&(Array.isArray(n)?t[r]=Ma(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=de(n):t[r]=n);return t}function rt(e,t){for(;e!==null;){const n=ka(e,t);if(n){if(n.get)return K(n.get);if(typeof n.value=="function")return K(n.value)}e=Ra(e)}function r(){return null}return r}const on=q(["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","search","section","select","shadow","slot","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"]),rr=q(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),nr=q(["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"]),La=q(["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"]),or=q(["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"]),Fa=q(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),an=q(["#text"]),sn=q(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ar=q(["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"]),ln=q(["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"]),vt=q(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),za=Q(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ba=Q(/<%[\w\W]*|[\w\W]*%>/gm),Ua=Q(/\$\{[\w\W]*/gm),Wa=Q(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ha=Q(/^aria-[\-\w]+$/),Gn=Q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Va=Q(/^(?:\w+script|data):/i),Ga=Q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),jn=Q(/^html$/i),ja=Q(/^[a-z][.\w]*(-[.\w]+)+$/i);var cn=Object.freeze({__proto__:null,ARIA_ATTR:Ha,ATTR_WHITESPACE:Ga,CUSTOM_ELEMENT:ja,DATA_ATTR:Wa,DOCTYPE_NAME:jn,ERB_EXPR:Ba,IS_ALLOWED_URI:Gn,IS_SCRIPT_OR_DATA:Va,MUSTACHE_EXPR:za,TMPLIT_EXPR:Ua});const nt={element:1,text:3,progressingInstruction:7,comment:8,document:9},Ya=function(){return typeof window>"u"?null:window},qa=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(n=r.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},un=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Yn(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ya();const t=h=>Yn(h);if(t.version="3.2.7",t.removed=[],!e||!e.document||e.document.nodeType!==nt.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const n=r,o=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:l,Node:d,Element:u,NodeFilter:m,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:T,DOMParser:w,trustedTypes:v}=e,A=u.prototype,$=rt(A,"cloneNode"),G=rt(A,"remove"),D=rt(A,"nextSibling"),P=rt(A,"childNodes"),_=rt(A,"parentNode");if(typeof l=="function"){const h=r.createElement("template");h.content&&h.content.ownerDocument&&(r=h.content.ownerDocument)}let b,R="";const{implementation:x,createNodeIterator:y,createDocumentFragment:he,getElementsByTagName:_e}=r,{importNode:Ft}=n;let U=un();t.isSupported=typeof Hn=="function"&&typeof _=="function"&&x&&x.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:je,ERB_EXPR:Ye,TMPLIT_EXPR:qe,DATA_ATTR:zt,ARIA_ATTR:Bt,IS_SCRIPT_OR_DATA:Ke,ATTR_WHITESPACE:Xe,CUSTOM_ELEMENT:J}=cn;let{IS_ALLOWED_URI:ye}=cn,O=null;const ee=E({},[...on,...rr,...nr,...or,...an]);let M=null;const Ie=E({},[...sn,...ar,...ln,...vt]);let I=Object.seal(Vn(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}})),te=null,pe=null,ge=!0,re=!0,Re=!1,ve=!0,j=!1,lt=!0,Ee=!1,Ut=!1,Wt=!1,ke=!1,ct=!1,ut=!1,Sr=!0,Tr=!1;const eo="user-content-";let Ht=!0,Ze=!1,Pe={},Oe=null;const wr=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"]);let xr=null;const Cr=E({},["audio","video","img","source","image","track"]);let Vt=null;const Ar=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dt="http://www.w3.org/1998/Math/MathML",ft="http://www.w3.org/2000/svg",le="http://www.w3.org/1999/xhtml";let Ne=le,Gt=!1,jt=null;const to=E({},[dt,ft,le],er);let mt=E({},["mi","mo","mn","ms","mtext"]),ht=E({},["annotation-xml"]);const ro=E({},["title","style","font","a","script"]);let Qe=null;const no=["application/xhtml+xml","text/html"],oo="text/html";let z=null,$e=null;const ao=r.createElement("form"),_r=function(a){return a instanceof RegExp||a instanceof Function},Yt=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!($e&&$e===a)){if((!a||typeof a!="object")&&(a={}),a=de(a),Qe=no.indexOf(a.PARSER_MEDIA_TYPE)===-1?oo:a.PARSER_MEDIA_TYPE,z=Qe==="application/xhtml+xml"?er:At,O=ne(a,"ALLOWED_TAGS")?E({},a.ALLOWED_TAGS,z):ee,M=ne(a,"ALLOWED_ATTR")?E({},a.ALLOWED_ATTR,z):Ie,jt=ne(a,"ALLOWED_NAMESPACES")?E({},a.ALLOWED_NAMESPACES,er):to,Vt=ne(a,"ADD_URI_SAFE_ATTR")?E(de(Ar),a.ADD_URI_SAFE_ATTR,z):Ar,xr=ne(a,"ADD_DATA_URI_TAGS")?E(de(Cr),a.ADD_DATA_URI_TAGS,z):Cr,Oe=ne(a,"FORBID_CONTENTS")?E({},a.FORBID_CONTENTS,z):wr,te=ne(a,"FORBID_TAGS")?E({},a.FORBID_TAGS,z):de({}),pe=ne(a,"FORBID_ATTR")?E({},a.FORBID_ATTR,z):de({}),Pe=ne(a,"USE_PROFILES")?a.USE_PROFILES:!1,ge=a.ALLOW_ARIA_ATTR!==!1,re=a.ALLOW_DATA_ATTR!==!1,Re=a.ALLOW_UNKNOWN_PROTOCOLS||!1,ve=a.ALLOW_SELF_CLOSE_IN_ATTR!==!1,j=a.SAFE_FOR_TEMPLATES||!1,lt=a.SAFE_FOR_XML!==!1,Ee=a.WHOLE_DOCUMENT||!1,ke=a.RETURN_DOM||!1,ct=a.RETURN_DOM_FRAGMENT||!1,ut=a.RETURN_TRUSTED_TYPE||!1,Wt=a.FORCE_BODY||!1,Sr=a.SANITIZE_DOM!==!1,Tr=a.SANITIZE_NAMED_PROPS||!1,Ht=a.KEEP_CONTENT!==!1,Ze=a.IN_PLACE||!1,ye=a.ALLOWED_URI_REGEXP||Gn,Ne=a.NAMESPACE||le,mt=a.MATHML_TEXT_INTEGRATION_POINTS||mt,ht=a.HTML_INTEGRATION_POINTS||ht,I=a.CUSTOM_ELEMENT_HANDLING||{},a.CUSTOM_ELEMENT_HANDLING&&_r(a.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(I.tagNameCheck=a.CUSTOM_ELEMENT_HANDLING.tagNameCheck),a.CUSTOM_ELEMENT_HANDLING&&_r(a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(I.attributeNameCheck=a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),a.CUSTOM_ELEMENT_HANDLING&&typeof a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(I.allowCustomizedBuiltInElements=a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),j&&(re=!1),ct&&(ke=!0),Pe&&(O=E({},an),M=[],Pe.html===!0&&(E(O,on),E(M,sn)),Pe.svg===!0&&(E(O,rr),E(M,ar),E(M,vt)),Pe.svgFilters===!0&&(E(O,nr),E(M,ar),E(M,vt)),Pe.mathMl===!0&&(E(O,or),E(M,ln),E(M,vt))),a.ADD_TAGS&&(O===ee&&(O=de(O)),E(O,a.ADD_TAGS,z)),a.ADD_ATTR&&(M===Ie&&(M=de(M)),E(M,a.ADD_ATTR,z)),a.ADD_URI_SAFE_ATTR&&E(Vt,a.ADD_URI_SAFE_ATTR,z),a.FORBID_CONTENTS&&(Oe===wr&&(Oe=de(Oe)),E(Oe,a.FORBID_CONTENTS,z)),Ht&&(O["#text"]=!0),Ee&&E(O,["html","head","body"]),O.table&&(E(O,["tbody"]),delete te.tbody),a.TRUSTED_TYPES_POLICY){if(typeof a.TRUSTED_TYPES_POLICY.createHTML!="function")throw tt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof a.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw tt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');b=a.TRUSTED_TYPES_POLICY,R=b.createHTML("")}else b===void 0&&(b=qa(v,o)),b!==null&&typeof R=="string"&&(R=b.createHTML(""));q&&q(a),$e=a}},Ir=E({},[...rr,...nr,...La]),Rr=E({},[...or,...Fa]),io=function(a){let c=_(a);(!c||!c.tagName)&&(c={namespaceURI:Ne,tagName:"template"});const f=At(a.tagName),N=At(c.tagName);return jt[a.namespaceURI]?a.namespaceURI===ft?c.namespaceURI===le?f==="svg":c.namespaceURI===dt?f==="svg"&&(N==="annotation-xml"||mt[N]):!!Ir[f]:a.namespaceURI===dt?c.namespaceURI===le?f==="math":c.namespaceURI===ft?f==="math"&&ht[N]:!!Rr[f]:a.namespaceURI===le?c.namespaceURI===ft&&!ht[N]||c.namespaceURI===dt&&!mt[N]?!1:!Rr[f]&&(ro[f]||!Ir[f]):!!(Qe==="application/xhtml+xml"&&jt[a.namespaceURI]):!1},ae=function(a){Je(t.removed,{element:a});try{_(a).removeChild(a)}catch{G(a)}},Se=function(a,c){try{Je(t.removed,{attribute:c.getAttributeNode(a),from:c})}catch{Je(t.removed,{attribute:null,from:c})}if(c.removeAttribute(a),a==="is")if(ke||ct)try{ae(c)}catch{}else try{c.setAttribute(a,"")}catch{}},kr=function(a){let c=null,f=null;if(Wt)a="<remove></remove>"+a;else{const L=tr(a,/^[\r\n\t ]+/);f=L&&L[0]}Qe==="application/xhtml+xml"&&Ne===le&&(a='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+a+"</body></html>");const N=b?b.createHTML(a):a;if(Ne===le)try{c=new w().parseFromString(N,Qe)}catch{}if(!c||!c.documentElement){c=x.createDocument(Ne,"template",null);try{c.documentElement.innerHTML=Gt?R:N}catch{}}const H=c.body||c.documentElement;return a&&f&&H.insertBefore(r.createTextNode(f),H.childNodes[0]||null),Ne===le?_e.call(c,Ee?"html":"body")[0]:Ee?c.documentElement:H},Pr=function(a){return y.call(a.ownerDocument||a,a,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},qt=function(a){return a instanceof T&&(typeof a.nodeName!="string"||typeof a.textContent!="string"||typeof a.removeChild!="function"||!(a.attributes instanceof p)||typeof a.removeAttribute!="function"||typeof a.setAttribute!="function"||typeof a.namespaceURI!="string"||typeof a.insertBefore!="function"||typeof a.hasChildNodes!="function")},Or=function(a){return typeof d=="function"&&a instanceof d};function ce(h,a,c){yt(h,f=>{f.call(t,a,c,$e)})}const Nr=function(a){let c=null;if(ce(U.beforeSanitizeElements,a,null),qt(a))return ae(a),!0;const f=z(a.nodeName);if(ce(U.uponSanitizeElement,a,{tagName:f,allowedTags:O}),lt&&a.hasChildNodes()&&!Or(a.firstElementChild)&&Y(/<[/\w!]/g,a.innerHTML)&&Y(/<[/\w!]/g,a.textContent)||a.nodeType===nt.progressingInstruction||lt&&a.nodeType===nt.comment&&Y(/<[/\w]/g,a.data))return ae(a),!0;if(!O[f]||te[f]){if(!te[f]&&Dr(f)&&(I.tagNameCheck instanceof RegExp&&Y(I.tagNameCheck,f)||I.tagNameCheck instanceof Function&&I.tagNameCheck(f)))return!1;if(Ht&&!Oe[f]){const N=_(a)||a.parentNode,H=P(a)||a.childNodes;if(H&&N){const L=H.length;for(let X=L-1;X>=0;--X){const ue=$(H[X],!0);ue.__removalCount=(a.__removalCount||0)+1,N.insertBefore(ue,D(a))}}}return ae(a),!0}return a instanceof u&&!io(a)||(f==="noscript"||f==="noembed"||f==="noframes")&&Y(/<\/no(script|embed|frames)/i,a.innerHTML)?(ae(a),!0):(j&&a.nodeType===nt.text&&(c=a.textContent,yt([je,Ye,qe],N=>{c=et(c,N," ")}),a.textContent!==c&&(Je(t.removed,{element:a.cloneNode()}),a.textContent=c)),ce(U.afterSanitizeElements,a,null),!1)},$r=function(a,c,f){if(Sr&&(c==="id"||c==="name")&&(f in r||f in ao))return!1;if(!(re&&!pe[c]&&Y(zt,c))){if(!(ge&&Y(Bt,c))){if(!M[c]||pe[c]){if(!(Dr(a)&&(I.tagNameCheck instanceof RegExp&&Y(I.tagNameCheck,a)||I.tagNameCheck instanceof Function&&I.tagNameCheck(a))&&(I.attributeNameCheck instanceof RegExp&&Y(I.attributeNameCheck,c)||I.attributeNameCheck instanceof Function&&I.attributeNameCheck(c,a))||c==="is"&&I.allowCustomizedBuiltInElements&&(I.tagNameCheck instanceof RegExp&&Y(I.tagNameCheck,f)||I.tagNameCheck instanceof Function&&I.tagNameCheck(f))))return!1}else if(!Vt[c]){if(!Y(ye,et(f,Xe,""))){if(!((c==="src"||c==="xlink:href"||c==="href")&&a!=="script"&&Na(f,"data:")===0&&xr[a])){if(!(Re&&!Y(Ke,et(f,Xe,"")))){if(f)return!1}}}}}}return!0},Dr=function(a){return a!=="annotation-xml"&&tr(a,J)},Mr=function(a){ce(U.beforeSanitizeAttributes,a,null);const{attributes:c}=a;if(!c||qt(a))return;const f={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:M,forceKeepAttr:void 0};let N=c.length;for(;N--;){const H=c[N],{name:L,namespaceURI:X,value:ue}=H,De=z(L),Kt=ue;let W=L==="value"?Kt:$a(Kt);if(f.attrName=De,f.attrValue=W,f.keepAttr=!0,f.forceKeepAttr=void 0,ce(U.uponSanitizeAttribute,a,f),W=f.attrValue,Tr&&(De==="id"||De==="name")&&(Se(L,a),W=eo+W),lt&&Y(/((--!?|])>)|<\/(style|title|textarea)/i,W)){Se(L,a);continue}if(De==="attributename"&&tr(W,"href")){Se(L,a);continue}if(f.forceKeepAttr)continue;if(!f.keepAttr){Se(L,a);continue}if(!ve&&Y(/\/>/i,W)){Se(L,a);continue}j&&yt([je,Ye,qe],Fr=>{W=et(W,Fr," ")});const Lr=z(a.nodeName);if(!$r(Lr,De,W)){Se(L,a);continue}if(b&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!X)switch(v.getAttributeType(Lr,De)){case"TrustedHTML":{W=b.createHTML(W);break}case"TrustedScriptURL":{W=b.createScriptURL(W);break}}if(W!==Kt)try{X?a.setAttributeNS(X,L,W):a.setAttribute(L,W),qt(a)?ae(a):nn(t.removed)}catch{Se(L,a)}}ce(U.afterSanitizeAttributes,a,null)},so=function h(a){let c=null;const f=Pr(a);for(ce(U.beforeSanitizeShadowDOM,a,null);c=f.nextNode();)ce(U.uponSanitizeShadowNode,c,null),Nr(c),Mr(c),c.content instanceof i&&h(c.content);ce(U.afterSanitizeShadowDOM,a,null)};return t.sanitize=function(h){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=null,f=null,N=null,H=null;if(Gt=!h,Gt&&(h="<!-->"),typeof h!="string"&&!Or(h))if(typeof h.toString=="function"){if(h=h.toString(),typeof h!="string")throw tt("dirty is not a string, aborting")}else throw tt("toString is not a function");if(!t.isSupported)return h;if(Ut||Yt(a),t.removed=[],typeof h=="string"&&(Ze=!1),Ze){if(h.nodeName){const ue=z(h.nodeName);if(!O[ue]||te[ue])throw tt("root node is forbidden and cannot be sanitized in-place")}}else if(h instanceof d)c=kr("<!---->"),f=c.ownerDocument.importNode(h,!0),f.nodeType===nt.element&&f.nodeName==="BODY"||f.nodeName==="HTML"?c=f:c.appendChild(f);else{if(!ke&&!j&&!Ee&&h.indexOf("<")===-1)return b&&ut?b.createHTML(h):h;if(c=kr(h),!c)return ke?null:ut?R:""}c&&Wt&&ae(c.firstChild);const L=Pr(Ze?h:c);for(;N=L.nextNode();)Nr(N),Mr(N),N.content instanceof i&&so(N.content);if(Ze)return h;if(ke){if(ct)for(H=he.call(c.ownerDocument);c.firstChild;)H.appendChild(c.firstChild);else H=c;return(M.shadowroot||M.shadowrootmode)&&(H=Ft.call(n,H,!0)),H}let X=Ee?c.outerHTML:c.innerHTML;return Ee&&O["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&Y(jn,c.ownerDocument.doctype.name)&&(X="<!DOCTYPE "+c.ownerDocument.doctype.name+`>
82
+ `+X),j&&yt([je,Ye,qe],ue=>{X=et(X,ue," ")}),b&&ut?b.createHTML(X):X},t.setConfig=function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Yt(h),Ut=!0},t.clearConfig=function(){$e=null,Ut=!1},t.isValidAttribute=function(h,a,c){$e||Yt({});const f=z(h),N=z(a);return $r(f,N,c)},t.addHook=function(h,a){typeof a=="function"&&Je(U[h],a)},t.removeHook=function(h,a){if(a!==void 0){const c=Pa(U[h],a);return c===-1?void 0:Oa(U[h],c,1)[0]}return nn(U[h])},t.removeHooks=function(h){U[h]=[]},t.removeAllHooks=function(){U=un()},t}var Ka=Yn();const Xa=e=>e==null,at=e=>!Xa(e),Za=(e,t)=>t?t.required&&(e==null||e==="")?"Field is required":t.basicEmailValidation&&(e==null||e==="")?"Field should be email":null:null,dn=(e,t)=>t?Object.keys(t).map(o=>{const i=Za(e[o],t[o].validations);return i?{field:o,error:i}:null},{}).filter(at):[],qn=e=>{const[t,r]=s.useState(0),[n,o]=s.useState([]),i=s.useCallback(async()=>{try{await _a({feedbackFormId:e.formId,link:window.location.pathname,rawHtml:Ka.sanitize(document.getElementsByTagName("html")[0]??""),domainId:e.domainId,data:e.state,formType:e.formType,viewport:{first:document.body.clientWidth,second:document.body.clientHeight},browser:{productSub:navigator.productSub,vendor:navigator.vendor,pdfViewerEnabled:navigator.pdfViewerEnabled,maxTouchPoints:navigator.maxTouchPoints,hardwareConcurrency:navigator.hardwareConcurrency,cookieEnabled:navigator.cookieEnabled,appVersion:navigator.appVersion,platform:navigator.platform,userAgent:navigator.userAgent,language:navigator.language,onLine:navigator.onLine,webdriver:navigator.webdriver,deviceMemory:navigator.deviceMemory}})}catch(u){console.log(u)}},[e.state,e.formType]),l=s.useCallback(()=>{const u=dn(e.state,e.validationsPerStep[t]);o(u),u.length||(t<e.stepsCount-1?r(m=>m+1):i())},[e.state,e.validationsPerStep,t,i]),d=s.useCallback(()=>{t!==0&&(o([]),r(u=>u-1))},[t]);return s.useEffect(()=>{o(u=>{if(u.length){const m=dn(e.state,e.validationsPerStep[t]);if(m.length!==u.length)return m}return u})},[n,e.state,t]),{step:t,errors:n,onContinue:l,onBack:d}},Qa=S.div({marginTop:"1rem",color:"var(--color-error)",height:"20px"}),Ge=({errors:e})=>{var t;return s.createElement(Qa,{children:((t=(e||[])[0])==null?void 0:t.error)??null})},Ja=S.input(({theme:e,colorVariant:t,selected:r})=>{const n=`calc(${e.sizeSelector} * 6);`,o=me(t);return{cursor:"pointer",appearance:"none",borderRadius:"var(--radius-selector)",verticalAlign:"middle",color:"var(--color-base-content)",width:n,border:`1px solid ${o}`,height:n,flexShrink:"0",padding:".25rem",transition:"background-color .2s,box-shadow .2s",display:"inline-block",position:"relative","&::before":{content:'""',opacity:"0",clipPath:"polygon(20% 100%,20% 80%,50% 80%,50% 80%,70% 80%,70% 100%)",width:"100%",height:"100%",boxShadow:"0 3px oklch(100% 0 0/calc(var(--depth)*.1)) inset",backgroundColor:`${o}`,fontSize:"1rem",lineHeight:".75",transition:"clip-path .3s .1s,opacity .1s .1s,rotate .3s .1s,translate .3s .1s",display:"block",rotate:"45deg",...r?{clipPath:"polygon(20% 100%,20% 80%,50% 80%,50% 0%,70% 0%,70% 100%)",opacity:"1"}:{}}}}),ei=S.label(e=>({display:"flex",fontWeight:e.selected?"500":"normal",transition:".2s ease-in-out",alignItems:"center",cursor:"pointer",gap:"calc(var(--spacing) * 2)"})),ti=e=>{const t=s.useMemo(()=>`${e.id}-${e.label.replace(/\s/g,"-").toLowerCase()}`,[]),r=o=>{e.onSelect(e.value.includes(o)?e.value.filter(i=>i!==o):[...e.value,o])},n=e.value.includes(t);return s.createElement(ei,{selected:n,children:[s.createElement(Ja,{id:t,type:"checkbox",selected:n,colorVariant:e.colorVariant,onChange:()=>r(t),name:e.name}),s.createElement(se,{children:e.label,linear:!0})]})},ri=S.div`
83
83
  display: flex;
84
84
  flex-direction: column;
85
85
  width: var(--all-fields-size);