(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3438,591],{34821:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,(n=r=t.ElementType||(t.ElementType={})).Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype",t.isTag=function(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style},t.Root=r.Root,t.Text=r.Text,t.Directive=r.Directive,t.Comment=r.Comment,t.Script=r.Script,t.Style=r.Style,t.Tag=r.Tag,t.CDATA=r.CDATA,t.Doctype=r.Doctype},79959:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var a=r(34821),o=r(75538);i(r(75538),t);var s=/\s+/g,l={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=function(){function e(e,t,r){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?a.ElementType.Tag:void 0,n=new o.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,r=this.lastNode;if(r&&r.type===a.ElementType.Text)t?r.data=(r.data+e).replace(s," "):r.data+=e,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{t&&(e=e.replace(s," "));var n=new o.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===a.ElementType.Comment){this.lastNode.data+=e;return}var t=new o.Comment(e);this.addNode(t),this.lastNode=t},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new o.Text(""),t=new o.NodeWithChildren(a.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new o.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=u,t.default=u},75538:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=p;var h=function(e){function t(t){return e.call(this,o.ElementType.Root,t)||this}return i(t,e),t}(p);t.Document=h;var m=function(e){function t(t,r,n,i){void 0===n&&(n=[]),void 0===i&&(i="script"===t?o.ElementType.Script:"style"===t?o.ElementType.Style:o.ElementType.Tag);var a=e.call(this,i,n)||this;return a.name=t,a.attribs=r,a}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}})},enumerable:!1,configurable:!0}),t}(p);function y(e){return(0,o.isTag)(e)}function v(e){return e.type===o.ElementType.CDATA}function g(e){return e.type===o.ElementType.Text}function b(e){return e.type===o.ElementType.Comment}function _(e){return e.type===o.ElementType.Directive}function w(e){return e.type===o.ElementType.Root}function x(e,t){if(void 0===t&&(t=!1),g(e))r=new d(e.data);else if(b(e))r=new c(e.data);else if(y(e)){var r,n=t?k(e.children):[],i=new m(e.name,a({},e.attribs),n);n.forEach(function(e){return e.parent=i}),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=a({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=a({},e["x-attribsPrefix"])),r=i}else if(v(e)){var n=t?k(e.children):[],s=new p(o.ElementType.CDATA,n);n.forEach(function(e){return e.parent=s}),r=s}else if(w(e)){var n=t?k(e.children):[],l=new h(n);n.forEach(function(e){return e.parent=l}),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),r=l}else if(_(e)){var u=new f(e.name,e.data);null!=e["x-name"]&&(u["x-name"]=e["x-name"],u["x-publicId"]=e["x-publicId"],u["x-systemId"]=e["x-systemId"]),r=u}else throw Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function k(e){for(var t=e.map(function(e){return x(e,!0)}),r=1;r/i,u=//i,d=function(){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var f=new window.DOMParser;d=c=function(e,t){return t&&(e="<"+t+">"+e+""),f.parseFromString(e,"text/html")}}if(document.implementation){var p=r(41594).isIE,h=document.implementation.createHTMLDocument(p()?"html-dom-parser":void 0);d=function(e,t){return t?h.documentElement.getElementsByTagName(t)[0].innerHTML=e:h.documentElement.innerHTML=e,h}}var m=document.createElement("template");m.content&&(n=function(e){return m.innerHTML=e,m.content.childNodes}),e.exports=function(e){var t,r,f,p,h=e.match(s);switch(h&&h[1]&&(t=h[1].toLowerCase()),t){case i:return r=c(e),!l.test(e)&&(f=r.getElementsByTagName(a)[0])&&f.parentNode.removeChild(f),!u.test(e)&&(f=r.getElementsByTagName(o)[0])&&f.parentNode.removeChild(f),r.getElementsByTagName(i);case a:case o:if(p=d(e).getElementsByTagName(t),u.test(e)&&l.test(e))return p[0].parentNode.childNodes;return p;default:if(n)return n(e);return d(e,o).getElementsByTagName(o)[0].childNodes}}},50307:function(e,t,r){var n=r(58166),i=r(41594).formatDOM,a=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw TypeError("First argument must be a string");if(""===e)return[];var t,r=e.match(a);return r&&r[1]&&(t=r[1]),i(n(e),null,t)}},41594:function(e,t,r){for(var n,i=r(8401),a=r(75538),o=i.CASE_SENSITIVE_TAG_NAMES,s=a.Comment,l=a.Element,u=a.ProcessingInstruction,d=a.Text,c={},f=0,p=o.length;f1&&(d=h(d,{key:d.key||_})),v.push(d);continue}if("text"===l.type){if((u=!l.data.trim().length)&&l.parent&&!s(l.parent)||b&&u)continue;v.push(l.data);continue}switch(c=l.attribs,a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===l.type&&a.isCustomComponent(l.name,l.attribs)?o(c.style,c):c&&(c=i(c)),f=null,l.type){case"script":case"style":l.children[0]&&(c.dangerouslySetInnerHTML={__html:l.children[0].data});break;case"tag":"textarea"===l.name&&l.children[0]?c.defaultValue=l.children[0].data:l.children&&l.children.length&&(f=e(l.children,r));break;default:continue}w>1&&(c.key=_),v.push(m(l.name,c,f))}return 1===v.length?v[0]:v}},54848:function(e,t,r){var n=r(2784),i=r(91618).default,a={reactCompat:!0},o=n.version.split(".")[0]>=16,s=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:o,invertObject:function(e,t){if(!e||"object"!=typeof e)throw TypeError("First argument must be an object");var r,n,i="function"==typeof t,a={},o={};for(r in e){if(n=e[r],i&&(a=t(r,n))&&2===a.length){o[a[0]]=a[1];continue}"string"==typeof n&&(o[n]=r)}return o},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=i(e,a)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!s.has(e.name)},elementsWithNoTextChildren:s}},6299:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,c=1;function f(e){var t=e.match(r);t&&(d+=t.length);var n=e.lastIndexOf("\n");c=~n?e.length-n:c+e.length}function p(){var e={line:d,column:c};return function(t){return t.position=new h(e),v(n),t}}function h(e){this.start=e,this.end={line:d,column:c},this.source=l.source}h.prototype.content=e;var m=[];function y(t){var r=Error(l.source+":"+d+":"+c+": "+t);if(r.reason=t,r.filename=l.source,r.line=d,r.column=c,r.source=e,l.silent)m.push(r);else throw r}function v(t){var r=t.exec(e);if(r){var n=r[0];return f(n),e=e.slice(n.length),r}}function g(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;""!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,""===e.charAt(r-1))return y("End of comment missing");var n=e.slice(2,r-2);return c+=2,f(n),e=e.slice(r),c+=2,t({type:"comment",comment:n})}}return v(n),function(){var e,r=[];for(g(r);e=function(){var e=p(),r=v(i);if(r){if(b(),!v(a))return y("property missing ':'");var n=v(o),l=e({type:"declaration",property:u(r[0].replace(t,"")),value:n?u(n[0].replace(t,"")):""});return v(s),l}}();)!1!==e&&(r.push(e),g(r));return r}()}},9599:function(e){function t(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(Error("Failed to load "+this.src),e)}}e.exports=function(e,r,n){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");"function"==typeof r&&(n=r,r={}),r=r||{},n=n||function(){},a.type=r.type||"text/javascript",a.charset=r.charset||"utf8",a.async=!("async"in r)||!!r.async,a.src=e,r.attrs&&function(e,t){for(var r in t)e.setAttribute(r,t[r])}(a,r.attrs),r.text&&(a.text=""+r.text),("onload"in a?t:function(e,t){e.onreadystatechange=function(){("complete"==this.readyState||"loaded"==this.readyState)&&(this.onreadystatechange=null,t(null,e))}})(a,n),a.onload||t(a,n),i.appendChild(a)}},97464:function(e,t,r){"use strict";var n=r(34406);r(81633);var i=r(2784),a=i&&"object"==typeof i&&"default"in i?i:{default:i},o=void 0!==n&&n.env&&!0,s=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,r=t.name,n=void 0===r?"stylesheet":r,i=t.optimizeForSpeed,a=void 0===i?o:i;u(s(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",u("boolean"==typeof a,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=a,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l=document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t=e.prototype;return t.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},t.isOptimizeForSpeed=function(){return this._optimizeForSpeed},t.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(o||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},t.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t>>0},c={};function f(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return c[n]||(c[n]="jsx-"+d(e+"-"+r)),c[n]}function p(e,t){var r=e+t;return c[r]||(c[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),c[r]}var h=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,i=t.optimizeForSpeed,a=void 0!==i&&i;this._sheet=n||new l({name:"styled-jsx",optimizeForSpeed:a}),this._sheet.inject(),n&&"boolean"==typeof a&&(this._sheet.setOptimizeForSpeed(a),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,i=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var a=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=a,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],n=e[1];return a.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var i=f(n,r);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return p(i,e)}):[p(i,t)]}}return{styleId:f(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=i.createContext(null);m.displayName="StyleSheetContext";var y=a.default.useInsertionEffect||a.default.useLayoutEffect,v=new h;function g(e){var t=v||i.useContext(m);return t&&y(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}g.dynamic=function(e){return e.map(function(e){return f(e[0],e[1])}).join(" ")},t.style=g},60591:function(e,t,r){"use strict";e.exports=r(97464).style},81633:function(){},97729:function(e,t,r){e.exports=r(3613)},18701:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedStyle=void 0;let a=i(r(12524)),o=i(r(2784));t.EmbedStyle=e=>{var t=n(e,[]);return o.default.createElement("style",Object.assign({},t,{className:(0,a.default)(t.className),style:Object.assign({},t.style)}),` .rsme-embed .rsme-d-none { display: none; } .rsme-embed .twitter-tweet { margin: 0 !important; } .rsme-embed blockquote { margin: 0 !important; padding: 0 !important; } .rsme-embed.rsme-facebook-embed .fb-post iframe { width: 100% !important; } .rsme-embed.rsme-facebook-embed .fb-post span { width: 100% !important; } `)}},10159:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FacebookEmbed=void 0;let a=i(r(12524)),o=i(r(2784)),s=r(48180),l=r(65255),u=r(34075),d=r(9967),c=r(93937),f="check-script",p="load-script",h="confirm-script-loaded",m="process-embed",y="confirm-embed-success",v="retrying",g="embed-success";t.FacebookEmbed=e=>{var t,r,{url:i,width:b,height:_,linkText:w="View post on Facebook",placeholderImageUrl:x,placeholderSpinner:k,placeholderSpinnerDisabled:E=!1,placeholderProps:O,embedPlaceholder:S,placeholderDisabled:T=!1,scriptLoadDisabled:P=!1,retryDelay:C=5e3,retryDisabled:j=!1,frame:N,debug:I=!1}=e,R=n(e,["url","width","height","linkText","placeholderImageUrl","placeholderSpinner","placeholderSpinnerDisabled","placeholderProps","embedPlaceholder","placeholderDisabled","scriptLoadDisabled","retryDelay","retryDisabled","frame","debug"]);let[A,D]=o.default.useState(f),M=o.default.useMemo(()=>A===g,[A]),F=o.default.useRef((0,u.generateUUID)()),[L,Z]=o.default.useState(Date.now()),V=o.default.useMemo(()=>`${F.current}-${L}`,[L]),U=(0,s.useFrame)(N);o.default.useEffect(()=>{I&&console.log(`[${new Date().toISOString()}]: ${A}`)},[I,A]),o.default.useEffect(()=>{var e,t,r;A===f&&((null===(r=null===(t=null===(e=U.window)||void 0===e?void 0:e.FB)||void 0===t?void 0:t.XFBML)||void 0===r?void 0:r.parse)?D(m):P?console.error("Facebook embed script not found. Unable to process Facebook embed:",i):D(p))},[P,A,i,U.window]),o.default.useEffect(()=>{if(A===p&&U.document){let e=U.document.createElement("script");e.setAttribute("src","https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v16.0"),U.document.head.appendChild(e),D(h)}},[A,U.document]),o.default.useEffect(()=>{let e=new c.Subs;return A===h&&e.setInterval(()=>{var e,t,r;(null===(r=null===(t=null===(e=U.window)||void 0===e?void 0:e.FB)||void 0===t?void 0:t.XFBML)||void 0===r?void 0:r.parse)&&D(m)},1),e.createCleanup()},[A,U.window]),o.default.useEffect(()=>{var e,t,r;if(A===m){let n=null===(r=null===(t=null===(e=U.window)||void 0===e?void 0:e.FB)||void 0===t?void 0:t.XFBML)||void 0===r?void 0:r.parse;n?(n(),D(y)):console.error("Facebook embed script not found. Unable to process Facebook embed:",i)}},[A,i,U.window]),o.default.useEffect(()=>{let e=new c.Subs;return A!==y||(e.setInterval(()=>{if(U.document){let e=U.document.getElementById(F.current);if(e){let t=e.getElementsByClassName("fb-post")[0];t&&t.children.length>0&&D(g)}}},1),j||e.setTimeout(()=>{D(v)},C)),e.createCleanup()},[j,C,A,U.document]),o.default.useEffect(()=>{A===v&&(Z(Date.now()),D(m))},[A]);let z=!!(null==b?void 0:b.toString().includes("%")),B=!!(null==_?void 0:_.toString().includes("%")),$={maxWidth:z?void 0:550,width:void 0!==b?z?"100%":b:"100%",height:B?"100%":void 0!==_?_:void 0!==(null===(t=R.style)||void 0===t?void 0:t.height)||void 0!==(null===(r=R.style)||void 0===r?void 0:r.maxHeight)?"100%":372,border:"1px solid #dee2e6",borderRadius:3},W=null!=S?S:o.default.createElement(l.PlaceholderEmbed,Object.assign({url:i,imageUrl:x,linkText:w,spinner:k,spinnerDisabled:E},O,{style:Object.assign(Object.assign({},$),null==O?void 0:O.style)}));return o.default.createElement("div",Object.assign({},R,{className:(0,a.default)("rsme-embed rsme-facebook-embed",R.className),style:Object.assign({overflow:"hidden",width:null!=b?b:void 0,height:null!=_?_:void 0,borderRadius:3},R.style)}),o.default.createElement(d.EmbedStyle,null),o.default.createElement("div",{id:F.current,className:(0,a.default)(!M&&"rsme-d-none")},o.default.createElement("div",{key:V,className:"fb-post","data-href":i,"data-width":z?"100%":null!=b?b:550,style:{width:z?"100%":null!=b?b:550,height:B?"100%":null!=_?_:void 0}})),!M&&!T&&W)}},10635:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InstagramEmbed=void 0;let l=s(r(12524)),u=a(r(2784)),d=r(93937),c=r(48180),f=r(65255),p=r(34075),h=r(9967),m="check-script",y="load-script",v="confirm-script-loaded",g="process-embed",b="confirm-embed-success",_="retrying";t.InstagramEmbed=e=>{var t,r,{url:n,width:i,height:a,linkText:s="View post on Instagram",captioned:w=!1,placeholderImageUrl:x,placeholderSpinner:k,placeholderSpinnerDisabled:E=!1,placeholderProps:O,embedPlaceholder:S,placeholderDisabled:T=!1,scriptLoadDisabled:P=!1,retryDelay:C=5e3,retryDisabled:j=!1,igVersion:N="14",frame:I,debug:R=!1}=e,A=o(e,["url","width","height","linkText","captioned","placeholderImageUrl","placeholderSpinner","placeholderSpinnerDisabled","placeholderProps","embedPlaceholder","placeholderDisabled","scriptLoadDisabled","retryDelay","retryDisabled","igVersion","frame","debug"]);let[D,M]=u.useState(m),F=u.useRef((0,p.generateUUID)()),[L,Z]=u.useState(Date.now()),V=u.useMemo(()=>`${F.current}-${L}`,[L]),U=(0,c.useFrame)(I);u.useEffect(()=>{R&&console.log(`[${new Date().toISOString()}]: ${D}`)},[R,D]),u.useEffect(()=>{var e,t,r;D===m&&((null===(r=null===(t=null===(e=U.window)||void 0===e?void 0:e.instgrm)||void 0===t?void 0:t.Embeds)||void 0===r?void 0:r.process)?M(g):P?console.error("Instagram embed script not found. Unable to process Instagram embed:",n):M(y))},[P,D,n,U.window]),u.useEffect(()=>{if(D===y&&U.document){let e=U.document.createElement("script");e.setAttribute("src","https://www.instagram.com/embed.js"),U.document.head.appendChild(e),M(v)}},[D,U.document]),u.useEffect(()=>{let e=new d.Subs;return D===v&&e.setInterval(()=>{var e,t,r;(null===(r=null===(t=null===(e=U.window)||void 0===e?void 0:e.instgrm)||void 0===t?void 0:t.Embeds)||void 0===r?void 0:r.process)&&M(g)},1),e.createCleanup()},[D,U.window]),u.useEffect(()=>{var e,t,r;if(D===g){let i=null===(r=null===(t=null===(e=U.window)||void 0===e?void 0:e.instgrm)||void 0===t?void 0:t.Embeds)||void 0===r?void 0:r.process;i?(i(),M(b)):console.error("Instagram embed script not found. Unable to process Instagram embed:",n)}},[D,U.window,n]),u.useEffect(()=>{let e=new d.Subs;return D!==b||(e.setInterval(()=>{U.document&&!U.document.getElementById(F.current)&&M("embed-success")},1),j||e.setTimeout(()=>{M(_)},C)),e.createCleanup()},[C,j,D,U.document]),u.useEffect(()=>{D===_&&(Z(Date.now()),M(g))},[D]);let z=n.replace(/[?].*$/,""),B=`${z}${z.endsWith("/")?"":"/"}`,$=!!(null==i?void 0:i.toString().includes("%")),W={minWidth:$?void 0:328,width:void 0!==i?$?"100%":i:"100%",height:(null==a?void 0:a.toString().includes("%"))?"100%":void 0!==a?a:void 0!==(null===(t=A.style)||void 0===t?void 0:t.height)||void 0!==(null===(r=A.style)||void 0===r?void 0:r.maxHeight)?"100%":372,border:"1px solid #dee2e6",borderRadius:3},H=null!=S?S:u.createElement(f.PlaceholderEmbed,Object.assign({url:B,imageUrl:x,linkText:s,spinner:k,spinnerDisabled:E},O,{style:Object.assign(Object.assign({},W),null==O?void 0:O.style)}));return u.createElement("div",Object.assign({},A,{className:(0,l.default)("rsme-embed rsme-instagram-embed",F.current,A.className),style:Object.assign({overflow:"hidden",width:null!=i?i:void 0,height:null!=a?a:void 0,borderRadius:3},A.style)}),u.createElement(h.EmbedStyle,null),u.createElement("blockquote",{key:V,className:"instagram-media","data-instgrm-permalink":`${B}?utm_source=ig_embed&utm_campaign=loading`,"data-instgrm-version":N,"data-instgrm-captioned":w||void 0,"data-width":$?"100%":null!=i?i:void 0,style:{width:"calc(100% - 2px)"}},!T&&H,u.createElement("div",{id:F.current,className:"instagram-media-pre-embed rsme-d-none"},"\xa0")))}},53068:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedInEmbed=void 0;let l=s(r(12524)),u=a(r(2784)),d=r(65255),c=r(9967);t.LinkedInEmbed=e=>{var t,r,{url:n,postUrl:i,width:a,height:s=500,linkText:f="View post on LinkedIn",placeholderImageUrl:p,placeholderSpinner:h,placeholderSpinnerDisabled:m=!1,placeholderProps:y,embedPlaceholder:v,placeholderDisabled:g=!1}=e,b=o(e,["url","postUrl","width","height","linkText","placeholderImageUrl","placeholderSpinner","placeholderSpinnerDisabled","placeholderProps","embedPlaceholder","placeholderDisabled"]);let[_,w]=u.useState(!1),x={minWidth:250,maxWidth:550,width:void 0!==a?a:"100%",height:void 0!==s?s:void 0!==(null===(t=b.style)||void 0===t?void 0:t.height)||void 0!==(null===(r=b.style)||void 0===r?void 0:r.maxHeight)?"100%":550,border:"solid 1px rgba(0, 0, 0, 0.15)",borderRadius:8},k=null!=v?v:u.createElement(d.PlaceholderEmbed,Object.assign({url:null!=i?i:n,imageUrl:p,linkText:f,spinner:h,spinnerDisabled:m},y,{style:Object.assign(Object.assign({},x),null==y?void 0:y.style)}));return u.createElement("div",Object.assign({},b,{className:(0,l.default)("rsme-embed rsme-linkedin-embed",b.className),style:Object.assign({overflow:"hidden",width:null!=a?a:void 0,height:null!=s?s:void 0,borderRadius:8},b.style)}),u.createElement(c.EmbedStyle,null),u.createElement("iframe",{className:(0,l.default)("linkedin-post",!_&&"rsme-d-none"),src:n,width:"100%",height:_?s:0,frameBorder:"0",onLoad:()=>w(!0)}),!_&&!g&&k)}},90612:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PinterestEmbed=void 0;let l=s(r(12524)),u=a(r(2784)),d=r(65255),c=r(9967);t.PinterestEmbed=e=>{var t,r,n,{url:i,postUrl:a,width:s,height:f=500,linkText:p="View post on Pinterest",placeholderImageUrl:h,placeholderSpinner:m,placeholderSpinnerDisabled:y=!1,placeholderProps:v,embedPlaceholder:g,placeholderDisabled:b=!1}=e,_=o(e,["url","postUrl","width","height","linkText","placeholderImageUrl","placeholderSpinner","placeholderSpinnerDisabled","placeholderProps","embedPlaceholder","placeholderDisabled"]);let[w,x]=u.useState(!1),k={minWidth:250,maxWidth:550,width:void 0!==s?s:"100%",height:void 0!==f?f:void 0!==(null===(t=_.style)||void 0===t?void 0:t.height)||void 0!==(null===(r=_.style)||void 0===r?void 0:r.maxHeight)?"100%":550,border:"solid 1px rgba(0, 0, 0, 0.15)",borderRadius:8},E=null!=g?g:u.createElement(d.PlaceholderEmbed,Object.assign({url:null!=a?a:i,imageUrl:h,linkText:p,spinner:m,spinnerDisabled:y},v,{style:Object.assign(Object.assign({},k),null==v?void 0:v.style)})),O=null===(n=i.match(/pin\/([\w\d_-]+)/))||void 0===n?void 0:n[1];return u.createElement("div",Object.assign({},_,{className:(0,l.default)("rsme-embed rsme-pinterest-embed",_.className),style:Object.assign({overflow:"hidden",width:null!=s?s:void 0,height:null!=f?f:void 0,borderRadius:8},_.style)}),u.createElement(c.EmbedStyle,null),u.createElement("iframe",{className:(0,l.default)("pinterest-post",!w&&"rsme-d-none"),src:`https://assets.pinterest.com/ext/embed.html?id=${null!=O?O:"000000000000000000"}`,width:"100%",height:w?f:0,frameBorder:"0",scrolling:"no",onLoad:()=>x(!0)}),!w&&!b&&E)}},92051:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TikTokEmbed=void 0;let a=i(r(12524)),o=i(r(2784)),s=r(93937),l=r(48180),u=r(65255),d=r(34075),c=r(9967),f="process-embed",p="confirm-embed-success",h="retrying";t.TikTokEmbed=e=>{var t,r,{url:i,width:m,height:y,linkText:v="View post on TikTok",placeholderImageUrl:g,placeholderSpinner:b,placeholderSpinnerDisabled:_=!1,placeholderProps:w,embedPlaceholder:x,placeholderDisabled:k=!1,scriptLoadDisabled:E=!1,retryDelay:O=5e3,retryDisabled:S=!1,frame:T,debug:P=!1}=e,C=n(e,["url","width","height","linkText","placeholderImageUrl","placeholderSpinner","placeholderSpinnerDisabled","placeholderProps","embedPlaceholder","placeholderDisabled","scriptLoadDisabled","retryDelay","retryDisabled","frame","debug"]);let[j,N]=o.default.useState(f),I=o.default.useRef((0,d.generateUUID)()),[R,A]=o.default.useState(Date.now()),D=o.default.useMemo(()=>`${I.current}-${R}`,[R]),M=(0,l.useFrame)(T);o.default.useEffect(()=>{P&&console.log(`[${new Date().toISOString()}]: ${j}`)},[P,j]),o.default.useEffect(()=>{if(j===f&&M.document&&!E){let e="tiktok-embed-script",t=M.document.getElementById(e);t&&t.remove();let r=M.document.createElement("script");r.setAttribute("src",`https://www.tiktok.com/embed.js?t=${Date.now()}`),r.setAttribute("id",e),M.document.head.appendChild(r),N(p)}},[E,j,M.document]),o.default.useEffect(()=>{let e=new s.Subs;return j!==p||(e.setInterval(()=>{M.document&&!M.document.getElementById(I.current)&&N("embed-success")},1),S||e.setTimeout(()=>{N(h)},O)),e.createCleanup()},[O,S,j,M.document]),o.default.useEffect(()=>{j===h&&(A(Date.now()),N(f))},[j]);let F=i.replace(/[?].*$/,"").replace(/^.+\//,""),L={minWidth:325,maxWidth:480,width:void 0!==m?m:"100%",height:void 0!==y?y:void 0!==(null===(t=C.style)||void 0===t?void 0:t.height)||void 0!==(null===(r=C.style)||void 0===r?void 0:r.maxHeight)?"100%":550,border:"solid 1px rgba(22,24,35,0.12)",borderRadius:8},Z=null!=x?x:o.default.createElement(u.PlaceholderEmbed,Object.assign({url:i,imageUrl:g,linkText:v,spinner:b,spinnerDisabled:_},w,{style:Object.assign(Object.assign({},L),null==w?void 0:w.style)}));return o.default.createElement("div",Object.assign({},C,{className:(0,a.default)("rsme-embed rsme-tiktok-embed",C.className),style:Object.assign({overflow:"hidden",width:null!=m?m:void 0,height:null!=y?y:void 0,borderRadius:8},C.style)}),o.default.createElement(c.EmbedStyle,null),o.default.createElement("div",{className:"tiktok-embed-container"},o.default.createElement("blockquote",{key:D,className:"tiktok-embed",cite:i,"data-video-id":F},k?o.default.createElement("div",{id:I.current,style:{display:"none"}},"\xa0"):o.default.createElement("div",{id:I.current,style:{display:"flex",justifyContent:"center"}},Z))))}},81682:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TwitterEmbed=void 0;let n=r(10573);t.TwitterEmbed=n.XEmbed},10573:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.XEmbed=void 0;let l=s(r(12524)),u=a(r(2784)),d=r(13629),c=r(65255),f=r(9967);t.XEmbed=e=>{var t,r,{url:n,width:i,height:a,linkText:s="View post on X",placeholderImageUrl:p,placeholderSpinner:h,placeholderSpinnerDisabled:m=!1,placeholderProps:y,embedPlaceholder:v,placeholderDisabled:g,twitterTweetEmbedProps:b}=e,_=o(e,["url","width","height","linkText","placeholderImageUrl","placeholderSpinner","placeholderSpinnerDisabled","placeholderProps","embedPlaceholder","placeholderDisabled","twitterTweetEmbedProps"]);let w=n.substring(n.lastIndexOf("/")+1).replace(/[?].*$/,""),x=!!(null==i?void 0:i.toString().includes("%")),k={minWidth:250,maxWidth:550,width:void 0!==i?x?"100%":i:"100%",height:(null==a?void 0:a.toString().includes("%"))?"100%":void 0!==a?a:void 0!==(null===(t=_.style)||void 0===t?void 0:t.height)||void 0!==(null===(r=_.style)||void 0===r?void 0:r.maxHeight)?"100%":350,border:"solid 1px #c9d4d9",borderRadius:12},E=null!=v?v:u.createElement(c.PlaceholderEmbed,Object.assign({url:n,imageUrl:p,linkText:s,spinner:h,spinnerDisabled:m},y,{style:Object.assign(Object.assign({},k),null==y?void 0:y.style)}));return u.createElement("div",Object.assign({},_,{className:(0,l.default)("rsme-embed rsme-twitter-embed",_.className),style:Object.assign({overflow:"hidden",width:null!=i?i:void 0,height:null!=a?a:void 0,borderRadius:12},_.style)}),u.createElement(f.EmbedStyle,null),u.createElement(d.TwitterTweetEmbed,Object.assign({tweetId:w,placeholder:g?void 0:E},b)))}},51959:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=void 0;let l=s(r(12524)),u=a(r(2784)),d=s(r(98268)),c=r(65255),f=r(9967);t.YouTubeEmbed=e=>{var t,r,n,i,a,s,p,h,m,y,v,g,b,{url:_,width:w,height:x,linkText:k="Watch on YouTube",placeholderImageUrl:E,placeholderSpinner:O,placeholderSpinnerDisabled:S=!1,placeholderProps:T,embedPlaceholder:P,placeholderDisabled:C,youTubeProps:j}=e,N=o(e,["url","width","height","linkText","placeholderImageUrl","placeholderSpinner","placeholderSpinnerDisabled","placeholderProps","embedPlaceholder","placeholderDisabled","youTubeProps"]);let[I,R]=u.useState(!1),A=null===(t=_.match(/[?&]v=(.+?)(?:$|[&?])/))||void 0===t?void 0:t[1],D=null===(r=_.match(/https:\/\/(?:www\.)?youtube\.com\/shorts\/(.+?)(?:$|[&?])/))||void 0===r?void 0:r[1],M=null===(n=_.match(/https:\/\/youtu\.be\/(.+?)(?:$|[&?])/))||void 0===n?void 0:n[1],F=null===(i=_.match(/https:\/\/(?:www\.)youtube(-nocookie)?\.com\/embed\/(.+?)(?:$|[&?])/))||void 0===i?void 0:i[2],L=null!==(p=null!==(s=null!==(a=null!=A?A:D)&&void 0!==a?a:M)&&void 0!==s?s:F)&&void 0!==p?p:"00000000",Z=+(null!==(m=null===(h=_.match(/(.+?)(?:$|[&?])start=(\d+)/))||void 0===h?void 0:h[2])&&void 0!==m?m:0),V=!!(null==w?void 0:w.toString().includes("%")),U=!!(null==x?void 0:x.toString().includes("%")),z={};Z&&(z.playerVars={start:Z}),void 0!==w&&(z.width=V?"100%":`${w}`),void 0!==x&&(z.height=U?"100%":`${x}`),z=Object.assign(Object.assign({},z),null==j?void 0:j.opts);let B={maxWidth:V?void 0:640,width:void 0!==w?V?"100%":w:"100%",height:U?"100%":void 0!==x?x:void 0!==(null===(y=N.style)||void 0===y?void 0:y.height)||void 0!==(null===(v=N.style)||void 0===v?void 0:v.maxHeight)?"100%":360,border:"1px solid #dee2e6",borderRadius:0},$=null!=P?P:u.createElement(c.PlaceholderEmbed,Object.assign({url:_,imageUrl:E,linkText:k,spinner:O,spinnerDisabled:S},T,{style:Object.assign(Object.assign({},B),null==T?void 0:T.style)}));return u.createElement("div",Object.assign({},N,{className:(0,l.default)("rsme-embed rsme-youtube-embed",N.className),style:Object.assign({overflow:"hidden",width:null!=w?w:void 0,height:null!=x?x:void 0,borderRadius:0},N.style)}),u.createElement(f.EmbedStyle,null),u.createElement("div",{className:(0,l.default)(!I&&"rsme-d-none")},u.createElement(d.default,Object.assign({},j,{className:null!==(g=null==j?void 0:j.className)&&void 0!==g?g:"youtube-iframe",videoId:null!==(b=null==j?void 0:j.videoId)&&void 0!==b?b:L,opts:z,onReady:e=>{R(!0),j&&j.onReady&&(null==j||j.onReady(e))}}))),!I&&!C&&$)}},48180:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useFrame=void 0;let i=n(r(2784));t.useFrame=e=>i.default.useMemo(()=>e||{document:"undefined"!=typeof document?document:void 0,window:"undefined"!=typeof window?window:void 0},[e])},65255:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaceholderEmbed=void 0;let a=i(r(12524)),o=i(r(2784)),s=r(9967),l=r(32843),u=r(63631),d=r(66594),c=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;t.PlaceholderEmbed=e=>{var t,{url:r,linkText:i="View post",imageUrl:f,spinner:p=o.default.createElement(l.BorderSpinner,null),allowJavaScriptUrls:h=!0,spinnerDisabled:m}=e,y=n(e,["url","linkText","imageUrl","spinner","allowJavaScriptUrls","spinnerDisabled"]);return c.test(r)&&!h?(console.warn("PlaceholderEmbed has blocked a javascript: URL as a security precaution"),null):o.default.createElement("div",Object.assign({},y,{className:(0,a.default)(y.className),style:Object.assign({overflow:"hidden",border:"1px solid #dee2e6",backgroundColor:"#ffffff",borderRadius:0,boxSizing:"border-box",position:"relative"},y.style)}),o.default.createElement(s.EmbedStyle,null),o.default.createElement("a",{href:r,style:{textDecoration:"none"},target:"_blank",rel:"noopener noreferrer"},!f&&o.default.createElement("div",{style:{position:"absolute",top:0,left:0,display:"flex",justifyContent:"space-between",alignItems:"start",paddingLeft:16,paddingRight:16,paddingTop:16,paddingBottom:16,zIndex:2,backgroundColor:"#ffffff"}},o.default.createElement(d.ProfilePlaceholder,null)),o.default.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:f?"start":"center",height:"100%",width:"100%"}},!f&&o.default.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",rowGap:16,zIndex:3,padding:8,backgroundColor:"#ffffff"}},!m&&p,!!i&&o.default.createElement("div",{style:{color:"#000000",fontFamily:"Arial,sans-serif",fontSize:"14px",fontStyle:"normal",fontWeight:550,lineHeight:"18px",textAlign:"center"}},i)),f&&(void 0!==(null===(t=y.style)||void 0===t?void 0:t.height)?o.default.createElement("div",{style:{width:"100%",height:"100%",background:`url("${f}")`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center",marginBottom:"40"}}):o.default.createElement("div",{style:{width:"100%",marginBottom:40}},o.default.createElement("img",{src:f,style:{width:"100%"}})))),o.default.createElement("div",{style:{position:"absolute",bottom:0,left:0,height:40,width:"100%",backgroundColor:"#ffffff",zIndex:1}},!f&&o.default.createElement(u.EngagementIconsPlaceholder,{style:{marginLeft:16}}),f&&o.default.createElement("div",{style:{display:"flex",height:"100%",alignItems:"center",justifyContent:"space-between",columnGap:16}},o.default.createElement("div",{style:{color:"#0095f6",fontWeight:600,fontFamily:"Arial,sans-serif",fontSize:"14px",fontStyle:"normal",whiteSpace:"nowrap",marginLeft:16}},i),!m&&o.default.createElement("div",{style:{marginRight:16}},p)))))}},32843:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BorderSpinner=void 0;let a=i(r(12524)),o=i(r(2784));t.BorderSpinner=e=>{var t=n(e,[]);return o.default.createElement(o.default.Fragment,null,o.default.createElement("style",null,` .rsme-spinner { border: 3px solid rgba(0,0,0,0.75); border-right-color: transparent; border-radius: 50%; animation: rsme-spin 1s linear infinite; } @keyframes rsme-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } `),o.default.createElement("div",Object.assign({},t,{className:(0,a.default)("rsme-spinner",t.className),style:Object.assign({width:10,height:10},t.style)})))}},63631:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShareArrowIcon=t.ChatBubbleIcon=t.HeartIcon=t.EngagementIconsPlaceholder=void 0;let a=i(r(12524)),o=i(r(2784));t.EngagementIconsPlaceholder=e=>{var r=n(e,[]);return o.default.createElement("div",Object.assign({},r,{className:(0,a.default)(r.className),style:Object.assign({display:"flex",alignItems:"center",columnGap:14},r.style)}),o.default.createElement(t.HeartIcon,null),o.default.createElement(t.ChatBubbleIcon,null),o.default.createElement(t.ShareArrowIcon,null))},t.HeartIcon=e=>o.default.createElement("div",Object.assign({},e),o.default.createElement("div",{style:{backgroundColor:"#F4F4F4",borderRadius:"50%",height:"12.5px",width:"12.5px",transform:"translateX(0px) translateY(7px)"}}),o.default.createElement("div",{style:{backgroundColor:"#F4F4F4",height:"12.5px",transform:"rotate(-45deg) translateX(3px) translateY(1px)",width:"12.5px",flexGrow:0,marginRight:"6px",marginLeft:"2px"}}),o.default.createElement("div",{style:{backgroundColor:"#F4F4F4",borderRadius:"50%",height:"12.5px",width:"12.5px",transform:"translateX(9px) translateY(-18px)"}})),t.ChatBubbleIcon=e=>o.default.createElement("div",Object.assign({},e),o.default.createElement("div",{style:{backgroundColor:"#F4F4F4",borderRadius:"50%",height:"20px",width:"20px"}}),o.default.createElement("div",{style:{width:0,height:0,borderTop:"2px solid transparent",borderLeft:"6px solid #f4f4f4",borderBottom:"2px solid transparent",transform:"translateX(16px) translateY(-4px) rotate(30deg)"}})),t.ShareArrowIcon=e=>o.default.createElement("div",Object.assign({},e,{style:{height:25,width:25,transform:"translateX(0px) translateY(-2px)"}}),o.default.createElement("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512",xmlSpace:"preserve"},o.default.createElement("path",{style:{fill:"#F4F4F4"},d:"M295.204,180.593C132.168,180.593,0,312.759,0,475.796\nc51.398-130.047,184.869-203.22,317.483-183.603L295.204,180.593z"}),o.default.createElement("path",{style:{fill:"#F4F4F4"},d:"M512,253L295.204,36.204v217.818C159.946,249.655,34.992,339.262,0,475.794\nc59.905-109.171,178.724-165.463,295.204-151.033v145.035L512,253z"})))},66594:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProfilePlaceholder=void 0;let a=i(r(12524)),o=i(r(2784));t.ProfilePlaceholder=e=>{var t=n(e,[]);return o.default.createElement("div",Object.assign({},t,{className:(0,a.default)(t.className),style:Object.assign({},t.style)}),o.default.createElement("div",{style:{display:"flex",columnGap:14}},o.default.createElement("div",{style:{backgroundColor:"#F4F4F4",borderRadius:"50%",width:40,height:40}}),o.default.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",rowGap:6}},o.default.createElement("div",{style:{backgroundColor:"#F4F4F4",borderRadius:4,width:100,height:14}}),o.default.createElement("div",{style:{backgroundColor:"#F4F4F4",borderRadius:4,width:60,height:14}}))))}},34075:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateUUID=void 0,t.generateUUID=()=>{let e=new Date().getTime(),t="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){let n=16*Math.random();return e>0?(n=(e+n)%16|0,e=Math.floor(e/16)):(n=(t+n)%16|0,t=Math.floor(t/16)),("x"===r?n:3&n|8).toString(16)})}},7694:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(10159),t),i(r(10635),t),i(r(53068),t),i(r(90612),t),i(r(92051),t),i(r(81682),t),i(r(10573),t),i(r(51959),t),i(r(65255),t),i(r(32843),t)},93937:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Subs=t.Subscribe=void 0;class r{static subscribe(e){try{return e()}catch(e){console.error(e)}return()=>{}}static subscribeEvent(e,t,r){return e.addListener(t,r),()=>{e.removeListener(t,r)}}static subscribeDOMEvent(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}static setTimeout(e,t,...r){let n=setTimeout(e,t,r);return()=>clearTimeout(n)}static setInterval(e,t,...r){let n=setInterval(e,t,r);return()=>clearInterval(n)}static unsubAll(e){if(Array.isArray(e))e.forEach(e=>{try{e()}catch(e){console.error(e)}});else try{e()}catch(e){console.error(e)}}static createCleanup(e){return()=>r.unsubAll(e)}}t.Subscribe=r;class n{constructor(e=[]){this.list=e}subscribe(e){let t=r.subscribe(e);return this.push(t),t}subscribeEvent(e,t,n){let i=r.subscribeEvent(e,t,n);return this.push(i),i}subscribeDOMEvent(e,t,n){let i=r.subscribeDOMEvent(e,t,n);return this.push(i),i}setTimeout(e,t,...r){let n=setTimeout(e,t,r),i=()=>clearTimeout(n);return this.push(i),i}setInterval(e,t,...r){let n=setInterval(e,t,r),i=()=>clearInterval(n);return this.push(i),i}push(e){this.list.push(e)}unsubAll(){r.unsubAll(this.list),this.list.splice(0,this.list.length)}createCleanup(){return()=>{this.unsubAll()}}}t.Subs=n},13629:function(e,t,r){"use strict";r.r(t),r.d(t,{TwitterDMButton:function(){return _},TwitterFollowButton:function(){return d},TwitterHashtagButton:function(){return f},TwitterMentionButton:function(){return h},TwitterMomentShare:function(){return g},TwitterOnAirButton:function(){return E},TwitterShareButton:function(){return l},TwitterTimelineEmbed:function(){return o},TwitterTweetEmbed:function(){return y},TwitterVideoEmbed:function(){return x}});var n=r(2784),i="https://platform.twitter.com/widgets.js",a="createTimeline",o=function(e){var t=n.useRef(null),o=n.useState(!0),s=o[0],l=o[1],u=function(){var r,n,i=Object.assign({},e.options);return null!=e&&e.autoHeight&&(i.height=null===(r=t.current)||void 0===r?void 0:null===(n=r.parentNode)||void 0===n?void 0:n.offsetHeight),i=Object.assign({},i,{theme:null==e?void 0:e.theme,linkColor:null==e?void 0:e.linkColor,borderColor:null==e?void 0:e.borderColor,lang:null==e?void 0:e.lang,tweetLimit:null==e?void 0:e.tweetLimit,ariaPolite:null==e?void 0:e.ariaPolite})};return n.useEffect(function(){var n=!0;return r(88391)(i,"twitter-embed",function(){if(!window.twttr){console.error("Failure to load window.twttr, aborting load");return}if(n){if(!window.twttr.widgets[a]){console.error("Method "+a+" is not present anymore in twttr.widget api");return}var r,i=u();(r=i).chrome="",e.noHeader&&(r.chrome=r.chrome+" noheader"),e.noFooter&&(r.chrome=r.chrome+" nofooter"),e.noBorders&&(r.chrome=r.chrome+" noborders"),e.noScrollbar&&(r.chrome=r.chrome+" noscrollbar"),e.transparent&&(r.chrome=r.chrome+" transparent"),i=r,window.twttr.widgets[a]({sourceType:e.sourceType,screenName:e.screenName,userId:e.userId,ownerScreenName:e.ownerScreenName,slug:e.slug,id:e.id||e.widgetId,url:e.url},null==t?void 0:t.current,i).then(function(t){l(!1),e.onLoad&&e.onLoad(t)})}}),function(){n=!1}},[]),n.createElement(n.Fragment,null,s&&n.createElement(n.Fragment,null,e.placeholder),n.createElement("div",{ref:t}))},s="createShareButton",l=function(e){var t=n.useRef(null),a=n.useState(!0),o=a[0],l=a[1];return n.useEffect(function(){var n=!0;return r(88391)(i,"twitter-embed",function(){if(!window.twttr){console.error("Failure to load window.twttr, aborting load");return}if(n){if(!window.twttr.widgets[s]){console.error("Method "+s+" is not present anymore in twttr.widget api");return}window.twttr.widgets[s](e.url,null==t?void 0:t.current,e.options).then(function(t){l(!1),e.onLoad&&e.onLoad(t)})}}),function(){n=!1}},[]),n.createElement(n.Fragment,null,o&&n.createElement(n.Fragment,null,e.placeholder),n.createElement("div",{ref:t}))},u="createFollowButton",d=function(e){var t=n.useRef(null),a=n.useState(!0),o=a[0],s=a[1];return n.useEffect(function(){var n=!0;return r(88391)(i,"twitter-embed",function(){if(!window.twttr){console.error("Failure to load window.twttr, aborting load");return}if(n){if(!window.twttr.widgets[u]){console.error("Method "+u+" is not present anymore in twttr.widget api");return}window.twttr.widgets[u](e.screenName,null==t?void 0:t.current,e.options).then(function(t){s(!1),e.onLoad&&e.onLoad(t)})}}),function(){n=!1}},[]),n.createElement(n.Fragment,null,o&&n.createElement(n.Fragment,null,e.placeholder),n.createElement("div",{ref:t}))},c="createHashtagButton",f=function(e){var t=n.useRef(null),a=n.useState(!0),o=a[0],s=a[1];return n.useEffect(function(){var n=!0;return r(88391)(i,"twitter-embed",function(){if(!window.twttr){console.error("Failure to load window.twttr, aborting load");return}if(n){if(!window.twttr.widgets[c]){console.error("Method "+c+" is not present anymore in twttr.widget api");return}window.twttr.widgets[c](e.tag,null==t?void 0:t.current,e.options).then(function(t){s(!1),e.onLoad&&e.onLoad(t)})}}),function(){n=!1}},[]),n.createElement(n.Fragment,null,o&&n.createElement(n.Fragment,null,e.placeholder),n.createElement("div",{ref:t}))},p="createMentionButton",h=function(e){var t=n.useRef(null),a=n.useState(!0),o=a[0],s=a[1];return n.useEffect(function(){var n=!0;return r(88391)(i,"twitter-embed",function(){if(!window.twttr){console.error("Failure to load window.twttr, aborting load");return}if(n){if(!window.twttr.widgets[p]){console.error("Method "+p+" is not present anymore in twttr.widget api");return}window.twttr.widgets[p](e.screenName,null==t?void 0:t.current,e.options).then(function(t){s(!1),e.onLoad&&e.onLoad(t)})}}),function(){n=!1}},[]),n.createElement(n.Fragment,null,o&&n.createElement(n.Fragment,null,e.placeholder),n.createElement("div",{ref:t}))},m="createTweet",y=function(e){var t=n.useRef(null),a=n.useState(!0),o=a[0],s=a[1];return n.useEffect(function(){var n=!0;return r(88391)(i,"twitter-embed",function(){if(!window.twttr){console.error("Failure to load window.twttr, aborting load");return}if(n){if(!window.twttr.widgets[m]){console.error("Method "+m+" is not present anymore in twttr.widget api");return}window.twttr.widgets[m](e.tweetId,null==t?void 0:t.current,e.options).then(function(t){s(!1),e.onLoad&&e.onLoad(t)})}}),function(){n=!1}},[]),n.createElement(n.Fragment,null,o&&n.createElement(n.Fragment,null,e.placeholder),n.createElement("div",{ref:t}))},v="createMoment",g=function(e){var t=n.useRef(null),a=n.useState(!0),o=a[0],s=a[1];return n.useEffect(function(){var n=!0;return r(88391)(i,"twitter-embed",function(){if(!window.twttr){console.error("Failure to load window.twttr, aborting load");return}if(n){if(!window.twttr.widgets[v]){console.error("Method "+v+" is not present anymore in twttr.widget api");return}window.twttr.widgets[v](e.momentId,null==t?void 0:t.current,e.options).then(function(t){s(!1),e.onLoad&&e.onLoad(t)})}}),function(){n=!1}},[]),n.createElement(n.Fragment,null,o&&n.createElement(n.Fragment,null,e.placeholder),n.createElement("div",{ref:t}))},b="createDMButton",_=function(e){var t=n.useRef(null),a=n.useState(!0),o=a[0],s=a[1];return n.useEffect(function(){var n=!0;return r(88391)(i,"twitter-embed",function(){if(!window.twttr){console.error("Failure to load window.twttr, aborting load");return}if(n){if(!window.twttr.widgets[b]){console.error("Method "+b+" is not present anymore in twttr.widget api");return}window.twttr.widgets[b](e.id,null==t?void 0:t.current,e.options).then(function(t){n&&(s(!1),e.onLoad&&e.onLoad(t))})}}),function(){n=!1}},[]),n.createElement(n.Fragment,null,o&&n.createElement(n.Fragment,null,e.placeholder),n.createElement("div",{ref:t}))},w="createVideo",x=function(e){var t=n.useRef(null),a=n.useState(!0),o=a[0],s=a[1];return n.useEffect(function(){var n=!0;return r(88391)(i,"twitter-embed",function(){if(!window.twttr){console.error("Failure to load window.twttr, aborting load");return}if(n){if(!window.twttr.widgets[w]){console.error("Method "+w+" is not present anymore in twttr.widget api");return}window.twttr.widgets[w](e.id,null==t?void 0:t.current).then(function(t){s(!1),e.onLoad&&e.onLoad(t)})}}),function(){n=!1}},[]),n.createElement(n.Fragment,null,o&&n.createElement(n.Fragment,null,e.placeholder),n.createElement("div",{ref:t}))},k="createPeriscopeOnAirButton",E=function(e){var t=n.useRef(null),a=n.useState(!0),o=a[0],s=a[1];return n.useEffect(function(){var n=!0;return r(88391)(i,"twitter-embed",function(){if(!window.twttr){console.error("Failure to load window.twttr, aborting load");return}if(n){if(!window.twttr.widgets[k]){console.error("Method "+k+" is not present anymore in twttr.widget api");return}window.twttr.widgets[k](e.username,null==t?void 0:t.current,e.options).then(function(t){s(!1),e.onLoad&&e.onLoad(t)})}}),function(){n=!1}},[]),n.createElement(n.Fragment,null,o&&n.createElement(n.Fragment,null,e.placeholder),n.createElement("div",{ref:t}))}},98268:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return k}});var n=r(13980),i=r.n(n),a=r(2784),o=r(69378),s=r.n(o),l=r(55741),u=r.n(l),d=Object.defineProperty,c=Object.defineProperties,f=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,y=(e,t,r)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,v=(e,t)=>{for(var r in t||(t={}))h.call(t,r)&&y(e,r,t[r]);if(p)for(var r of p(t))m.call(t,r)&&y(e,r,t[r]);return e},g=(e,t)=>c(e,f(t)),b=(e,t,r)=>new Promise((n,i)=>{var a=e=>{try{s(r.next(e))}catch(e){i(e)}},o=e=>{try{s(r.throw(e))}catch(e){i(e)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(a,o);s((r=r.apply(e,t)).next())});function _(e={}){return g(v({},e),{height:0,width:0,playerVars:g(v({},e.playerVars),{autoplay:0,start:0,end:0})})}var w={videoId:i().string,id:i().string,className:i().string,iframeClassName:i().string,style:i().object,title:i().string,loading:i().oneOf(["lazy","eager"]),opts:i().objectOf(i().any),onReady:i().func,onError:i().func,onPlay:i().func,onPause:i().func,onEnd:i().func,onStateChange:i().func,onPlaybackRateChange:i().func,onPlaybackQualityChange:i().func},x=class extends a.Component{constructor(e){super(e),this.destroyPlayerPromise=void 0,this.onPlayerReady=e=>{var t,r;return null==(r=(t=this.props).onReady)?void 0:r.call(t,e)},this.onPlayerError=e=>{var t,r;return null==(r=(t=this.props).onError)?void 0:r.call(t,e)},this.onPlayerStateChange=e=>{var t,r,n,i,a,o,s,l;switch(null==(r=(t=this.props).onStateChange)||r.call(t,e),e.data){case x.PlayerState.ENDED:null==(i=(n=this.props).onEnd)||i.call(n,e);break;case x.PlayerState.PLAYING:null==(o=(a=this.props).onPlay)||o.call(a,e);break;case x.PlayerState.PAUSED:null==(l=(s=this.props).onPause)||l.call(s,e)}},this.onPlayerPlaybackRateChange=e=>{var t,r;return null==(r=(t=this.props).onPlaybackRateChange)?void 0:r.call(t,e)},this.onPlayerPlaybackQualityChange=e=>{var t,r;return null==(r=(t=this.props).onPlaybackQualityChange)?void 0:r.call(t,e)},this.destroyPlayer=()=>this.internalPlayer?(this.destroyPlayerPromise=this.internalPlayer.destroy().then(()=>this.destroyPlayerPromise=void 0),this.destroyPlayerPromise):Promise.resolve(),this.createPlayer=()=>{if("undefined"==typeof document)return;if(this.destroyPlayerPromise){this.destroyPlayerPromise.then(this.createPlayer);return}let e=g(v({},this.props.opts),{videoId:this.props.videoId});this.internalPlayer=u()(this.container,e),this.internalPlayer.on("ready",this.onPlayerReady),this.internalPlayer.on("error",this.onPlayerError),this.internalPlayer.on("stateChange",this.onPlayerStateChange),this.internalPlayer.on("playbackRateChange",this.onPlayerPlaybackRateChange),this.internalPlayer.on("playbackQualityChange",this.onPlayerPlaybackQualityChange),(this.props.title||this.props.loading)&&this.internalPlayer.getIframe().then(e=>{this.props.title&&e.setAttribute("title",this.props.title),this.props.loading&&e.setAttribute("loading",this.props.loading)})},this.resetPlayer=()=>this.destroyPlayer().then(this.createPlayer),this.updatePlayer=()=>{var e;null==(e=this.internalPlayer)||e.getIframe().then(e=>{this.props.id?e.setAttribute("id",this.props.id):e.removeAttribute("id"),this.props.iframeClassName?e.setAttribute("class",this.props.iframeClassName):e.removeAttribute("class"),this.props.opts&&this.props.opts.width?e.setAttribute("width",this.props.opts.width.toString()):e.removeAttribute("width"),this.props.opts&&this.props.opts.height?e.setAttribute("height",this.props.opts.height.toString()):e.removeAttribute("height"),this.props.title?e.setAttribute("title",this.props.title):e.setAttribute("title","YouTube video player"),this.props.loading?e.setAttribute("loading",this.props.loading):e.removeAttribute("loading")})},this.getInternalPlayer=()=>this.internalPlayer,this.updateVideo=()=>{var e,t,r,n;if(void 0===this.props.videoId||null===this.props.videoId){null==(e=this.internalPlayer)||e.stopVideo();return}let i=!1,a={videoId:this.props.videoId};if((null==(t=this.props.opts)?void 0:t.playerVars)&&(i=1===this.props.opts.playerVars.autoplay,"start"in this.props.opts.playerVars&&(a.startSeconds=this.props.opts.playerVars.start),"end"in this.props.opts.playerVars&&(a.endSeconds=this.props.opts.playerVars.end)),i){null==(r=this.internalPlayer)||r.loadVideoById(a);return}null==(n=this.internalPlayer)||n.cueVideoById(a)},this.refContainer=e=>{this.container=e},this.container=null,this.internalPlayer=null}componentDidMount(){this.createPlayer()}componentDidUpdate(e){return b(this,null,function*(){var t,r,n,i,a,o;t=this.props,(e.id!==t.id||e.className!==t.className||(null==(r=e.opts)?void 0:r.width)!==(null==(n=t.opts)?void 0:n.width)||(null==(i=e.opts)?void 0:i.height)!==(null==(a=t.opts)?void 0:a.height)||e.iframeClassName!==t.iframeClassName||e.title!==t.title)&&this.updatePlayer(),o=this.props,e.videoId===o.videoId&&s()(_(e.opts),_(o.opts))||(yield this.resetPlayer()),function(e,t){var r,n;if(e.videoId!==t.videoId)return!0;let i=(null==(r=e.opts)?void 0:r.playerVars)||{},a=(null==(n=t.opts)?void 0:n.playerVars)||{};return i.start!==a.start||i.end!==a.end}(e,this.props)&&this.updateVideo()})}componentWillUnmount(){this.destroyPlayer()}render(){return a.createElement("div",{className:this.props.className,style:this.props.style},a.createElement("div",{id:this.props.id,className:this.props.iframeClassName,ref:this.refContainer}))}};x.propTypes=w,x.defaultProps={videoId:"",id:"",className:"",iframeClassName:"",style:{},title:"",loading:void 0,opts:{},onReady:()=>{},onError:()=>{},onPlay:()=>{},onPause:()=>{},onEnd:()=>{},onStateChange:()=>{},onPlaybackRateChange:()=>{},onPlaybackQualityChange:()=>{}},x.PlayerState={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5};var k=x},88391:function(e,t,r){var n,i;i=function(){var e,t,r=document,n=r.getElementsByTagName("head")[0],i="push",a="readyState",o="onreadystatechange",s={},l={},u={},d={};function c(e,t){for(var r=0,n=e.length;r1&&void 0!==arguments[1]&&arguments[1],r={},n=function(n){t&&o.default[n]?r[n]=function(){for(var t=arguments.length,r=Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=(0,i.default)();if(l||(l=(0,a.default)(s)),t.events)throw Error("Event handlers cannot be overwritten.");if("string"==typeof e&&!document.getElementById(e))throw Error('Element "'+e+'" does not exist.');t.events=o.default.proxyEvents(s);var u=new Promise(function(r){(void 0===e?"undefined":n(e))==="object"&&e.playVideo instanceof Function?r(e):l.then(function(n){var i=new n.Player(e,t);return s.on("ready",function(){r(i)}),null})}),d=o.default.promisifyPlayer(u,r);return d.on=s.on,d.off=s.off,d},e.exports=t.default},44213:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=(n=r(9599))&&n.__esModule?n:{default:n};t.default=function(e){return new Promise(function(t){if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function){t(window.YT);return}var r="http:"===window.location.protocol?"http:":"https:";(0,i.default)(r+"//www.youtube.com/iframe_api",function(t){t&&e.trigger("error",t)});var n=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){n&&n(),t(window.YT)}})},e.exports=t.default},15532:function(e,t,r){var n=r(34406);function i(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e}(t=e.exports=r(77920)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),r){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0,a=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(a=i))}),e.splice(a,0,n)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=i,t.useColors=function(){return"undefined"!=typeof window&&!!window.process&&"renderer"===window.process.type||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(i())},77920:function(e,t,r){var n;function i(e){function r(){if(r.enabled){var e=+new Date,i=e-(n||e);r.diff=i,r.prev=n,r.curr=e,n=e;for(var a=Array(arguments.length),o=0;o0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"days":case"day":case"d":return 864e5*r;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*r;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*r;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===n&&!1===isNaN(e))return r.long?t(e,864e5,"day")||t(e,36e5,"hour")||t(e,6e4,"minute")||t(e,1e3,"second")||e+" ms":e>=864e5?Math.round(e/864e5)+"d":e>=36e5?Math.round(e/36e5)+"h":e>=6e4?Math.round(e/6e4)+"m":e>=1e3?Math.round(e/1e3)+"s":e+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},8850:function(e,t){"use strict";/*! * cookie * Copyright(c) 2012-2014 Roman Shtylman * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */t.parse=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var n={},i=e.split(";"),a=(t||{}).decode||r,o=0;ot.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};Object.defineProperty(t,"__esModule",{value:!0}),t.checkCookies=t.hasCookie=t.removeCookies=t.deleteCookie=t.setCookies=t.setCookie=t.getCookie=t.getCookies=void 0;var a=r(8850),o=function(){return"undefined"!=typeof window},s=function(e){void 0===e&&(e="");try{var t=JSON.stringify(e);return/^[\{\[]/.test(t)?t:e}catch(t){return e}};t.getCookies=function(e){if(e&&(t=e.req),!o())return t&&t.cookies?t.cookies:t&&t.headers&&t.headers.cookie?(0,a.parse)(t.headers.cookie):{};for(var t,r={},n=document.cookie?document.cookie.split("; "):[],i=0,s=n.length;i{},s=o(),l=Object,u=e=>e===s,d=e=>"function"==typeof e,c=(e,t)=>({...e,...t}),f=e=>d(e.then),p=new WeakMap,h=0,m=e=>{let t,r;let n=typeof e,i=e&&e.constructor,a=i==Date;if(l(e)!==e||a||i==RegExp)t=a?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=p.get(e))return t;if(t=++h+"~",p.set(e,t),i==Array){for(r=0,t="@";r_&&typeof window.requestAnimationFrame!=b,k=(e,t)=>{let r=y.get(e);return[()=>!u(t)&&e.get(t)||v,n=>{if(!u(t)){let i=e.get(t);t in g||(g[t]=i),r[5](t,c(i,n),i||v)}},r[6],()=>!u(t)&&t in g?g[t]:!u(t)&&e.get(t)||v]},E=!0,[O,S]=_&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[o,o],T={initFocus:e=>(w&&document.addEventListener("visibilitychange",e),O("focus",e),()=>{w&&document.removeEventListener("visibilitychange",e),S("focus",e)}),initReconnect:e=>{let t=()=>{E=!0,e()},r=()=>{E=!1};return O("online",t),O("offline",r),()=>{S("online",t),S("offline",r)}}},P=!i.useId,C=!_||"Deno"in window,j=e=>x()?window.requestAnimationFrame(e):setTimeout(e,1),N=C?i.useEffect:i.useLayoutEffect,I="undefined"!=typeof navigator&&navigator.connection,R=!C&&I&&(["slow-2g","2g"].includes(I.effectiveType)||I.saveData),A=e=>{if(d(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?m(e):"",t]},D=0,M=()=>++D;var F={ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function L(...e){let[t,r,n,i]=e,a=c({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),o=a.populateCache,l=a.rollbackOnError,p=a.optimisticData,h=e=>"function"==typeof l?l(e):!1!==l,m=a.throwOnError;if(d(r)){let e=[];for(let n of t.keys())!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n);return Promise.all(e.map(v))}return v(r);async function v(r){let i;let[l]=A(r);if(!l)return;let[c,v]=k(t,l),[g,b,_,w]=y.get(t),x=()=>{let e=g[l];return(d(a.revalidate)?a.revalidate(c().data,r):!1!==a.revalidate)&&(delete _[l],delete w[l],e&&e[0])?e[0](2).then(()=>c().data):c().data};if(e.length<3)return x();let E=n,O=M();b[l]=[O,0];let S=!u(p),T=c(),P=T.data,C=T._c,j=u(C)?P:C;if(S&&v({data:p=d(p)?p(j,P):p,_c:j}),d(E))try{E=E(j)}catch(e){i=e}if(E&&f(E)){if(E=await E.catch(e=>{i=e}),O!==b[l][0]){if(i)throw i;return E}i&&S&&h(i)&&(o=!0,v({data:j,_c:s}))}if(o&&!i&&(d(o)?v({data:o(E,j),error:s,_c:s}):v({data:E,error:s,_c:s})),b[l][1]=M(),Promise.resolve(x()).then(()=>{v({_c:s})}),i){if(m)throw i;return}return E}}let Z=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},V=(e,t)=>{if(!y.has(e)){let r=c(T,t),n={},i=L.bind(s,e),a=o,l={},u=(e,t)=>{let r=l[e]||[];return l[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},d=(t,r,n)=>{e.set(t,r);let i=l[t];if(i)for(let e of i)e(r,n)},f=()=>{if(!y.has(e)&&(y.set(e,[n,{},{},{},i,d,u]),!C)){let t=r.initFocus(setTimeout.bind(s,Z.bind(s,n,0))),i=r.initReconnect(setTimeout.bind(s,Z.bind(s,n,1)));a=()=>{t&&t(),i&&i(),y.delete(e)}}};return f(),[e,i,f,a]}return[e,y.get(e)[4]]},[U,z]=V(new Map),B=c({onLoadingSlow:o,onSuccess:o,onError:o,onErrorRetry:(e,t,r,n,i)=>{let a=r.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*r.errorRetryInterval;(u(a)||!(o>a))&&setTimeout(n,s,i)},onDiscarded:o,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:R?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:R?5e3:3e3,compare:(e,t)=>m(e)==m(t),isPaused:()=>!1,cache:U,mutate:z,fallback:{}},{isOnline:()=>E,isVisible:()=>{let e=w&&document.visibilityState;return u(e)||"hidden"!==e}}),$=(e,t)=>{let r=c(e,t);if(t){let{use:n,fallback:i}=e,{use:a,fallback:o}=t;n&&a&&(r.use=n.concat(a)),i&&o&&(r.fallback=c(i,o))}return r},W=(0,i.createContext)({}),H=_&&window.__SWR_DEVTOOLS_USE__,q=H?window.__SWR_DEVTOOLS_USE__:[],Y=e=>d(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],K=()=>c(B,(0,i.useContext)(W)),G=q.concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let[n]=A(t),[,,,i]=y.get(U);if(n.startsWith("$inf$"))return r(...e);let a=i[n];return u(a)?r(...e):(delete i[n],a)});return e(t,i,n)}),X=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}};H&&(window.__SWR_DEVTOOLS_REACT__=i);let J=i.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),Q={dedupe:!0},ee=l.defineProperty(e=>{let{value:t}=e,r=(0,i.useContext)(W),n=d(t),a=(0,i.useMemo)(()=>n?t(r):t,[n,r,t]),o=(0,i.useMemo)(()=>n?a:$(r,a),[n,r,a]),l=a&&a.provider,u=(0,i.useRef)(s);l&&!u.current&&(u.current=V(l(o.cache||U),a));let f=u.current;return f&&(o.cache=f[0],o.mutate=f[1]),N(()=>{if(f)return f[2]&&f[2](),f[3]},[]),(0,i.createElement)(W.Provider,c(e,{value:o}))},"defaultValue",{value:B}),et=(n=(e,t,r)=>{let{cache:n,compare:o,suspense:l,fallbackData:f,revalidateOnMount:p,revalidateIfStale:h,refreshInterval:m,refreshWhenHidden:v,refreshWhenOffline:g,keepPreviousData:b}=r,[_,w,x,E]=y.get(n),[O,S]=A(e),T=(0,i.useRef)(!1),I=(0,i.useRef)(!1),R=(0,i.useRef)(O),D=(0,i.useRef)(t),Z=(0,i.useRef)(r),V=()=>Z.current,U=()=>V().isVisible()&&V().isOnline(),[z,B,$,W]=k(n,O),H=(0,i.useRef)({}).current,q=u(f)?r.fallback[O]:f,Y=(e,t)=>{for(let r in H)if("data"===r){if(!o(e[r],t[r])&&(!u(e[r])||!o(eo,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},K=(0,i.useMemo)(()=>{let e=!!O&&!!t&&(u(p)?!V().isPaused()&&!l&&(!!u(h)||h):p),r=t=>{let r=c(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=z(),i=W(),a=r(n),o=n===i?a:r(i),s=a;return[()=>{let e=r(z());return Y(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>o]},[n,O]),G=(0,a.useSyncExternalStore)((0,i.useCallback)(e=>$(O,(t,r)=>{Y(r,t)||e()}),[n,O]),K[0],K[1]),ee=!T.current,et=_[O]&&_[O].length>0,er=G.data,en=u(er)?q:er,ei=G.error,ea=(0,i.useRef)(en),eo=b?u(er)?ea.current:er:en,es=(!et||!!u(ei))&&(ee&&!u(p)?p:!V().isPaused()&&(l?!u(en)&&h:u(en)||h)),el=!!(O&&t&&ee&&es),eu=u(G.isValidating)?el:G.isValidating,ed=u(G.isLoading)?el:G.isLoading,ec=(0,i.useCallback)(async e=>{let t,n;let i=D.current;if(!O||!i||I.current||V().isPaused())return!1;let a=!0,l=e||{},c=!x[O]||!l.dedupe,f=()=>P?!I.current&&O===R.current&&T.current:O===R.current,p={isValidating:!1,isLoading:!1},h=()=>{B(p)},m=()=>{let e=x[O];e&&e[1]===n&&delete x[O]},y={isValidating:!0};u(z().data)&&(y.isLoading=!0);try{if(c&&(B(y),r.loadingTimeout&&u(z().data)&&setTimeout(()=>{a&&f()&&V().onLoadingSlow(O,r)},r.loadingTimeout),x[O]=[i(S),M()]),[t,n]=x[O],t=await t,c&&setTimeout(m,r.dedupingInterval),!x[O]||x[O][1]!==n)return c&&f()&&V().onDiscarded(O),!1;p.error=s;let e=w[O];if(!u(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return h(),c&&f()&&V().onDiscarded(O),!1;let l=z().data;p.data=o(l,t)?l:t,c&&f()&&V().onSuccess(t,O,r)}catch(r){m();let e=V(),{shouldRetryOnError:t}=e;!e.isPaused()&&(p.error=r,c&&f()&&(e.onError(r,O,e),(!0===t||d(t)&&t(r))&&(!V().revalidateOnFocus||!V().revalidateOnReconnect||U())&&e.onErrorRetry(r,O,e,e=>{let t=_[O];t&&t[0]&&t[0](F.ERROR_REVALIDATE_EVENT,e)},{retryCount:(l.retryCount||0)+1,dedupe:!0})))}return a=!1,h(),!0},[O,n]),ef=(0,i.useCallback)((...e)=>L(n,R.current,...e),[]);if(N(()=>{D.current=t,Z.current=r,u(er)||(ea.current=er)}),N(()=>{if(!O)return;let e=ec.bind(s,Q),t=0,r=X(O,_,(r,n={})=>{if(r==F.FOCUS_EVENT){let r=Date.now();V().revalidateOnFocus&&r>t&&U()&&(t=r+V().focusThrottleInterval,e())}else if(r==F.RECONNECT_EVENT)V().revalidateOnReconnect&&U()&&e();else if(r==F.MUTATE_EVENT)return ec();else if(r==F.ERROR_REVALIDATE_EVENT)return ec(n)});return I.current=!1,R.current=O,T.current=!0,B({_k:S}),es&&(u(en)||C?e():j(e)),()=>{I.current=!0,r()}},[O]),N(()=>{let e;function t(){let t=d(m)?m(z().data):m;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!z().error&&(v||V().isVisible())&&(g||V().isOnline())?ec(Q).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[m,v,g,O]),(0,i.useDebugValue)(eo),l&&u(en)&&O){if(!P&&C)throw Error("Fallback data is required when using suspense in SSR.");D.current=t,Z.current=r,I.current=!1;let e=E[O];if(u(e)||J(ef(e)),u(ei)){let e=ec(Q);u(eo)||(e.status="fulfilled",e.value=!0),J(e)}else throw ei}return{mutate:ef,get data(){return H.data=!0,eo},get error(){return H.error=!0,ei},get isValidating(){return H.isValidating=!0,eu},get isLoading(){return H.isLoading=!0,ed}}},function(...e){let t=K(),[r,i,a]=Y(e),o=$(t,a),s=n,{use:l}=o,u=(l||[]).concat(G);for(let e=u.length;e--;)s=u[e](s);return s(r,i||o.fetcher||null,o)})},30195:function(e,t,r){"use strict";let n;r.d(t,{ZP:function(){return ts}}),(e6=tt||(tt={})).assertEqual=e=>e,e6.assertIs=function(e){},e6.assertNever=function(e){throw Error()},e6.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},e6.getValidEnumValues=e=>{let t=e6.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let n of t)r[n]=e[n];return e6.objectValues(r)},e6.objectValues=e=>e6.objectKeys(e).map(function(t){return e[t]}),e6.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e6.find=(e,t)=>{for(let r of e)if(t(r))return r},e6.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e6.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e6.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(tr||(tr={})).mergeShapes=(e,t)=>({...e,...t});let i=tt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),a=e=>{switch(typeof e){case"undefined":return i.undefined;case"string":return i.string;case"number":return isNaN(e)?i.nan:i.number;case"boolean":return i.boolean;case"function":return i.function;case"bigint":return i.bigint;case"symbol":return i.symbol;case"object":if(Array.isArray(e))return i.array;if(null===e)return i.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return i.promise;if("undefined"!=typeof Map&&e instanceof Map)return i.map;if("undefined"!=typeof Set&&e instanceof Set)return i.set;if("undefined"!=typeof Date&&e instanceof Date)return i.date;return i.object;default:return i.unknown}},o=tt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class s extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;ne.message){let t={},r=[];for(let n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}s.create=e=>new s(e);let l=(e,t)=>{let r;switch(e.code){case o.invalid_type:r=e.received===i.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case o.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,tt.jsonStringifyReplacer)}`;break;case o.unrecognized_keys:r=`Unrecognized key(s) in object: ${tt.joinValues(e.keys,", ")}`;break;case o.invalid_union:r="Invalid input";break;case o.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${tt.joinValues(e.options)}`;break;case o.invalid_enum_value:r=`Invalid enum value. Expected ${tt.joinValues(e.options)}, received '${e.received}'`;break;case o.invalid_arguments:r="Invalid function arguments";break;case o.invalid_return_type:r="Invalid function return type";break;case o.invalid_date:r="Invalid date";break;case o.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:tt.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case o.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case o.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case o.custom:r="Invalid input";break;case o.invalid_intersection_types:r="Intersection results could not be merged";break;case o.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case o.not_finite:r="Number must be finite";break;default:r=t.defaultError,tt.assertNever(e)}return{message:r}},u=l;function d(){return u}let c=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,a=[...r,...i.path||[]],o={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let s="";for(let e of n.filter(e=>!!e).slice().reverse())s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function f(e,t){let r=d(),n=c({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===l?void 0:l].filter(e=>!!e)});e.common.issues.push(n)}class p{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return h;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return p.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return h;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let h=Object.freeze({status:"aborted"}),m=e=>({status:"dirty",value:e}),y=e=>({status:"valid",value:e}),v=e=>"aborted"===e.status,g=e=>"dirty"===e.status,b=e=>"valid"===e.status,_=e=>"undefined"!=typeof Promise&&e instanceof Promise;function w(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function x(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}"function"==typeof SuppressedError&&SuppressedError,(e7=tn||(tn={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},e7.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class k{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let E=(e,t)=>{if(b(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new s(e.common.issues);return this._error=t,this._error}}};function O(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{var a,o;let{message:s}=e;return"invalid_enum_value"===t.code?{message:null!=s?s:i.defaultError}:void 0===i.data?{message:null!==(a=null!=s?s:n)&&void 0!==a?a:i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:null!==(o=null!=s?s:r)&&void 0!==o?o:i.defaultError}},description:i}}class S{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return a(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new p,ctx:{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(_(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;let n={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},i=this._parseSync({data:e,path:n.path,parent:n});return E(n,i)}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},n=this._parse({data:e,path:r.path,parent:r});return E(r,await (_(n)?n:Promise.resolve(n)))}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{let i=e(t),a=()=>n.addIssue({code:o.custom,...r(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new ey({schema:this,typeName:to.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return ev.create(this,this._def)}nullable(){return eg.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Q.create(this,this._def)}promise(){return em.create(this,this._def)}or(e){return et.create([this,e],this._def)}and(e){return ei.create(this,e,this._def)}transform(e){return new ey({...O(this._def),schema:this,typeName:to.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eb({...O(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:to.ZodDefault})}brand(){return new ek({typeName:to.ZodBranded,type:this,...O(this._def)})}catch(e){return new e_({...O(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:to.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eE.create(this,e)}readonly(){return eO.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let T=/^c[^\s-]{8,}$/i,P=/^[0-9a-z]+$/,C=/^[0-9A-HJKMNP-TV-Z]{26}$/,j=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,N=/^[a-z0-9_-]{21}$/i,I=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,R=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,A=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,D=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,M=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,F="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",L=RegExp(`^${F}$`);function Z(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function V(e){let t=`${F}T${Z(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}class U extends S{_parse(e){var t,r;let a;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==i.string){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.string,received:t.parsedType}),h}let s=new p;for(let i of this._def.checks)if("min"===i.kind)e.data.lengthi.value&&(f(a=this._getOrReturnCtx(e,a),{code:o.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if("length"===i.kind){let t=e.data.length>i.value,r=e.data.lengthe.test(t),{validation:t,code:o.invalid_string,...tn.errToObj(r)})}_addCheck(e){return new U({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...tn.errToObj(e)})}url(e){return this._addCheck({kind:"url",...tn.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...tn.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...tn.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...tn.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...tn.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...tn.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...tn.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...tn.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...tn.errToObj(e)})}datetime(e){var t,r;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(r=null==e?void 0:e.local)&&void 0!==r&&r,...tn.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...tn.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...tn.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...tn.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...tn.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...tn.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...tn.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...tn.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...tn.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...tn.errToObj(t)})}nonempty(e){return this.min(1,tn.errToObj(e))}trim(){return new U({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new U({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new U({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value{var t;return new U({checks:[],typeName:to.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...O(e)})};class z extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==i.number){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.number,received:t.parsedType}),h}let r=new p;for(let n of this._def.checks)"int"===n.kind?tt.isInteger(e.data)||(f(t=this._getOrReturnCtx(e,t),{code:o.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.datan.value:e.data>=n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:o.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}(e.data,n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:o.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(f(t=this._getOrReturnCtx(e,t),{code:o.not_finite,message:n.message}),r.dirty()):tt.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,tn.toString(t))}gt(e,t){return this.setLimit("min",e,!1,tn.toString(t))}lte(e,t){return this.setLimit("max",e,!0,tn.toString(t))}lt(e,t){return this.setLimit("max",e,!1,tn.toString(t))}setLimit(e,t,r,n){return new z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:tn.toString(n)}]})}_addCheck(e){return new z({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:tn.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:tn.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:tn.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:tn.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:tn.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:tn.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:tn.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:tn.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:tn.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind||"multipleOf"===e.kind&&tt.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.valuenew z({checks:[],typeName:to.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...O(e)});class B extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==i.bigint){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.bigint,received:t.parsedType}),h}let r=new p;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.datan.value:e.data>=n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:o.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(f(t=this._getOrReturnCtx(e,t),{code:o.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):tt.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,tn.toString(t))}gt(e,t){return this.setLimit("min",e,!1,tn.toString(t))}lte(e,t){return this.setLimit("max",e,!0,tn.toString(t))}lt(e,t){return this.setLimit("max",e,!1,tn.toString(t))}setLimit(e,t,r,n){return new B({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:tn.toString(n)}]})}_addCheck(e){return new B({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:tn.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:tn.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:tn.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:tn.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:tn.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value{var t;return new B({checks:[],typeName:to.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...O(e)})};class $ extends S{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==i.boolean){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.boolean,received:t.parsedType}),h}return y(e.data)}}$.create=e=>new $({typeName:to.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...O(e)});class W extends S{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==i.date){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.date,received:t.parsedType}),h}if(isNaN(e.data.getTime()))return f(this._getOrReturnCtx(e),{code:o.invalid_date}),h;let r=new p;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()n.value&&(f(t=this._getOrReturnCtx(e,t),{code:o.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):tt.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new W({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:tn.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:tn.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew W({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:to.ZodDate,...O(e)});class H extends S{_parse(e){if(this._getType(e)!==i.symbol){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.symbol,received:t.parsedType}),h}return y(e.data)}}H.create=e=>new H({typeName:to.ZodSymbol,...O(e)});class q extends S{_parse(e){if(this._getType(e)!==i.undefined){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.undefined,received:t.parsedType}),h}return y(e.data)}}q.create=e=>new q({typeName:to.ZodUndefined,...O(e)});class Y extends S{_parse(e){if(this._getType(e)!==i.null){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.null,received:t.parsedType}),h}return y(e.data)}}Y.create=e=>new Y({typeName:to.ZodNull,...O(e)});class K extends S{constructor(){super(...arguments),this._any=!0}_parse(e){return y(e.data)}}K.create=e=>new K({typeName:to.ZodAny,...O(e)});class G extends S{constructor(){super(...arguments),this._unknown=!0}_parse(e){return y(e.data)}}G.create=e=>new G({typeName:to.ZodUnknown,...O(e)});class X extends S{_parse(e){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.never,received:t.parsedType}),h}}X.create=e=>new X({typeName:to.ZodNever,...O(e)});class J extends S{_parse(e){if(this._getType(e)!==i.undefined){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.void,received:t.parsedType}),h}return y(e.data)}}J.create=e=>new J({typeName:to.ZodVoid,...O(e)});class Q extends S{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==i.array)return f(t,{code:o.invalid_type,expected:i.array,received:t.parsedType}),h;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.lengthn.maxLength.value&&(f(t,{code:o.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new k(t,e,t.path,r)))).then(e=>p.mergeArray(r,e));let a=[...t.data].map((e,r)=>n.type._parseSync(new k(t,e,t.path,r)));return p.mergeArray(r,a)}get element(){return this._def.type}min(e,t){return new Q({...this._def,minLength:{value:e,message:tn.toString(t)}})}max(e,t){return new Q({...this._def,maxLength:{value:e,message:tn.toString(t)}})}length(e,t){return new Q({...this._def,exactLength:{value:e,message:tn.toString(t)}})}nonempty(e){return this.min(1,e)}}Q.create=(e,t)=>new Q({type:e,minLength:null,maxLength:null,exactLength:null,typeName:to.ZodArray,...O(t)});class ee extends S{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=tt.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==i.object){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.object,received:t.parsedType}),h}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof X&&"strip"===this._def.unknownKeys))for(let e in r.data)a.includes(e)||s.push(e);let l=[];for(let e of a){let t=n[e],i=r.data[e];l.push({key:{status:"valid",value:e},value:t._parse(new k(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof X){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of s)l.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)s.length>0&&(f(r,{code:o.unrecognized_keys,keys:s}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of s){let n=r.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new k(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of l){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>p.mergeObjectSync(t,e)):p.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return tn.errToObj,new ee({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var n,i,a,o;let s=null!==(a=null===(i=(n=this._def).errorMap)||void 0===i?void 0:i.call(n,t,r).message)&&void 0!==a?a:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(o=tn.errToObj(e).message)&&void 0!==o?o:s}:{message:s}}}:{}})}strip(){return new ee({...this._def,unknownKeys:"strip"})}passthrough(){return new ee({...this._def,unknownKeys:"passthrough"})}extend(e){return new ee({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ee({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:to.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ee({...this._def,catchall:e})}pick(e){let t={};return tt.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])}),new ee({...this._def,shape:()=>t})}omit(e){let t={};return tt.objectKeys(this.shape).forEach(r=>{e[r]||(t[r]=this.shape[r])}),new ee({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof ee){let r={};for(let n in t.shape){let i=t.shape[n];r[n]=ev.create(e(i))}return new ee({...t._def,shape:()=>r})}return t instanceof Q?new Q({...t._def,type:e(t.element)}):t instanceof ev?ev.create(e(t.unwrap())):t instanceof eg?eg.create(e(t.unwrap())):t instanceof ea?ea.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};return tt.objectKeys(this.shape).forEach(r=>{let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}),new ee({...this._def,shape:()=>t})}required(e){let t={};return tt.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof ev;)e=e._def.innerType;t[r]=e}}),new ee({...this._def,shape:()=>t})}keyof(){return ef(tt.objectKeys(this.shape))}}ee.create=(e,t)=>new ee({shape:()=>e,unknownKeys:"strip",catchall:X.create(),typeName:to.ZodObject,...O(t)}),ee.strictCreate=(e,t)=>new ee({shape:()=>e,unknownKeys:"strict",catchall:X.create(),typeName:to.ZodObject,...O(t)}),ee.lazycreate=(e,t)=>new ee({shape:e,unknownKeys:"strip",catchall:X.create(),typeName:to.ZodObject,...O(t)});class et extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new s(e.ctx.common.issues));return f(t,{code:o.invalid_union,unionErrors:r}),h});{let e;let n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new s(e));return f(t,{code:o.invalid_union,unionErrors:i}),h}}get options(){return this._def.options}}et.create=(e,t)=>new et({options:e,typeName:to.ZodUnion,...O(t)});let er=e=>{if(e instanceof ed)return er(e.schema);if(e instanceof ey)return er(e.innerType());if(e instanceof ec)return[e.value];if(e instanceof ep)return e.options;if(e instanceof eh)return tt.objectValues(e.enum);if(e instanceof eb)return er(e._def.innerType);if(e instanceof q)return[void 0];else if(e instanceof Y)return[null];else if(e instanceof ev)return[void 0,...er(e.unwrap())];else if(e instanceof eg)return[null,...er(e.unwrap())];else if(e instanceof ek)return er(e.unwrap());else if(e instanceof eO)return er(e.unwrap());else if(e instanceof e_)return er(e._def.innerType);else return[]};class en extends S{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.object)return f(t,{code:o.invalid_type,expected:i.object,received:t.parsedType}),h;let r=this.discriminator,n=t.data[r],a=this.optionsMap.get(n);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):(f(t,{code:o.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),h)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=er(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new en({typeName:to.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...O(r)})}}class ei extends S{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(v(e)||v(n))return h;let s=function e(t,r){let n=a(t),o=a(r);if(t===r)return{valid:!0,data:t};if(n===i.object&&o===i.object){let n=tt.objectKeys(r),i=tt.objectKeys(t).filter(e=>-1!==n.indexOf(e)),a={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1};a[n]=i.data}return{valid:!0,data:a}}if(n===i.array&&o===i.array){if(t.length!==r.length)return{valid:!1};let n=[];for(let i=0;in(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ei.create=(e,t,r)=>new ei({left:e,right:t,typeName:to.ZodIntersection,...O(r)});class ea extends S{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.array)return f(r,{code:o.invalid_type,expected:i.array,received:r.parsedType}),h;if(r.data.lengththis._def.items.length&&(f(r,{code:o.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new k(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>p.mergeArray(t,e)):p.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new ea({...this._def,rest:e})}}ea.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ea({items:e,typeName:to.ZodTuple,rest:null,...O(t)})};class eo extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.object)return f(r,{code:o.invalid_type,expected:i.object,received:r.parsedType}),h;let n=[],a=this._def.keyType,s=this._def.valueType;for(let e in r.data)n.push({key:a._parse(new k(r,e,r.path,e)),value:s._parse(new k(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?p.mergeObjectAsync(t,n):p.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new eo(t instanceof S?{keyType:e,valueType:t,typeName:to.ZodRecord,...O(r)}:{keyType:U.create(),valueType:e,typeName:to.ZodRecord,...O(t)})}}class es extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.map)return f(r,{code:o.invalid_type,expected:i.map,received:r.parsedType}),h;let n=this._def.keyType,a=this._def.valueType,s=[...r.data.entries()].map(([e,t],i)=>({key:n._parse(new k(r,e,r.path,[i,"key"])),value:a._parse(new k(r,t,r.path,[i,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of s){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return h;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of s){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return h;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}es.create=(e,t,r)=>new es({valueType:t,keyType:e,typeName:to.ZodMap,...O(r)});class el extends S{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.set)return f(r,{code:o.invalid_type,expected:i.set,received:r.parsedType}),h;let n=this._def;null!==n.minSize&&r.data.sizen.maxSize.value&&(f(r,{code:o.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let a=this._def.valueType;function s(e){let r=new Set;for(let n of e){if("aborted"===n.status)return h;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let l=[...r.data.values()].map((e,t)=>a._parse(new k(r,e,r.path,t)));return r.common.async?Promise.all(l).then(e=>s(e)):s(l)}min(e,t){return new el({...this._def,minSize:{value:e,message:tn.toString(t)}})}max(e,t){return new el({...this._def,maxSize:{value:e,message:tn.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}el.create=(e,t)=>new el({valueType:e,minSize:null,maxSize:null,typeName:to.ZodSet,...O(t)});class eu extends S{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.function)return f(t,{code:o.invalid_type,expected:i.function,received:t.parsedType}),h;function r(e,r){return c({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),l].filter(e=>!!e),issueData:{code:o.invalid_arguments,argumentsError:r}})}function n(e,r){return c({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),l].filter(e=>!!e),issueData:{code:o.invalid_return_type,returnTypeError:r}})}let a={errorMap:t.common.contextualErrorMap},u=t.data;if(this._def.returns instanceof em){let e=this;return y(async function(...t){let i=new s([]),o=await e._def.args.parseAsync(t,a).catch(e=>{throw i.addIssue(r(t,e)),i}),l=await Reflect.apply(u,this,o);return await e._def.returns._def.type.parseAsync(l,a).catch(e=>{throw i.addIssue(n(l,e)),i})})}{let e=this;return y(function(...t){let i=e._def.args.safeParse(t,a);if(!i.success)throw new s([r(t,i.error)]);let o=Reflect.apply(u,this,i.data),l=e._def.returns.safeParse(o,a);if(!l.success)throw new s([n(o,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eu({...this._def,args:ea.create(e).rest(G.create())})}returns(e){return new eu({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new eu({args:e||ea.create([]).rest(G.create()),returns:t||G.create(),typeName:to.ZodFunction,...O(r)})}}class ed extends S{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ed.create=(e,t)=>new ed({getter:e,typeName:to.ZodLazy,...O(t)});class ec extends S{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return f(t,{received:t.data,code:o.invalid_literal,expected:this._def.value}),h}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ef(e,t){return new ep({values:e,typeName:to.ZodEnum,...O(t)})}ec.create=(e,t)=>new ec({value:e,typeName:to.ZodLiteral,...O(t)});class ep extends S{constructor(){super(...arguments),ti.set(this,void 0)}_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return f(t,{expected:tt.joinValues(r),received:t.parsedType,code:o.invalid_type}),h}if(w(this,ti,"f")||x(this,ti,new Set(this._def.values),"f"),!w(this,ti,"f").has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return f(t,{received:t.data,code:o.invalid_enum_value,options:r}),h}return y(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ep.create(e,{...this._def,...t})}exclude(e,t=this._def){return ep.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}ti=new WeakMap,ep.create=ef;class eh extends S{constructor(){super(...arguments),ta.set(this,void 0)}_parse(e){let t=tt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==i.string&&r.parsedType!==i.number){let e=tt.objectValues(t);return f(r,{expected:tt.joinValues(e),received:r.parsedType,code:o.invalid_type}),h}if(w(this,ta,"f")||x(this,ta,new Set(tt.getValidEnumValues(this._def.values)),"f"),!w(this,ta,"f").has(e.data)){let e=tt.objectValues(t);return f(r,{received:r.data,code:o.invalid_enum_value,options:e}),h}return y(e.data)}get enum(){return this._def.values}}ta=new WeakMap,eh.create=(e,t)=>new eh({values:e,typeName:to.ZodNativeEnum,...O(t)});class em extends S{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==i.promise&&!1===t.common.async?(f(t,{code:o.invalid_type,expected:i.promise,received:t.parsedType}),h):y((t.parsedType===i.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}em.create=(e,t)=>new em({type:e,typeName:to.ZodPromise,...O(t)});class ey extends S{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===to.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{f(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return h;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?h:"dirty"===n.status||"dirty"===t.value?m(n.value):n});{if("aborted"===t.value)return h;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?h:"dirty"===n.status||"dirty"===t.value?m(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?h:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?h:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type){if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>b(e)?Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!b(e))return e;let a=n.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}}tt.assertNever(n)}}ey.create=(e,t,r)=>new ey({schema:e,typeName:to.ZodEffects,effect:t,...O(r)}),ey.createWithPreprocess=(e,t,r)=>new ey({schema:t,effect:{type:"preprocess",transform:e},typeName:to.ZodEffects,...O(r)});class ev extends S{_parse(e){return this._getType(e)===i.undefined?y(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ev.create=(e,t)=>new ev({innerType:e,typeName:to.ZodOptional,...O(t)});class eg extends S{_parse(e){return this._getType(e)===i.null?y(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eg.create=(e,t)=>new eg({innerType:e,typeName:to.ZodNullable,...O(t)});class eb extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===i.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eb.create=(e,t)=>new eb({innerType:e,typeName:to.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...O(t)});class e_ extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return _(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new s(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new s(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}e_.create=(e,t)=>new e_({innerType:e,typeName:to.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...O(t)});class ew extends S{_parse(e){if(this._getType(e)!==i.nan){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.nan,received:t.parsedType}),h}return{status:"valid",value:e.data}}}ew.create=e=>new ew({typeName:to.ZodNaN,...O(e)});let ex=Symbol("zod_brand");class ek extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class eE extends S{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),m(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eE({in:e,out:t,typeName:to.ZodPipeline})}}class eO extends S{_parse(e){let t=this._def.innerType._parse(e),r=e=>(b(e)&&(e.value=Object.freeze(e.value)),e);return _(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}function eS(e,t={},r){return e?K.create().superRefine((n,i)=>{var a,o;if(!e(n)){let e="function"==typeof t?t(n):"string"==typeof t?{message:t}:t,s=null===(o=null!==(a=e.fatal)&&void 0!==a?a:r)||void 0===o||o;i.addIssue({code:"custom",..."string"==typeof e?{message:e}:e,fatal:s})}}):K.create()}eO.create=(e,t)=>new eO({innerType:e,typeName:to.ZodReadonly,...O(t)});let eT={object:ee.lazycreate};(te=to||(to={})).ZodString="ZodString",te.ZodNumber="ZodNumber",te.ZodNaN="ZodNaN",te.ZodBigInt="ZodBigInt",te.ZodBoolean="ZodBoolean",te.ZodDate="ZodDate",te.ZodSymbol="ZodSymbol",te.ZodUndefined="ZodUndefined",te.ZodNull="ZodNull",te.ZodAny="ZodAny",te.ZodUnknown="ZodUnknown",te.ZodNever="ZodNever",te.ZodVoid="ZodVoid",te.ZodArray="ZodArray",te.ZodObject="ZodObject",te.ZodUnion="ZodUnion",te.ZodDiscriminatedUnion="ZodDiscriminatedUnion",te.ZodIntersection="ZodIntersection",te.ZodTuple="ZodTuple",te.ZodRecord="ZodRecord",te.ZodMap="ZodMap",te.ZodSet="ZodSet",te.ZodFunction="ZodFunction",te.ZodLazy="ZodLazy",te.ZodLiteral="ZodLiteral",te.ZodEnum="ZodEnum",te.ZodEffects="ZodEffects",te.ZodNativeEnum="ZodNativeEnum",te.ZodOptional="ZodOptional",te.ZodNullable="ZodNullable",te.ZodDefault="ZodDefault",te.ZodCatch="ZodCatch",te.ZodPromise="ZodPromise",te.ZodBranded="ZodBranded",te.ZodPipeline="ZodPipeline",te.ZodReadonly="ZodReadonly";let eP=U.create,eC=z.create,ej=ew.create,eN=B.create,eI=$.create,eR=W.create,eA=H.create,eD=q.create,eM=Y.create,eF=K.create,eL=G.create,eZ=X.create,eV=J.create,eU=Q.create,ez=ee.create,eB=ee.strictCreate,e$=et.create,eW=en.create,eH=ei.create,eq=ea.create,eY=eo.create,eK=es.create,eG=el.create,eX=eu.create,eJ=ed.create,eQ=ec.create,e0=ep.create,e1=eh.create,e2=em.create,e5=ey.create,e4=ev.create,e9=eg.create,e3=ey.createWithPreprocess,e8=eE.create;var e6,e7,te,tt,tr,tn,ti,ta,to,ts=Object.freeze({__proto__:null,defaultErrorMap:l,setErrorMap:function(e){u=e},getErrorMap:d,makeIssue:c,EMPTY_PATH:[],addIssueToContext:f,ParseStatus:p,INVALID:h,DIRTY:m,OK:y,isAborted:v,isDirty:g,isValid:b,isAsync:_,get util(){return tt},get objectUtil(){return tr},ZodParsedType:i,getParsedType:a,ZodType:S,datetimeRegex:V,ZodString:U,ZodNumber:z,ZodBigInt:B,ZodBoolean:$,ZodDate:W,ZodSymbol:H,ZodUndefined:q,ZodNull:Y,ZodAny:K,ZodUnknown:G,ZodNever:X,ZodVoid:J,ZodArray:Q,ZodObject:ee,ZodUnion:et,ZodDiscriminatedUnion:en,ZodIntersection:ei,ZodTuple:ea,ZodRecord:eo,ZodMap:es,ZodSet:el,ZodFunction:eu,ZodLazy:ed,ZodLiteral:ec,ZodEnum:ep,ZodNativeEnum:eh,ZodPromise:em,ZodEffects:ey,ZodTransformer:ey,ZodOptional:ev,ZodNullable:eg,ZodDefault:eb,ZodCatch:e_,ZodNaN:ew,BRAND:ex,ZodBranded:ek,ZodPipeline:eE,ZodReadonly:eO,custom:eS,Schema:S,ZodSchema:S,late:eT,get ZodFirstPartyTypeKind(){return to},coerce:{string:e=>U.create({...e,coerce:!0}),number:e=>z.create({...e,coerce:!0}),boolean:e=>$.create({...e,coerce:!0}),bigint:e=>B.create({...e,coerce:!0}),date:e=>W.create({...e,coerce:!0})},any:eF,array:eU,bigint:eN,boolean:eI,date:eR,discriminatedUnion:eW,effect:e5,enum:e0,function:eX,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>eS(t=>t instanceof e,t),intersection:eH,lazy:eJ,literal:eQ,map:eK,nan:ej,nativeEnum:e1,never:eZ,null:eM,nullable:e9,number:eC,object:ez,oboolean:()=>eI().optional(),onumber:()=>eC().optional(),optional:e4,ostring:()=>eP().optional(),pipeline:e8,preprocess:e3,promise:e2,record:eY,set:eG,strictObject:eB,string:eP,symbol:eA,transformer:e5,tuple:eq,undefined:eD,union:e$,unknown:eL,void:eV,NEVER:h,ZodIssueCode:o,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:s})}}]);