1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4174],{18803:function(e){(()=>{var t={262:e=>{e.exports=new Set(["hlsjsProgressive","__abSendDomainToFeeds","_abZoomThumbnail","advertising","aboutlink","abouttext","aestoken","allowFullscreen","analytics","androidhls","aspectratio","autoPause","autostart","base","captions","cast","controls","defaultBandwidthEstimate","description","displaydescription","displayHeading","displayPlaybackLabel","displaytitle","drm","duration","enableDefaultCaptions","events","file","forceLocalizationDefaults","fwassetid","floating","ga","generateSEOMetadata","height","hlsjsConfig","hlsjsdefault","horizontalVolumeSlider","image","intl","key","listbar","liveSyncDuration","liveTimeout","localization","logo","mediaid","mute","nextUpDisplay","nextupoffset","pad","ph","pid","pipIcon","playbackRateControls","playbackRates","playlist","playlistIndex","plugins","preload","qualityLabel","qualityLabels","recommendations","related","renderCaptionsNatively","repeat","safarihlsjs","sdkplatform","selectedBitrate","setTimeEvents","skin","sharing","sources","stagevideo","streamtype","stretching","title","tracks","type","variations","volume","width","withCredentials","doNotTrack","doNotTrackCookies","images"])},418:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=!function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?function(e,i){for(var a,o,s=function(e){if(null==e)throw TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in a=Object(arguments[l]))r.call(a,u)&&(s[u]=a[u]);if(t){o=t(a);for(var c=0;c<o.length;c++)n.call(a,o[c])&&(s[o[c]]=a[o[c]])}}return s}:Object.assign},251:(e,t,r)=>{"use strict";r(418);var n=r(294),i=60103;if("function"==typeof Symbol&&Symbol.for){var a=Symbol.for;i=a("react.element"),a("react.fragment")}var o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,r){var n,a={},u=null,c=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,n)&&!l.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:i,type:e,key:u,ref:c,props:a,_owner:o.current}}},408:(e,t,r)=>{"use strict";var n=r(418),i=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,s=60110,l=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;i=d("react.element"),a=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),o=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),u=d("react.memo"),c=d("react.lazy")}var f="function"==typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function m(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||p}function A(){}function y(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},A.prototype=m.prototype;var v=y.prototype=new A;v.constructor=y,n(v,m.prototype),v.isPureReactComponent=!0;var b={current:null},w=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function I(e,t,r){var n,a={},o=null,s=null;if(null!=t)for(n in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)w.call(t,n)&&!S.hasOwnProperty(n)&&(a[n]=t[n]);var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(n in l=e.defaultProps)void 0===a[n]&&(a[n]=l[n]);return{$$typeof:i,type:e,key:o,ref:s,props:a,_owner:b.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var C=/\/+/g;function x(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function k(e,t,r){if(null==e)return e;var n=[],o=0;return function e(t,r,n,o,s){var l,u,c,d=typeof t;"undefined"!==d&&"boolean"!==d||(t=null);var p=!1;if(null===t)p=!0;else switch(d){case"string":case"number":p=!0;break;case"object":switch(t.$$typeof){case i:case a:p=!0}}if(p)return s=s(p=t),t=""===o?"."+x(p,0):o,Array.isArray(s)?(n="",null!=t&&(n=t.replace(C,"$&/")+"/"),e(s,r,n,"",function(e){return e})):null!=s&&(E(s)&&(l=s,u=n+(!s.key||p&&p.key===s.key?"":(""+s.key).replace(C,"$&/")+"/")+t,s={$$typeof:i,type:l.type,key:u,ref:l.ref,props:l.props,_owner:l._owner}),r.push(s)),1;if(p=0,o=""===o?".":o+":",Array.isArray(t))for(var g=0;g<t.length;g++){var m=o+x(d=t[g],g);p+=e(d,r,n,m,s)}else if("function"==typeof(m=null===(c=t)||"object"!=typeof c?null:"function"==typeof(c=f&&c[f]||c["@@iterator"])?c:null))for(t=m.call(t),g=0;!(d=t.next()).done;)p+=e(d=d.value,r,n,m=o+x(d,g++),s);else if("object"===d)throw Error(h(31,"[object Object]"==(r=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":r));return p}(e,n,"","",function(e){return t.call(r,e,o++)}),n}function O(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)})}if(1===e._status)return e._result;throw e._result}var T={current:null};function R(){var e=T.current;
1if(null===e)throw Error(h(321));return e}t.Children={map:k,forEach:function(e,t,r){k(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return k(e,function(){t++}),t},toArray:function(e){return k(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error(h(143));return e}},t.Component=m,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:b,IsSomeRendererActing:{current:!1},assign:n},t.cloneElement=function(e,t,r){if(null==e)throw Error(h(267,e));var a=n({},e.props),o=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=b.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)w.call(t,c)&&!S.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=r;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];a.children=u}return{$$typeof:i,type:e.type,key:o,ref:s,props:a,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=I,t.createFactory=function(e){var t=I.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return R().useCallback(e,t)},t.useContext=function(e,t){return R().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return R().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return R().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return R().useLayoutEffect(e,t)},t.useMemo=function(e,t){return R().useMemo(e,t)},t.useReducer=function(e,t,r){return R().useReducer(e,t,r)},t.useRef=function(e){return R().useRef(e)},t.useState=function(e){return R().useState(e)},t.version="17.0.2"},294:(e,t,r)=>{"use strict";e.exports=r(408)},893:(e,t,r)=>{"use strict";e.exports=r(251)}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{"use strict";n.r(i),n.d(i,{default:()=>d});var e=n(294);let t="^on(.*)";var r=n(262),a=n.n(r);let o=-1;function s(e,t){let r=e.match(t)||["",""];return r[1].charAt(0).toLowerCase()+r[1].slice(1)}var l=n(893);function u(e){return(r,n)=>{Object.keys(e).forEach(i=>{let a=s(i,t);a===r&&e[i](n),"all"===a&&e[i](r,n)})}}class c extends e.Component{constructor(t){super(t),this.ref=t.ref||e.createRef(),this.config=function(e){let t={};return Object.keys(e).forEach(r=>{a().has(r)&&(t[r]=e[r])}),{...e.config,...t,isReactComponent:!0}}(t),this.player=null,this.didMountCallback=t.didMountCallback,this.willUnmountCallback=t.willUnmountCallback,this.id=t.id||(o++,`jwplayer-${o}`),this.onHandler=null,this.library=t.library}async componentDidMount(){if(await function(e){if(!window.jwplayer&&!e)throw Error("jwplayer-react requires either a library prop, or a library script");return window.jwplayer?Promise.resolve():new Promise((t,r)=>{let n=document.createElement("script");n.onload=t,n.onerror=r,n.src=e,document.body.append(n)})}(this.library),this.player=this.createPlayer(),this.createEventListeners(),this.didMountCallback){let{player:e,id:t}=this;this.didMountCallback({player:e,id:t})}}shouldComponentUpdate(e){return!(!this.player||this.didOnEventsChange(e)&&(this.updateOnEventListener(e),1))}
1componentWillUnmount(){if(this.willUnmountCallback){let{player:e,id:t}=this;this.willUnmountCallback({player:e,id:t})}this.player&&(this.player.off(),this.player.remove(),this.player=null)}createPlayer(){let{config:e,ref:t}=this,r={...window.jwDefaults,...e},n=t.current;return window.jwplayer(n.id).setup(r)}didOnEventsChange(e){let r=e=>e.match(t),n=Object.keys(this.props).filter(r).sort(),i=Object.keys(e).filter(r).sort();return i.length!==n.length||i.some((t,r)=>n[r]!==t||e[t]!==this.props[t])}createEventListeners(){Object.keys(this.props).forEach(e=>{let t=s(e,"^once(.*)");t&&this.player.once(t,this.props[e])}),this.onHandler=u(this.props),this.player.on("all",this.onHandler)}updateOnEventListener(e){this.onHandler&&this.player.off("all",this.onHandler),this.onHandler=u(e),this.player.on("all",this.onHandler)}render(){return(0,l.jsx)("div",{id:this.id,ref:this.ref})}}let d=c})(),e.exports=i})()},17526:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,a=l(e),o=a[0],s=a[1],u=new i((o+s)*3/4-s),c=0,d=s>0?o-4:o;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,s=n-i;o<s;o+=16383)a.push(function(e,t,n){for(var i,a=[],o=t;o<n;o+=3)a.push(r[(i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]))>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}(e,o,o+16383>s?s:o+16383));return 1===i?a.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&a.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),a.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)r[o]=a[o],n[a.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},3786:function(e,t,r){"use strict";let n=r(17526),i=r(36334),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|p(e,t),n=o(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(L(e,Uint8Array)){let t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(L(e,ArrayBuffer)||e&&L(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(L(e,SharedArrayBuffer)||e&&L(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);let i=function(e){var t;if(s.isBuffer(e)){let t=0|h(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?o(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');
vendor: 19,209 bytes, line 1
1if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),o(e<0?0:0|h(e))}function d(e){let t=e.length<0?0:0|h(e.length),r=o(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function f(e,t,r){let n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),n}function h(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||L(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return M(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(e).length;default:if(i)return n?-1:M(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n<r;++n)i+=B[e[n]];return i}(this,t,r);case"utf8":case"utf-8":return v(this,t,r);case"ascii":return function(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":var a,o;return a=t,o=r,0===a&&o===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(a,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){let n=e.slice(t,r),i="";for(let e=0;e<n.length-1;e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}(this,t,r);default:if(i)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function m(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function A(e,t,r,n,i){var a;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(a=r=+r)!=a&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){let a,o=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;o=2,s/=2,l/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){let n=-1;for(a=r;a<s;a++)if(u(e,a)===u(t,-1===n?0:a-n)){if(-1===n&&(n=a),a-n+1===l)return n*o}else -1!==n&&(a-=a-n),n=-1}else for(r+l>s&&(r=s-l),a=r;a>=0;a--){let r=!0;for(let n=0;n<l;n++)if(u(e,a+n)!==u(t,n)){r=!1;break}if(r)return a}return -1}function v(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i<r;){let t=e[i],a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=r){let r,n,s,l;switch(o){case 1:t<128&&(a=t);break;case 2:(192&(r=e[i+1]))==128&&(l=(31&t)<<6|63&r)>127&&(a=l);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(l=(15&t)<<12|(63&r)<<6|63&n)>2047&&(l<55296||l>57343)&&(a=l);break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],(192&r)==128&&(192&n)==128&&(192&s)==128&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s)>65535&&l<1114112&&(a=l)}}null===a?(a=65533,o=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=o}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function b(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,a){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function S(e,t,r,n,i){R(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,r}function I(e,t,r,n,i){R(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a>>=8,e[r+6]=a,a>>=8,e[r+5]=a,a>>=8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o>>=8,e[r+2]=o,o>>=8,e[r+1]=o,o>>=8,e[r]=o,r+8}function E(e,t,r,n,i,a){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function C(e,t,r,n,a){return t=+t,r>>>=0,a||E(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function x(e,t,r,n,a){return t=+t,r>>>=0,a||E(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(L(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),L(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){let r;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;let n=s.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){let t=e[r];if(L(t,Uint8Array))i+t.length>n.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(s.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)m(this,t,t+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},s.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?v(this,0,e):g.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let e="",r=t.h2;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(L(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let a=i-n,o=r-t,l=Math.min(a,o),u=this.slice(n,i),c=e.slice(t,r);for(let e=0;e<l;++e)if(u[e]!==c[e]){a=u[e],o=c[e];break}return a<o?-1:o<a?1:0},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return A(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return A(this,e,t,r,!1)},s.prototype.write=function(e,t,r,n){var i,a,o,s,l,u,c,d;if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let h=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let i;r=Number(r)||0;let a=e.length-r;n?(n=Number(n))>a&&(n=a):n=a;let o=t.length;for(n>o/2&&(n=o/2),i=0;i<n;++i){let n=parseInt(t.substr(2*i,2),16);if(n!=n)break;e[r+i]=n}return i}(this,e,t,r);case"utf8":case"utf-8":return i=t,a=r,P(M(e,this.length-i),this,i,a);case"ascii":case"latin1":case"binary":return o=t,s=r,P(function(e){let t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,o,s);case"base64":return l=t,u=r,P(F(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,d=r,P(function(e,t){let r,n;let i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);let n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);let n=this[e],i=1,a=0;for(;++a<t&&(i*=256);)n+=this[e+a]*i;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=j(function(e){_(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&D(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+16777216*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(n)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=j(function(e){_(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&D(e,this.length-8);let n=16777216*t+65536*this[++e]+256*this[++e]+this[++e],i=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);let n=this[e],i=1,a=0;for(;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);let n=t,i=1,a=this[e+--n];for(;n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},s.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=j(function(e){_(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&D(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+16777216*this[++e])}),s.prototype.readBigInt64BE=j(function(e){_(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&D(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(16777216*this[++e]+65536*this[++e]+256*this[++e]+r)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;w(this,e,t,r,n,0)}let i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;w(this,e,t,r,n,0)}let i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=j(function(e,t=0){return S(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=j(function(e,t=0){return I(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);w(this,e,t,r,n-1,-n)}let i=0,a=1,o=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===o&&0!==this[t+i-1]&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);w(this,e,t,r,n-1,-n)}let i=r-1,a=1,o=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=j(function(e,t=0){return S(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=j(function(e,t=0){return I(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,r){return C(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return C(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return x(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return x(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);let i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},s.prototype.fill=function(e,t,r,n){let i;if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){let t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{let a=s.isBuffer(e)?e:s.from(e,n),o=a.length;
1if(0===o)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=a[i%o]}return this};let k={};function O(e,t,r){k[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function T(e){let t="",r=e.length,n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function R(e,t,r,n,i,a){if(e>r||e<t){let n;let i="bigint"==typeof t?"n":"";throw n=a>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(a+1)*8}${i}`:`>= -(2${i} ** ${(a+1)*8-1}${i}) and < 2 ** ${(a+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new k.ERR_OUT_OF_RANGE("value",n,e)}_(i,"offset"),(void 0===n[i]||void 0===n[i+a])&&D(i,n.length-(a+1))}function _(e,t){if("number"!=typeof e)throw new k.ERR_INVALID_ARG_TYPE(t,"number",e)}function D(e,t,r){if(Math.floor(e)!==e)throw _(e,r),new k.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new k.ERR_BUFFER_OUT_OF_BOUNDS;throw new k.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}O("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),O("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),O("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?i=T(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=T(i)),i+="n"),n+=` It must be ${t}. Received ${i}`},RangeError);let N=/[^+/0-9A-Za-z-_]/g;function M(e,t){let r;t=t||1/0;let n=e.length,i=null,a=[];for(let o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319||o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function F(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function P(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function L(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let B=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function j(e){return"undefined"==typeof BigInt?U:e}function U(){throw Error("BigInt not supported")}},3918:function(e,t){"use strict";t.parse=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");var r={},i=e.length;if(i<2)return r;var a=t&&t.decode||c,o=0,s=0,d=0;do{if(-1===(s=e.indexOf("=",o)))break;if(-1===(d=e.indexOf(";",o)))d=i;else if(s>d){o=e.lastIndexOf(";",s-1)+1;continue}var f=l(e,o,s),h=u(e,s,f),p=e.slice(f,h);if(!n.call(r,p)){var g=l(e,s+1,d),m=u(e,d,g);34===e.charCodeAt(g)&&34===e.charCodeAt(m-1)&&(g++,m--);var A=e.slice(g,m);r[p]=function(e,t){try{return t(e)}catch(t){return e}}(A,a)}o=d+1}while(o<i);return r},t.serialize=function(e,t,n){var l=n&&n.encode||encodeURIComponent;if("function"!=typeof l)throw TypeError("option encode is invalid");if(!i.test(e))throw TypeError("argument name is invalid");var u=l(t);if(!a.test(u))throw TypeError("argument val is invalid");var c=e+"="+u;if(!n)return c;if(null!=n.maxAge){var d=Math.floor(n.maxAge);
1if(!isFinite(d))throw TypeError("option maxAge is invalid");c+="; Max-Age="+d}if(n.domain){if(!o.test(n.domain))throw TypeError("option domain is invalid");c+="; Domain="+n.domain}if(n.path){if(!s.test(n.path))throw TypeError("option path is invalid");c+="; Path="+n.path}if(n.expires){var f=n.expires;if("[object Date]"!==r.call(f)||isNaN(f.valueOf()))throw TypeError("option expires is invalid");c+="; Expires="+f.toUTCString()}if(n.httpOnly&&(c+="; HttpOnly"),n.secure&&(c+="; Secure"),n.partitioned&&(c+="; Partitioned"),n.priority)switch("string"==typeof n.priority?n.priority.toLowerCase():n.priority){case"low":c+="; Priority=Low";break;case"medium":c+="; Priority=Medium";break;case"high":c+="; Priority=High";break;default:throw TypeError("option priority is invalid")}if(n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:case"strict":c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"none":c+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return c};var r=Object.prototype.toString,n=Object.prototype.hasOwnProperty,i=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,a=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,o=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/;function l(e,t,r){do{var n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<r);return r}function u(e,t,r){for(;t>r;){var n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return r}
1function c(e){return -1!==e.indexOf("%")?decodeURIComponent(e):e}},41371:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=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);i<n.length;i++)0>t.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.hasCookie=t.deleteCookie=t.setCookie=t.getCookie=t.getCookies=void 0;var a=r(3918),o=function(){return"undefined"!=typeof window},s=function(e){return!!e&&"getAll"in e&&"set"in e&&"function"==typeof e.getAll&&"function"==typeof e.set},l=function(e){return!!(null==e?void 0:e.req)&&"cookies"in e.req&&s(null==e?void 0:e.req.cookies)||!!(null==e?void 0:e.res)&&"cookies"in e.res&&s(null==e?void 0:e.res.cookies)||!!(null==e?void 0:e.cookies)&&s(e.cookies())},u=function(e){var t={};return e.getAll().forEach(function(e){var r=e.name,n=e.value;t[r]=n}),t},c=function(e){try{if("string"==typeof e)return e;return JSON.stringify(e)}catch(t){return e}};t.getCookies=function(e){if(l(e)){if(null==e?void 0:e.req)return u(e.req.cookies);if(null==e?void 0:e.cookies)return u(e.cookies())}if(e&&(t=e.req),!o())return t&&t.cookies?t.cookies:t&&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;i++){var c=n[i].split("="),d=c.slice(1).join("=");r[c[0]]=d}return r},t.getCookie=function(e,r){var n=(0,t.getCookies)(r)[e];if(void 0!==n)return n?n.replace(/(%[0-9A-Z]{2}
1)+/g,decodeURIComponent):n},t.setCookie=function(e,t,r){if(l(r)){var s,u,d,f=r.req,h=r.res,p=r.cookies,g=i(r,["req","res","cookies"]),m=n({name:e,value:c(t)},g);f&&f.cookies.set(m),h&&h.cookies.set(m),p&&p().set(m);return}if(r){var f=r.req,h=r.res,A=i(r,["req","res"]);u=f,d=h,s=A}var y=(0,a.serialize)(e,c(t),n({path:"/"},s));if(o())document.cookie=y;else if(d&&u){var v=d.getHeader("Set-Cookie");if(Array.isArray(v)||(v=v?[String(v)]:[]),d.setHeader("Set-Cookie",v.concat(y)),u&&u.cookies){var b=u.cookies;""===t?delete b[e]:b[e]=c(t)}if(u&&u.headers&&u.headers.cookie){var b=(0,a.parse)(u.headers.cookie);""===t?delete b[e]:b[e]=c(t),u.headers.cookie=Object.entries(b).reduce(function(e,t){return e.concat("".concat(t[0],"=").concat(t[1],";"))},"")}}},t.deleteCookie=function(e,r){return(0,t.setCookie)(e,"",n(n({},r),{maxAge:-1}))},t.hasCookie=function(e,r){return!!e&&(0,t.getCookies)(r).hasOwnProperty(e)}},85456:function(e){var t;t=function(){"use strict";var e="millisecond",t="second",r="minute",n="hour",i="week",a="month",o="quarter",s="year",l="date",u="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},h="en",p={};p[h]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||"th")+"]"}};var g="$isDayjsObject",m=function(e){return e instanceof b||!(!e||!e[g])},A=function e(t,r,n){var i;if(!t)return h;if("string"==typeof t){var a=t.toLowerCase();p[a]&&(i=a),r&&(p[a]=r,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;p[s]=t,i=s}return!n&&i&&(h=i),i||!n&&h},y=function(e,t){if(m(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new b(r)},v={s:f,z:function(e){var t=-e.utcOffset(),r=Math.abs(t);return(t<=0?"+":"-")+f(Math.floor(r/60),2,"0")+":"+f(r%60,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(n,a),o=r-i<0,s=t.clone().add(n+(o?-1:1),a);return+(-(n+(r-i)/(o?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(u){return({M:a,y:s,w:i,d:"day",D:l,h:n,m:r,s:t,ms:e,Q:o})[u]||String(u||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};v.l=A,v.i=m,v.w=function(e,t){return y(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var b=function(){function f(e){this.$L=A(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[g]=!0}var h=f.prototype;return h.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(v.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(c);if(n){var i=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(t)}(e),this.init()},h.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},h.$utils=function(){return v},h.isValid=function(){return this.$d.toString()!==u},h.isSame=function(e,t){var r=y(e);return this.startOf(t)<=r&&r<=this.endOf(t)},h.isAfter=function(e,t){return y(e)<this.startOf(t)},h.isBefore=function(e,t){return this.endOf(t)<y(e)},h.$g=function(e,t,r){return v.u(e)?this[t]:this.set(r,e)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(e,o){var u=this,c=!!v.u(o)||o,d=v.p(e),f=function(e,t){var r=v.w(u.$u?Date.UTC(u.$y,t,e):new Date(u.$y,t,e),u);return c?r:r.endOf("day")},h=function(e,t){return v.w(u.toDate()[e].apply(u.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),u)},p=this.$W,g=this.$M,m=this.$D,A="set"+(this.$u?"UTC":"");switch(d){case s:return c?f(1,0):f(31,11);case a:return c?f(1,g):f(0,g+1);
1case i:var y=this.$locale().weekStart||0,b=(p<y?p+7:p)-y;return f(c?m-b:m+(6-b),g);case"day":case l:return h(A+"Hours",0);case n:return h(A+"Minutes",1);case r:return h(A+"Seconds",2);case t:return h(A+"Milliseconds",3);default:return this.clone()}},h.endOf=function(e){return this.startOf(e,!1)},h.$set=function(i,o){var u,c=v.p(i),d="set"+(this.$u?"UTC":""),f=((u={}).day=d+"Date",u[l]=d+"Date",u[a]=d+"Month",u[s]=d+"FullYear",u[n]=d+"Hours",u[r]=d+"Minutes",u[t]=d+"Seconds",u[e]=d+"Milliseconds",u)[c],h="day"===c?this.$D+(o-this.$W):o;if(c===a||c===s){var p=this.clone().set(l,1);p.$d[f](h),p.init(),this.$d=p.set(l,Math.min(this.$D,p.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},h.set=function(e,t){return this.clone().$set(e,t)},h.get=function(e){return this[v.p(e)]()},h.add=function(e,o){var l,u=this;e=Number(e);var c=v.p(o),d=function(t){var r=y(u);return v.w(r.date(r.date()+Math.round(t*e)),u)};if(c===a)return this.set(a,this.$M+e);if(c===s)return this.set(s,this.$y+e);if("day"===c)return d(1);if(c===i)return d(7);var f=((l={})[r]=6e4,l[n]=36e5,l[t]=1e3,l)[c]||1,h=this.$d.getTime()+e*f;return v.w(h,this)},h.subtract=function(e,t){return this.add(-1*e,t)},h.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||u;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=v.z(this),a=this.$H,o=this.$m,s=this.$M,l=r.weekdays,c=r.months,f=r.meridiem,h=function(e,r,i,a){return e&&(e[r]||e(t,n))||i[r].slice(0,a)},p=function(e){return v.s(a%12||12,e,"0")},g=f||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(d,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return v.s(t.$y,4,"0");case"M":return s+1;case"MM":return v.s(s+1,2,"0");case"MMM":return h(r.monthsShort,s,c,3);case"MMMM":return h(c,s);case"D":return t.$D;case"DD":return v.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(r.weekdaysMin,t.$W,l,2);case"ddd":return h(r.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(a);case"HH":return v.s(a,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(a,o,!0);case"A":return g(a,o,!1);case"m":return String(o);case"mm":return v.s(o,2,"0");case"s":return String(t.$s);case"ss":return v.s(t.$s,2,"0");case"SSS":return v.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},h.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},h.diff=function(e,l,u){var c,d=this,f=v.p(l),h=y(e),p=(h.utcOffset()-this.utcOffset())*6e4,g=this-h,m=function(){return v.m(d,h)};switch(f){case s:c=m()/12;break;case a:c=m();break;case o:c=m()/3;break;case i:c=(g-p)/6048e5;break;case"day":c=(g-p)/864e5;break;case n:c=g/36e5;break;case r:c=g/6e4;break;case t:c=g/1e3;break;default:c=g}return u?c:v.a(c)},h.daysInMonth=function(){return this.endOf(a).$D},h.$locale=function(){return p[this.$L]},h.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=A(e,t,!0);return n&&(r.$L=n),r},h.clone=function(){return v.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},f}(),w=b.prototype;return y.prototype=w,[["$ms",e],["$s",t],["$m",r],["$H",n],["$W","day"],["$M",a],["$y",s],["$D",l]].forEach(function(e){w[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),y.extend=function(e,t){return e.$i||(e(t,b,y),e.$i=!0),y},y.locale=A,y.isDayjs=m,y.unix=function(e){return y(1e3*e)},y.en=p[h],y.Ls=p,y.p={},y},e.exports=t()},53786:function(e){var t;t=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,n=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e||"Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),r=60*t[1]+(+t[2]||0);return 0===r?0:"+"===t[0]?-r:r}(e)}],c=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var r,n=o.meridiem;if(n){for(var i=1;i<=24;i+=1)if(e.indexOf(n(i,0,t))>-1){r=i>12;break}}else r=e===(t?"pm":"PM");return r},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[r,function(e){this.month=3*(e-1)+1}],S:[r,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,l("seconds")],ss:[i,l("seconds")],m:[i,l("minutes")],mm:[i,l("minutes")],H:[i,l("hours")],h:[i,l("hours")],HH:[i,l("hours")],hh:[i,l("hours")],D:[i,l("day")],DD:[n,l("day")],Do:[a,function(e){var t=o.ordinal,r=e.match(/\d+/);if(this.day=r[0],t)for(var n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],w:[i,l("week")],ww:[n,l("week")],M:[i,l("month")],MM:[n,l("month")],MM
vendor: 2,118 bytes, line 1
1M:[a,function(e){var t=c("months"),r=(c("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(r<1)throw Error();this.month=r%12||r}],MMMM:[a,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[n,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l("year")],Z:u,ZZ:u};return function(r,n,i){i.p.customParseFormat=!0,r&&r.parseTwoDigitYear&&(s=r.parseTwoDigitYear);var a=n.prototype,l=a.parse;a.parse=function(r){var n=r.date,a=r.utc,s=r.args;this.$u=a;var u=s[1];if("string"==typeof u){var c=!0===s[2],d=!0===s[3],h=s[2];d&&(h=s[2]),o=this.$locale(),!c&&h&&(o=i.Ls[h]),this.$d=function(r,n,i,a){try{if(["x","X"].indexOf(n)>-1)return new Date(("X"===n?1e3:1)*r);var s=(function(r){var n,i;n=r,i=o&&o.formats;for(var a=(r=n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,r,n){var a=n&&n.toUpperCase();return r||i[n]||e[n]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,r){return t||r.slice(1)})})).match(t),s=a.length,l=0;l<s;l+=1){var u=a[l],c=f[u],d=c&&c[0],h=c&&c[1];a[l]=h?{regex:d,parser:h}:u.replace(/^\[|\]$/g,"")}return function(e){for(var t={},r=0,n=0;r<s;r+=1){var i=a[r];if("string"==typeof i)n+=i.length;else{var o=i.regex,l=i.parser,u=e.slice(n),c=o.exec(u)[0];l.call(t,c),e=e.replace(c,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var r=e.hours;t?r<12&&(e.hours+=12):12===r&&(e.hours=0),delete e.afternoon}}(t),t}})(n)(r),l=s.year,u=s.month,c=s.day,d=s.hours,h=s.minutes,p=s.seconds,g=s.milliseconds,m=s.zone,A=s.week,y=new Date,v=c||(l||u?1:y.getDate()),b=l||y.getFullYear(),w=0;l&&!u||(w=u>0?u-1:y.getMonth());var S,I=d||0,E=h||0,C=p||0,x=g||0;return m?new Date(Date.UTC(b,w,v,I,E,C,x+60*m.offset*1e3)):i?new Date(Date.UTC(b,w,v,I,E,C,x)):(S=new Date(b,w,v,I,E,C,x),A&&(S=a(S).week(A).toDate()),S)}catch(e){return new Date("")}}(n,u,a,i),this.init(),h&&!0!==h&&(this.$L=this.locale(h).$L),(c||d)&&n!=this.format(u)&&(this.$d=new Date("")),o={}}else if(u instanceof Array)for(var p=u.length,g=1;g<=p;g+=1){s[1]=u[g-1];var m=i.apply(this,s);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}
1g===p&&(this.$d=new Date(""))}else l.call(this,r)}}},e.exports=t()},44014:function(e){var t;t=function(){"use strict";var e="month",t="quarter";return function(r,n){var i=n.prototype;i.quarter=function(e){return this.$utils().u(e)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(e-1))};var a=i.add;i.add=function(r,n){return r=Number(r),this.$utils().p(n)===t?this.add(3*r,e):a.bind(this)(r,n)};var o=i.startOf;i.startOf=function(r,n){var i=this.$utils(),a=!!i.u(n)||n;if(i.p(r)===t){var s=this.quarter()-1;return a?this.month(3*s).startOf(e).startOf("day"):this.month(3*s+2).endOf(e).endOf("day")}return o.bind(this)(r,n)}}},e.exports=t()},12511:function(e){var t;t=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(r,n,i){var a,o=function(e,r,n){void 0===n&&(n={});var i,a,o,s,l=new Date(e);return(void 0===(i=n)&&(i={}),(s=t[o=r+"|"+(a=i.timeZoneName||"short")])||(s=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:a}),t[o]=s),s).formatToParts(l)},s=function(t,r){for(var n=o(t,r),a=[],s=0;s<n.length;s+=1){var l=n[s],u=l.type,c=l.value,d=e[u];d>=0&&(a[d]=parseInt(c,10))}var f=a[3],h=a[0]+"-"+a[1]+"-"+a[2]+" "+(24===f?0:f)+":"+a[4]+":"+a[5]+":000",p=+t;return(i.utc(h).valueOf()-(p-=p%1e3))/6e4},l=n.prototype;l.tz=function(e,t){void 0===e&&(e=a);var r,n=this.utcOffset(),o=this.toDate(),s=o.toLocaleString("en-US",{timeZone:e}),l=Math.round((o-new Date(s))/1e3/60),u=-(15*Math.round(o.getTimezoneOffset()/15))-l;if(Number(u)){if(r=i(s,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(u,!0),t){var c=r.utcOffset();r=r.add(n-c,"minute")}}else r=this.utcOffset(0,t);return r.$x.$timezone=e,r},l.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),r=o(this.valueOf(),t,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return r&&r.value};var u=l.startOf;l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return u.call(this,e,t);var r=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(r,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,r){var n=r&&t,o=r||t||a,l=s(+i(),o);if("string"!=typeof e)return i(e).tz(o);var u=function(e,t,r){var n=e-60*t*1e3,i=s(n,r);if(t===i)return[n,t];var a=s(n-=60*(i-t)*1e3,r);return i===a?[n,i]:[e-60*Math.min(i,a)*1e3,Math.max(i,a)]}(i.utc(e,n).valueOf(),l,o),c=u[0],d=u[1],f=i(c).utcOffset(d);return f.$x.$timezone=o,f},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){a=e}}},e.exports=t()},73963:function(e){var t;t=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,i,a){var o=i.prototype;a.utc=function(e){var t={date:e,utc:!0,args:arguments};return new i(t)},o.utc=function(t){var r=a(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var u=o.utcOffset;o.utcOffset=function(n,i){var a=this.$utils().u;if(a(n))return this.$u?0:a(this.$offset)?u.call(this):this.$offset;if("string"==typeof n&&null===(n=function(e){void 0===e&&(e="");var n=e.match(t);if(!n)return null;var i=(""+n[0]).match(r)||["-",0,0],a=i[0],o=60*+i[1]+ +i[2];return 0===o?0:"+"===a?o:-o}(n)))return this;var o=16>=Math.abs(n)?60*n:n,s=this;if(i)return s.$offset=o,s.$u=0===n,s;if(0!==n){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(o+l,e)).$offset=o,s.$x.$localOffset=l}else s=this.utc();return s};var c=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var d=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=o.diff;o.diff=function(e,t,r){if(e&&this.$u===e.$u)return f.call(this,e,t,r);var n=this.local(),i=a(e).local();return f.call(n,i,t,r)}}},e.exports=t()},49469:function(e){var t;t=function(){"use strict";var e="millisecond",t="second",r="minute",n="hour",i="week",a="month",o="quarter",s="year",l="date",u="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}
1|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},h="en",p={};p[h]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||"th")+"]"}};var g="$isDayjsObject",m=function(e){return e instanceof b||!(!e||!e[g])},A=function e(t,r,n){var i;if(!t)return h;if("string"==typeof t){var a=t.toLowerCase();p[a]&&(i=a),r&&(p[a]=r,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;p[s]=t,i=s}return!n&&i&&(h=i),i||!n&&h},y=function(e,t){if(m(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new b(r)},v={s:f,z:function(e){var t=-e.utcOffset(),r=Math.abs(t);return(t<=0?"+":"-")+f(Math.floor(r/60),2,"0")+":"+f(r%60,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(n,a),o=r-i<0,s=t.clone().add(n+(o?-1:1),a);return+(-(n+(r-i)/(o?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(u){return({M:a,y:s,w:i,d:"day",D:l,h:n,m:r,s:t,ms:e,Q:o})[u]||String(u||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};v.l=A,v.i=m,v.w=function(e,t){return y(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var b=function(){function f(e){this.$L=A(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[g]=!0}var h=f.prototype;return h.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(v.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(c);if(n){var i=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(t)}(e),this.init()},h.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},h.$utils=function(){return v},h.isValid=function(){return this.$d.toString()!==u},h.isSame=function(e,t){var r=y(e);return this.startOf(t)<=r&&r<=this.endOf(t)},h.isAfter=function(e,t){return y(e)<this.startOf(t)},h.isBefore=function(e,t){return this.endOf(t)<y(e)},h.$g=function(e,t,r){return v.u(e)?this[t]:this.set(r,e)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(e,o){var u=this,c=!!v.u(o)||o,d=v.p(e),f=function(e,t){var r=v.w(u.$u?Date.UTC(u.$y,t,e):new Date(u.$y,t,e),u);return c?r:r.endOf("day")},h=function(e,t){return v.w(u.toDate()[e].apply(u.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),u)},p=this.$W,g=this.$M,m=this.$D,A="set"+(this.$u?"UTC":"");switch(d){case s:return c?f(1,0):f(31,11);case a:return c?f(1,g):f(0,g+1);case i:var y=this.$locale().weekStart||0,b=(p<y?p+7:p)-y;return f(c?m-b:m+(6-b),g);case"day":case l:return h(A+"Hours",0);case n:return h(A+"Minutes",1);case r:return h(A+"Seconds",2);case t:return h(A+"Milliseconds",3);default:return this.clone()}},h.endOf=function(e){return this.startOf(e,!1)},h.$set=function(i,o){var u,c=v.p(i),d="set"+(this.$u?"UTC":""),f=((u={}).day=d+"Date",u[l]=d+"Date",u[a]=d+"Month",u[s]=d+"FullYear",u[n]=d+"Hours",u[r]=d+"Minutes",u[t]=d+"Seconds",u[e]=d+"Milliseconds",u)[c],h="day"===c?this.$D+(o-this.$W):o;if(c===a||c===s){var p=this.clone().set(l,1);p.$d[f](h),p.init(),this.$d=p.set(l,Math.min(this.$D,p.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},h.set=function(e,t){return this.clone().$set(e,t)},h.get=function(e){return this[v.p(e)]()},h.add=function(e,o){var l,u=this;e=Number(e);var c=v.p(o),d=function(t){var r=y(u);return v.w(r.date(r.date()+Math.round(t*e)),u)};if(c===a)return this.set(a,this.$M+e);if(c===s)return this.set(s,this.$y+e);if("day"===c)return d(1);if(c===i)return d(7);var f=((l={})[r]=6e4,l[n]=36e5,l[t]=1e3,l)[c]||1,h=this.$d.getTime()+e*f;return v.w(h,this)},h.subtract=function(e,t){return this.add(-1*e,t)},h.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||u;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=v.z(this),a=this.$H,o=this.$m,s=this.$M,l=r.weekdays,c=r.months,f=r.meridiem,h=function(e,r,i,a){return e&&(e[r]||e(t,n))||i[r].slice(0,a)},p=function(e){return v.s(a%12||12,e,"0")},g=f||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(d,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return v.s(t.$y,4,"0");case"M":return s+1;case"MM":return v.s(s+1,2,"0");case"MMM":return h(r.monthsShort,s,c,3);case"MMMM":return h(c,s);case"D":return t.$D;case"DD":return v.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(r.weekdaysMin,t.$W,l,2);case"ddd":return h(r.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(a);case"HH":return v.s(a,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(a,o,!0);case"A":return g(a,o,!1);case"m":return String(o);case"mm":return v.s(o,2,"0");case"s":return String(t.$s);case"ss":return v.s(t.$s,2,"0");case"SSS":return v.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},h.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},h.diff=function(e,l,u){var c,d=this,f=v.p(l),h=y(e),p=(h.utcOffset()-this.utcOffset())*6e4,g=this-h,m=function(){return v.m(d,h)};switch(f){case s:c=m()/12;break;case a:c=m();break;case o:c=m()/3;break;case i:c=(g-p)/6048e5;break;case"day":c=(g-p)/864e5;break;case n:c=g/36e5;break;case r:c=g/6e4;break;case t:c=g/1e3;break;default:c=g}return u?c:v.a(c)},h.daysInMonth=function(){return this.endOf(a).$D},h.$locale=function(){return p[this.$L]},h.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=A(e,t,!0);return n&&(r.$L=n),r},h.clone=function(){return v.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},f}(),w=b.prototype;return y.prototype=w,[["$ms",e],["$s",t],["$m",r],["$H",n],["$W","day"],["$M",a],["$y",s],["$D",l]].forEac
1h(function(e){w[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),y.extend=function(e,t){return e.$i||(e(t,b,y),e.$i=!0),y},y.locale=A,y.isDayjs=m,y.unix=function(e){return y(1e3*e)},y.en=p[h],y.Ls=p,y.p={},y},e.exports=t()},68873:function(e){"use strict";var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==r},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s(Array.isArray(e)?[]:{},e,t):e}function i(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function a(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function o(e,t){try{return t in e}catch(e){return!1}}function s(e,r,l){(l=l||{}).arrayMerge=l.arrayMerge||i,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=n;var u,c,d=Array.isArray(r);return d!==Array.isArray(e)?n(r,l):d?l.arrayMerge(e,r,l):(c={},(u=l).isMergeableObject(e)&&a(e).forEach(function(t){c[t]=n(e[t],u)}),a(r).forEach(function(t){(!o(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(o(e,t)&&u.isMergeableObject(r[t])?c[t]=(function(e,t){if(!t.customMerge)return s;var r=t.customMerge(e);return"function"==typeof r?r:s})(t,u)(e[t],r[t],u):c[t]=n(r[t],u))}),c)}s.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return s(e,r,t)},{})},e.exports=s},19912:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeNames=t.elementNames=void 0,t.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(e){return[e.toLowerCase(),e]})),t.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(e){return[e.toLowerCase(),e]}))},1769:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=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]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=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)&&i(t,e,r);return a(t,e),t};
1Object.defineProperty(t,"__esModule",{value:!0}),t.render=void 0;var s=o(r(33070)),l=r(16356),u=r(19912),c=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function d(e){return e.replace(/"/g,""")}var f=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function h(e,t){void 0===t&&(t={});for(var r=("length"in e)?e:[e],i="",a=0;a<r.length;a++)i+=function(e,t){switch(e.type){case s.Root:return h(e.children,t);case s.Doctype:case s.Directive:return"<".concat(e.data,">");case s.Comment:return"<!--".concat(e.data,"-->");case s.CDATA:return"<![CDATA[".concat(e.children[0].data,"]]>");case s.Script:case s.Style:case s.Tag:return function(e,t){"foreign"===t.xmlMode&&(e.name=null!==(r=u.elementNames.get(e.name))&&void 0!==r?r:e.name,e.parent&&p.has(e.parent.name)&&(t=n(n({},t),{xmlMode:!1}))),!t.xmlMode&&g.has(e.name)&&(t=n(n({},t),{xmlMode:"foreign"}));var r,i="<".concat(e.name),a=function(e,t){if(e){var r,n=(null!==(r=t.encodeEntities)&&void 0!==r?r:t.decodeEntities)===!1?d:t.xmlMode||"utf8"!==t.encodeEntities?l.encodeXML:l.escapeAttribute;return Object.keys(e).map(function(r){var i,a,o=null!==(i=e[r])&&void 0!==i?i:"";return("foreign"===t.xmlMode&&(r=null!==(a=u.attributeNames.get(r))&&void 0!==a?a:r),t.emptyAttrs||t.xmlMode||""!==o)?"".concat(r,'="').concat(n(o),'"'):r}).join(" ")}}(e.attribs,t);return a&&(i+=" ".concat(a)),0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&f.has(e.name))?(t.xmlMode||(i+=" "),i+="/>"):(i+=">",e.children.length>0&&(i+=h(e.children,t)),(t.xmlMode||!f.has(e.name))&&(i+="</".concat(e.name,">"))),i}(e,t);case s.Text:return function(e,t){var r,n=e.data||"";return(null!==(r=t.encodeEntities)&&void 0!==r?r:t.decodeEntities)===!1||!t.xmlMode&&e.parent&&c.has(e.parent.name)||(n=t.xmlMode||"utf8"!==t.encodeEntities?(0,l.encodeXML)(n):(0,l.escapeText)(n)),n}(e,t)}}(r[a],t);return i}t.render=h,t.default=h;var p=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),g=new Set(["svg","math"])},33070: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},38992: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(33070),o=r(55048);i(r(55048),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=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=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,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.lastNode;if(t&&t.type===a.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var r=new o.Text(e);this.addNode(r),this.lastNode=r}},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.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e}
1,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=l,t.default=l},55048: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;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var o=r(33070),s=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),S(this,e)},e}();t.Node=s;var l=function(e){function t(t){var r=e.call(this)||this;return r.data=t,r}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=l;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.Text,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=u;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.Comment,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=c;var d=function(e){function t(t,r){var n=e.call(this,r)||this;return n.name=t,n.type=o.ElementType.Directive,n}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var f=function(e){function t(t){var r=e.call(this)||this;return r.children=t,r}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?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}(s);t.NodeWithChildren=f;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.CDATA,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(f);t.CDATA=h;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.Root,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9}
1,enumerable:!1,configurable:!0}),t}(f);t.Document=p;var g=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,n)||this;return a.name=t,a.attribs=r,a.type=i,a}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),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}(f);function m(e){return(0,o.isTag)(e)}function A(e){return e.type===o.ElementType.CDATA}function y(e){return e.type===o.ElementType.Text}function v(e){return e.type===o.ElementType.Comment}function b(e){return e.type===o.ElementType.Directive}function w(e){return e.type===o.ElementType.Root}function S(e,t){if(void 0===t&&(t=!1),y(e))r=new u(e.data);else if(v(e))r=new c(e.data);else if(m(e)){var r,n=t?I(e.children):[],i=new g(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(A(e)){var n=t?I(e.children):[],o=new h(n);n.forEach(function(e){return e.parent=o}),r=o}else if(w(e)){var n=t?I(e.children):[],s=new p(n);n.forEach(function(e){return e.parent=s}),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),r=s}else if(b(e)){var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),r=l}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 I(e){for(var t=e.map(function(e){return S(e,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}t.Element=g,t.isTag=m,t.isCDATA=A,t.isText=y,t.isComment=v,t.isDirective=b,t.isDocument=w,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=S},22384:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeed=function(e){var t,r,n,a,o,f,h,p,g,m,A=l(d,e);return A?"feed"===A.name?(r=A.children,n={type:"atom",items:(0,i.getElementsByTagName)("entry",r).map(function(e){var t,r=e.children,n={media:s(r)};c(n,"id","id",r),c(n,"title","title",r);var i=null===(t=l("link",r))||void 0===t?void 0:t.attribs.href;i&&(n.link=i);var a=u("summary",r)||u("content",r);a&&(n.description=a);var o=u("updated",r);return o&&(n.pubDate=new Date(o)),n})},c(n,"id","id",r),c(n,"title","title",r),(a=null===(t=l("link",r))||void 0===t?void 0:t.attribs.href)&&(n.link=a),c(n,"description","subtitle",r),(o=u("updated",r))&&(n.updated=new Date(o)),c(n,"author","email",r,!0),n):(p=null!==(h=null===(f=l("channel",A.children))||void 0===f?void 0:f.children)&&void 0!==h?h:[],g={type:A.name.substr(0,3),id:"",items:(0,i.getElementsByTagName)("item",A.children).map(function(e){var t=e.children,r={media:s(t)};c(r,"id","guid",t),c(r,"title","title",t),c(r,"link","link",t),c(r,"description","description",t);var n=u("pubDate",t)||u("dc:date",t);return n&&(r.pubDate=new Date(n)),r})},c(g,"title","title",p),c(g,"link","link",p),c(g,"description","description",p),(m=u("lastBuildDate",p))&&(g.updated=new Date(m)),c(g,"author","managingEditor",p,!0),g):null};var n=r(83872),i=r(3326),a=["url","type","lang"],o=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function s(e){return(0,i.getElementsByTagName)("media:content",e).map(function(e){for(var t=e.attribs,r={medium:t.medium,isDefault:!!t.isDefault},n=0;n<a.length;n++){var i=a[n];t[i]&&(r[i]=t[i])}for(var s=0;s<o.length;s++){var i=o[s];t[i]&&(r[i]=parseInt(t[i],10))}return t.expression&&(r.expression=t.expression),r})}
1function l(e,t){return(0,i.getElementsByTagName)(e,t,!0,1)[0]}function u(e,t,r){return void 0===r&&(r=!1),(0,n.textContent)((0,i.getElementsByTagName)(e,t,r,1)).trim()}function c(e,t,r,n,i){void 0===i&&(i=!1);var a=u(r,n,i);a&&(e[t]=a)}function d(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}},18344:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentPosition=void 0,t.removeSubsets=function(e){for(var t=e.length;--t>=0;){var r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0){e.splice(t,1);continue}for(var n=r.parent;n;n=n.parent)if(e.includes(n)){e.splice(t,1);break}}return e},t.compareDocumentPosition=o,t.uniqueSort=function(e){return(e=e.filter(function(e,t,r){return!r.includes(e,t+1)})).sort(function(e,t){var r=o(e,t);return r&i.PRECEDING?-1:r&i.FOLLOWING?1:0}),e};var n,i,a=r(38992);function o(e,t){var r=[],n=[];if(e===t)return 0;for(var o=(0,a.hasChildren)(e)?e:e.parent;o;)r.unshift(o),o=o.parent;for(o=(0,a.hasChildren)(t)?t:t.parent;o;)n.unshift(o),o=o.parent;for(var s=Math.min(r.length,n.length),l=0;l<s&&r[l]===n[l];)l++;if(0===l)return i.DISCONNECTED;var u=r[l-1],c=u.children,d=r[l],f=n[l];return c.indexOf(d)>c.indexOf(f)?u===t?i.FOLLOWING|i.CONTAINED_BY:i.FOLLOWING:u===e?i.PRECEDING|i.CONTAINS:i.PRECEDING}(n=i||(t.DocumentPosition=i={}))[n.DISCONNECTED=1]="DISCONNECTED",n[n.PRECEDING=2]="PRECEDING",n[n.FOLLOWING=4]="FOLLOWING",n[n.CONTAINS=8]="CONTAINS",n[n.CONTAINED_BY=16]="CONTAINED_BY"},73153: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.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,i(r(83872),t),i(r(83050),t),i(r(39722),t),i(r(18985),t),i(r(3326),t),i(r(18344),t),i(r(22384),t);var a=r(38992);Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return a.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return a.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return a.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return a.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return a.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return a.hasChildren}})},3326:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.testElement=function(e,t){var r=l(e);return!r||r(t)},t.getElements=function(e,t,r,n){void 0===n&&(n=1/0);var a=l(e);return a?(0,i.filter)(a,t,r,n):[]},t.getElementById=function(e,t,r){return void 0===r&&(r=!0),Array.isArray(t)||(t=[t]),(0,i.findOne)(o("id",e),t,r)},t.getElementsByTagName=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),(0,i.filter)(a.tag_name(e),t,r,n)},t.getElementsByClassName=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),(0,i.filter)(o("class",e),t,r,n)},t.getElementsByTagType=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),(0,i.filter)(a.tag_type(e),t,r,n)};var n=r(38992),i=r(18985),a={tag_name:function(e){return"function"==typeof e?function(t){return(0,n.isTag)(t)&&e(t.name)}:"*"===e?n.isTag:function(t){return(0,n.isTag)(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return(0,n.isText)(t)&&e(t.data)}:function(t){return(0,n.isText)(t)&&t.data===e}}};function o(e,t){return"function"==typeof t?function(r){return(0,n.isTag)(r)&&t(r.attribs[e])}:function(r){return(0,n.isTag)(r)&&r.attribs[e]===t}}function s(e,t){return function(r){return e(r)||t(r)}}function l(e){var t=Object.keys(e).map(function(t){var r=e[t];return Object.prototype.hasOwnProperty.call(a,t)?a[t](r):o(t,r)});return 0===t.length?null:t.reduce(s)}},39722:function(e,t){"use strict";function r(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children,r=t.lastIndexOf(e);r>=0&&t.splice(r,1)}e.next=null,e.prev=null,e.parent=null}
1Object.defineProperty(t,"__esModule",{value:!0}),t.removeElement=r,t.replaceElement=function(e,t){var r=t.prev=e.prev;r&&(r.next=t);var n=t.next=e.next;n&&(n.prev=t);var i=t.parent=e.parent;if(i){var a=i.children;a[a.lastIndexOf(e)]=t,e.parent=null}},t.appendChild=function(e,t){if(r(t),t.next=null,t.parent=e,e.children.push(t)>1){var n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null},t.append=function(e,t){r(t);var n=e.parent,i=e.next;if(t.next=i,t.prev=e,e.next=t,t.parent=n,i){if(i.prev=t,n){var a=n.children;a.splice(a.lastIndexOf(i),0,t)}}else n&&n.children.push(t)},t.prependChild=function(e,t){if(r(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var n=e.children[1];n.prev=t,t.next=n}else t.next=null},t.prepend=function(e,t){r(t);var n=e.parent;if(n){var i=n.children;i.splice(i.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}},18985:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filter=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),i(e,Array.isArray(t)?t:[t],r,n)},t.find=i,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,r,i){void 0===i&&(i=!0);for(var a=Array.isArray(r)?r:[r],o=0;o<a.length;o++){var s=a[o];if((0,n.isTag)(s)&&t(s))return s;if(i&&(0,n.hasChildren)(s)&&s.children.length>0){var l=e(t,s.children,!0);if(l)return l}}return null},t.existsOne=function e(t,r){return(Array.isArray(r)?r:[r]).some(function(r){return(0,n.isTag)(r)&&t(r)||(0,n.hasChildren)(r)&&e(t,r.children)})},t.findAll=function(e,t){for(var r=[],i=[Array.isArray(t)?t:[t]],a=[0];;){if(a[0]>=i[0].length){if(1===i.length)return r;i.shift(),a.shift();continue}var o=i[0][a[0]++];(0,n.isTag)(o)&&e(o)&&r.push(o),(0,n.hasChildren)(o)&&o.children.length>0&&(a.unshift(0),i.unshift(o.children))}};var n=r(38992);function i(e,t,r,i){for(var a=[],o=[Array.isArray(t)?t:[t]],s=[0];;){if(s[0]>=o[0].length){if(1===s.length)return a;o.shift(),s.shift();continue}var l=o[0][s[0]++];if(e(l)&&(a.push(l),--i<=0))return a;r&&(0,n.hasChildren)(l)&&l.children.length>0&&(s.unshift(0),o.unshift(l.children))}}},83872: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.getOuterHTML=s,t.getInnerHTML=function(e,t){return(0,i.hasChildren)(e)?e.children.map(function(e){return s(e,t)}).join(""):""},t.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,i.isCDATA)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&!(0,i.isComment)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&(t.type===o.ElementType.Tag||(0,i.isCDATA)(t))?e(t.children):(0,i.isText)(t)?t.data:""};var i=r(38992),a=n(r(1769)),o=r(33070);function s(e,t){return(0,a.default)(e,t)}},83050:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChildren=i,t.getParent=a,t.getSiblings=function(e){var t=a(e);if(null!=t)return i(t);for(var r=[e],n=e.prev,o=e.next;null!=n;)r.unshift(n),n=n.prev;for(;null!=o;)r.push(o),o=o.next;return r},t.getAttributeValue=function(e,t){var r;return null===(r=e.attribs)||void 0===r?void 0:r[t]},t.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},t.getName=function(e){return e.name},t.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,n.isTag)(t);)t=t.next;return t},t.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,n.isTag)(t);)t=t.prev;return t};var n=r(38992);function i(e){return(0,n.hasChildren)(e)?e.children:[]}function a(e){return e.parent||null}},13571:function(e,t,r){"use strict";var n,i,a,o,s,l,u,c,d=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]}),f=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}
1),h=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)&&d(t,e,r);return f(t,e),t},p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var g=p(r(11234));t.htmlDecodeTree=g.default;var m=p(r(94758));t.xmlDecodeTree=m.default;var A=h(r(38463));t.decodeCodePoint=A.default;var y=r(38463);function v(e){return e>=s.ZERO&&e<=s.NINE}Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return y.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return y.fromCodePoint}}),(n=s||(s={}))[n.NUM=35]="NUM",n[n.SEMI=59]="SEMI",n[n.EQUALS=61]="EQUALS",n[n.ZERO=48]="ZERO",n[n.NINE=57]="NINE",n[n.LOWER_A=97]="LOWER_A",n[n.LOWER_F=102]="LOWER_F",n[n.LOWER_X=120]="LOWER_X",n[n.LOWER_Z=122]="LOWER_Z",n[n.UPPER_A=65]="UPPER_A",n[n.UPPER_F=70]="UPPER_F",n[n.UPPER_Z=90]="UPPER_Z",(i=l=t.BinTrieFlags||(t.BinTrieFlags={}))[i.VALUE_LENGTH=49152]="VALUE_LENGTH",i[i.BRANCH_LENGTH=16256]="BRANCH_LENGTH",i[i.JUMP_TABLE=127]="JUMP_TABLE",(a=u||(u={}))[a.EntityStart=0]="EntityStart",a[a.NumericStart=1]="NumericStart",a[a.NumericDecimal=2]="NumericDecimal",a[a.NumericHex=3]="NumericHex",a[a.NamedEntity=4]="NamedEntity",(o=c=t.DecodingMode||(t.DecodingMode={}))[o.Legacy=0]="Legacy",o[o.Strict=1]="Strict",o[o.Attribute=2]="Attribute";var b=function(){function e(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=u.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=c.Strict}return e.prototype.startEntity=function(e){this.decodeMode=e,this.state=u.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},e.prototype.write=function(e,t){switch(this.state){case u.EntityStart:if(e.charCodeAt(t)===s.NUM)return this.state=u.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=u.NamedEntity,this.stateNamedEntity(e,t);case u.NumericStart:return this.stateNumericStart(e,t);case u.NumericDecimal:return this.stateNumericDecimal(e,t);case u.NumericHex:return this.stateNumericHex(e,t);case u.NamedEntity:return this.stateNamedEntity(e,t)}},e.prototype.stateNumericStart=function(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===s.LOWER_X?(this.state=u.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=u.NumericDecimal,this.stateNumericDecimal(e,t))},e.prototype.addToNumericResult=function(e,t,r,n){if(t!==r){var i=r-t;this.result=this.result*Math.pow(n,i)+parseInt(e.substr(t,i),n),this.consumed+=i}},e.prototype.stateNumericHex=function(e,t){for(var r=t;t<e.length;){var n,i=e.charCodeAt(t);if(!v(i)&&(!((n=i)>=s.UPPER_A)||!(n<=s.UPPER_F))&&(!(n>=s.LOWER_A)||!(n<=s.LOWER_F)))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(i,3);t+=1}return this.addToNumericResult(e,r,t,16),-1},e.prototype.stateNumericDecimal=function(e,t){for(var r=t;t<e.length;){var n=e.charCodeAt(t);if(!v(n))return this.addToNumericResult(e,r,t,10),this.emitNumericEntity(n,2);t+=1}return this.addToNumericResult(e,r,t,10),-1},e.prototype.emitNumericEntity=function(e,t){var r;if(this.consumed<=t)return null===(r=this.errors)||void 0===r||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===s.SEMI)this.consumed+=1;else if(this.decodeMode===c.Strict)return 0;return this.emitCodePoint((0,A.replaceCodePoint)(this.result),this.consumed),this.errors&&(e!==s.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},e.prototype.stateNamedEntity=function(e,t){for(var r=this.decodeTree,n=r[this.treeIndex],i=(n&l.VALUE_LENGTH)>>14;t<e.length;t++,this.excess++){var a=e.charCodeAt(t);if(this.treeIndex=S(r,n,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return 0===this.result||this.decodeMode===c.Attribute&&(0===i||function(e){var t;return e===s.EQUALS||(t=e)>=s.UPPER_A&&t<=s.UPPER_Z||t>=s.LOWER_A&&t<=s.LOWER_Z||v(t)}(a))?0:this.emitNotTerminatedNamedEntity();if(0!=(i=((n=r[this.treeIndex])&l.VALUE_LENGTH)>>14)){if(a===s.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==c.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1},e.prototype.emitNotTerminatedNamedEntity=function(){var e,t=this.result,r=(this.decodeTree[t]&l.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed},e.prototype.emitNamedEntityData=function(e,t,r){var n=this.decodeTree;return this.emitCodePoint(1===t?n[e]&~l.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r},e.prototype.end=function(){var e;switch(this.state){case u.NamedEntity:return 0!==this.result&&(this.decodeMode!==c.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case u.NumericDecimal:return this.emitNumericEntity(0,2);case u.NumericHex:return this.emitNumericEntity(0,3);case u.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case u.EntityStart:return 0}},e}();function w(e){var t="",r=new b(e,function(e){return t+=(0,A.fromCodePoint)(e)});return function(e,n){for(var i=0,a=0;(a=e.indexOf("&",a))>=0;){t+=e.slice(i,a),r.startEntity(n);var o=r.write(e,a+1);if(o<0){i=a+r.end();break}i=a+o,a=0===o?i+1:i}var s=t+e.slice(i);return t="",s}}function S(e,t,r,n){var i=(t&l.BRANCH_LENGTH)>>7,a=t&l.JUMP_TABLE;if(0===i)return 0!==a&&n===a?r:-1;if(a){var o=n-a;return o<0||o>=i?-1:e[r+o]-1}for(var s=r,u=s+i-1;s<=u;){var c=s+u>>>1,d=e[c];if(d<n)s=c+1;else{if(!(d>n))return e[c+i];u=c-1}}return -1}t.EntityDecoder=b,t.determineBranch=S;var I=w(g.default),E=w(m.default);t.decodeHTML=function(e,t){return void 0===t&&(t=c.Legacy),I(e,t)},t.decodeHTMLAttribute=function(e){return I(e,c.Attribute)},t.decodeHTMLStrict=function(e){return I(e,c.Strict)},t.decodeXML=function(e){return E(e,c.Strict)}},38463:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var r,n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function i(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=n.get(e))&&void 0!==t?t:e}t.fromCodePoint=null!==(r=String.fromCodePoint)&&void 0!==r?r:function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)},t.replaceCodePoint=i,t.default=function(e){return(0,t.fromCodePoint)(i(e))}},24484: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.encodeNonAsciiHTML=t.encodeHTML=void 0;var i=n(r(85742)),a=r(88977),o=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function s(e,t){for(var r,n="",o=0;null!==(r=e.exec(t));){var s=r.index;n+=t.substring(o,s);var l=t.charCodeAt(s),u=i.default.get(l);if("object"==typeof u){if(s+1<t.length){var c=t.charCodeAt(s+1),d="number"==typeof u.n?u.n===c?u.o:void 0:u.n.get(c);if(void 0!==d){n+=d,o=e.lastIndex+=1;continue}}u=u.v}if(void 0!==u)n+=u,o=s+1;else{var f=(0,a.getCodePoint)(t,s);n+="&#x".concat(f.toString(16),";"),o=e.lastIndex+=Number(f!==l)}}return n+t.substr(o)}t.encodeHTML=function(e){return s(o,e)},t.encodeNonAsciiHTML=function(e){return s(a.xmlReplacer,e)}},88977:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var r=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function n(e){for(var n,i="",a=0;null!==(n=t.xmlReplacer.exec(e));){var o=n.index,s=e.charCodeAt(o),l=r.get(s);void 0!==l?(i+=e.substring(a,o)+l,a=o+1):(i+="".concat(e.substring(a,o),"&#x").concat((0,t.getCodePoint)(e,o).toString(16),";"),a=t.xmlReplacer.lastIndex+=Number((64512&s)==55296))}return i+e.substr(a)}function i(e,t){return function(r){for(var n,i=0,a="";n=e.exec(r);)i!==n.index&&(a+=r.substring(i,n.index)),a+=t.get(n[0].charCodeAt(0)),i=n.index+1;return a+r.substring(i)}}t.getCodePoint=null!=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return(64512&e.charCodeAt(t))==55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)},t.encodeXML=n,t.escape=n,t.escapeUTF8=i(/[&<>'"]/g,r),t.escapeAttribute=i(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t.escapeText=i(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))},11234:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array('áµ<\xd5ıÊÒÕ»×ÙµÛÞ¢ßà à©àªà¶¡à¹à¼à¼¦áá¨á¡ááááá¥\0\0\0\0\0\0á«áá¦á°á·á½¾â â°âââ»ââ ¤â¤â´â¹â¿ããºã¹ã¬ã£¾ã¨¨ã©±ã« 㬮à EMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcfligè»\xc6äPè»&ä¦cuteè»\xc1äreve;äÄiyx}rcè»\xc2ä;är;ì\ud835\udd04raveè»\xc0äpha;äacr;äd;æ©Ägp\x9d\xa1on;äf;ì\ud835\udd38plyFunction;æ¡ingè»\xc5ä
Äcs\xbe\xc3r;ì\ud835\udc9cign;æildeè»\xc3ämlè»\xc4äÐaceforsu\xe5\xfb\xfeÄÄĢħĪÄcr\xea\xf2kslash;æÅ¶\xf6\xf8;æ«§ed;æy;äÆcrtÄ
ÄÄause;æµnoullis;æ¬a;är;ì\ud835\udd05pf;ì\ud835\udd39eve;äc\xf2Ämpeq;æÜHOacdefhilorsuÅÅÅÆÆÆ¢ÆµÆ·ÆºÇÈɳɸɾcy;ä§PYè»\xa9䩯cpyÅŢźute;äÄ;iŧŨætalDifferentialD;æ
leys;æÈaeioÆÆÆÆron;ädilè»\xc7ärc;änint;æ°ot;äÄdnƧÆilla;ä¸terDot;ä·\xf2Å¿i;ä§rcleÈDMPTÇÇÇÇot;æinus;ælus;æimes;æoÄcsǢǸkwiseContourIntegral;æ²eCurlyÄDQÈÈoubleQuote;æuote;æÈlnpuÈȨÉÉonÄ;eȥȦæ·;æ©´ÆgitȯȶȺruent;æ¡nt;æ¯ourIntegral;æ®ÄfrÉÉ;æoduct;ænterClockwiseContourIntegral;æ³oss;樯cr;ì\ud835\udc9epÄ;CÊÊ
æap;æÖDJSZacefiosÊ Ê¬Ê°Ê´Ê¸ËËˡ˦̳ÒÄ;oŹʥtrahd;æ¤cy;äcy;ä
cy;äÆgrsÊ¿ËËger;æ¡r;æ¡hv;櫤ÄayËËron;ä;älÄ;tËËæa;är;ì\ud835\udd07Äaf˫̧Äcm˰̢riticalÈADGTÌÌÌÌcute;ä´oÅ´ÌÌ;äbleAcute;ärave;ä ilde;äond;æferentialD;æ
Ѱ̽\0\0\0ÍÍ\0Ð
f;ì\ud835\udd3bÆ;DEÍÍÍä¨ot;æqual;æbleÌCDLRUVͣͲÎÏϢϸontourIntegra\xecȹoɴ͹\0\0Í»\xbbÍnArrow;æÄeoÎΤftÆARTÎÎΡrrow;æightArrow;æe\xe5ËngÄLRΫÏeftÄARγιrrow;æ¸ightArrow;æºightArrow;æ¹ightÄATÏÏrrow;æee;æ¨pÉÏ©\0\0ϯrrow;æownArrow;æerticalBar;æ¥nÌABLRTaÐЪаÑѿͼrrowÆ;BUÐÐТæar;æ¤pArrow;æµreve;äeftËк\0Ñ\0ÑightVector;æ¥eeVector;æ¥ectorÄ;BÑÑæ½ar;æ¥ightÇѧ\0ѱeeVector;æ¥ectorÄ;BѺѻæar;æ¥eeÄ;AÒÒæ¤rrow;æ§ÄctÒÒr;ì\ud835\udc9frok;äà NTacdfglmopqstuxÒ½ÓÓÓÓÓ¢Ó§Ó®ÓµÔ¡Ô¯Ô¶ÕÕÕ Õ¥G;ä
Hè»\xd0äcuteè»\xc9äÆaiyÓÓÓron;ärcè»\xcaä;äot;är;ì\ud835\udd08raveè»\xc8äement;æÄapÓºÓ¾cr;ätyÉÔ\0\0ÔmallSquare;æ»erySmallSquare;æ«ÄgpÔ¦Ôªon;äf;ì\ud835\udd3csilon;äuÄaiÔ¼ÕlÄ;TÕÕæ©µilde;ælibrium;æÄciÕÕr;æ°m;橳a;ämlè»\xcbäÄipÕªÕ¯sts;æonentialE;æ
ÊcfiosÖ
ÖÖÖ²×y;ä¤r;ì\ud835\udd09lledÉÖ\0\0Ö£mallSquare;æ¼erySmallSquare;æªÍ°Öº\0Ö¿\0\0×f;ì\ud835\udd3dAll;æriertrf;æ±c\xf2רJTabcdfgorst×¨×¬×¯×ºØØØØØØ£Ù¬Ù²cy;äè»>ä¾mmaÄ;d׷׸ä;äreve;äÆeiyØØØdil;ä¢rc;ä;äot;ä r;ì\ud835\udd0a;æpf;ì\ud835\udd3eeaterÌEFGLSTصÙÙÙÙÙ¦qualÄ;Lؾؿæ¥ess;æullEqual;æ§reater;檢ess;æ·lantEqual;橾ilde;æ³cr;ì\ud835\udca2;æ«ÐAacfiosuÚ
ÚÚÚÚÚªÚ¾ÛRDcy;äªÄctÚÚek;ä;äirc;ä¤r;ælbertSpace;æÇ°Ú¯\0Ú²f;æizontalLine;æÄctÛÛ
\xf2Ú©rok;ä¦mpÅÛÛownHum\xf0įqual;æÜEJOacdfgmnostuÛºÛ¾ÜÜÜÜÜܡܨÝݸÞÞÞcy;älig;ä²cy;äcuteè»\xcdäÄiyÜÜrcè»\xceä;äot;ä°r;æraveè»\xccäÆ;apÜ Ü¯Ü¿ÄcgÜ´Ü·r;äªinaryI;æ
lie\xf3ÏÇ´Ý\0Ý¢Ä;eÝÝæ¬ÄgrÝÝral;æ«section;æisibleÄCTݬݲomma;æ£imes;æ¢ÆgptÝ¿ÞÞon;ä®f;ì\ud835\udd40a;äcr;æilde;ä¨Ç«Þ\0Þcy;älè»\xcfäÊcfosuÞ¬Þ·Þ¼ßßÄiyÞ±Þµrc;ä´;är;ì\ud835\udd0dpf;ì\ud835\udd41Ç£ß\0ßr;ì\ud835\udca5rcy;äkcy;äÎHJacfosߤߨ߽߬߱à à cy;ä¥cy;äppa;äÄeyß¶ß»dil;ä¶;är;ì\ud835\udd0epf;ì\ud835\udd42cr;ì\ud835\udca6ÖJTaceflmostà ¥à ©à ¬à¡à¡£à¦³à¦¸à§à§à¨·à©cy;äè»<ä¼Êcmnprà ·à ¼à¡à¡à¡ute;ä¹bda;äg;æªlacetrf;ær;æÆaeyà¡à¡à¡¡ron;ä½dil;ä»;äÄfsࡨ॰tÔACDFRTUVarࡾࢩࢱࣦ࣠ࣼयà¥Î४Änrà¢à¢gleBracket;æ¨rowÆ;BRà¢à¢à¢æar;æ¤ightArrow;æeiling;æoǵࢷ\0à£bleBracket;æ¦nÇà£\0à£eeVector;楡ectorÄ;Bà£à£æar;æ¥loor;æightÄAV࣯ࣵrrow;æector;æ¥Äerà¤à¤eÆ;AVà¤à¤à¤æ£rrow;æ¤ector;æ¥iangleÆ;BEतथऩæ²ar;æ§qual;æ´pÆDTVषà¥à¥ownVector;æ¥eeVector;æ¥ ectorÄ;Bà¥à¥æ¿ar;æ¥ectorÄ;B॥०æ¼ar;æ¥ight\xe1ÎsÌEFGLSTॾà¦à¦à¦à¦¢à¦qualGreater;æullEqual;æ¦reater;æ¶ess;檡lantEqual;橽ilde;æ²r;ì\ud835\udd0fÄ;eঽাæftarrow;æidot;ä¿Ænpwà§à¨à¨gÈLRlrà§à§·à¨à¨eftÄAR০৬rrow;æµightArrow;æ·ightArrow;æ¶eftÄarγà¨ight\xe1οight\xe1Ïf;ì\ud835\udd43erÄLRਢਬeftArrow;æightArrow;æÆchtਾà©à©\xf2à¡;æ°rok;ä
;æªÐacefiosuà©à©à© ੷੼àª
àªàªp;æ¤
y;äÄdl੥੯iumSpace;ælintrf;æ³r;ì\ud835\udd10nusPlus;æpf;ì\ud835\udd44c\xf2à©¶;äÒJacefostuણધàªà«à¬à¬à¶à¶à¶cy;äcute;ä
Æaey઴હાron;ä
dil;ä
;äÆgswà«à«°à¬ativeÆMTVà«à«à«¨ediumSpace;æhiÄcn૦à«\xebà«eryThi\xeeà«tedÄGL૸à¬reaterGreate\xf2Ù³essLes\xf3à©Line;är;ì\ud835\udd11ÈBnptଢନଷ଺reak;æ BreakingSpace;ä f;æÚ;CDEGHLNPRSTVàààªà¼à®¡à¯«à°à±à²à²¦à³àµ¡à¶
櫬Äouàà¤ngruent;æ¢pCap;æoubleVerticalBar;æ¦Ælqxà®à®à®ement;æualÄ;Tà®à®æ ilde;ìâ̸ists;æreaterÎ;EFGLSTஶஷ஽à¯à¯à¯à¯¥æ¯qual;æ±ullEqual;ìâ§Ì¸reater;ìâ«Ì¸ess;æ¹lantEqual;ì⩾̸ilde;æµumpÅ௲௽ownHump;ìâ̸qual;ìâ̸eÄfsà°à°§tTriangleÆ;BEà°à°à°¡æªar;ìâ§Ì¸qual;æ¬sÌ;EGLSTవశ఼à±à±à±æ®qual;æ°reater;æ¸ess;ìâªÌ¸lantEqual;ì⩽̸ilde;æ´estedÄGL౨౹reaterGreater;ì⪢̸essLess;ì⪡̸recedesÆ;ESà²à²à²æqual;ì⪯̸lantEqual;æ ÄeiಫಹverseElement;æghtTriangleÆ;BEà³à³à³æ«ar;ìâ§Ì¸qual;æÄquà³à´uareSuÄbp೨೹setÄ;Eà³°à³³ìâ̸qual;æ¢ersetÄ;Eà´à´ìâ̸qual;æ£Æbcpà´à´¤àµsetÄ;Eà´à´ìââqual;æceedsÈ;ESTà´²à´³à´»àµæqual;ì⪰̸lantEqual;æ¡ilde;ìâ¿Ì¸ersetÄ;Eàµàµìââqual;æildeÈ;EFT൮൯൵ൿæqual;æullEqual;æilde;æerticalBar;æ¤cr;ì\ud835\udca9ildeè»\xd1ä;äÜEacdfgmoprstuvà¶½à·à·à·à·à· à·§à·¼à¸à¸ ยา฿à¹lig;ä
cuteè»\xd3äÄiyà·à·rcè»\xd4ä;äblac;ä
r;ì\ud835\udd12raveè»\xd2äÆaei෮ෲ෶cr;ä
ga;ä©cron;äpf;ì\ud835\udd46enCurlyÄDQà¸à¸oubleQuote;æuote;æ;æ©Äclวฬr;ì\ud835\udcaaashè»\xd8äiŬื฼deè»\xd5äes;樷mlè»\xd6äerÄBPà¹à¹ Äarà¹à¹r;æ¾acÄekà¹à¹;æet;æ´arenthesis;
1æÒacfhilors๿àºàºàºàºàºàºàº°à»¼rtialD;æy;är;ì\ud835\udd13i;ä¦;ä usMinus;ä±Äipຢàºncareplan\xe5Úf;æÈ;eio຺ູ໠໤檻cedesÈ;ESTà»à»à»à»æºqual;檯lantEqual;æ¼ilde;æ¾me;æ³Ädp໩໮uct;æortionÄ;aȥ໹l;æÄcià¼à¼r;ì\ud835\udcab;ä¨ÈUfosà¼à¼à¼à¼OTè»"ä¢r;ì\ud835\udd14pf;æcr;ì\ud835\udcacØBEacefhiorsu༾à½à½à½ ཱིྦྷྪà¾áá©á´á¾arr;æ¤Gè»\xae䮯cnrà½à½à½ute;ä
g;æ«rÄ;tà½à½æ l;æ¤Æaeyཧཬཱron;ä
dil;ä
;ä Ä;vླྀཹæerseÄEUà¾à¾Älqà¾à¾ement;æuilibrium;æpEquilibrium;楯r\xbbཹo;ä¡ghtÐACDFTUVaà¿à¿«à¿³á¢á¨ááÏÄnrà¿à¿gleBracket;æ©rowÆ;BLà¿à¿à¿¡æar;æ¥eftArrow;æeiling;æoǵ࿹\0á
bleBracket;æ§nÇá\0áeeVector;æ¥ectorÄ;Bááæar;æ¥loor;æÄerááeÆ;AVáµá¶á¼æ¢rrow;æ¦ector;æ¥iangleÆ;BEáááæ³ar;æ§qual;æµpÆDTVá£á®á¸ownVector;æ¥eeVector;æ¥ectorÄ;Bááæ¾ar;æ¥ectorÄ;Bááæar;æ¥Äpuááf;ændImplies;楰ightarrow;æÄchá¹á¼r;æ;æ±leDelayed;æ§´ÚHOacfhimoqstuá¤á±á·á½ááá
á
á
¡á
§áµá»á¿ÄCcá©á®Hcy;ä©y;ä¨FTcy;ä¬cute;ä
Ê;aeiyáááááæª¼ron;ä
dil;ä
rc;ä
;ä¡r;ì\ud835\udd16ortÈDLRUáªá´á¾á
ownArrow\xbbÐeftArrow\xbbà¢ightArrow\xbbà¿pArrow;ægma;ä£allCircle;æpf;ì\ud835\udd4aɲá
\0\0á
°t;æareÈ;ISUá
ȇ
¼áá¯æ¡ntersection;æuÄbpáásetÄ;Eááæqual;æersetÄ;Eá¨á©æqual;ænion;æcr;ì\ud835\udcaear;æÈbcmpááááÄ;sááæetÄ;Eááqual;æÄchá á
eedsÈ;ESTáá®á´á¿æ»qual;檰lantEqual;æ½ilde;æ¿Th\xe1à¾;æÆ;esááá£ærsetÄ;Eááæqual;æet\xbbáÖHRSacfhiorsá¾ááááá±á¶ááááORNè»\xdeäADE;æ¢ÄHcáácy;äy;ä¦Äbuáá;ä;䤯aeyá¥áªá¯ron;ä
¤dil;ä
¢;ä¢r;ì\ud835\udd17Äeiá»áDzá\0áefore;æ´a;äÄcnáákSpace;ìââSpace;ældeÈ;EFTá«á¬á²á¼æ¼qual;æullEqual;æ
ilde;æpf;ì\ud835\udd4bipleDot;æÄctáár;ì\ud835\udcafrok;ä
¦à«¡á·ááá¦\0á¬á±\0\0\0\0\0á¸á½á·á
\0á¿áááÄcrá»áuteè»\xdaärÄ;oááæcir;æ¥rÇ£á\0áy;äve;ä
¬Äiyáá£rcè»\xdbä;ä£blac;ä
°r;ì\ud835\udd18raveè»\xd9äacr;ä
ªÄdiáá©erÄBPááÄaráár;äacÄekáá;æet;æµarenthesis;æonÄ;Pá°á±ælus;æÄgpá»á¿on;ä
²f;ì\ud835\udd4cÐADETadpsáá®á¸áϨááá³rrowÆ;BDá
á á¤ar;æ¤ownArrow;æ
ownArrow;æquilibrium;楮eeÄ;Aááæ¥rrow;æ¥own\xe1ϳerÄLRáá¨eftArrow;æightArrow;æiÄ;lá¹áºäon;ä¥ing;ä
®cr;ì\ud835\udcb0ilde;ä
¨mlè»\xdcäÒDbcdefosvá§á¬á°á³á¾á
áááash;æ«ar;æ««y;äashÄ;lá»á¼æ©;櫦Äeráá
;æÆbtyáááºar;æÄ;iáácalÈBLSTá¡á¥áªá´ar;æ£ine;ä¼eparator;æilde;æThinSpace;ær;ì\ud835\udd19pf;ì\ud835\udd4dcr;ì\ud835\udcb1dash;æªÊcefosá§á¬á±á¶á¼irc;ä
´dge;ær;ì\ud835\udd1apf;ì\ud835\udd4ecr;ì\ud835\udcb2Èfiosáááár;ì\ud835\udd1b;äpf;ì\ud835\udd4fcr;ì\ud835\udcb3ÒAIUacfosuá±áµá¹á½ááááá cy;ä¯cy;äcy;ä®cuteè»\xddäÄiyáárc;ä
¶;ä«r;ì\ud835\udd1cpf;ì\ud835\udd50cr;ì\ud835\udcb4ml;ä
¸ÐHacdefosáµá¹á¿áááá á¤cy;äcute;ä
¹Äayááron;ä
½;äot;ä
»Ç²á\0áoWidt\xe8à«a;är;æ¨pf;æ¤cr;ì\ud835\udcb5௡ááá\0á°á¶á¿\0\0\0\0ááá«áá\0ááá²á¹\0á¾cuteè»\xe1ä¡reve;äÌ;Ediuyááá¡á£á¨áæ¾;ìâ¾Ì³;æ¿rcè»\xe2ä¢teè»\xb4Ì;ä°ligè»\xe6ä¦Ä;r\xb2áº;ì\ud835\udd1eraveè»\xe0ä ÄepááÄfpáásym;æµ\xe8áha;ä±ÄapácÄclá¤á§r;äg;樿ɤá°\0\0áÊ;adsváºá»á¿ááæ§nd;æ©;æ©lope;æ©;æ©Î;elmrszááááá¿ááæ ;榤e\xbbásdÄ;aá¥á¦æ¡Ñ¡á°á²á´á¶á¸áºá¼á¾;榨;榩;榪;榫;榬;æ¦;榮;榯tÄ;vá
áæbÄ;dááæ¾;æ¦Äptááh;æ¢\xbb\xb9arr;æ¼Ägpá£á§on;ä
f;ì\ud835\udd52Î;Eaeiopáá»á½áááá;æ©°cir;橯;æd;æs;ä§roxÄ;eáá\xf1áingè»\xe5䥯ctyá¡á¦á¨r;ì\ud835\udcb6;äªmpÄ;eáá¯\xf1Êildeè»\xe3ä£mlè»\xe4ä¤Äciááonin\xf4ɲnt;æ¨à Nabcdefiklnoprsuáá±á°á¼ááá¸á½á á¦á ¹á¡á᤽á¥á¥°ot;æ«Äcrá¶ákÈcepsáá
ááong;æpsilon;ä¶rime;æµimÄ;eááæ½q;æÅ¶á¢á¦ee;æ½edÄ;gá¬áæ
e\xbbárkÄ;táá·brk;æ¶Äoyáá;ä±quo;æÊcmprtááá¡á¤á¨ausÄ;eÄÄptyv;榰s\xe9áno\xf5ÄÆahwá¯á±á³;ä²;æ¶een;æ¬r;ì\ud835\udd1fgÎcostuvwááá³ááááÆaiuááá\xf0Ý rc;æ¯p\xbbá±Ædptá¤á¨áot;æ¨lus;æ¨imes;æ¨É±á¹\0\0á¾cup;æ¨ar;æ
riangleÄduááown;æ½p;æ³plus;æ¨e\xe5á\xe5áarow;æ¤Æakoáá ¦á µÄcná²á £kÆlstáºÖ«á ozenge;æ§«riangleÈ;dlrá á á á æ´own;æ¾eft;æight;æ¸k;æ£Æ±á «\0á ³Æ²á ¯\0á ±;æ;æ4;æck;æÄeoá ¾á¡Ä;qá¡á¡ì=â¥uiv;ìâ¡â¥t;æÈptwxá¡á¡á¡§á¡¬f;ì\ud835\udd53Ä;táá¡£om\xbbátie;æØDHUVbdhmptuvá¢
á¢á¢ªá¢»á£á£á£¬á£¿á¤
á¤á¤á¤¡ÈLRlrá¢á¢á¢á¢;æ;æ;æ;æÊ;DUduᢡᢢᢤᢦᢨæ;æ¦;æ©;æ¤;æ§ÈLRlrᢳᢵᢷᢹ;æ;æ;æ;æÎ;HLRhlrá£á£á£á£á£á£á£æ;æ¬;æ£;æ ;æ«;æ¢;æox;æ§ÈLRlrᣤᣦᣨᣪ;æ;æ;æ;æÊ;DUduڽ᣷᣹᣻᣽;æ¥;æ¨;æ¬;æ´inus;ælus;æimes;æ ÈLRlrá¤á¤á¤á¤;æ;æ;æ;æÎ;HLRhlrᤰᤱᤳᤵᤷ᤻᤹æ;æª;æ¡;æ;æ¼;æ¤;æÄevÄ£á¥barè»\xa6ä¦Èceioá¥á¥á¥á¥ r;ì\ud835\udcb7mi;æmÄ;eáálÆ;bhᥨᥩᥫä;æ§
sub;æÅ¬á¥´á¥¾lÄ;e᥹᥺æ¢t\xbb᥺pÆ;Eeįá¦
á¦;檮Ä;qÛÛೡᦧ\0᧨á¨á¨á¨²\0ᨷá©\0\0᪴\0\0á«\0\0ᬡᬮáá\0᯽\0á°Æcprá¦á¦²á§ute;äÌ;abcdsᦿá§á§á§á§á§æ©nd;æ©rcup;æ©Äauá§á§p;æ©p;æ©ot;æ©;ìâ©ï¸Äeo᧢᧥t;æ\xeeÚÈaeiuá§°á§»á¨á¨
ǰ᧵\0᧸s;æ©on;
1ädilè»\xe7ä§rc;äpsÄ;sá¨á¨æ©m;æ©ot;äÆdmná¨á¨ ᨦilè»\xb8Æptyv;榲tè\xa2;eá¨á¨®ä¢r\xe4Ʋr;ì\ud835\udd20Æceiᨽá©á©y;äckÄ;má©á©æark\xbbá©;ärÎ;Ecefmsá©á© ᩢᩫ᪤᪪᪮æ;æ§Æ;elᩩᩪá©äq;æeɡᩴ\0\0áªrrowÄlr᩼áªeft;æºight;æ»ÊRSacdáªáªáªáªáª\xbbà½;æst;æirc;æash;ænint;æ¨id;櫯cir;æ§ubsÄ;u᪻᪼æ£it\xbb᪼ˬá«á«á«º\0á¬onÄ;eá«á«äºÄ;q\xc7\xc6Éá«\0\0á«¢aÄ;tá«á«ä¬;äÆ;fl᫨᫩᫫æ\xeeá
eÄmx᫱᫶ent\xbbá«©e\xf3Éǧ᫾\0á¬Ä;dá»á¬ot;æ©n\xf4ÉÆfryá¬á¬á¬;ì\ud835\udd54o\xe4Éè\xa9;sÅá¬r;æÄaoᬥᬩrr;æµss;æÄcuᬲᬷr;ì\ud835\udcb8ÄbpᬼáÄ;eááæ«;æ«Ä;eááæ«;æ«dot;æ¯Îdelprvwá á¬á·á®á®¬á¯á¯¹arrÄlrá¨áª;椸;椵ɰá²\0\0áµr;æc;æarrÄ;pá¿á®æ¶;椽Ì;bcdosá®á®á®á®¡á®¥á®¨æªrcap;æ©Äauá®á®p;æ©p;æ©ot;ær;æ©
;ìâªï¸Èalrv᮵ᮿá¯á¯£rrÄ;mᮼᮽæ·;椼yÆevwá¯á¯á¯qɰá¯\0\0á¯re\xe3á³u\xe3áµee;æedge;æenè»\xa4ä¤earrowÄlrᯮ᯳eft\xbbá®ight\xbbᮽe\xe4á¯Äciá°á°onin\xf4Ç·nt;æ±lcty;æà¦AHabcdefhijlorstuwz᰸᰻᰿á±á±©á±µá²á²á²¬á²·á³»á³¿á´áµ»á¶á¶«á¶»á·á·r\xf2Îar;楥Èglrsá±á±á±á±ger;æ eth;æ¸\xf2á³hÄ;vá±á±æ\xbbà¤Å«á±¡á±§arow;æ¤a\xe3ÌÄayᱮᱳron;ä;ä´Æ;ao̲ᱼá²ÄgrÊ¿á²r;ætseq;æ©·Æglmá²á²á²è»\xb0ä°ta;ä´ptyv;榱ÄirᲣᲨsht;楿;ì\ud835\udd21arÄlrᲳᲵ\xbbà£\xbbáÊaegsvá³Í¸á³á³á³ mÆ;oșá³á³ndÄ;șá³uit;æ¦amma;äin;æ²Æ;io᳧᳨᳸ä·deè\xf7;oá³§á³°ntimes;æn\xf8á³·cy;äcɯá´\0\0á´rn;æop;æÊlptuwá´á´á´¢áµáµlar;ä¤f;ì\ud835\udd55Ê;empsÌá´á´·á´½áµqÄ;dÍá´³ot;æinus;æ¸lus;æquare;æ¡blebarwedg\xe5\xfanÆadhá®áµáµ§ownarrow\xf3á²arpoonÄlrᵲᵶef\xf4á²´igh\xf4ᲶŢᵿá¶
karo\xf7à½É¯á¶\0\0á¶rn;æop;æÆcotá¶á¶£á¶¦Äryá¶á¶¡;ì\ud835\udcb9;äl;æ§¶rok;äÄdrá¶°á¶´ot;æ±iÄ;fá¶ºá æ¿Äahá·á·r\xf2Щa\xf2ྦangle;榦Äciá·á·y;ägrarr;æ¿à¤Dacdefglmnopqrstuxá¸á¸á¸á¸¸Õ¸á¸¼á¹á¹¡á¹¾áº¥áº¯áº½á»¡á¼ªá¼·á½á½á½ÄDoá¸á´´o\xf4á²Äcsá¸á¸uteè»\xe9ä©ter;æ©®ÈaioyḢḧḱḶron;ärÄ;cá¸á¸®æè»\xeaäªlon;æ;äot;äÄDrá¹á¹
ot;æ;ì\ud835\udd22Æ;rsá¹á¹á¹æªaveè»\xe8ä¨Ä;dá¹á¹æªot;æªÈ;ilsṪṫṲṴæªnters;æ§;æÄ;dṹṺæªot;æªÆapsáº
áºáºcr;ätyÆ;sváºáºáºæ
et\xbbáºpÄ1;áºáº¤Ä³áº¡áº£;æ;æ
æÄgsẪẬ;ä
p;æÄgpẴẸon;äf;ì\ud835\udd56Æalsá»á»á»rÄ;sá»á»æl;æ§£us;橱iÆ;lvá»á»á»äµon\xbbá»;äµÈcsuvỪỳá¼á¼£Äioữḱrc\xbbḮɩỹ\0\0á»»\xedÕantÄglá¼á¼tr\xbbá¹ess\xbbṺÆaeiá¼á¼á¼ls;ä½st;ævÄ;DȵἠD;橸parsl;æ§¥ÄDaἯἳot;ærr;楱Æcdiá¼¾á½á»¸r;æ¯o\xf4ÍÄahá½á½;ä·è»\xf0ä°Ämrá½á½lè»\xebä«o;æ¬Æcipὡὤὧl;ä¡s\xf4Õ®ÄeoὬὴctatio\xeeÕnential\xe5չৡá¾\0á¾\0ᾡᾧ\0\0á¿á¿\0á¿\0ῦῪâ\0ââllingdotse\xf1á¹y;ämale;æÆilrá¾á¾³á¿lig;èï¬É©á¾¹\0\0á¾½g;èï¬ig;èï¬;ì\ud835\udd23lig;èï¬lig;ìfjÆaltá¿á¿á¿¡t;æig;èï¬ns;æ±of;äǰ΅\0ῳf;ì\ud835\udd57ÄakÖ¿á¿·Ä;vῼ´æ;æ«artint;æ¨ÄaoââÄcsââαââ°â¸â
â\0âβâ¢â¥â§âªâ¬\0â®è»\xbdä½;æ
è»\xbcä¼;æ
;æ
;æ
Ƴâ´\0â¶;æ
;æ
Ê´â¾â\0\0âè»\xbeä¾;æ
;æ
5;æ
ƶâ\0â;æ
;æ
8;æ
l;æwn;æ¢cr;ì\ud835\udcbbà¢Eabcdefgijlnorstvââââ¥â°â´â°âµâºâ¿âââ¸Ìâ¾â
âÄ;lÙâ;æªÆcmpâââute;äµmaÄ;dâá³ä³;æªreve;äÄiyâªâ®rc;ä;ä³ot;ä¡È;lqsؾÙâ½âÆ;qsؾÙâlan\xf4Ù¥È;cdlÙ¥âââ¥c;檩otÄ;oââæªÄ;lâ¢â£æª;æªÄ;eâªâìâï¸s;æªr;ì\ud835\udd24Ä;gÙ³Ømel;æ·cy;äÈ;EajÙâââ;æª;檥;檤ÈEaesâââ©â´;æ©pÄ;pâ£â¤æªrox\xbbâ¤Ä;qâ®â¯æªÄ;qâ®âim;æ§pf;ì\ud835\udd58Äciâ
â
r;æmÆ;elÙ«â
â
;æª;æªè>;cdlqr×®â
â
ªâ
®â
³â
¹Äciâ
¥â
§;檧r;橺ot;æPar;æ¦uest;橼Êadelsââ
ªâÙâǰâ\0âpro\xf8âr;楸qÄlqØ¿âles\xf3âi\xedÙ«Äenâ£ârtneqq;ìâ©ï¸\xc5âªÔAabcefkosyâââ±âµâºâââ¯â¨â½r\xf2Î Èilmrâââârs\xf0áf\xbbâ¤il\xf4Ú©Ädrâ â¤cy;äÆ;cwࣴâ«â¯ir;æ¥;æar;æirc;䥯alrââârtsÄ;uââæ¥it\xbbâlip;æ¦con;æ¹r;ì\ud835\udd25sÄewâ£â©arow;椥arow;椦Êamoprâºâ¾âââ£rr;æ¿tht;æ»kÄlrââeftarrow;æ©ightarrow;æªf;ì\ud835\udd59bar;æÆcltâ¯â´â¸r;ì\ud835\udcbdas\xe8â´rok;ä§Äbpââull;æhen\xbbá±à«¡â£\0âª\0â¸â
â\0ââ³\0\0â¸â¢â§â¢â¿\0ââªâ´cuteè»\xedäÆ;
1iyݱâ°âµrcè»\xeeä®;ä¸Äcxâ¼â¿y;äµclè»\xa1ä¡ÄfrÎâ;ì\ud835\udd26raveè»\xecä¬È;inoܾââ©â®Äinâ¢â¦nt;æ¨t;æfin;æ§ta;æ©lig;䳯aopâ¾ââÆcgtâ
ââr;䫯elpÜââin\xe5Þar\xf4Ü h;ä±f;æ·ed;äµÊ;cfotÓ´â¬â±â½âare;æ
inÄ;tâ¸â¹æie;æ§do\xf4âÊ;celpÝââââ¡al;æºÄgrââer\xf3á£\xe3âarhk;æ¨rod;樼Ècgptâ¯â²â¶â»y;äon;ä¯f;ì\ud835\udd5aa;ä¹uestè»\xbfä¿Äciââr;ì\ud835\udcbenÊ;EdsvÓ´âââ¡Ó³;æ¹ot;æµÄ;vâ¦â§æ´;æ³Ä;iÝ·â®lde;ä©Ç«â¸\0â¼cy;älè»\xefä¯Ìcfmosuââââ¡â§âµÄiyâârc;äµ;ä¹r;ì\ud835\udd27ath;ä·pf;ì\ud835\udd5bÇ£â¬\0â±r;ì\ud835\udcbfrcy;äkcy;äÐacfghjosâââ¢â§ââ±âµâ»ppaÄ;vââäº;ä°Äeyââ dil;ä·;äºr;ì\ud835\udd28reen;ä¸cy;ä
cy;äpf;ì\ud835\udd5ccr;ì\ud835\udcc0à®ABEHabcdefghjlmnoprstuvâ°ââââââ½âââââ¥â¹â½ââ²âââ¨âââ â Æartâ·âºâ¼r\xf2à§\xf2Îail;æ¤arr;æ¤Ä;gà¦â;æªar;楢ॣâ¥\0âª\0â±\0\0\0\0\0âµâº\0âââ\0â¹ute;äºmptyv;榴ra\xeeà¡bda;ä»gÆ;dlà¢ââ;æ¦\xe5à¢;æª
uoè»\xabä«rÐ;bfhlpstà¢ââ¦â©â«â®â±âµÄ;fà¢â£s;æ¤s;æ¤\xebâp;æ«l;椹im;楳l;æ¢Æ;aeâ¿ââæª«il;æ¤Ä;sââæª;ìâªï¸Æabrââârr;æ¤rk;æ²Äakâ¢â¬cÄekâ¨âª;ä»;äÄesâ±â³;æ¦lÄduâ¹â»;æ¦;æ¦Èaeuyââââron;ä¾Ädiââil;ä¼\xecࢰ\xe2â©;
1ä»Ècqrsâ£â¦ââ½a;椶uoÄ;rà¸áÄduâ²â·har;楧shar;æ¥h;æ²Ê;fgqsââà¦â³â¿æ¤tÊahlrtââ¤â·ââ¨rrowÄ;tà¢â¡a\xe9â¶arpoonÄduâ¯â´own\xbbÑp\xbb०eftarrows;æightÆahsââârrowÄ;sࣴࢧarpoon\xf3à¾quigarro\xf7â°hreetimes;æÆ;qsâà¦âºlan\xf4বÊ;cdgsবââââ¨c;檨otÄ;oââæ©¿Ä;rââæª;æªÄ;eâ¢â¥ìâï¸s;æªÊadegsâ³â¹â½ââppro\xf8âot;æqÄgqââ
\xf4à¦gt\xf2â\xf4à¦i\xedলÆilrâ࣡âsht;楼;ì\ud835\udd29Ä;Eà¦â£;æªÅ¡â©â¶rÄduâ²â®Ä;l॥â³;楪lk;æcy;äÊ;achtà©ââââr\xf2âorne\xf2á´ard;楫ri;æºÄioââ¤dot;ä
ustÄ;aâ¬âæ°che\xbbâÈEaesâ»â½ââ;æ¨pÄ;pââæªrox\xbbâÄ;qââæªÄ;qââ»im;æ¦Ðabnoptwzâ©â´â·ââ¯âââÄnrâ®â±g;æ¬r;æ½r\xebà£gÆlmrâ¿ââeftÄar০âight\xe1à§²apsto;æ¼ight\xe1à§½parrowÄlrâ¥â©ef\xf4âight;æ¬Æaflâ¶â¹â½r;æ¦
;ì\ud835\udd5dus;æ¨imes;樴šââst;æ\xe1áÆ;efââá ænge\xbbâarÄ;lâ¤â¥ä¨t;æ¦Êachmtâ³â¶â¼â
âr\xf2ࢨorne\xf2á¶arÄ;dà¾â;æ¥;æri;æ¿Ìachiqtââà©â¢â®â»quo;æ¹r;ì\ud835\udcc1mÆ;egলâªâ¬;æª;æªÄbuâªâ³oÄ;rà¸â¹;ærok;ä
è<;cdhilqrà «ââ¹ââ â¥âªâ°Äciââ;檦r;橹re\xe5â²mes;æarr;楶uest;æ©»ÄPiâµâ¹ar;æ¦Æ;efâ à¤á ærÄduâ â shar;æ¥har;楦Äenâ â ¡rtneqq;ìâ¨ï¸\xc5â ÜDacdefhilnopsuâ¡â¡
â¢â¢â¢â¢ ⢥⢨â£â£¢â£¤àªâ£³â¤Dot;æºÈclprâ¡â¡â¡£â¡½rè»\xafä¯Äetâ¡â¡;æÄ;eâ¡â¡æ se\xbbâ¡Ä;sá»â¡¨toÈ;dluá»â¡³â¡·â¡»ow\xeeÒef\xf4à¤\xf0áker;æ®Äoyâ¢â¢mma;権;ä¼ash;æasuredangle\xbbá¦r;ì\ud835\udd2ao;æ§Æcdn⢯⢴â£roè»\xb5äµÈ;acdá¤â¢½â£â£s\xf4á§ir;æ«°otè»\xb7ƵusÆ;bdâ£á¤â£æÄ;uá´¼â£;横ţâ£â£¡p;æ«\xf2â\xf0àªÄdp⣩⣮els;æ§f;ì\ud835\udd5eÄct⣸⣽r;ì\ud835\udcc2pos\xbbáÆ;lmâ¤â¤â¤ä¼timap;æ¸à°GLRVabcdefghijlmoprstuvwâ¥â¥â¥¾â¦â¦â§â§©â¨â¨â©â©âªâªâª¤âª¨â¬â¬ââ¿â®®â°´â±§â±¼â³©Ägtâ¥â¥;ìâ̸Ä;vâ¥à¯ìâ«âÆeltâ¥â¥²â¥¶ftÄar⥡⥧rrow;æightarrow;æ;ìâ̸Ä;v⥻à±ìâªâightarrow;æÄDdâ¦â¦ash;æ¯ash;æ®Êbcnpt⦣⦧⦬⦱â§la\xbbËute;ä
g;ìâ âÊ;Eiopà¶â¦¼â§â§
â§;ì⩰̸d;ìâ̸s;ä
ro\xf8à¶urÄ;aâ§â§æ®lÄ;sâ§à¬¸Ç³â§\0â§£pè»\xa0ଷmpÄ;e௹à°Êaeouyâ§´â§¾â¨â¨â¨Ç°â§¹\0â§»;æ©on;ä
dil;ä
ngÄ;dൾâ¨ot;ìâ©Ì¸p;æ©;ä½ash;æÎ;Aadqsxà®â¨©â¨â¨»â©â©
â©rr;ærÄhr⨳⨶k;椤Ä;oá²á°ot;ìâ̸ui\xf6à£Äeiâ©â©ar;椨\xedà®istÄ;sà® à®r;ì\ud835\udd2bÈEestà¯
⩦⩹⩼Æ;qs஼â©à¯¡Æ;qs஼à¯
â©´lan\xf4௢i\xed௪Ä;rà®¶âª\xbbà®·ÆAapâªâªâªr\xf2⥱rr;æ®ar;櫲Æ;svà¾âªà¾Ä;d⪡⪢æ¼;æºcy;äÎAEadest⪷⪺⪾â«â«
⫶⫹r\xf2⥦;ìâ¦Ì¸rr;ær;æ¥È;fqsà°»â«â«£â«¯tÄarâ«â«rro\xf7â«ightarro\xf7âªÆ;qs఻⪺⫪lan\xf4à±Ä;sà±â«´\xbbà°¶i\xedà±Ä;rవ⫾iÄ;eà°à°¥i\xe4à¶Äptâ¬â¬f;ì\ud835\udd5fè\xac;inâ¬â¬â¬¶ä¬nÈ;Edvà®â¬¤â¬¨â¬®;ìâ¹Ì¸ot;ìâµÌ¸Ç¡à®â¬³â¬µ;æ·;æ¶iÄ;vಸ⬼ǡಸââ;æ¾;æ½Æaorââ£â©rÈ;astà»âââlle\xecà»l;ì⫽â¥;ìâ̸lint;æ¨Æ;ceà²â°â³u\xe5ಥÄ;cà²â¸Ä;eà²â½\xf1à²ÈAaitâ®â®â®â®§r\xf2â¦rrÆ;cwâ®â®â®æ;ì⤳̸;ìâ̸ghtarrow\xbbâ®riÄ;eà³à³Îchimpqu⮽â¯â¯â¬à¸â¯¤â¯¯È;cerà´²â¯à´·â¯u\xe5àµ
;ì\ud835\udcc3ortÉâ¬
\0\0â¯ar\xe1âmÄ;e൮â¯Ä;q൴൳suÄbp⯫â¯\xe5೸\xe5à´Æbcp⯶â°â°È;Ees⯿â°à´¢â°æ;ìâ«
̸etÄ;eà´â°qÄ;qà´£â°cÄ;eà´²â°\xf1à´¸È;EesⰢⰣàµâ°§æ
;ìâ«Ì¸etÄ;eàµâ°®qÄ;qൠⰣÈgilrⰽⰿâ±
â±\xecà¯ldeè»\xf1ä±\xe7à±iangleÄlrâ±â±eftÄ;eà°â±\xf1à°¦ightÄ;eà³â±¥\xf1à³Ä;mⱬâ±ä½Æ;esⱴⱵⱹä£ro;æp;æÒDHadgilrsâ²â²â²â²â²£â²°â²¶â³â³£ash;æarr;æ¤p;ìââash;æ¬ÄetⲨⲬ;ìâ¥â;ì>ânfin;æ§ÆAetâ²½â³â³
rr;æ¤;ìâ¤âÄ;râ³â³ì<âie;ìâ´âÄAtâ³â³rr;æ¤rie;ìâµâim;ìâ¼âÆAanâ³°â³´â´rr;ærÄhr⳺⳽k;椣Ä;oá§á¥ear;椧ááª\0\0\0\0\0\0\0\0\0\0\0\0\0â´\0â´¸âµâµ ⵥ⵲â¶á¬\0\0â¶â¶«\0â·â·\0â·â¸â¸«â¸¾â¹Äcsâ´±áªuteè»\xf3ä³Äiyâ´¼âµ
rÄ;cáªâµè»\xf4ä´;ä¾Êabios᪠âµâµÇâµlac;ä
v;樸old;榼lig;ä
Äcr⵩âµir;榿;ì\ud835\udd2cͯ⵹\0\0âµ¼\0â¶n;äaveè»\xf2ä²;æ§Äbmâ¶à·´ar;榵Èacitâ¶â¶â¶¥â¶¨r\xf2áªÄirâ¶â¶ r;榾oss;榻n\xe5à¹;æ§Æaeiⶱⶵⶹcr;ä
ga;äÆcdnâ·â·
Çron;ä¿;榶pf;ì\ud835\udd60Æaelâ·â·Çr;榷rp;榹Î;adiosvⷪⷫⷮâ¸â¸â¸â¸æ¨r\xf2áªÈ;efmâ··â·¸â¸â¸
æ©rÄ;oⷾⷿæ´f\xbbâ·¿è»\xaaäªè»\xbaäºgof;æ¶r;æ©lope;æ©;æ©Æcloâ¸â¸¡â¸§\xf2â¸ashè»\xf8ä¸l;æiŬⸯ⸴deè»\xf5äµesÄ;aÇ⸺s;樶mlè»\xf6ä¶bar;æ½à«¡â¹\0â¹½\0âºâº\0⺢⺹\0\0â»àº\0â¼\0\0⼫⾼\0â¿rÈ;
1astÐâ¹§â¹²àº
è\xb6;lâ¹â¹®ä¶le\xecÐɩ⹸\0\0â¹»m;櫳;櫽y;ä¿rÊcimptâºâºâºá¡¥âºnt;ä¥od;ä®il;æ°enk;æ±r;ì\ud835\udd2dÆimo⺨⺰⺴Ä;vâºâº®ä;äma\xf4à©¶ne;æÆ;tv⺿â»â»ächfork\xbb´;äÄauâ»â»nÄckâ»â»kÄ;hâ´â»;æ\xf6â´sÒ;abcdemst⻳⻴á¤â»¹â»½â¼â¼â¼â¼ä«cir;樣ir;樢Äouáµâ¼;樥;橲nè»\xb1àºim;樦wo;樧Æipuâ¼â¼ â¼¥ntint;æ¨f;ì\ud835\udd61ndè»\xa3ä£Ô;Eaceinosuà»â¼¿â½â½â½â¾â¾â¾â½¾â¾¶;檳p;檷u\xe5à»Ä;cà»â½Ì;acensà»â½â½â½¦â½¨â½¾ppro\xf8â½urlye\xf1à»\xf1à»Æaes⽯⽶⽺pprox;檹qq;檵im;æ¨i\xedà»meÄ;sâ¾àº®æ²ÆEas⽸â¾â½º\xf0â½µÆdfp໬â¾â¾¯Æals⾠⾥⾪lar;æ®ine;æurf;æÄ;t໻⾴\xefà»»rel;æ°Äciâ¿â¿
r;ì\ud835\udcc5;äncsp;æÌfiopsuâ¿â¢â¿â¿¥â¿«â¿±r;ì\ud835\udd2epf;ì\ud835\udd62rime;æcr;ì\ud835\udcc6Æaeo⿸ããtÄei⿾ã
rnion\xf3Ú°nt;æ¨stÄ;eããä¿\xf1á¼\xf4à¼àªABHabcdefhilmnoprstuxããããã ãã«ã
ã
¢ã
²ãããã¤ã©ãã®ã²ãã°ã·Æartãããr\xf2á³\xf2Ïail;æ¤ar\xf2á±¥ar;楤Îcdenqrtã¨ãµã¸ã¿ãããÄeuãã±;ìâ½Ì±te;ä
i\xe3á
®mptyv;榳gÈ;delà¿ããã;æ¦;榥\xe5à¿uoè»\xbbä»rÖ;abcfhlpstwà¿ã¬ã¯ã·ã¹ã¼ã¾ããããp;極Ä;fà¿ ã´s;æ¤ ;椳s;æ¤\xebâ\xf0â®l;æ¥
im;楴l;æ£;æÄaiããil;æ¤oÄ;nããæ¶al\xf3à¼Æabrã§ãªã®r\xf2á¥rk;æ³Äakã³ã½cÄekã¹ã»;ä½;äÄesãã;æ¦lÄduãã;æ¦;æ¦Èaeuyããã§ã©ron;ä
Ädiã¡ã¥il;ä
\xec࿲\xe2ãº;äÈclqsã´ã·ã½ã
a;椷dhar;楩uoÄ;rÈÈh;æ³Æacgã
ã
à½lÈ;ipsླྀã
ã
án\xe5á»ar\xf4ྩt;æÆilrã
©á£ã
®sht;楽;ì\ud835\udd2fÄaoã
·ãrÄduã
½ã
¿\xbbÑ»Ä;láã;楬Ä;vããä;䱯gnsãã¹ã¼htÌahlrstã¤ã°ããã¤ã®rrowÄ;tà¿ãa\xe9ãarpoonÄduã»ã¿ow\xeeã
¾p\xbbáeftÄahããrrow\xf3࿪arpoon\xf3Õightarrows;æquigarro\xf7ãhreetimes;æg;äingdotse\xf1á¼²Æahmãããr\xf2࿪a\xf2Õ;æoustÄ;aããæ±che\xbbãmid;æ«®Èabptã²ã½ããÄnrã·ãºg;ær;æ¾r\xebáÆaflãããr;æ¦;ì\ud835\udd63us;樮imes;樵Äapãã§rÄ;gã£ã¤ä©t;æ¦olint;æ¨ar\xf2ã£Èachqã»ãá¼ã
quo;æºr;ì\ud835\udcc7Äbuã»ãoÄ;rÈÈÆhirããã re\xe5ã¸mes;æiÈ;eflãªáá ¡ã«æ¹tri;æ§luhar;楨;æàµ¡ãããã¬ã¸ã±\0ãºã¤\0\0ã¬ã°\0ã¨ãããã±ãã±\0ã\0\0ã³cute;ä
qu\xefâºÔ;Eaceinpsyáã³ãµã¿ããããã¦ã©;檴ǰãº\0ã¼;檸on;ä
¡u\xe5á¾Ä;dá³ãil;ä
rc;ä
ÆEasããã;檶p;檺im;æ©olint;æ¨i\xedá;äotÆ;beã´áµãµæ
;橦ÎAacmstxãããããã£ãrr;ærÄhrãã\xebâ¨Ä;oਸ਼਴tè»\xa7ä§i;ä»war;椩mÄinã©\xf0nu\xf3\xf1t;æ¶rÄ;oã¶âì\ud835\udd30Èacoyãããã rp;æ¯Ähyããcy;ä;ärtÉã\0\0ãi\xe4á¤ara\xec⹯è»\xadäÄgmã¨ã´maÆ;fvã±ã²ã²ä;äÐ;deglnprá«ã
ããããã¡ã¦ot;橪Ä;qá±á°Ä;Eããæª;æª Ä;Eããæª;æªe;ælus;樤arr;楲ar\xf2á½Èaeitã¸ãããÄlsã½ãlsetm\xe9ãªhp;樳parsl;槤Ädlá£ãe;æ£Ä;eããæªªÄ;sã¢ã£æª¬;ìâª¬ï¸Æflpã®ã³ãtcy;äÄ;bã¸ã¹ä¯Ä;aã¾ã¿æ§r;æ¿f;ì\ud835\udd64aÄdrãÐesÄ;uããæ it\xbbãÆcsuã ã¹ãÄauã¥ã¯pÄ;sáã«;ìâï¸pÄ;sá´ãµ;ìâï¸uÄbpã¿ãÆ;esááãetÄ;eáã\xf1áÆ;esá¨áãetÄ;eá¨ã\xf1á®Æ;afá
»ã¦Ö°rÅ¥ã«Ö±\xbbá
¼ar\xf2á
Ècemtã¹ã¾ãã
r;ì\ud835\udcc8tm\xee\xf1i\xecãar\xe6á¾ÄarããrÄ;fãá¿æÄanããightÄepã£ãªpsilo\xeeá» h\xe9⺯s\xbbâ¡Êbcmnpã»ãáããÒ;Edemnprsãããããã£ã¬ã±ã¶æ;æ«
ot;檽Ä;dáãot;æ«ult;æ«ÄEeã¨ãª;æ«;ælus;檿arr;楹Æeiuã½ããtÆ;enãã
ãqÄ;qáãeqÄ;qã«ã¨m;æ«Äbpãã;æ«;æ«cÌ;acensáã¬ã²ã¹ã»ã¦ppro\xf8ãºurlye\xf1á¾\xf1á³Æaesãããppro\xf8ãq\xf1ãg;æªÚ123;Edehlmnpsã©ã¬ã¯áã²ã´ãããããã¨ãè»\xb9ä¹è»\xb2ä²è»\xb3ä³;æ«Äosã¹ã¼t;檾ub;æ«Ä;dá¢ã
ot;æ«sÄouããl;æb;æ«arr;楻ult;æ«ÄEeã¤ã¦;æ«;ælus;æ«Æeiuã´ããtÆ;enáã¼ãqÄ;qá¢ã²eqÄ;qã§ã¤m;æ«Äbpãã;æ«;æ«ÆAanãã ãrr;ærÄhrã¦ã¨\xebâ®Ä;oਫ਩war;椪ligè»\xdfä௡ããã áã³ã¹\0ã¾ã\0\0\0\0\0ãã\0ãã¬\0\0\0ãɲã\0\0ãget;æ;är\xebà¹Æaeyã¦ã«ã°ron;ä
¥dil;ä
£;älrec;ær;ì\ud835\udd31Èeikoãããµã¼Ç²ã\0ãeÄ4fááaÆ;svãããä¸ym;äÄcnã¢ã²kÄasã¨ã®ppro\xf8áim\xbbá¬s\xf0áÄasãºã®\xf0árnè»\xfeä¾Ç¬Ìãâ§esè\xd7;bdãããäÄ;
1aá¤ãr;樱;樰Æepsã¡ã£ã\xe1â©È;bcfÒã¬ã°ã´ot;æ¶ir;櫱Ä;oã¹ã¼ì\ud835\udd65rk;æ«\xe1ã¢rime;æ´Æaipããã¤d\xe5áÎadempstã¡ããããããngleÊ;dlqrã°ã±ã¶ããæµown\xbbá¶»eftÄ;eâ ã¾\xf1म;æightÄ;eãªã\xf1áot;æ¬inus;樺lus;樹b;æ§ime;樻ezium;æ¢Æchtã²ã½ãÄryã·ã»;ì\ud835\udcc9;äcy;ärok;ä
§Äioããx\xf4á·headÄlrãã eftarro\xf7à¡ightarrow\xbbà½à¤AHabcdfghlmoprstuwãããã¤ã°ã¼ã ã 㠣㠴ã¡ã¡ã¡«ã¢©ã£ã£ã£ªã£¶r\xf2Ïar;楣Äcrãã¢uteè»\xfaäº\xf2á
rÇ£ãª\0ãy;äve;ä
Äiyãµãºrcè»\xfbä»;äÆabhã ã ã r\xf2álac;ä
±a\xf2áÄirã ã sht;楾;ì\ud835\udd32raveè»\xf9ä¹Å¡ã §ã ±rÄlr㠬㠮\xbbà¥\xbbálk;æÄctã ¹ã¡É¯ã ¿\0\0ã¡rnÄ;eã¡
ã¡ær\xbbã¡op;æri;æ¸Äalã¡ã¡cr;ä
«è»\xa8ÍÄgp㡢㡦on;ä
³f;ì\ud835\udd66Ìadhlsuá
㡸㡽á²ã¢ã¢ own\xe1á³arpoonÄlrã¢ã¢ef\xf4ã igh\xf4ã ¯iÆ;hlã¢ã¢ã¢ä
\xbbáºon\xbbã¢parrows;æÆcit㢰ã£ã£É¯ã¢¶\0\0ã£rnÄ;e㢼㢽ær\xbb㢽op;æng;ä
¯ri;æ¹cr;ì\ud835\udccaÆdirã£ã£ã£¢ot;æ°lde;ä
©iÄ;fã°ã£¨\xbbá Äam㣯㣲r\xf2㢨lè»\xfcä¼angle;榧ÞABDacdeflnoprszã¤ã¤ã¤©ã¤ã¦µã¦¸ã¦½ã§ã§¤ã§¨ã§³ã§¹ã§½ã¨ã¨ r\xf2Ï·arÄ;v㤦㤧櫨;æ«©as\xe8Ï¡Änr㤲㤷grt;æ¦Îeknprstã£ã¥ã¥ã¥ã¥ã¥¤ã¦app\xe1âothin\xe7áºÆhirã«â»ã¥op\xf4â¾µÄ;há·ã¥¢\xefãÄiu㥩ã¥gm\xe1ã³Äbp㥲ã¦setneqÄ;q㥽ã¦ìâï¸;ìâ«ï¸setneqÄ;qã¦ã¦ìâï¸;ìâ«ï¸Ährã¦ã¦et\xe1ãiangleÄlr㦪㦯eft\xbbथight\xbbáy;ä²ash\xbbá¶Æelrã§ã§ã§Æ;beâ·ªã§ã§ar;æ»q;ælip;æ®Äbtã§á¨a\xf2á©r;ì\ud835\udd33tr\xe9㦮suÄbp㧯㧱\xbbà´\xbbàµpf;ì\ud835\udd67ro\xf0à»»tr\xe9㦴Äcuã¨ã¨r;ì\ud835\udccbÄbpã¨ã¨nÄEeã¦ã¨\xbb㥾nÄEeã¦ã¨\xbbã¦igzag;æ¦Îcefoprs㨶㨻ã©ã©ã©ã©¡ã©ªirc;ä
µÄdiã©ã©Äbgã©
ã©ar;æ©eÄ;qáºã©;æerp;ær;ì\ud835\udd34pf;ì\ud835\udd68Ä;eá¹ã©¦at\xe8á¹cr;ì\ud835\udcccà«£áãª\0ãª\0ãªãª\0\0ãªãª¨ãª«ãª¯\0\0ã«ã«\0ã«áátr\xe9ár;ì\ud835\udd35ÄAaãªãªr\xf2Ïr\xf2à§¶;ä¾ÄAa㪡㪤r\xf2θr\xf2à§«a\xf0âis;æ»Ædptá¤ãªµãª¾Äfl㪺á©;ì\ud835\udd69im\xe5á²ÄAaã«ã«r\xf2Ïr\xf2à¨Äcqã«á¸r;ì\ud835\udccdÄptáã«r\xe9áÐacefiosu㫰㫽ã¬ã¬ã¬ã¬ã¬ã¬¡cÄuyã«¶ã«»teè»\xfdä½;äÄiyã¬ã¬rc;ä
·;änè»\xa5ä¥r;ì\ud835\udd36cy;äpf;ì\ud835\udd6acr;ì\ud835\udcceÄcm㬦㬩y;älè»\xffä¿Ôacdefhioswããããã¤ã©ãã´ãºã®cute;ä
ºÄayããron;ä
¾;ä·ot;ä
¼Äetãã¡tr\xe6áa;ä¶r;ì\ud835\udd37cy;ä¶grarr;æpf;ì\ud835\udd6bcr;ì\ud835\udccfÄjnã®
ã®;æj;æ'.split("").map(function(e){return e.charCodeAt(0)}))},94758:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array("Èaglq \x15\x18\x1bÉ\x0f\0\0\x12p;ä¦os;ä§t;ä¾t;ä¼uot;ä¢".split("").map(function(e){return e.charCodeAt(0)}))},85742:function(e,t){"use strict";function r(e){for(var t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Map(r([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ
1"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙
1"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(r([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(r([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨
1"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(r([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]))},16356:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var n,i,a,o,s=r(13571),l=r(24484),u=r(88977);function c(e,t){if(void 0===t&&(t=a.XML),("number"==typeof t?t:t.level)===a.HTML){var r="object"==typeof t?t.mode:void 0;return(0,s.decodeHTML)(e,r)}return(0,s.decodeXML)(e)}(n=a=t.EntityLevel||(t.EntityLevel={}))[n.XML=0]="XML",n[n.HTML=1]="HTML",(i=o=t.EncodingMode||(t.EncodingMode={}))[i.UTF8=0]="UTF8",i[i.ASCII=1]="ASCII",i[i.Extensive=2]="Extensive",i[i.Attribute=3]="Attribute",i[i.Text=4]="Text",t.decode=c,t.decodeStrict=function(e,t){void 0===t&&(t=a.XML);var r,n="number"==typeof t?{level:t}:t;return null!==(r=n.mode)&&void 0!==r||(n.mode=s.DecodingMode.Strict),c(e,n)},t.encode=function(e,t){void 0===t&&(t=a.XML);var r="number"==typeof t?{level:t}:t;return r.mode===o.UTF8?(0,u.escapeUTF8)(e):r.mode===o.Attribute?(0,u.escapeAttribute)(e):r.mode===o.Text?(0,u.escapeText)(e):r.level===a.HTML?r.mode===o.ASCII?(0,l.encodeNonAsciiHTML)(e):(0,l.encodeHTML)(e):(0,u.encodeXML)(e)};var d=r(88977);Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return d.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return d.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return d.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return d.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return d.escapeText}});var f=r(24484);Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var h=r(13571);Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return h.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return h.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return h.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return h.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return h.decodeXML}})},31672:function(e){"use strict";e.exports=e=>{if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},42075:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function o(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,s)}l((n=n.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;
1function s(a){return function(s){return function(a){if(r)throw TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(23304),o=r(13673);t.backOff=function(e,t){return void 0===t&&(t={}),n(this,void 0,void 0,function(){return i(this,function(r){switch(r.label){case 0:return[4,new s(e,a.getSanitizedOptions(t)).execute()];case 1:return[2,r.sent()]}})})};var s=function(){function e(e,t){this.request=e,this.options=t,this.attemptNumber=0}return e.prototype.execute=function(){return n(this,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:if(this.attemptLimitReached)return[3,7];t.label=1;case 1:return t.trys.push([1,4,,6]),[4,this.applyDelay()];case 2:return t.sent(),[4,this.request()];case 3:return[2,t.sent()];case 4:return e=t.sent(),this.attemptNumber++,[4,this.options.retry(e,this.attemptNumber)];case 5:if(!t.sent()||this.attemptLimitReached)throw e;return[3,6];case 6:return[3,0];case 7:throw Error("Something went wrong.")}})})},Object.defineProperty(e.prototype,"attemptLimitReached",{get:function(){return this.attemptNumber>=this.options.numOfAttempts},enumerable:!0,configurable:!0}),e.prototype.applyDelay=function(){return n(this,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return[4,o.DelayFactory(this.options,this.attemptNumber).apply()];case 1:return e.sent(),[2]}})})},e}()},47008: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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(r(29841).Delay);t.AlwaysDelay=a},29841:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(39527),i=function(){function e(e){this.options=e,this.attempt=0}return e.prototype.apply=function(){var e=this;return new Promise(function(t){return setTimeout(t,e.jitteredDelay)})},e.prototype.setAttemptNumber=function(e){this.attempt=e},Object.defineProperty(e.prototype,"jitteredDelay",{get:function(){return n.JitterFactory(this.options)(this.delay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delay",{get:function(){return Math.min(this.options.startingDelay*Math.pow(this.options.timeMultiple,this.numOfDelayedAttempts),this.options.maxDelay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt},enumerable:!0,configurable:!0}),e}();t.Delay=i},13673:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(69058),i=r(47008);t.DelayFactory=function(e,t){var r=e.delayFirstAttempt?new i.AlwaysDelay(e):new n.SkipFirstDelay(e);return r.setAttemptNumber(t),r}},69058: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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function o(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,s)}l((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;
1function s(a){return function(s){return function(a){if(r)throw TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.apply=function(){return a(this,void 0,void 0,function(){return o(this,function(t){return[2,!!this.isFirstAttempt||e.prototype.apply.call(this)]})})},Object.defineProperty(t.prototype,"isFirstAttempt",{get:function(){return 0===this.attempt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt-1},enumerable:!0,configurable:!0}),t}(r(29841).Delay);t.SkipFirstDelay=s},87341:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fullJitter=function(e){return Math.round(Math.random()*e)}},39527:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(87341),i=r(77437);t.JitterFactory=function(e){return"full"===e.jitter?n.fullJitter:i.noJitter}},77437:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noJitter=function(e){return e}},23304:function(e,t){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var n={delayFirstAttempt:!1,jitter:"none",maxDelay:1/0,numOfAttempts:10,retry:function(){return!0},startingDelay:100,timeMultiple:2};t.getSanitizedOptions=function(e){var t=r(r({},n),e);return t.numOfAttempts<1&&(t.numOfAttempts=1),t}},30029:function(e,t,r){var n;"undefined"!=typeof self&&self,n=function(e){return function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),r.d(t,"HighchartsReact",function(){return u});var o=r(1),s=r.n(o),l="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,u=Object(o.memo)(Object(o.forwardRef)(function(e,t){var r=Object(o.useRef)(),u=Object(o.useRef)(),c=Object(o.useRef)(e.constructorType),d=Object(o.useRef)(e.highcharts
1);return l(function(){function t(){var t=e.highcharts||"object"===("undefined"==typeof window?"undefined":a(window))&&window.Highcharts,n=e.constructorType||"chart";t?t[n]?e.options?u.current=t[n](r.current,e.options,e.callback):console.warn('The "options" property was not passed.'):console.warn('The "constructorType" property is incorrect or some required module is not imported.'):console.warn('The "highcharts" property was not passed.')}if(u.current){if(!1!==e.allowChartUpdate){if(e.constructorType!==c.current||e.highcharts!==d.current)c.current=e.constructorType,d.current=e.highcharts,t();else if(!e.immutable&&u.current){var n,o;(n=u.current).update.apply(n,[e.options].concat(function(e){if(Array.isArray(e))return i(e)}(o=e.updateArgs||[!0,!0])||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return i(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,void 0):void 0}}(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}else t()}}else t()},[e.options,e.allowChartUpdate,e.updateArgs,e.containerProps,e.highcharts,e.constructorType]),l(function(){return function(){u.current&&(u.current.destroy(),u.current=null)}},[]),Object(o.useImperativeHandle)(t,function(){return{get chart(){return u.current},container:r}},[]),s.a.createElement("div",n({},e.containerProps,{ref:r}))}));t.default=u},function(t,r){t.exports=e}])},e.exports=n(r(91500))},36334:function(e,t){t.read=function(e,t,r,n,i){var a,o,s=8*i-n-1,l=(1<<s)-1,u=l>>1,c=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,a=h&(1<<-c)-1,h>>=-c,c+=s;c>0;a=256*a+e[t+d],d+=f,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=256*o+e[t+d],d+=f,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,n),a-=u}return(h?-1:1)*o*Math.pow(2,a-n)},t.write=function(e,t,r,n,i,a){var o,s,l,u=8*a-i-1,c=(1<<u)-1,d=c>>1,f=23===i?5960464477539062e-23:0,h=n?0:a-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(t*l-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[r+h]=255&o,h+=p,o/=256,u-=8);e[r+h-p]|=128*g}},86177:function(e,t){"use strict";function r(e){return"[object Object]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=function(e){var t,n;return!1!==r(e)&&(void 0===(t=e.constructor)||!1!==r(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}},24361:function(e,t,r){let n=r(49469);function i(e){for(e=e.replace(/[\x00-\x20]+/g,"");;){let t=e.indexOf("<!--");if(-1===t)break;let r=e.indexOf("-->",t+4);if(-1===r)break;e=e.substring(0,t)+e.substring(r+3)}return e}function a(e,t){let r=(t=t||{}).allowedSchemes||["http","https","ftp","mailto","tel","sms"],n=!1!==t.allowProtocolRelative;if("string"!=typeof e)return!1;let a=(e=i(e)).match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!a)return!!e.match(/^[/\\]{2}/)&&!n;let o=a[1].toLowerCase();return -1===r.indexOf(o)}e.exports=function(e){let t={};return t.options=e||{},t.filterTag=t.options.filterTag||function(e){return(e=e.trim()).toLowerCase()},t.string=function(e,t){return"string"!=typeof e&&("number"==typeof e||"boolean"==typeof e?e+="":e=""),e=e.trim(),void 0!==t&&""===e&&(e=t),e},t.strings=function(e){return Array.isArray(e)?e.map(function(e){return t.string(e)}):[]},t.integer=function(e,t,r,n){if(void 0===t&&(t=0),"number"==typeof e)e=Math.floor(e);else try{e=parseInt(e,10),isNaN(e)&&(e=t)}catch(r){e=t}return"number"==typeof r&&e<r&&(e=r),"number"==typeof n&&e>n&&(e=n),e},t.padInteger=function(e,t){let r=e+"";for(;r.length<t;)r="0"+r;return r},t.float=function(e,t,r,n){if(void 0===t&&(t=0),"number"!=typeof e)try{e=parseFloat(e,10),isNaN(e)&&(e=t)}catch(r){e=t}return"number"==typeof r&&e<r&&(e=r),"number"==typeof n&&e>n&&(e=n),e},t.naughtyHref=a,t.url=function(e,r,n){var o;return(e=t.string(e,r))===r?e:a(e=i(e))||null===(e=(o=e).match(/^(((https?|ftp):\/\/)|((mailto|tel|sms
1):)|#|([^/.]+)?\/|[^/.]+$)/)?o:o.match(/^[^/.]+\.[^/.]+/)?(n?"https://":"http://")+o:null)?r:e},t.select=function(e,r,n){let i;return(e=t.string(e),r&&r.length)?"object"==typeof r[0]?null!=(i=r.find(function(t){return null!==t.value&&void 0!==t.value&&t.value.toString()===e}))?i.value:n:void 0!==(i=r.find(function(t){return null!=t&&t.toString()===e}))?i:n:n},t.boolean=function(e,r){return!0===e||!1!==e&&((e=t.string(e,r))===r?void 0!==e&&e:""!==(e=e.toLowerCase().charAt(0))&&"n"!==e&&"0"!==e&&"f"!==e&&("t"===e||"y"===e||"1"===e))},t.addBooleanFilterToCriteria=function(e,r,n,i){void 0===i&&(i=null);let a="object"==typeof e&&null!==e?e[r]:e;a=void 0===a?i:a,null===(a=t.booleanOrNull(a))||(a?n[r]=!0:n[r]={$ne:!0})},t.booleanOrNull=function(e,r){return!0===e||!1===e||null===e?e:(e=t.string(e,r))===r?void 0===r?null:e:"null"===e?null:""!==(e=e.toLowerCase().charAt(0))&&"n"!==e&&"0"!==e&&"f"!==e&&("t"===e||"y"===e||"1"===e||("a"===e?null:r))},t.date=function(e,r,i){let a;function o(){return void 0===r&&(r=n().format("YYYY-MM-DD")),r}if("string"==typeof e){if(e.match(/\//)){if(2===(a=e.split("/")).length)return(i||new Date).getFullYear()+"-"+t.padInteger(a[0],2)+"-"+t.padInteger(a[1],2);if(3!==a.length)return o();if(a[2]<100){let e=i||new Date,t=e.getFullYear()%100,r=e.getFullYear()-t,n=parseInt(a[2])+r;n-e.getFullYear()>50&&(n-=100),a[2]=n}return t.padInteger(a[2],4)+"-"+t.padInteger(a[0],2)+"-"+t.padInteger(a[1],2)}if(e.match(/-/))return 2===(a=e.split("-")).length?(i||new Date).getFullYear()+"-"+t.padInteger(a[0],2)+"-"+t.padInteger(a[1],2):3===a.length?t.padInteger(a[0],4)+"-"+t.padInteger(a[1],2)+"-"+t.padInteger(a[2],2):o()}try{if(null===e||(e=i||new Date(e),isNaN(e.getTime())))return o();return e.getFullYear()+"-"+t.padInteger(e.getMonth()+1,2)+"-"+t.padInteger(e.getDate(),2)}catch(e){return o()}},t.formatDate=function(e){return n(e).format("YYYY-MM-DD")},t.time=function(e,r){let i=(e=(e=t.string(e).toLowerCase()).trim()).match(/^(\d+)([:|.](\d+))?([:|.](\d+))?\s*(am|pm|AM|PM|a|p|A|M)?$/);if(i){let e=parseInt(i[1],10),r=void 0!==i[3]?parseInt(i[3],10):0,n=void 0!==i[5]?parseInt(i[5],10):0,a=i[6]?i[6].toLowerCase():i[6];return a=a&&a.charAt(0),12===e&&"a"===a?e-=12:12===e&&"p"===a||"p"===a&&(e+=12),(24===e||"24"===e)&&(e=0),t.padInteger(e,2)+":"+t.padInteger(r,2)+":"+t.padInteger(n,2)}return void 0!==r?r:n().format("HH:mm")},t.formatTime=function(e){return n(e).format("HH:mm:ss")},t.tags=function(e,r){return("string"==typeof e&&(e=e.split(/,\s*/)),Array.isArray(e))?e.map(e=>t.string(e)).map(r||t.filterTag).filter(e=>e.length>0):[]},t.idRegExp=t.options.idRegExp||/^[A-Za-z0-9_]+$/,t.id=function(e,r){let n=t.string(e,r);return n===r?n:n.match(t.idRegExp)?n:r},t.ids=function(e){return Array.isArray(e)?e.filter(function(e){return void 0!==t.id(e)}):[]},t},e.exports.naughtyHref=a},52945:function(e,t,r){"use strict";r.d(t,{default:function(){return i.a}});var n=r(52461),i=r.n(n)},42187:function(e,t,r){"use strict";var n=r(25690);r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},32875:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i.a}});var n=r(63516),i=r.n(n),a={};for(var o in n)"default"!==o&&(a[o]=(function(e){return n[e]}).bind(0,o));r.d(t,a)},52122:function(e,t){"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DOMAttributeNames:function(){return n},default:function(){return o},isEqualNode:function(){return a}});let n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function i(e){let{type:t,props:r}=e,i=document.createElement(t);for(let e in r){if(!r.hasOwnProperty(e)||"children"===e||"dangerouslySetInnerHTML"===e||void 0===r[e])continue;let a=n[e]||e.toLowerCase();"script"===t&&("async"===a||"defer"===a||"noModule"===a)?i[a]=!!r[e]:i.setAttribute(a,r[e])}let{children:a,dangerouslySetInnerHTML:o}=r;return o?i.innerHTML=o.__html||"":a&&(i.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):""),i}function a(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let r=t.getAttribute("nonce");if(r&&!e.getAttribute("nonce")){let n=t.cloneNode(!0);return n.setAttribute("nonce",""),n.nonce=r,r===e.nonce&&e.isEqualNode(n)}}return e.isEqualNode(t)}function o(){return{mountedInstances:new Set,updateHead:e=>{let t={};
1e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let r=t[e.type]||[];r.push(e),t[e.type]=r});let n=t.title?t.title[0]:null,i="";if(n){let{children:e}=n.props;i="string"==typeof e?e:Array.isArray(e)?e.join(""):""}i!==document.title&&(document.title=i),["meta","base","link","style","script"].forEach(e=>{r(e,t[e]||[])})}}}r=(e,t)=>{let r=document.getElementsByTagName("head")[0],n=r.querySelector("meta[name=next-head-count]"),o=Number(n.content),s=[];for(let t=0,r=n.previousElementSibling;t<o;t++,r=(null==r?void 0:r.previousElementSibling)||null){var l;(null==r?void 0:null==(l=r.tagName)?void 0:l.toLowerCase())===e&&s.push(r)}let u=t.map(i).filter(e=>{for(let t=0,r=s.length;t<r;t++)if(a(s[t],e))return s.splice(t,1),!1;return!0});s.forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),u.forEach(e=>r.insertBefore(e,n)),n.content=(o-s.length+u.length).toString()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},60009:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return v}});let n=r(10927),i=r(68715),a=r(49172),o=i._(r(91500)),s=n._(r(38361)),l=n._(r(14839)),u=r(2819),c=r(84768),d=r(6172);r(14296);let f=r(18608),h=n._(r(69128)),p={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/indexes/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,r,n,i,a,o){let s=null==e?void 0:e.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function m(e){return o.use?{fetchPriority:e}:{fetchpriority:e}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let A=(0,o.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:s,width:l,decoding:u,className:c,style:d,fetchPriority:f,placeholder:h,loading:p,unoptimized:A,fill:y,onLoadRef:v,onLoadingCompleteRef:b,setBlurComplete:w,setShowAltText:S,sizesInput:I,onLoad:E,onError:C,...x}=e;return(0,a.jsx)("img",{...x,...m(f),loading:p,width:l,height:s,decoding:u,"data-nimg":y?"fill":"1",className:c,style:d,sizes:i,srcSet:n,src:r,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(C&&(e.src=e.src),e.complete&&g(e,h,v,b,w,A,I))},[r,h,v,b,w,C,A,I,t]),onLoad:e=>{g(e.currentTarget,h,v,b,w,A,I)},onError:e=>{S(!0),"empty"!==h&&w(!0),C&&C(e)}})});function y(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...m(r.fetchPriority)};return t&&s.default.preload?(s.default.preload(r.src,n),null):(0,a.jsx)(l.default,{children:(0,a.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let v=(0,o.forwardRef)((e,t)=>{let r=(0,o.useContext)(f.RouterContext),n=(0,o.useContext)(d.ImageConfigContext),i=(0,o.useMemo)(()=>{var e;let t=p||n||c.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),i=t.deviceSizes.sort((e,t)=>e-t),a=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:i,qualities:a}},[n]),{onLoad:s,onLoadingComplete:l}=e,g=(0,o.useRef)(s);(0,o.useEffect)(()=>{g.current=s},[s]);let m=(0,o.useRef)(l);(0,o.useEffect)(()=>{m.current=l},[l]);let[v,b]=(0,o.useState)(!1),[w,S]=(0,o.useState)(!1),{props:I,meta:E}=(0,u.getImgProps)(e,{defaultLoader:h.default,imgConf:i,blurComplete:v,showAltText:w});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(A,{...I,unoptimized:E.unoptimized,placeholder:E.placeholder,fill:E.fill,onLoadRef:g,onLoadingCompleteRef:m,setBlurComplete:b,setShowAltText:S,sizesInput:e.sizes,ref:t}),E.priority?(0,a.jsx)(y,{isAppRouter:!r,imgAttributes:I}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63516:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return v},handleClientScriptLoad:function(){return m},initScriptLoader:function(){return A}});let n=r(10927),i=r(68715),a=r(49172),o=n._(r(38361)),s=i._(r(91500)),l=r(45325),u=r(52122),c=r(38509),d=new Map,f=new Set,h=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],p=e=>{if(o.default.preinit){e.forEach(e=>{o.default.preinit(e,{as:"style"})});return}if("undefined"!=typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}},g=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:i=null,dangerouslySetInnerHTML:a,children:o="",strategy:s="afterInteractive",onError:l,stylesheets:c}=e,g=r||t;if(g&&f.has(g))return;if(d.has(t)){f.add(g),d.get(t).then(n,l);return}let m=()=>{i&&i(),f.add(g)},A=document.createElement("script"),y=new Promise((e,t)=>{A.addEventListener("load",function(t){e(),n&&n.call(this,t),m()}),A.addEventListener("error",function(e){t(e)})}).catch(function(e){l&&l(e)});for(let[r,n]of(a?(A.innerHTML=a.__html||"",m()):o?(A.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",m()):t&&(A.src=t,d.set(t,y)),Object.entries(e))){if(void 0===n||h.includes(r))continue;let e=u.DOMAttributeNames[r]||r.toLowerCase();A.setAttribute(e,n)}"worker"===s&&A.setAttribute("type","text/partytown"),A.setAttribute("data-nscript",s),c&&p(c),document.body.appendChild(A)};function m(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>g(e))}):g(e)}function A(e){e.forEach(m),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");f.add(t)})}function y(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:i=null,strategy:u="afterInteractive",onError:d,stylesheets:h,...p}=e,{updateScripts:m,scripts:A,getIsSsr:y,appDir:v,nonce:b}=(0,s.useContext)(l.HeadManagerContext),w=(0,s.useRef)(!1);(0,s.useEffect)(()=>{let e=t||r;w.current||(i&&e&&f.has(e)&&i(),w.current=!0)},[i,t,r]);let S=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{!S.current&&("afterInteractive"===u?g(e):"lazyOnload"===u&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>g(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>g(e))})),S.current=!0)},[e,u]),("beforeInteractive"===u||"worker"===u)&&(m?(A[u]=(A[u]||[]).concat([{id:t,src:r,onLoad:n,onReady:i,onError:d,...p}]),m(A)):y&&y()?f.add(t||r):y&&!y()&&g(e)),v){if(h&&h.forEach(e=>{o.default.preinit(e,{as:"style"})}),"beforeInteractive"===u)return r?(o.default.preload(r,p.integrity?{as:"script",integrity:p.integrity,nonce:b,crossOrigin:p.crossOrigin}:{as:"script",nonce:b,crossOrigin:p.crossOrigin}),(0,a.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([r,{...p,id:t}])+")"}})):(p.dangerouslySetInnerHTML&&(p.children=p.dangerouslySetInnerHTML.__html,delete p.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...p,id:t}])+")"}}));"afterInteractive"===u&&r&&o.default.preload(r,p.integrity?{as:"script",integrity:p.integrity,nonce:b,crossOrigin:p.crossOrigin}:{as:"script",nonce:b,crossOrigin:p.crossOrigin})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let v=y;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},604:function(e,t,r){!function(){var t={452:function(e){"use strict";e.exports=r(65806)}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}},o=!0;try{t[e](a,a.exports,i),o=!1}finally{o&&delete n[e]}return a.exports}i.ab="//";var a={};!function(){var e,t=(e=i(452))&&"object"==typeof e&&"default"in e?e.default:e,r=/https?|ftp|gopher|file/;function n(e){"string"==typeof e&&(e=A(e));var n,i,a,o,s,l,u,c,d,f=(i=(n=e).auth,a=n.hostname,o=n.protocol||"",s=n.pathname||"",l=n.hash||"",u=n.query||"",c=!1,i=i?encodeURIComponent(i).replace(/%3A/i,":")+"@":"",n.host?c=i+n.host:a&&(c=i+(~a.indexOf(":")?"["+a+"]":a),n.port&&(c+=":"+n.port)),u&&"object"==typeof u&&(u=t.encode(u)),d=n.search||u&&"?"+u||"",o&&":"!==o.substr(-1)&&(o+=":"),n.slashes||(!o||r.test(o))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),d&&"?"!==d[0]&&(d="?"+d),{protocol:o,host:c,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:d=d.replace("#","%23"),hash:l});return""+f.protocol+f.host+f.pathname+f.search+f.hash}var o="http://",s=o+"w.w",l=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,u=/https?|ftp|gopher|file/;function c(e,t){var r="string"==typeof e?A(e):e;e="object"==typeof e?n(e):e;var i=A(t),a="";r.protocol&&!r.slashes&&(a=r.protocol,e=e.replace(r.protocol,""),a+="/"===t[0]||"/"===e[0]?"/":""),a&&i.protocol&&(a="",i.slashes||(a=i.protocol,t=t.replace(i.protocol,"")));var c=e.match(l);c&&!i.protocol&&(e=e.substr((a=c[1]+(c[2]||"")).length),/^\/\/[^/]/.test(t)&&(a=a.slice(0,-1)));var d=new URL(e,s+"/"),f=new URL(t,d).toString().replace(s,""),h=i.protocol||r.protocol;return h+=r.slashes||i.slashes?"//":"",!a&&h?f=f.replace(o,h):a&&(f=f.replace(o,"")),u.test(f)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==f.slice(-1)||(f=f.slice(0,-1)),a&&(f=a+("/"===f[0]?f.substr(1):f)),f}function d(){}d.prototype.parse=A,d.prototype.format=n,d.prototype.resolve=c,d.prototype.resolveObject=c;var f=/^https?|ftp|gopher|file/,h=/^(.*?)([#?].*)/,p=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,g=/^([a-z0-9.+-]*:)?\/\/\/*/i,m=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function A(e,r,i){if(void 0===r&&(r=!1),void 0===i&&(i=!1),e&&"object"==typeof e&&e instanceof d)return e;var a=(e=e.trim()).match(h);e=a?a[1].replace(/\\/g,"/")+a[2]:e.replace(/\\/g,"/"),m.test(e)&&"/"!==e.slice(-1)&&(e+="/");var o=!/(^javascript)/.test(e)&&e.match(p),l=g.test(e),u="";o&&(f.test(o[1])||(u=o[1].toLowerCase(),e=""+o[2]+o[3]),o[2]||(l=!1,f.test(o[1])?(u=o[1],e=""+o[3]):e="//"+o[3]),3!==o[2].length&&1!==o[2].length||(u=o[1],e="/"+o[3]));var c,A=(a?a[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),y=A&&A[1],v=new d,b="",w="";try{c=new URL(e)}catch(t){b=t,u||i||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(w="/",e=e.substr(1));try{c=new URL(e,s)}catch(e){return v.protocol=u,v.href=u,v}}v.slashes=l&&!w,v.host="w.w"===c.host?"":c.host,v.hostname="w.w"===c.hostname?"":c.hostname.replace(/(\[|\])/g,""),v.protocol=b?u||null:c.protocol,v.search=c.search.replace(/\\/g,"%5C"),v.hash=c.hash.replace(/\\/g,"%5C");var S=e.split("#");!v.search&&~S[0].indexOf("?")&&(v.search="?"),v.hash||""!==S[1]||(v.hash="#"),v.query=r?t.decode(c.search.substr(1)):v.search.substr(1),v.pathname=w+(o?c.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):c.pathname),"about:"===v.protocol&&"blank"===v.pathname&&(v.protocol="",v.pathname=""),b&&"/"!==e[0]&&(v.pathname=v.pathname.substr(1)),u&&!f.test(u)&&"/"!==e.slice(-1)&&"/"===v.pathname&&(v.pathname=""),v.path=v.pathname+v.search,v.auth=[c.username,c.password].map(decodeURIComponent).filter(
1Boolean).join(":"),v.port=c.port,y&&!v.host.endsWith(y)&&(v.host+=y,v.port=y.slice(1)),v.href=w?""+v.pathname+v.search+v.hash:n(v);var I=/^(file)/.test(v.href)?["host","hostname"]:[];return Object.keys(v).forEach(function(e){~I.indexOf(e)||(v[e]=v[e]||null)}),v}a.parse=A,a.format=n,a.resolve=c,a.resolveObject=function(e,t){return A(c(e,t))},a.Url=d}(),e.exports=a}()},65806:function(e){!function(){"use strict";var t={815:function(e){e.exports=function(e,r,n,i){r=r||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var o=/\+/g;e=e.split(r);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var u=0;u<l;++u){var c,d,f,h,p=e[u].replace(o,"%20"),g=p.indexOf(n);(g>=0?(c=p.substr(0,g),d=p.substr(g+1)):(c=p,d=""),f=decodeURIComponent(c),h=decodeURIComponent(d),Object.prototype.hasOwnProperty.call(a,f))?t(a[f])?a[f].push(h):a[f]=[a[f],h]:a[f]=h}return a};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,a,o,s){return(a=a||"&",o=o||"=",null===e&&(e=void 0),"object"==typeof e)?n(i(e),function(i){var s=encodeURIComponent(t(i))+o;return r(e[i])?n(e[i],function(e){return s+encodeURIComponent(t(e))}).join(a):s+encodeURIComponent(t(e[i]))}).join(a):s?encodeURIComponent(t(s))+o+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var i=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var a=r[e]={exports:{}},o=!0;try{t[e](a,a.exports,n),o=!1}finally{o&&delete r[e]}return a.exports}n.ab="//";var i={};i.decode=i.parse=n(815),i.encode=i.stringify=n(577),e.exports=i}()},24054:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(10927)._(r(91500)).default.createContext({})},74506:function(e,t){"use strict";function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},2819:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),r(14296);let n=r(54316),i=r(84768);function a(e){return void 0!==e.default}function o(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var r,s;let l,u,c,{src:d,sizes:f,unoptimized:h=!1,priority:p=!1,loading:g,className:m,quality:A,width:y,height:v,fill:b=!1,style:w,overrideSrc:S,onLoad:I,onLoadingComplete:E,placeholder:C="empty",blurDataURL:x,fetchPriority:k,decoding:O="async",layout:T,objectFit:R,objectPosition:_,lazyBoundary:D,lazyRoot:N,...M}=e,{imgConf:F,showAltText:P,blurComplete:L,defaultLoader:B}=t,j=F||i.imageConfigDefault;if("allSizes"in j)l=j;else{let e=[...j.deviceSizes,...j.imageSizes].sort((e,t)=>e-t),t=j.deviceSizes.sort((e,t)=>e-t),n=null==(r=j.qualities)?void 0:r.sort((e,t)=>e-t);l={...j,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===B)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let U=M.loader||B;delete M.loader,delete M.srcSet;let q="__next_img_default"in U;if(q){if("custom"===l.loader)throw Error('Image with src "'+d+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=U;U=t=>{let{config:r,...n}=t;return e(n)}}if(T){"fill"===T&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[T];e&&(w={...w,...e});let t={responsive:"100vw",fill:"100vw"}[T];t&&!f&&(f=t)}let Q="",G=o(y),V=o(v);if("object"==typeof(s=d)&&(a(s)||void 0!==s.src)){let e=a(d)?d.default:d;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(u=e.blurWidth,c=e.blurHeight,x=x||e.blurDataURL,Q=e.src,!b){if(G||V){if(G&&!V){let t=G/e.width;V=Math.round(e.height*t)}
1else if(!G&&V){let t=V/e.height;G=Math.round(e.width*t)}}else G=e.width,V=e.height}}let H=!p&&("lazy"===g||void 0===g);(!(d="string"==typeof d?d:Q)||d.startsWith("data:")||d.startsWith("blob:"))&&(h=!0,H=!1),l.unoptimized&&(h=!0),q&&d.endsWith(".svg")&&!l.dangerouslyAllowSVG&&(h=!0),p&&(k="high");let K=o(A),W=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:R,objectPosition:_}:{},P?{}:{color:"transparent"},w),Y=L||"empty"===C?null:"blur"===C?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:G,heightInt:V,blurWidth:u,blurHeight:c,blurDataURL:x||"",objectFit:W.objectFit})+'")':'url("'+C+'")',Z=Y?{backgroundSize:W.objectFit||"cover",backgroundPosition:W.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Y}:{},z=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:a,sizes:o,loader:s}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,o),c=l.length-1;return{sizes:o||"w"!==u?o:"100vw",srcSet:l.map((e,n)=>s({config:t,src:r,quality:a,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:s({config:t,src:r,quality:a,width:l[c]})}}({config:l,src:d,unoptimized:h,width:G,quality:K,sizes:f,loader:U});return{props:{...M,loading:H?"lazy":g,fetchPriority:k,width:G,height:V,decoding:O,className:m,style:{...W,...Z},sizes:z.sizes,srcSet:z.srcSet,src:S||z.src},meta:{unoptimized:h,priority:p,placeholder:C,fill:b}}}},14839:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return g},defaultHead:function(){return d}});let n=r(10927),i=r(68715),a=r(49172),o=i._(r(91500)),s=n._(r(85788)),l=r(24054),u=r(45325),c=r(74506);function d(e){void 0===e&&(e=!1);let t=[(0,a.jsx)("meta",{charSet:"utf-8"})];return e||t.push((0,a.jsx)("meta",{name:"viewport",content:"width=device-width"})),t}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(14296);let h=["name","httpEquiv","charSet","itemProp"];function p(e,t){let{inAmpMode:r}=t;return e.reduce(f,[]).reverse().concat(d(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return i=>{let a=!0,o=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){o=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?a=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?a=!1:t.add(i.type);break;case"meta":for(let e=0,t=h.length;e<t;e++){let t=h[e];if(i.props.hasOwnProperty(t)){if("charSet"===t)r.has(t)?a=!1:r.add(t);else{let e=i.props[t],r=n[t]||new Set;("name"!==t||!o)&&r.has(e)?a=!1:(r.add(e),n[t]=r)}}}}return a}}()).reverse().map((e,t)=>{let n=e.key||t;if(!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,o.default.cloneElement(e,t)}return o.default.cloneElement(e,{key:n})})}let g=function(e){let{children:t}=e,r=(0,o.useContext)(l.AmpStateContext),n=(0,o.useContext)(u.HeadManagerContext);return(0,a.jsx)(s.default,{reduceComponentsToState:p,headManager:n,inAmpMode:(0,c.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},54316:function(e,t){"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:a,objectFit:o}=e,s=n?40*n:t,l=i?40*i:r,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3Cfe
1ColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+a+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},6172:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let n=r(10927)._(r(91500)),i=r(84768),a=n.default.createContext(i.imageConfigDefault)},84768:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},52461:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return s}});let n=r(10927),i=r(2819),a=r(60009),o=n._(r(69128));function s(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/indexes/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=a.Image},69128:function(e,t){"use strict";function r(e){var t;let{config:r,src:n,width:i,quality:a}=e,o=a||(null==(t=r.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return r.path+"?url="+encodeURIComponent(n)+"&w="+i+"&q="+o}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},85788:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let n=r(91500),i="undefined"==typeof window,a=i?()=>{}:n.useLayoutEffect,o=i?()=>{}:n.useEffect;function s(e){let{headManager:t,reduceComponentsToState:r}=e;function s(){if(t&&t.mountedInstances){let i=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(i,e))}}if(i){var l;null==t||null==(l=t.mountedInstances)||l.add(e.children),s()}return a(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),a(()=>(t&&(t._pendingUpdate=s),()=>{t&&(t._pendingUpdate=s)})),o(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},58018:function(e,t){var r,n,i;n=[],void 0!==(i="function"==typeof(r=function(){return function(e){function t(e){return" "===e||" "===e||"\n"===e||"\f"===e||"\r"===e}function r(t){var r,n=t.exec(e.substring(g));if(n)return r=n[0],g+=r.length,r}for(var n,i,a,o,s,l=e.length,u=/^[ \t\n\r\u000c]+/,c=/^[, \t\n\r\u000c]+/,d=/^[^ \t\n\r\u000c]+/,f=/[,]+$/,h=/^\d+$/,p=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,g=0,m=[];;){if(r(c),g>=l)return m;n=r(d),i=[],","===n.slice(-1)?(n=n.replace(f,""),A()):function(){for(r(u),a="",o="in descriptor";;){if(s=e.charAt(g),"in descriptor"===o){if(t(s))a&&(i.push(a),a="",o="after descriptor");
1else if(","===s){g+=1,a&&i.push(a),A();return}else if("("===s)a+=s,o="in parens";else if(""===s){a&&i.push(a),A();return}else a+=s}else if("in parens"===o){if(")"===s)a+=s,o="in descriptor";else if(""===s){i.push(a),A();return}else a+=s}else if("after descriptor"===o){if(t(s));else if(""===s){A();return}else o="in descriptor",g-=1}g+=1}}()}function A(){var t,r,a,o,s,l,u,c,d,f=!1,g={};for(o=0;o<i.length;o++)l=(s=i[o])[s.length-1],c=parseInt(u=s.substring(0,s.length-1),10),d=parseFloat(u),h.test(u)&&"w"===l?((t||r)&&(f=!0),0===c?f=!0:t=c):p.test(u)&&"x"===l?((t||r||a)&&(f=!0),d<0?f=!0:r=d):h.test(u)&&"h"===l?((a||r)&&(f=!0),0===c?f=!0:a=c):f=!0;f?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+s+"'."):(g.url=n,t&&(g.w=t),r&&(g.d=r),a&&(g.h=a),m.push(g))}}})?r.apply(t,n):r)&&(e.exports=i)},10015:function(e){var t=String,r=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreen
1Bright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};e.exports=r(),e.exports.createColors=r},82449:function(e,t,r){"use strict";let n=r(91773);class i extends n{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=i,i.default=i,n.registerAtRule(i)},5833:function(e,t,r){"use strict";let n=r(39161);class i extends n{constructor(e){super(e),this.type="comment"}}e.exports=i,i.default=i},91773:function(e,t,r){"use strict";let n,i,a,o;let{isClean:s,my:l}=r(80098),u=r(71345),c=r(5833),d=r(39161);class f extends d{append(...e){for(let t of e)for(let e of this.normalize(t,this.last))this.proxyOf.nodes.push(e);return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){let t,r;if(!this.proxyOf.nodes)return;let n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return(...r)=>e[t](...r.map(e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e));if("every"===t||"some"===t)return r=>e[t]((e,...t)=>r(e.toProxy(),...t));if("root"===t)return()=>e.root().toProxy();if("nodes"===t)return e.nodes.map(e=>e.toProxy());if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:(e,t,r)=>e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();for(let t of(n=this.index(e),i))this.proxyOf.nodes.splice(n+1,0,t);for(let e in this.indexes)n<(r=this.indexes[e])&&(this.indexes[e]=r+i.length);return this.markDirty(),this}insertBefore(e,t){let r,n=this.index(e),i=0===n&&"prepend",a=this.normalize(t,this.proxyOf.nodes[n],i).reverse();for(let t of(n=this.index(e),a))this.proxyOf.nodes.splice(n,0,t);for(let e in this.indexes)n<=(r=this.indexes[e])&&(this.indexes[e]=r+a.length);return this.markDirty(),this}normalize(e,t){if("string"==typeof e)e=function e(t){return t.map(t=>(t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t))}(n(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(let t of e=e.slice(0))t.parent&&t.parent.removeChild(t,"ignore");else if("root"===e.type&&"document"!==this.type)for(let t of e=e.nodes.slice(0))t.parent&&t.parent.removeChild(t,"ignore");else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new u(e)]}else if(e.selector)e=[new i(e)];else if(e.name)e=[new a(e)];else if(e.text)e=[new c(e)];else throw Error("Unknown node type in node creation");return e.map(e=>(e[l]||f.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[s]&&function e(t){if(t[s]=!1,t.proxyOf.nodes)for(let r of t.proxyOf.nodes)e(r)}(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e))}prepend(...e){for(let t of e=e.reverse()){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;for(let r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(n=>
1{(!t.props||t.props.includes(n.prop))&&(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("atrule"===e.type)return t(e,r)}))}walkComments(e){return this.walk((t,r)=>{if("comment"===t.type)return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("decl"===e.type)return t(e,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk((e,r)=>{if("rule"===e.type)return t(e,r)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}f.registerParse=e=>{n=e},f.registerRule=e=>{i=e},f.registerAtRule=e=>{a=e},f.registerRoot=e=>{o=e},e.exports=f,f.default=f,f.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,a.prototype):"rule"===e.type?Object.setPrototypeOf(e,i.prototype):"decl"===e.type?Object.setPrototypeOf(e,u.prototype):"comment"===e.type?Object.setPrototypeOf(e,c.prototype):"root"===e.type&&Object.setPrototypeOf(e,o.prototype),e[l]=!0,e.nodes&&e.nodes.forEach(e=>{f.rebuild(e)})}},34579:function(e,t,r){"use strict";let n=r(10015),i=r(13416);class a extends Error{constructor(e,t,r,n,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),n&&(this.source=n),o&&(this.plugin=o),void 0!==t&&void 0!==r&&("number"==typeof t?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,a)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){let t,r;if(!this.source)return"";let a=this.source;null==e&&(e=n.isColorSupported),i&&e&&(a=i(a));let o=a.split(/\r?\n/),s=Math.max(this.line-3,0),l=Math.min(this.line+2,o.length),u=String(l).length;if(e){let{bold:e,gray:i,red:a}=n.createColors(!0);t=t=>e(a(t)),r=e=>i(e)}else t=r=e=>e;return o.slice(s,l).map((e,n)=>{let i=s+1+n,a=" "+(" "+i).slice(-u)+" | ";if(i===this.line){let n=r(a.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+r(a)+e+"\n "+n+t("^")}return" "+r(a)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=a,a.default=a},71345:function(e,t,r){"use strict";let n=r(39161);class i extends n{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=i,i.default=i},95613:function(e,t,r){"use strict";let n,i;let a=r(91773);class o extends a{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new n(new i,this,e).stringify()}}o.registerLazyResult=e=>{n=e},o.registerProcessor=e=>{i=e},e.exports=o,o.default=o},22272:function(e,t,r){"use strict";let n=r(71345),i=r(68660),a=r(5833),o=r(82449),s=r(27615),l=r(5345),u=r(34761);function c(e,t){if(Array.isArray(e))return e.map(e=>c(e));let{inputs:r,...d}=e;if(r)for(let e of(t=[],r)){let r={...e,__proto__:s.prototype};r.map&&(r.map={...r.map,__proto__:i.prototype}),t.push(r)}if(d.nodes&&(d.nodes=e.nodes.map(e=>c(e,t))),d.source){let{inputId:e,...r}=d.source;d.source=r,null!=e&&(d.source.input=t[e])}if("root"===d.type)return new l(d);if("decl"===d.type)return new n(d);if("rule"===d.type)return new u(d);if("comment"===d.type)return new a(d);if("atrule"===d.type)return new o(d);throw Error("Unknown node type: "+e.type)}e.exports=c,c.default=c},27615:function(e,t,r){"use strict";let{SourceMapConsumer:n,SourceMapGenerator:i}=r(13319),{fileURLToPath:a,pathToFileURL:o}=r(604),{isAbsolute:s,resolve:l}=r(38047),{nanoid:u}=r(55248),c=r(13416),d=r(34579),f=r(68660),h=Symbol("fromOffsetCac
1he"),p=!!(n&&i),g=!!(l&&s);class m{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!g||/^\w+:\/\//.test(t.from)||s(t.from)?this.file=t.from:this.file=l(t.from)),g&&p){let e=new f(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+u(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let i,a,s;if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof e.offset){let n=this.fromOffset(e.offset);t=n.line,r=n.col}else t=e.line,r=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);a=e.line,s=e.col}else a=n.line,s=n.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let l=this.origin(t,r,a,s);return(i=l?new d(e,void 0===l.endLine?l.line:{column:l.column,line:l.line},void 0===l.endLine?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,n.plugin):new d(e,void 0===a?t:{column:r,line:t},void 0===a?r:{column:s,line:a},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:a,line:t,source:this.css},this.file&&(o&&(i.input.url=o(this.file).toString()),i.input.file=this.file),i}fromOffset(e){let t,r;if(this[h])r=this[h];else{let e=this.css.split("\n");r=Array(e.length);let t=0;for(let n=0,i=e.length;n<i;n++)r[n]=t,t+=e[n].length+1;this[h]=r}t=r[r.length-1];let n=0;if(e>=t)n=r.length-1;else{let t,i=r.length-2;for(;n<i;)if(e<r[t=n+(i-n>>1)])i=t-1;else if(e>=r[t+1])n=t+1;else{n=t;break}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:l(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){let i,l;if(!this.map)return!1;let u=this.map.consumer(),c=u.originalPositionFor({column:t,line:e});if(!c.source)return!1;"number"==typeof r&&(i=u.originalPositionFor({column:n,line:r})),l=s(c.source)?o(c.source):new URL(c.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let d={column:c.column,endColumn:i&&i.column,endLine:i&&i.line,line:c.line,url:l.toString()};if("file:"===l.protocol){if(a)d.file=a(l);else throw Error("file: protocol is not available in this PostCSS build")}let f=u.sourceContentFor(c.source);return f&&(d.source=f),d}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}e.exports=m,m.default=m,c&&c.registerInput&&c.registerInput(m)},30706:function(e,t,r){"use strict";let{isClean:n,my:i}=r(80098),a=r(13173),o=r(72941),s=r(91773),l=r(95613);r(72780);let u=r(17443),c=r(15034),d=r(5345),f={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},p={Once:!0,postcssPlugin:!0,prepare:!0};function g(e){return"object"==typeof e&&"function"==typeof e.then}function m(e){let t=!1,r=f[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function A(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:m(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function y(e){return e[n]=!1,e.nodes&&e.nodes.forEach(e=>y(e)),e}let v={};class b{constructor(e,t,r){let n;if(this.stringified=!1,this.processed=!1,"object"==typeof t&&null!==t&&("root"===t.type||"document"===t.type))n=y(t);else if(t instanceof b||t instanceof u)n=y(t.root),t.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let e=c;r.syntax&&(e=r.syntax.parse),r.parser&&(e=r.parser),e.parse&&(e=e.parse);try{n=e(t,r)}catch(e){this.processed=!0,this.error=e}n&&!n[i]&&s.rebuild(n)}this.result=new u(e,n,r),this.helpers={...v,postcss:v,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!h[r]&&/^[A-Z]/.test(r))throw Error(`Unknown event ${r} in ${t.postcssPlugin}
1. Try to update PostCSS (${this.processor.version} now).`);if(!p[r]){if("object"==typeof t[r])for(let n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);else"function"==typeof t[r]&&e(t,r,t[r])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(g(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[n];){e[n]=!0;let t=[A(e)];for(;t.length>0;){let e=this.visitTick(t);if(g(e))try{await e}catch(r){let e=t[t.length-1].node;throw this.handleError(r,e)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>r(e,this.helpers));await Promise.all(t)}else await r(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));if(g(t[0]))return Promise.all(t);return t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=o;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new a(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(g(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[n];)e[n]=!0,this.walkSync(e);if(this.listeners.OnceExit){if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,n]of e){let e;this.result.lastPlugin=r;try{e=n(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(g(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[e,n]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return n(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){let i,a=t.iterator;for(;i=r.nodes[r.indexes[a]];)if(r.indexes[a]+=1,!i[n]){i[n]=!0,e.push(A(i));return}t.iterator=0,delete r.indexes[a]}let a=t.events;for(;t.eventIndex<a.length;){let e=a[t.eventIndex];if(t.eventIndex+=1,0===e){r.nodes&&r.nodes.length&&(r[n]=!0,t.iterator=r.getIterator());return}if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){for(let t of(e[n]=!0,m(e)))if(0===t)e.nodes&&e.each(e=>{e[n]||this.walkSync(e)});else{let r=this.listeners[t];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}b.registerPostcss=e=>{v=e},e.exports=b,b.default=b,d.registerLazyResult(b),l.registerLazyResult(b)},46595:function(e){"use strict";let t={comma:e=>t.split(e,[","],!0),space:e=>t.split(e,[" ","\n"," "]),split(e,t,r){let n=[],i="",a=!1,o=0,s=!1,l="",u=!1;for(let r of e)u?u=!1:"\\"===r?u=!0:s?r===l&&(s=!1):'"'===r||"'"===r?(s=!0,l=r):"("===r?o+=1:")"===r?o>0&&(o-=1):0===o&&t.includes(r)&&(a=!0),a?(""!==i&&n.push(i.trim()),i="",a=!1):i+=r;return(r||""!==i)&&n.push(i.trim()),n}};e.exports=t,t.default=t},13173:function(e,t,r){"use strict";var n=r(3786).lW;let{SourceMapConsumer:i,SourceMapGenerator:a}=r(13319),{dirname:o,relative:s,resolve:l,sep:u}=r(38047),{pathToFileURL:c}=r(604),d=r(27615),f=!!(i&&a),h=!!(o&&l&&s&&u);class p{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),n=e.root||o(e.file);!1===this.mapOpts.sourcesContent?(t=new i(e.text)).sourcesContent&&(t.sourcesContent=null):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(n))
1)}}clearAnnotation(){if(!1!==this.mapOpts.annotation){if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}}generate(){if(this.clearAnnotation(),h&&f&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=a.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new a({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]}generateString(){let e,t;this.css="",this.map=new a({file:this.outputFile(),ignoreInvalidMapping:!0});let r=1,n=1,i="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(a,s,l)=>{if(this.css+=a,s&&"end"!==l&&(o.generated.line=r,o.generated.column=n-1,s.source&&s.source.start?(o.source=this.sourcePath(s),o.original.line=s.source.start.line,o.original.column=s.source.start.column-1):(o.source=i,o.original.line=1,o.original.column=0),this.map.addMapping(o)),(e=a.match(/\n/g))?(r+=e.length,t=a.lastIndexOf("\n"),n=a.length-t):n+=a.length,s&&"start"!==l){let e=s.parent||{raws:{}};(!("decl"===s.type||"atrule"===s.type&&!s.nodes)||s!==e.last||e.raws.semicolon)&&(s.source&&s.source.end?(o.source=this.sourcePath(s),o.original.line=s.source.end.line,o.original.column=s.source.end.column-1,o.generated.line=r,o.generated.column=n-2):(o.source=i,o.original.line=1,o.original.column=0,o.generated.line=r,o.generated.column=n-1),this.map.addMapping(o))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?o(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=o(l(r,this.mapOpts.annotation)));let n=s(r,e);return this.memoizedPaths.set(e,n),n}previous(){if(!this.previousMaps){if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new d(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return n?n.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(c){let t=c(e).toString();return this.memoizedFileURLs.set(e,t),t}throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===u&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}}e.exports=p},9902:function(e,t,r){"use strict";let n=r(13173),i=r(72941);r(72780);let a=r(15034),o=r(17443);class s{constructor(e,t,r){let a;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new o(this._processor,a,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get:()=>s.root});let l=new n(i,a,this._opts,t);
1if(l.isMap()){let[e,t]=l.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){let e;if(this._root)return this._root;try{e=a(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}get[Symbol.toStringTag](){return"NoWorkResult"}}e.exports=s,s.default=s},39161:function(e,t,r){"use strict";let{isClean:n,my:i}=r(80098),a=r(34579),o=r(99695),s=r(72941);class l{constructor(e={}){for(let t in this.raws={},this[n]=!1,this[i]=!0,e)if("nodes"===t)for(let r of(this.nodes=[],e[t]))"function"==typeof r.clone?this.append(r.clone()):this.append(r);else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=function e(t,r){let n=new t.constructor;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||"proxyCache"===i)continue;let a=t[i],o=typeof a;"parent"===i&&"object"===o?r&&(n[i]=r):"source"===i?n[i]=a:Array.isArray(a)?n[i]=a.map(t=>e(t,n)):("object"===o&&null!==a&&(a=e(a)),n[i]=a)}return n}(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new a(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,r)=>e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}
1markDirty(){if(this[n]){this[n]=!1;let e=this;for(;e=e.parent;)e[n]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){let n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r}positionInside(e,t){let r=t||this.toString(),n=this.source.start.column,i=this.source.start.line;for(let t=0;t<e;t++)"\n"===r[t]?(n=1,i+=1):n+=1;return{column:n,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new o().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);r||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let r={},n=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||"parent"===e||"proxyCache"===e)continue;let n=this[e];if(Array.isArray(n))r[e]=n.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof n&&n.toJSON)r[e]=n.toJSON(null,t);else if("source"===e){let a=t.get(n.input);null==a&&(a=i,t.set(n.input,i),i++),r[e]={end:n.end,inputId:a,start:n.start}}else r[e]=n}return n&&(r.inputs=[...t.keys()].map(e=>e.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=s){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,r){let n={node:this};for(let e in r)n[e]=r[e];return e.warn(t,n)}get proxyOf(){return this}}e.exports=l,l.default=l},15034:function(e,t,r){"use strict";let n=r(91773),i=r(52033),a=r(27615);function o(e,t){let r=new i(new a(e,t));try{r.parse()}catch(e){throw e}return r.root}e.exports=o,o.default=o,n.registerParse(o)},52033:function(e,t,r){"use strict";let n=r(71345),i=r(62575),a=r(5833),o=r(82449),s=r(5345),l=r(34761),u={empty:!0,space:!0};class c{constructor(e){this.input=e,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,r,n,i=new o;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let a=!1,s=!1,l=[],u=[];for(;!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(l.length>0){for(n=l.length-1,r=l[n];r&&"space"===r[0];)r=l[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(i.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(i,"params",l),a&&(e=l[l.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let t,r=this.colon(e);if(!1===r)return;let n=0;for(let i=r-1;i>
1=0&&("space"===(t=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}colon(e){let t,r,n=0;for(let[i,a]of e.entries()){if("("===(t=a[0])&&(n+=1),")"===t&&(n-=1),0===n&&":"===t){if(r){if("word"===r[0]&&"progid"===r[1])continue;return i}this.doubleColon(a)}r=a}return!1}comment(e){let t=new a;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=i(this.input)}decl(e,t){let r,i,a=new n;this.init(a,e[0][2]);let o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),a.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}(e)),a.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),a.raws.before+=e.shift()[1];for(a.source.start=this.getPosition(e[0][2]),a.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;a.prop+=e.shift()[1]}for(a.raws.between="";e.length;){if(":"===(r=e.shift())[0]){a.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),a.raws.between+=r[1]}("_"===a.prop[0]||"*"===a.prop[0])&&(a.raws.before+=a.prop[0],a.prop=a.prop.slice(1));let s=[];for(;e.length&&("space"===(i=e[0][0])||"comment"===i);)s.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if("!important"===(r=e[t])[1].toLowerCase()){a.important=!0;let r=this.stringFrom(e,t);" !important"!==(r=this.spacesFromEnd(e)+r)&&(a.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),n="";for(let e=t;e>0;e--){let t=r[e][0];if(0===n.trim().indexOf("!")&&"space"!==t)break;n=r.pop()[1]+n}0===n.trim().indexOf("!")&&(a.important=!0,a.raws.important=n,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(a.raws.between+=s.map(e=>e[1]).join(""),s=[]),this.raw(a,"value",s.concat(e),t),a.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new l;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,r=null,n=!1,i=null,a=[],o=e[1].startsWith("--"),s=[],l=e;for(;l;){if(r=l[0],s.push(l),"("===r||"["===r)i||(i=l),a.push("("===r?")":"]");else if(o&&n&&"{"===r)i||(i=l),a.push("}");else if(0===a.length){if(";"===r){if(n){this.decl(s,o);return}break}if("{"===r){this.rule(s);return}if("}"===r){this.tokenizer.back(s.pop()),t=!0;break}":"===r&&(n=!0)}else r===a[a.length-1]&&(a.pop(),0===a.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&n){if(!o)for(;s.length&&("space"===(l=s[s.length-1][0])||"comment"===l);)this.tokenizer.back(s.pop());this.decl(s,o)}else this.unknownWord(s)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let i,a,o,s;let l=r.length,c="",d=!0;for(let e=0;e<l;e+=1)"space"!==(a=(i=r[e])[0])||e!==l-1||n?"comment"===a?(s=r[e-1]?r[e-1][0]:"empty",o=r[e+1]?r[e+1][
10]:"empty",u[s]||u[o]?d=!1:","===c.slice(-1)?d=!1:c+=i[1]):c+=i[1]:d=!1;if(!d){let n=r.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:n,value:c}}e[t]=c}rule(e){e.pop();let t=new l;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t;let r="";for(;e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t;let r="";for(;e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t="";for(;e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}e.exports=c},66299:function(e,t,r){"use strict";var n=r(32608);let i=r(34579),a=r(71345),o=r(30706),s=r(91773),l=r(61591),u=r(72941),c=r(22272),d=r(95613),f=r(85676),h=r(5833),p=r(82449),g=r(17443),m=r(27615),A=r(15034),y=r(46595),v=r(34761),b=r(5345),w=r(39161);function S(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new l(e)}S.plugin=function(e,t){let r,i=!1;function a(...r){console&&console.warn&&!i&&(i=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),n.env.LANG&&n.env.LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));let o=t(...r);return o.postcssPlugin=e,o.postcssVersion=new l().version,o}return Object.defineProperty(a,"postcss",{get:()=>(r||(r=a()),r)}),a.process=function(e,t,r){return S([a(r)]).process(e,t)},a},S.stringify=u,S.parse=A,S.fromJSON=c,S.list=y,S.comment=e=>new h(e),S.atRule=e=>new p(e),S.decl=e=>new a(e),S.rule=e=>new v(e),S.root=e=>new b(e),S.document=e=>new d(e),S.CssSyntaxError=i,S.Declaration=a,S.Container=s,S.Processor=l,S.Document=d,S.Comment=h,S.Warning=f,S.AtRule=p,S.Result=g,S.Input=m,S.Rule=v,S.Root=b,S.Node=w,o.registerPostcss(S),e.exports=S,S.default=S},68660:function(e,t,r){"use strict";var n=r(3786).lW;let{SourceMapConsumer:i,SourceMapGenerator:a}=r(13319),{existsSync:o,readFileSync:s}=r(19440),{dirname:l,join:u}=r(38047);class c{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=l(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),n?n.from(t,"base64").toString():window.atob(t)}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e){if(this.root=l(e),o(e))return this.mapFile=e,s(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"==typeof t){let r=t(e);
1if(r){let e=this.loadFile(r);if(!e)throw Error("Unable to load previous source map: "+r.toString());return e}}else if(t instanceof i)return a.fromSourceMap(t).toString();else if(t instanceof a)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let t=this.annotation;return e&&(t=u(l(e),t)),this.loadFile(t)}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=c,c.default=c},61591:function(e,t,r){"use strict";let n=r(9902),i=r(30706),a=r(95613),o=r(5345);class s{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else if("object"==typeof r&&(r.parse||r.stringify));else throw Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new i(this,e,t):new n(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}e.exports=s,s.default=s,o.registerProcessor(s),a.registerProcessor(s)},17443:function(e,t,r){"use strict";let n=r(85676);class i{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new n(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}}e.exports=i,i.default=i},5345:function(e,t,r){"use strict";let n,i;let a=r(91773);class o extends a{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=super.normalize(e);if(t){if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of n)e.raws.before=t.raws.before}return n}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new n(new i,this,e).stringify()}}o.registerLazyResult=e=>{n=e},o.registerProcessor=e=>{i=e},e.exports=o,o.default=o,a.registerRoot(o)},34761:function(e,t,r){"use strict";let n=r(91773),i=r(46595);class a extends n{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return i.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}e.exports=a,a.default=a,n.registerRule(a)},99695:function(e){"use strict";let t={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class r{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let n=e.parent,i=0;for(;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)r+=t}return r}block(e,t){let r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let i=e.nodes[n],a=this.raw(i,"before");a&&this.builder(a),this.stringify(i,t!==n||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}document(e){this.body(e)}raw(e,r,n){let i;if(n||(n=r),r&&void 0!==(i=e.raws[r]))return i;let a=e.parent;if("before"===n&&(!a||"root"===a.type&&a.first===e||a&&"document"===a.type))return"";if(!a)return t[n];let o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[n])return o.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);{var s;let t="raw"+((s=n)[0].toUpperCase()+s.slice(1));this[t]?i=this[t](o,e):o.walk(e=>{if(void 0!==(i=e.raws[r]))return!1})}return void 0===i&&(i=t[n]),o.rawCache[n]=i,i}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(e=>{if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t}rawIndent(e){let t;return e.raws.indent?e.raws.indent:(e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=(t=e[e.length-1]).replace(/\S/g,""),!1}}),t)}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}
1e.exports=r,r.default=r},72941:function(e,t,r){"use strict";let n=r(99695);function i(e,t){new n(t).stringify(e)}e.exports=i,i.default=i},80098:function(e){"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},62575:function(e){"use strict";let t=/[\t\n\f\r "#'()/;[\\\]{}]/g,r=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,n=/.[\r\n"'(/\\]/,i=/[\da-f]/i;e.exports=function(e,a={}){let o,s,l,u,c,d,f,h,p,g,m=e.css.valueOf(),A=a.ignoreErrors,y=m.length,v=0,b=[],w=[];function S(t){throw e.error("Unclosed "+t,v)}return{back:function(e){w.push(e)},endOfFile:function(){return 0===w.length&&v>=y},nextToken:function(e){if(w.length)return w.pop();if(v>=y)return;let a=!!e&&e.ignoreUnclosed;switch(o=m.charCodeAt(v)){case 10:case 32:case 9:case 13:case 12:s=v;do s+=1,o=m.charCodeAt(s);while(32===o||10===o||9===o||13===o||12===o);g=["space",m.slice(v,s)],v=s-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(o);g=[e,e,v];break}case 40:if(h=b.length?b.pop()[1]:"",p=m.charCodeAt(v+1),"url"===h&&39!==p&&34!==p&&32!==p&&10!==p&&9!==p&&12!==p&&13!==p){s=v;do{if(d=!1,-1===(s=m.indexOf(")",s+1))){if(A||a){s=v;break}S("bracket")}for(f=s;92===m.charCodeAt(f-1);)f-=1,d=!d}while(d);g=["brackets",m.slice(v,s+1),v,s],v=s}else s=m.indexOf(")",v+1),u=m.slice(v,s+1),-1===s||n.test(u)?g=["(","(",v]:(g=["brackets",u,v,s],v=s);break;case 39:case 34:l=39===o?"'":'"',s=v;do{if(d=!1,-1===(s=m.indexOf(l,s+1))){if(A||a){s=v+1;break}S("string")}for(f=s;92===m.charCodeAt(f-1);)f-=1,d=!d}while(d);g=["string",m.slice(v,s+1),v,s],v=s;break;case 64:t.lastIndex=v+1,t.test(m),s=0===t.lastIndex?m.length-1:t.lastIndex-2,g=["at-word",m.slice(v,s+1),v,s],v=s;break;case 92:for(s=v,c=!0;92===m.charCodeAt(s+1);)s+=1,c=!c;if(o=m.charCodeAt(s+1),c&&47!==o&&32!==o&&10!==o&&9!==o&&13!==o&&12!==o&&(s+=1,i.test(m.charAt(s)))){for(;i.test(m.charAt(s+1));)s+=1;32===m.charCodeAt(s+1)&&(s+=1)}g=["word",m.slice(v,s+1),v,s],v=s;break;default:47===o&&42===m.charCodeAt(v+1)?(0===(s=m.indexOf("*/",v+2)+1)&&(A||a?s=m.length:S("comment")),g=["comment",m.slice(v,s+1),v,s]):(r.lastIndex=v+1,r.test(m),s=0===r.lastIndex?m.length-1:r.lastIndex-2,g=["word",m.slice(v,s+1),v,s],b.push(g)),v=s}return v++,g},position:function(){return v}}}},72780:function(e){"use strict";let t={};e.exports=function(e){!t[e]&&(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},85676:function(e){"use strict";class t{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=t,t.default=t},74784:function(e){"use strict";function t(e){try{return JSON.stringify(e)}catch(e){return'"[Circular]"'}}e.exports=function(e,r,n){var i=n&&n.stringify||t;if("object"==typeof e&&null!==e){var a=r.length+1;if(1===a)return e;var o=Array(a);o[0]=i(e);for(var s=1;s<a;s++)o[s]=i(r[s]);return o.join(" ")}if("string"!=typeof e)return e;var l=r.length;if(0===l)return e;for(var u="",c=0,d=-1,f=e&&e.length||0,h=0;h<f;){if(37===e.charCodeAt(h)&&h+1<f){switch(d=d>-1?d:0,e.charCodeAt(h+1)){case 100:case 102:if(c>=l||null==r[c])break;d<h&&(u+=e.slice(d,h)),u+=Number(r[c]),d=h+2,h++;break;case 105:if(c>=l||null==r[c])break;d<h&&(u+=e.slice(d,h)),u+=Math.floor(Number(r[c])),d=h+2,h++;break;case 79:case 111:case 106:if(c>=l||void 0===r[c])break;d<h&&(u+=e.slice(d,h));var p=typeof r[c];if("string"===p){u+="'"+r[c]+"'",d=h+2,h++;break}if("function"===p){u+=r[c].name||"<anonymous>",d=h+2,h++;break}u+=i(r[c]),d=h+2,h++;break;case 115:if(c>=l)break;d<h&&(u+=e.slice(d,h)),u+=String(r[c]),d=h+2,h++;break;case 37:d<h&&(u+=e.slice(d,h)),u+="%",d=h+2,h++,c--}++c}++h}return -1===d?e:(d<f&&(u+=e.slice(d)),u)}},4495:function(e,t,r){let n=r(48548),i=r(31672),{isPlainObject:a}=r(86177),o=r(68873),s=r(58018),{parse:l}=r(66299),{naughtyHref:u}=r(24361),c=["img","audio","video","picture","svg","object","map","iframe","embed"],d=["script","style"];function f(e,t){e&&Object.keys(e).forEach(function(r){t(e[r],r)})}function h(e,t){return({}).hasOwnProperty.call(e,t)}function p(e,t){let r=[];return f(e,function(e){t(e)&&r.push(e)}),r}e.exports=m;let g=/^[^\0\t\n\f\r /<=>]+$/;function m(e,t,r){let y,v,b,w,S,I,E,C,x;if(null==e)return"";"number"==typeof e&&(e=e.toString());let k="",O="";function T(e,t){let r=this;this.tag=e,this.attribs=t||{},this.tagPosition=k.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(S.length){let e=S[S.length-1];e.text+=r.text}},this.updateParentNodeMediaChildren=function(){S.length&&c.includes(this.tag)&&S[S.length-1].mediaChildren.push(this.tag)}}(t=Object.assign({},m.defaults,t)).parser=Object.assign({},A,t.parser);let R=function(e){return!1===t.allowedTags||(t.allowedTags||[]).indexOf(e)>-1};d.forEach(function(e){R(e)&&!t.allowVulnerableTags&&console.warn(` 2 3â ï¸ Your \`allowedTags\` option includes, \`${e}\`, which is inherently 4vulnerable to XSS attacks. Please remove it from \`allowedTags\`. 5Or, to disable this warning, add the \`allowVulnerableTags\` option 6and ensure you are accounting for this risk. 7 8`)});let _=t.nonTextTags||["script","style","textarea","option","xmp"];t.allowedAttributes&&(y={},v={},f(t.allowedAttributes,function(e,t){y[t]=[];let r=[];e.forEach(function(e){"string"==typeof e&&e.indexOf("*")>=0?r.push(i(e).replace(/\\\*/g,".*")):y[t].push(e)}),r.length&&(v[t]=RegExp("^("+r.join("|")+")$"))}));let D={},N={},M={};
8f(t.allowedClasses,function(e,t){if(y&&(h(y,t)||(y[t]=[]),y[t].push("class")),D[t]=e,Array.isArray(e)){let r=[];D[t]=[],M[t]=[],e.forEach(function(e){"string"==typeof e&&e.indexOf("*")>=0?r.push(i(e).replace(/\\\*/g,".*")):e instanceof RegExp?M[t].push(e):D[t].push(e)}),r.length&&(N[t]=RegExp("^("+r.join("|")+")$"))}});let F={};f(t.transformTags,function(e,t){let r;"function"==typeof e?r=e:"string"==typeof e&&(r=m.simpleTransform(e)),"*"===t?b=r:F[t]=r});let P=!1;B();let L=new n.Parser({onopentag:function(e,r){let n;if(t.onOpenTag&&t.onOpenTag(e,r),t.enforceHtmlBoundary&&"html"===e&&B(),C){x++;return}let i=new T(e,r);S.push(i);let u=!1,c=!!i.text;if(h(F,e)&&(n=F[e](e,r),i.attribs=r=n.attribs,void 0!==n.text&&(i.innerText=n.text),e!==n.tagName&&(i.name=e=n.tagName,E[w]=n.tagName)),b&&(n=b(e,r),i.attribs=r=n.attribs,e!==n.tagName&&(i.name=e=n.tagName,E[w]=n.tagName)),(!R(e)||"recursiveEscape"===t.disallowedTagsMode&&!function(e){for(let t in e)if(h(e,t))return!1;return!0}(I)||null!=t.nestingLimit&&w>=t.nestingLimit)&&(u=!0,I[w]=!0,("discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode)&&-1!==_.indexOf(e)&&(C=!0,x=1)),w++,u){if("discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode){if(i.innerText&&!c){let r=j(i.innerText);t.textFilter?k+=t.textFilter(r,e):k+=r,P=!0}return}O=k,k=""}k+="<"+e,"script"===e&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(i.innerText=""),u&&("escape"===t.disallowedTagsMode||"recursiveEscape"===t.disallowedTagsMode)&&t.preserveEscapedAttributes?f(r,function(e,t){k+=" "+t+'="'+j(e||"",!0)+'"'}):(!y||h(y,e)||y["*"])&&f(r,function(r,n){if(!g.test(n)||""===r&&!t.allowedEmptyAttributes.includes(n)&&(t.nonBooleanAttributes.includes(n)||t.nonBooleanAttributes.includes("*"))){delete i.attribs[n];return}let u=!1;if(!y||h(y,e)&&-1!==y[e].indexOf(n)||y["*"]&&-1!==y["*"].indexOf(n)||h(v,e)&&v[e].test(n)||v["*"]&&v["*"].test(n))u=!0;else if(y&&y[e]){for(let t of y[e])if(a(t)&&t.name&&t.name===n){u=!0;let e="";if(!0===t.multiple)for(let n of r.split(" "))-1!==t.values.indexOf(n)&&(""===e?e=n:e+=" "+n);else t.values.indexOf(r)>=0&&(e=r);r=e}}if(u){if(-1!==t.allowedSchemesAppliedToAttributes.indexOf(n)&&U(e,r)){delete i.attribs[n];return}if("script"===e&&"src"===n){let e=!0;try{let n=q(r);if(t.allowedScriptHostnames||t.allowedScriptDomains){let r=(t.allowedScriptHostnames||[]).find(function(e){return e===n.url.hostname}),i=(t.allowedScriptDomains||[]).find(function(e){return n.url.hostname===e||n.url.hostname.endsWith(`.${e}`)});e=r||i}}catch(t){e=!1}if(!e){delete i.attribs[n];return}}if("iframe"===e&&"src"===n){let e=!0;try{let n=q(r);if(n.isRelativeUrl)e=h(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){let r=(t.allowedIframeHostnames||[]).find(function(e){return e===n.url.hostname}),i=(t.allowedIframeDomains||[]).find(function(e){return n.url.hostname===e||n.url.hostname.endsWith(`.${e}`)});e=r||i}}catch(t){e=!1}if(!e){delete i.attribs[n];return}}if("srcset"===n||"imagesrcset"===n)try{let e=s(r);if(e.forEach(function(e){U(n,e.url)&&(e.evil=!0)}),(e=p(e,function(e){return!e.evil})).length)r=p(e,function(e){return!e.evil}).map(function(e){if(!e.url)throw Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", "),i.attribs[n]=r;else{delete i.attribs[n];return}}catch(e){delete i.attribs[n];return}if("class"===n){let t=D[e],a=D["*"],s=N[e],l=M[e],u=M["*"],c=[s,N["*"]].concat(l,u).filter(function(e){return e});if(!(r=t&&a?Q(r,o(t,a),c):Q(r,t||a,c)).length){delete i.attribs[n];return}}if("style"===n){if(t.parseStyleAttributes)try{let a=l(e+" {"+r+"}",{map:!1});if(r=(function(e,t){let r;if(!t)return e;let n=e.nodes[0];return(r=t[n.selector]&&t["*"]?o(t[n.selector],t["*"]):t[n.selector]||t["*"])&&(e.nodes[0].nodes=n.nodes.reduce(function(e,t){return h(r,t.prop)&&r[t.prop].some(function(e){return e.test(t.value)})&&e.push(t),e},[])),e})(a,t.allowedStyles).nodes[0].nodes.reduce(function(e,t){return e.push(`${t.prop}:${t.value}${t.important?" !important":""}`),e},[]).join(";"),0===r.length){delete i.attribs[n];return}}catch(t){"undefined"!=typeof window&&console.warn('Failed to parse "'+e+" {"+r+"}\", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547"),delete i.attribs[n];return}else if(t.allowedStyles)throw Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}k+=" "+n,r&&r.length?k+='="'+j(r,!0)+'"':t.allowedEmptyAttributes.includes(n)&&(k+='=""')}else delete i.attribs[n]}),-1!==t.selfClosing.indexOf(e)?k+=" />":(k+=">",!i.innerText||c||t.textFilter||(k+=j(i.innerText),P=!0)),u&&(k=O+j(k),O=""),i.openingTagLength=k.length-i.tagPosition},ontext:function(e){let r;if(C)return;let n=S[S.length-1];if(n&&(r=n.tag,e=void 0!==n.innerText?n.innerText:e),"completelyDiscard"!==t.disallowedTagsMode||R(r)){if(r&&R(r)&&("discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode)&&("script"===r||"style"===r))k+=e;else if(r&&R(r)&&("discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode)&&("textarea"===r||"xmp"===r))k+=e;else if(!P){let n=j(e,!1);t.textFilter?k+=t.textFilter(n,r):k+=n}}else e="";if(S.length){let t=S[S.length-1];t.text+=e}},onclosetag:function(e,r){if(t.onCloseTag&&t.onCloseTag(e,r),C){if(--x)return;C=!1}let n=S.pop();if(!n)return;if(n.tag!==e){S.push(n);return}C=!!t.enforceHtmlBoundary&&"html"===e;let i=I[--w];if(i){if(delete I[w],"discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode){n.updateParentNodeText();return}O=k,k=""}if(E[w]&&(e=E[w],delete E[w]),t.exclusiveFilter){let e=t.exclusiveFilter(n);if("excludeTag"===e){i&&(k=O,O=""),k=k.substring(0,n.tagPosition)+k.substring(n.tagPosition+n.openingTagLength);return}if(e){k=k.substring(0,n.tagPosition);return}}if(n.updateParentNodeMediaChildren(),n.updateParentNodeText(),-1!==t.selfClosing.indexOf(e)||r&&!R(e)&&["escape","recursiveEscape"].indexOf(t.disallowedTagsMode)>=0){i&&(k=O,O="");return}k+="</"+e+">
8",i&&(k=O+j(k),O=""),P=!1}},t.parser);if(L.write(e),L.end(),"escape"===t.disallowedTagsMode||"recursiveEscape"===t.disallowedTagsMode){let t=L.endIndex;if(null!=t&&t>=0&&t<e.length){let r=e.substring(t);k+=j(r)}else(null==t||t<0)&&e.length>0&&""===k&&(k=j(e))}return k;function B(){k="",w=0,S=[],I={},E={},C=!1,x=0}function j(e,r){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),r&&(e=e.replace(/"/g,"""))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),r&&(e=e.replace(/"/g,""")),e}function U(e,r){return u(r,{allowedSchemes:h(t.allowedSchemesByTag,e)?t.allowedSchemesByTag[e]:t.allowedSchemes||[],allowProtocolRelative:t.allowProtocolRelative})}function q(e){if((e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw Error("relative: exploit attempt");let t="relative://relative-site";for(let e=0;e<100;e++)t+=`/${e}`;let r=new URL(e,t);return{isRelativeUrl:r&&"relative-site"===r.hostname&&"relative:"===r.protocol,url:r}}function Q(e,t,r){return t?(e=e.split(/\s+/)).filter(function(e){return -1!==t.indexOf(e)||r.some(function(t){return t.test(e)})}).join(" "):e}}let A={decodeEntities:!0};m.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite","action","formaction","data","xlink:href","poster","background","ping","longdesc","usemap","codebase","classid","archive","profile","manifest","itemid","dynsrc","lowsrc"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1},m.simpleTransform=function(e,t,r){return r=void 0===r||r,t=t||{},function(n,i){let a;if(r)for(a in t)i[a]=t[a];else i=t;return{tagName:e,attribs:i}}}},62142:function(e,t){"use strict";var r;
8Object.defineProperty(t,"__esModule",{value:!0}),t.fromCodePoint=void 0,t.replaceCodePoint=i,t.decodeCodePoint=function(e){return(0,t.fromCodePoint)(i(e))};let n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function i(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=n.get(e))&&void 0!==t?t:e}t.fromCodePoint=null!==(r=String.fromCodePoint)&&void 0!==r?r:e=>{let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)}},55835:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xmlDecodeTree=t.htmlDecodeTree=t.replaceCodePoint=t.fromCodePoint=t.decodeCodePoint=t.EntityDecoder=t.DecodingMode=void 0,t.determineBranch=c,t.decodeHTML=function(e,t=y.Legacy){return d(e,t)},t.decodeHTMLAttribute=function(e){return d(e,y.Attribute)},t.decodeHTMLStrict=function(e){return d(e,y.Strict)},t.decodeXML=function(e){return f(e,y.Strict)};let n=r(62142),i=r(95888),a=r(40498),o=r(65231);function s(e){return e>=m.ZERO&&e<=m.NINE}(h=m||(m={}))[h.NUM=35]="NUM",h[h.SEMI=59]="SEMI",h[h.EQUALS=61]="EQUALS",h[h.ZERO=48]="ZERO",h[h.NINE=57]="NINE",h[h.LOWER_A=97]="LOWER_A",h[h.LOWER_F=102]="LOWER_F",h[h.LOWER_X=120]="LOWER_X",h[h.LOWER_Z=122]="LOWER_Z",h[h.UPPER_A=65]="UPPER_A",h[h.UPPER_F=70]="UPPER_F",h[h.UPPER_Z=90]="UPPER_Z",(p=A||(A={}))[p.EntityStart=0]="EntityStart",p[p.NumericStart=1]="NumericStart",p[p.NumericDecimal=2]="NumericDecimal",p[p.NumericHex=3]="NumericHex",p[p.NamedEntity=4]="NamedEntity",(g=y||(t.DecodingMode=y={}))[g.Legacy=0]="Legacy",g[g.Strict=1]="Strict",g[g.Attribute=2]="Attribute";class l{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=A.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=y.Strict,this.runConsumed=0}startEntity(e){this.decodeMode=e,this.state=A.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case A.EntityStart:if(e.charCodeAt(t)===m.NUM)return this.state=A.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=A.NamedEntity,this.stateNamedEntity(e,t);case A.NumericStart:return this.stateNumericStart(e,t);case A.NumericDecimal:return this.stateNumericDecimal(e,t);case A.NumericHex:return this.stateNumericHex(e,t);case A.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===m.LOWER_X?(this.state=A.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=A.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){for(;t<e.length;){var r;let n=e.charCodeAt(t);if(!s(n)&&(!((r=n)>=m.UPPER_A)||!(r<=m.UPPER_F))&&(!(r>=m.LOWER_A)||!(r<=m.LOWER_F)))return this.emitNumericEntity(n,3);{let e=n<=m.NINE?n-m.ZERO:(32|n)-m.LOWER_A+10;this.result=16*this.result+e,this.consumed++,t++}}return -1}stateNumericDecimal(e,t){for(;t<e.length;){let r=e.charCodeAt(t);if(!s(r))return this.emitNumericEntity(r,2);this.result=10*this.result+(r-m.ZERO),this.consumed++,t++}return -1}emitNumericEntity(e,t){var r;if(this.consumed<=t)return null===(r=this.errors)||void 0===r||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===m.SEMI)this.consumed+=1;else if(this.decodeMode===y.Strict)return 0;return this.emitCodePoint((0,n.replaceCodePoint)(this.result),this.consumed),this.errors&&(e!==m.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:r}=this,n=r[this.treeIndex],i=(n&o.BinTrieFlags.VALUE_LENGTH)>>14;for(;t<e.length;){if(0===i&&(n&o.BinTrieFlags.FLAG13)!=0){let a=(n&o.BinTrieFlags.BRANCH_LENGTH)>>7;if(0===this.runConsumed){let r=n&o.BinTrieFlags.JUMP_TABLE;if(e.charCodeAt(t)!==r)return 0===this.result?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}for(;this.runConsumed<a;){if(t>=e.length)return -1;let n=this.runConsumed-1,i=r[this.treeIndex+1+(n>>1)],a=n%2==0?255&i:i>>8&255;if(e.charCodeAt(t)!==a)return this.runConsumed=0,0===this.result?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(a>>1),i=((n=r[this.treeIndex])&o.BinTrieFlags.VALUE_LENGTH)>>14}if(t>=e.length)break;let a=e.charCodeAt(t);if(a===m.SEMI&&0!==i&&(n&o.BinTrieFlags.FLAG13)!=0)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);if(this.treeIndex=c(r,n,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return 0===this.result||this.decodeMode===y.Attribute&&(0===i||function(e){var t;return e===m.EQUALS||(t=e)>=m.UPPER_A&&t<=m.UPPER_Z||t>=m.LOWER_A&&t<=m.LOWER_Z||s(t)}(a))?0:this.emitNotTerminatedNamedEntity();if(0!=(i=((n=r[this.treeIndex])&o.BinTrieFlags.VALUE_LENGTH)>>14)){if(a===m.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==y.Strict&&(n&o.BinTrieFlags.FLAG13)==0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}t++,this.excess++}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:r}=this,n=(r[t]&o.BinTrieFlags.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){let{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~(o.BinTrieFlags.VALUE_LENGTH|o.BinTrieFlags.FLAG13):n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case A.NamedEntity:return 0!==this.result&&(this.decodeMode!==y.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case A.NumericDecimal:return this.emitNumericEntity(0,2);case A.NumericHex:return this.emitNumericEntity(0,3);case A.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case A.EntityStart:return 0}}}function u(e){let t="",r=new l(e,e=>t+=(0,n.fromCodePoint)(e));return function(e,n){let i=0,a=0;for(;(a=e.indexOf("&",a))>=0;){t+=e.slice(i,a),r.startEntity(n);let o=r.write(e,a+1);if(o<0){i=a+r.end();break}i=a+o,a=0===o?i+1:i}let o=t+e.slice(i);return t="",o}}function c(e,t,r,n){let i=(t&o.BinTrieFlags.BRANCH_LENGTH)>>7,a=t&o.BinTrieFlags.JUMP_TABLE;if(0===i)return 0!==a&&n===a?r:-1;if(a){let t=n-a;return t<0||t>=i?-1:e[r+t]-1}let s=i+1>>1,l=0,u=i-1;for(;l<=u;){let t=l+u>>>1,i=e[r+(t>>1)]>>(1&t)*8&255;if(i<n)l=t+1;else{if(!(i>n))return e[r+s+t];u=t-1}}return -1}t.EntityDecoder=l;let d=u(i.htmlDecodeTree),f=u(a.xmlDecodeTree);var h,p,g,m,A,y,v=r(62142);Object.defineProperty(t,"decodeCodePoint",{enumerable:!0,get:function(){return v.decodeCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return v.fromCodePoint}}),Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return v.replaceCodePoint}});var b=r(95888);Object.defineProperty(t,"htmlDecodeTree",{enumerable:!0,get:function(){return b.htmlDecodeTree}});var w=r(40498);Object.defineProperty(t,"xmlDecodeTree",{enumerable:!0,get:function(){return w.xmlDecodeTree}})},95888:function(e,t,r){"use strict";
8Object.defineProperty(t,"__esModule",{value:!0}),t.htmlDecodeTree=void 0;let n=r(88810);t.htmlDecodeTree=(0,n.decodeBase64)
vendor: 32,204 bytes, line 8
8("QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2ZdhiYwDyAOoAbSJwZXEAAKBOIgAHSE9hY2RlZmhpbG9yc3UXARoBHwE6AVIBVQFiAWQBZgGCAakB6QHtAfIBYwB5ACdkUABZADuAqQCpQIABY3B5ACUBKAE1AfUhdGUGYWmg0iJ0KGFsRGlmZmVyZW50aWFsRAAAoEUhbCJleXMAAKAtIQACYWVpb0EBRAFKAU0B8iFvbgxhZABpAGwAO4DHAMdAcgBjAAhhbiJpbnQAAKAwIm8AdAAKYQABZG5ZAV0BaSJsbGEAuGB0I2VyRG90ALdg8gA5AWkAp2NyImNsZQAAAkRNUFRwAXQBeQF9AW8AdAAAoJkiaSJudXMAAKCWIuwhdXMAoJUiaSJtZXMAAKCXIm8AAAFjc4cBlAFrKndpc2VDb250b3VySW50ZWdyYWwAAKAyImUjQ3VybHkAAAFEUZwBpAFvJXVibGVRdW90ZQAAoB0gdSJvdGUAAKAZIAACbG5wdbABtgHNAdgBbwBuAGWgNyIAoHQqgAFnaXQAvAHBAcUB8iJ1ZW50AKBhIm4AdAAAoC8i7yV1ckludGVncmFsAKAuIgABZnLRAdMBAKACIe8iZHVjdACgECJuLnRlckNsb2Nrd2lzZUNvbnRvdXJJbnRlZ3JhbAAAoDMi7yFzcwCgLypjAHIAAOA12J7ccABDoNMiYQBwAACgTSKABURKU1phY2VmaW9zAAsCEgIVAhgCGwIsAjQCOQI9AnMCfwNvoEUh9CJyYWhkAKARKWMAeQACZGMAeQAFZGMAeQAPZIABZ3JzACECJQIoAuchZXIAoCEgcgAAoKEhaAB2AACg5CoAAWF5MAIzAvIhb24OYRRkbAB0oAciYQCUY3IAAOA12AfdAAFhZkECawIAAWNtRQJnAvIjaXRpY2FsAAJBREdUUAJUAl8CYwJjInV0ZQC0YG8AdAFZAloC2WJiJGxlQWN1dGUA3WJyImF2ZQBgYGkibGRlANxi7yFuZACgxCJmJWVyZW50aWFsRAAAoEYhcAR9AgAAAAAAAIECjgIAABoDZgAA4DXYO91EoagAhQKJAm8AdAAAoNwgcSJ1YWwAAKBQIuIhbGUAA0NETFJVVpkCqAK1Au8C/wIRA28AbgB0AG8AdQByAEkAbgB0AGUAZwByAGEA7ADEAW8AdAKvAgAAAACwAqhgbiNBcnJvdwAAoNMhAAFlb7kC0AJmAHQAgAFBUlQAwQLGAs0CciJyb3cAAKDQIekkZ2h0QXJyb3cAoNQhZQDlACsCbgBnAAABTFLWAugC5SFmdAABQVLcAuECciJyb3cAAKD4J+kkZ2h0QXJyb3cAoPon6SRnaHRBcnJvdwCg+SdpImdodAAAAUFU9gL7AnIicm93AACg0iFlAGUAAKCoInAAQQIGAwAAAAALA3Iicm93AACg0SFvJHduQXJyb3cAAKDVIWUlcnRpY2FsQmFyAACgJSJuAAADQUJMUlRhJAM2AzoDWgNxA3oDciJyb3cAAKGTIUJVLAMwA2EAcgAAoBMpcCNBcnJvdwAAoPUhciJldmUAEWPlIWZ00gJDAwAASwMAAFIDaSVnaHRWZWN0b3IAAKBQKWUkZVZlY3RvcgAAoF4p5SJjdG9yQqC9IWEAcgAAoFYpaSJnaHQA1AFiAwAAaQNlJGVWZWN0b3IAAKBfKeUiY3RvckKgwSFhAHIAAKBXKWUAZQBBoKQiciJyb3cAAKCnIXIAcgBvAPcAtAIAAWN0gwOHA3IAAOA12J/c8iFvaxBhAAhOVGFjZGZnbG1vcHFzdHV4owOlA6kDsAO/A8IDxgPNA9ID8gP9AwEEFAQeBCAEJQRHAEphSAA7gNAA0EBjAHUAdABlADuAyQDJQIABYWl5ALYDuQO+A/Ihb24aYXIAYwA7gMoAykAtZG8AdAAWYXIAAOA12AjdcgBhAHYAZQA7gMgAyEDlIm1lbnQAoAgiAAFhcNYD2QNjAHIAEmF0AHkAUwLhAwAAAADpA20lYWxsU3F1YXJlAACg+yVlJ3J5U21hbGxTcXVhcmUAAKCrJQABZ3D2A/kDbwBuABhhZgAA4DXYPN3zImlsb26VY3UAAAFhaQYEDgRsAFSgdSppImxkZQAAoEIi7CNpYnJpdW0AoMwhAAFjaRgEGwRyAACgMCFtAACgcyphAJdjbQBsADuAywDLQAABaXApBC0E8yF0cwCgAyLvJG5lbnRpYWxFAKBHIYACY2Zpb3MAPQQ/BEMEXQRyBHkAJGRyAADgNdgJ3WwibGVkAFMCTAQAAAAAVARtJWFsbFNxdWFyZQAAoPwlZSdyeVNtYWxsU3F1YXJlAACgqiVwA2UEAABpBAAAAABtBGYAAOA12D3dwSFsbACgACLyI2llcnRyZgCgMSFjAPIAcQQABkpUYWJjZGZnb3JzdIgEiwSOBJMElwSkBKcEqwStBLIE5QTqBGMAeQADZDuAPgA+QO0hbWFkoJMD3GNyImV2ZQAeYYABZWl5AJ0EoASjBOQhaWwiYXIAYwAcYRNkbwB0ACBhcgAA4DXYCt0AoNkicABmAADgNdg+3eUiYXRlcgADRUZHTFNUvwTIBM8E1QTZBOAEcSJ1YWwATKBlIuUhc3MAoNsidSRsbEVxdWFsAACgZyJyI2VhdGVyAACgoirlIXNzAKB3IuwkYW50RXF1YWwAoH4qaSJsZGUAAKBzImMAcgAA4DXYotwAoGsiAARBYWNmaW9zdfkE/QQFBQgFCwUTBSIFKwVSIkRjeQAqZAABY3QBBQQFZQBrAMdiXmDpIXJjJGFyAACgDCFsJWJlcnRTcGFjZQAAoAsh8AEYBQAAGwVmAACgDSHpJXpvbnRhbExpbmUAoAAlAAFjdCYFKAXyABIF8iFvayZhbQBwAEQBMQU5BW8AdwBuAEgAdQBtAPAAAAFxInVhbAAAoE8iAAdFSk9hY2RmZ21ub3N0dVMFVgVZBVwFYwVtBXAFcwV6BZAFtgXFBckFzQVjAHkAFWTsIWlnMmFjAHkAAWRjAHUAdABlADuAzQDNQAABaXlnBWwFcgBjADuAzgDOQBhkbwB0ADBhcgAAoBEhcgBhAHYAZQA7gMwAzEAAoREhYXB/BYsFAAFjZ4MFhQVyACphaSNuYXJ5SQAAoEghbABpAGUA8wD6AvQBlQUAAKUFZaAsIgABZ3KaBZ4F8iFhbACgKyLzI2VjdGlvbgCgwiJpI3NpYmxlAAABQ1SsBbEFbyJtbWEAAKBjIGkibWVzAACgYiCAAWdwdAC8Bb8FwwVvAG4ALmFmAADgNdhA3WEAmWNjAHIAAKAQIWkibGRlAChh6wHSBQAA1QVjAHkABmRsADuAzwDPQIACY2Zvc3UA4QXpBe0F8gX9BQABaXnlBegFcgBjADRhGWRyAADgNdgN3XAAZgAA4DXYQd3jAfcFAAD7BXIAAOA12KXc8iFjeQhk6yFjeQRkgANISmFjZm9zAAwGDwYSBhUGHQYhBiYGYwB5ACVkYwB5AAxk8CFwYZpjAAFleRkGHAbkIWlsNmEaZHIAAOA12A7dcABmAADgNdhC3WMAcgAA4DXYptyABUpUYWNlZmxtb3N0AD0GQAZDBl4GawZkB2gHcAd0B80H2gdjAHkACWQ7gDwAPECAAmNtbnByAEwGTwZSBlUGWwb1IXRlOWHiIWRhm2NnAACg6ifsI2FjZXRyZgCgEiFyAACgniGAAWFleQBkBmcGagbyIW9uPWHkIWlsO2EbZAABZnNvBjQHdAAABUFDREZSVFVWYXKABp4GpAbGBssG3AYDByEHwQIqBwABbnKEBowGZyVsZUJyYWNrZXQAAKDoJ/Ihb3cAoZAhQlKTBpcGYQByAACg5CHpJGdodEFycm93AKDGIWUjaWxpbmcAAKAII28A9QGqBgAAsgZiJWxlQnJhY2tldAAAoOYnbgDUAbcGAAC+BmUkZVZlY3RvcgAAoGEp5SJjdG9yQqDDIWEAcgAAoFkpbCJvb3IAAKAKI2kiZ2h0AAABQVbSBtcGciJyb3cAAKCUIeUiY3RvcgCgTikAAWVy4AbwBmUAAKGjIkFW5gbrBnIicm93AACgpCHlImN0b3IAoFopaSNhbmdsZQBCorIi+wYAAAAA/wZhAHIAAKDPKXEidWFsAACgtCJwAIABRFRWAAoHEQcYB+8kd25WZWN0b3IAoFEpZSRlVmVjdG9yAACgYCnlImN0b3JCoL8hYQByAACgWCnlImN0b3JCoLwhYQByAACgUilpAGcAaAB0AGEAcgByAG8A9wDMAnMAAANFRkdMU1Q/B0cHTgdUB1gHXwfxJXVhbEdyZWF0ZXIAoNoidSRsbEVxdWFsAACgZiJyI2VhdGVyAACgdiLlIXNzAKChKuwkYW50RXF1YWwAoH0qaSJsZGUAAKByInIAAOA12A/dZaDYIuYjdGFycm93AKDaIWkiZG90AD9hgAFucHcAege1B7kHZwAAAkxSbHKCB5QHmwerB+UhZnQAAUFSiAeNB3Iicm93AACg9SfpJGdodEFycm93AKD3J+kkZ2h0QXJyb3cAoPYn5SFmdAABYXLcAqEHaQBnAGgAdABhAHIAcgBvAPcA5wJpAGcAaAB0AGEAcgByAG8A9wDuAmYAAOA12EPdZQByAAABTFK/B8YHZSRmdEFycm93AACgmSHpJGdodEFycm93AKCYIYABY2h0ANMH1QfXB/IAWgYAoLAh8iFva0FhAKBqIgAEYWNlZmlvc3XpB+wH7gf/BwMICQgOCBEIcAAAoAUpeQAcZAABZGzyB/kHaSR1bVNwYWNlAACgXyBsI2ludHJmAACgMyFyAADgNdgQ3e4jdXNQbHVzAKATInAAZgAA4DXYRN1jAPIA/gecY4AESmFjZWZvc3R1ACEIJAgoCDUIgQiFCDsKQApHCmMAeQAKZGMidXRlAENhgAFhZXkALggxCDQI8iFvbkdh5CFpbEVhHWSAAWdzdwA7CGEIfQjhInRpdmWAAU1UVgBECEwIWQhlJWRpdW1TcGFjZQAAoAsgaABpAAABY25SCFMIawBTAHAAYQBjAOUASwhlAHIAeQBUAGgAaQDuAFQI9CFlZAABR0xnCHUIcgBlAGEAdABlAHIARwByAGUAYQB0AGUA8gDrBGUAcwBzAEwAZQBzAPMA2wdMImluZQAKYHIAAOA12BHdAAJCbnB0jAiRCJkInAhyImVhawAAoGAgwiZyZWFraW5nU3BhY2WgYGYAAKAVIUOq7CqzCMIIzQgAAOcIGwkAAAAAAAAtCQAAbwkAAIcJAACdCcAJGQoAADQKAAFvdbYIvAjuI2dydWVudACgYiJwIkNhcAAAoG0ibyh1YmxlVmVydGljYWxCYXIAAKAmIoABbHF4ANII1wjhCOUibWVudACgCSL1IWFsVKBgImkibGRlAADgQiI4A2kic3RzAACgBCJyI2VhdGVyAACjbyJFRkdMU1T1CPoIAgkJCQ0JFQlxInVhbAAAoHEidSRsbEVxdWFsAADgZyI4A3IjZWF0ZXIAAOBrIjgD5SFzcwCgeSLsJGFudEVxdWFsAOB+KjgDaSJsZGUAAKB1IvUhbXBEASAJJwnvI3duSHVtcADgTiI4A3EidWFsAADgTyI4A2UAAAFmczEJRgn0JFRyaWFuZ2xlQqLqIj0JAAAAAEIJYQByAADgzyk4A3EidWFsAACg7CJzAICibiJFR0xTVABRCVYJXAlhCWkJcSJ1YWwAAKBwInIjZWF0ZXIAAKB4IuUhc3MA4GoiOAPsJGFudEVxdWFsAOB9KjgDaSJsZGUAAKB0IuUic3RlZAABR0x1CX8J8iZlYXRlckdyZWF0ZXIA4KIqOAPlI3NzTGVzcwDgoSo4A/IjZWNlZGVzAKGAIkVTjwmVCXEidWFsAADgryo4A+wkYW50RXF1YWwAoOAiAAFlaaAJqQl2JmVyc2VFbGVtZW50AACgDCLnJWh0VHJpYW5nbGVCousitgkAAAAAuwlhAHIAAODQKTgDcSJ1YWwAAKDtIgABcXXDCeAJdSNhcmVTdQAAAWJwywnVCfMhZXRF4I8iOANxInVhbAAAoOIi5SJyc2V0ReCQIjgDcSJ1YWwAAKDjIoABYmNwAOYJ8AkNCvMhZXRF4IIi0iBxInVhbAAAoIgi4yJlZWRzgKGBIkVTVAD6CQAKBwpxInVhbAAA4LAqOAPsJGFudEVxdWFsAKDhImkibGRlAADgfyI4A+UicnNldEXggyLSIHEidWFsAACgiSJpImxkZQCAoUEiRUZUACIKJwouCnEidWFsAACgRCJ1JGxsRXF1YWwAAKBHImkibGRlAACgSSJlJXJ0aWNhbEJhcgAAoCQiYwByAADgNdip3GkAbABkAGUAO4DRANFAnWMAB0VhY2RmZ21vcHJzdHV2XgphCmgKcgp2CnoKgQqRCpYKqwqtCrsKyArNCuwhaWdSYWMAdQB0AGUAO4DTANNAAAFpeWwKcQpyAGMAO4DUANRAHmRiImxhYwBQYXIAAOA12BLdcgBhAHYAZQA7gNIA0kCAAWFlaQCHCooKjQpjAHIATGFnAGEAqWNjInJvbgCfY3AAZgAA4DXYRt3lI25DdXJseQABRFGeCqYKbyV1YmxlUXVvdGUAAKAcIHUib3RlAACgGCAAoFQqAAFjbLEKtQpyAADgNdiq3GEAcwBoADuA2ADYQGkAbAHACsUKZABlADuA1QDVQGUAcwAAoDcqbQBsADuA1gDWQGUAcgAAAUJQ0wrmCgABYXLXCtoKcgAAoD4gYQBjAAABZWvgCuIKAKDeI2UAdAAAoLQjYSVyZW50aGVzaXMAAKDcI4AEYWNmaGlsb3JzAP0KAwsFCwkLCwsMCxELIwtaC3IjdGlhbEQAAKACInkAH2RyAADgNdgT3WkApmOgY/Ujc01pbnVzsWAAAWlwFQsgC24AYwBhAHIAZQBwAGwAYQBuAOUACgVmAACgGSGAobsqZWlvACoLRQtJC+MiZWRlc4CheiJFU1QANAs5C0ALcSJ1YWwAAKCvKuwkYW50RXF1YWwAoHwiaSJsZGUAAKB+Im0AZQAAoDMgAAFkcE0LUQv1IWN0AKAPIm8jcnRpb24AYaA3ImwAAKAdIgABY2leC2ILcgAA4DXYq9yoYwACVWZvc2oLbwtzC3cLTwBUADuAIgAiQHIAAOA12BTdcABmAACgGiFjAHIAAOA12KzcAAZCRWFjZWZoaW9yc3WPC5MLlwupC7YL2AvbC90LhQyTDJoMowzhIXJyAKAQKUcAO4CuAK5AgAFjbnIAnQugC6ML9SF0ZVRhZwAAoOsncgB0oKAhbAAAoBYpgAFhZXkArwuyC7UL8iFvblhh5CFpbFZhIGR2oBwhZSJyc2UAAAFFVb8LzwsAAWxxwwvIC+UibWVudACgCyL1JGlsaWJyaXVtAKDLIXAmRXF1aWxpYnJpdW0AAKBvKXIAAKAcIW8AoWPnIWh0AARBQ0RGVFVWYewLCgwQDDIMNwxeDHwM9gIAAW5y8Av4C2clbGVCcmFja2V0AACg6SfyIW93AKGSIUJM/wsDDGEAcgAAoOUhZSRmdEFycm93AACgxCFlI2lsaW5nAACgCSNvAPUBFgwAAB4MYiVsZUJyYWNrZXQAAKDnJ24A1AEjDAAAKgxlJGVWZWN0b3IAAKBdKeUiY3RvckKgwiFhAHIAAKBVKWwib29yAACgCyMAAWVyOwxLDGUAAKGiIkFWQQxGDHIicm93AACgpiHlImN0b3IAoFspaSNhbmdsZQBCorMiVgwAAAAAWgxhAHIAAKDQKXEidWFsAACgtSJwAIABRFRWAGUMbAxzDO8kd25WZWN0b3IAoE8pZSRlVmVjdG9yAACgXCnlImN0b3JCoL4hYQByAACgVCnlImN0b3JCoMAhYQByAACgUykAAXB1iQyMDGYAAKAdIe4kZEltcGxpZXMAoHAp6SRnaHRhcnJvdwCg2yEAAWNongyhDHIAAKAbIQCgsSHsJGVEZWxheWVkAKD0KYAGSE9hY2ZoaW1vcXN0dQC/DMgMzAzQDOIM5gwKDQ0NFA0ZDU8NVA1YDQABQ2PDDMYMyCFjeSlkeQAoZEYiVGN5ACxkYyJ1dGUAWmEAorwqYWVpedgM2wzeDOEM8iFvbmBh5CFpbF5hcgBjAFxhIWRyAADgNdgW3e8hcnQAAkRMUlXvDPYM/QwEDW8kd25BcnJvdwAAoJMhZSRmdEFycm93AACgkCHpJGdodEFycm93AKCSIXAjQXJyb3cAAKCRIechbWGjY+EkbGxDaXJjbGUAoBgicABmAADgNdhK3XICHw0AAAAAIg10AACgGiLhIXJlgKGhJUlTVQAqDTINSg3uJXRlcnNlY3Rpb24AoJMidQAAAWJwNw1ADfMhZXRFoI8icSJ1YWwAAKCRIuUicnNldEWgkCJxInVhbAAAoJIibiJpb24AAKCUImMAcgAA4DXYrtxhAHIAAKDGIgACYmNtcF8Nag2ODZANc6DQImUAdABFoNAicSJ1YWwAAKCGIgABY2huDYkNZSJlZHMAgKF7IkVTVAB4DX0NhA1xInVhbAAAoLAq7CRhbnRFcXVhbACgfSJpImxkZQAAoH8iVABoAGEA9ADHCwCgESIAodEiZXOVDZ8NciJzZXQARaCDInEidWFsAACghyJlAHQAAKDRIoAFSFJTYWNmaGlvcnMAtQ27Db8NyA3ODdsN3w3+DRgOHQ4jDk8AUgBOADuA3gDeQMEhREUAoCIhAAFIY8MNxg1jAHkAC2R5ACZkAAFidcwNzQ0JYKRjgAFhZXkA1A3XDdoN8iFvbmRh5CFpbGJhImRyAADgNdgX3QABZWnjDe4N8gHoDQAA7Q3lImZvcmUAoDQiYQCYYwABY27yDfkNayNTcGFjZQAA4F8gCiDTInBhY2UAoAkg7CFkZYChPCJFRlQABw4MDhMOcSJ1YWwAAKBDInUkbGxFcXVhbAAAoEUiaSJsZGUAAKBIInAAZgAA4DXYS93pI3BsZURvdACg2yAAAWN0Jw4rDnIAAOA12K/c8iFva2Zh4QpFDlYOYA5qDgAAbg5yDgAAAAAAAAAAAAB5DnwOqA6zDgAADg8RDxYPGg8AAWNySA5ODnUAdABlADuA2gDaQHIAb6CfIeMhaXIAoEkpcgDjAVsOAABdDnkADmR2AGUAbGEAAWl5Yw5oDnIAYwA7gNsA20AjZGIibGFjAHBhcgAA4DXYGN1yAGEAdgBlADuA2QDZQOEhY3JqYQABZGl/Dp8OZQByAAABQlCFDpcOAAFhcokOiw5yAF9gYQBjAAABZWuRDpMOAKDfI2UAdAAAoLUjYSVyZW50aGVzaXMAAKDdI28AbgBQoMMi7CF1cwCgjiIAAWdwqw6uDm8AbgByYWYAAOA12EzdAARBREVUYWRwc78O0g7ZDuEOBQPqDvMOBw9yInJvdwDCoZEhyA4AAMwOYQByAACgEilvJHduQXJyb3cAAKDFIW8kd25BcnJvdwAAoJUhcSV1aWxpYnJpdW0AAKBuKWUAZQBBoKUiciJyb3cAAKClIW8AdwBuAGEAcgByAG8A9wAQA2UAcgAAAUxS+Q4AD2UkZnRBcnJvdwAAoJYh6SRnaHRBcnJvdwCglyFpAGyg0gNvAG4ApWPpIW5nbmFjAHIAAOA12LDcaSJsZGUAaGFtAGwAO4DcANxAgAREYmNkZWZvc3YALQ8xDzUPNw89D3IPdg97D4AP4SFzaACgqyJhAHIAAKDrKnkAEmThIXNobKCpIgCg5ioAAWVyQQ9DDwCgwSKAAWJ0eQBJD00Paw9hAHIAAKAWIGmgFiDjIWFsAAJCTFNUWA9cD18PZg9hAHIAAKAjIukhbmV8YGUkcGFyYXRvcgAAoFgnaSJsZGUAAKBAItQkaGluU3BhY2UAoAogcgAA4DXYGd1wAGYAAOA12E3dYwByAADgNdix3GQiYXNoAACgqiKAAmNlZm9zAI4PkQ+VD5kPng/pIXJjdGHkIWdlAKDAInIAAOA12BrdcABmAADgNdhO3WMAcgAA4DXYstwAAmZpb3OqD64Prw+0D3IAAOA12BvdnmNwAGYAAOA12E/dYwByAADgNdiz3IAEQUlVYWNmb3N1AMgPyw/OD9EP2A/gD+QP6Q/uD2MAeQAvZGMAeQAHZGMAeQAuZGMAdQB0AGUAO4DdAN1AAAFpedwP3w9yAGMAdmErZHIAAOA12BzdcABmAADgNdhQ3WMAcgAA4DXYtNxtAGwAeGEABEhhY2RlZm9z/g8BEAUQDRAQEB0QIBAkEGMAeQAWZGMidXRlAHlhAAFheQkQDBDyIW9ufWEXZG8AdAB7YfIBFRAAABwQbwBXAGkAZAB0AOgAVAhhAJZjcgAAoCghcABmAACgJCFjAHIAAOA12LXc4QtCEEkQTRAAAGcQbRByEAAAAAAAAAAAeRCKEJcQ8hD9EAAAGxEhETIROREAAD4RYwB1AHQAZQA7gOEA4UByImV2ZQADYYCiPiJFZGl1eQBWEFkQWxBgEGUQAOA+IjMDAKA/InIAYwA7gOIA4kB0AGUAO4C0ALRAMGRsAGkAZwA7gOYA5kByoGEgAOA12B7dcgBhAHYAZQA7gOAA4EAAAWVwfBCGEAABZnCAEIQQ8yF5bQCgNSHoAIMQaABhALFjAAFhcI0QWwAAAWNskRCTEHIAAWFnAACgPypkApwQAAAAALEQAKInImFkc3ajEKcQqRCuEG4AZAAAoFUqAKBcKmwib3BlAACgWCoAoFoqAKMgImVsbXJzersQvRDAEN0Q5RDtEACgpCllAACgICJzAGQAYaAhImEEzhDQENIQ1BDWENgQ2hDcEACgqCkAoKkpAKCqKQCgqykAoKwpAKCtKQCgrikAoK8pdAB2oB8iYgBkoL4iAKCdKQABcHTpEOwQaAAAoCIixWDhIXJyAKB8IwABZ3D1EPgQbwBuAAVhZgAA4DXYUt0Ao0giRWFlaW9wBxEJEQ0RDxESERQRAKBwKuMhaXIAoG8qAKBKImQAAKBLInMAJ2DyIW94ZaBIIvEADhFpAG4AZwA7gOUA5UCAAWN0eQAmESoRKxFyAADgNdi23CpgbQBwAGWgSCLxAPgBaQBsAGQAZQA7gOMA40BtAGwAO4DkAORAAAFjaUERRxFvAG4AaQBuAPQA6AFuAHQAAKARKgAITmFiY2RlZmlrbG5vcHJzdWQRaBGXEZ8RpxGrEdIR1hErEjASexKKEn0RThNbE3oTbwB0AACg7SoAAWNybBGJEWsAAAJjZXBzdBF4EX0RghHvIW5nAKBMInAjc2lsb24A9mNyImltZQAAoDUgaQBtAGWgPSJxAACgzSJ2AY0RkRFlAGUAAKC9ImUAZABnoAUjZQAAoAUjcgBrAHSgtSPiIXJrAKC2IwABb3mjEaYRbgDnAHcRMWTxIXVvAKAeIIACY21wcnQAtBG5Eb4RwRHFEeEhdXPloDUi5ABwInR5dgAAoLApcwDpAH0RbgBvAPUA6gCAAWFodwDLEcwRzhGyYwCgNiHlIWVuAKBsInIAAOA12B/dZwCAA2Nvc3R1dncA4xHyEQUSEhIhEiYSKRKAAWFpdQDpEesR7xHwAKMFcgBjAACg7yVwAACgwyKAAWRwdAD4EfwRABJvAHQAAKAAKuwhdXMAoAEqaSJtZXMAAKACKnECCxIAAAAADxLjIXVwAKAGKmEAcgAAoAUm8iNpYW5nbGUAAWR1GhIeEu8hd24AoL0lcAAAoLMlcCJsdXMAAKAEKmUA5QBCD+UAkg9hInJvdwAAoA0pgAFha28ANhJoEncSAAFjbjoSZRJrAIABbHN0AEESRxJNEm8jemVuZ2UAAKDrKXEAdQBhAHIA5QBcBPIjaWFuZ2xlgKG0JWRscgBYElwSYBLvIXduAKC+JeUhZnQAoMIlaSJnaHQAAKC4JWsAAKAjJLEBbRIAAHUSsgFxEgAAcxIAoJIlAKCRJTQAAKCTJWMAawAAoIglAAFlb38ShxJx4D0A5SD1IWl2AOBhIuUgdAAAoBAjAAJwdHd4kRKVEpsSnxJmAADgNdhT3XSgpSJvAG0AAKClIvQhaWUAoMgiAAZESFVWYmRobXB0dXayEsES0RLgEvcS+xIKExoTHxMjEygTNxMAAkxSbHK5ErsSvRK/EgCgVyUAoFQlAKBWJQCgUyUAolAlRFVkdckSyxLNEs8SAKBmJQCgaSUAoGQlAKBnJQACTFJsctgS2hLcEt4SAKBdJQCgWiUAoFwlAKBZJQCjUSVITFJobHLrEu0S7xLxEvMS9RIAoGwlAKBjJQCgYCUAoGslAKBiJQCgXyVvAHgAAKDJKQACTFJscgITBBMGEwgTAKBVJQCgUiUAoBAlAKAMJQCiACVEVWR1EhMUExYTGBMAoGUlAKBoJQCgLCUAoDQlaSJudXMAAKCfIuwhdXMAoJ4iaSJtZXMAAKCgIgACTFJsci8TMRMzEzUTAKBbJQCgWCUAoBglAKAUJQCjAiVITFJobHJCE0QTRhNIE0oTTBMAoGolAKBhJQCgXiUAoDwlAKAkJQCgHCUAAWV2UhNVE3YA5QD5AGIAYQByADuApgCmQAACY2Vpb2ITZhNqE24TcgAA4DXYt9xtAGkAAKBPIG0A5aA9IogRbAAAoVwAYmh0E3YTAKDFKfMhdWIAoMgnbAF+E4QTbABloCIgdAAAoCIgcAAAoU4iRWWJE4sTAKCuKvGgTyI8BeEMqRMAAN8TABQDFB8UAAAjFDQUAAAAAIUUAAAAAI0UAAAAANcU4xT3FPsUAACIFQAAlhWAAWNwcgCuE7ET1RP1IXRlB2GAoikiYWJjZHMAuxO/E8QTzhPSE24AZAAAoEQqciJjdXAAAKBJKgABYXXIE8sTcAAAoEsqcAAAoEcqbwB0AACgQCoA4CkiAP4AAWVv2RPcE3QAAKBBIO4ABAUAAmFlaXXlE+8T9RP4E/AB6hMAAO0TcwAAoE0qbwBuAA1hZABpAGwAO4DnAOdAcgBjAAlhcABzAHOgTCptAACgUCpvAHQAC2GAAWRtbgAIFA0UEhRpAGwAO4C4ALhAcCJ0eXYAAKCyKXQAAIGiADtlGBQZFKJAcgBkAG8A9ABiAXIAAOA12CDdgAFjZWkAKBQqFDIUeQBHZGMAawBtoBMn4SFyawCgEyfHY3IAAKPLJUVjZWZtcz8UQRRHFHcUfBSAFACgwykAocYCZWxGFEkUcQAAoFciZQBhAlAUAAAAAGAUciJyb3cAAAFsclYUWhTlIWZ0AKC6IWkiZ2h0AACguyGAAlJTYWNkAGgUaRRrFG8UcxSuYACgyCRzAHQAAKCbIukhcmMAoJoi4SFzaACgnSJuImludAAAoBAqaQBkAACg7yrjIWlyAKDCKfUhYnN1oGMmaQB0AACgYybsApMUmhS2FAAAwxRvAG4AZaA6APGgVCKrAG0CnxQAAAAAoxRhAHSgLABAYAChASJmbKcUqRTuABMNZQAAAW14rhSyFOUhbnQAoAEiZQDzANIB5wG6FAAAwBRkoEUibwB0AACgbSpuAPQAzAGAAWZyeQDIFMsUzhQA4DXYVN1vAOQA1wEAgakAO3MeAdMUcgAAoBchAAFhb9oU3hRyAHIAAKC1IXMAcwAAoBcnAAFjdeYU6hRyAADgNdi43AABYnDuFPIUZaDPKgCg0SploNAqAKDSKuQhb3QAoO8igANkZWxwcnZ3AAYVEBUbFSEVRBVlFYQV4SFycgABbHIMFQ4VAKA4KQCgNSlwAhYVAAAAABkVcgAAoN4iYwAAoN8i4SFycnCgtiEAoD0pgKIqImJjZG9zACsVMBU6FT4VQRVyImNhcAAAoEgqAAFhdTQVNxVwAACgRipwAACgSipvAHQAAKCNInIAAKBFKgDgKiIA/gACYWxydksVURVuFXMVcgByAG2gtyEAoDwpeQCAAWV2dwBYFWUVaRVxAHACXxUAAAAAYxVyAGUA4wAXFXUA4wAZFWUAZQAAoM4iZSJkZ2UAAKDPImUAbgA7gKQApEBlI2Fycm93AAABbHJ7FX8V5SFmdACgtiFpImdodAAAoLchZQDkAG0VAAFjaYsVkRVvAG4AaQBuAPQAkwFuAHQAAKAxImwiY3R5AACgLSOACUFIYWJjZGVmaGlqbG9yc3R1d3oAuBW7Fb8V1RXgFegV+RUKFhUWHxZUFlcWZRbFFtsW7xb7FgUXChdyAPIAtAJhAHIAAKBlKQACZ2xyc8YVyhXOFdAV5yFlcgCgICDlIXRoAKA4IfIA9QxoAHagECAAoKMiawHZFd4VYSJyb3cAAKAPKWEA4wBfAgABYXnkFecV8iFvbg9hNGQAoUYhYW/tFfQVAAFnciEC8RVyAACgyiF0InNlcQAAoHcqgAFnbG0A/xUCFgUWO4CwALBAdABhALRjcCJ0eXYAAKCxKQABaXIOFhIW8yFodACgfykA4DXYId1hAHIAAAFschsWHRYAoMMhAKDCIYACYWVnc3YAKBauAjYWOhY+Fm0AAKHEIm9zLhY0Fm4AZABzoMQi9SFpdACgZiZhIm1tYQDdY2kAbgAAoPIiAKH3AGlvQxZRFmQAZQAAgfcAO29KFksW90BuI3RpbWVzAACgxyJuAPgAUBZjAHkAUmRjAG8CXhYAAAAAYhZyAG4AAKAeI28AcAAAoA0jgAJscHR1dwBuFnEWdRaSFp4W7CFhciRgZgAA4DXYVd0AotkCZW1wc30WhBaJFo0WcQBkoFAibwB0AACgUSJpIm51cwAAoDgi7CF1cwCgFCLxInVhcmUAoKEiYgBsAGUAYgBhAHIAdwBlAGQAZwDlANcAbgCAAWFkaAClFqoWtBZyAHIAbwD3APUMbwB3AG4AYQByAHIAbwB3APMA8xVhI3Jwb29uAAABbHK8FsAWZQBmAPQAHBZpAGcAaAD0AB4WYgHJFs8WawBhAHIAbwD3AJILbwLUFgAAAADYFnIAbgAAoB8jbwBwAACgDCOAAWNvdADhFukW7BYAAXJ55RboFgDgNdi53FVkbAAAoPYp8iFvaxFhAAFkcvMW9xZvAHQAAKDxImkA5qC/JVsSAAFhaP8WAhdyAPIANQNhAPIA1wvhIm5nbGUAoKYpAAFjaQ4XEBd5AF9k5yJyYXJyAKD/JwAJRGFjZGVmZ2xtbm9wcXJzdHV4MRc4F0YXWxcyBF4XaRd5F40XrBe0F78X2RcVGCEYLRg1GEAYAAFEbzUXgRZvAPQA+BUAAWNzPBdCF3UAdABlADuA6QDpQPQhZXIAoG4qAAJhaW95TRdQF1YXWhfyIW9uG2FyAGOgViI7gOoA6kDsIW9uAKBVIk1kbwB0ABdhAAFEcmIXZhdvAHQAAKBSIgDgNdgi3XKhmipuF3QXYQB2AGUAO4DoAOhAZKCWKm8AdAAAoJgqgKGZKmlscwCAF4UXhxfuInRlcnMAoOcjAKATIWSglSpvAHQAAKCXKoABYXBzAJMXlheiF2MAcgATYXQAeQBzogUinxcAAAAAoRdlAHQAAKAFInAAMaADIDMBqRerFwCgBCAAoAUgAAFnc7AXsRdLYXAAAKACIAABZ3C4F7sXbwBuABlhZgAA4DXYVt2AAWFscwDFF8sXzxdyAHOg1SJsAACg4yl1AHMAAKBxKmkAAKG1A2x21RfYF28AbgC1Y/VjAAJjc3V24BfoF/0XEBgAAWlv5BdWF3IAYwAAoFYiaQLuFwAAAADwF+0ADQThIW50AAFnbPUX+Rd0AHIAAKCWKuUhc3MAoJUqgAFhZWkAAxgGGAoYbABzAD1gcwB0AACgXyJ2AESgYSJEAACgeCrwImFyc2wAoOUpAAFEYRkYHRhvAHQAAKBTInIAcgAAoHEpgAFjZGkAJxgqGO0XcgAAoC8hbwD0AIwCAAFhaDEYMhi3YzuA8ADwQAABbXI5GD0YbAA7gOsA60BvAACgrCCAAWNpcABGGEgYSxhsACFgcwD0ACwEAAFlb08YVxhjAHQAYQB0AGkAbwDuABoEbgBlAG4AdABpAGEAbADlADME4Ql1GAAAgRgAAIMYiBgAAAAAoRilGAAAqhgAALsYvhjRGAAA1xgnGWwAbABpAG4AZwBkAG8AdABzAGUA8QBlF3kARGRtImFsZQAAoEAmgAFpbHIAjRiRGJ0Y7CFpZwCgA/tpApcYAAAAAJoYZwAAoAD7aQBnAACgBPsA4DXYI93sIWlnAKAB++whaWcA4GYAagCAAWFsdACvGLIYthh0AACgbSZpAGcAAKAC+24AcwAAoLElbwBmAJJh8AHCGAAAxhhmAADgNdhX3QABYWvJGMwYbADsAGsEdqDUIgCg2SphI3J0aW50AACgDSoAAWFv2hgiGQABY3PeGB8ZsQPnGP0YBRkSGRUZAAAdGbID7xjyGPQY9xj5GAAA+xg7gL0AvUAAoFMhO4C8ALxAAKBVIQCgWSEAoFshswEBGQAAAxkAoFQhAKBWIbQCCxkOGQAAAAAQGTuAvgC+QACgVyEAoFwhNQAAoFghtgEZGQAAGxkAoFohAKBdITgAAKBeIWwAAKBEIHcAbgAAoCIjYwByAADgNdi73IAIRWFiY2RlZmdpamxub3JzdHYARhlKGVoZXhlmGWkZkhmWGZkZnRmgGa0ZxhnLGc8Z4BkjGmygZyIAoIwqgAFjbXAAUBlTGVgZ9SF0ZfVhbQBhAOSgswM6FgCghipyImV2ZQAfYQABaXliGWUZcgBjAB1hM2RvAHQAIWGAoWUibHFzAMYEcBl6GfGhZSLOBAAAdhlsAGEAbgD0AN8EgKF+KmNkbACBGYQZjBljAACgqSpvAHQAb6CAKmyggioAoIQqZeDbIgD+cwAAoJQqcgAA4DXYJN3noGsirATtIWVsAKA3IWMAeQBTZIChdyJFYWoApxmpGasZAKCSKgCgpSoAoKQqAAJFYWVztBm2Gb0ZwhkAoGkicABwoIoq8iFveACgiipxoIgq8aCIKrUZaQBtAACg5yJwAGYAAOA12FjdYQB2AOUAYwIAAWNp0xnWGXIAAKAKIW0AAKFzImVs3BneGQCgjioAoJAqAIM+ADtjZGxxco0E6xn0GfgZ/BkBGgABY2nvGfEZAKCnKnIAAKB6Km8AdAAAoNci0CFhcgCglSl1ImVzdAAAoHwqgAJhZGVscwAKGvQZFhrVBCAa8AEPGgAAFBpwAHIAbwD4AFkZcgAAoHgpcQAAAWxxxAQbGmwAZQBzAPMASRlpAO0A5AQAAWVuJxouGnIjdG5lcXEAAOBpIgD+xQAsGgAFQWFiY2Vma29zeUAaQxpmGmoabRqDGocalhrCGtMacgDyAMwCAAJpbG1yShpOGlAaVBpyAHMA8ABxD2YAvWBpAGwA9AASBQABZHJYGlsaYwB5AEpkAKGUIWN3YBpkGmkAcgAAoEgpAKCtIWEAcgAAoA8h6SFyYyVhgAFhbHIAcxp7Gn8a8iF0c3WgZSZpAHQAAKBlJuwhaXAAoCYg4yFvbgCguSJyAADgNdgl3XMAAAFld4wakRphInJvdwAAoCUpYSJyb3cAAKAmKYACYW1vcHIAnxqjGqcauhq+GnIAcgAAoP8h9CFodACgOyJrAAABbHKsGrMaZSRmdGFycm93AACgqSHpJGdodGFycm93AKCqIWYAAOA12Fnd4iFhcgCgFSCAAWNsdADIGswa0BpyAADgNdi93GEAcwDoAGka8iFvaydhAAFicNca2xr1IWxsAKBDIOghZW4AoBAg4Qr2GgAA/RoAAAgbExsaGwAAIRs7GwAAAAA+G2IbmRuVG6sbAACyG80b0htjAHUAdABlADuA7QDtQAChYyBpeQEbBhtyAGMAO4DuAO5AOGQAAWN4CxsNG3kANWRjAGwAO4ChAKFAAAFmcssCFhsA4DXYJt1yAGEAdgBlADuA7ADsQIChSCFpbm8AJxsyGzYbAAFpbisbLxtuAHQAAKAMKnQAAKAtIuYhaW4AoNwpdABhAACgKSHsIWlnM2GAAWFvcABDG1sbXhuAAWNndABJG0sbWRtyACthgAFlbHAAcQVRG1UbaQBuAOUAyAVhAHIA9AByBWgAMWFmAACgtyJlAGQAtWEAoggiY2ZvdGkbbRt1G3kb4SFyZQCgBSFpAG4AdKAeImkAZQAAoN0pZABvAPQAWxsAoisiY2VscIEbhRuPG5QbYQBsAACguiIAAWdyiRuNG2UAcgDzACMQ4wCCG2EicmhrAACgFyryIW9kAKA8KgACY2dwdJ8boRukG6gbeQBRZG8AbgAvYWYAAOA12FrdYQC5Y3UAZQBzAHQAO4C/AL9AAAFjabUbuRtyAADgNdi+3G4AAKIIIkVkc3bCG8QbyBvQAwCg+SJvAHQAAKD1Inag9CIAoPMiaaBiIOwhZGUpYesB1hsAANkbYwB5AFZkbAA7gO8A70AAA2NmbW9zdeYb7hvyG/Ub+hsFHAABaXnqG+0bcgBjADVhOWRyAADgNdgn3eEhdGg3YnAAZgAA4DXYW93jAf8bAAADHHIAAOA12L/c8iFjeVhk6yFjeVRkAARhY2ZnaGpvcxUcGhwiHCYcKhwtHDAcNRzwIXBhdqC6A/BjAAFleR4cIRzkIWlsN2E6ZHIAAOA12CjdciJlZW4AOGFjAHkARWRjAHkAXGRwAGYAAOA12FzdYwByAADgNdjA3IALQUJFSGFiY2RlZmdoamxtbm9wcnN0dXYAXhxtHHEcdRx5HN8cBx0dHTwd3B3tHfEdAR4EHh0eLB5FHrwewx7hHgkfPR9LH4ABYXJ0AGQcZxxpHHIA8gBvB/IAxQLhIWlsAKAbKeEhcnIAoA4pZ6BmIgCgiyphAHIAAKBiKWMJjRwAAJAcAACVHAAAAAAAAAAAAACZHJwcAACmHKgcrRwAANIc9SF0ZTph7SJwdHl2AKC0KXIAYQDuAFoG4iFkYbtjZwAAoegnZGyhHKMcAKCRKeUAiwYAoIUqdQBvADuAqwCrQHIAgKOQIWJmaGxwc3QAuhy/HMIcxBzHHMoczhxmoOQhcwAAoB8pcwAAoB0p6wCyGnAAAKCrIWwAAKA5KWkAbQAAoHMpbAAAoKIhAKGrKmFl1hzaHGkAbAAAoBkpc6CtKgDgrSoA/oABYWJyAOUc6RztHHIAcgAAoAwpcgBrAACgcicAAWFr8Rz4HGMAAAFla/Yc9xx7YFtgAAFlc/wc/hwAoIspbAAAAWR1Ax0FHQCgjykAoI0pAAJhZXV5Dh0RHRodHB3yIW9uPmEAAWRpFR0YHWkAbAA8YewAowbiAPccO2QAAmNxcnMkHScdLB05HWEAAKA2KXUAbwDyoBwgqhEAAWR1MB00HeghYXIAoGcpcyJoYXIAAKBLKWgAAKCyIQCiZCJmZ3FzRB1FB5Qdnh10AIACYWhscnQATh1WHWUdbB2NHXIicm93AHSgkCFhAOkAzxxhI3Jwb29uAAABZHVeHWId7yF3bgCgvSFwAACgvCHlJGZ0YXJyb3dzAKDHIWkiZ2h0AIABYWhzAHUdex2DHXIicm93APOglCGdBmEAcgBwAG8AbwBuAPMAzgtxAHUAaQBnAGEAcgByAG8A9wBlGugkcmVldGltZXMAoMsi8aFkIk0HAACaHWwAYQBuAPQAXgcAon0qY2Rnc6YdqR2xHbcdYwAAoKgqbwB0AG+gfypyoIEqAKCDKmXg2iIA/nMAAKCTKoACYWRlZ3MAwB3GHcod1h3ZHXAAcAByAG8A+ACmHG8AdAAAoNYicQAAAWdxzx3SHXQA8gBGB2cAdADyAHQcdADyAFMHaQDtAGMHgAFpbHIA4h3mHeod8yFodACgfClvAG8A8gDKBgDgNdgp3UWgdiIAoJEqYQH1Hf4dcgAAAWR1YB35HWygvCEAoGopbABrAACghCVjAHkAWWQAomoiYWNodAweDx4VHhkecgDyAGsdbwByAG4AZQDyAGAW4SFyZACgaylyAGkAAKD6JQABaW8hHiQe5CFvdEBh9SFzdGGgsCPjIWhlAKCwIwACRWFlczMeNR48HkEeAKBoInAAcKCJKvIhb3gAoIkqcaCHKvGghyo0HmkAbQAAoOYiAARhYm5vcHR3elIeXB5fHoUelh6mHqsetB4AAW5yVh5ZHmcAAKDsJ3IAAKD9IXIA6wCwBmcAgAFsbXIAZh52Hnse5SFmdAABYXKIB2weaQBnAGgAdABhAHIAcgBvAPcAkwfhInBzdG8AoPwnaQBnAGgAdABhAHIAcgBvAPcAmgdwI2Fycm93AAABbHKNHpEeZQBmAPQAxhxpImdodAAAoKwhgAFhZmwAnB6fHqIecgAAoIUpAOA12F3ddQBzAACgLSppIm1lcwAAoDQqYQGvHrMecwB0AACgFyLhAIoOZaHKJbkeRhLuIWdlAKDKJWEAcgBsoCgAdAAAoJMpgAJhY2htdADMHs8e1R7bHt0ecgDyAJ0GbwByAG4AZQDyANYWYQByAGSgyyEAoG0pAKAOIHIAaQAAoL8iAANhY2hpcXTrHu8e1QfzHv0eBh/xIXVvAKA5IHIAAOA12MHcbQDloXIi+h4AAPweAKCNKgCgjyoAAWJ19xwBH28AcqAYIACgGiDyIW9rQmEAhDwAO2NkaGlscXJCBhcfxh0gHyQfKB8sHzEfAAFjaRsfHR8AoKYqcgAAoHkqcgBlAOUAkx3tIWVzAKDJIuEhcnIAoHYpdSJlc3QAAKB7KgABUGk1HzkfYQByAACglillocMlAgdfEnIAAAFkdUIfRx9zImhhcgAAoEop6CFhcgCgZikAAWVuTx9WH3IjdG5lcXEAAOBoIgD+xQBUHwAHRGFjZGVmaGlsbm9wc3VuH3Ifoh+rH68ftx+7H74f5h/uH/MfBwj/HwsgxCFvdACgOiIAAmNscHJ5H30fiR+eH3IAO4CvAK9AAAFldIEfgx8AoEImZaAgJ3MAZQAAoCAnc6CmIXQAbwCAoaYhZGx1AJQfmB+cH28AdwDuAHkDZQBmAPQA6gbwAOkO6yFlcgCgriUAAW95ph+qH+0hbWEAoCkqPGThIXNoAKAUIOElc3VyZWRhbmdsZQCgISJyAADgNdgq3W8AAKAnIYABY2RuAMQfyR/bH3IAbwA7gLUAtUBhoiMi0B8AANMf1x9zAPQAKxFpAHIAAKDwKm8AdAA7gLcAt0B1AHMA4qESIh4TAADjH3WgOCIAoCoqYwHqH+0fcAAAoNsq8gB+GnAAbAB1APMACAgAAWRw9x/7H+UhbHMAoKciZgAA4DXYXt0AAWN0AyAHIHIAAOA12MLc8CFvcwCgPiJsobwDECAVIPQiaW1hcACguCJhAPAAEyAADEdMUlZhYmNkZWZnaGlqbG1vcHJzdHV2dzwgRyBmIG0geSCqILgg2iDeIBEhFSEyIUMhTSFQIZwhnyHSIQAiIyKLIrEivyIUIwABZ3RAIEMgAODZIjgD9uBrItIgBwmAAWVsdABNIF8gYiBmAHQAAAFhclMgWCByInJvdwAAoM0h6SRnaHRhcnJvdwCgziEA4NgiOAP24Goi0iBfCekkZ2h0YXJyb3cAoM8hAAFEZHEgdSDhIXNoAKCvIuEhc2gAoK4igAJiY25wdACCIIYgiSCNIKIgbABhAACgByL1IXRlRGFnAADgICLSIACiSSJFaW9wlSCYIJwgniAA4HAqOANkAADgSyI4A3MASWFyAG8A+AAyCnUAcgBhoG4mbADzoG4mmwjzAa8gAACzIHAAO4CgAKBAbQBwAOXgTiI4AyoJgAJhZW91eQDBIMogzSDWINkg8AHGIAAAyCAAoEMqbwBuAEhh5CFpbEZhbgBnAGSgRyJvAHQAAOBtKjgDcAAAoEIqPWThIXNoAKATIACjYCJBYWRxc3jpIO0g+SD+IAIhDCFyAHIAAKDXIXIAAAFocvIg9SBrAACgJClvoJch9wAGD28AdAAA4FAiOAN1AGkA9gC7CAABZWkGIQohYQByAACgKCntAN8I6SFzdPOgBCLlCHIAAOA12CvdAAJFZXN0/wgcISshLiHxoXEiIiEAABMJ8aFxIgAJAAAnIWwAYQBuAPQAEwlpAO0AGQlyoG8iAKBvIoABQWFwADghOyE/IXIA8gBeIHIAcgAAoK4hYQByAACg8ipzogsiSiEAAAAAxwtkoPwiAKD6ImMAeQBaZIADQUVhZGVzdABcIV8hYiFmIWkhkyGWIXIA8gBXIADgZiI4A3IAcgAAoJohcgAAoCUggKFwImZxcwBwIYQhjiF0AAABYXJ1IXohcgByAG8A9wBlIWkAZwBoAHQAYQByAHIAbwD3AD4h8aFwImAhAACKIWwAYQBuAPQAZwlz4H0qOAMAoG4iaQDtAG0JcqBuImkA5aDqIkUJaQDkADoKAAFwdKMhpyFmAADgNdhf3YCBrAA7aW4AriGvIcchrEBuAIChCSJFZHYAtyG6Ib8hAOD5IjgDbwB0AADg9SI4A+EB1gjEIcYhAKD3IgCg9iJpAHagDCLhAagJzyHRIQCg/iIAoP0igAFhb3IA2CHsIfEhcgCAoSYiYXN0AOAh5SHpIWwAbABlAOwAywhsAADg/SrlIADgAiI4A2wiaW50AACgFCrjoYAi9yEAAPohdQDlAJsJY+CvKjgDZaCAIvEAkwkAAkFhaXQHIgoiFyIeInIA8gBsIHIAcgAAoZshY3cRIhQiAOAzKTgDAOCdITgDZyRodGFycm93AACgmyFyAGkA5aDrIr4JgANjaGltcHF1AC8iPCJHIpwhTSJQIloigKGBImNlcgA2Iv0JOSJ1AOUABgoA4DXYw9zvIXJ0bQKdIQAAAABEImEAcgDhAOEhbQBloEEi8aBEIiYKYQDyAMsIcwB1AAABYnBWIlgi5QDUCeUA3wmAAWJjcABgInMieCKAoYQiRWVzAGci7glqIgDgxSo4A2UAdABl4IIi0iBxAPGgiCJoImMAZaCBIvEA/gmAoYUiRWVzAH8iFgqCIgDgxio4A2UAdABl4IMi0iBxAPGgiSKAIgACZ2lscpIilCKaIpwi7AAMCWwAZABlADuA8QDxQOcAWwlpI2FuZ2xlAAABbHKkIqoi5SFmdGWg6iLxAEUJaSJnaHQAZaDrIvEAvgltoL0DAKEjAGVzuCK8InIAbwAAoBYhcAAAoAcggARESGFkZ2lscnMAziLSItYi2iLeIugi7SICIw8j4SFzaACgrSLhIXJyAKAEKXAAAOBNItIg4SFzaACgrCIAAWV04iLlIgDgZSLSIADgPgDSIG4iZmluAACg3imAAUFldADzIvci+iJyAHIAAKACKQDgZCLSIHLgPADSIGkAZQAA4LQi0iAAAUF0BiMKI3IAcgAAoAMp8iFpZQDgtSLSIGkAbQAA4Dwi0iCAAUFhbgAaIx4jKiNyAHIAAKDWIXIAAAFociMjJiNrAACgIylvoJYh9wD/DuUhYXIAoCcpUxJqFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVCMAAF4jaSN/I4IjjSOeI8AUAAAAAKYjwCMAANoj3yMAAO8jHiQvJD8kRCQAAWNzVyNsFHUAdABlADuA8wDzQAABaXlhI2cjcgBjoJoiO4D0APRAPmSAAmFiaW9zAHEjdCN3I3EBeiNzAOgAdhTsIWFjUWF2AACgOCrvIWxkAKC8KewhaWdTYQABY3KFI4kjaQByAACgvykA4DXYLN1vA5QjAAAAAJYjAACcI24A22JhAHYAZQA7gPIA8kAAoMEpAAFibaEjjAphAHIAAKC1KQACYWNpdKwjryO6I70jcgDyAFkUAAFpcrMjtiNyAACgvinvIXNzAKC7KW4A5QDZCgCgwCmAAWFlaQDFI8gjyyNjAHIATWFnAGEAyWOAAWNkbgDRI9Qj1iPyIW9uv2MAoLYpdQDzAHgBcABmAADgNdhg3YABYWVsAOQj5yPrI3IAAKC3KXIAcAAAoLkpdQDzAHwBAKMoImFkaW9zdvkj/CMPJBMkFiQbJHIA8gBeFIChXSplZm0AAyQJJAwkcgBvoDQhZgAAoDQhO4CqAKpAO4C6ALpA5yFvZgCgtiJyAACgVipsIm9wZQAAoFcqAKBbKoABY2xvACMkJSQrJPIACCRhAHMAaAA7gPgA+EBsAACgmCJpAGwBMyQ4JGQAZQA7gPUA9UBlAHMAYaCXInMAAKA2Km0AbAA7gPYA9kDiIWFyAKA9I+EKXiQAAHokAAB8JJQkAACYJKkkAAAAALUkEQsAAPAkAAAAAAQleiUAAIMlcgCAoSUiYXN0AGUkbyQBCwCBtgA7bGokayS2QGwAZQDsABgDaQJ1JAAAAAB4JG0AAKDzKgCg/Sp5AD9kcgCAAmNpbXB0AIUkiCSLJJkSjyRuAHQAJWBvAGQALmBpAGwAAKAwIOUhbmsAoDEgcgAA4DXYLd2AAWltbwCdJKAkpCR2oMYD1WNtAGEA9AD+B24AZQAAoA4m9KHAA64kAAC0JGMjaGZvcmsAAKDUItZjAAFhdbgkxCRuAAABY2u9JMIkawBooA8hAKAOIfYAaRpzAACkKwBhYmNkZW1zdNMkIRPXJNsk4STjJOck6yTjIWlyAKAjKmkAcgAAoCIqAAFvdYsW3yQAoCUqAKByKm4AO4CxALFAaQBtAACgJip3AG8AAKAnKoABaXB1APUk+iT+JO4idGludACgFSpmAADgNdhh3W4AZAA7gKMAo0CApHoiRWFjZWlub3N1ABMlFSUYJRslTCVRJVklSSV1JQCgsypwAACgtyp1AOUAPwtjoK8qgKJ6ImFjZW5zACclLSU0JTYlSSVwAHAAcgBvAPgAFyV1AHIAbAB5AGUA8QA/C/EAOAuAAWFlcwA8JUElRSXwInByb3gAoLkqcQBxAACgtSppAG0AAKDoImkA7QBEC20AZQDzoDIgIguAAUVhcwBDJVclRSXwAEAlgAFkZnAATwtfJXElgAFhbHMAZSVpJW0l7CFhcgCgLiPpIW5lAKASI/UhcmYAoBMjdKAdIu8AWQvyIWVsAKCwIgABY2l9JYElcgAA4DXYxdzIY24iY3NwAACgCCAAA2Zpb3BzdZElKxuVJZolnyWkJXIAAOA12C7dcABmAADgNdhi3XIiaW1lAACgVyBjAHIAAOA12MbcgAFhZW8AqiW6JcAldAAAAWVpryW2JXIAbgBpAG8AbgDzABkFbgB0AACgFipzAHQAZaA/APEACRj0AG0LgApBQkhhYmNkZWZoaWxtbm9wcnN0dXgA4yXyJfYl+iVpJpAmpia9JtUm5ib4JlonaCdxJ3UnnietJ7EnyCfiJ+cngAFhcnQA6SXsJe4lcgDyAJkM8gD6AuEhaWwAoBwpYQByAPIA3BVhAHIAAKBkKYADY2RlbnFydAAGJhAmEyYYJiYmKyZaJgABZXUKJg0mAOA9IjEDdABlAFVhaQDjACAN7SJwdHl2AKCzKWcAgKHpJ2RlbAAgJiImJCYAoJIpAKClKeUA9wt1AG8AO4C7ALtAcgAApZIhYWJjZmhscHN0dz0mQCZFJkcmSiZMJk4mUSZVJlgmcAAAoHUpZqDlIXMAAKAgKQCgMylzAACgHinrALka8ACVHmwAAKBFKWkAbQAAoHQpbAAAoKMhAKCdIQABYWleJmImaQBsAACgGilvAG6gNiJhAGwA8wB2C4ABYWJyAG8mciZ2JnIA8gAvEnIAawAAoHMnAAFha3omgSZjAAABZWt/JoAmfWBdYAABZXOFJocmAKCMKWwAAAFkdYwmjiYAoI4pAKCQKQACYWV1eZcmmiajJqUm8iFvbllhAAFkaZ4moSZpAGwAV2HsAA8M4gCAJkBkAAJjbHFzrSawJrUmuiZhAACgNylkImhhcgAAoGkpdQBvAPKgHSCjAWgAAKCzIYABYWNnAMMm0iaUC2wAgKEcIWlwcwDLJs4migxuAOUAoAxhAHIA9ADaC3QAAKCtJYABaWxyANsm3ybjJvMhaHQAoH0pbwBvAPIANgwA4DXYL90AAWFv6ib1JnIAAAFkde8m8SYAoMEhbKDAIQCgbCl2oMED8WOAAWducwD+Jk4nUCdoAHQAAANhaGxyc3QKJxInISc1Jz0nRydyInJvdwB0oJIhYQDpAFYmYSNycG9vbgAAAWR1GiceJ28AdwDuAPAmcAAAoMAh5SFmdAABYWgnJy0ncgByAG8AdwDzAAkMYQByAHAAbwBvAG4A8wATBGklZ2h0YXJyb3dzAACgySFxAHUAaQBnAGEAcgByAG8A9wBZJugkcmVldGltZXMAoMwiZwDaYmkAbgBnAGQAbwB0AHMAZQDxABwYgAFhaG0AYCdjJ2YncgDyAAkMYQDyABMEAKAPIG8idXN0AGGgsSPjIWhlAKCxI+0haWQAoO4qAAJhYnB0fCeGJ4knmScAAW5ygCeDJ2cAAKDtJ3IAAKD+IXIA6wAcDIABYWZsAI8nkieVJ3IAAKCGKQDgNdhj3XUAcwAAoC4qaSJtZXMAAKA1KgABYXCiJ6gncgBnoCkAdAAAoJQp7yJsaW50AKASKmEAcgDyADwnAAJhY2hxuCe8J6EMwCfxIXVvAKA6IHIAAOA12MfcAAFidYAmxCdvAPKgGSCoAYABaGlyAM4n0ifWJ3IAZQDlAE0n7SFlcwCgyiJpAIChuSVlZmwAXAxjEt4n9CFyaQCgzinsInVoYXIAoGgpAKAeIWENBSgJKA0oSyhVKIYoAACLKLAoAAAAAOMo5ygAABApJCkxKW0pcSmHKaYpAACYKgAAAACxKmMidXRlAFthcQB1AO8ABR+ApHsiRWFjZWlucHN5ABwoHignKCooLygyKEEoRihJKACgtCrwASMoAAAlKACguCpvAG4AYWF1AOUAgw1koLAqaQBsAF9hcgBjAF1hgAFFYXMAOCg6KD0oAKC2KnAAAKC6KmkAbQAAoOki7yJsaW50AKATKmkA7QCIDUFkbwB0AGKixSKRFgAAAABTKACgZiqAA0FhY21zdHgAYChkKG8ocyh1KHkogihyAHIAAKDYIXIAAAFocmkoayjrAJAab6CYIfcAzAd0ADuApwCnQGkAO2D3IWFyAKApKW0AAAFpbn4ozQBuAHUA8wDOAHQAAKA2J3IA7+A12DDdIxkAAmFjb3mRKJUonSisKHIAcAAAoG8mAAFoeZkonChjAHkASWRIZHIAdABtAqUoAAAAAKgoaQDkAFsPYQByAGEA7ABsJDuArQCtQAABZ22zKLsobQBhAAChwwNmdroouijCY4CjPCJkZWdsbnByAMgozCjPKNMo1yjaKN4obwB0AACgairxoEMiCw5FoJ4qAKCgKkWgnSoAoJ8qZQAAoEYi7CF1cwCgJCrhIXJyAKByKWEAcgDyAPwMAAJhZWl07Sj8KAEpCCkAAWxz8Sj4KGwAcwBlAHQAbQDpAH8oaABwAACgMyrwImFyc2wAoOQpAAFkbFoPBSllAACgIyNloKoqc6CsKgDgrCoA/oABZmxwABUpGCkfKfQhY3lMZGKgLwBhoMQpcgAAoD8jZgAA4DXYZN1hAAABZHIoKRcDZQBzAHWgYCZpAHQAAKBgJoABY3N1ADYpRilhKQABYXU6KUApcABzoJMiAOCTIgD+cABzoJQiAOCUIgD+dQAAAWJwSylWKQChjyJlcz4NUCllAHQAZaCPIvEAPw0AoZAiZXNIDVspZQB0AGWgkCLxAEkNAKGhJWFmZilbBHIAZQFrKVwEAKChJWEAcgDyAAMNAAJjZW10dyl7KX8pgilyAADgNdjI3HQAbQDuAM4AaQDsAAYpYQByAOYAVw0AAWFyiimOKXIA5qAGJhESAAFhbpIpoylpImdodAAAAWVwmSmgKXAAcwBpAGwAbwDuANkXaADpAKAkcwCvYIACYmNtbnAArin8KY4NJSooKgCkgiJFZGVtbnByc7wpvinCKcgpzCnUKdgp3CkAoMUqbwB0AACgvSpkoIYibwB0AACgwyr1IWx0AKDBKgABRWXQKdIpAKDLKgCgiiLsIXVzAKC/KuEhcnIAoHkpgAFlaXUA4inxKfQpdAAAoYIiZW7oKewpcQDxoIYivSllAHEA8aCKItEpbQAAoMcqAAFicPgp+ikAoNUqAKDTKmMAgKJ7ImFjZW5zAAcqDSoUKhYqRihwAHAAcgBvAPgAIyh1AHIAbAB5AGUA8QCDDfEAfA2AAWFlcwAcKiIqPShwAHAAcgBvAPgAPChxAPEAOShnAACgaiYApoMiMTIzRWRlaGxtbnBzPCo/KkIqRSpHKlIqWCpjKmcqaypzKncqO4C5ALlAO4CyALJAO4CzALNAAKDGKgABb3NLKk4qdAAAoL4qdQBiAACg2CpkoIcibwB0AACgxCpzAAABb3VdKmAqbAAAoMknYgAAoNcq4SFycgCgeyn1IWx0AKDCKgABRWVvKnEqAKDMKgCgiyLsIXVzAKDAKoABZWl1AH0qjCqPKnQAAKGDImVugyqHKnEA8aCHIkYqZQBxAPGgiyJwKm0AAKDIKgABYnCTKpUqAKDUKgCg1iqAAUFhbgCdKqEqrCpyAHIAAKDZIXIAAAFocqYqqCrrAJUab6CZIfcAxQf3IWFyAKAqKWwAaQBnADuA3wDfQOELzyrZKtwq6SrsKvEqAAD1KjQrAAAAAAAAAAAAAEwrbCsAAHErvSsAAAAAAADRK3IC1CoAAAAA2CrnIWV0AKAWI8RjcgDrAOUKgAFhZXkA4SrkKucq8iFvbmVh5CFpbGNhQmRvAPQAIg5sInJlYwAAoBUjcgAA4DXYMd0AAmVpa2/7KhIrKCsuK/IBACsAAAkrZQAAATRm6g0EK28AcgDlAOsNYQBzorgDECsAAAAAEit5AG0A0WMAAWNuFislK2sAAAFhcxsrIStwAHAAcgBvAPgAFw5pAG0AAKA8InMA8AD9DQABYXMsKyEr8AAXDnIAbgA7gP4A/kDsATgrOyswG2QA5QBnAmUAcwCAgdcAO2JkAEMrRCtJK9dAYaCgInIAAKAxKgCgMCqAAWVwcwBRK1MraSvhAAkh4qKkIlsrXysAAAAAYytvAHQAAKA2I2kAcgAAoPEqb+A12GXdcgBrAACg2irhAHgociJpbWUAAKA0IIABYWlwAHYreSu3K2QA5QC+DYADYWRlbXBzdACFK6MrmiunK6wrsCuzK24iZ2xlAACitSVkbHFykCuUK5ornCvvIXduAKC/JeUhZnRloMMl8QACBwCgXCJpImdodABloLkl8QBdDG8AdAAAoOwlaSJudXMAAKA6KuwhdXMAoDkqYgAAoM0p6SFtZQCgOyrlInppdW0AoOIjgAFjaHQAwivKK80rAAFyecYrySsA4DXYydxGZGMAeQBbZPIhb2tnYQABaW/UK9creAD0ANERaCJlYWQAAAFsct4r5ytlAGYAdABhAHIAcgBvAPcAXQbpJGdodGFycm93AKCgIQAJQUhhYmNkZmdobG1vcHJzdHV3CiwNLBEsHSwnLDEsQCxLLFIsYix6LIQsjyzLLOgs7Sz/LAotcgDyAAkDYQByAACgYykAAWNyFSwbLHUAdABlADuA+gD6QPIACQ1yAOMBIywAACUseQBeZHYAZQBtYQABaXkrLDAscgBjADuA+wD7QENkgAFhYmgANyw6LD0scgDyANEO7CFhY3FhYQDyAOAOAAFpckQsSCzzIWh0AKB+KQDgNdgy3XIAYQB2AGUAO4D5APlAYQFWLF8scgAAAWxyWixcLACgvyEAoL4hbABrAACggCUAAWN0Zix2LG8CbCwAAAAAcyxyAG4AZaAcI3IAAKAcI28AcAAAoA8jcgBpAACg+CUAAWFsfiyBLGMAcgBrYTuAqACoQAABZ3CILIssbwBuAHNhZgAA4DXYZt0AA2FkaGxzdZksniynLLgsuyzFLHIAcgBvAPcACQ1vAHcAbgBhAHIAcgBvAPcA2A5hI3Jwb29uAAABbHKvLLMsZQBmAPQAWyxpAGcAaAD0AF0sdQDzAKYOaQAAocUDaGzBLMIs0mNvAG4AxWPwI2Fycm93cwCgyCGAAWNpdADRLOEs5CxvAtcsAAAAAN4scgBuAGWgHSNyAACgHSNvAHAAAKAOI24AZwBvYXIAaQAAoPklYwByAADgNdjK3IABZGlyAPMs9yz6LG8AdAAAoPAi7CFkZWlhaQBmoLUlAKC0JQABYW0DLQYtcgDyAMosbAA7gPwA/EDhIm5nbGUAoKcpgAdBQkRhY2RlZmxub3Byc3oAJy0qLTAtNC2bLZ0toS2/LcMtxy3TLdgt3C3gLfwtcgDyABADYQByAHag6CoAoOkqYQBzAOgA/gIAAW5yOC08LechcnQAoJwpgANla25wcnN0AJkpSC1NLVQtXi1iLYItYQBwAHAA4QAaHG8AdABoAGkAbgDnAKEXgAFoaXIAoSmzJFotbwBwAPQAdCVooJUh7wD4JgABaXVmLWotZwBtAOEAuygAAWJwbi14LXMjZXRuZXEAceCKIgD+AODLKgD+cyNldG5lcQBx4IsiAP4A4MwqAP4AAWhyhi2KLWUAdADhABIraSNhbmdsZQAAAWxyki2WLeUhZnQAoLIiaSJnaHQAAKCzInkAMmThIXNoAKCiIoABZWxyAKcttC24LWKiKCKuLQAAAACyLWEAcgAAoLsicQAAoFoi7CFpcACg7iIAAWJ0vC1eD2EA8gBfD3IAAOA12DPddAByAOkAlS1zAHUAAAFicM0t0C0A4IIi0iAA4IMi0iBwAGYAAOA12GfdcgBvAPAAWQt0AHIA6QCaLQABY3XkLegtcgAA4DXYy9wAAWJw7C30LW4AAAFFZXUt8S0A4IoiAP5uAAABRWV/LfktAOCLIgD+6SJnemFnAKCaKYADY2Vmb3BycwANLhAuJS4pLiMuLi40LukhcmN1YQABZGkULiEuAAFiZxguHC5hAHIAAKBfKmUAcaAnIgCgWSLlIXJwAKAYIXIAAOA12DTdcABmAADgNdho3WWgQCJhAHQA6ABqD2MAcgAA4DXYzNzjCuQRUC4AAFQuAABYLmIuAAAAAGMubS5wLnQuAAAAAIguki4AAJouJxIqEnQAcgDpAB0ScgAA4DXYNd0AAUFhWy5eLnIA8gDnAnIA8gCTB75jAAFBYWYuaS5yAPIA4AJyAPIAjAdhAPAAeh5pAHMAAKD7IoABZHB0APgReS6DLgABZmx9LoAuAOA12GnddQDzAP8RaQBtAOUABBIAAUFhiy6OLnIA8gDuAnIA8gCaBwABY3GVLgoScgAA4DXYzdwAAXB0nS6hLmwAdQDzACUScgDpACASAARhY2VmaW9zdbEuvC7ELsguzC7PLtQu2S5jAAABdXm2LrsudABlADuA/QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D/AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg")
8},40498:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xmlDecodeTree=void 0;let n=r(88810);t.xmlDecodeTree=(0,n.decodeBase64)("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg")},65231:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.BinTrieFlags=void 0,(n=r||(t.BinTrieFlags=r={}))[n.VALUE_LENGTH=49152]="VALUE_LENGTH",n[n.FLAG13=8192]="FLAG13",n[n.BRANCH_LENGTH=8064]="BRANCH_LENGTH",n[n.JUMP_TABLE=127]="JUMP_TABLE"},88810:function(e,t,r){"use strict";var n=r(3786).lW;Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBase64=function(e){let t="function"==typeof atob?atob(e):"function"==typeof n.from?n.from(e,"base64").toString("binary"):new n(e,"base64").toString("binary"),r=-2&t.length,i=new Uint16Array(r/2);for(let e=0,n=0;e<r;e+=2){let r=t.charCodeAt(e),a=t.charCodeAt(e+1);i[n++]=r|a<<8}return i}},31168:function(e,t,r){"use strict";var n,i=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]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(n=function(e){return(n=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),o=0;o<r.length;o++)"default"!==r[o]&&i(t,e,r[o]);return a(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;let s=o(r(33818)),l=r(55835),u=new Set(["input","option","optgroup","select","button","datalist","textarea"]),c=new Set(["p"]),d=new Set(["thead","tbody"]),f=new Set(["dd","dt"]),h=new Set(["rt","rp"]),p=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",c],["h1",c],["h2",c],["h3",c],["h4",c],["h5",c],["h6",c],["select",u],["input",u],["output",u],["button",u],["datalist",u],["textarea",u],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",f],["dt",f],["address",c],["article",c],["aside",c],["blockquote",c],["details",c],["div",c],["dl",c],["fieldset",c],["figcaption",c],["figure",c],["footer",c],["form",c],["header",c],["hr",c],["main",c],["nav",c],["ol",c],["pre",c],["section",c],["table",c],["ul",c],["rt",h],["rp",h],["tbody",d],["tfoot",d]]),g=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),m=new Set(["math","svg"]),A=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),y=/\s|\//;class v{constructor(e,t={}){var r,n,i,a,o,l;this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=null!==(r=t.lowerCaseTags)&&void 0!==r?r:this.htmlMode,this.lowerCaseAttributeNames=null!==(n=t.lowerCaseAttributeNames)&&void 0!==n?n:this.htmlMode,this.recognizeSelfClosing=null!==(i=t.recognizeSelfClosing)&&void 0!==i?i:!this.htmlMode,this.tokenizer=new(null!==(a=t.Tokenizer)&&void 0!==a?a:s.default)(this.options,this),this.foreignContext=[!this.htmlMode],null===(l=(o=this.cbs).onparserinit)||void 0===l||l.call(o,this)}ontext(e,t){var r,n;let i=this.getSlice(e,t);this.endIndex=t-1,null===(n=(r=this.cbs).ontext)||void 0===n||n.call(r,i),this.startIndex=t}ontextentity(e,t){var r,n;this.endIndex=t-1,null===(n=(r=this.cbs).ontext)||void 0===n||n.call(r,(0,l.fromCodePoint)(e)),this.startIndex=t}isVoidElement(e){return this.htmlMode&&g.has(e)}onopentagname(e,t){this.endIndex=t;let r=this.getSlice(e,t);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)}emitOpenTag(e){var t,r,n,i;this.openTagStart=this.startIndex,this.tagname=e;let a=this.htmlMode&&p.get(e);if(a)for(;this.stack.length>0&&a.has(this.stack[0]);){let e=this.stack.shift();null===(r=(t=this.cbs).onclosetag)||void 0===r||r.call(t,e,!0)}!this.isVoidElement(e)&&(this.stack.unshift(e),this.htmlMode&&(m.has(e)?this.foreignContext.unshift(!0):A.has(e)&&this.foreignContext.unshift(!1))),null===(i=(n=this.cbs).onopentagname)||void 0===i||i.call(n,e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){var t,r;this.startIndex=this.openTagStart,this.attribs&&(null===(r=(t=this.cbs).onopentag)||void 0===r||r.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){var r,n,i,a,o,s,l,u;this.endIndex=t;
8let c=this.getSlice(e,t);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),this.htmlMode&&(m.has(c)||A.has(c))&&this.foreignContext.shift(),this.isVoidElement(c))this.htmlMode&&"br"===c&&(null===(a=(i=this.cbs).onopentagname)||void 0===a||a.call(i,"br"),null===(s=(o=this.cbs).onopentag)||void 0===s||s.call(o,"br",{},!0),null===(u=(l=this.cbs).onclosetag)||void 0===u||u.call(l,"br",!1));else{let e=this.stack.indexOf(c);if(-1!==e)for(let t=0;t<=e;t++){let i=this.stack.shift();null===(n=(r=this.cbs).onclosetag)||void 0===n||n.call(r,i,t!==e)}else this.htmlMode&&"p"===c&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}closeCurrentTag(e){var t,r;let n=this.tagname;this.endOpenTag(e),this.stack[0]===n&&(null===(r=(t=this.cbs).onclosetag)||void 0===r||r.call(t,n,!e),this.stack.shift())}onattribname(e,t){this.startIndex=e;let r=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=(0,l.fromCodePoint)(e)}onattribend(e,t){var r,n;this.endIndex=t,null===(n=(r=this.cbs).onattribute)||void 0===n||n.call(r,this.attribname,this.attribvalue,e===s.QuoteType.Double?'"':e===s.QuoteType.Single?"'":e===s.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(e){let t=e.search(y),r=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r}ondeclaration(e,t){this.endIndex=t;let r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.getInstructionName(r);this.cbs.onprocessinginstruction(`!${e}`,`!${r}`)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;let r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.getInstructionName(r);this.cbs.onprocessinginstruction(`?${e}`,`?${r}`)}this.startIndex=t+1}oncomment(e,t,r){var n,i,a,o;this.endIndex=t,null===(i=(n=this.cbs).oncomment)||void 0===i||i.call(n,this.getSlice(e,t-r)),null===(o=(a=this.cbs).oncommentend)||void 0===o||o.call(a),this.startIndex=t+1}oncdata(e,t,r){var n,i,a,o,s,l,u,c,d,f;this.endIndex=t;let h=this.getSlice(e,t-r);!this.htmlMode||this.options.recognizeCDATA?(null===(i=(n=this.cbs).oncdatastart)||void 0===i||i.call(n),null===(o=(a=this.cbs).ontext)||void 0===o||o.call(a,h),null===(l=(s=this.cbs).oncdataend)||void 0===l||l.call(s)):(null===(c=(u=this.cbs).oncomment)||void 0===c||c.call(u,`[CDATA[${h}]]`),null===(f=(d=this.cbs).oncommentend)||void 0===f||f.call(d)),this.startIndex=t+1}onend(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let e=0;e<this.stack.length;e++)this.cbs.onclosetag(this.stack[e],!0)}null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)}reset(){var e,t,r,n;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(n=(r=this.cbs).onparserinit)||void 0===n||n.call(r,this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(!this.htmlMode),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let r=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,t-this.bufferOffset);return r}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){var t,r;if(this.ended){null===(r=(t=this.cbs).onerror)||void 0===r||r.call(t,Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)}end(e){var t,r;if(this.ended){null===(r=(t=this.cbs).onerror)||void 0===r||r.call(t,Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(e){this.write(e)}done(e){this.end(e)}}t.Parser=v},33818:function(e,t,r){"use strict";var n,i,a,o,s,l;
8Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;let u=r(55835);function c(e){return e===n.Space||e===n.NewLine||e===n.Tab||e===n.FormFeed||e===n.CarriageReturn}function d(e){return e===n.Slash||e===n.Gt||c(e)}(o=n||(n={}))[o.Tab=9]="Tab",o[o.NewLine=10]="NewLine",o[o.FormFeed=12]="FormFeed",o[o.CarriageReturn=13]="CarriageReturn",o[o.Space=32]="Space",o[o.ExclamationMark=33]="ExclamationMark",o[o.Number=35]="Number",o[o.Amp=38]="Amp",o[o.SingleQuote=39]="SingleQuote",o[o.DoubleQuote=34]="DoubleQuote",o[o.Dash=45]="Dash",o[o.Slash=47]="Slash",o[o.Zero=48]="Zero",o[o.Nine=57]="Nine",o[o.Semi=59]="Semi",o[o.Lt=60]="Lt",o[o.Eq=61]="Eq",o[o.Gt=62]="Gt",o[o.Questionmark=63]="Questionmark",o[o.UpperA=65]="UpperA",o[o.LowerA=97]="LowerA",o[o.UpperF=70]="UpperF",o[o.LowerF=102]="LowerF",o[o.UpperZ=90]="UpperZ",o[o.LowerZ=122]="LowerZ",o[o.LowerX=120]="LowerX",o[o.OpeningSquareBracket=91]="OpeningSquareBracket",(s=i||(i={}))[s.Text=1]="Text",s[s.BeforeTagName=2]="BeforeTagName",s[s.InTagName=3]="InTagName",s[s.InSelfClosingTag=4]="InSelfClosingTag",s[s.BeforeClosingTagName=5]="BeforeClosingTagName",s[s.InClosingTagName=6]="InClosingTagName",s[s.AfterClosingTagName=7]="AfterClosingTagName",s[s.BeforeAttributeName=8]="BeforeAttributeName",s[s.InAttributeName=9]="InAttributeName",s[s.AfterAttributeName=10]="AfterAttributeName",s[s.BeforeAttributeValue=11]="BeforeAttributeValue",s[s.InAttributeValueDq=12]="InAttributeValueDq",s[s.InAttributeValueSq=13]="InAttributeValueSq",s[s.InAttributeValueNq=14]="InAttributeValueNq",s[s.BeforeDeclaration=15]="BeforeDeclaration",s[s.InDeclaration=16]="InDeclaration",s[s.InProcessingInstruction=17]="InProcessingInstruction",s[s.BeforeComment=18]="BeforeComment",s[s.CDATASequence=19]="CDATASequence",s[s.InSpecialComment=20]="InSpecialComment",s[s.InCommentLike=21]="InCommentLike",s[s.BeforeSpecialS=22]="BeforeSpecialS",s[s.BeforeSpecialT=23]="BeforeSpecialT",s[s.SpecialStartSequence=24]="SpecialStartSequence",s[s.InSpecialTag=25]="InSpecialTag",s[s.InEntity=26]="InEntity",(l=a||(t.QuoteType=a={}))[l.NoValue=0]="NoValue",l[l.Unquoted=1]="Unquoted",l[l.Single=2]="Single",l[l.Double=3]="Double";let f={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97]),XmpEnd:new Uint8Array([60,47,120,109,112])};class h{constructor({xmlMode:e=!1,decodeEntities:t=!0},r){this.cbs=r,this.state=i.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=i.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=e,this.decodeEntities=t,this.entityDecoder=new u.EntityDecoder(e?u.xmlDecodeTree:u.htmlDecodeTree,(e,t)=>this.emitCodePoint(e,t))}reset(){this.state=i.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=i.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(e){e===n.Lt||!this.decodeEntities&&this.fastForwardTo(n.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=i.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===n.Amp&&this.startEntity()}stateSpecialStartSequence(e){let t=this.sequenceIndex===this.currentSequence.length;if(t?d(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t){this.sequenceIndex++;return}}else this.isSpecial=!1;this.sequenceIndex=0,this.state=i.InTagName,this.stateInTagName(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(e===n.Gt||c(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart<t){let e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}this.isSpecial=!1,this.sectionStart=t+2,this.stateInClosingTagName(e);return}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===f.TitleEnd?this.decodeEntities&&e===n.Amp&&this.startEntity():this.fastForwardTo(n.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===n.Lt)}stateCDATASequence(e){e===f.Cdata[this.sequenceIndex]?++this.sequenceIndex===f.Cdata.length&&(this.state=i.InCommentLike,this.currentSequence=f.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=i.InDeclaration,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===f.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=i.Text):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!d(e):e>=n.LowerA&&e<=n.LowerZ||e>=n.UpperA&&e<=n.UpperZ}startSpecial(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=i.SpecialStartSequence}stateBeforeTagName(e){if(e===n.ExclamationMark)this.state=i.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===n.Questionmark)this.state=i.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){let t=32|e;this.sectionStart=this.index,this.xmlMode?this.state=i.InTagName:t===f.ScriptEnd[2]?this.state=i.BeforeSpecialS:t===f.TitleEnd[2]||t===f.XmpEnd[2]?this.state=i.BeforeSpecialT:this.state=i.InTagName}else e===n.Slash?this.state=i.BeforeClosingTagName:(this.state=i.Text,this.stateText(e))}stateInTagName(e){d(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){c(e)||(e===n.Gt?this.state=i.Text:(this.state=this.isTagStartChar(e)?i.InClosingTagName:i.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(e){(e===n.Gt||c(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===n.Gt||this.fastForwardTo(n.Gt))&&(this.state=i.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===n.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=i.InSpecialTag,this.sequenceIndex=0):this.state=i.Text,this.sectionStart=this.index+1):e===n.Slash?this.state=i.InSelfClosingTag:c(e)||(this.state=i.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===n.Gt?(this.cbs.onselfclosingtag(this.index),this.state=i.Text,this.sectionStart=this.index+1,this.isSpecial=!1):c(e)||(this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===n.Eq||d(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=i.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===n.Eq?this.state=i.BeforeAttributeValue:e===n.Slash||e===n.Gt?(this.cbs.onattribend(a.NoValue,this.sectionStart),this.sectionStart=-1,this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e)):c(e)||(this.cbs.onattribend(a.NoValue,this.sectionStart),this.state=i.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===n.DoubleQuote?(this.state=i.InAttributeValueDq,this.sectionStart=this.index+1):e===n.SingleQuote?(this.state=i.InAttributeValueSq,this.sectionStart=this.index+1):c(e)||(this.sectionStart=this.index,this.state=i.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===n.DoubleQuote?a.Double:a.Single,this.index+1),this.state=i.BeforeAttributeName):this.decodeEntities&&e===n.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,n.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,n.SingleQuote)}stateInAttributeValueNoQuotes(e){c(e)||e===n.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(a.Unquoted,this.index),this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===n.Amp&&this.startEntity()}stateBeforeDeclaration(e){e===n.OpeningSquareBracket?(this.state=i.CDATASequence,this.sequenceIndex=0):this.state=e===n.Dash?i.BeforeComment:i.InDeclaration}stateInDeclaration(e){(e===n.Gt||this.fastForwardTo(n.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=i.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===n.Gt||this.fastForwardTo(n.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=i.Text,this.sectionStart=this.index+1)}stateBeforeComment(e){e===n.Dash?(this.state=i.InCommentLike,this.currentSequence=f.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=i.InDeclaration}stateInSpecialComment(e){(e===n.Gt||this.fastForwardTo(n.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=i.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){let t=32|e;t===f.ScriptEnd[3]?this.startSpecial(f.ScriptEnd,4):t===f.StyleEnd[3]?this.startSpecial(f.StyleEnd,4):(this.state=i.InTagName,this.stateInTagName(e))}stateBeforeSpecialT(e){switch(32|e){case f.TitleEnd[3]:this.startSpecial(f.TitleEnd,4);break;case f.TextareaEnd[3]:this.startSpecial(f.TextareaEnd,4);break;case f.XmpEnd[3]:this.startSpecial(f.XmpEnd,4);break;default:this.state=i.InTagName,this.stateInTagName(e)}}startEntity(){this.baseState=this.state,this.state=i.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?u.DecodingMode.Strict:this.baseState===i.Text||this.baseState===i.InSpecialTag?u.DecodingMode.Legacy:u.DecodingMode.Attribute)}stateInEntity(){let e=this.index-this.offset,t=this.entityDecoder.write(this.buffer,e);if(t>=0)this.state=this.baseState,0===t&&(this.index-=1);else{if(e<this.buffer.length&&this.buffer.charCodeAt(e)===n.Amp){this.state=this.baseState,this.index-=1;return}this.index=this.offset+this.buffer.length-1}}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===i.Text||this.state===i.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===i.InAttributeValueDq||this.state===i.InAttributeValueSq||this.state===i.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case i.Text:this.stateText(e);break;case i.SpecialStartSequence:this.stateSpecialStartSequence(e);break;case i.InSpecialTag:this.stateInSpecialTag(e);break;case i.CDATASequence:this.stateCDATASequence(e);break;case i.InAttributeValueDq:this.stateInAttributeValueDoubleQuotes(e);break;case i.InAttributeName:this.stateInAttributeName(e);break;case i.InCommentLike:this.stateInCommentLike(e);break;case i.InSpecialComment:this.stateInSpecialComment(e);break;case i.BeforeAttributeName:this.stateBeforeAttributeName(e);break;case i.InTagName:this.stateInTagName(e);break;case i.InClosingTagName:this.stateInClosingTagName(e);break;case i.BeforeTagName:this.stateBeforeTagName(e);break;case i.AfterAttributeName:this.stateAfterAttributeName(e);break;case i.InAttributeValueSq:this.stateInAttributeValueSingleQuotes(e);break;case i.BeforeAttributeValue:this.stateBeforeAttributeValue(e);break;case i.BeforeClosingTagName:this.stateBeforeClosingTagName(e);break;case i.AfterClosingTagName:this.stateAfterClosingTagName(e);break;case i.BeforeSpecialS:this.stateBeforeSpecialS(e);break;case i.BeforeSpecialT:this.stateBeforeSpecialT(e);break;case i.InAttributeValueNq:this.stateInAttributeValueNoQuotes(e);break;case i.InSelfClosingTag:this.stateInSelfClosingTag(e);break;case i.InDeclaration:this.stateInDeclaration(e);break;case i.BeforeDeclaration:this.stateBeforeDeclaration(e);break;case i.BeforeComment:this.stateBeforeComment(e);break;case i.InProcessingInstruction:this.stateInProcessingInstruction(e);break;case i.InEntity:this.stateInEntity()}this.index++}this.cleanup()}finish(){this.state===i.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let e=this.buffer.length+this.offset;this.sectionStart>=e||(this.state===i.InCommentLike?this.currentSequence===f.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===i.InTagName||this.state===i.BeforeAttributeName||this.state===i.BeforeAttributeValue||this.state===i.AfterAttributeName||this.state===i.InAttributeName||this.state===i.InAttributeValueSq||this.state===i.InAttributeValueDq||this.state===i.InAttributeValueNq||this.state===i.InClosingTagName||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){this.baseState!==i.Text&&this.baseState!==i.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.onattribentity(e)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.ontextentity(e,this.sectionStart))}}t.default=h},48548:function(e,t,r){"use strict";var n,i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);
8(!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]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(n=function(e){return(n=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),o=0;o<r.length;o++)"default"!==r[o]&&i(t,e,r[o]);return a(t,e),t}),s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=t.getFeed=t.ElementType=t.QuoteType=t.Tokenizer=t.DefaultHandler=t.DomHandler=t.Parser=void 0,t.parseDocument=f,t.parseDOM=h,t.createDocumentStream=function(e,t,r){let n=new c.DomHandler(t=>e(t,n.root),t,r);return new l.Parser(n,t)},t.createDomStream=function(e,t,r){let n=new c.DomHandler(e,t,r);return new l.Parser(n,t)},t.parseFeed=function(e,t=A){return(0,g.getFeed)(h(e,t))};let l=r(31168);var u=r(31168);Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return u.Parser}});let c=r(38992);var d=r(38992);function f(e,t){let r=new c.DomHandler(void 0,t);return new l.Parser(r,t).end(e),r.root}function h(e,t){return f(e,t).children}Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return d.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return d.DomHandler}});var p=r(33818);Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return s(p).default}}),Object.defineProperty(t,"QuoteType",{enumerable:!0,get:function(){return p.QuoteType}}),t.ElementType=o(r(33070));let g=r(73153);var m=r(73153);Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return m.getFeed}});let A={xmlMode:!0};t.DomUtils=o(r(73153))},55248:function(e){e.exports={nanoid:(e=21)=>{let t="",r=0|e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let n="",i=0|r;for(;i--;)n+=e[Math.random()*e.length|0];return n}}},27953:function(e,t,r){"use strict";let n=r(74784);e.exports=c;let i=function(){function e(e){return void 0!==e&&e}try{if("undefined"!=typeof globalThis)return globalThis;return Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(t){return e(self)||e(window)||e(this)||{}}}().console||{};function a(e,t){return"silent"===e?1/0:t.levels.values[e]}let o=Symbol("pino.logFuncs"),s=Symbol("pino.hierarchy"),l={error:"log",fatal:"error",warn:"error",info:"log",debug:"log",trace:"log"};function u(e,t){let r={logger:t,parent:e[s]};t[s]=r}function c(e){var t,r;(e=e||{}).browser=e.browser||{};let n=e.browser.transmit;if(n&&"function"!=typeof n.send)throw Error("pino: transmit option must have a send function");let s=e.browser.write||i;e.browser.write&&(e.browser.asObject=!0);let p=e.serializers||{},g=Array.isArray(t=e.browser.serialize)?t.filter(function(e){return"!stdSerializers.err"!==e}):!0===t&&Object.keys(p),m=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(m=!1);let b=Object.keys(e.customLevels||{}),w=["error","fatal","warn","info","debug","trace"].concat(b);"function"==typeof s&&w.forEach(function(e){s[e]=s}),(!1===e.enabled||e.browser.disabled)&&(e.level="silent");let S=e.level||"info",I=Object.create(s);I.log||(I.log=A),function(e,t,r){let n={};t.forEach(e=>{n[e]=r[e]?r[e]:i[e]||i[l[e]||"log"]||A}),e[o]=n}(I,w,s),u({},I),Object.defineProperty(I,"levelVal",{get:function(){return a(this.level,this)}}),Object.defineProperty(I,"level",{get:function(){return this._level},set:function(e){if("silent"!==e&&!this.levels.values[e])throw Error("unknown level "+e);this._level=e,d(this,E,I,"error"),d(this,E,I,"fatal"),d(this,E,I,"warn"),d(this,E,I,"info"),d(this,E,I,"debug"),d(this,E,I,"trace"),b.forEach(e
8=>{d(this,E,I,e)})}});let E={transmit:n,serialize:g,asObject:e.browser.asObject,asObjectBindingsOnly:e.browser.asObjectBindingsOnly,formatters:e.browser.formatters,levels:w,timestamp:"function"==typeof(r=e).timestamp?r.timestamp:!1===r.timestamp?y:v,messageKey:e.messageKey||"msg",onChild:e.onChild||A};function C(t,r,i){if(!r)throw Error("missing bindings for child Pino");i=i||{},g&&r.serializers&&(i.serializers=r.serializers);let a=i.serializers;if(g&&a){var o=Object.assign({},p,a),s=!0===e.browser.serialize?Object.keys(o):g;delete r.serializers,f([r],s,o,this._stdErrSerialize)}function l(e){this._childLevel=(0|e._childLevel)+1,this.bindings=r,o&&(this.serializers=o,this._serialize=s),n&&(this._logEvent=h([].concat(e._logEvent.bindings,r)))}l.prototype=this;let c=new l(this);return u(this,c),c.child=function(...e){return C.call(this,t,...e)},c.level=i.level||this.level,t.onChild(c),c}return I.levels=function(e){let t=e.customLevels||{};return{values:Object.assign({},c.levels.values,t),labels:Object.assign({},c.levels.labels,function(e){let t={};return Object.keys(e).forEach(function(r){t[e[r]]=r}),t}(t))}}(e),I.level=S,I.isLevelEnabled=function(e){return!!this.levels.values[e]&&this.levels.values[e]>=this.levels.values[this.level]},I.setMaxListeners=I.getMaxListeners=I.emit=I.addListener=I.on=I.prependListener=I.once=I.prependOnceListener=I.removeListener=I.removeAllListeners=I.listeners=I.listenerCount=I.eventNames=I.write=I.flush=A,I.serializers=p,I._serialize=g,I._stdErrSerialize=m,I.child=function(...e){return C.call(this,E,...e)},n&&(I._logEvent=h()),I}function d(e,t,r,l){var u,c;if(Object.defineProperty(e,l,{value:a(e.level,r)>a(l,r)?A:r[o][l],writable:!0,enumerable:!0,configurable:!0}),e[l]===A){if(!t.transmit)return;let n=a(t.transmit.level||e.level,r);if(a(l,r)<n)return}e[l]=(u=e[o][l],function(){let o=t.timestamp(),s=Array(arguments.length),c=Object.getPrototypeOf&&Object.getPrototypeOf(this)===i?i:this;for(var d=0;d<s.length;d++)s[d]=arguments[d];var p=!1;if(t.serialize&&(f(s,this._serialize,this.serializers,this._stdErrSerialize),p=!0),t.asObject||t.formatters?u.call(c,...function(e,t,r,i,a){let{level:o,log:s=e=>e}=a.formatters||{},l=r.slice(),u=l[0],c={},d=(0|e._childLevel)+1;if(d<1&&(d=1),i&&(c.time=i),o?Object.assign(c,o(t,e.levels.values[t])):c.level=e.levels.values[t],a.asObjectBindingsOnly){if(null!==u&&"object"==typeof u)for(;d--&&"object"==typeof l[0];)Object.assign(c,l.shift());return[s(c),...l]}if(null!==u&&"object"==typeof u){for(;d--&&"object"==typeof l[0];)Object.assign(c,l.shift());u=l.length?n(l.shift(),l):void 0}else"string"==typeof u&&(u=n(l.shift(),l));return void 0!==u&&(c[a.messageKey]=u),[s(c)]}(this,l,s,o,t)):u.apply(c,s),t.transmit){let n=t.transmit.level||e._level,i=a(n,r),u=a(l,r);if(u<i)return;(function(e,t,r,n=!1){let i=t.send,a=t.ts,o=t.methodLevel,s=t.methodValue,l=t.val,u=e._logEvent.bindings;n||f(r,e._serialize||Object.keys(e.serializers),e.serializers,void 0===e._stdErrSerialize||e._stdErrSerialize),e._logEvent.ts=a,e._logEvent.messages=r.filter(function(e){return -1===u.indexOf(e)}),e._logEvent.level.label=o,e._logEvent.level.value=s,i(o,e._logEvent,l),e._logEvent=h(u)})(this,{ts:o,methodLevel:l,methodValue:u,transmitLevel:n,transmitValue:r.levels.values[t.transmit.level||e._level],send:t.transmit.send,val:a(e._level,r)},s,p)}});let d=function(e){let t=[];e.bindings&&t.push(e.bindings);let r=e[s];for(;r.parent;)(r=r.parent).logger.bindings&&t.push(r.logger.bindings);return t.reverse()}(e);0!==d.length&&(e[l]=(c=e[l],function(){return c.apply(this,[...d,...arguments])}))}function f(e,t,r,n){for(let i in e)if(n&&e[i]instanceof Error)e[i]=c.stdSerializers.err(e[i]);else if("object"==typeof e[i]&&!Array.isArray(e[i])&&t)for(let n in e[i])t.indexOf(n)>-1&&n in r&&(e[i][n]=r[n](e[i][n]))}function h(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function p(e){let t={type:e.constructor.name,msg:e.message,stack:e.stack};for(let r in e)void 0===t[r]&&(t[r]=e[r]);return t}function g(){return{}}function m(e){return e}function A(){}function y(){return!1}function v(){return Date.now()}c.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},c.stdSerializers={mapHttpRequest:g,mapHttpResponse:g,wrapRequestSerializer:m,wrapResponseSerializer:m,wrapErrorSerializer:m,req:g,res:g,err:p,errWithCause:p},c.stdTimeFunctions=Object.assign({},{nullTime:y,epochTime:v,unixTime:function(){return Math.round(Date.now()/1e3)},isoTime:function(){return new Date(Date.now()).toISOString()}}),e.exports.default=c,e.exports.pino=c},76464:function(e,t,r){"use strict";let n;r.d(t,{As:function(){return D},dq:function(){return aj},VV:function(){return AJ},Lv:function(){return yk},rE:function(){return aq},Om:function(){return bP},me:function(){return bv},Sd:function(){return bb},n2:function(){return aU},q:function(){return bL},Z6:function(){return bj},ff:function(){return b8},us:function(){return gV}
8,oA:function(){return wd},Wg:function(){return wT},W0:function(){return w1},vP:function(){return w6},xV:function(){return w7}});var i,a,o,s,l,u,c,d,f,h,p,g,m,A,y,v,b,w,S,I,E,C,x,k,O,T,R,_,D,N,M,F,P,L={};r.r(L),r.d(L,{JsonPatchError:function(){return ft},_areEquals:function(){return fd},applyOperation:function(){return fo},applyPatch:function(){return fs},applyReducer:function(){return fl},deepClone:function(){return fr},getValueByPointer:function(){return fa},validate:function(){return fc},validator:function(){return fu}});var B={};r.r(B),r.d(B,{compare:function(){return fv},generate:function(){return fA},observe:function(){return fm},unobserve:function(){return fg}});var j=class extends Error{constructor(e){super(e),this.name="SchemaValidationError"}},U=class{constructor(e){this.definition=e}validate(e={},t=""){let r={...this.default,...e},n=[];for(let e in this.definition){let t=this.definition[e].validate(r[e]);t&&n.push(`${e}: ${t}`)}if(n.length)throw new j(` 9 The following properties are invalid: 10 11 ${n.join("\n ")} 12 13 ${t} 14 `);return r}get default(){let e={};for(let t in this.definition){let r=this.definition[t].default;void 0!==r&&(e[t]=r)}return e}},q=class{constructor(e={}){this.baseConfig=e}validate(e){return this.baseConfig.required&&G(e)?"value is required.":null}get default(){return this.baseConfig.default instanceof Function?this.baseConfig.default():this.baseConfig.default}get required(){return!0===this.baseConfig.required}};function Q(e){return void 0===e}function G(e){return Q(e)||null===e}var V=class{value;constructor(e={}){this.value=new q(e)}validate(e){return this.value.validate(e)||(Q(e)||H(e)?null:"value is not a boolean.")}get default(){return this.value.default}get required(){return this.value.required}};function H(e){return"boolean"==typeof e}var K=class{constructor(e={}){this.config=e,this.value=new q(e)}value;validate(e){return this.value.validate(e)||(Q(e)||W(e)?e<this.config.min?`minimum value of ${this.config.min} not respected.`:e>this.config.max?`maximum value of ${this.config.max} not respected.`:null:"value is not a number.")}get default(){return this.value.default}get required(){return this.value.required}};function W(e){return"number"==typeof e&&!Number.isNaN(e)}var Y=/^\d{4}(-\d\d(-\d\d(T\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z)?)?)?)?$/i,Z=class{value;config;constructor(e={}){this.config={emptyAllowed:!0,url:!1,...e},this.value=new q(this.config)}validate(e){let{emptyAllowed:t,url:r,regex:n,constrainTo:i,ISODate:a}=this.config,o=this.value.validate(e);if(o)return o;if(Q(e))return null;if(!z(e))return"value is not a string.";if(!t&&!e.length)return"value is an empty string.";if(r)try{new URL(e)}catch(e){return"value is not a valid URL."}if(n&&!n.test(e))return`value did not match provided regex ${n}`;if(i&&!i.includes(e)){let e=i.join(", ");return`value should be one of: ${e}.`}return a&&!(Y.test(e)&&"Invalid Date"!==new Date(e).toString())?"value is not a valid ISO8601 date string":null}get default(){return this.value.default}get required(){return this.value.required}};function z(e){return"[object String]"===Object.prototype.toString.call(e)}var $=class{config;constructor(e={}){this.config={options:{required:!1},values:{},...e}}validate(e){if(Q(e))return this.config.options.required?"value is required and is currently undefined":null;if(!J(e))return"value is not an object";for(let[t,r]of Object.entries(this.config.values))if(r.required&&G(e[t]))return`value does not contain ${t}`;let t="";for(let[r,n]of Object.entries(this.config.values)){let i=e[r],a=n.validate(i);null!==a&&(t+=` ${a}`)}return""===t?null:t}get default(){}get required(){return!!this.config.options.required}};function J(e){return void 0!==e&&"object"==typeof e}var X=class{constructor(e={}){this.config=e,this.value=new q(this.config)}value;validate(e){if(!G(e)&&!Array.isArray(e))return"value is not an array";let t=this.value.validate(e);if(null!==t)return t;if(G(e))return null;if(void 0!==this.config.max&&e.length>this.config.max)return`value contains more than ${this.config.max}`;if(void 0!==this.config.min&&e.length<this.config.min)return`value contains less than ${this.config.min}`;if(void 0!==this.config.each){let t="";return e.forEach(r=>{this.config.each.required&&G(r)&&(t=`value is null or undefined: ${e.join(",")}`);let n=this.validatePrimitiveValue(r,this.config.each);null!==n&&(t+=` ${n}`)}),""===t?null:t}return null}validatePrimitiveValue(e,t){return H(e)||z(e)?t.validate(e):W(e)?t.validate(e):J(e)?t.validate(e):"value is not a primitive value"}get default(){}get required(){return this.value.required}};function ee(e){return Array.isArray(e)}var et=class{constructor(e){this.config=e,this.value=new q(e)}value;validate(e){let t=this.value.validate(e);return null!==t?t:Q(e)?null:Object.values(this.config.enum).find(t=>t===e)?null:"value is not in enum."}get default(){return this.value.default}get required(){return this.value.required}};let er=(e,t=5)=>e+Math.random().toString(36).substring(2,2+t),en=new Set(["1",1,"yes",!0]);function ei(e){if("object"!=typeof e||!e)return e;try{return JSON.parse(JSON.stringify(e))}catch(t){return e}}function ea(e,t,r={}){let n;return(...i)=>{let a=r.isImmediate&&!n;if(clearTimeout(n),n=setTimeout(()=>{n=void 0,r.isImmediate||e.apply(void 0,i)},t),a)return e.apply(void 0,i)}}function eo(e,t){return t?t.open+e+t.close:e}async function es(e,t){let r;let n=e.getReader();for(;!(r=await n.read()).done;)t(r.value)}function el(){return{data:"",event:"",id:"",retry:void 0}}(i=E||(E={}))[i.NewLine=10]="NewLine",i[i.CarriageReturn=13]="CarriageReturn",
14i[i.Space=32]="Space",i[i.Colon=58]="Colon";let eu="text/event-stream",ec="last-event-id";function ed(){return"undefined"!=typeof window}function ef(e,{signal:t,headers:r,onopen:n,onmessage:i,onclose:a,onerror:o,openWhenHidden:s,fetch:l,...u}){return new Promise((c,d)=>{let f,h;let p={...r};function g(){f?.abort(),document.hidden||b()}p.accept||(p.accept=eu),!s&&ed()&&document.addEventListener("visibilitychange",g);let m=1e3;function A(){ed()&&document.removeEventListener("visibilitychange",g),clearTimeout(h),f?.abort()}t?.addEventListener("abort",()=>{A(),c()});let y=l??fetch,v=n??eh;async function b(){f=AbortController?new AbortController:null;try{var t;let r,n,o,s;let l=await y(e,{...u,headers:p,signal:f?.signal});await v(l),await es(l.body,(t=function(e,t,r){let n=el(),i=new TextDecoder;return function(a,o){if(0===a.length)r?.(n),n=el();else if(o>0){let r=i.decode(a.subarray(0,o)),s=o+(a[o+1]===E.Space?2:1),l=i.decode(a.subarray(s));switch(r){case"data":n.data=n.data?`${n.data} 15${l}`:l;break;case"event":n.event=l;break;case"id":e(n.id=l);break;case"retry":(function(e,t,r){let n=parseInt(e,10);Number.isNaN(n)||r(t.retry=n)})(l,n,t)}}}}(e=>{e?p[ec]=e:delete p[ec]},e=>{m=e},i),s=!1,function(e){void 0===r?(r=e,n=0,o=-1):r=function(e,t){let r=new Uint8Array(e.length+t.length);return r.set(e),r.set(t,e.length),r}(r,e);let i=r.length,a=0;for(;n<i;){s&&(r[n]===E.NewLine&&(a=++n),s=!1);let e=-1;for(;n<i&&-1===e;++n)switch(r[n]){case E.Colon:-1===o&&(o=n-a);break;case E.CarriageReturn:s=!0,e=n;break;case E.NewLine:e=n}if(-1===e)break;t(r.subarray(a,e),o),a=n,o=-1}a===i?r=void 0:0!==a&&(r=r.subarray(a),n-=a)})),a?.(),A(),c()}catch(e){if(!f?.signal?.aborted)try{let t=o?.(e)??m;clearTimeout(h),h=setTimeout(b,t)}catch(e){A(),d(e)}}}b()})}function eh(e){let t=e.headers.get("content-type");if(!t?.startsWith(eu))throw Error(`Expected content-type to be ${eu}, Actual: ${t}`)}class ep{_basePath;_params={};constructor(e){this._basePath=e}addParam(e,t){this._params={...this.params,[e]:t}}get basePath(){return this._basePath}get params(){return this._params}get hasParams(){return Object.entries(this._params).length}get href(){return this.hasParams?`${this.basePath}?${Object.entries(this.params).map(([e,t])=>`${e}=${encodeURIComponent(t)}`).join("&")}`:this.basePath}}let eg=(e,t,r)=>new ep(`${e}/rest/organizations/${t}/machinelearning/streaming/${r}`).href;class em extends Error{}class eA extends Error{payload;constructor(e){super(e.message),this.payload=e}}class ey{timeouts=new Set;add(e){this.timeouts.add(e)}remove(e){clearTimeout(e),this.timeouts.delete(e)}isActive(e){return this.timeouts.has(e)}}class ev{logger;constructor(e){this.logger=e.logger}streamGeneratedAnswer(e,t){let r;let{url:n,organizationId:i,streamId:a,accessToken:o}=e,{write:s,abort:l,close:u,resetAnswer:c}=t,d=new ey;if(!a){this.logger.error("No stream ID found");return}let f=0,h=()=>{r&&!d.isActive(r)&&(g?.abort(),c(),m())},p=()=>{d.remove(r),clearTimeout(r),r=setTimeout(h,5e3),d.add(r)},g=new AbortController,m=()=>ef(eg(n,i,a),{method:"GET",fetch,headers:{Authorization:`Bearer ${o}`,accept:"*/*"},openWhenHidden:!0,signal:g?.signal,async onopen(e){if(!e.ok||"text/event-stream"!==e.headers.get("content-type")){if(e.status>=400&&e.status<500&&429!==e.status)throw new eA({message:"Error opening stream",code:e.status});throw new em}},onmessage:e=>{if(g?.signal.aborted)return;let t=JSON.parse(e.data);if("ERROR"===t.finishReason){d.remove(r),g?.abort(),l({message:t.errorMessage,code:t.statusCode});return}s(t),f=0,"COMPLETED"===t.finishReason?(d.remove(r),u()):p()},onerror:e=>{if(!g?.signal.aborted){if(d.remove(r),e instanceof eA)throw g?.abort(),l(e),e;if(++f>3){this.logger.info("Maximum retry exceeded.");let e={message:"Failed to complete stream.",code:1};throw g?.abort(),l(e),new eA(e)}this.logger.info(`Retrying...(${f}/3)`),c()}}});return m(),g}}var eb=r(42075);Error("Failed to load reducers.");class ew extends Error{constructor(){super(),this.name="UnauthorizedTokenError",this.message="The token being used to perform the request is unauthorized. It may be expired or invalid."}}
15class eS extends Error{statusCode;constructor(e,t){super(),this.name="Disconnected",this.message=`Client could not connect to the following URL: ${e}`,this.statusCode=t??0}}function eI(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e}class eE{static async call(e){let t=function(e){var t;let{url:r,method:n,requestParams:i,contentType:a,accessToken:o,signal:s}=e,l="POST"===e.method||"PUT"===e.method,u=(t=i,"application/x-www-form-urlencoded"===a?"object"==typeof t&&t&&Object.values(t).every(eI)?function(e){let t=[];for(let r in e){let n=encodeURIComponent(r),i=encodeURIComponent(e[r]);t.push(`${n}=${i}`)}return t.join("&")}(t):"":JSON.stringify(t));return{url:r,method:n,headers:{"Content-Type":a,Authorization:`Bearer ${o}`,...e.headers},...l&&{body:u},signal:s}}(e),{logger:r}=e,n=await eE.preprocessRequest(t,e);r.info(n,"Platform request");let{url:i,...a}=n,o=async()=>{let e=await fetch(i,a);if(429===e.status)throw e;return e};try{let e=await (0,eb.backOff)(o,{startingDelay:100,timeMultiple:2,maxDelay:800,numOfAttempts:4,jitter:"full",retry:async e=>{var t;let n=e&&(t=e.status,429===t);return n&&(r.info("Platform retrying request"),await new Promise(e=>setTimeout(e,1e3))),n}});switch(e.status){case 419:case 401:throw r.info("Platform renewing token"),new ew;case 404:throw new eS(i,e.status);default:return r.info({response:e,requestInfo:n},"Platform response"),e}}catch(e){if("Failed to fetch"===e.message)return new eS(i);return e}}static async preprocessRequest(e,t){let{origin:r,preprocessRequest:n,logger:i,requestMetadata:a}=t,{signal:o,...s}=e,l=ei(s);try{let t=await n(e,r,a);return{...e,...t}}catch(e){i.error(e,"Platform request preprocessing failed. Returning default request options.")}return l}}function eC(e,t="prod",r="platform"){let n="platform"===r?"":`.${r}`;return`https://${e}${n}.org${"prod"===t?"":t}.coveo.com`}function ex(e,t="prod"){let r=eC(e,t);return`${r}/rest/search/v2`}let ek=e=>e;function eO(){return{answerSnippet:"",documentId:{contentIdKey:"",contentIdValue:""},question:"",relatedQuestions:[],score:0}}function eT(){return{response:{results:[],searchUid:"",totalCountFiltered:0,facets:[],generateAutomaticFacets:{facets:[]},queryCorrections:[],triggers:[],questionAnswer:eO(),pipeline:"",splitTestRun:"",termsToHighlight:{},phrasesToHighlight:{},extendedResults:{}},duration:0,queryExecuted:"",error:null,automaticallyCorrected:!1,isLoading:!1,results:[],searchResponseId:"",requestId:"",questionAnswer:eO(),extendedResults:{},searchAction:void 0}}function eR(e){let{url:t,accessToken:r,organizationId:n,authentication:i,...a}=e;return a}let e_=e=>{let{response:t}=e;return t.body?eD(e):eN(t)},eD=e=>void 0!==e.body.exception?eM(e):void 0!==e.body.statusCode?e.body:{message:"unknown",statusCode:0,type:"unknown"},eN=e=>{let t=JSON.parse(JSON.stringify(e,Object.getOwnPropertyNames(e)));return{...t,message:`Client side error: ${t.message||""}`,statusCode:400,type:"ClientError"}},eM=e=>({message:e.body.exception.code,statusCode:e.response.status,type:e.body.exception.code});class eF{currentAbortController=null;async enqueue(e,t){let r=this.currentAbortController;this.currentAbortController=new AbortController;let n=this.currentAbortController;r&&(t.warnOnAbort&&t.logger.warn("Cancelling current pending search query"),r.abort());try{return await e(n?.signal??null)}finally{this.currentAbortController===n&&(this.currentAbortController=null)}}}let eP=(e,t,r,n)=>{let i=new ep(`${e.url}${n}`);return i.addParam("organizationId",e.organizationId),e.authentication&&i.addParam("authentication",e.authentication),{accessToken:e.accessToken,method:t,contentType:r,url:i.href,origin:"searchApiFetch"}},eL=(e,t)=>{let r=new ep(`${e.url}${t}`);return r.addParam("access_token",e.accessToken),r.addParam("organizationId",e.organizationId),r.addParam("uniqueId",e.uniqueId),e.authentication&&r.addParam("authentication",e.authentication),void 0!==e.q&&r.addParam("q",e.q),void 0!==e.enableNavigation&&r.addParam("enableNavigation",`${e.enableNavigation}`),void 0!==e.requestedOutputSize&&r.addParam("requestedOutputSize",`${e.requestedOutputSize}`),r.href},eB=async(e,t)=>{let r=await eE.call({...eP(e,"POST","application/x-www-form-urlencoded","/html"),requestParam
15s:eR(e),requestMetadata:{method:"html"},...t});if(r instanceof Error)throw r;let n=((r.headers.get("content-type")||"").split(";").find(e=>-1!==e.indexOf("charset="))||"").split("=")[1]||"UTF-8",i=await r.arrayBuffer(),a=new TextDecoder(n).decode(i);return"string"==typeof a?{success:a}:{error:e_({response:r,body:a})}};function ej(e,t){if(t&&"AbortError"===e.name)return{error:{statusCode:e.code,type:e.name,message:e.message,ignored:!0}};if(e instanceof eS)return{error:{statusCode:e.statusCode,type:e.name,message:e.message}};throw e}class eU{options;constructor(e){this.options=e}async plan(e){let t=await eE.call({...eP(e,"POST","application/json","/plan"),requestParams:eR(e),requestMetadata:{method:"plan"},...this.options});if(t instanceof Error)return ej(t);let r=await t.json();return void 0!==r.preprocessingOutput?{success:r}:{error:e_({response:t,body:r})}}async querySuggest(e){let t=await eE.call({...eP(e,"POST","application/json","/querySuggest"),requestMetadata:{method:"querySuggest"},requestParams:eR(e),...this.options});if(t instanceof Error)return ej(t);let r=await t.json(),n={response:t,body:r};return void 0!==r.completions?{success:(await this.options.postprocessQuerySuggestResponseMiddleware(n)).body}:{error:e_(n)}}apiCallsQueues={unknown:new eF,mainSearch:new eF,facetValues:new eF,foldingCollection:new eF,instantResults:new eF};async search(e,t){let r=t?.origin??"unknown",n=await this.apiCallsQueues[r].enqueue(r=>eE.call({...eP(e,"POST","application/json",""),requestParams:eR(e),requestMetadata:{method:"search",origin:t?.origin},...this.options,signal:r??void 0}),{logger:this.options.logger,warnOnAbort:!t?.disableAbortWarning});if(n instanceof Error)return ej(n,t?.disableAbortWarning);let i=await n.json(),a={response:n,body:i};return eG(i)?(a.body=eV(i),{success:(await this.options.postprocessSearchResponseMiddleware(a)).body}):{error:e_(a)}}async facetSearch(e){let t=await eE.call({...eP(e,"POST","application/json","/facet"),requestParams:eR(e),requestMetadata:{method:"facetSearch"},...this.options});if(t instanceof Error)throw t;let r=await t.json();return(await this.options.postprocessFacetSearchResponseMiddleware({response:t,body:r})).body}async recommendations(e){let t=await eE.call({...eP(e,"POST","application/json",""),requestParams:eR(e),requestMetadata:{method:"recommendations"},...this.options});if(t instanceof Error)throw t;let r=await t.json();if(eG(r)){let e={response:t,body:r};return e.body=eV(r),{success:(await this.options.postprocessSearchResponseMiddleware(e)).body}}return{error:e_({response:t,body:r})}}async html(e){return eB(e,{...this.options})}async fieldDescriptions(e){let t=await eE.call({...eP(e,"GET","application/json","/fields"),requestParams:{},requestMetadata:{method:"fieldDescriptions"},...this.options});if(t instanceof Error)throw t;let r=await t.json();return void 0!==r.fields?{success:r}:{error:e_({response:t,body:r})}}}let eq=e=>void 0!==e.success,eQ=e=>void 0!==e.error;function eG(e){return void 0!==e.results}function eV(e){let t=eO();return G(e.questionAnswer)?e.questionAnswer=t:e.questionAnswer={...t,...e.questionAnswer},e}let eH=e=>e,eK=e=>e,eW=e=>e,eY=new Z({required:!0,emptyAllowed:!1}),eZ=new Z({required:!1,emptyAllowed:!1}),ez=new Z({required:!0,emptyAllowed:!0});new Z({required:!1,emptyAllowed:!0});let e$=new X({each:eY,required:!0}),eJ=new Z({required:!1,emptyAllowed:!1,regex:/^\d+\.\d+\.\d+$/}),eX=new Z({required:!1,emptyAllowed:!1,regex:/^[a-zA-Z0-9_\-.]{1,100}$/});new Z({required:!0,emptyAllowed:!1,regex:/^[a-zA-Z0-9_\-.]{1,100}$/});let e0=({message:e,name:t,stack:r})=>({message:e,name:t,stack:r}),e1=(e,t)=>{if("required"in t)return{payload:new U({value:t}
15).validate({value:e}).value};let r=new $({options:{required:!0},values:t}).validate(e);if(r)throw new j(r);return{payload:e}},e2=(e,t)=>{try{return e1(e,t)}catch(t){return{payload:e,error:e0(t)}}},e3=(e,t,r,n)=>e8(e,t,r,`Check the initialState of ${n}`,"Controller initialization error"),e4=(e,t,r,n)=>e8(e,t,r,`Check the options of ${n}`,"Controller initialization error"),e8=(e,t,r,n,i)=>{try{return t.validate(r,n)}catch(t){throw e.logger.error(t,i),t}};function e5(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var e6="function"==typeof Symbol&&Symbol.observable||"@@observable",e9=()=>Math.random().toString(36).substring(7).split("").join("."),e7={INIT:`@@redux/INIT${e9()}`,REPLACE:`@@redux/REPLACE${e9()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${e9()}`};function te(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function tt(e){let t;let r=Object.keys(e),n={};for(let t=0;t<r.length;t++){let i=r[t];"function"==typeof e[i]&&(n[i]=e[i])}let i=Object.keys(n);try{!function(e){Object.keys(e).forEach(t=>{let r=e[t];if(void 0===r(void 0,{type:e7.INIT}))throw Error(e5(12));if(void 0===r(void 0,{type:e7.PROBE_UNKNOWN_ACTION()}))throw Error(e5(13))})}(n)}catch(e){t=e}return function(e={},r){if(t)throw t;let a=!1,o={};for(let t=0;t<i.length;t++){let s=i[t],l=n[s],u=e[s],c=l(u,r);if(void 0===c)throw r&&r.type,Error(e5(14));o[s]=c,a=a||c!==u}return(a=a||i.length!==Object.keys(e).length)?o:e}}function tr(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function tn(e){return te(e)&&"type"in e&&"string"==typeof e.type}function ti(e){return({dispatch:t,getState:r})=>n=>i=>"function"==typeof i?i(t,r,e):n(i)}var ta=ti(),to=Symbol.for("immer-nothing"),ts=Symbol.for("immer-draftable"),tl=Symbol.for("immer-state");function tu(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var tc=Object.getPrototypeOf;function td(e){return!!e&&!!e[tl]}function tf(e){return!!e&&(tp(e)||Array.isArray(e)||!!e[ts]||!!e.constructor?.[ts]||tb(e)||tw(e))}var th=Object.prototype.constructor.toString();function tp(e){if(!e||"object"!=typeof e)return!1;let t=tc(e);if(null===t)return!0;let r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===th}function tg(e,t){0===tm(e)?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function tm(e){let t=e[tl];return t?t.type_:Array.isArray(e)?1:tb(e)?2:tw(e)?3:0}function tA(e,t){return 2===tm(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ty(e,t){return 2===tm(e)?e.get(t):e[t]}function tv(e,t,r){let n=tm(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function tb(e){return e instanceof Map}function tw(e){return e instanceof Set}function tS(e){return e.copy_||e.base_}function tI(e,t){if(tb(e))return new Map(e);if(tw(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=tp(e);if(!0!==t&&("class_only"!==t||r)){let t=tc(e);return null!==t&&r?{...e}:Object.assign(Object.create(t),e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[tl];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){let i=r[n],a=t[i];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(tc(e),t)}}function tE(e,t=!1){return tx(e)||td(e)||!tf(e)||(tm(e)>1&&Object.defineProperties(e,{set:{value:tC},add:{value:tC},clear:{value:tC},delete:{value:tC}}),Object.freeze(e),t&&Object.values(e).forEach(e=>tE(e,!0))),e}function tC(){tu(2)}function tx(e){return Object.isFrozen(e)}var tk={};function tO(e){let t=tk[e];return t||tu(0,e),t}function tT(e,t){t&&(tO("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function tR(e){t_(e),e.drafts_.forEach(tN),e.drafts_=null}function t_(e){e===C&&(C=e.parent_)}function tD(e){return C={drafts_:[],parent_:C,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function tN(e){let t=e[tl];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function tM(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];return void 0!==e&&e!==r?(r[tl].modified_&&(tR(t),tu(4)),tf(e)&&(e=tF(t,e),t.parent_||tL(t,e)),t.patches_&&tO("Patches").generateReplacementPatches_(r[tl].base_,e,t.patches_,t.inversePatches_)):e=tF(t,r,[]),tR(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==to?e:void 0}function tF(e,t,r){if(tx(t))return t;let n=t[tl];if(!n)return tg(t,(i,a)=>tP(e,n,t,i,a,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return tL(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;let t=n.copy_,i=t,a=!1;3===n.type_&&(i=new Set(t),t.clear(),a=!0),tg(i,(i,o)=>tP(e,n,t,i,o,r,a)),tL(e,t,!1),r&&e.patches_&&tO("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function tP(e,t,r,n,i,a,o){if(td(i)){let o=tF(e,i,a&&t&&3!==t.type_&&!tA(t.assigned_,n)?a.concat(n):void 0);if(tv(r,n,o),!td(o))return;e.canAutoFreeze_=!1}else o&&r.add(i);if(tf(i)&&!tx(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;tF(e,i),(!t||!t.scope_.parent_)&&"symbol"!=typeof n&&(tb(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&tL(e,i)}}function tL(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&tE(t,r)}var tB={get(e,t){if(t===tl)return e;let r=tS(e);if(!tA(r,t))return function(e,t,r){let n=tq(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}(e,r,t);let n=r[t];return e.finalized_||!tf(n)?n:n===tU(e.base_,t)?(tG(e),e.copy_[t]=tV(n,e)):n},has:(e,t)=>t in tS(e),ownKeys:e=>Reflect.ownKeys(tS(e)),set(e,t,r){let n=tq(tS(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=tU(tS(e),t),i=n?.[tl];
15if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||tA(e.base_,t)))return!0;tG(e),tQ(e)}return!!(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==tU(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,tG(e),tQ(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=tS(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){tu(11)},getPrototypeOf:e=>tc(e.base_),setPrototypeOf(){tu(12)}},tj={};function tU(e,t){let r=e[tl];return(r?tS(r):e)[t]}function tq(e,t){if(!(t in e))return;let r=tc(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=tc(r)}}function tQ(e){!e.modified_&&(e.modified_=!0,e.parent_&&tQ(e.parent_))}function tG(e){e.copy_||(e.copy_=tI(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function tV(e,t){let r=tb(e)?tO("MapSet").proxyMap_(e,t):tw(e)?tO("MapSet").proxySet_(e,t):function(e,t){let r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:C,modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},i=n,a=tB;r&&(i=[n],a=tj);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return n.draft_=s,n.revoke_=o,s}(e,t);return(t?t.scope_:C).drafts_.push(r),r}tg(tB,(e,t)=>{tj[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),tj.deleteProperty=function(e,t){return tj.set.call(this,e,t,void 0)},tj.set=function(e,t,r){return tB.set.call(this,e[0],t,r,e[0])};var tH=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,r)=>{let n;if("function"==typeof e&&"function"!=typeof t){let r=t;t=e;let n=this;return function(e=r,...i){return n.produce(e,e=>t.call(this,e,...i))}}if("function"!=typeof t&&tu(6),void 0!==r&&"function"!=typeof r&&tu(7),tf(e)){let i=tD(this),a=tV(e,void 0),o=!0;try{n=t(a),o=!1}finally{o?tR(i):t_(i)}return tT(i,r),tM(n,i)}if(e&&"object"==typeof e)tu(1,e);else{if(void 0===(n=t(e))&&(n=e),n===to&&(n=void 0),this.autoFreeze_&&tE(n,!0),r){let t=[],i=[];tO("Patches").generateReplacementPatches_(e,n,t,i),r(t,i)}return n}},this.produceWithPatches=(e,t)=>{let r,n;return"function"==typeof e?(t,...r)=>this.produceWithPatches(t,t=>e(t,...r)):[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){var t;tf(e)||tu(8),td(e)&&(td(t=e)||tu(10,t),e=function e(t){let r;if(!tf(t)||tx(t))return t;let n=t[tl];if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=tI(t,n.scope_.immer_.useStrictShallowCopy_)}else r=tI(t,!0);return tg(r,(t,n)=>{tv(r,t,e(n))}),n&&(n.finalized_=!1),r}(t));let r=tD(this),n=tV(e,void 0);return n[tl].isManual_=!0,t_(r),n}finishDraft(e,t){let r=e&&e[tl];r&&r.isManual_||tu(9);let{scope_:n}=r;return tT(n,t),tM(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=tO("Patches").applyPatches_;return td(e)?n(e,t):this.produce(e,e=>n(e,t))}},tK=tH.produce,tW=tH.produceWithPatches.bind(tH),tY=tH.applyPatches.bind(tH);r(32608);var tZ="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?tr:tr.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var tz=e=>e&&"function"==typeof e.match;function t$(e,t){function r(...n){if(t){let r=t(...n);if(!r)throw Error(r0(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>tn(t)&&t.type===e,r}var tJ=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function tX(e){return tf(e)?tK(e,()=>{}):e}function t0(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}var t1=()=>function(e){let{thunk:t=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:i=!0}=e??{},a=new tJ;return t&&("boolean"==typeof t?a.push(ta):a.push(ti(t.extraArgument))),a},t2="RTK_autoBatch",t3=()=>e=>({payload:e,meta:{[t2]:!0}}),t4=e=>t=>{setTimeout(t,e)},t8=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),i=!0,a=!1,o=!1,s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:t4(10):"callback"===e.type?e.queueNotification:t4(e.timeout),u=()=>
15{o=!1,a&&(a=!1,s.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){let t=n.subscribe(()=>i&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return(a=!(i=!e?.meta?.[t2]))&&!o&&(o=!0,l(u)),n.dispatch(e)}finally{i=!0}}})},t5=e=>function(t){let{autoBatch:r=!0}=t??{},n=new tJ(e);return r&&n.push(t8("object"==typeof r?r:void 0)),n};function t6(e){let t;let r={},n=[],i={addCase(e,t){let n="string"==typeof e?e:e.type;if(!n)throw Error(r0(28));if(n in r)throw Error(r0(29));return r[n]=t,i},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),i),addDefaultCase:e=>(t=e,i)};return e(i),[r,n,t]}function t9(e,t){let r;let[n,i,a]=t6(t);if("function"==typeof e)r=()=>tX(e());else{let t=tX(e);r=()=>t}function o(e=r(),t){let o=[n[t.type],...i.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===o.filter(e=>!!e).length&&(o=[a]),o.reduce((e,r)=>{if(r){if(td(e)){let n=r(e,t);return void 0===n?e:n}if(tf(e))return tK(e,e=>r(e,t));{let n=r(e,t);if(void 0===n){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}}return e},e)}return o.getInitialState=r,o}var t7=(e,t)=>tz(e)?e.match(t):e(t);function re(...e){return t=>e.some(e=>t7(e,t))}function rt(...e){return t=>e.every(e=>t7(e,t))}function rr(e,t){if(!e||!e.meta)return!1;let r="string"==typeof e.meta.requestId,n=t.indexOf(e.meta.requestStatus)>-1;return r&&n}function rn(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function ri(...e){return 0===e.length?e=>rr(e,["pending"]):rn(e)?re(...e.map(e=>e.pending)):ri()(e[0])}function ra(...e){return 0===e.length?e=>rr(e,["rejected"]):rn(e)?re(...e.map(e=>e.rejected)):ra()(e[0])}function ro(...e){let t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length?rt(ra(...e),t):rn(e)?rt(ra(...e),t):ro()(e[0])}function rs(...e){return 0===e.length?e=>rr(e,["fulfilled"]):rn(e)?re(...e.map(e=>e.fulfilled)):rs()(e[0])}function rl(...e){return 0===e.length?e=>rr(e,["pending","fulfilled","rejected"]):rn(e)?re(...e.flatMap(e=>[e.pending,e.rejected,e.fulfilled])):rl()(e[0])}var ru=(e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},rc=["name","message","stack","code"],rd=class{constructor(e,t){this.payload=e,this.meta=t}_type},rf=class{constructor(e,t){this.payload=e,this.meta=t}_type},rh=e=>{if("object"==typeof e&&null!==e){let t={};for(let r of rc)"string"==typeof e[r]&&(t[r]=e[r]);return t}return{message:String(e)}},rp=(()=>{function e(e,t,r){let n=t$(e+"/fulfilled",(e,t,r,n)=>({payload:e,meta:{...n||{},arg:r,requestId:t,requestStatus:"fulfilled"}})),i=t$(e+"/pending",(e,t,r)=>({payload:void 0,meta:{...r||{},arg:t,requestId:e,requestStatus:"pending"}})),a=t$(e+"/rejected",(e,t,n,i,a)=>({payload:i,error:(r&&r.serializeError||rh)(e||"Rejected"),meta:{...a||{},arg:n,requestId:t,rejectedWithValue:!!i,requestStatus:"rejected",aborted:e?.name==="AbortError",condition:e?.name==="ConditionError"}}));return Object.assign(function(e){return(o,s,l)=>{let u,c;let d=r?.idGenerator?r.idGenerator(e):ru(),f=new AbortController;function h(e){c=e,f.abort()}let p=async function(){let p;try{var g;let a=r?.condition?.(e,{getState:s,extra:l});if(g=a,null!==g&&"object"==typeof g&&"function"==typeof g.then&&(a=await a),!1===a||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let m=new Promise((e,t)=>{u=()=>{t({name:"AbortError",message:c||"Aborted"})},f.signal.addEventListener("abort",u)});o(i(d,e,r?.getPendingMeta?.({requestId:d,arg:e},{getState:s,extra:l}))),p=await Promise.race([m,Promise.resolve(t(e,{dispatch:o,getState:s,extra:l,requestId:d,signal:f.signal,abort:h,rejectWithValue:(e,t)=>new rd(e,t),fulfillWithValue:(e,t)=>new rf(e,t)})).then(t=>{if(t instanceof rd)throw t;return t instanceof rf?n(t.payload,d,e,t.meta):n(t,d,e)})])}catch(t){p=t instanceof rd?a(null,d,e,t.payload,t.meta):a(t,d,e)}finally{u&&f.signal.removeEventListener("abort",u)}return r&&!r.dispatchConditionRejection&&a.match(p)&&p.meta.condition||o(p),p}();return Object.assign(p,{abort:h,requestId:d,arg:e,unwrap:()=>p.then(rg)})}},{pending:i,rejected:a,fulfilled:n,settled:re(a,n),typePrefix:e})}return e.withTypes=()=>e,e})();function rg(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var rm=Symbol.for("rtk-slice-createasyncthunk"),rA=((a=rA||{}).reducer="reducer",a.reducerWithPrepare="reducerWithPrepare",a.asyncThunk="asyncThunk",a),ry=function({creators:e}={}){let t=e?.asyncThunk?.[rm];return function(e){let r;let{name:n,reducerPath:i=n}=e;if(!n)throw Error(r0(11));let a=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},o=Object.keys(a),s={},l={},u={},c=[],d={addCase(e,t){let r="string"==typeof e?e:e.type;if(!r)throw Error(r0(12));if(r in l)throw Error(r0(13));return l[r]=t,d},addMatcher:(e,t)=>(c.push({matcher:e,reducer:t}),d),exposeAction:(e,t)=>(u[e]=t,d),exposeCaseReducer:(e,t)=>(s[e]=t,d)};function f(){let[t={},r=[],n]="function"==typeof e.extraReducers?t6(e.extraReducers):[e.extraReducers],i={...t,...l};return t9(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of c)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)})}
15o.forEach(r=>{let i=a[r],o={reducerName:r,type:`${n}/${r}`,createNotation:"function"==typeof e.reducers};"asyncThunk"===i._reducerDefinitionType?function({type:e,reducerName:t},r,n,i){if(!i)throw Error(r0(18));let{payloadCreator:a,fulfilled:o,pending:s,rejected:l,settled:u,options:c}=r,d=i(e,a,c);n.exposeAction(t,d),o&&n.addCase(d.fulfilled,o),s&&n.addCase(d.pending,s),l&&n.addCase(d.rejected,l),u&&n.addMatcher(d.settled,u),n.exposeCaseReducer(t,{fulfilled:o||rv,pending:s||rv,rejected:l||rv,settled:u||rv})}(o,i,d,t):function({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&"reducerWithPrepare"!==n._reducerDefinitionType)throw Error(r0(17));a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?t$(e,o):t$(e))}(o,i,d)});let h=e=>e,p=new Map;function g(e,t){return r||(r=f()),r(e,t)}function m(){return r||(r=f()),r.getInitialState()}function A(t,r=!1){function n(e){let n=e[t];return void 0===n&&r&&(n=m()),n}function i(t=h){let n=t0(p,r,()=>new WeakMap);return t0(n,t,()=>{let n={};for(let[i,a]of Object.entries(e.selectors??{}))n[i]=function(e,t,r,n){function i(a,...o){let s=t(a);return void 0===s&&n&&(s=r()),e(s,...o)}return i.unwrapped=e,i}(a,t,m,r);return n})}return{reducerPath:t,getSelectors:i,get selectors(){return i(n)},selectSlice:n}}let y={name:n,reducer:g,actions:u,caseReducers:s,getInitialState:m,...A(i),injectInto(e,{reducerPath:t,...r}={}){let n=t??i;return e.inject({reducerPath:n,reducer:g},r),{...y,...A(n,!0)}}};return y}}();function rv(){}var rb="listener",rw="completed",rS="cancelled",rI=`task-${rS}`,rE=`task-${rw}`,rC=`${rb}-${rS}`,rx=`${rb}-${rw}`,rk=class{constructor(e){this.code=e,this.message=`task ${rS} (reason: ${e})`}name="TaskAbortError";message},rO=(e,t)=>{if("function"!=typeof e)throw TypeError(r0(32))},rT=()=>{},rR=(e,t=rT)=>(e.catch(t),e),r_=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),rD=(e,t)=>{let r=e.signal;r.aborted||("reason"in r||Object.defineProperty(r,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},rN=e=>{if(e.aborted){let{reason:t}=e;throw new rk(t)}};function rM(e,t){let r=rT;return new Promise((n,i)=>{let a=()=>i(new rk(e.reason));if(e.aborted){a();return}r=r_(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=rT})}var rF=async(e,t)=>{try{await Promise.resolve();let t=await e();return{status:"ok",value:t}}catch(e){return{status:e instanceof rk?"cancelled":"rejected",error:e}}finally{t?.()}},rP=e=>t=>rR(rM(e,t).then(t=>(rN(e),t))),rL=e=>{let t=rP(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:rB}=Object,rj={},rU="listenerMiddleware",rq=(e,t)=>{let r=t=>r_(e,()=>rD(t,e.reason));return(n,i)=>{rO(n,"taskExecutor");let a=new AbortController;r(a);let o=rF(async()=>{rN(e),rN(a.signal);let t=await n({pause:rP(a.signal),delay:rL(a.signal),signal:a.signal});return rN(a.signal),t},()=>rD(a,rE));return i?.autoJoin&&t.push(o.catch(rT)),{result:rP(e)(o),cancel(){rD(a,rI)}}}},rQ=(e,t)=>{let r=async(r,n)=>{rN(t);let i=()=>{},a=[new Promise((t,n)=>{let a=e({predicate:r,effect:(e,r)=>{r.unsubscribe(),t([e,r.getState(),r.getOriginalState()])}});i=()=>{a(),n()}})];null!=n&&a.push(new Promise(e=>setTimeout(e,n,null)));try{let e=await rM(t,Promise.race(a));return rN(t),e}finally{i()}};return(e,t)=>rR(r(e,t))},rG=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=t$(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(i);else throw Error(r0(21));return rO(a,"options.listener"),{predicate:i,type:t,effect:a}},rV=rB(e=>{let{type:t,predicate:r,effect:n}=rG(e);
15return{id:ru(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw Error(r0(22))}}},{withTypes:()=>rV}),rH=(e,t)=>{let{type:r,effect:n,predicate:i}=rG(t);return Array.from(e.values()).find(e=>("string"==typeof r?e.type===r:e.predicate===i)&&e.effect===n)},rK=e=>{e.pending.forEach(e=>{rD(e,rC)})},rW=e=>()=>{e.forEach(rK),e.clear()},rY=(e,t,r)=>{try{e(t,r)}catch(e){setTimeout(()=>{throw e},0)}},rZ=rB(t$(`${rU}/add`),{withTypes:()=>rZ}),rz=t$(`${rU}/removeAll`),r$=rB(t$(`${rU}/remove`),{withTypes:()=>r$}),rJ=(...e)=>{console.error(`${rU}/error`,...e)},rX=(e={})=>{let t=new Map,{extra:r,onError:n=rJ}=e;rO(n,"onError");let i=e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&rK(e)}),a=e=>i(rH(t,e)??rV(e));rB(a,{withTypes:()=>a});let o=e=>{let r=rH(t,e);return r&&(r.unsubscribe(),e.cancelActive&&rK(r)),!!r};rB(o,{withTypes:()=>o});let s=async(e,i,o,s)=>{let l=new AbortController,u=rQ(a,l.signal),c=[];try{e.pending.add(l),await Promise.resolve(e.effect(i,rB({},o,{getOriginalState:s,condition:(e,t)=>u(e,t).then(Boolean),take:u,delay:rL(l.signal),pause:rP(l.signal),extra:r,signal:l.signal,fork:rq(l.signal,c),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,r)=>{e!==l&&(rD(e,rC),r.delete(e))})},cancel:()=>{rD(l,rC),e.pending.delete(l)},throwIfCancelled:()=>{rN(l.signal)}})))}catch(e){e instanceof rk||rY(n,e,{raisedBy:"effect"})}finally{await Promise.all(c),rD(l,rx),e.pending.delete(l)}},l=rW(t);return{middleware:e=>r=>i=>{let u;if(!tn(i))return r(i);if(rZ.match(i))return a(i.payload);if(rz.match(i)){l();return}if(r$.match(i))return o(i.payload);let c=e.getState(),d=()=>{if(c===rj)throw Error(r0(23));return c};try{if(u=r(i),t.size>0){let r=e.getState();for(let a of Array.from(t.values())){let t=!1;try{t=a.predicate(i,r,c)}catch(e){t=!1,rY(n,e,{raisedBy:"predicate"})}t&&s(a,i,e,d)}}}finally{c=rj}return u},startListening:a,stopListening:o,clearListeners:l}};function r0(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}Symbol.for("rtk-state-proxy-original");var r1=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;let r2=new Uint8Array(16),r3=[];for(let e=0;e<256;++e)r3.push((e+256).toString(16).slice(1));var r4=function(e,t,r){return t||e||!crypto.randomUUID?function(e,t,r){let n=(e=e||{}).random??e.rng?.()??crypto.getRandomValues(r2);if(n.length<16)throw Error("Random bytes length must be >= 16");if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){if((r=r||0)<0||r+16>t.length)throw RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[r+e]=n[e];return t}return function(e,t=0){return(r3[e[t+0]]+r3[e[t+1]]+r3[e[t+2]]+r3[e[t+3]]+"-"+r3[e[t+4]]+r3[e[t+5]]+"-"+r3[e[t+6]]+r3[e[t+7]]+"-"+r3[e[t+8]]+r3[e[t+9]]+"-"+r3[e[t+10]]+r3[e[t+11]]+r3[e[t+12]]+r3[e[t+13]]+r3[e[t+14]]+r3[e[t+15]]).toLowerCase()}(n)}(e,t,r):crypto.randomUUID()};let r8="visitorId",r5="1.2.15";function r6(e,t,r,n){let{getReferrer:i,getLocation:a,getUserAgent:o}=r,s=function(e){let{trackingId:t}=e;return{trackingId:t}}(t),l=n.getClientId();return Object.freeze({type:e,config:s,ts:Date.now(),source:(t.source||[]).concat([`relay@${r5}`]),clientId:l,userAgent:o(),referrer:r9(i()),location:r9(a())})}function r9(e){return null!==e?function(e,t){if(t<0||e.length<=t)return e;let r=e.indexOf("%",t-2);for(r<0||r>t?r=t:t=r;r>2&&"%"==e.charAt(r-3);){let n=Number.parseInt(e.substring(r-2,r),16);if((128&n)!=128)break;if(r-=3,(192&n)!=128){t-r>=3*((248&n)==240?4:(240&n)==224?3:(224&n)==192?2:1)&&(r=t);break}}return e.substring(0,r)}(e,1024):null}function r7({url:e,token:t,trackingId:r,...n}){return Object.freeze({url:e,token:t,trackingId:r,...!!n.mode&&{mode:n.mode},...!!n.source&&{source:n.source},...!!n.environment&&{environment:n.environment}})}let ne=function(){let e="coveo_",t=e=>{let t=e.split(".").slice(-2);return 2==t.length?t.join("."):""};return{getItem(t){let r=`${e}${t}=`;for(let e of document.cookie.split(";")){let t=e.replace(/^\s+/,"");if(0===t.lastIndexOf(r,0))return t.substring(r.length,t.length)}return null},setItem(r,n,i){let a=t(window.location.hostname),o=`;expires=${new Date(new Date().getTime()+i).toUTCString()}`,s=a?`;domain=${a}`:"";document.cookie=`${e}${r}=${n}${o}${s};path=/;SameSite=Lax`},removeItem(e){this.setItem(e,"",-1)}}}();function nt(){return{runtime:"browser",send:(e,t,r)=>{let n=navigator.sendBeacon(`${e}?access_token=${t}`,new Blob([JSON.stringify([r])],{type:"application/json"}));if((function(){let e="undefined"!=typeof window;return{sendMessage(t){e&&window.postMessage(t,"*")}}})().sendMessage({kind:"EVENT_PROTOCOL",event:r,url:e,token:t}),!n)throw Error("Failed to send the event(s) because the payload size exceeded the maximum allowed size (32 KB). Please contact support if the problem persists.")},getReferrer:()=>(function(){let e=document.referrer;return""===e?null:e})(),getLocation:()=>window.location.href,getUserAgent:()=>navigator.userAgent,generateUUID:()=>r4(),storage:{getItem:e=>ne.getItem(e)||localStorage.getItem(e),removeItem(e){ne.removeItem(e),localStorage.removeItem(e)},setItem(e,t){localStorage.setItem(e,t),ne.setItem(e,t,31556952e3)}}}}var nr=e=>Array.isArray(e)?e:[e],nn=0,ni=class{revision=nn;_value;
15_lastValue;_isEqual=na;constructor(e,t=na){this._value=this._lastValue=e,this._isEqual=t}get value(){return this._value}set value(e){this.value!==e&&(this._value=e,this.revision=++nn)}};function na(e,t){return e===t}function no(e){return e instanceof ni||console.warn("Not a valid cell! ",e),e.value}var ns=(e,t)=>!1;function nl(){return function(e,t=na){return new ni(null,t)}(0,ns)}var nu=e=>{let t=e.collectionTag;null===t&&(t=e.collectionTag=nl()),no(t)};Symbol();var nc=0,nd=Object.getPrototypeOf({}),nf=class{constructor(e){this.value=e,this.value=e,this.tag.value=e}proxy=new Proxy(this,nh);tag=nl();tags={};children={};collectionTag=null;id=nc++},nh={get:(e,t)=>(function(){let{value:r}=e,n=Reflect.get(r,t);if("symbol"==typeof t||t in nd)return n;if("object"==typeof n&&null!==n){let r=e.children[t];return void 0===r&&(r=e.children[t]=Array.isArray(n)?new np(n):new nf(n)),r.tag&&no(r.tag),r.proxy}{let r=e.tags[t];return void 0===r&&((r=e.tags[t]=nl()).value=n),no(r),n}})(),ownKeys:e=>(nu(e),Reflect.ownKeys(e.value)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e.value,t),has:(e,t)=>Reflect.has(e.value,t)},np=class{constructor(e){this.value=e,this.value=e,this.tag.value=e}proxy=new Proxy([this],ng);tag=nl();tags={};children={};collectionTag=null;id=nc++},ng={get:([e],t)=>("length"===t&&nu(e),nh.get(e,t)),ownKeys:([e])=>nh.ownKeys(e),getOwnPropertyDescriptor:([e],t)=>nh.getOwnPropertyDescriptor(e,t),has:([e],t)=>nh.has(e,t)},nm="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function nA(){return{s:0,v:void 0,o:null,p:null}}function ny(e,t={}){let r,n=nA(),{resultEqualityCheck:i}=t,a=0;function o(){let t,o=n,{length:s}=arguments;for(let e=0;e<s;e++){let t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=o.o;null===e&&(o.o=e=new WeakMap);let r=e.get(t);void 0===r?(o=nA(),e.set(t,o)):o=r}else{let e=o.p;null===e&&(o.p=e=new Map);let r=e.get(t);void 0===r?(o=nA(),e.set(t,o)):o=r}}let l=o;if(1===o.s)t=o.v;else if(t=e.apply(null,arguments),a++,i){let e=r?.deref?.()??r;null!=e&&i(e,t)&&(t=e,0!==a&&a--),r="object"==typeof t&&null!==t||"function"==typeof t?new nm(t):t}return l.s=1,l.v=t,t}return o.clearCache=()=>{n=nA(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}var nv=function(e,...t){let r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,n=(...e)=>{let t,n=0,i=0,a={},o=e.pop();"object"==typeof o&&(a=o,o=e.pop()),function(e,t=`expected a function, instead received ${typeof e}`){if("function"!=typeof e)throw TypeError(t)}(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:l=[],argsMemoize:u=ny,argsMemoizeOptions:c=[],devModeChecks:d={}}={...r,...a},f=nr(l),h=nr(c),p=function(e){let t=Array.isArray(e[0])?e[0]:e;return!function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){let r=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw TypeError(`${t}[${r}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}(e),g=s(function(){return n++,o.apply(null,arguments)},...f);return Object.assign(u(function(){i++;let e=function(e,t){let r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}(p,arguments);return t=g.apply(null,e)},...h),{resultFunc:o,memoizedResultFunc:g,dependencies:p,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>t,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:s,argsMemoize:u})};return Object.assign(n,{withTypes:()=>n}),n}(ny),nb=Object.assign((e,t=nv)=>{!function(e,t=`expected an object, instead received ${typeof e}`){if("object"!=typeof e)throw TypeError(t)}(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e);return t(r.map(t=>e[t]),(...e)=>e.reduce((e,t,n)=>(e[r[n]]=t,e),{}))},{withTypes:()=>nb});let nw="3.46.0",nS=nv(e=>e.source,e=>Object.entries(e).map(([e,t])=>`${e}@${t}`).concat(`@coveo/headless@${nw}`)),nI=nv(e=>e.configuration.organizationId,e=>e.configuration.environment,e=>e.configuration.accessToken,e=>e.configuration.analytics,e=>nS(e.configuration.analytics),(e,t)=>t,(e,t,r,{trackingId:n,apiBaseUrl:i,enabled:a},o,s)=>{let l=nC(s);return function(e){let t;let r=(t=r7(e),{get:()=>t,update:e=>{t=r7({...t,...e})}}),n=function(){let e=[];function t({type:t,callback:r}){return e.findIndex(e=>e.type===t&&e.callback===r)}function r(r,n){n?function(r){let n=t(r);n>=0&&e.splice(n,1)}({type:r,callback:n}):function(t){if("*"===t)e.length=0;else for(let r=e.length-1;r>=0;r--)e[r].type===t&&e.splice(r,1)}(r)}return{add:function(n){return 0>t(n)&&e.push(n),()=>r(n.type,n.callback)}
15,call:function(t){e.forEach(e=>{var r;if(r=t.meta.type,"*"===e.type||r===e.type)try{e.callback(t)}catch(e){console.error(e)}})},remove:r}}(),i=()=>Object.freeze(function(e){let t="disabled"!==e.get().mode,r=e.get().environment,n={runtime:"null",send:()=>void 0,getReferrer:()=>null,getLocation:()=>null,getUserAgent:()=>null,generateUUID:()=>"",storage:{getItem:()=>null,removeItem(){},setItem(){}}};return t&&r?{storage:n.storage,...r,runtime:"custom"}:t&&function(){try{return"object"==typeof window}catch{return!1}}()&&function(){try{let e="__storage_test__";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return e instanceof DOMException&&"QuotaExceededError"===e.name&&localStorage&&0!==localStorage.length}}()?nt():n}(r)),a={getClientId:()=>{var e;let t=i(),r=t.storage,n=r.getItem(r8),a=n&&"string"==typeof(e=n)&&r1.test(e)?n:t.generateUUID();return r.setItem(r8,a),a}};return{emit:(e,t)=>{let o=r.get(),s=i(),l={...t,meta:r6(e,o,s,a)};return function({config:e,environment:t,event:r,listenerManager:n}){let{url:i,token:a,mode:o}=e;"disabled"!==o&&(n.call(r),t.send(i,a,r))}({config:o,environment:s,event:l,listenerManager:n})},getMeta:e=>r6(e,r.get(),i(),a),on:(e,t)=>n.add({type:e,callback:t}),off:(e,t)=>n.remove(e,t),updateConfig:e=>r.update(e),version:r5}}({mode:a?"emit":"disabled",url:i??function(e,t="prod"){let r=eC(e,t,"analytics");return`${r}/rest/organizations/${e}/events/v1`}(e,t),token:r,trackingId:n??null,source:o,environment:l})}),nE={generateUUID:()=>"",getLocation:()=>null,getReferrer:()=>null,getUserAgent:()=>null,send:()=>{},storage:{getItem:()=>null,setItem:()=>{},removeItem:()=>{}}},nC=e=>{if(!e)return;let t=e();return{..."undefined"!=typeof window&&"undefined"!=typeof document?nt():nE,generateUUID:()=>t.clientId,getLocation:()=>t.location,getReferrer:()=>t.referrer,getUserAgent:()=>t.userAgent}};function nx(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);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function nk(e,t,r,n){return new(r||(r=Promise))(function(i,a){function o(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,s)}l((n=n.apply(e,t||[])).next())})}function nO(){return"undefined"!=typeof window}function nT(){return"undefined"!=typeof navigator}function nR(){return"undefined"!=typeof document}function n_(){try{return"undefined"!=typeof localStorage}catch(e){return!1}}function nD(){return nT()&&navigator.cookieEnabled}"function"==typeof SuppressedError&&SuppressedError,(o=x||(x={})).search="search",o.click="click",o.custom="custom",o.view="view",o.collect="collect";let nN=[x.click,x.custom,x.search,x.view],nM=(e,t)=>-1!==nN.indexOf(e)?Object.assign({language:nR()?document.documentElement.lang:"unknown",userAgent:nT()?navigator.userAgent:"unknown"},t):t;class nF{static set(e,t,r){var n,i,a;r&&(n=new Date).setTime(n.getTime()+r),-1===(a=window.location.hostname).indexOf(".")?nP(e,t,n):nP(e,t,n,(i=a.split("."))[i.length-2]+"."+i[i.length-1])}static get(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){var i=r[n];if(0===(i=i.replace(/^\s+/,"")).lastIndexOf(t,0))return i.substring(t.length,i.length)}return null}static erase(e){nF.set(e,"",-1)}}function nP(e,t,r,n){document.cookie=`${e}=${t}`+(r?`;expires=${r.toUTCString()}`:"")+(n?`;domain=${n}`:"")+";path=/;SameSite=Lax"}class nL{getItem(e){return nF.get(`${nL.prefix}${e}`)}removeItem(e){nF.erase(`${nL.prefix}${e}`)}setItem(e,t,r){nF.set(`${nL.prefix}${e}`,t,r)}}nL.prefix="coveo_";class nB{constructor(){this.cookieStorage=new nL}getItem(e){return localStorage.getItem(e)||this.cookieStorage.getItem(e)}removeItem(e){this.cookieStorage.removeItem(e),localStorage.removeItem(e)}setItem(e,t){localStorage.setItem(e,t),this.cookieStorage.setItem(e,t,31556926e3)}}class nj{getItem(e){return null}removeItem(e){}setItem(e,t){}}let nU="__coveo.analytics.history";class nq{constructor(e){this.store=e||(n_()?localStorage:nD()?new nL:!function(){try{return"undefined"!=typeof sessionStorage}catch(e){return!1}}()?new nj:sessionStorage)}addElement(e){e.internalTime=new Date().getTime(),e=this.cropQueryElement(this.stripEmptyQuery(e));let t=this.getHistoryWithInternalTime();null!=t?this.isValidEntry(e)&&this.setHistory([e].concat(t)):this.setHistory([e])}addElementAsync(e){return nk(this,void 0,void 0,function*(){e.internalTime=new Date().getTime(),e=this.cropQueryElement(this.stripEmptyQuery(e));let t=yield this.getHistoryWithInternalTimeAsync();null!=t?this.isValidEntry(e)&&this.setHistory([e].concat(t)):this.setHistory([e])})}getHistory(){let e=this.getHistoryWithInternalTime();return this.stripEmptyQueries(this.stripInternalTime(e))}getHistoryAsync(){return nk(this,void 0,void 0,function*(){let e=yield this.getHistoryWithInternalTimeAsync();return this.stripEmptyQueries(this.stripInternalTime(e))})}getHistoryWithInternalTime(){try{let e=this.store.getItem(nU);if(e&&"string"==typeof e)return JSON.parse(e);return[]}catch(e){return[]}}getHistoryWithInternalTimeAsync(){return nk(this,void 0,void 0,function*(){try{let e=yield this.store.getItem(nU);if(e)return JSON.parse(e);return[]}catch(e){return[]}})}setHistory(e){try{this.store.setItem(nU,JSON.stringify(e.slice(0,20)))}catch(e){}}clear(){try{this.store.removeItem(nU)}catch(e){}}getMostRecentElement(){let e=this.getHistoryWithInternalTime();return Array.isArray(e)?e.sort((e,t)=>
15(t.internalTime||0)-(e.internalTime||0))[0]:null}cropQueryElement(e){return e.name&&e.value&&"query"===e.name.toLowerCase()&&(e.value=e.value.slice(0,75)),e}isValidEntry(e){let t=this.getMostRecentElement();return!t||t.value!=e.value||(e.internalTime||0)-(t.internalTime||0)>6e4}stripInternalTime(e){return Array.isArray(e)?e.map(e=>{let{name:t,time:r,value:n}=e;return{name:t,time:r,value:n}}):[]}stripEmptyQuery(e){let{name:t,time:r,value:n}=e;return t&&"string"==typeof n&&"query"===t.toLowerCase()&&""===n.trim()?{name:t,time:r}:e}stripEmptyQueries(e){return e.map(e=>this.stripEmptyQuery(e))}}let nQ=(e,t)=>nk(void 0,void 0,void 0,function*(){return e===x.view?(yield nG(t.contentIdValue),Object.assign({location:window.location.toString(),referrer:document.referrer,title:document.title},t)):t}),nG=e=>nk(void 0,void 0,void 0,function*(){let t=new nq,r={name:"PageView",value:e,time:new Date().toISOString()};yield t.addElementAsync(r)}),nV=new Uint8Array(16);var nH=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function nK(e){return"string"==typeof e&&nH.test(e)}let nW=[];for(let e=0;e<256;++e)nW.push((e+256).toString(16).slice(1));function nY(e,t=0){return nW[e[t+0]]+nW[e[t+1]]+nW[e[t+2]]+nW[e[t+3]]+"-"+nW[e[t+4]]+nW[e[t+5]]+"-"+nW[e[t+6]]+nW[e[t+7]]+"-"+nW[e[t+8]]+nW[e[t+9]]+"-"+nW[e[t+10]]+nW[e[t+11]]+nW[e[t+12]]+nW[e[t+13]]+nW[e[t+14]]+nW[e[t+15]]}var nZ={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function nz(e,t,r){if(nZ.randomUUID&&!t&&!e)return nZ.randomUUID();let i=(e=e||{}).random||(e.rng||function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(nV)})();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=i[e];return t}return nY(i)}function n$(e,t){return e<<t|e>>>32-t}let nJ=function(e,t,r){function n(e,t,n,i){var a;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof t&&(t=function(e){let t;if(!nK(e))throw TypeError("Invalid UUID");let r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}(t)),(null===(a=t)||void 0===a?void 0:a.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let o=new Uint8Array(16+e.length);if(o.set(t),o.set(e,t.length),(o=r(o))[6]=15&o[6]|80,o[8]=63&o[8]|128,n){i=i||0;for(let e=0;e<16;++e)n[i+e]=o[e];return n}return nY(o)}try{n.name="v5"}catch(e){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}(0,0,function(e){let t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){let t=unescape(encodeURIComponent(e));e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);let n=Math.ceil((e.length/4+2)/16),i=Array(n);for(let t=0;t<n;++t){let r=new Uint32Array(16);for(let n=0;n<16;++n)r[n]=e[64*t+4*n]<<24|e[64*t+4*n+1]<<16|e[64*t+4*n+2]<<8|e[64*t+4*n+3];i[t]=r}i[n-1][14]=(e.length-1)*8/4294967296,i[n-1][14]=Math.floor(i[n-1][14]),i[n-1][15]=(e.length-1)*8&4294967295;for(let e=0;e<n;++e){let n=new Uint32Array(80);for(let t=0;t<16;++t)n[t]=i[e][t];for(let e=16;e<80;++e)n[e]=n$(n[e-3]^n[e-8]^n[e-14]^n[e-16],1);let a=r[0],o=r[1],s=r[2],l=r[3],u=r[4];for(let e=0;e<80;++e){let r=Math.floor(e/20),i=n$(a,5)+function(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}(r,o,s,l)+u+t[r]+n[e]>>>0;u=l,l=s,s=n$(o,30)>>>0,o=a,a=i}r[0]=r[0]+a>>>0,r[1]=r[1]+o>>>0,r[2]=r[2]+s>>>0,r[3]=r[3]+l>>>0,r[4]=r[4]+u>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}),nX="2.30.52",n0=e=>`${e.protocol}//${e.hostname}${0===e.pathname.indexOf("/")?e.pathname:`/${e.pathname}`}${e.search}`,n1={pageview:"pageview",event:"event"};class n2{constructor({client:e,uuidGenerator:t=nz}){this.client=e,this.uuidGenerator=t}}class n3 extends n2{constructor({client:e,uuidGenerator:t=nz}){super({client:e,uuidGenerator:t}),this.actionData={},this.pageViewId=t(),this.nextPageViewId=this.pageViewId,this.currentLocation=n0(window.location),this.lastReferrer=nR()?document.referrer:"",this.addHooks()}getApi(e){return"setAction"===e?this.setAction:null}setAction(e,t){this.action=e,this.actionData=t}clearData(){this.clearPluginData(),this.action=void 0,this.actionData={}}getLocationInformation(e,t){return Object.assign({hitType:e},this.getNextValues(e,t))}updateLocationInformation(e,t){this.updateLocationForNextPageView(e,t)}getDefaultContextInformation(e){let t={title:nR()?document.title:"",encoding:nR()?document.characterSet:"UTF-8"},r={screenResolution:`${screen.width}x${screen.height}`,screenColor:`${screen.colorDepth}-bit`},n={language:navigator.language,userAgent:navigator.userAgent};return Object.assign(Object.assign(Object.assign(Object.assign({},{time:Date.now(),eventId:this.uuidGenerator()}),r),n),t)}updateLocationForNextPageView(e,t){let{pageViewId:r,referrer:n,location:i}=this.getNextValues(e,t);this.lastReferrer=n,this.pageViewId=r,this.currentLocation=i,e===n1.pageview&&(this.nextPageViewId=this.uuidGenerator(),this.hasSentFirstPageView=!0)}getNextValues(e,t){return{pageViewId:e===n1.pageview?this.nextPageViewId:this.pageViewId,referrer:e===n1.pageview&&this.hasSentFirstPageView?this.currentLocation:this.lastReferrer,location:e===n1.pageview?this.getCurrentLocationFromPayload(t):this.currentLocation}}getCurrentLocationFromPayload(e){return e.page?`${this.currentLocation.split("/").slice(0,3).join("/")}${e.page.replace(/^\/?(.*)$/,"/$1")}`:n0(window.location)}}class n4{constructor(e,t){if(!nK(e))throw Error("Not a valid uuid");this.clientId=e,this.creationDate=Math.floor(t/1e3)}toString(){return this.clientId.replace(/-/g,"")+"."+this.creationDate.toString()}get expired(){let e=Math.floor(Date.now()/1e3)-this.creationDate;return e<0||e>n4.expirationTime}validate(e,t){return!this.expired&&this.matchReferrer(e,t)}matchReferrer(e,t){try{let r=new URL(e);return t.some(e=>RegExp(e.replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")+"$").test(r.host))}catch(e){return!1}}static fromString(e){let t=e.split(".");if(2!==t.length)return null;let[r,n]=t;if(32!==r.length||isNaN(parseInt(n)))return null;let i=r.substring(0,8)+"-"+r.substring(8,12)+"-"+r.substring(12,16)+"-"+r.substring(16,20)+"-"+r.substring(20,32);return nK(i)?new n4(i,1e3*Number.parseInt(n)):null}}n4.cvo_cid="cvo_cid",n4.expirationTime=120;
15class n8 extends n2{constructor({client:e,uuidGenerator:t=nz}){super({client:e,uuidGenerator:t})}getApi(e){switch(e){case"decorate":return this.decorate;case"acceptFrom":return this.acceptFrom;default:return null}}decorate(e){return nk(this,void 0,void 0,function*(){if(!this.client.getCurrentVisitorId)throw Error("Could not retrieve current clientId");try{let t=new URL(e),r=yield this.client.getCurrentVisitorId();return t.searchParams.set(n4.cvo_cid,new n4(r,Date.now()).toString()),t.toString()}catch(e){throw Error("Invalid URL provided")}})}acceptFrom(e){this.client.setAcceptedLinkReferrers(e)}}n8.Id="link";let n5=Object.keys;function n6(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}let n9={id:"svc_ticket_id",subject:"svc_ticket_subject",description:"svc_ticket_description",category:"svc_ticket_category",productId:"svc_ticket_product_id",custom:"svc_ticket_custom"},n7=[...n5(n9).map(e=>n9[e])].join("|"),ie=RegExp(`^(${n7}$)`),it=e=>n5(e).filter(t=>void 0!==e[t]).reduce((t,r)=>{let n=n9[r]||r;return Object.assign(Object.assign({},t),{[n]:e[r]})},{}),ir=[e=>ie.test(e)],ii={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",price:"pr",quantity:"qt",coupon:"cc",position:"ps",group:"group"},ia={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",position:"ps",price:"pr",group:"group"},io={action:"pa",list:"pal",listSource:"pls"},is={id:"ti",revenue:"tr",tax:"tt",shipping:"ts",coupon:"tcc",affiliation:"ta",step:"cos",option:"col"},il={id:"quoteId",affiliation:"quoteAffiliation"},iu={id:"reviewId",rating:"reviewRating",comment:"reviewComment"},ic={add:io,bookmark_add:io,bookmark_remove:io,click:io,checkout:io,checkout_option:io,detail:io,impression:io,remove:io,refund:Object.assign(Object.assign({},io),is),purchase:Object.assign(Object.assign({},io),is),quickview:io,quote:Object.assign(Object.assign({},io),il),review:Object.assign(Object.assign({},io),iu)},id=n5(ii).map(e=>ii[e]),ih=n5(ia).map(e=>ia[e]),ip=n5(io).map(e=>io[e]),ig=n5(is).map(e=>is[e]),im=n5(iu).map(e=>iu[e]),iA=n5(il).map(e=>il[e]),iy=[...id,"custom"].join("|"),iv=[...ih,"custom"].join("|"),ib="(pr[0-9]+)",iw="(il[0-9]+pi[0-9]+)",iS=RegExp(`^${ib}(${iy})$`),iI=RegExp(`^(${iw}(${iv}))|(il[0-9]+nm)$`),iE=RegExp(`^(${ip.join("|")})$`),iC=RegExp(`^(${ig.join("|")})$`),ix=RegExp(`^${ib}custom$`),ik=RegExp(`^${iw}custom$`),iO=RegExp(`^(${["loyaltyCardId","loyaltyTier","thirdPartyPersona","companyName","favoriteStore","storeName","userIndustry","userRole","userDepartment","businessUnit",...im,...iA].join("|")})$`),iT=[e=>iI.test(e),e=>iS.test(e),e=>iE.test(e),e=>iC.test(e),e=>iO.test(e)],iR=[ix,ik],i_=Object.assign(Object.assign({},Object.assign(Object.assign(Object.assign(Object.assign({},{anonymizeIp:"aip"}),{eventCategory:"ec",eventAction:"ea",eventLabel:"el",eventValue:"ev",page:"dp",visitorId:"cid",clientId:"cid",userId:"uid",currencyCode:"cu"}),{hitType:"t",pageViewId:"pid",encoding:"de",location:"dl",referrer:"dr",screenColor:"sd",screenResolution:"sr",title:"dt",userAgent:"ua",language:"ul",eventId:"z",time:"tm"}),["contentId","contentIdKey","contentType","searchHub","tab","searchUid","permanentId","contentLocale","trackingId"].reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:t}),{}))),{svcAction:"svc_action",svcActionData:"svc_action_data"}),iD=e=>{let t=!!e.action&&ic[e.action]||{};return n5(e).reduce((r,n)=>{let i=t[n]||i_[n]||n;return Object.assign(Object.assign({},r),{[i]:e[n]})},{})},iN=n5(i_).map(e=>i_[e]),iM=e=>-1!==iN.indexOf(e),iF=e=>"custom"===e,iP=e=>[...iT,...ir,iM,iF].some(t=>t(e)),iL=e=>n5(e).reduce((t,r)=>{let n=iB(r);return n?Object.assign(Object.assign({},t),ij(n,e[r])):Object.assign(Object.assign({},t),{[r]:e[r]})},{}),iB=e=>{let t;return[...iR].every(r=>{var n;return!(t=null===(n=r.exec(e))||void 0===n?void 0:n[1])}),t},ij=(e,t)=>n5(t).reduce((r,n)=>Object.assign(Object.assign({},r),{[`${e}${n}`]:t[n]}),{});class iU{constructor(e){this.opts=e}sendEvent(e,t){return nk(this,void 0,void 0,function*(){if(!this.isAvailable())throw Error('navigator.sendBeacon is not supported in this browser. Consider adding a polyfill like "sendbeacon-polyfill".');let{baseUrl:r,preprocessRequest:n}=this.opts,i=yield this.getQueryParamsForEventType(e),{url:a,payload:o}=yield this.preProcessRequestAsPotentialJSONString(`${r}/analytics/${e}?${i}`,t,n),s=new Blob([this.encodeForEventType(e,o)],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(a,s)})}isAvailable(){return"sendBeacon"in navigator}deleteHttpCookieVisitorId(){return Promise.resolve()}preProcessRequestAsPotentialJSONString(e,t,r){return nk(this,void 0,void 0,function*(){let n=e,i=t;if(r){let{url:a,body:o}=yield r({url:e,body:JSON.stringify(t)},"analyticsBeacon");n=a||e;try{i=JSON.parse(o)}catch(e){console.error("Unable to process the request body as a JSON string",e)}}return{payload:i,url:n}})}encodeForEventType(e,t){return this.isEventTypeLegacy(e)?this.encodeEventToJson(e,t):this.encodeEventToJson(e,t,this.opts.token)}getQueryParamsForEventType(e){return nk(this,void 0,void 0,function*(){let{token:t,visitorIdProvider:r}=this.opts,n=yield r.getCurrentVisitorId();return[t&&this.isEventTypeLegacy(e)?`access_token=${t}`:"",n?`visitorId=${n}`:"","discardVisitInfo=true"].filter(e=>!!e).join("&")})}isEventTypeLegacy(e){return -1!==[x.click,x.custom,x.search,x.view].indexOf(e)}encodeEventToJson(e,t,r){let n=`${e}Event=${encodeURIComponent(JSON.stringify(t))}`;return r&&(n=`access_token=${encodeURIComponent(r)}&${n}`),n}}class iq{sendEvent(e,t){return nk(this,void 0,void 0,function*(){return Promise.resolve()})}deleteHttpCookieVisitorId(){return nk(this,void 0,void 0,function*(){return Promise.resolve()})}}let iQ=globalThis.fetch;class iG{constructor(e){this.opts=e}sendEvent(e,t){return nk(this,void 0,void 0,function*(){let r;let{baseUrl:n,visitorIdProvider:i,preprocessRequest:a}=this.opts,o=this.shouldAppendVisitorId(e)?yield this.getVisitorIdParam():"",s={url:`${n}/analytics/${e}${o}
15`,credentials:"include",mode:"cors",headers:this.getHeaders(),method:"POST",body:JSON.stringify(t)},l=Object.assign(Object.assign({},s),a?yield a(s,"analyticsFetch"):{}),{url:u}=l,c=nx(l,["url"]);try{r=yield iQ(u,c)}catch(e){console.error("An error has occured when sending the event.",e);return}if(r.ok){let e=yield r.json();return e.visitorId&&i.setCurrentVisitorId(e.visitorId),e}try{r.json()}catch(e){}throw console.error(`An error has occured when sending the "${e}" event.`,r,t),Error(`An error has occurred when sending the "${e}" event. Check the console logs for more details.`)})}deleteHttpCookieVisitorId(){return nk(this,void 0,void 0,function*(){let{baseUrl:e}=this.opts,t=`${e}/analytics/visit`;yield iQ(t,{headers:this.getHeaders(),method:"DELETE"})})}shouldAppendVisitorId(e){return -1!==[x.click,x.custom,x.search,x.view].indexOf(e)}getVisitorIdParam(){return nk(this,void 0,void 0,function*(){let{visitorIdProvider:e}=this.opts,t=yield e.getCurrentVisitorId();return t?`?visitor=${t}`:""})}getHeaders(){let{token:e}=this.opts;return Object.assign(Object.assign({},e?{Authorization:`Bearer ${e}`}:{}),{"Content-Type":"application/json"})}}class iV{constructor(e,t){n_()&&nD()?this.storage=new nB:n_()?this.storage=localStorage:(console.warn("BrowserRuntime detected no valid storage available.",this),this.storage=new nj),this.client=new iG(e),this.beaconClient=new iU(e),window.addEventListener("beforeunload",()=>{for(let{eventType:e,payload:r}of t())this.beaconClient.sendEvent(e,r)})}getClientDependingOnEventType(e){return"click"===e&&this.beaconClient.isAvailable()?this.beaconClient:this.client}}class iH{constructor(e,t){this.storage=t||new nj,this.client=new iG(e)}getClientDependingOnEventType(e){return this.client}}class iK{constructor(){this.storage=new nj,this.client=new iq}getClientDependingOnEventType(e){return this.client}}let iW=e=>(null==e?void 0:e.startsWith("xx"))||!1,iY=` 16 We've detected you're using React Native but have not provided the corresponding runtime, 17 for an optimal experience please use the "coveo.analytics/react-native" subpackage. 18 Follow the Readme on how to set it up: https://github.com/coveo/coveo.analytics.js#using-react-native 19 `,iZ=["1",1,"yes",!0];function iz(){let e=[];return nO()&&e.push(window.doNotTrack),nT()&&e.push(navigator.doNotTrack,navigator.msDoNotTrack,navigator.globalPrivacyControl),e.some(e=>-1!==iZ.indexOf(e))}let i$="https://analytics.cloud.coveo.com/rest/ua";class iJ{get defaultOptions(){return{endpoint:i$,isCustomEndpoint:!1,token:"",version:"v15",beforeSendHooks:[],afterSendHooks:[]}}get version(){return nX}constructor(e){if(this.acceptedLinkReferrers=[],!e)throw Error("You have to pass options to this constructor");this.options=Object.assign(Object.assign({},this.defaultOptions),e),this.visitorId="",this.bufferedRequests=[],this.beforeSendHooks=[nQ,nM].concat(this.options.beforeSendHooks),this.afterSendHooks=this.options.afterSendHooks,this.eventTypeMapping={};let t={baseUrl:this.baseUrl,token:this.options.token,visitorIdProvider:this,preprocessRequest:this.options.preprocessRequest};iz()?this.runtime=new iK:this.runtime=this.options.runtimeEnvironment||this.initRuntime(t),this.addEventTypeMapping(x.view,{newEventType:x.view,addClientIdParameter:!0}),this.addEventTypeMapping(x.click,{newEventType:x.click,addClientIdParameter:!0}),this.addEventTypeMapping(x.custom,{newEventType:x.custom,addClientIdParameter:!0}),this.addEventTypeMapping(x.search,{newEventType:x.search,addClientIdParameter:!0})}initRuntime(e){return nO()&&nR()?new iV(e,()=>{let e=[...this.bufferedRequests];return this.bufferedRequests=[],e}):("undefined"!=typeof navigator&&"ReactNative"==navigator.product&&console.warn(iY),new iH(e))}get storage(){return this.runtime.storage}determineVisitorId(){return nk(this,void 0,void 0,function*(){try{return nO()&&this.extractClientIdFromLink(window.location.href)||(yield this.storage.getItem("visitorId"))||nz()}catch(e){return console.log("Could not get visitor ID from the current runtime environment storage. Using a random ID instead.",e),nz()}})}getCurrentVisitorId(){return nk(this,void 0,void 0,function*(){if(!this.visitorId){let e=yield this.determineVisitorId();yield this.setCurrentVisitorId(e)}return this.visitorId})}setCurrentVisitorId(e){return nk(this,void 0,void 0,function*(){this.visitorId=e,yield this.storage.setItem("visitorId",e)})}setClientId(e,t){return nk(this,void 0,void 0,function*(){if(nK(e))this.setCurrentVisitorId(e.toLowerCase());else{if(!t)throw Error("Cannot generate uuid client id without a specific namespace string.");this.setCurrentVisitorId(nJ(e,nJ(t,"38824e1f-37f5-42d3-8372-a4b8fa9df946")))}})}getParameters(e,...t){return nk(this,void 0,void 0,function*(){return yield this.resolveParameters(e,...t)})}getPayload(e,...t){return nk(this,void 0,void 0,function*(){let r=yield this.resolveParameters(e,...t);return yield this.resolvePayloadForParameters(e,r)})}get currentVisitorId(){return"string"!=typeof(this.visitorId||this.storage.getItem("visitorId"))&&this.setCurrentVisitorId(nz()),this.visitorId}set currentVisitorId(e){this.visitorId=e,this.storage.setItem("visitorId",e)}extractClientIdFromLink(e){if(iz())return null;try{let t=new URL(e).searchParams.get(n4.cvo_cid);if(null==t)return null;let r=n4.fromString(t);if(!r||!nR()||!r.validate(document.referrer,this.acceptedLinkReferrers))return null;return r.clientId}catch(e){}return null}resolveParameters(e,...t){return nk(this,void 0,void 0,function*(){let{variableLengthArgumentsNames:r=[],addVisitorIdParameter:n=!1,usesMeasurementProtocol:i=!1,addClientIdParameter:a=!1}=this.eventTypeMapping[e]||{};return yield[e=>r.length>0?this.parseVariableArgumentsPayload(r,e):e[0],e=>nk(this,void 0,void 0,function*(){return Object.assign(Object.assign({},e),{visitorId:n?yield this.getCurrentVisitorId():""})}),e=>nk(this,void 0,void 0,function*(){return a?Object.assign(Object.assign({},e),{clientId:yield this.getCurrentVisitorId()}):e}),e=>i?this.ensureAnonymousUserWhenUsingApiKey(e):e,t=>this.beforeSendHooks.reduce((t,r)=>nk(this,void 0,void 0,function*(){let n=yield t;return yield r(e,n)}),t)].reduce((e,t)=>
19nk(this,void 0,void 0,function*(){let r=yield e;return yield t(r)}),Promise.resolve(t))})}resolvePayloadForParameters(e,t){return nk(this,void 0,void 0,function*(){let{usesMeasurementProtocol:r=!1}=this.eventTypeMapping[e]||{};return yield[e=>this.setTrackingIdIfTrackingIdNotPresent(e),t=>this.removeEmptyPayloadValues(t,e),t=>this.validateParams(t,e),e=>r?iD(e):e,e=>r?this.removeUnknownParameters(e):e,e=>r?this.processCustomParameters(e):this.mapCustomParametersToCustomData(e)].reduce((e,t)=>nk(this,void 0,void 0,function*(){let r=yield e;return yield t(r)}),Promise.resolve(t))})}makeEvent(e,...t){return nk(this,void 0,void 0,function*(){let{newEventType:r=e}=this.eventTypeMapping[e]||{},n=yield this.resolveParameters(e,...t),i=yield this.resolvePayloadForParameters(e,n);return{eventType:r,payload:i,log:t=>nk(this,void 0,void 0,function*(){return this.bufferedRequests.push({eventType:r,payload:Object.assign(Object.assign({},i),t)}),yield Promise.all(this.afterSendHooks.map(r=>r(e,Object.assign(Object.assign({},n),t)))),yield this.deferExecution(),yield this.sendFromBuffer()})}})}sendEvent(e,...t){return nk(this,void 0,void 0,function*(){return(yield this.makeEvent(e,...t)).log({})})}deferExecution(){return new Promise(e=>setTimeout(e,0))}sendFromBuffer(){return nk(this,void 0,void 0,function*(){let e=this.bufferedRequests.shift();if(e){let{eventType:t,payload:r}=e;return this.runtime.getClientDependingOnEventType(t).sendEvent(t,r)}})}clear(){this.storage.removeItem("visitorId"),new nq().clear()}deleteHttpOnlyVisitorId(){this.runtime.client.deleteHttpCookieVisitorId()}makeSearchEvent(e){return nk(this,void 0,void 0,function*(){return this.makeEvent(x.search,e)})}sendSearchEvent(e){return nk(this,void 0,void 0,function*(){var{searchQueryUid:t}=e,r=nx(e,["searchQueryUid"]);return(yield this.makeSearchEvent(r)).log({searchQueryUid:t})})}makeClickEvent(e){return nk(this,void 0,void 0,function*(){return this.makeEvent(x.click,e)})}sendClickEvent(e){return nk(this,void 0,void 0,function*(){var{searchQueryUid:t}=e,r=nx(e,["searchQueryUid"]);return(yield this.makeClickEvent(r)).log({searchQueryUid:t})})}makeCustomEvent(e){return nk(this,void 0,void 0,function*(){return this.makeEvent(x.custom,e)})}sendCustomEvent(e){return nk(this,void 0,void 0,function*(){var{lastSearchQueryUid:t}=e,r=nx(e,["lastSearchQueryUid"]);return(yield this.makeCustomEvent(r)).log({lastSearchQueryUid:t})})}makeViewEvent(e){return nk(this,void 0,void 0,function*(){return this.makeEvent(x.view,e)})}sendViewEvent(e){return nk(this,void 0,void 0,function*(){return(yield this.makeViewEvent(e)).log({})})}getVisit(){return nk(this,void 0,void 0,function*(){let e=yield fetch(`${this.baseUrl}/analytics/visit`),t=yield e.json();return this.visitorId=t.visitorId,t})}getHealth(){return nk(this,void 0,void 0,function*(){let e=yield fetch(`${this.baseUrl}/analytics/monitoring/health`);return yield e.json()})}registerBeforeSendEventHook(e){this.beforeSendHooks.push(e)}registerAfterSendEventHook(e){this.afterSendHooks.push(e)}addEventTypeMapping(e,t){this.eventTypeMapping[e]=t}setAcceptedLinkReferrers(e){if(Array.isArray(e)&&e.every(e=>"string"==typeof e))this.acceptedLinkReferrers=e;else throw Error("Parameter should be an array of domain strings")}parseVariableArgumentsPayload(e,t){let r={};for(let n=0,i=t.length;n<i;n++){let i=t[n];if("string"==typeof i)r[e[n]]=i;else if("object"==typeof i)return Object.assign(Object.assign({},r),i)}return r}isKeyAllowedEmpty(e,t){return -1!==(({[x.search]:["queryText"]})[e]||[]).indexOf(t)}removeEmptyPayloadValues(e,t){let r=e=>null!=e&&""!==e;return Object.keys(e).filter(n=>this.isKeyAllowedEmpty(t,n)||r(e[n])).reduce((t,r)=>Object.assign(Object.assign({},t),{[r]:e[r]}),{})}removeUnknownParameters(e){return Object.keys(e).filter(e=>{if(iP(e))return!0;console.log(e,"is not processed by coveoua")}).reduce((t,r)=>Object.assign(Object.assign({},t),{[r]:e[r]}),{})}processCustomParameters(e){let{custom:t}=e,r=nx(e,["custom"]),n={};t&&n6(t)&&(n=this.lowercaseKeys(t));let i=iL(r);return Object.assign(Object.assign({},n),i)}mapCustomParametersToCustomData(e){let{custom:t}=e,r=nx(e,["custom"]);if(!(t&&n6(t)))return e;{let n=this.lowercaseKeys(t);return Object.assign(Object.assign({},r),{customData:Object.assign(Object.assign({},n),e.customData)})}}lowercaseKeys(e){let t=Object.keys(e),r={};return t.forEach(t=>{r[t.toLowerCase()]=e[t]}),r}validateParams(e,t){let{anonymizeIp:r}=e,n=nx(e,["anonymizeIp"]);return void 0!==r&&-1==["0","false","undefined","null","{}","[]",""].indexOf(`${r}`.toLowerCase())&&(n.anonymizeIp=1),(t==x.view||t==x.click||t==x.search||t==x.custom)&&(n.originLevel3=this.limit(n.originLevel3,1024)),t==x.view&&(n.location=this.limit(n.location,1024)),("pageview"==t||"event"==t)&&(n.referrer=this.limit(n.referrer,2048),n.location=this.limit(n.location,2048),n.page=this.limit(n.page,2048)),n}ensureAnonymousUserWhenUsingApiKey(e){let{userId:t}=e,r=nx(e,["userId"]);return iW(this.options.token)&&!t?(r.userId="anonymous",r):e}setTrackingIdIfTrackingIdNotPresent(e){let{trackingId:t}=e,r=nx(e,["trackingId"]);return t?e:(r.hasOwnProperty("custom")&&n6(r.custom)&&(r.custom.hasOwnProperty("context_website")||r.custom.hasOwnProperty("siteName"))&&(r.trackingId=r.custom.context_website||r.custom.siteName),r.hasOwnProperty("customData")&&n6(r.customData)&&(r.customData.hasOwnProperty("context_website")||r.customData.hasOwnProperty("siteName"))&&(r.trackingId=r.customData.context_website||r.customData.siteName),r)}limit(e,t){return"string"==typeof e?function(e,t){if(t<0||e.length<=t)return e;let r=e.indexOf("%",t-2);for(r<0||r>t?r=t:t=r;r>2&&"%"==e.charAt(r-3);){let n=Number.parseInt(e.substring(r-2,r),16);if((128&n)!=128)break;
19if(r-=3,(192&n)!=128){t-r>=3*((248&n)==240?4:(240&n)==224?3:(224&n)==192?2:1)&&(r=t);break}}return e.substring(0,r)}(e,t):e}get baseUrl(){return function(e=i$,t="v15",r=!1){if(e=e.replace(/\/$/,""),r)return`${e}/${t}`;let n=e.endsWith("/rest")||e.endsWith("/rest/ua");return`${e}${n?"":"/rest"}/${t}`}(this.options.endpoint,this.options.version,this.options.isCustomEndpoint)}}(s=k||(k={})).contextChanged="contextChanged",s.expandToFullUI="expandToFullUI",s.openUserActions="openUserActions",s.showPrecedingSessions="showPrecedingSessions",s.showFollowingSessions="showFollowingSessions",s.clickViewedDocument="clickViewedDocument",s.clickPageView="clickPageView",s.createArticle="createArticle",(l=O||(O={})).interfaceLoad="interfaceLoad",l.interfaceChange="interfaceChange",l.didyoumeanAutomatic="didyoumeanAutomatic",l.didyoumeanClick="didyoumeanClick",l.resultsSort="resultsSort",l.searchboxSubmit="searchboxSubmit",l.searchboxClear="searchboxClear",l.searchboxAsYouType="searchboxAsYouType",l.breadcrumbFacet="breadcrumbFacet",l.breadcrumbResetAll="breadcrumbResetAll",l.documentQuickview="documentQuickview",l.documentOpen="documentOpen",l.omniboxAnalytics="omniboxAnalytics",l.omniboxFromLink="omniboxFromLink",l.searchFromLink="searchFromLink",l.triggerNotify="notify",l.triggerExecute="execute",l.triggerQuery="query",l.undoTriggerQuery="undoQuery",l.triggerRedirect="redirect",l.pagerResize="pagerResize",l.pagerNumber="pagerNumber",l.pagerNext="pagerNext",l.pagerPrevious="pagerPrevious",l.pagerScrolling="pagerScrolling",l.staticFilterClearAll="staticFilterClearAll",l.staticFilterSelect="staticFilterSelect",l.staticFilterDeselect="staticFilterDeselect",l.facetClearAll="facetClearAll",l.facetSearch="facetSearch",l.facetSelect="facetSelect",l.facetSelectAll="facetSelectAll",l.facetDeselect="facetDeselect",l.facetExclude="facetExclude",l.facetUnexclude="facetUnexclude",l.facetUpdateSort="facetUpdateSort",l.facetShowMore="showMoreFacetResults",l.facetShowLess="showLessFacetResults",l.queryError="query",l.queryErrorBack="errorBack",l.queryErrorClear="errorClearQuery",l.queryErrorRetry="errorRetry",l.recommendation="recommendation",l.recommendationInterfaceLoad="recommendationInterfaceLoad",l.recommendationOpen="recommendationOpen",l.likeSmartSnippet="likeSmartSnippet",l.dislikeSmartSnippet="dislikeSmartSnippet",l.expandSmartSnippet="expandSmartSnippet",l.collapseSmartSnippet="collapseSmartSnippet",l.openSmartSnippetFeedbackModal="openSmartSnippetFeedbackModal",l.closeSmartSnippetFeedbackModal="closeSmartSnippetFeedbackModal",l.sendSmartSnippetReason="sendSmartSnippetReason",l.expandSmartSnippetSuggestion="expandSmartSnippetSuggestion",l.collapseSmartSnippetSuggestion="collapseSmartSnippetSuggestion",l.showMoreSmartSnippetSuggestion="showMoreSmartSnippetSuggestion",l.showLessSmartSnippetSuggestion="showLessSmartSnippetSuggestion",l.openSmartSnippetSource="openSmartSnippetSource",l.openSmartSnippetSuggestionSource="openSmartSnippetSuggestionSource",l.openSmartSnippetInlineLink="openSmartSnippetInlineLink",l.openSmartSnippetSuggestionInlineLink="openSmartSnippetSuggestionInlineLink",l.recentQueryClick="recentQueriesClick",l.clearRecentQueries="clearRecentQueries",l.recentResultClick="recentResultClick",l.clearRecentResults="clearRecentResults",l.noResultsBack="noResultsBack",l.showMoreFoldedResults="showMoreFoldedResults",l.showLessFoldedResults="showLessFoldedResults",l.copyToClipboard="copyToClipboard",l.caseSendEmail="Case.SendEmail",l.feedItemTextPost="FeedItem.TextPost",l.caseAttach="caseAttach",l.caseDetach="caseDetach",l.retryGeneratedAnswer="retryGeneratedAnswer",l.likeGeneratedAnswer="likeGeneratedAnswer",l.dislikeGeneratedAnswer="dislikeGeneratedAnswer",l.openGeneratedAnswerSource="openGeneratedAnswerSource",l.generatedAnswerStreamEnd="generatedAnswerStreamEnd",l.generatedAnswerSourceHover="generatedAnswerSourceHover",l.generatedAnswerCopyToClipboard="generatedAnswerCopyToClipboard",l.generatedAnswerHideAnswers="generatedAnswerHideAnswers",l.generatedAnswerShowAnswers="generatedAnswerShowAnswers",l.generatedAnswerExpand="generatedAnswerExpand",l.generatedAnswerCollapse="generatedAnswerCollapse",l.generatedAnswerFeedbackSubmit="generatedAnswerFeedbackSubmit",l.rephraseGeneratedAnswer="rephraseGeneratedAnswer",l.generatedAnswerFeedbackSubmitV2="generatedAnswerFeedbackSubmitV2",l.generatedAnswerCitationClick="generatedAnswerCitationClick",l.generatedAnswerCitationDocumentAttach="generatedAnswerCitationDocumentAttach";let iX={[O.triggerNotify]:"queryPipelineTriggers",[O.triggerExecute]:"queryPipelineTriggers",[O.triggerQuery]:"queryPipelineTriggers",[O.triggerRedirect]:"queryPipelineTriggers",[O.queryErrorBack]:"errors",[O.queryErrorClear]:"errors",[O.queryErrorRetry]:"errors",[O.pagerNext]:"getMoreResults",[O.pagerPrevious]:"getMoreResults",[O.pagerNumber]:"getMoreResults",[O.pagerResize]:"getMoreResults",[O.pagerScrolling]:"getMoreResults",[O.facetSearch]:"facet",[O.facetShowLess]:"facet",[O.facetShowMore]:"facet",[O.recommendation]:"recommendation",[O.likeSmartSnippet]:"smartSnippet",[O.dislikeSmartSnippet]:"smartSnippet",[O.expandSmartSnippet]:"smartSnippet",[O.collapseSmartSnippet]:"smartSnippet",[O.openSmartSnippetFeedbackModal]:"smartSnippet",[O.closeSmartSnippetFeedbackModal]:"smartSnippet",[O.sendSmartSnippetReason]:"smartSnippet",[O.expandSmartSnippetSuggestion]:"smartSnippetSuggestions",[O.collapseSmartSnippetSuggestion]:"smartSnippetSuggestions",[O.showMoreSmartSnippetSuggestion]:"smartSnippetSuggestions",[O.showLessSmartSnippetSuggestion]:"smartSnippetSuggestions",[O.clearRecentQueries]:"recentQueries",[O.recentResultClick]:"recentlyClickedDocuments",[O.clearRecentResults]:"recentlyClickedDocuments",[O.showLessFoldedResults]:"folding",[O.caseDetach]:"case",[O.likeGeneratedAnswer]:"generatedAnswer",[O.dislikeGeneratedAnswer]:"generatedAnswer",[O.openGeneratedAnswerSource]:"generatedAnswer",[O.generatedAnswerStreamEnd]:"generatedAnswer",[O.generatedAnswerSourceHover]:"generatedAnswer",[O.generatedAnswerCopyToClipboard]:"generatedAnswer",[O.generatedAnswerHideAnswers]:"generatedAnswer",[O.generatedAnswerShowAnswers]:"generatedAnswer",[O.generatedAnswerExpand]:"generatedAnswer",[O.generatedAnswerCollapse]:"generatedAnswer",[O.generatedAnswerFeedbackSubmit]:"generatedAnswer",[O.generatedAnswerFeedbackSubmitV2]:"generatedAnswer",[k.expandToFullUI]:"interface",[k.openUserActions]:"User Actions",[k.showPrecedingSessions]:"User Actions",[k.showFollowingSessions]:"User Actions",[k.clickViewedDocument]:"User Actions",[k.clickPageView]:"User Actions",[k.createArticle]:"createArticle"};class i0{constructor(){this.runtime=new iK,this.currentVisitorId=""}getPayload(){return Promise.resolve()}getParameters(){return Promise.resolve()}makeEvent(e){return Promise.resolve({eventType:e,payload:null,log:()=>Promise.resolve()})}sendEvent(){return Promise.resolve()}makeSearchEvent(){return this.makeEvent(x.search)}sendSearchEvent(){return Promise.resolve()}makeClickEvent(){return this.makeEvent(x.click)}sendClickEvent(){return Promise.resolve()}makeCustomEvent(){return this.makeEvent(x.custom)}sendCustomEvent(){return Promise.resolve()}makeViewEvent(){return this.makeEvent(x.view)}sendViewEvent(){return Promise.resolve()}getVisit(){return Promise.resolve({id:"",visitorId:""})}getHealth(){return Promise.resolve({status:""})}registerBeforeSendEventHook(){}registerAfterSendEventHook(){}addEventTypeMapping(){}get version(){return nX}}let i1=e=>{let t;let r=e.map(e=>e.replace(/;/g,""));return function e(t){let r=t.join(";");return r.length<=256?r:e(t.slice(1))}((t="",r.filter(e=>{let r=e!==t;return t=e,r})))};function i2(e){let t="string"==typeof e.partialQueries?e.partialQueries:i1(e.partialQueries),r="string"==typeof e.suggestions?e.suggestions:i1(e.suggestions);return Object.assign(Object.assign({},e),{partialQueries:t,suggestions:r})}class i3{constructor(e,t){this.opts=e,this.provider=t;let r=!1===e.enableAnalytics||iz();this.coveoAnalyticsClient=r?new i0:new iJ(e)}disable(){this.coveoAnalyticsClient=new i0}enable(){this.coveoAnalyticsClient=new iJ(this.opts)}makeInterfaceLoad(){return this.makeSearchEvent(O.interfaceLoad)}logInterfaceLoad(){return nk(this,void 0,void 0,function*(){return(yield this.makeInterfaceLoad()).log({searchUID:this.provider.getSearchUID()})})}makeRecommendationInterfaceLoad(){return this.makeSearchEvent(O.recommendationInterfaceLoad)}logRecommendationInterfaceLoad(){return nk(this,void 0,void 0,function*(){return(yield this.makeRecommendationInterfaceLoad()).log({searchUID:this.provider.getSearchUID()})})}makeRecommendation(){return this.makeCustomEvent(O.recommendation)}logRecommendation(){return nk(this,void 0,void 0,function*(){return(yield this.makeRecommendation()).log({searchUID:this.provider.getSearchUID()})})}makeRecommendationOpen(e,t){return this.makeClickEvent(O.recommendationOpen,e,t)}logRecommendationOpen(e,t){return nk(this,void 0,void 0,function*(){return(yield this.makeRecommendationOpen(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeStaticFilterClearAll(e){return this.makeSearchEvent(O.staticFilterClearAll,e)}logStaticFilterClearAll(e){return nk(this,void 0,void 0,function*(){return(yield this.makeStaticFilterClearAll(e)).log({searchUID:this.provider.getSearchUID()})})}makeStaticFilterSelect(e){return this.makeSearchEvent(O.staticFilterSelect,e)}logStaticFilterSelect(e){return nk(this,void 0,void 0,function*(){return(yield this.makeStaticFilterSelect(e)).log({searchUID:this.provider.getSearchUID()})})}makeStaticFilterDeselect(e){return this.makeSearchEvent(O.staticFilterDeselect,e)}logStaticFilterDeselect(e){return nk(this,void 0,void 0,function*(){return(yield this.makeStaticFilterDeselect(e)).log({searchUID:this.provider.getSearchUID()})})}makeFetchMoreResults(){return this.makeCustomEvent(O.pagerScrolling,{type:"getMoreResults"})}logFetchMoreResults(){return nk(this,void 0,void 0,function*(){return(yield this.makeFetchMoreResults()).log({searchUID:this.provider.getSearchUID()})})}makeInterfaceChange(e){return this.makeSearchEvent(O.interfaceChange,e)}logInterfaceChange(e){return nk(this,void 0,void 0,function*(){return(yield this.makeInterfaceChange(e)).log({searchUID:this.provider.getSearchUID()})})}makeDidYouMeanAutomatic(){return this.makeSearchEvent(O.didyoumeanAutomatic)}logDidYouMeanAutomatic(){return nk(this,void 0,void 0,function*(){return(yield this.makeDidYouMeanAutomatic()).log({searchUID:this.provider.getSearchUID()})})}makeDidYouMeanClick(){return this.makeSearchEvent(O.didyoumeanClick)}logDidYouMeanClick(){return nk(this,void 0,void 0,function*(){return(yield this.makeDidYouMeanClick()).log({searchUID:this.provider.getSearchUID()})})}makeResultsSort(e){return this.makeSearchEvent(O.resultsSort,e)}logResultsSort(e){return nk(this,void 0,void 0,function*(){return(yield this.makeResultsSort(e)).log({searchUID:this.provider.getSearchUID()})})}makeSearchboxSubmit(){return this.makeSearchEvent(O.searchboxSubmit)}logSearchboxSubmit(){return nk(this,void 0,void 0,function*(){return(yield this.makeSearchboxSubmit()).log({searchUID:this.provider.getSearchUID()})})}makeSearchboxClear(){return this.makeSearchEvent(O.searchboxClear)}logSearchboxClear(){return nk(this,void 0,void 0,function*(){return(yield this.makeSearchboxClear()).log({searchUID:this.provider.getSearchUID()})})}makeSearchboxAsYouType(){return this.makeSearchEvent(O.searchboxAsYouType)}logSearchboxAsYouType(){return nk(this,void 0,void 0,function*(){return(yield this.makeSearchboxAsYouType()).log({searchUID:this.provider.getSearchUID()})})}makeBreadcrumbFacet(e){return this.makeSearchEvent(O.breadcrumbFacet,e)}logBreadcrumbFacet(e){return nk(this,void 0,void 0,function*(){return(yield this.makeBreadcrumbFacet(e)).log({searchUID:this.provider.getSearchUID()})})}makeBreadcrumbResetAll(){return this.makeSearchEvent(O.breadcrumbResetAll)}logBreadcrumbResetAll(){return nk(this,void 0,void 0,function*(){return(yield this.makeBreadcrumbResetAll()).log({searchUID:this.provider.getSearchUID()})})}makeDocumentQuickview(e,t){return this.makeClickEvent(O.documentQuickview,e,t)}logDocumentQuickview(e,t){return nk(this,void 0,void 0,function*(){return(yield this.makeDocumentQuickview(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeDocumentOpen(e,t){return this.makeClickEvent(O.documentOpen,e,t)}logDocumentOpen(e,t){return nk(this,void 0,void 0,function*(){return(yield this.makeDocumentOpen(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeOmniboxAnalytics(e){return this.makeSearchEvent(O.omniboxAnalytics,i2
vendor: 4,519 bytes, line 19
19(e))}logOmniboxAnalytics(e){return nk(this,void 0,void 0,function*(){return(yield this.makeOmniboxAnalytics(e)).log({searchUID:this.provider.getSearchUID()})})}makeOmniboxFromLink(e){return this.makeSearchEvent(O.omniboxFromLink,i2(e))}logOmniboxFromLink(e){return nk(this,void 0,void 0,function*(){return(yield this.makeOmniboxFromLink(e)).log({searchUID:this.provider.getSearchUID()})})}makeSearchFromLink(){return this.makeSearchEvent(O.searchFromLink)}logSearchFromLink(){return nk(this,void 0,void 0,function*(){return(yield this.makeSearchFromLink()).log({searchUID:this.provider.getSearchUID()})})}makeTriggerNotify(e){return this.makeCustomEvent(O.triggerNotify,e)}logTriggerNotify(e){return nk(this,void 0,void 0,function*(){return(yield this.makeTriggerNotify(e)).log({searchUID:this.provider.getSearchUID()})})}makeTriggerExecute(e){return this.makeCustomEvent(O.triggerExecute,e)}logTriggerExecute(e){return nk(this,void 0,void 0,function*(){return(yield this.makeTriggerExecute(e)).log({searchUID:this.provider.getSearchUID()})})}makeTriggerQuery(){return this.makeCustomEvent(O.triggerQuery,{query:this.provider.getSearchEventRequestPayload().queryText},"queryPipelineTriggers")}logTriggerQuery(){return nk(this,void 0,void 0,function*(){return(yield this.makeTriggerQuery()).log({searchUID:this.provider.getSearchUID()})})}makeUndoTriggerQuery(e){return this.makeSearchEvent(O.undoTriggerQuery,e)}logUndoTriggerQuery(e){return nk(this,void 0,void 0,function*(){return(yield this.makeUndoTriggerQuery(e)).log({searchUID:this.provider.getSearchUID()})})}makeTriggerRedirect(e){return this.makeCustomEvent(O.triggerRedirect,Object.assign(Object.assign({},e),{query:this.provider.getSearchEventRequestPayload().queryText}))}logTriggerRedirect(e){return nk(this,void 0,void 0,function*(){return(yield this.makeTriggerRedirect(e)).log({searchUID:this.provider.getSearchUID()})})}makePagerResize(e){return this.makeCustomEvent(O.pagerResize,e)}logPagerResize(e){return nk(this,void 0,void 0,function*(){return(yield this.makePagerResize(e)).log({searchUID:this.provider.getSearchUID()})})}makePagerNumber(e){return this.makeCustomEvent(O.pagerNumber,e)}logPagerNumber(e){return nk(this,void 0,void 0,function*(){return(yield this.makePagerNumber(e)).log({searchUID:this.provider.getSearchUID()})})}makePagerNext(e){return this.makeCustomEvent(O.pagerNext,e)}logPagerNext(e){return nk(this,void 0,void 0,function*(){return(yield this.makePagerNext(e)).log({searchUID:this.provider.getSearchUID()})})}makePagerPrevious(e){return this.makeCustomEvent(O.pagerPrevious,e)}logPagerPrevious(e){return nk(this,void 0,void 0,function*(){return(yield this.makePagerPrevious(e)).log({searchUID:this.provider.getSearchUID()})})}makePagerScrolling(){return this.makeCustomEvent(O.pagerScrolling)}logPagerScrolling(){return nk(this,void 0,void 0,function*(){return(yield this.makePagerScrolling()).log({searchUID:this.provider.getSearchUID()})})}makeFacetClearAll(e){return this.makeSearchEvent(O.facetClearAll,e)}logFacetClearAll(e){return nk(this,void 0,void 0,function*(){return(yield this.makeFacetClearAll(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetSearch(e){return this.makeSearchEvent(O.facetSearch,e)}logFacetSearch(e){return nk(this,void 0,void 0,function*(){return(yield this.makeFacetSearch(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetSelect(e){return this.makeSearchEvent(O.facetSelect,e)}logFacetSelect(e){return nk(this,void 0,void 0,function*(){return(yield this.makeFacetSelect(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetDeselect(e){return this.makeSearchEvent(O.facetDeselect,e)}logFacetDeselect(e){return nk(this,void 0,void 0,function*(){return(yield this.makeFacetDeselect(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetExclude(e){return this.makeSearchEvent(O.facetExclude,e)}logFacetExclude(e){return nk(this,void 0,void 0,function*(){return(yield this.makeFacetExclude(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetUnexclude(e){return this.makeSearchEvent(O.facetUnexclude,e)}logFacetUnexclude(e){return nk(this,void 0,void 0,function*(){return(yield this.makeFacetUnexclude(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetSelectAll(e){return this.makeSearchEvent(O.facetSelectAll,e)}logFacetSelectAll(e){return nk(this,void 0,void 0,function*(){return(yield this.makeFacetSelectAll(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetUpdateSort(e){return this.makeSearchEvent(O.facetUpdateSort,e)}
19logFacetUpdateSort(e){return nk(this,void 0,void 0,function*(){return(yield this.makeFacetUpdateSort(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetShowMore(e){return this.makeCustomEvent(O.facetShowMore,e)}logFacetShowMore(e){return nk(this,void 0,void 0,function*(){return(yield this.makeFacetShowMore(e)).log({searchUID:this.provider.getSearchUID()})})}makeFacetShowLess(e){return this.makeCustomEvent(O.facetShowLess,e)}logFacetShowLess(e){return nk(this,void 0,void 0,function*(){return(yield this.makeFacetShowLess(e)).log({searchUID:this.provider.getSearchUID()})})}makeQueryError(e){return this.makeCustomEvent(O.queryError,e)}logQueryError(e){return nk(this,void 0,void 0,function*(){return(yield this.makeQueryError(e)).log({searchUID:this.provider.getSearchUID()})})}makeQueryErrorBack(){return nk(this,void 0,void 0,function*(){let e=yield this.makeCustomEvent(O.queryErrorBack);return{description:e.description,log:()=>nk(this,void 0,void 0,function*(){return yield e.log({searchUID:this.provider.getSearchUID()}),this.logSearchEvent(O.queryErrorBack)})}})}logQueryErrorBack(){return nk(this,void 0,void 0,function*(){return(yield this.makeQueryErrorBack()).log({searchUID:this.provider.getSearchUID()})})}makeQueryErrorRetry(){return nk(this,void 0,void 0,function*(){let e=yield this.makeCustomEvent(O.queryErrorRetry);return{description:e.description,log:()=>nk(this,void 0,void 0,function*(){return yield e.log({searchUID:this.provider.getSearchUID()}),this.logSearchEvent(O.queryErrorRetry)})}})}logQueryErrorRetry(){return nk(this,void 0,void 0,function*(){return(yield this.makeQueryErrorRetry()).log({searchUID:this.provider.getSearchUID()})})}makeQueryErrorClear(){return nk(this,void 0,void 0,function*(){let e=yield this.makeCustomEvent(O.queryErrorClear);return{description:e.description,log:()=>nk(this,void 0,void 0,function*(){return yield e.log({searchUID:this.provider.getSearchUID()}),this.logSearchEvent(O.queryErrorClear)})}})}logQueryErrorClear(){return nk(this,void 0,void 0,function*(){return(yield this.makeQueryErrorClear()).log({searchUID:this.provider.getSearchUID()})})}makeLikeSmartSnippet(){return this.makeCustomEvent(O.likeSmartSnippet)}logLikeSmartSnippet(){return nk(this,void 0,void 0,function*(){return(yield this.makeLikeSmartSnippet()).log({searchUID:this.provider.getSearchUID()})})}makeDislikeSmartSnippet(){return this.makeCustomEvent(O.dislikeSmartSnippet)}logDislikeSmartSnippet(){return nk(this,void 0,void 0,function*(){return(yield this.makeDislikeSmartSnippet()).log({searchUID:this.provider.getSearchUID()})})}makeExpandSmartSnippet(){return this.makeCustomEvent(O.expandSmartSnippet)}logExpandSmartSnippet(){return nk(this,void 0,void 0,function*(){return(yield this.makeExpandSmartSnippet()).log({searchUID:this.provider.getSearchUID()})})}makeCollapseSmartSnippet(){return this.makeCustomEvent(O.collapseSmartSnippet)}logCollapseSmartSnippet(){return nk(this,void 0,void 0,function*(){return(yield this.makeCollapseSmartSnippet()).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetFeedbackModal(){return this.makeCustomEvent(O.openSmartSnippetFeedbackModal)}logOpenSmartSnippetFeedbackModal(){return nk(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetFeedbackModal()).log({searchUID:this.provider.getSearchUID()})})}makeCloseSmartSnippetFeedbackModal(){return this.makeCustomEvent(O.closeSmartSnippetFeedbackModal)}logCloseSmartSnippetFeedbackModal(){return nk(this,void 0,void 0,function*(){return(yield this.makeCloseSmartSnippetFeedbackModal()).log({searchUID:this.provider.getSearchUID()})})}makeSmartSnippetFeedbackReason(e,t){return this.makeCustomEvent(O.sendSmartSnippetReason,{reason:e,details:t})}logSmartSnippetFeedbackReason(e,t){return nk(this,void 0,void 0,function*(){return(yield this.makeSmartSnippetFeedbackReason(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeExpandSmartSnippetSuggestion(e){return this.makeCustomEvent(O.expandSmartSnippetSuggestion,"documentId"in e?e:{documentId:e})}logExpandSmartSnippetSuggestion(e){return nk(this,void 0,void 0,function*(){return(yield this.makeExpandSmartSnippetSuggestion(e)).log({searchUID:this.provider.getSearchUID()})})}makeCollapseSmartSnippetSuggestion(e){return this.makeCustomEvent(O.collapseSmartSnippetSuggestion,"documentId"in e?e:{documentId:e})}logCollapseSmartSnippetSuggestion(e){return nk(this,void 0,void 0,function*(){return(yield this.makeCollapseSmartSnippetSuggestion(e)).log({searchUID:this.provider.getSearchUID()})})}makeShowMoreSmartSnippetSuggestion(e){return this.makeCustomEvent(O.showMoreSmartSnippetSuggestion,e)}logShowMoreSmartSnippetSuggestion(e){return nk(this,void 0,void 0,function*(){return(yield this.makeShowMoreSmartSnippetSuggestion(e)).log({searchUID:this.provider.getSearchUID()})})}makeShowLessSmartSnippetSuggestion(e){return this.makeCustomEvent(O.showLessSmartSnippetSuggestion,e)}logShowLessSmartSnippetSuggestion(e){return nk(this,void 0,void 0,function*(){return(yield this.makeShowLessSmartSnippetSuggestion(e)).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetSource(e,t){return this.makeClickEvent(O.openSmartSnippetSource,e,t)}logOpenSmartSnippetSource(e,t){return nk(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetSource(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetSuggestionSource(e,t){return this.makeClickEvent(O.openSmartSnippetSuggestionSource,e,{contentIDKey:t.documentId.contentIdKey,contentIDValue:t.documentId.contentIdValue},t)}makeCopyToClipboard(e,t){return this.makeClickEvent(O.copyToClipboard,e,t)}logCopyToClipboard(e,t){return nk(this,void 0,void 0,function*(){return(yield this.makeCopyToClipboard(e,t)).log({searchUID:this.provider.getSearchUID()})})}logOpenSmartSnippetSuggestionSource(e,t){return nk(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetSuggestionSource(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetInlineLink(e,t){return this.makeClickEvent(O.openSmartSnippetInlineLink,e,{contentIDKey:t.contentIDKey,contentIDValue:t.contentIDValue},t)}logOpenSmartSnippetInlineLink(e,t){return nk(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetInlineLink(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeOpenSmartSnippetSuggestionInlineLink(e,t){return this.makeClickEvent(O.openSmartSnippetSuggestionInlineLink,e,{contentIDKey:t.documentId.contentIdKey,contentIDValue:t.documentId.contentIdValue},t)}logOpenSmartSnippetSuggestionInlineLink(e,t){return nk(this,void 0,void 0,function*(){return(yield this.makeOpenSmartSnippetSuggestionInlineLink(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeRecentQueryClick(){return this.makeSearchEvent(O.recentQueryClick)}logRecentQueryClick(){return nk(this,void 0,void 0,function*(){return(yield this.makeRecentQueryClick()).log({searchUID:this.provider.getSearchUID()})})}makeClearRecentQueries(){return this.makeCustomEvent(O.clearRecentQueries)}logClearRecentQueries(){return nk(this,void 0,void 0,function*(){return(yield this.makeClearRecentQueries()).log({searchUID:this.provider.getSearchUID()})})}makeRecentResultClick(e,t){return this.makeCustomEvent(O.recentResultClick,{info:e,identifier:t})}logRecentResultClick(e,t){return nk(this,void 0,void 0,function*(){return(yield this.makeRecentResultClick(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeClearRecentResults(){return this.makeCustomEvent(O.clearRecentResults)}logClearRecentResults(){return nk(this,void 0,void 0,function*(){return(yield this.makeClearRecentResults()).log({searchUID:this.provider.getSearchUID()})})}makeNoResultsBack(){return this.makeSearchEvent(O.noResultsBack)}logNoResultsBack(){return nk(this,void 0,void 0,function*(){return(yield this.makeNoResultsBack()).log({searchUID:this.provider.getSearchUID()})})}makeShowMoreFoldedResults(e,t){return this.makeClickEvent(O.showMoreFoldedResults,e,t)}logShowMoreFoldedResults(e,t){return nk(this,void 0,void 0,function*(){return(yield this.makeShowMoreFoldedResults(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeShowLessFoldedResults(){return this.makeCustomEvent(O.showLessFoldedResults)}logShowLessFoldedResults(){return nk(this,void 0,void 0,function*(){return(yield this.makeShowLessFoldedResults()).log({searchUID:this.provider.getSearchUID()})})}makeEventDescription(e,t){var r;return{actionCause:t,customData:null===(r=e.payload)||void 0===r?void 0:r.customData}}makeCustomEvent(e,t){return nk(this,arguments,void 0,function*(e,t,r=iX[e]){this.coveoAnalyticsClient.getParameters;let n=Object.assign(Object.assign({},this.provider.getBaseMetadata()),t),i=Object.assign(Object.assign({},(yield this.getBaseEventRequest(n))),{eventType:r,eventValue:e}),a=yield this.coveoAnalyticsClient.makeCustomEvent(i);return{description:this.makeEventDescription(a,e),log:({searchUID:e})=>a.log({lastSearchQueryUid:e})}})}logCustomEvent(e,t){return nk(this,arguments,void 0,function*(e,t,r=iX[e]){return(yield this.makeCustomEvent(e,t,r)).log({searchUID:this.provider.getSearchUID()})})}makeCustomEventWithType(e,t,r){return nk(this,void 0,void 0,function*(){let n=Object.assign(Object.assign({},this.provider.getBaseMetadata()),r),i=Object.assign(Object.assign({},(yield this.getBaseEventRequest(n))),{eventType:t,eventValue:e}),a=yield this.coveoAnalyticsClient.makeCustomEvent(i);return{description:this.makeEventDescription(a,e),log:({searchUID:e})=>a.log({lastSearchQueryUid:e})}})}logCustomEventWithType(e,t,r){return nk(this,void 0,void 0,function*(){return(yield this.makeCustomEventWithType(e,t,r)).log({searchUID:this.provider.getSearchUID()})})}logSearchEvent(e,t){return nk(this,void 0,void 0,function*(){return(yield this.makeSearchEvent(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeSearchEvent(e,t){return nk(this,void 0,void 0,function*(){let r=yield this.getBaseSearchEventRequest(e,t),n=yield this.coveoAnalyticsClient.makeSearchEvent(r);return{description:this.makeEventDescription(n,e),log:({searchUID:e})=>n.log({searchQueryUid:e})}})}makeClickEvent(e,t,r,n){return nk(this,void 0,void 0,function*(){let i=Object.assign(Object.assign(Object.assign({},t),(yield this.getBaseEventRequest(Object.assign(Object.assign({},r),n)))),{queryPipeline:this.provider.getPipeline(),actionCause:e}),a=yield this.coveoAnalyticsClient.makeClickEvent(i);return{description:this.makeEventDescription(a,e),log:({searchUID:e})=>a.log({searchQueryUid:e})}})}logClickEvent(e,t,r,n){return nk(this,void 0,void 0,function*(){return(yield this.makeClickEvent(e,t,r,n)).log({searchUID:this.provider.getSearchUID()})})}getBaseSearchEventRequest(e,t){return nk(this,void 0,void 0,function*(){var r,n;return Object.assign(Object.assign(Object.assign({},(yield this.getBaseEventRequest(Object.assign(Object.assign({},t),null===(n=(r=this.provider).getGeneratedAnswerMetadata)||void 0===n?void 0:n.call(r))))),this.provider.getSearchEventRequestPayload()),{queryPipeline:this.provider.getPipeline(),actionCause:e})})}getBaseEventRequest(e){return nk(this,void 0,void 0,function*(){let t=Object.assign(Object.assign({},this.provider.getBaseMetadata()),e);return Object.assign(Object.assign(Object.assign({}
19,this.getOrigins()),this.getSplitTestRun()),{customData:t,language:this.provider.getLanguage(),facetState:this.provider.getFacetState?this.provider.getFacetState():[],anonymous:this.provider.getIsAnonymous(),clientId:yield this.getClientId()})})}getOrigins(){var e,t;return{originContext:null===(t=(e=this.provider).getOriginContext)||void 0===t?void 0:t.call(e),originLevel1:this.provider.getOriginLevel1(),originLevel2:this.provider.getOriginLevel2(),originLevel3:this.provider.getOriginLevel3()}}getClientId(){return this.coveoAnalyticsClient instanceof iJ?this.coveoAnalyticsClient.getCurrentVisitorId():void 0}getSplitTestRun(){let e=this.provider.getSplitTestRunName?this.provider.getSplitTestRunName():"",t=this.provider.getSplitTestRunVersion?this.provider.getSplitTestRunVersion():"";return Object.assign(Object.assign({},e&&{splitTestRunName:e}),t&&{splitTestRunVersion:t})}makeLikeGeneratedAnswer(e){return this.makeCustomEvent(O.likeGeneratedAnswer,e)}logLikeGeneratedAnswer(e){return nk(this,void 0,void 0,function*(){return(yield this.makeLikeGeneratedAnswer(e)).log({searchUID:this.provider.getSearchUID()})})}makeDislikeGeneratedAnswer(e){return this.makeCustomEvent(O.dislikeGeneratedAnswer,e)}logDislikeGeneratedAnswer(e){return nk(this,void 0,void 0,function*(){return(yield this.makeDislikeGeneratedAnswer(e)).log({searchUID:this.provider.getSearchUID()})})}makeOpenGeneratedAnswerSource(e){return this.makeCustomEvent(O.openGeneratedAnswerSource,e)}logOpenGeneratedAnswerSource(e){return nk(this,void 0,void 0,function*(){return(yield this.makeOpenGeneratedAnswerSource(e)).log({searchUID:this.provider.getSearchUID()})})}makeGeneratedAnswerCitationClick(e,t){return this.makeClickEvent(O.generatedAnswerCitationClick,Object.assign(Object.assign({},e),{documentPosition:1}),{contentIDKey:t.documentId.contentIdKey,contentIDValue:t.documentId.contentIdValue},t)}logGeneratedAnswerCitationClick(e,t){return nk(this,void 0,void 0,function*(){return(yield this.makeGeneratedAnswerCitationClick(e,t)).log({searchUID:this.provider.getSearchUID()})})}makeGeneratedAnswerSourceHover(e){return this.makeCustomEvent(O.generatedAnswerSourceHover,e)}logGeneratedAnswerSourceHover(e){return nk(this,void 0,void 0,function*(){return(yield this.makeGeneratedAnswerSourceHover(e)).log({searchUID:this.provider.getSearchUID()})})}makeGeneratedAnswerCopyToClipboard(e){return this.makeCustomEvent(O.generatedAnswerCopyToClipboard,e)}logGeneratedAnswerCopyToClipboard(e){return nk(this,void 0,void 0,function*(){return(yield this.makeGeneratedAnswerCopyToClipboard(e)).log({searchUID:this.provider.getSearchUID()})})}makeGeneratedAnswerHideAnswers(e){return this.makeCustomEvent(O.generatedAnswerHideAnswers,e)}logGeneratedAnswerHideAnswers(e){return nk(this,void 0,void 0,function*(){return(yield this.makeGeneratedAnswerHideAnswers(e)).log({searchUID:this.provider.getSearchUID()})})}makeGeneratedAnswerShowAnswers(e){return this.makeCustomEvent(O.generatedAnswerShowAnswers,e)}logGeneratedAnswerShowAnswers(e){return nk(this,void 0,void 0,function*(){return(yield this.makeGeneratedAnswerShowAnswers(e)).log({searchUID:this.provider.getSearchUID()})})}makeGeneratedAnswerExpand(e){return this.makeCustomEvent(O.generatedAnswerExpand,e)}logGeneratedAnswerExpand(e){return nk(this,void 0,void 0,function*(){return(yield this.makeGeneratedAnswerExpand(e)).log({searchUID:this.provider.getSearchUID()})})}makeGeneratedAnswerCollapse(e){return this.makeCustomEvent(O.generatedAnswerCollapse,e)}logGeneratedAnswerCollapse(e){return nk(this,void 0,void 0,function*(){return(yield this.makeGeneratedAnswerCollapse(e)).log({searchUID:this.provider.getSearchUID()})})}makeGeneratedAnswerFeedbackSubmit(e){return this.makeCustomEvent(O.generatedAnswerFeedbackSubmit,e)}logGeneratedAnswerFeedbackSubmit(e){return nk(this,void 0,void 0,function*(){return(yield this.makeGeneratedAnswerFeedbackSubmit(e)).log({searchUID:this.provider.getSearchUID()})})}makeGeneratedAnswerFeedbackSubmitV2(e){return this.makeCustomEvent(O.generatedAnswerFeedbackSubmitV2,e)}logGeneratedAnswerFeedbackSubmitV2(e){return nk(this,void 0,void 0,function*(){return(yield this.makeGeneratedAnswerFeedbackSubmitV2(e)).log({searchUID:this.provider.getSearchUID()})})}makeRephraseGeneratedAnswer(e){return this.makeSearchEvent(O.rephraseGeneratedAnswer,e)}
19logRephraseGeneratedAnswer(e){return nk(this,void 0,void 0,function*(){return(yield this.makeRephraseGeneratedAnswer(e)).log({searchUID:this.provider.getSearchUID()})})}makeRetryGeneratedAnswer(){return this.makeSearchEvent(O.retryGeneratedAnswer)}logRetryGeneratedAnswer(){return nk(this,void 0,void 0,function*(){return(yield this.makeRetryGeneratedAnswer()).log({searchUID:this.provider.getSearchUID()})})}makeGeneratedAnswerStreamEnd(e){return this.makeCustomEvent(O.generatedAnswerStreamEnd,e)}logGeneratedAnswerStreamEnd(e){return nk(this,void 0,void 0,function*(){return(yield this.makeGeneratedAnswerStreamEnd(e)).log({searchUID:this.provider.getSearchUID()})})}}let i4=Object.assign({},n1),i8=Object.keys(i4).map(e=>i4[e]);class i5 extends n3{constructor({client:e,uuidGenerator:t=nz}){super({client:e,uuidGenerator:t}),this.ticket={}}getApi(e){let t=super.getApi(e);return null!==t?t:"setTicket"===e?this.setTicket:null}addHooks(){this.addHooksForEvent(),this.addHooksForPageView(),this.addHooksForSVCEvents()}setTicket(e){this.ticket=e}clearPluginData(){this.ticket={}}addHooksForSVCEvents(){this.client.registerBeforeSendEventHook((e,...[t])=>-1!==i8.indexOf(e)?this.addSVCDataToPayload(e,t):t),this.client.registerAfterSendEventHook((e,...[t])=>(-1!==i8.indexOf(e)&&this.updateLocationInformation(e,t),t))}addHooksForPageView(){this.client.addEventTypeMapping(i4.pageview,{newEventType:x.collect,variableLengthArgumentsNames:["page"],addVisitorIdParameter:!0,usesMeasurementProtocol:!0})}addHooksForEvent(){this.client.addEventTypeMapping(i4.event,{newEventType:x.collect,variableLengthArgumentsNames:["eventCategory","eventAction","eventLabel","eventValue"],addVisitorIdParameter:!0,usesMeasurementProtocol:!0})}addSVCDataToPayload(e,t){var r;let n=Object.assign(Object.assign(Object.assign(Object.assign({},this.getLocationInformation(e,t)),this.getDefaultContextInformation(e)),this.action?{svcAction:this.action}:{}),Object.keys(null!==(r=this.actionData)&&void 0!==r?r:{}).length>0?{svcActionData:this.actionData}:{}),i=this.getTicketPayload();return this.clearData(),Object.assign(Object.assign(Object.assign({},i),n),t)}getTicketPayload(){return it(this.ticket)}}i5.Id="svc",(u=T||(T={})).click="click",u.flowStart="flowStart",(c=R||(R={})).enterInterface="ticket_create_start",c.fieldUpdate="ticket_field_update",c.fieldSuggestionClick="ticket_classification_click",c.documentSuggestionClick="documentSuggestionClick",c.documentSuggestionQuickview="documentSuggestionQuickview",c.suggestionRate="suggestion_rate",c.nextCaseStep="ticket_next_stage",c.caseCancelled="ticket_cancel",c.caseSolved="ticket_cancel",c.caseCreated="ticket_create",(d=_||(_={})).quit="Quit",d.solved="Solved";class i6{constructor(e,t){var r;this.options=e,this.provider=t;let n=(null===(r=e.enableAnalytics)||void 0===r||r)&&!iz();this.coveoAnalyticsClient=n?new iJ(e):new i0,this.svc=new i5({client:this.coveoAnalyticsClient})}disable(){this.coveoAnalyticsClient=new i0,this.svc=new i5({client:this.coveoAnalyticsClient})}enable(){this.coveoAnalyticsClient=new iJ(this.options),this.svc=new i5({client:this.coveoAnalyticsClient})}logEnterInterface(e){return this.svc.setAction(R.enterInterface),this.svc.setTicket(e.ticket),this.sendFlowStartEvent()}logUpdateCaseField(e){return this.svc.setAction(R.fieldUpdate,{fieldName:e.fieldName}),this.svc.setTicket(e.ticket),this.sendClickEvent()}logSelectFieldSuggestion(e){return this.svc.setAction(R.fieldSuggestionClick,e.suggestion),this.svc.setTicket(e.ticket),this.sendClickEvent()}logSelectDocumentSuggestion(e){return this.logClickEvent(R.documentSuggestionClick,e.suggestion.suggestion,{contentIDKey:"permanentId",contentIDValue:e.suggestion.permanentId})}logQuickviewDocumentSuggestion(e){return this.logClickEvent(R.documentSuggestionQuickview,e.suggestion.suggestion,{contentIDKey:"permanentId",contentIDValue:e.suggestion.permanentId})}logRateDocumentSuggestion(e){return this.svc.setAction(R.suggestionRate,Object.assign({rate:e.rating},e.suggestion)),this.svc.setTicket(e.ticket),this.sendClickEvent()}logMoveToNextCaseStep(e){return this.svc.setAction(R.nextCaseStep,{stage:null==e?void 0:e.stage}),this.svc.setTicket(e.ticket),this.sendClickEvent()}logCaseCancelled(e){return this.svc.setAction(R.caseCancelled,{reason:_.quit}),this.svc.setTicket(e.ticket),this.sendClickEvent()}logCaseSolved(e){return this.svc.setAction(R.caseSolved,{reason:_.solved}),this.svc.setTicket(e.ticket),this.sendClickEvent()}logCaseCreated(e){return this.svc.setAction(R.caseCreated),this.svc.setTicket(e.ticket),this.sendClickEvent()}sendFlowStartEvent(){return this.coveoAnalyticsClient.sendEvent("event","svc",T.flowStart,this.provider?{searchHub:this.provider.getOriginLevel1()}:null)}sendClickEvent(){return this.coveoAnalyticsClient.sendEvent("event","svc",T.click,this.provider?{searchHub:this.provider.getOriginLevel1()}:null)}getBaseEventRequest(e){return nk(this,void 0,void 0,function*(){var t,r;let n=Object.assign({},e);return Object.assign(Object.assign({},this.getOrigins()),{customData:n,language:null===(t=this.provider)||void 0===t?void 0:t.getLanguage(),anonymous:null===(r=this.provider)||void 0===r?void 0:r.getIsAnonymous(),clientId:yield this.getClientId()})})}getClientId(){return this.coveoAnalyticsClient instanceof iJ?this.coveoAnalyticsClient.getCurrentVisitorId():void 0}getOrigins(){var e,t,r,n,i;return{originContext:null===(t=null===(e=this.provider)||void 0===e?void 0:e.getOriginContext)||void 0===t?void 0:t.call(e),originLevel1:null===(r=this.provider)||void 0===r?void 0:r.getOriginLevel1(),originLevel2:null===(n=this.provider)||void 0===n?void 0:n.getOriginLevel2(),originLevel3:null===(i=this.provider)||void 0===i?void 0:i.getOriginLevel3()}}logClickEvent(e,t,r,n){return nk(this,void 0,void 0,function*(){var i,a;let o=Object.assign(Object.assign(Object.assign({},t),(yield this.getBaseEventRequest(Object.assign(Object.assign({},r),n)))),{searchQueryUid:null!==(a=null===(i=this.provider)||void 0===i?void 0:i.getSearchUID())&&void 0!==a?a:"",actionCause:e});return this.coveoAnalyticsClient.sendClickEvent(o)})}}let i9=()=>"default",i7=e=>{let t=e.configuration.search.locale.split("-")[0];return t&&2===t.length?t:"en"};class ae{getState;state;
19constructor(e){this.getState=e,this.state=e()}getLanguage(){return i7(this.state)}getBaseMetadata(){let{context:e,configuration:t}=this.state,r=e?.contextValues||{},n={};for(let[e,t]of Object.entries(r))n[`context_${e}`]=t;return"legacy"===t.analytics.analyticsMode&&(n.coveoHeadlessVersion=nw),n}getOriginContext(){return this.state.configuration.analytics.originContext}getOriginLevel1(){return this.state.searchHub||i9()}getOriginLevel2(){return this.state.configuration.analytics.originLevel2}getOriginLevel3(){return this.state.configuration.analytics.originLevel3}getIsAnonymous(){return this.state.configuration.analytics.anonymous}}let at=e=>new iJ(e).getCurrentVisitorId(),ar=(e,t)=>"function"==typeof t?(...r)=>{let n=ei(r[0]);try{return t.apply(t,r)}catch(t){return e.error(t,"Error in analytics preprocessRequest. Returning original request."),n}}:void 0,an=(e,t)=>(...r)=>{let n=ei(r[1]);try{return t.apply(t,r)}catch(t){return e.error(t,"Error in analytics hook. Returning original request."),n}};class ai extends ae{getSearchUID(){return this.state.documentSuggestion?.status.lastResponseId??""}}let aa=e=>e.configuration.search.locale,ao=e=>e.configuration.search.timezone,as=e=>e.configuration.accessToken,al=e=>e.configuration.organizationId,au=e=>e.configuration.environment,ac=e=>e.configuration?.knowledge?.agentId,ad=e=>af(e)||ah(e)?e.generatedAnswer?.answerId:ap(e)?e.search?.response?.extendedResults?.generativeQuestionAnsweringId:void 0,af=e=>"answer"in e&&"generatedAnswer"in e&&!G(e.generatedAnswer?.answerConfigurationId),ah=e=>{let t=ac(e);return"answerGenerationApi"in e&&"generatedAnswer"in e&&"string"==typeof t&&t.trim().length>0},ap=e=>"search"in e&&void 0!==e.search&&"object"==typeof e.search,ag=e=>e.generatedAnswer?.fieldsToIncludeInCitations;function am(){return{desiredCount:5,numberOfValues:8,set:{}}}function aA(e){let{activeValue:t,ancestryMap:r}=function(e){let t=[...e],r=new Map;for(;t.length>0;){let e=t.shift();if("selected"===e.state)return{activeValue:e,ancestryMap:r};if(r)for(let t of e.children)r.set(t,e);t.unshift(...e.children)}return{}}(e);return t?function(e,t){let r=[];if(!e)return[];let n=e;do r.unshift(n),n=t.get(n);while(n);return r}(t,r):[]}nv(e=>e.generatedAnswer?.citations,(e,t)=>t,(e,t)=>e?.find(e=>e.id===t));let ay=(e,t)=>e.categoryFacetSet[t]?.request,av=(e,t)=>{let r=ay(e,t);return aA(r?.currentValues??[])},ab=(e,t)=>{let r=aP(t,e),n=r?r.field:"",i=aF(n,e);return{facetId:e,facetField:n,facetTitle:i}};function aw(e,t){let{facetId:r,facetValue:n}=e,i=ab(r,t),a=aL(t,r);return{...i,facetValue:"hierarchical"===a?a_(t,r):n}}function aS(e){return{facetSet:e.facetSet??{},categoryFacetSet:e.categoryFacetSet??{},dateFacetSet:e.dateFacetSet??{},numericFacetSet:e.numericFacetSet??{},automaticFacetSet:e.automaticFacetSet??am()}}let aI=e=>{let t=[];return ax(e).forEach((r,n)=>{let i=aL(e,r.facetId),a=aM(r,n+1);if(aC(r)){if(!av(e,r.facetId).length)return;t.push({...a,...aD(e,r.facetId),facetType:i,state:"selected"});return}r.currentValues.forEach((e,n)=>{if("idle"===e.state)return;let o=aO(e,n+1,i),s=aE(r)?aR(e):aT(e);t.push({...a,...o,...s})})}),ak(e).forEach((e,r)=>{let n=aN(e,r+1);e.values.forEach((e,r)=>{if("idle"===e.state)return;let i=aO(e,r+1,"specific"),a=aR(e);t.push({...n,...i,...a})})}),t},aE=e=>"specific"===e.type,aC=e=>"hierarchical"===e.type,ax=e=>[...Object.values(e.facetSet),...Object.values(e.categoryFacetSet),...Object.values(e.dateFacetSet),...Object.values(e.numericFacetSet)].map(e=>e.request),ak=e=>[...Object.values(e.automaticFacetSet.set)].map(e=>e.response),aO=(e,t,r)=>({state:e.state,valuePosition:t,facetType:r}),aT=e=>({displayValue:`${e.start}..${e.end}`,value:`${e.start}..${e.end}`,start:e.start,end:e.end,endInclusive:e.endInclusive}),aR=e=>({displayValue:e.value,value:e.value}),a_=(e,t)=>av(e,t).map(e=>e.value).join(";"),aD=(e,t)=>{let r=a_(e,t);return{value:r,valuePosition:1,displayValue:r}},aN=(e,t)=>({title:aF(e.field,e.field),field:e.field,id:e.field,facetPosition:t}),aM=(e,t)=>({title:aF(e.field,e.facetId),field:e.field,id:e.facetId,facetPosition:t}),aF=(e,t)=>`${e}_${t}`,aP=(e,t)=>
19e.facetSet[t]?.request||e.categoryFacetSet[t]?.request||e.dateFacetSet[t]?.request||e.numericFacetSet[t]?.request||e.automaticFacetSet.set[t]?.response,aL=(e,t)=>{let r=aP(e,t);return r?r.type:"specific"},aB=()=>({q:"",enableQuerySyntax:!1});(f=D||(D={})).Ascending="ascending",f.Descending="descending",(h=N||(N={})).Relevancy="relevancy",h.QRE="qre",h.Date="date",h.Field="field",h.NoSort="nosort";let aj=e=>{if(ee(e))return e.map(e=>aj(e)).join(",");switch(e.by){case N.Relevancy:case N.QRE:case N.NoSort:return e.by;case N.Date:return`date ${e.order}`;case N.Field:return`@${e.field} ${e.order}`;default:return""}},aU=()=>({by:N.Relevancy}),aq=(e,t)=>({by:N.Field,order:t,field:e}),aQ=new $({values:{by:new et({enum:N,required:!0}),order:new et({enum:D}),field:new Z}});function aG(){return aj(aU())}class aV{static set(e,t,r){let n,i;r&&(n=new Date).setTime(n.getTime()+r);let a=window.location.hostname;/^(\d{1,3}\.){3}\d{1,3}$/.test(a)||/^([0-9a-fA-F]{0,4}:){2,7}[0-9a-fA-F]{0,4}$/.test(a)?aH(e,t,n):-1===a.indexOf(".")?aH(e,t,n):aH(e,t,n,(i=a.split("."))[i.length-2]+"."+i[i.length-1])}static get(e){let t=e+"=",r=document.cookie.split(";");for(let e=0;e<r.length;e++){let n=r[e];if(0===(n=n.replace(/^\s+/,"")).lastIndexOf(t,0))return n.substring(t.length,n.length)}return null}static erase(e){aV.set(e,"",-1)}}function aH(e,t,r,n){document.cookie=`${e}=${t}`+(r?`;expires=${r.toUTCString()}`:"")+(n?`;domain=${n}`:"")+";path=/;SameSite=Lax"}class aK{static prefix="coveo_";getItem(e){return aV.get(`${aK.prefix}${e}`)}removeItem(e){aV.erase(`${aK.prefix}${e}`)}setItem(e,t,r){aV.set(`${aK.prefix}${e}`,t,r)}}class aW{getItem(e){return null}removeItem(e){}setItem(e,t){}}let aY="__coveo.analytics.history";class aZ{static instance=null;static getInstance(e){return aZ.instance||(aZ.instance=new aZ(e)),aZ.instance}store;constructor(e){this.store=e||(!function(){try{return"undefined"!=typeof localStorage}catch(e){return!1}}()?"undefined"!=typeof navigator&&navigator.cookieEnabled?new aK:!function(){try{return"undefined"!=typeof sessionStorage}catch(e){return!1}}()?new aW:sessionStorage:localStorage)}addElement(e){e.internalTime=new Date().getTime(),e=this.cropQueryElement(this.stripEmptyQuery(e));let t=this.getHistoryWithInternalTime();null!==t?this.isValidEntry(e)&&this.setHistory([e].concat(t)):this.setHistory([e])}async addElementAsync(e){e.internalTime=new Date().getTime(),e=this.cropQueryElement(this.stripEmptyQuery(e));let t=await this.getHistoryWithInternalTimeAsync();null!==t?this.isValidEntry(e)&&this.setHistory([e].concat(t)):this.setHistory([e])}getHistory(){let e=this.getHistoryWithInternalTime();return this.stripEmptyQueries(this.stripInternalTime(e))}async getHistoryAsync(){let e=await this.getHistoryWithInternalTimeAsync();return this.stripEmptyQueries(this.stripInternalTime(e))}getHistoryWithInternalTime(){try{let e=this.store.getItem(aY);if(e&&"string"==typeof e)return JSON.parse(e);return[]}catch(e){return[]}}async getHistoryWithInternalTimeAsync(){try{let e=await this.store.getItem(aY);if(e)return JSON.parse(e);return[]}catch(e){return[]}}setHistory(e){try{this.store.setItem(aY,JSON.stringify(e.slice(0,20)))}catch(e){}}clear(){try{this.store.removeItem(aY)}catch(e){}}getMostRecentElement(){let e=this.getHistoryWithInternalTime();return Array.isArray(e)?e.sort((e,t)=>(t.internalTime||0)-(e.internalTime||0))[0]:null}cropQueryElement(e){return e.name&&e.value&&"query"===e.name.toLowerCase()&&(e.value=e.value.slice(0,75)),e}isValidEntry(e){let t=this.getMostRecentElement();return!t||t.value!==e.value||(e.internalTime||0)-(t.internalTime||0)>6e4}stripInternalTime(e){return Array.isArray(e)?e.map(e=>{let{name:t,time:r,value:n}=e;return{name:t,time:r,value:n}}):[]}stripEmptyQuery(e){let{name:t,time:r,value:n}=e;return t&&"string"==typeof n&&"query"===t.toLowerCase()&&""===n.trim()?{name:t,time:r}:e}stripEmptyQueries(e){return e.map(e=>this.stripEmptyQuery(e))}}class az extends ae{static fallbackPipelineName="default";getFacetState(){return aI(aS(this.getState()))}getPipeline(){return this.state.pipeline||this.state.search?.response.pipeline||az.fallbackPipelineName}getSearchEventRequestPayload(){return{queryText:this.queryText,responseTime:this.responseTime,results:this.resultURIs,numberOfResults:this.numberOfResults}}getSearchUID(){let e=this.getState();return e.search?.searchResponseId||e.search?.response.searchUid||eT().response.searchUid}getSplitTestRunName(){return this.state.search?.response.splitTestRun}getSplitTestRunVersion(){let e=!!this.getSplitTestRunName(),t=this.state.search?.response.pipeline||this.state.pipeline||az.fallbackPipelineName;return e?t:void 0}getBaseMetadata(){let e=this.getState(),t=super.getBaseMetadata(),r=ad(e);return r&&(t.generativeQuestionAnsweringId=r),t}
19getFacetMetadata(e,t){let r=this.getFacetRequest(e),n=r?.field??"";return{...this.getBaseMetadata(),facetId:e,facetField:n,facetValue:t,facetTitle:`${n}_${e}`}}getFacetClearAllMetadata(e){let t=this.getFacetRequest(e),r=t?.field??"";return{...this.getBaseMetadata(),facetId:e,facetField:r,facetTitle:`${r}_${e}`}}getFacetUpdateSortMetadata(e,t){let r=this.getFacetRequest(e),n=r?.field??"";return{...this.getBaseMetadata(),facetId:e,facetField:n,criteria:t,facetTitle:`${n}_${e}`}}getRangeBreadcrumbFacetMetadata(e,t){let r=this.getFacetRequest(e),n=r?.field??"";return{...this.getBaseMetadata(),facetId:e,facetField:n,facetRangeEnd:t.end,facetRangeEndInclusive:t.endInclusive,facetRangeStart:t.start,facetTitle:`${n}_${e}`}}getFacetRequest=e=>this.state.facetSet?.[e]?.request||this.state.categoryFacetSet?.[e]?.request||this.state.dateFacetSet?.[e]?.request||this.state.numericFacetSet?.[e]?.request||this.state.automaticFacetSet?.set[e]?.response;getResultSortMetadata(){return{...this.getBaseMetadata(),resultsSortBy:this.state.sortCriteria??aG()}}getStaticFilterToggleMetadata(e,t){return{...this.getBaseMetadata(),staticFilterId:e,staticFilterValue:t}}getStaticFilterClearAllMetadata(e){return{...this.getBaseMetadata(),staticFilterId:e}}getUndoTriggerQueryMetadata(e){return{...this.getBaseMetadata(),undoneQuery:e}}getCategoryBreadcrumbFacetMetadata(e,t){let r=this.getFacetRequest(e),n=r?.field??"";return{...this.getBaseMetadata(),categoryFacetId:e,categoryFacetField:n,categoryFacetPath:t,categoryFacetTitle:`${n}_${e}`}}getOmniboxAnalyticsMetadata(e,t){let r=this.state.querySuggest?.[e],n=r.completions.map(e=>e.expression),i=r.partialQueries.length-1,a=r.partialQueries[i]||"",o=r.responseId;return{...this.getBaseMetadata(),suggestionRanking:n.indexOf(t),partialQuery:a,partialQueries:r.partialQueries.length>0?r.partialQueries:"",suggestions:n.length>0?n:"",querySuggestResponseId:o}}getInterfaceChangeMetadata(){return{...this.getBaseMetadata(),interfaceChangeTo:this.state.configuration.analytics.originLevel2}}getOmniboxFromLinkMetadata(e){return{...this.getBaseMetadata(),...e}}getGeneratedAnswerMetadata(){let e=this.getState(),t={};return e.generatedAnswer?.isVisible!==void 0&&(t.showGeneratedAnswer=e.generatedAnswer.isVisible),t}get resultURIs(){return this.results?.map(e=>({documentUri:e.uri,documentUriHash:e.raw.urihash}))}get results(){return this.state.search?.response.results}get queryText(){return this.state.query?.q||aB().q}get responseTime(){return this.state.search?.duration||eT().duration}get numberOfResults(){return this.state.search?.response.totalCountFiltered||eT().response.totalCountFiltered}}let a$=({logger:e,getState:t,analyticsClientMiddleware:r=(e,t)=>t,preprocessRequest:n,provider:i})=>{let a=t(),o=a.configuration.accessToken,s=a.configuration.analytics.apiBaseUrl??eC(a.configuration.organizationId,a.configuration.environment,"analytics"),l=a.configuration.analytics.runtimeEnvironment,u=a.configuration.analytics.enabled,c=new i3({token:o,endpoint:s,runtimeEnvironment:l,preprocessRequest:ar(e,n),beforeSendHooks:[an(e,r),(t,r)=>(e.info({...r,type:t,endpoint:s,token:o},"Analytics request"),r)]},i);return u||c.disable(),c},aJ=()=>{let e=aZ.getInstance().getHistory().reverse().find(e=>"PageView"===e.name&&e.value);return e?e.value:""};function aX(e){var t,r;let n=function e(t){return t.childResults?t.childResults.flatMap(t=>[t,...e(t)]):[]}(e),i=[e,...n].filter(e=>e.parentResult).map(e=>e.parentResult);return t=[e,...n,...i],r=e=>e.uniqueId,[...t.reduce((e,t)=>{let n=r(t);return e.has(n)||e.set(n,t),e},new Map).values()]}let a0=()=>"",a1=(e,t,r)=>function(...n){return a4(1===n.length?{...n[0],__legacy__getBuilder:t(n[0].__legacy__getBuilder),analyticsConfigurator:e,providerClass:r}:{prefix:n[0],__legacy__getBuilder:t(n[1]),__legacy__provider:n[2],analyticsConfigurator:e,providerClass:r})},a2=e=>"legacy"===e.configuration.analytics.analyticsMode,a3=e=>"next"===e.configuration.analytics.analyticsMode,a4=({prefix:e,__legacy__getBuilder:t,__legacy__provider:r,analyticsPayloadBuilder:n,analyticsType:i,analyticsConfigurator:a,providerClass:o})=>(r??=e=>new o(e),function(e,t){let r=t=>Object.assign(rp(e,t),{instantlyCallable:!0}),n=r(async(e,{getState:r,extra:n})=>{let{analyticsClientMiddleware:i,preprocessRequest:a,logger:o}=n;return await (await t({getState:r,analyticsClientMiddleware:i,preprocessRequest:a,logger:o})).log({state:r(),extra:n})});return Object.assign(n,{prepare:async({getState:e,analyticsClientMiddleware:n,preprocessRequest:i,logger:a})=>{let{description:o,log:s}=await t({getState:e,analyticsClientMiddleware:n,preprocessRequest:i,logger:a});return{description:o,action:r(async(e,{getState:t,extra:r})=>await s({state:t(),extra:r}))}}}),n}(e,async({getState:e,analyticsClientMiddleware:o,preprocessRequest:s,logger:l})=>{let u=[],c={log:async({state:e})=>{for(let t of u)await t(e)}},d=e(),f=a({getState:e,logger:l,analyticsClientMiddleware:o,preprocessRequest:s,provider:r(e)}),h=await t(f,e());c.description=h?.description,u.push(async e=>{a2(e)&&await a8(h,r,e,l,f.coveoAnalyticsClient)});let{emit:p}=nI(d);return u.push(async e=>{if(a3(e)&&i&&n){let t=n(e);await on(p,i,t)}}),c}));async function a8(e,t,r,n,i){t(()=>r);let a=await e?.log({searchUID:t(()=>r).getSearchUID()});n.info({client:i,response:a},"Analytics response")}let a5=a1(e=>a$({...e,provider:e.provider||new az(e.getState)}),e=>e,az);a1(({logger:e,getState:t,analyticsClientMiddleware:r=(e,t)=>
19t,preprocessRequest:n,provider:i=new ai(t)})=>{let a=t(),o=a.configuration.accessToken,s=a.configuration.analytics.apiBaseUrl??eC(a.configuration.organizationId,a.configuration.environment,"analytics"),l=a.configuration.analytics.runtimeEnvironment,u=a.configuration.analytics.enabled,c=new i6({enableAnalytics:u,token:o,endpoint:s,runtimeEnvironment:l,preprocessRequest:ar(e,n),beforeSendHooks:[an(e,r),(t,r)=>(e.info({...r,type:t,endpoint:s,token:o},"Analytics request"),r)]},i);return u||c.disable(),c},e=>(t,r)=>Promise.resolve({description:{actionCause:"caseAssist"},log:async n=>{e(t,r)}}),ai);let a6=(e,t)=>{let r=-1,n=t.search?.results;return(r=or(e,n))<0&&(r=function(e,t){for(let[r,n]of t.entries())if(-1!==or(e,aX(n)))return r;return -1}(e,n)),r<0&&(r=0),function(e,t,r){let n=e.raw.collection;return{collectionName:"string"==typeof n?n:"default",documentAuthor:function(e){let t=e.raw.author;return G(t)?"unknown":Array.isArray(t)?t.join(";"):`${t}`}(e),documentPosition:t+1,documentTitle:e.title,documentUri:e.uri,documentUriHash:e.raw.urihash,documentUrl:e.clickUri,rankingModifier:e.rankingModifier||"",sourceName:function(e){let t=e.raw.source;return G(t)?"unknown":t}(e),queryPipeline:r.pipeline||a0()}}(e,r+(t.pagination?.firstResult??0),t)},a9=e=>(e.raw.permanentid||console.warn("Missing field permanentid on result. This might cause many issues with your Coveo deployment. See https://docs.coveo.com/en/1913 and https://docs.coveo.com/en/1640 for more information.",e),{contentIDKey:"permanentid",contentIDValue:e.raw.permanentid||""}),a7={urihash:new Z,sourcetype:new Z,permanentid:new Z},oe={uniqueId:eY,raw:new $({values:a7}),title:eY,uri:eY,clickUri:eY,rankingModifier:new Z({required:!1,emptyAllowed:!0})},ot=e=>{var t;return new U(oe).validate(Object.assign({},...Object.keys(oe).map(t=>({[t]:e[t]})),{raw:(t=e.raw,Object.assign({},...Object.keys(a7).map(e=>({[e]:t[e]}))))}))};function or(e,t=[]){return t.findIndex(({uniqueId:t})=>t===e.uniqueId)}async function on(e,t,r){await e(t,r)}(p=M||(M={})).interfaceLoad="interfaceLoad",p.interfaceChange="interfaceChange",p.didYouMeanAutomatic="didYouMeanAutomatic",p.didYouMeanClick="didYouMeanClick",p.resultsSort="resultsSort",p.searchboxSubmit="searchboxSubmit",p.searchboxAsYouType="searchboxAsYouType",p.breadcrumbFacet="breadcrumbFacet",p.breadcrumbResetAll="breadcrumbResetAll",p.documentOpen="documentOpen",p.omniboxAnalytics="omniboxAnalytics",p.omniboxFromLink="omniboxFromLink",p.searchFromLink="searchFromLink",p.triggerQuery="query",p.browseResults="browseResults",p.staticFilterDeselect="staticFilterDeselect",p.facetClearAll="facetClearAll",p.facetSelect="facetSelect",p.facetDeselect="facetDeselect",p.facetExclude="facetExclude",p.facetUnexclude="facetUnexclude",p.facetUpdateSort="facetUpdateSort",p.documentSuggestion="documentSuggestion",p.facetShowMore="showMoreFacetResults",p.facetShowLess="showLessFacetResults",p.queryError="query",p.recommendationInterfaceLoad="recommendationInterfaceLoad",p.likeSmartSnippet="likeSmartSnippet",p.dislikeSmartSnippet="dislikeSmartSnippet",p.expandSmartSnippet="expandSmartSnippet",p.collapseSmartSnippet="collapseSmartSnippet",p.openSmartSnippetFeedbackModal="openSmartSnippetFeedbackModal",p.closeSmartSnippetFeedbackModal="closeSmartSnippetFeedbackModal",p.sendSmartSnippetReason="sendSmartSnippetReason",p.expandSmartSnippetSuggestion="expandSmartSnippetSuggestion",p.collapseSmartSnippetSuggestion="collapseSmartSnippetSuggestion",p.openSmartSnippetSource="openSmartSnippetSource",p.openSmartSnippetSuggestionSource="openSmartSnippetSuggestionSource",p.showMoreFoldedResults="showMoreFoldedResults",p.showLessFoldedResults="showLessFoldedResults",p.copyToClipboard="copyToClipboard",p.caseSendEmail="Case.SendEmail",p.feedItemTextPost="FeedItem.TextPost",p.caseAttach="caseAttach",p.caseDetach="caseDetach",p.generatedAnswerCitationDocumentAttach="generatedAnswerCitationDocumentAttach",p.retryGeneratedAnswer="retryGeneratedAnswer",p.likeGeneratedAnswer="likeGeneratedAnswer",p.dislikeGeneratedAnswer="dislikeGeneratedAnswer",p.openGeneratedAnswerSource="openGeneratedAnswerSource",p.generatedAnswerStreamEnd="generatedAnswerStreamEnd",p.contextChanged="contextChanged",p.generatedAnswerSourceHover="generatedAnswerSourceHover",p.generatedAnswerFeedbackSubmit="generatedAnswerFeedbackSubmit",p.generatedAnswerHideAnswers="generatedAnswerHideAnswers",p.generatedAnswerShowAnswers="generatedAnswerShowAnswers",p.generatedAnswerExpand="generatedAnswerExpand",p.generatedAnswerCollapse="generatedAnswerCollapse",p.generatedAnswerCopyToClipboard="generatedAnswerCopyToClipboard",p.expandToFullUI="expandToFullUI",p.createArticle="createArticle",p.recentQueriesClick="recentQueriesClick",p.clearRecentQueries="clearRecentQueries";let oi=()=>a5("analytics/interface/load",e=>e.makeInterfaceLoad()),oa=()=>a5("analytics/interface/change",(e,t)=>e.makeInterfaceChange({interfaceChangeTo:t.configuration.analytics.originLevel2})),oo=()=>a5("analytics/interface/searchFromLink",e=>e.makeSearchFromLink()),os=e=>a5("analytics/interface/omniboxFromLink",t=>t.makeOmniboxFromLink(e)),ol=()=>({actionCause:M.interfaceLoad}),ou=()=>({actionCause:M.interfaceChange}),oc=()=>({actionCause:M.searchFromLink}),od=()=>({actionCause:M.omniboxFromLink}),of=()=>eY,oh=t$("configuration/updateBasicConfiguration",e=>e2(e,{accessToken:eZ,environment:new Z({required:!1,constrainTo:["prod","hipaa","stg","dev"]}),organizationId:eZ})),op=t$("configuration/updateSearchConfiguration",e=>e2(e,{proxyBaseUrl:new Z({required:!1,url:!0}),pipeline:new Z({required:!1,emptyAllowed:!0}),searchHub:eZ,timezone:eZ,locale:eZ,authenticationProviders:new X({required:!1,each:eY})})),og={enabled:new V({default:!0}),originContext:eZ,originLevel2:eZ,originLevel3:eZ,proxyBaseUrl:new Z({required:!1,url:!0}),runtimeEnvironment:new q,anonymous:new V({default:!1}),deviceId:eZ,userDisplayName:eZ,documentLocation:eZ,trackingId:eX,analyticsMode:new Z({constrainTo:["legacy","
19next"],required:!1,default:"next"}),source:new $({options:{required:!1},values:["@coveo/atomic","@coveo/quantic"].reduce((e,t)=>(e[t]=eJ,e),{})})},om=t$("configuration/updateAnalyticsConfiguration",e=>e2(e,og)),oA=t$("configuration/analytics/disable"),oy=t$("configuration/analytics/enable"),ov=t$("configuration/analytics/originlevel2",e=>e2(e,{originLevel2:of()})),ob=t$("configuration/analytics/originlevel3",e=>e2(e,{originLevel3:of()})),ow=t$("knowledge/setAgentId",e=>e2(e,new Z({required:!0}))),oS={q:new Z,enableQuerySyntax:new V,aq:new Z,cq:new Z,firstResult:new K({min:0}),numberOfResults:new K({min:0}),sortCriteria:new Z,f:new $,fExcluded:new $,cf:new $,nf:new $,mnf:new $,df:new $,debug:new V,sf:new $,tab:new Z,af:new $},oI=t$("searchParameters/restore",e=>e2(e,oS)),oE=t$("searchParameters/restoreTab",e=>e2(e,eY)),oC=t$("debug/enable"),ox=t$("debug/disable"),ok=()=>!1,oO=t9(ok(),e=>{e.addCase(oC,()=>!0).addCase(ox,()=>!1).addCase(oI,(e,t)=>t.payload.debug??e)}),oT=t$("history/undo"),oR=t$("history/redo"),o_=t$("history/snapshot");rp("history/back",async(e,{dispatch:t})=>{t(oT()),await t(oD())}),rp("history/forward",async(e,{dispatch:t})=>{t(oR()),await t(oD())});let oD=rp("history/change",async(e,{getState:t})=>t().history.present),oN=t$("pipeline/set",e=>e2(e,new Z({required:!0,emptyAllowed:!0}))),oM=t9(a0(),e=>{e.addCase(oN,(e,t)=>t.payload).addCase(oD.fulfilled,(e,t)=>t.payload?.pipeline??e).addCase(op,(e,t)=>t.payload.pipeline||e)}),oF=t$("breadcrumb/deselectAll"),oP=t$("breadcrumb/deselectAllNonBreadcrumbs"),oL=t$("facet/updateFacetAutoSelection",e=>e2(e,{allow:new V({required:!0})}));class oB extends az{getState;constructor(e){super(e),this.getState=e}get activeInstantResultQuery(){let e=this.getState().instantResults;for(let t in e)for(let r in e[t].cache)if(e[t].cache[r].isActive)return e[t].q;return null}get activeInstantResultCache(){let e=this.getState().instantResults;for(let t in e)for(let r in e[t].cache)if(e[t].cache[r].isActive)return e[t].cache[r];return null}get results(){return this.activeInstantResultCache?.results}get queryText(){return this.activeInstantResultQuery??aB().q}get responseTime(){return this.activeInstantResultCache?.duration??eT().duration}get numberOfResults(){return this.activeInstantResultCache?.totalCountFiltered??eT().response.totalCountFiltered}getSearchUID(){return this.activeInstantResultCache?.searchUid||super.getSearchUID()}}let oj=()=>a5("analytics/instantResult/searchboxAsYouType",e=>e.makeSearchboxAsYouType(),e=>new oB(e)),oU=()=>({actionCause:M.searchboxAsYouType}),oq={id:eY},oQ={...oq,q:ez},oG=t$("instantResults/register",e=>e2(e,oq)),oV=t$("instantResults/updateQuery",e=>e2(e,oQ)),oH=t$("instantResults/clearExpired",e=>e2(e,oq)),oK=new K({required:!0,min:0}),oW=t$("pagination/registerNumberOfResults",e=>e2(e,oK)),oY=t$("pagination/updateNumberOfResults",e=>e2(e,oK)),oZ=t$("pagination/registerPage",e=>e2(e,oK)),oz=t$("pagination/updatePage",e=>e2(e,oK)),o$=t$("pagination/nextPage"),oJ=t$("pagination/previousPage"),oX=t$("query/updateQuery",e=>e2(e,{q:new Z,enableQuerySyntax:new V})),o0=(e,t,r)=>({analytics:{clientId:t.clientId,clientTimestamp:new Date().toISOString(),documentReferrer:t.referrer,documentLocation:t.location,originContext:e.originContext,...r&&{actionCause:r.actionCause},...r&&{customData:r.customData},...e.userDisplayName&&{userDisplayName:e.userDisplayName},...e.deviceId&&{deviceId:e.deviceId},...e.trackingId&&{trackingId:e.trackingId},capture:t.capture??""!==t.clientId,source:nS(e)}}),o1=(e,t,r)=>({accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,url:e.configuration.search.apiBaseUrl??ex(e.configuration.organizationId,e.configuration.environment),locale:e.configuration.search.locale,debug:e.debug,tab:e.configuration.analytics.originLevel2,referrer:t.referrer,timezone:e.configuration.search.timezone,...e.advancedSearchQueries?.aq&&{aq:e.advancedSearchQueries.aq},...e.advancedSearchQueries?.cq&&{cq:e.advancedSearchQueries.cq},...e.advancedSearchQueries?.lq&&{lq:e.advancedSearchQueries.lq},...e.advancedSearchQueries?.dq&&{dq:e.advancedSearchQueries.dq},...e.context&&{context:e.context.contextValues},...e.fields&&!e.fields.fetchAllFields&&{fieldsToInclude:e.fields.fieldsToInclude},...e.dictionaryFieldContext&&{dictionaryFieldContext:e.dictionaryFieldContext.contextValues},...e.pipeline&&{pipeline:e.pipeline},...e.query&&{q:e.query.q,enableQuerySyntax:e.query.enableQuerySyntax},...e.searchHub&&{searchHub:e.searchHub},...e.sortCriteria&&{sortCriteria:e.sortCriteria},...e.configuration.analytics.enabled&&o0(e.configuration.analytics,t,r),...e.excerptLength&&!G(e.excerptLength.length)&&{excerptLength:e.excerptLength.length},...e.configuration.search.authenticationProviders.length&&{authentication:e.configuration.search.authenticationProviders.join(",")}}),o2=async(e,t)=>{let r="next"===e.analyticsMode;return{analytics:{clientId:await at(e),clientTimestamp:new Date().toISOString(),documentReferrer:e.originLevel3,originContext:e.originContext,...t&&{actionCause:t.actionCause,customData:t.customData},...t&&!r&&{customData:t.customData},...e.userDisplayName&&{userDisplayName:e.userDisplayName},...e.documentLocation&&{documentLocation:e.documentLocation},...e.deviceId&&{deviceId:e.deviceId},...aJ()&&{pageId:aJ()},...r&&e.trackingId&&{trackingId:e.trackingId},capture:r,...r&&{source:nS(e)}}}},o3=async(e,t)=>({accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,url:e.configuration.search.apiBaseUrl??ex(e.configuration.organizationId,e.configuration.environment),locale:e.configuration.search.locale,debug:e.debug,tab:e.configuration.analytics.originLevel2,referrer:e.configuration.analytics.originLevel3,timezone:e.configuration.search.timezone,...e.configuration.analytics.enabled&&{actionsHistory:aZ.getInstance().getHistory()},...e.advancedSearchQueries?.aq&&{aq:e.advancedSearchQueries.aq},...e.advancedSearchQueries?.cq&&{cq:e.advancedSearchQueries.cq},...e.advancedSearchQueries?.lq&&{lq:e.advancedSearchQueries.lq},...e.advancedSearchQueries?.dq&&{dq:e.advancedSearchQueries.dq},...e.context&&{context:e.context.contextValues},...e.fields&&!e.fields.fetchAllFields&&{fieldsToInclude:e.fields.fieldsToInclude},...e.dictionaryFieldContext&&{dictionaryFieldContext:e.dictionaryFieldContext.contextValues},...e.pipeline&&{pipeline:e.pipeline},...e.query&&{q:e.query.q,enableQuerySyntax:e.query.enableQuerySyntax},...e.searchHub&&{searchHub:e.searchHub},...e.sortCriteria&&{sortCriteria:e.sortCriteria},...e.configuration.analytics.enabled&&await o2(e.configuration.analytics,t),...e.excerptLength&&!G(e.excerptLength.length)&&{excerptLength:e.excerptLength.length},...e.configuration.search.authenticationProviders.length&&{authentication:e.configuration.search.authenticationProviders.join(",")}}),o4=()=>({cq:"",cqWasSet:!1,aq:"",aqWasSet:!1,lq:"",lqWasSet:!1,dq:"",dqWasSet:!1,defaultFilters:{cq:"",aq:"",lq:"",dq:""}}),o8=()=>a5("search/logFetchMoreResults",e=>e.makeFetchMoreResults()),o5=e=>a5("search/queryError",(t,r)=>t.makeQueryError({query:r.query?.q||aB().q,aq:r.advancedSearchQueries?.aq||o4().aq,cq:r.advancedSearchQueries?.cq||o4().cq,dq:r.advancedSearchQueries?.dq||o4().dq,errorType:e.type,errorMessage:e.message}));var o6=r(85456),o9=r(44014),o7=r(53786);o6.extend(o7);let se="YYYY/MM/DD@HH:mm:ss";function st(e,t){let r=o6(e,t);return r.isValid()||t?r:o6(e,se)}function sr(e){return e.format(se)}function sn(e,t){let r=st(e,t);if(!r.isValid()){let r=` with the format "${t}"`;throw Error(`Could not parse the provided date "${e}
19"${t?r:". Please provide a date format string in the configuration options. See https://day.js.org/docs/en/parse/string-format for more information."}`)}si(r)}function si(e){if(e.isBefore("1401-01-01"))throw Error(`Date is before year 1401, which is unsupported by the API: ${e}`)}o6.extend(o9);let sa=["past","now","next"],so=["minute","hour","day","week","month","quarter","year"],ss=e=>{let t="now"===e;return{amount:new K({required:!t,min:1}),unit:new Z({required:!t,constrainTo:so}),period:new Z({required:!0,constrainTo:sa})}};function sl(e){if("string"==typeof e&&!sf(e))throw Error(`The value "${e}" is not respecting the relative date format "period-amount-unit"`);let t="string"==typeof e?sh(e):e;new U(ss(t.period)).validate(t);let r=su(t),n=JSON.stringify(t);if(!r.isValid())throw Error(`Date is invalid: ${n}`);si(r)}function su(e){let{period:t,amount:r,unit:n}=e;switch(t){case"past":return o6().subtract(r,n);case"next":return o6().add(r,n);case"now":return o6()}}function sc(e){return sr(su(sh(e)))}function sd(e){return e.toLocaleLowerCase().split("-")}function sf(e){let[t,r,n]=sd(e);if("now"===t)return!0;if(!sa.includes(t)||!so.includes(n))return!1;let i=parseInt(r);return!Number.isNaN(i)&&!(i<=0)}function sh(e){let[t,r,n]=sd(e);return"now"===t?{period:"now"}:{period:t,amount:r?parseInt(r):void 0,unit:n||void 0}}let sp=()=>({dateFacetValueMap:{}});function sg(e,t){if("dateRange"===e.type){let{facetId:r,currentValues:n}=e;return t.dateFacetValueMap[r]={},{...e,currentValues:n.map(e=>{var n,i;let a,o;return a=e.start,o=e.end,sf(a)&&(a=sc(a),t.dateFacetValueMap[r][n=a,`start${n}`]=e.start),sf(o)&&(o=sc(o),t.dateFacetValueMap[r][i=o,`end${i}`]=e.end),{...e,start:a,end:o}})}}return e}function sm(e){let t=sp();return{request:{...e,facets:e.facets?.map(e=>sg(e,t))},mappings:t}}function sA(e,t){return"success"in e?{success:{...e.success,facets:e.success.facets?.map(e=>e.facetId in t.dateFacetValueMap?{...e,values:e.values.map(r=>{var n,i,a;return n=e.facetId,{...r,start:t.dateFacetValueMap[n][i=r.start,`start${i}`]||r.start,end:t.dateFacetValueMap[n][a=r.end,`end${a}`]||r.end}})}:e)}}:e}let sy=t$("didYouMean/enable"),sv=t$("didYouMean/disable"),sb=t$("didYouMean/automaticCorrections/disable"),sw=t$("didYouMean/automaticCorrections/enable"),sS=t$("didYouMean/correction",e=>e2(e,eY)),sI=t$("didYouMean/automaticCorrections/mode",e=>e2(e,new Z({constrainTo:["next","legacy"],emptyAllowed:!1,required:!0}))),sE=()=>a5("analytics/didyoumean/click",e=>e.makeDidYouMeanClick()),sC=()=>a5("analytics/didyoumean/automatic",e=>e.makeDidYouMeanAutomatic()),sx=()=>({actionCause:M.didYouMeanClick}),sk=()=>({actionCause:M.didYouMeanAutomatic});function sO(){return{contextValues:{}}}function sT(){return{contextValues:{}}}function sR(){return{enabled:!0,tabs:{}}}function s_(){return{freezeFacetOrder:!1,facets:{}}}function sD(){return{firstResult:0,defaultNumberOfResults:10,numberOfResults:10,totalCountFiltered:0}}function sN(e){return{context:e.context||sO(),dictionaryFieldContext:e.dictionaryFieldContext||sT(),facetSet:e.facetSet||{},numericFacetSet:e.numericFacetSet||{},dateFacetSet:e.dateFacetSet||{},categoryFacetSet:e.categoryFacetSet||{},automaticFacetSet:e.automaticFacetSet??am(),pagination:e.pagination||sD(),query:e.query||aB(),tabSet:e.tabSet||{},advancedSearchQueries:e.advancedSearchQueries||o4(),staticFilterSet:e.staticFilterSet||{},querySet:e.querySet||{},sortCriteria:e.sortCriteria||aG(),pipeline:e.pipeline||a0(),searchHub:e.searchHub||i9(),facetOptions:e.facetOptions||s_(),facetOrder:e.facetOrder??[],debug:e.debug??ok()}}new $({values:{undoneQuery:ez},options:{required:!0}});let sM=()=>a5("analytics/trigger/query",(e,t)=>t.triggers?.queryModification.newQuery?e.makeTriggerQuery():null),sF=t$("trigger/query/ignore",e=>e2(e,new Z({emptyAllowed:!0,required:!0}))),sP=t$("trigger/query/modification",e=>e2(e,new $({values:{originalQuery:eZ,modification:eZ}})));function sL(e){return Object.values(e).map(e=>e.request)}function sB(e,t){let r={};e.forEach(e=>{r[e.facetId]=e});let n=[];return t.forEach(e=>{e in r&&(n.push(r[e]),delete r[e])}),[...n,...Object.values(r)]}function sj(e){return sL(e).map(e=>{let t=e.currentValues.some(({state:e})=>"idle"!==e);return e.generateAutomaticRanges&&!t?{...e,currentValues:[]}:e})}let sU={alphanumericDescending:{type:"alphanumeric",order:"descending"}
19,alphanumericNaturalDescending:{type:"alphanumericNatural",order:"descending"}};function sq(e){return sB([...sL(e.facetSet??{}).map(e=>{let t=sU[e.sortCriteria];return t?{...e,sortCriteria:t}:e}),...sj(e.numericFacetSet??{}),...sj(e.dateFacetSet??{}),...sL(e.categoryFacetSet??{})].filter(({facetId:t})=>e.facetOptions?.facets[t]?.enabled??!0),e.facetOrder??[])}let sQ=async(e,t)=>{let r=function(e){let t=e.advancedSearchQueries?.cq.trim()||"",r=Object.values(e.tabSet||{}).find(e=>e.isActive);return[t,r?.expression.trim()||"",...Object.values(e.staticFilterSet||{}).map(e=>{let t=e.values.filter(e=>"selected"===e.state&&!!e.expression.trim()),r=t.map(e=>e.expression).join(" OR ");return t.length>1?`(${r})`:r})].filter(e=>!!e).join(" AND ")}(e),n=sq(e),i=function(e){let t=e.automaticFacetSet?.set;return t?Object.values(t).map(e=>e.response).map(sG).filter(e=>e.currentValues.length>0):void 0}(e);return sm({...await o3(e,t),...e.didYouMean&&{queryCorrection:{enabled:e.didYouMean.enableDidYouMean&&"next"===e.didYouMean.queryCorrectionMode,options:{automaticallyCorrect:e.didYouMean.automaticallyCorrectQuery?"whenNoResults":"never"}},enableDidYouMean:e.didYouMean.enableDidYouMean&&"legacy"===e.didYouMean.queryCorrectionMode},...r&&{cq:r},...n.length&&{facets:n},...e.pagination&&{numberOfResults:e.pagination?e.pagination.firstResult+e.pagination.numberOfResults>5e3?5e3-e.pagination.firstResult:e.pagination.numberOfResults:void 0,firstResult:e.pagination.firstResult},...e.facetOptions&&{facetOptions:{freezeFacetOrder:e.facetOptions.freezeFacetOrder}},...e.folding?.enabled&&{filterField:e.folding.fields.collection,childField:e.folding.fields.parent,parentField:e.folding.fields.child,filterFieldRange:e.folding.filterFieldRange},...e.automaticFacetSet&&{generateAutomaticFacets:{desiredCount:e.automaticFacetSet.desiredCount,numberOfValues:e.automaticFacetSet.numberOfValues,currentFacets:i}},...e.generatedAnswer&&{pipelineRuleParameters:{mlGenerativeQuestionAnswering:{responseFormat:e.generatedAnswer.responseFormat,citationsFieldToInclude:e.generatedAnswer.fieldsToIncludeInCitations}}}})};function sG(e){let{field:t,label:r,values:n}=e;return{field:t,label:r,currentValues:n.filter(e=>"selected"===e.state)}}class sV{config;onUpdateQueryForCorrection;constructor(e,t=e=>{this.dispatch(oX({q:e}))}){this.config=e,this.onUpdateQueryForCorrection=t}async fetchFromAPI({mappings:e,request:t},r){let n=Date.now();return{response:sA(await this.extra.apiClient.search(t,r),e),duration:Date.now()-n,queryExecuted:this.getState().query?.q||"",requestExecuted:t}}async process(e){return this.processQueryErrorOrContinue(e)??await this.processQueryCorrectionsOrContinue(e)??await this.processQueryTriggersOrContinue(e)??this.processSuccessResponse(e)}processQueryErrorOrContinue(e){return eQ(e.response)?(this.dispatch(o5(e.response.error)),this.rejectWithValue(e.response.error)):null}async processQueryCorrectionsOrContinue(e){let t=this.getState(),r=this.getSuccessResponse(e);if(!r||!t.didYouMean)return null;let{enableDidYouMean:n,automaticallyCorrectQuery:i}=t.didYouMean,{results:a,queryCorrections:o,queryCorrection:s}=r;if(!n||!i)return null;let l=0===a.length&&o&&0!==o.length,u=!G(s)&&!G(s.correctedQuery);if(!l&&!u)return null;let c=l?await this.processLegacyDidYouMeanAutoCorrection(e):this.processModernDidYouMeanAutoCorrection(e);return this.dispatch(o_(sN(this.getState()))),c}async processLegacyDidYouMeanAutoCorrection(e){let t=this.getCurrentQuery(),r=this.getSuccessResponse(e);if(!r.queryCorrections)return null;let{correctedQuery:n}=r.queryCorrections[0],i=await this.automaticallyRetryQueryWithCorrection(n);return eQ(i.response)?(this.dispatch(o5(i.response.error)),this.rejectWithValue(i.response.error)):(this.logOriginalAnalyticsQueryBeforeAutoCorrection(e),this.dispatch(o_(sN(this.getState()))),{...i,response:{...i.response.success,queryCorrections:r.queryCorrections},automaticallyCorrected:!0,originalQuery:t,analyticsAction:sC()})}processModernDidYouMeanAutoCorrection(e){let t=this.getSuccessResponse(e),{correctedQuery:r,originalQuery:n}=t.queryCorrection;return this.onUpdateQueryForCorrection(r),{...e,response:{...t},queryExecuted:r,automaticallyCorrected:!0,originalQuery:n,analyticsAction:sC()}}logOriginalAnalyticsQueryBeforeAutoCorrection(e){let t=this.getState(),r=this.getSuccessResponse(e);this.analyticsAction?.()(this.dispatch,()=>this.getStateAfterResponse(e.queryExecuted,e.duration,t,r),this.extra)}async processQueryTriggersOrContinue(e){let t=this.getSuccessResponse(e);if(!t)return null;let r=t.triggers.find(e=>"query"===e.type)?.content||"";if(!r)return null;if(this.getState().triggers?.queryModification.queryToIgnore===r)return this.dispatch(sF("")),null;this.analyticsAction&&await this.dispatch(this.analyticsAction);let n=this.getCurrentQuery(),i=await this.automaticallyRetryQueryWithTriggerModification(r);return eQ(i.response)?(this.dispatch(o5(i.response.error)),this.rejectWithValue(i.response.error)):(this.dispatch(o_(sN(this.getState()))),{...i,response:{...i.response.success},automaticallyCorrected:!1,originalQuery:n,analyticsAction:sM()})}getStateAfterResponse(e,t,r,n){return{...r,query:{q:e,enableQuerySyntax:r.query?.enableQuerySyntax??aB().enableQuerySyntax},search:{...eT(),duration:t,response:n,results:n.results}}}processSuccessResponse(e){return this.dispatch(o_(sN(this.getState()))),{...e,response:this.getSuccessResponse(e),automaticallyCorrected:!1,originalQuery:this.getCurrentQuery(),analyticsAction:this.analyticsAction}}getSuccessResponse(e){return eq(e.response)?e.response.success:null}async automaticallyRetryQueryWithCorrection(e){this.onUpdateQueryForCorrection(e);let t=await this.fetchFromAPI(await sQ(this.getState()),{origin:"mainSearch"});return this.dispatch(sS(e)),t}async automaticallyRetryQueryWithTriggerModification(e){return this.dispatch(sP({newQuery:e,originalQuery:this.getCurrentQuery()})),this.onUpdateQueryForCorrection(e),await this.fetchFromAPI(await sQ(this.getState()),{origin:"mainSearch"})}getCurrentQuery(){let e=this.getState();return e.query?.q!==void 0?e.query.q:""}get extra(){return this.config.extra}getState(){return this.config.getState()}get dispatch(){return this.config.dispatch}get analyticsAction(){return this.config.analyticsAction}get rejectWithValue(){return this.config.rejectWithValue}}rp("search/executeSearch",async(e,t)=>{let r=t.getState();return await sX(r,t,e)}),rp("search/fetchPage",async(e,t)=>{let r=t.getState();return await sz(r,t,e)}),rp("search/fetchMoreResults",async(e,t)=>{let r=t.getState();return await s$(t,r)}),rp("search/fetchFacetValues",async(e,t)=>{let r=t.getState();return await sJ(t,e,r)}
19),rp("search/fetchInstantResults",async(e,t)=>sZ(e,t));let sH=async(e,t)=>{let r=await sQ(e,t);return r.request={...r.request,firstResult:(e.pagination?.firstResult??0)+(e.search?.results.length??0)},r},sK=async(e,t,r)=>sm({...await o3(e),...e.didYouMean&&{enableDidYouMean:e.didYouMean.enableDidYouMean},numberOfResults:r,q:t}),sW=async(e,t)=>{let r=await sQ(e,t);return r.request.numberOfResults=0,r},sY=e=>{e.configuration.analytics.enabled&&aZ.getInstance().addElement({name:"Query",...e.query?.q&&{value:e.query.q},time:JSON.stringify(new Date)})};async function sZ(e,t){e2(e,{id:eY,q:eY,maxResultsPerQuery:new K({required:!0,min:1}),cacheTimeout:new K});let{q:r,maxResultsPerQuery:n}=e,i=t.getState(),a=new sV({...t,analyticsAction:oj()},r=>{t.dispatch(oV({q:r,id:e.id}))}),o=await sK(i,r,n),s=await a.fetchFromAPI(o,{origin:"instantResults",disableAbortWarning:!0}),l=await a.process(s);return"response"in l?{results:l.response.results,searchUid:l.response.searchUid,analyticsAction:l.analyticsAction,totalCountFiltered:l.response.totalCountFiltered,duration:l.duration}:l}async function sz(e,t,r){sY(e);let{analyticsClientMiddleware:n,preprocessRequest:i,logger:a}=t.extra,{description:o}=await r.prepare({getState:()=>t.getState(),analyticsClientMiddleware:n,preprocessRequest:i,logger:a}),s=new sV({...t,analyticsAction:r}),l=await sQ(e,o),u=await s.fetchFromAPI(l,{origin:"mainSearch"});return await s.process(u)}async function s$(e,t){let{analyticsClientMiddleware:r,preprocessRequest:n,logger:i}=e.extra,{description:a}=await o8().prepare({getState:()=>e.getState(),analyticsClientMiddleware:r,preprocessRequest:n,logger:i}),o=new sV({...e,analyticsAction:o8()}),s=await sH(t,a),l=await o.fetchFromAPI(s,{origin:"mainSearch"});return await o.process(l)}async function sJ(e,t,r){let{analyticsClientMiddleware:n,preprocessRequest:i,logger:a}=e.extra,{description:o}=await t.prepare({getState:()=>e.getState(),analyticsClientMiddleware:n,preprocessRequest:i,logger:a}),s=new sV({...e,analyticsAction:t}),l=await sW(r,o),u=await s.fetchFromAPI(l,{origin:"facetValues"});return await s.process(u)}async function sX(e,t,r){sY(e);let{analyticsClientMiddleware:n,preprocessRequest:i,logger:a}=t.extra,{description:o}=await r.prepare({getState:()=>t.getState(),analyticsClientMiddleware:n,preprocessRequest:i,logger:a}),s=await sQ(e,o),l=new sV({...t,analyticsAction:r}),u=await l.fetchFromAPI(s,{origin:"mainSearch"});return await l.process(u)}let s0=nv(e=>e.staticFilterSet,e=>Object.values(e||{}).map(e=>{let t=e.values.filter(e=>"selected"===e.state&&!!e.expression.trim()),r=t.map(e=>e.expression).join(" OR ");return t.length>1?`(${r})`:r})),s1=async(e,t,r)=>{let n=s8(e),i=sB([...sL(e.facetSet??{}).map(e=>{let t=sU[e.sortCriteria];return t?{...e,sortCriteria:t}:e}),...s4(e.numericFacetSet??{}),...s4(e.dateFacetSet??{}),...sL(e.categoryFacetSet??{})].filter(({facetId:t})=>e.facetOptions?.facets[t]?.enabled??!0),e.facetOrder??[]),a=function(e){let t=e.automaticFacetSet?.set;return t?Object.values(t).map(e=>e.response).map(s3).filter(e=>e.currentValues.length>0):void 0}(e);return sm({..."legacy"===e.configuration.analytics.analyticsMode?await o3(e,r):o1(e,t,r),...e.didYouMean&&{queryCorrection:{enabled:e.didYouMean.enableDidYouMean&&"next"===e.didYouMean.queryCorrectionMode,options:{automaticallyCorrect:e.didYouMean.automaticallyCorrectQuery?"whenNoResults":"never"}},enableDidYouMean:e.didYouMean.enableDidYouMean&&"legacy"===e.didYouMean.queryCorrectionMode},...n&&{cq:n},...i.length&&{facets:i},...e.pagination&&{numberOfResults:s2(e),firstResult:e.pagination.firstResult},...e.facetOptions&&{facetOptions:{freezeFacetOrder:e.facetOptions.freezeFacetOrder}},...e.folding?.enabled&&{filterField:e.folding.fields.collection,childField:e.folding.fields.parent,parentField:e.folding.fields.child,filterFieldRange:e.folding.filterFieldRange},...e.automaticFacetSet&&{generateAutomaticFacets:{desiredCount:e.automaticFacetSet.desiredCount,numberOfValues:e.automaticFacetSet.numberOfValues,currentFacets:a}},...e.generatedAnswer&&{pipelineRuleParameters:{mlGenerativeQuestionAnswering:{responseFormat:e.generatedAnswer.responseFormat,citationsFieldToInclude:e.generatedAnswer.fieldsToIncludeInCitations}}}})};function s2(e){return e.pagination?e.pagination.firstResult+e.pagination.numberOfResults>5e3?5e3-e.pagination.firstResult:e.pagination.numberOfResults:void 0}function s3(e){let{field:t,label:r,values:n}=e;return{field:t,label:r,currentValues:n.filter(e=>"selected"===e.state)}}function s4(e){return sL(e).map(e=>{let t=e.currentValues,r=t.some(({state:e})=>"idle"!==e),n=t.some(e=>e.previousState);return!e.generateAutomaticRanges||r||n?e:{...e,currentValues:[]}})}function s8(e){let t=e.advancedSearchQueries?.cq.trim()||"",r=Object.values(e.tabSet||{}).find(e=>e.isActive);return[t,r?.expression.trim()||"",...s0(e)].filter(e=>!!e).join(" AND ")}class s5{config;onUpdateQueryForCorrection;constructor(e,t=e=>{this.dispatch(oX({q:e}))}){this.config=e,this.onUpdateQueryForCorrection=t}async fetchFromAPI({mappings:e,request:t},r){let n=Date.now();return{response:sA(await this.extra.apiClient.search(t,r),e),duration:Date.now()-n,queryExecuted:this.getState().query?.q||"",requestExecuted:t}}async process(e){return this.processQueryErrorOrContinue(e)??await this.processQueryCorrectionsOrContinue(e)??await this.processQueryTriggersOrContinue(e)??this.processSuccessResponse(e)}processQueryErrorOrContinue(e){return eQ(e.response)?(this.dispatch(o5(e.response.error)),this.rejectWithValue(e.response.error)):null}async processQueryCorrectionsOrContinue(e){let t=this.getState(),r=this.getSuccessResponse(e);if(!r||!t.didYouMean)return null;let{enableDidYouMean:n,automaticallyCorrectQuery:i}=t.didYouMean,{results:a,queryCorrections:o,queryCorrection:s}=r;if(!n||!i)return null;let l=0===a.length&&o&&0!==o.length,u=!G(s)&&!G(s.correctedQuery);if(!l&&!u)return null;
19let c=l?await this.processLegacyDidYouMeanAutoCorrection(e):this.processModernDidYouMeanAutoCorrection(e);return this.dispatch(o_(sN(this.getState()))),c}async processLegacyDidYouMeanAutoCorrection(e){let t=this.getCurrentQuery(),r=this.getSuccessResponse(e);if(!r.queryCorrections)return null;let{correctedQuery:n}=r.queryCorrections[0],i=await this.automaticallyRetryQueryWithCorrection(n);return eQ(i.response)?(this.dispatch(o5(i.response.error)),this.rejectWithValue(i.response.error)):(this.dispatch(o_(sN(this.getState()))),{...i,response:{...i.response.success,queryCorrections:r.queryCorrections},automaticallyCorrected:!0,originalQuery:t})}processModernDidYouMeanAutoCorrection(e){let t=this.getSuccessResponse(e),{correctedQuery:r,originalQuery:n}=t.queryCorrection;return this.onUpdateQueryForCorrection(r),{...e,response:{...t},queryExecuted:r,automaticallyCorrected:!0,originalQuery:n}}async processQueryTriggersOrContinue(e){let t=this.getSuccessResponse(e);if(!t)return null;let r=t.triggers.find(e=>"query"===e.type)?.content||"";if(!r)return null;if(this.getState().triggers?.queryModification.queryToIgnore===r)return this.dispatch(sF("")),null;let n=this.getCurrentQuery(),i=await this.automaticallyRetryQueryWithTriggerModification(r);return eQ(i.response)?(this.dispatch(o5(i.response.error)),this.rejectWithValue(i.response.error)):(this.dispatch(o_(sN(this.getState()))),{...i,response:{...i.response.success},automaticallyCorrected:!1,originalQuery:n})}processSuccessResponse(e){return this.dispatch(o_(sN(this.getState()))),{...e,response:this.getSuccessResponse(e),automaticallyCorrected:!1,originalQuery:this.getCurrentQuery()}}getSuccessResponse(e){return eq(e.response)?e.response.success:null}async automaticallyRetryQueryWithCorrection(e){this.onUpdateQueryForCorrection(e);let t=this.getState(),{actionCause:r}=sk(),n=await this.fetchFromAPI(await s1(t,this.extra.navigatorContext,{actionCause:r}),{origin:"mainSearch"});return this.dispatch(sS(e)),n}async automaticallyRetryQueryWithTriggerModification(e){return this.dispatch(sP({newQuery:e,originalQuery:this.getCurrentQuery()})),this.onUpdateQueryForCorrection(e),await this.fetchFromAPI(await s1(this.getState(),this.extra.navigatorContext),{origin:"mainSearch"})}getCurrentQuery(){let e=this.getState();return e.query?.q!==void 0?e.query.q:""}get extra(){return this.config.extra}getState(){return this.config.getState()}get dispatch(){return this.config.dispatch}get rejectWithValue(){return this.config.rejectWithValue}}let s6=rp("search/prepareForSearchWithQuery",(e,t)=>{let{dispatch:r}=t;e2(e,{q:new Z,enableQuerySyntax:new V,clearFilters:new V}),e.clearFilters&&(r(oF()),r(oP())),r(oL({allow:!0})),r(oX({q:e.q,enableQuerySyntax:e.enableQuerySyntax})),r(oz(1))}),s9=t$("search/updateSearchAction"),s7=rp("search/executeSearch",async(e,t)=>{let r=t.getState();if("legacy"===r.configuration.analytics.analyticsMode)return sX(r,t,e.legacy);ls(r);let n=e.next?ll(e.next):void 0,i=await s1(r,t.extra.navigatorContext,n),a=new s5({...t,analyticsAction:n??{}}),o=await a.fetchFromAPI(i,{origin:"mainSearch"});return await a.process(o)}),le=rp("search/fetchPage",async(e,t)=>{let r=t.getState();if(ls(r),"legacy"===r.configuration.analytics.analyticsMode||!e.next)return sz(r,t,e.legacy);let n=new s5({...t,analyticsAction:e.next}),i=await s1(r,t.extra.navigatorContext,e.next),a=await n.fetchFromAPI(i,{origin:"mainSearch"});return await n.process(a)}),lt=rp("search/fetchMoreResults",async(e,t)=>{var r;let n=t.getState();if("legacy"===n.configuration.analytics.analyticsMode)return s$(t,n);let i=(r=M.browseResults,{...new az(t.getState).getBaseMetadata(),actionCause:r,type:r}),a=new s5({...t,analyticsAction:i}),o=await li(n,t.extra.navigatorContext,i),s=await a.fetchFromAPI(o,{origin:"mainSearch"});return await a.process(s)}),lr=rp("search/fetchFacetValues",async(e,t)=>{let r=t.getState();if("legacy"===r.configuration.analytics.analyticsMode)return sX(r,t,e.legacy);let n=new s5({...t,analyticsAction:{}}),i=await lo(r,t.extra.navigatorContext),a=await n.fetchFromAPI(i,{origin:"facetValues"});return await n.process(a)}
19),ln=rp("search/fetchInstantResults",async(e,t)=>{let r=t.getState();if("legacy"===r.configuration.analytics.analyticsMode)return sZ(e,t);e2(e,{id:eY,q:eY,maxResultsPerQuery:new K({required:!0,min:1}),cacheTimeout:new K});let{q:n,maxResultsPerQuery:i}=e,a=ll(oU()),o=await la(r,t.extra.navigatorContext,n,i,a),s=new s5({...t,analyticsAction:a},r=>{t.dispatch(oV({q:r,id:e.id}))}),l=await s.fetchFromAPI(o,{origin:"instantResults",disableAbortWarning:!0}),u=await s.process(l);return"response"in u?{results:u.response.results,searchUid:u.response.searchUid,totalCountFiltered:u.response.totalCountFiltered,duration:u.duration}:u}),li=async(e,t,r)=>{let n=await s1(e,t,r);return n.request={...n.request,firstResult:(e.pagination?.firstResult??0)+(e.search?.results.length??0)},n},la=async(e,t,r,n,i)=>sm({...o1(e,t,i),...e.didYouMean&&{enableDidYouMean:e.didYouMean.enableDidYouMean},numberOfResults:n,q:r}),lo=async(e,t,r)=>{let n=await s1(e,t,r);return n.request.numberOfResults=0,n},ls=e=>{e.configuration.analytics.enabled&&aZ.getInstance().addElement({name:"Query",...e.query?.q&&{value:e.query.q},time:JSON.stringify(new Date)})},ll=e=>({actionCause:e.actionCause,type:e.actionCause});function lu(e){return""!==e.search.response.searchUid}let lc=nv(e=>e.search,e=>e?.searchAction?.actionCause||""),ld=t$("app/setError");function lf(e,t){let r=t.payload??null;r&&(e.response=eT().response,e.results=[],e.questionAnswer=eO()),e.error=r,e.isLoading=!1}function lh(e,t){e.error=null,e.response=t.payload.response,e.queryExecuted=t.payload.queryExecuted,e.duration=t.payload.duration,e.isLoading=!1}function lp(e,t){e.isLoading=!0,e.searchAction=t.meta.arg.next,e.requestId=t.meta.requestId}function lg(e,t){e.isLoading=!0,e.searchAction={actionCause:M.browseResults},e.requestId=t.meta.requestId}let lm=t9(eT(),e=>{e.addCase(s7.rejected,(e,t)=>lf(e,t)),e.addCase(lt.rejected,(e,t)=>lf(e,t)),e.addCase(le.rejected,(e,t)=>lf(e,t)),e.addCase(s7.fulfilled,(e,t)=>{lh(e,t),e.results=t.payload.response.results.map(e=>({...e,searchUid:t.payload.response.searchUid})),e.searchResponseId=t.payload.response.searchUid,e.questionAnswer=t.payload.response.questionAnswer,e.extendedResults=t.payload.response.extendedResults}),e.addCase(lt.fulfilled,(e,t)=>{lh(e,t),e.results=[...e.results,...t.payload.response.results.map(e=>({...e,searchUid:t.payload.response.searchUid}))]}),e.addCase(le.fulfilled,(e,t)=>{lh(e,t),e.results=[...t.payload.response.results.map(e=>({...e,searchUid:t.payload.response.searchUid}))]}),e.addCase(lr.fulfilled,(e,t)=>{e.response.facets=t.payload.response.facets,e.response.searchUid=t.payload.response.searchUid}),e.addCase(s7.pending,lp),e.addCase(lt.pending,lg),e.addCase(le.pending,lp),e.addCase(s9,(e,t)=>{e.searchAction=t.payload}),e.addCase(ld,(e,t)=>{e.error=t.payload,e.isLoading=!1})}),lA=t$("searchHub/set",e=>e2(e,new Z({required:!0,emptyAllowed:!0}))),ly=t9(i9(),e=>{e.addCase(lA,(e,t)=>t.payload).addCase(oD.fulfilled,(e,t)=>t.payload?.searchHub??e).addCase(op,(e,t)=>t.payload.searchHub||e)});r(32608);var lv=((g=lv||{}).uninitialized="uninitialized",g.pending="pending",g.fulfilled="fulfilled",g.rejected="rejected",g);function lb(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function lw(e){let t=0;for(let r in e)t++;return t}var lS=e=>[].concat(...e);function lI(e){return null!=e}var lE=e=>e.replace(/\/$/,""),lC=e=>e.replace(/^\//,""),lx=(...e)=>fetch(...e),lk=e=>e.status>=200&&e.status<=299,lO=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function lT(e){if(!te(e))return e;let t={...e};for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return t}var lR=class{constructor(e,t){this.value=e,this.meta=t}};async function l_(e=0,t=5){let r=~~((Math.random()+.4)*(300<<Math.min(e,t)));await new Promise(e=>setTimeout(t=>e(t),r))}var lD={},lN=Object.assign((e,t)=>async(r,n,i)=>{let[a]=[5,(t||lD).maxRetries,(i||lD).maxRetries].filter(e=>void 0!==e).slice(-1),o={maxRetries:a,backoff:l_,retryCondition:(e,t,{attempt:r})=>r<=a,...t,...i},s=0;for(;;)try{let t=await e(r,n,i);if(t.error)throw new lR(t);return t}catch(e){if(s++,e.throwImmediately){if(e instanceof lR)return e.value;throw e}if(e instanceof lR&&!o.retryCondition(e.value.error,r,{attempt:s,baseQueryApi:n,extraOptions:i}))return e.value;await o.backoff(s,o.maxRetries)}},{fail:function(e,t){throw Object.assign(new lR({error:e,meta:t}),{throwImmediately:!0})}}),lM=t$("__rtkq/focused"),lF=t$("__rtkq/unfocused"),lP=t$("__rtkq/online"),lL=t$("__rtkq/offline");function lB(e){return"query"===e.type}function lj(e){return"infinitequery"===e.type}function lU(e,t,r,n,i,a){return"function"==typeof e?e(t,r,n,i).filter(lI).map(lq).map(a):Array.isArray(e)?e.map(lq).map(a):[]}function lq(e){return"string"==typeof e?{type:e}:e}var lQ=Symbol("forceQueryFn"),lG=e=>"function"==typeof e[lQ];function lV(e){return e}var lH=(e={})=>({...e,[t2]:!0});function lK(e,{pages:t,pageParams:r}){let n=t.length-1;return e.getNextPageParam(t[n],t,r[n],r)}function lW(e,{pages:t,pageParams:r}){return e.getPreviousPageParam?.(t[0],t,r[0],r)}function lY(e,t,r,n){return lU(r[e.meta.arg.endpointName][t],rs(e)?e.payload:void 0,ro(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function lZ(e,t,r){let n=e[t];n&&r(n)}function lz(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function l$(e,t,r){let n=e[lz(t)];n&&r(n)}var lJ={},lX=Symbol.for("RTKQ/skipToken"),l0={status:"uninitialized"},l1=tK(l0,()=>{}),l2=tK(l0,()=>{}),l3=WeakMap?new WeakMap:void 0,l4=({endpointName:e,queryArgs:t})=>{let r="",n=l3?.get(t);if("string"==typeof n)r=n;else{let e=JSON.stringify(t,(e,t)=>t=te(t="bigint"==typeof t?{$bigint:t.toString()}:t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t);te(t)&&l3?.set(t,e),r=e}return`${e}(${r})`};function l8(e,...t){return Object.assign(e,...t)}var l5=({api:e,queryThunk:t,internalState:r})=>{let n=`${e.reducerPath}
19/subscriptions`,i=null,a=null,{updateSubscriptionOptions:o,unsubscribeQueryResult:s}=e.internalActions,l=(r,n)=>{if(o.match(n)){let{queryCacheKey:e,requestId:t,options:i}=n.payload;return r?.[e]?.[t]&&(r[e][t]=i),!0}if(s.match(n)){let{queryCacheKey:e,requestId:t}=n.payload;return r[e]&&delete r[e][t],!0}if(e.internalActions.removeQueryResult.match(n))return delete r[n.payload.queryCacheKey],!0;if(t.pending.match(n)){let{meta:{arg:e,requestId:t}}=n,i=r[e.queryCacheKey]??={};return i[`${t}_running`]={},e.subscribe&&(i[t]=e.subscriptionOptions??i[t]??{}),!0}let i=!1;if(t.fulfilled.match(n)||t.rejected.match(n)){let e=r[n.meta.arg.queryCacheKey]||{},t=`${n.meta.requestId}_running`;i||=!!e[t],delete e[t]}if(t.rejected.match(n)){let{meta:{condition:e,arg:t,requestId:a}}=n;if(e&&t.subscribe){let e=r[t.queryCacheKey]??={};e[a]=t.subscriptionOptions??e[a]??{},i=!0}}return i},u=()=>r.currentSubscriptions,c={getSubscriptions:u,getSubscriptionCount:e=>lw(u()[e]??{}),isRequestSubscribed:(e,t)=>{let r=u();return!!r?.[e]?.[t]}};return(o,s)=>{if(i||(i=JSON.parse(JSON.stringify(r.currentSubscriptions))),e.util.resetApiState.match(o))return i=r.currentSubscriptions={},a=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(o))return[!1,c];let u=l(r.currentSubscriptions,o),d=!0;if(u){a||(a=setTimeout(()=>{let t=JSON.parse(JSON.stringify(r.currentSubscriptions)),[,n]=tW(i,()=>t);s.next(e.internalActions.subscriptionsUpdated(n)),i=t,a=null},500));let l="string"==typeof o.type&&!!o.type.startsWith(n),u=t.rejected.match(o)&&o.meta.condition&&!!o.meta.arg.subscribe;d=!l&&!u}return[d,!1]}},l6=({reducerPath:e,api:t,queryThunk:r,context:n,internalState:i,selectors:{selectQueryEntry:a,selectConfig:o}})=>{let{removeQueryResult:s,unsubscribeQueryResult:l,cacheEntriesUpserted:u}=t.internalActions,c=re(l.match,r.fulfilled,r.rejected,u.match);function d(e){let t=i.currentSubscriptions[e];return!!t&&!function(e){for(let t in e)return!1;return!0}(t)}let f={};function h(e,t,r){let i=t.getState();for(let o of e){let e=a(i,o);!function(e,t,r,i){let a=n.endpointDefinitions[t],o=a?.keepUnusedDataFor??i.keepUnusedDataFor;if(o!==1/0&&!d(e)){let t=f[e];t&&clearTimeout(t),f[e]=setTimeout(()=>{d(e)||r.dispatch(s({queryCacheKey:e})),delete f[e]},1e3*Math.max(0,Math.min(o,2147482.647)))}}(o,e?.endpointName,t,r)}}return(e,r,i)=>{let a=o(r.getState());if(c(e)){let t;if(u.match(e))t=e.payload.map(e=>e.queryDescription.queryCacheKey);else{let{queryCacheKey:r}=l.match(e)?e.payload:e.meta.arg;t=[r]}h(t,r,a)}if(t.util.resetApiState.match(e))for(let[e,t]of Object.entries(f))t&&clearTimeout(t),delete f[e];if(n.hasRehydrationInfo(e)){let{queries:t}=n.extractRehydrationInfo(e);h(Object.keys(t),r,a)}}},l9=Error("Promise never resolved before cacheEntryRemoved."),l7=({api:e,reducerPath:t,context:r,queryThunk:n,mutationThunk:i,internalState:a,selectors:{selectQueryEntry:o,selectApiState:s}})=>{let l=rl(n),u=rl(i),c=rs(n,i),d={};function f(e,t,r){let n=d[e];n?.valueResolved&&(n.valueResolved({data:t,meta:r}),delete n.valueResolved)}function h(e){let t=d[e];t&&(delete d[e],t.cacheEntryRemoved())}function p(t,n,i,a,o){let s=r.endpointDefinitions[t],l=s?.onCacheEntryAdded;if(!l)return;let u={},c=new Promise(e=>{u.cacheEntryRemoved=e}),f=Promise.race([new Promise(e=>{u.valueResolved=e}),c.then(()=>{throw l9})]);f.catch(()=>{}),d[i]=u;let h=e.endpoints[t].select("query"===s.type?n:i),p=a.dispatch((e,t,r)=>r),g={...a,getCacheEntry:()=>h(a.getState()),requestId:o,extra:p,updateCachedData:"query"===s.type?r=>a.dispatch(e.util.updateQueryData(t,n,r)):void 0,cacheDataLoaded:f,cacheEntryRemoved:c};Promise.resolve(l(n,g)).catch(e=>{if(e!==l9)throw e})}return(r,a,s)=>{let g=l(r)?r.meta.arg.queryCacheKey:u(r)?r.meta.arg.fixedCacheKey??r.meta.requestId:e.internalActions.removeQueryResult.match(r)?r.payload.queryCacheKey:e.internalActions.removeMutationResult.match(r)?lz(r.payload):"";function m(e,t,r,n){let i=o(s,t),l=o(a.getState(),t);!i&&l&&p(e,n,t,a,r)}if(n.pending.match(r))m(r.meta.arg.endpointName,g,r.meta.requestId,r.meta.arg.originalArgs);else if(e.internalActions.cacheEntriesUpserted.match(r))for(let{queryDescription:e,value:t}of r.payload){let{endpointName:n,originalArgs:i,queryCacheKey:a}=e;m(n,a,r.meta.requestId,i),f(a,t,{})}else if(i.pending.match(r))a.getState()[t].mutations[g]&&p(r.meta.arg.endpointName,r.meta.arg.originalArgs,g,a,r.meta.requestId);else if(c(r))f(g,r.payload,r.meta.baseQueryMeta);else if(e.internalActions.removeQueryResult.match(r)||e.internalActions.removeMutationResult.match(r))h(g);else if(e.util.resetApiState.match(r))for(let e of Object.keys(d))h(e)}},ue=({api:e,context:{apiUid:t},reducerPath:r})=>(r,n)=>{e.util.resetApiState.match(r)&&n.dispatch(e.internalActions.middlewareRegistered(t))},ut=({reducerPath:e,context:t,context:{endpointDefinitions:r}
19,mutationThunk:n,queryThunk:i,api:a,assertTagType:o,refetchQuery:s,internalState:l})=>{let{removeQueryResult:u}=a.internalActions,c=re(rs(n),ro(n)),d=re(rs(n,i),ra(n,i)),f=[];function h(r,n){let i=n.getState(),o=i[e];if(f.push(...r),"delayed"===o.config.invalidationBehavior&&function(e){let{queries:t,mutations:r}=e;for(let e of[t,r])for(let t in e)if(e[t]?.status==="pending")return!0;return!1}(o))return;let c=f;if(f=[],0===c.length)return;let d=a.util.selectInvalidatedBy(i,c);t.batch(()=>{for(let{queryCacheKey:e}of Array.from(d.values())){let t=o.queries[e],r=l.currentSubscriptions[e]??{};t&&(0===lw(r)?n.dispatch(u({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(s(t)))}})}return(e,t)=>{c(e)?h(lY(e,"invalidatesTags",r,o),t):d(e)?h([],t):a.util.invalidateTags.match(e)&&h(lU(e.payload,void 0,void 0,void 0,void 0,o),t)}},ur=({reducerPath:e,queryThunk:t,api:r,refetchQuery:n,internalState:i})=>{let a={};function o({queryCacheKey:t},r){let s=r.getState()[e],l=s.queries[t],c=i.currentSubscriptions[t];if(!l||"uninitialized"===l.status)return;let{lowestPollingInterval:d,skipPollingIfUnfocused:f}=u(c);if(!Number.isFinite(d))return;let h=a[t];h?.timeout&&(clearTimeout(h.timeout),h.timeout=void 0);let p=Date.now()+d;a[t]={nextPollTimestamp:p,pollingInterval:d,timeout:setTimeout(()=>{(s.config.focused||!f)&&r.dispatch(n(l)),o({queryCacheKey:t},r)},d)}}function s({queryCacheKey:t},r){let n=r.getState()[e].queries[t],s=i.currentSubscriptions[t];if(!n||"uninitialized"===n.status)return;let{lowestPollingInterval:c}=u(s);if(!Number.isFinite(c)){l(t);return}let d=a[t],f=Date.now()+c;(!d||f<d.nextPollTimestamp)&&o({queryCacheKey:t},r)}function l(e){let t=a[e];t?.timeout&&clearTimeout(t.timeout),delete a[e]}function u(e={}){let t=!1,r=Number.POSITIVE_INFINITY;for(let n in e)e[n].pollingInterval&&(r=Math.min(e[n].pollingInterval,r),t=e[n].skipPollingIfUnfocused||t);return{lowestPollingInterval:r,skipPollingIfUnfocused:t}}return(e,n)=>{(r.internalActions.updateSubscriptionOptions.match(e)||r.internalActions.unsubscribeQueryResult.match(e))&&s(e.payload,n),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(e.meta.arg,n),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&o(e.meta.arg,n),r.util.resetApiState.match(e)&&function(){for(let e of Object.keys(a))l(e)}()}},un=({api:e,context:t,queryThunk:r,mutationThunk:n})=>{let i=ri(r,n),a=ra(r,n),o=rs(r,n),s={};return(r,n)=>{if(i(r)){let{requestId:i,arg:{endpointName:a,originalArgs:o}}=r.meta,l=t.endpointDefinitions[a],u=l?.onQueryStarted;if(u){let t={},r=new Promise((e,r)=>{t.resolve=e,t.reject=r});r.catch(()=>{}),s[i]=t;let c=e.endpoints[a].select("query"===l.type?o:i),d=n.dispatch((e,t,r)=>r),f={...n,getCacheEntry:()=>c(n.getState()),requestId:i,extra:d,updateCachedData:"query"===l.type?t=>n.dispatch(e.util.updateQueryData(a,o,t)):void 0,queryFulfilled:r};u(o,f)}}else if(o(r)){let{requestId:e,baseQueryMeta:t}=r.meta;s[e]?.resolve({data:r.payload,meta:t}),delete s[e]}else if(a(r)){let{requestId:e,rejectedWithValue:t,baseQueryMeta:n}=r.meta;s[e]?.reject({error:r.payload??r.error,isUnhandledError:!t,meta:n}),delete s[e]}}},ui=({reducerPath:e,context:t,api:r,refetchQuery:n,internalState:i})=>{let{removeQueryResult:a}=r.internalActions;function o(r,o){let s=r.getState()[e],l=s.queries,u=i.currentSubscriptions;t.batch(()=>{for(let e of Object.keys(u)){let t=l[e],i=u[e];i&&t&&(Object.values(i).some(e=>!0===e[o])||Object.values(i).every(e=>void 0===e[o])&&s.config[o])&&(0===lw(i)?r.dispatch(a({queryCacheKey:e})):"uninitialized"!==t.status&&r.dispatch(n(t)))}})}return(e,t)=>{lM.match(e)&&o(t,"refetchOnFocus"),lP.match(e)&&o(t,"refetchOnReconnect")}},ua=Symbol(),uo=function(...e){return function(t){let r=ny(e=>t.extractRehydrationInfo?.(e,{reducerPath:t.reducerPath??"api"})),n={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:r,serializeQueryArgs(e){let r=l4;if("serializeQueryArgs"in e.endpointDefinition){let t=e.endpointDefinition.serializeQueryArgs;r=e=>{let r=t(e);return"string"==typeof r?r:l4({...e,queryArgs:r})}}
19else t.serializeQueryArgs&&(r=t.serializeQueryArgs);return r(e)},tagTypes:[...t.tagTypes||[]]},i={endpointDefinitions:{},batch(e){e()},apiUid:ru(),extractRehydrationInfo:r,hasRehydrationInfo:ny(e=>null!=r(e))},a={injectEndpoints:function(e){for(let[t,r]of Object.entries(e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"}),infiniteQuery:e=>({...e,type:"infinitequery"})}))){if(!0!==e.overrideExisting&&t in i.endpointDefinitions){if("throw"===e.overrideExisting)throw Error(r0(39));continue}for(let e of(i.endpointDefinitions[t]=r,o))e.injectEndpoint(t,r)}return a},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(let t of e)n.tagTypes.includes(t)||n.tagTypes.push(t);if(t)for(let[e,r]of Object.entries(t))"function"==typeof r?r(i.endpointDefinitions[e]):Object.assign(i.endpointDefinitions[e]||{},r);return a}},o=e.map(e=>e.init(a,n,i));return a.injectEndpoints({endpoints:t.endpoints})}}((({createSelector:e=nv}={})=>({name:ua,init(t,{baseQuery:r,tagTypes:n,reducerPath:i,serializeQueryArgs:a,keepUnusedDataFor:o,refetchOnMountOrArgChange:s,refetchOnFocus:l,refetchOnReconnect:u,invalidationBehavior:c},d){!function(){var e,t;let r="replace",n="remove";function i(e){if(!tf(e))return e;if(Array.isArray(e))return e.map(i);if(tb(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,i(t)]));if(tw(e))return new Set(Array.from(e).map(i));let t=Object.create(tc(e));for(let r in e)t[r]=i(e[r]);return tA(e,ts)&&(t[ts]=e[ts]),t}function a(e){return td(e)?i(e):e}e="Patches",t={applyPatches_:function(e,t){return t.forEach(t=>{let{path:a,op:o}=t,s=e;for(let e=0;e<a.length-1;e++){let t=tm(s),r=a[e];"string"!=typeof r&&"number"!=typeof r&&(r=""+r),(0===t||1===t)&&("__proto__"===r||"constructor"===r)&&tu(19),"function"==typeof s&&"prototype"===r&&tu(19),"object"!=typeof(s=ty(s,r))&&tu(18,a.join("/"))}let l=tm(s),u=i(t.value),c=a[a.length-1];switch(o){case r:switch(l){case 2:return s.set(c,u);case 3:tu(16);default:return s[c]=u}case"add":switch(l){case 1:return"-"===c?s.push(u):s.splice(c,0,u);case 2:return s.set(c,u);case 3:return s.add(u);default:return s[c]=u}case n:switch(l){case 1:return s.splice(c,1);case 2:return s.delete(c);case 3:return s.delete(t.value);default:return delete s[c]}default:tu(17,o)}}),e},generatePatches_:function(e,t,i,o){switch(e.type_){case 0:case 2:return function(e,t,i,o){let{base_:s,copy_:l}=e;tg(e.assigned_,(e,u)=>{let c=ty(s,e),d=ty(l,e),f=u?tA(s,e)?r:"add":n;if(c===d&&f===r)return;let h=t.concat(e);i.push(f===n?{op:f,path:h}:{op:f,path:h,value:d}),o.push("add"===f?{op:n,path:h}:f===n?{op:"add",path:h,value:a(c)}:{op:r,path:h,value:a(c)})})}(e,t,i,o);case 1:return function(e,t,i,o){let{base_:s,assigned_:l}=e,u=e.copy_;u.length<s.length&&([s,u]=[u,s],[i,o]=[o,i]);for(let e=0;e<s.length;e++)if(l[e]&&u[e]!==s[e]){let n=t.concat([e]);i.push({op:r,path:n,value:a(u[e])}),o.push({op:r,path:n,value:a(s[e])})}for(let e=s.length;e<u.length;e++){let r=t.concat([e]);i.push({op:"add",path:r,value:a(u[e])})}for(let e=u.length-1;s.length<=e;--e){let r=t.concat([e]);o.push({op:n,path:r})}}(e,t,i,o);case 3:return function(e,t,r,i){let{base_:a,copy_:o}=e,s=0;a.forEach(e=>{if(!o.has(e)){let a=t.concat([s]);r.push({op:n,path:a,value:e}),i.unshift({op:"add",path:a,value:e})}s++}),s=0,o.forEach(e=>{if(!a.has(e)){let a=t.concat([s]);r.push({op:"add",path:a,value:e}),i.unshift({op:n,path:a,value:e})}s++})}(e,t,i,o)}},generateReplacementPatches_:function(e,t,n,i){n.push({op:r,path:[],value:t===to?void 0:t}),i.push({op:r,path:[],value:e})}},tk[e]||(tk[e]=t)}();let f=e=>e;Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:lP,onOffline:lL,onFocus:lM,onFocusLost:lF},util:{}});let h=function({serializeQueryArgs:e,reducerPath:t,createSelector:r}){let n=e=>l1,i=e=>l2;return{buildQuerySelector:function(e,t){return l(e,t,a)},buildInfiniteQuerySelector:function(e,t){let{infiniteQueryOptions:r}=t;return l(e,t,function(e){var t,n;let i={...e,...lb(e.status)},{isLoading:a,isError:o,direction:s}=i,l="forward"===s,u="backward"===s;return{...i,hasNextPage:!!(t=i.data)&&null!=lK(r,t),hasPreviousPage:!!(n=i.data)&&!!r.getPreviousPageParam&&null!=lW(r,n),isFetchingNextPage:a&&l,isFetchingPreviousPage:a&&u,isFetchNextPageError:o&&l,isFetchPreviousPageError:o&&u}}
19)},buildMutationSelector:function(){return e=>{let n;return r((n="object"==typeof e?lz(e)??lX:e)===lX?i:e=>e[t]?.mutations?.[n]??l2,a)}},selectInvalidatedBy:function(e,r){let n=e[t],i=new Set;for(let e of r.filter(lI).map(lq)){let t=n.provided[e.type];if(t)for(let r of(void 0!==e.id?t[e.id]:lS(Object.values(t)))??[])i.add(r)}return lS(Array.from(i.values()).map(e=>{let t=n.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]}))},selectCachedArgsForQuery:function(e,t){return Object.values(o(e)).filter(e=>e?.endpointName===t&&"uninitialized"!==e.status).map(e=>e.originalArgs)},selectApiState:function(e){return e[t]},selectQueries:o,selectMutations:function(e){return e[t]?.mutations},selectQueryEntry:s,selectConfig:function(e){return e[t]?.config}};function a(e){return{...e,...lb(e.status)}}function o(e){return e[t]?.queries}function s(e,t){return o(e)?.[t]}function l(t,i,a){return o=>{if(o===lX)return r(n,a);let l=e({queryArgs:o,endpointDefinition:i,endpointName:t});return r(e=>s(e,l)??l1,a)}}}({serializeQueryArgs:a,reducerPath:i,createSelector:e}),{selectInvalidatedBy:p,selectCachedArgsForQuery:g,buildQuerySelector:m,buildInfiniteQuerySelector:A,buildMutationSelector:y}=h;l8(t.util,{selectInvalidatedBy:p,selectCachedArgsForQuery:g});let{queryThunk:v,infiniteQueryThunk:b,mutationThunk:w,patchQueryData:S,updateQueryData:I,upsertQueryData:E,prefetch:C,buildMatchThunkActions:x}=function({reducerPath:e,baseQuery:t,context:{endpointDefinitions:r},serializeQueryArgs:n,api:i,assertTagType:a,selectors:o}){function s(e,t,r=0){let n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}function l(e,t,r=0){let n=[...e,t];return r&&n.length>r?n.slice(1):n}let u=(e,t)=>e.query&&e[t]?e[t]:lV,c=async(e,{signal:n,abort:i,rejectWithValue:a,fulfillWithValue:c,dispatch:f,getState:h,extra:p})=>{let g=r[e.endpointName];try{let r,a=u(g,"transformResponse"),A={signal:n,abort:i,dispatch:f,getState:h,extra:p,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?d(e,h()):void 0,queryCacheKey:"query"===e.type?e.queryCacheKey:void 0},y="query"===e.type?e[lQ]:void 0,v=async(t,r,n,i)=>{if(null==r&&t.pages.length)return Promise.resolve({data:t});let a={queryArg:e.originalArgs,pageParam:r},o=await m(a),u=i?s:l;return{data:{pages:u(t.pages,o.data,n),pageParams:u(t.pageParams,r,n)}}};async function m(e){let r;let{extraOptions:n}=g;if((r=y?y():g.query?await t(g.query(e),A,n):await g.queryFn(e,A,n,e=>t(e,A,n))).error)throw new lR(r.error,r.meta);let i=await a(r.data,r.meta,e);return{...r,data:i}}if("query"===e.type&&"infiniteQueryOptions"in g){let t;let{infiniteQueryOptions:n}=g,{maxPages:i=1/0}=n,a=o.selectQueryEntry(h(),e.queryCacheKey)?.data,s=(!d(e,h())||e.direction)&&a?a:{pages:[],pageParams:[]};if("direction"in e&&e.direction&&s.pages.length){let r="backward"===e.direction,a=(r?lW:lK)(n,s);t=await v(s,a,i,r)}else{let{initialPageParam:r=n.initialPageParam}=e,o=a?.pageParams??[],l=o[0]??r,u=o.length;t=await v(s,l,i),y&&(t={data:t.data.pages[0]});for(let e=1;e<u;e++){let e=lK(n,t.data);t=await v(t.data,e,i)}}r=t}else r=await m(e.originalArgs);return c(r.data,lH({fulfilledTimeStamp:Date.now(),baseQueryMeta:r.meta}))}catch(r){let t=r;if(t instanceof lR){let r=u(g,"transformErrorResponse");try{return a(await r(t.value,t.meta,e.originalArgs),lH({baseQueryMeta:t.meta}))}catch(e){t=e}}throw console.error(t),t}};function d(e,t){let r=o.selectQueryEntry(t,e.queryCacheKey),n=o.selectConfig(t).refetchOnMountOrArgChange,i=r?.fulfilledTimeStamp,a=e.forceRefetch??(e.subscribe&&n);return!!a&&(!0===a||(Number(new Date)-Number(i))/1e3>=a)}let f=()=>rp(`${e}/executeQuery`,c,{getPendingMeta({arg:e}){let t=r[e.endpointName];return lH({startedTimeStamp:Date.now(),...lj(t)?{direction:e.direction}:{}})},condition(e,{getState:t}){let n=t(),i=o.selectQueryEntry(n,e.queryCacheKey),a=i?.fulfilledTimeStamp,s=e.originalArgs,l=i?.originalArgs,u=r[e.endpointName],c=e.direction;return!!lG(e)||i?.status!=="pending"&&(!!(d(e,n)||lB(u)&&u?.forceRefetch?.({currentArg:s,previousArg:l,endpointState:i,state:n}))||!a||!!c)},dispatchConditionRejection:!0}
19),h=f(),p=f(),g=rp(`${e}/executeMutation`,c,{getPendingMeta:()=>lH({startedTimeStamp:Date.now()})}),m=e=>"force"in e,A=e=>"ifOlderThan"in e;function y(e){return t=>t?.meta?.arg?.endpointName===e}return{queryThunk:h,mutationThunk:g,infiniteQueryThunk:p,prefetch:(e,t,r)=>(n,a)=>{let o=m(r)&&r.force,s=A(r)&&r.ifOlderThan,l=(r=!0)=>i.endpoints[e].initiate(t,{forceRefetch:r,isPrefetch:!0}),u=i.endpoints[e].select(t)(a());if(o)n(l());else if(s){let e=u?.fulfilledTimeStamp;if(!e){n(l());return}(Number(new Date)-Number(new Date(e)))/1e3>=s&&n(l())}else n(l(!1))},updateQueryData:(e,t,r,n=!0)=>(a,o)=>{let s;let l=i.endpoints[e].select(t)(o()),u={patches:[],inversePatches:[],undo:()=>a(i.util.patchQueryData(e,t,u.inversePatches,n))};if("uninitialized"===l.status)return u;if("data"in l){if(tf(l.data)){let[e,t,n]=tW(l.data,r);u.patches.push(...t),u.inversePatches.push(...n),s=e}else s=r(l.data),u.patches.push({op:"replace",path:[],value:s}),u.inversePatches.push({op:"replace",path:[],value:l.data})}return 0===u.patches.length||a(i.util.patchQueryData(e,t,u.patches,n)),u},upsertQueryData:(e,t,r)=>n=>n(i.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[lQ]:()=>({data:r})})),patchQueryData:(e,t,o,s)=>(l,u)=>{let c=r[e],d=n({queryArgs:t,endpointDefinition:c,endpointName:e});if(l(i.internalActions.queryResultPatched({queryCacheKey:d,patches:o})),!s)return;let f=i.endpoints[e].select(t)(u()),h=lU(c.providesTags,f.data,void 0,t,{},a);l(i.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:h}))},buildMatchThunkActions:function(e,t){return{matchPending:rt(ri(e),y(t)),matchFulfilled:rt(rs(e),y(t)),matchRejected:rt(ra(e),y(t))}}}}({baseQuery:r,reducerPath:i,context:d,api:t,serializeQueryArgs:a,assertTagType:f,selectors:h}),{reducer:k,actions:O}=function({reducerPath:e,queryThunk:t,mutationThunk:r,serializeQueryArgs:n,context:{endpointDefinitions:i,apiUid:a,extractRehydrationInfo:o,hasRehydrationInfo:s},assertTagType:l,config:u}){let c=t$(`${e}/resetApiState`);function d(e,t,r,n){e[t.queryCacheKey]??={status:"uninitialized",endpointName:t.endpointName},lZ(e,t.queryCacheKey,e=>{e.status="pending",e.requestId=r&&e.requestId?e.requestId:n.requestId,void 0!==t.originalArgs&&(e.originalArgs=t.originalArgs),e.startedTimeStamp=n.startedTimeStamp,lj(i[n.arg.endpointName])&&"direction"in t&&(e.direction=t.direction)})}function f(e,t,r,n){lZ(e,t.arg.queryCacheKey,e=>{if(e.requestId!==t.requestId&&!n)return;let{merge:a}=i[t.arg.endpointName];if(e.status="fulfilled",a){if(void 0!==e.data){let{fulfilledTimeStamp:n,arg:i,baseQueryMeta:o,requestId:s}=t,l=tK(e.data,e=>a(e,r,{arg:i.originalArgs,baseQueryMeta:o,fulfilledTimeStamp:n,requestId:s}));e.data=l}else e.data=r}else{var o;e.data=i[t.arg.endpointName].structuralSharing??!0?function e(t,r){if(t===r||!(te(t)&&te(r)||Array.isArray(t)&&Array.isArray(r)))return r;let n=Object.keys(r),i=Object.keys(t),a=n.length===i.length,o=Array.isArray(r)?[]:{};for(let i of n)o[i]=e(t[i],r[i]),a&&(a=t[i]===o[i]);return a?t:o}(td(e.data)?(td(o=e.data)||tu(15,o),o[tl].base_):e.data,r):r}delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp})}let h=ry({name:`${e}/queries`,initialState:lJ,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:t3()},cacheEntriesUpserted:{reducer(e,t){for(let r of t.payload){let{queryDescription:n,value:i}=r;d(e,n,!0,{arg:n,requestId:t.meta.requestId,startedTimeStamp:t.meta.timestamp}),f(e,{arg:n,requestId:t.meta.requestId,fulfilledTimeStamp:t.meta.timestamp,baseQueryMeta:{}},i,!0)}},prepare:e=>({payload:e.map(e=>{let{endpointName:t,arg:r,value:a}=e,o=i[t];return{queryDescription:{type:"query",endpointName:t,originalArgs:e.arg,queryCacheKey:n({queryArgs:r,endpointDefinition:o,endpointName:t})},value:a}}),meta:{[t2]:!0,requestId:ru(),timestamp:Date.now()}})},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:r}}){lZ(e,t,e=>{e.data=tY(e.data,r.concat())})},prepare:t3()}},extraReducers(e){e.addCase(t.pending,(e,{meta:t,meta:{arg:r}})=>{let n=lG(r);d(e,r,n,t)}).addCase(t.fulfilled,(e,{meta:t,payload:r})=>{let n=lG(t.arg);f(e,t,r,n)}).addCase(t.rejected,(e,{meta:{condition:t,arg:r,requestId:n},error:i,payload:a})=>{lZ(e,r.queryCacheKey,e=>{if(t);else{if(e.requestId!==n)return;e.status="rejected",e.error=a??i}})}).addMatcher(s,(e,t)=>{let{queries:r}=o(t);for(let[t,n]of Object.entries(r))(n?.status==="fulfilled"||n?.status==="rejected")&&(e[t]=n)})}}),p=ry({name:`${e}/mutations`,initialState:lJ,reducers:{removeMutationResult:{reducer(e,{payload:t}){let r=lz(t);r in e&&delete e[r]},prepare:t3()}},extraReducers(e){e.addCase(r.pending,(e,{meta:t,meta:{requestId:r,arg:n,startedTimeStamp:i}})=>{n.track&&(e[lz(t)]={requestId:r,status:"pending",endpointName:n.endpointName,startedTimeStamp:i})}).addCase(r.fulfilled,(e,{payload:t,meta:r})=>{r.arg.track&&l$(e,r,e=>{e.requestId===r.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=r.fulfilledTimeStamp)})}).addCase(r.rejected,(e,{payload:t,error:r,meta:n})=>{n.arg.track&&l$(e,n,e=>{e.requestId===n.requestId&&(e.status="rejected",e.error=t??r)})}).addMatcher(s,(e,t)=>{let{mutations:r}=o(t);for(let[t,n]of Object.entries(r))(n?.status==="fulfilled"||n?.status==="rejected")&&t!==n?.requestId&&(e[t]=n)})}}),g=ry({name:`${e}/invalidation`,initialState:lJ,reducers:{updateProvidedBy:{reducer(e,t){let{queryCacheKey:r,providedTags:n}=t.payload;for(let t of Object.values(e))for(let e of Object.values(t)){let t=e.indexOf(r);-1!==t&&e.splice(t,1)}for(let{type:t,id:i}of n){let n=(e[t]??={})[i||"__internal_without_id"]??=[];n.includes(r)||n.push(r)}},prepare:t3()}},extraReducers(e){e.addCase(h.actions.removeQueryResult,(e,{payload:{queryCacheKey:t}})=>{for(let r of Object.values(e))for(let e of Object.values(r)){let r=e.indexOf(t);-1!==r&&e.splice(r,1)}}).addMatcher(s,(e,t)=>{let{provided:r}=o(t);for(let[t,n]of Object.entries(r))for(let[r,i]of Object.entries(n)){let n=(e[t]??={})[r||"__internal_without_id"]??=[];for(let e of i)n.includes(e)||n.push(e)}}).addMatcher(re(rs(t),ro(t)),(e,t)=>{let r=lY(t,"providesTags",i,l),{queryCacheKey:n}=t.meta.arg;g.caseReducers.updateProvidedBy(e,g.actions.updateProvidedBy({queryCacheKey:n,providedTags:r}))})}}),m=ry({name:`${e}/subscriptions`,initialState:lJ,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),A=ry({name:`${e}/internalSubscriptions`,initialState:lJ,reducers:{subscriptionsUpdated:{reducer:(e,t)=>tY(e,t.payload),prepare:t3()}}}),y=ry({name:`${e}/config`,initialState:{online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine,focu
19sed:"undefined"==typeof document||"hidden"!==document.visibilityState,middlewareRegistered:!1,...u},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&a===t||"conflict"}},extraReducers:e=>{e.addCase(lP,e=>{e.online=!0}).addCase(lL,e=>{e.online=!1}).addCase(lM,e=>{e.focused=!0}).addCase(lF,e=>{e.focused=!1}).addMatcher(s,e=>({...e}))}}),v=tt({queries:h.reducer,mutations:p.reducer,provided:g.reducer,subscriptions:A.reducer,config:y.reducer});return{reducer:(e,t)=>v(c.match(t)?void 0:e,t),actions:{...y.actions,...h.actions,...m.actions,...A.actions,...p.actions,...g.actions,resetApiState:c}}}({context:d,queryThunk:v,infiniteQueryThunk:b,mutationThunk:w,serializeQueryArgs:a,reducerPath:i,assertTagType:f,config:{refetchOnFocus:l,refetchOnReconnect:u,refetchOnMountOrArgChange:s,keepUnusedDataFor:o,reducerPath:i,invalidationBehavior:c}});l8(t.util,{patchQueryData:S,updateQueryData:I,upsertQueryData:E,prefetch:C,resetApiState:O.resetApiState,upsertQueryEntries:O.cacheEntriesUpserted}),l8(t.internalActions,O);let{middleware:T,actions:R}=function(e){let{reducerPath:t,queryThunk:r,api:n,context:i}=e,{apiUid:a}=i,o={invalidateTags:t$(`${t}/invalidateTags`)},s=e=>e.type.startsWith(`${t}/`),l=[ue,l6,ut,ur,l7,un];return{middleware:r=>{let o=!1,c={...e,internalState:{currentSubscriptions:{}},refetchQuery:u,isThisApiSliceAction:s},d=l.map(e=>e(c)),f=l5(c),h=ui(c);return e=>l=>{let u;if(!tn(l))return e(l);o||(o=!0,r.dispatch(n.internalActions.middlewareRegistered(a)));let c={...r,next:e},p=r.getState(),[g,m]=f(l,c,p);if(u=g?e(l):m,r.getState()[t]&&(h(l,c,p),s(l)||i.hasRehydrationInfo(l)))for(let e of d)e(l,c,p);return u}},actions:o};function u(t){return e.api.endpoints[t.endpointName].initiate(t.originalArgs,{subscribe:!1,forceRefetch:!0})}}({reducerPath:i,context:d,queryThunk:v,mutationThunk:w,infiniteQueryThunk:b,api:t,assertTagType:f,selectors:h});l8(t.util,R),l8(t,{reducer:k,middleware:T});let{buildInitiateQuery:_,buildInitiateInfiniteQuery:D,buildInitiateMutation:N,getRunningMutationThunk:M,getRunningMutationsThunk:F,getRunningQueriesThunk:P,getRunningQueryThunk:L}=function({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:r,mutationThunk:n,api:i,context:a}){let o=new Map,s=new Map,{unsubscribeQueryResult:l,removeMutationResult:u,updateSubscriptionOptions:c}=i.internalActions;return{buildInitiateQuery:function(e,t){return d(e,t)},buildInitiateInfiniteQuery:function(e,t){return d(e,t)},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:i}={})=>(a,o)=>{var l,c;let d=a(n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:i})),{requestId:f,abort:h,unwrap:p}=d,g=Object.assign((l=d.unwrap().then(e=>({data:e})),c=e=>({error:e}),l.catch(c)),{arg:d.arg,requestId:f,abort:h,unwrap:p,reset:()=>{a(u({requestId:f,fixedCacheKey:i}))}}),m=s.get(a)||{};return s.set(a,m),m[f]=g,g.then(()=>{delete m[f],lw(m)||s.delete(a)}),i&&(m[i]=g,g.then(()=>{m[i]!==g||(delete m[i],lw(m)||s.delete(a))})),g}},getRunningQueryThunk:function(t,r){return n=>{let i=e({queryArgs:r,endpointDefinition:a.endpointDefinitions[t],endpointName:t});return o.get(n)?.[i]}},getRunningMutationThunk:function(e,t){return e=>s.get(e)?.[t]},getRunningQueriesThunk:function(){return e=>Object.values(o.get(e)||{}).filter(lI)},getRunningMutationsThunk:function(){return e=>Object.values(s.get(e)||{}).filter(lI)}};function d(n,a){let s=(u,{subscribe:d=!0,forceRefetch:f,subscriptionOptions:h,[lQ]:p,...g}={})=>(m,A)=>{let y;let v=e({queryArgs:u,endpointDefinition:a,endpointName:n}),b={...g,type:"query",subscribe:d,forceRefetch:f,subscriptionOptions:h,endpointName:n,originalArgs:u,queryCacheKey:v,[lQ]:p};if(lB(a))y=t(b);else{let{direction:e,initialPageParam:t}=g;y=r({...b,direction:e,initialPageParam:t})}let w=i.endpoints[n].select(u),S=m(y),I=w(A()),{requestId:E,abort:C}=S,x=I.requestId!==E,k=o.get(m)?.[v],O=()=>w(A()),T=Object.assign(p?S.then(O):x&&!k?Promise.resolve(I):Promise.all([k,S]).then(O),{arg:u,requestId:E,subscriptionOptions:h,queryCacheKey:v,abort:C,async unwrap(){let e=await T;if(e.isError)throw e.error;return e.data},refetch:()=>m(s(u,{subscribe:!1,forceRefetch:!0})),unsubscribe(){d&&m(l({queryCacheKey:v,requestId:E}))},updateSubscriptionOptions(e){T.subscriptionOptions=e,m(c({endpointName:n,requestId:E,queryCacheKey:v,options:e}))}});if(!k&&!x&&!p){var R;let e=(R={},o.has(m)?o.get(m):o.set(m,R).get(m));e[v]=T,T.then(()=>{delete e[v],lw(e)||o.delete(m)})}return T};return s}}({queryThunk:v,mutationThunk:w,infiniteQueryThunk:b,api:t,serializeQueryArgs:a,context:d});return l8(t.util,{getRunningMutationThunk:M,getRunningMutationsThunk:F,getRunningQueryThunk:L,getRunningQueriesThunk:P}),{name:ua,injectEndpoint(e,r){let n=t.endpoints[e]??={};lB(r)&&l8(n,{name:e,select:m(e,r),initiate:_(e,r)},x(v,e)),"mutation"===r.type&&l8(n,{name:e,select:y(),initiate:N(e)},x(w,e)),lj(r)&&l8(n,{name:e,select:A(e,r),initiate:D(e,r)},x(v,e))}}}}))());let us=async(e,t,r)=>{let n=t.getState(),{accessToken:i,environment:a,organizationId:o}=n.configuration,s=n.generatedAnswer.answerConfigurationId,l={...e,headers:{...e?.headers||{},Authorization:`Bearer ${i}`}};try{let e=eC(o,a);return{data:(function({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:r=lx,paramsSerializer:n,isJsonContentType:i=lO,jsonContentType:a="application/json",jsonReplacer:o,timeout:s,responseHandler:l,validateStatus:u,...c}={}){return"undefined"==typeof fetch&&r===lx&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(f,h,p)=>{let g,m;let{getState:A,extra:y,endpoint:v,forced:b,type:w}=h,{url:S,headers:I=new Headers(c.headers),params:E,responseHandler:C=l??"json",validateStatus:x=u??lk,timeout:k=s,...O}="string"==typeof f?{url:f}
19:f,T,R=h.signal;k&&(T=new AbortController,h.signal.addEventListener("abort",T.abort),R=T.signal);let _={...c,signal:R,...O};I=new Headers(lT(I)),_.headers=await t(I,{getState:A,arg:f,extra:y,endpoint:v,forced:b,type:w,extraOptions:p})||I;let D=e=>"object"==typeof e&&(te(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!_.headers.has("content-type")&&D(_.body)&&_.headers.set("content-type",a),D(_.body)&&i(_.headers)&&(_.body=JSON.stringify(_.body,o)),E){let e=~S.indexOf("?")?"&":"?";S+=e+(n?n(E):new URLSearchParams(lT(E)))}let N=new Request(S=function(e,t){var r;if(!e)return t;if(!t)return e;if(r=t,RegExp("(^|:)//").test(r))return t;let n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=lE(e),t=lC(t),`${e}${n}${t}`}(e,S),_);g={request:new Request(S,_)};let M,F=!1,P=T&&setTimeout(()=>{F=!0,T.abort()},k);try{M=await r(N)}catch(e){return{error:{status:F?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:g}}finally{P&&clearTimeout(P),T?.signal.removeEventListener("abort",T.abort)}let L=M.clone();g.response=L;let B="";try{let e;if(await Promise.all([d(M,C).then(e=>m=e,t=>e=t),L.text().then(e=>B=e,()=>{})]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:M.status,data:B,error:String(e)},meta:g}}return x(M,m)?{data:m,meta:g}:{error:{status:M.status,data:m},meta:g}};async function d(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=i(e.headers)?"json":"text"),"json"===t){let t=await e.text();return t.length?JSON.parse(t):null}return e.text()}})({baseUrl:`${e}/rest/organizations/${o}/answer/v1/configs/${s}`})(l,t,r)}}catch(e){return{error:e}}},ul=uo({reducerPath:"answer",baseQuery:lN(us,{maxRetries:3}),endpoints:()=>({})}),uu=uo({reducerPath:"answerGenerationApi",refetchOnMountOrArgChange:!0,baseQuery:lN(us,{maxRetries:3}),endpoints:()=>({})}),uc=e=>e.query,ud=e=>e.query?.enableQuerySyntax;nv(e=>uc(e)?.q,e=>e.search.requestId,e=>e.generatedAnswer.cannotAnswer,e=>e.configuration.analytics.analyticsMode,e=>e.search.searchAction?.actionCause,(e,t,r,n,i)=>({q:e,requestId:t,cannotAnswer:r,analyticsMode:n,actionCause:i})),nv(e=>e.generatedAnswer?.answerApiQueryParams,e=>e);let uf=()=>({contentFormat:void 0,answer:void 0,citations:void 0,error:void 0,generated:!1,isStreaming:!1,isLoading:!0}),uh=(e,t)=>{t&&(e.answerId=t)},up=(e,t)=>{let{contentFormat:r}=t;e.contentFormat=r,e.isStreaming=!0,e.isLoading=!1},ug=(e,t)=>{void 0===e.answer?e.answer=t.textDelta:"string"==typeof t.textDelta&&(e.answer=e.answer.concat(t.textDelta))},um=(e,t)=>{e.citations=t.citations},uA=(e,t)=>{e.generated=t.answerGenerated,e.isStreaming=!1},uy=(e,t)=>{let r=t.errorMessage||"Unknown error occurred";e.error={message:r,code:t.code??500},e.isStreaming=!1,e.isLoading=!1,console.error(`Generated answer error: ${r} (code: ${t.code})`)},uv=(e,t)=>
19{let r=e.headers.get("x-answer-id");r&&t(e=>{uh(e,r)})},ub={"agentInteraction.answerHeader":(e,t)=>{t(e=>{up(e,{contentFormat:"text/markdown"})})},"generativeengines.messageType":(e,t)=>{e?.payload?.textDelta&&t(t=>{ug(t,e.payload)})},"agentInteraction.citations":(e,t)=>{e?.payload?.citations!==void 0&&t(t=>{um(t,e.payload)})},"generativeengines.endOfStreamType":(e,t)=>{t(t=>{uA(t,e.payload)})},error:(e,t)=>{"ERROR"===e.finishReason&&t(t=>{uy(t,e)})}},uw=(e,t,r,n)=>{let{dispatch:i,updateCachedData:a,getState:o}=r,{configuration:{accessToken:s}}=o();return ef(e,{method:"POST",body:JSON.stringify(t),headers:{Authorization:`Bearer ${s}`,Accept:"text/event-stream","Content-Type":"application/json","Accept-Encoding":"*"},fetch,onopen:async e=>{uv(e,a),n.handleOpen(e,i)},onclose:()=>{n.handleClose?.(i)},onerror:e=>{n.handleError(e)},onmessage:e=>{let t=function(e){if(!e?.length)return null;try{return JSON.parse(e)}catch(t){return console.warn("Failed to parse message",{payload:e,error:t}),null}}(e.data);if(!t)return;ub.error?.(t,a),n.handleMessage.error?.(t,i);let r=t.payloadType;ub[r]?.(t,a),n.handleMessage[r]?.(t,i)}})},uS=e=>{let{configuration:t}=e,{organizationId:r,environment:n,knowledge:{agentId:i}}=t,a=eC(r,n),o=i?.trim();if(!a||!r||!o)throw Error("Missing required parameters for follow up endpoint");let s=`/api/preview/organizations/${r}/agents`;return`${a}${s}/${o}/follow-up`},uI=uu.injectEndpoints({overrideExisting:!0,endpoints:e=>({generateFollowUpAnswer:e.query({queryFn:()=>({data:uf()}),async onQueryStarted(e,{getState:t,updateCachedData:r,dispatch:n}){let{strategyKey:i,...a}=e,o=uS(t());await uw(o,a,{getState:t,updateCachedData:r,dispatch:n},uZ[i]?.())}})})}),uE=e=>uI.endpoints.generateFollowUpAnswer.initiate(e),uC=["searching","thinking","answering"];function ux(){return{id:"",isVisible:!0,isEnabled:!0,isLoading:!1,isStreaming:!1,citations:[],liked:!1,disliked:!1,responseFormat:{contentFormat:["text/plain"]},feedbackModalOpen:!1,feedbackSubmitted:!1,fieldsToIncludeInCitations:[],isAnswerGenerated:!1,expanded:!1,cannotAnswer:!1,answerApiQueryParams:void 0,answerId:void 0,answerGenerationMode:"automatic",generationSteps:[]}}let uk=(e,t)=>({conversationId:t.followUpAnswers?.conversationId??"",q:e}),uO=new Z({required:!0}),uT=t$("followUpAnswers/setIsEnabled",e=>e2(e,new V({required:!0}))),uR=t$("followUpAnswers/setFollowUpAnswersConversationId",e=>e2(e,eY)),u_=t$("followUpAnswers/createFollowUpAnswer",e=>e2(e,{question:eY})),uD=t$("followUpAnswers/setActiveFollowUpAnswerId",e=>e2(e,eY)),uN=t$("followUpAnswers/setFollowUpAnswerContentFormat",e=>e2(e,{contentFormat:cc,answerId:eY})),uM=t$("followUpAnswers/setFollowUpIsLoading",e=>e2(e,{isLoading:new V({required:!0}),answerId:eY})),uF=t$("followUpAnswers/setFollowUpIsStreaming",e=>e2(e,{isStreaming:new V({required:!0}),answerId:eY})),uP=t$("followUpAnswers/followUpMessageChunkReceived",e=>e2(e,{textDelta:uO,answerId:eY})),uL=t$("followUpAnswers/followUpCitationsReceived",e=>e2(e,{citations:new X({required:!0,each:new $({values:cu})}),answerId:eY})),uB=t$("followUpAnswers/followUpCompleted",e=>e2(e,{answerId:eY,cannotAnswer:new V({required:!1})})),uj=t$("followUpAnswers/followUpFailed",e=>e2(e,{message:new Z,code:new K({min:0}),answerId:eY})),uU=t$("followUpAnswers/activeFollowUpStartFailed",e=>e2(e,{message:new Z})),uq=t$("followUpAnswers/likeFollowUp",e=>e2(e,{answerId:eY})),uQ=t$("followUpAnswers/dislikeFollowUp",e=>e2(e,{answerId:eY})),uG=t$("followUpAnswers/submitFollowUpFeedback",e=>e2(e,{answerId:eY})),uV=t$("followUpAnswers/resetFollowUpAnswers"),uH=t$("followUpAnswers/stepStarted",e=>e2(e,{answerId:eY,name:new Z({required:!0,constrainTo:uC}),startedAt:new K({min:0,required:!0})})),uK=t$("followUpAnswers/stepFinished",e=>e2(e,{answerId:eY,name:new Z({required:!0,constrainTo:uC}),finishedAt:new K({min:0,required:!0})}));rp("generatedAnswerWithFollowUps/generateFollowUpAnswer",async(e,{getState:t,dispatch:r,extra:{logger:n}})=>{let i=t(),a=ac(i)?.trim(),o=uk(e,i);if(!a){n.warn("Missing agentId in engine configuration. The generateFollowUpAnswer action requires an agent ID.");return}if(!o.conversationId){n.warn("Missing conversationId when generating a follow-up answer. The generateFollowUpAnswer action requires an existing conversation.");return}r(u_({question:e})),await r(uE({strategyKey:"follow-up-answer",...o}))});let uW=e=>a5({prefix:"analytics/generatedAnswer/streamEnd",__legacy__getBuilder:(t,r)=>{let n=ad(r),i=e?!r.generatedAnswer?.answer||!r.generatedAnswer?.answer.length:void 0;return n?t.makeGeneratedAnswerStreamEnd({generativeQuestionAnsweringId:n,answerGenerated:e,answerTextIsEmpty:i}):null},analyticsType:"Rga.AnswerReceived",analyticsPayloadBuilder:t=>({answerId:ad(t)??"",answerGenerated:e??!1})}),uY=()=>a5({prefix:"analytics/generatedAnswer/responseLinked",__legacy__getBuilder:()=>null,analyticsType:"Rga.ResponseLinked",analyticsPayloadBuilder:e=>({answerId:ad(e)??"",responseId:e.search?.searchResponseId||e.search?.response.searchUid||""})}),uZ={"head-answer":()=>({handleOpen:(e,t)=>{let r=e.headers.get("x-answer-id");r&&t(cf(r))},handleError:e=>{throw e},handleMessage:{"agentInteraction.answerHeader":(e,t)=>{e?.payload?.conversationId&&t(uR(e.payload.conversationId)),e.payload.followUpEnabled&&t(uT(e.payload.followUpEnabled)),t(cT("text/markdown")),t(cO(!0)),t(ck(!1))},"generativeengines.messageType":(e,t)=>{e?.payload?.textDelta&&t(cg({textDelta:e.payload.textDelta}))},"agentInteraction.citations":(e,t)=>
19{e?.payload?.citations!==void 0&&t(cm({citations:e.payload.citations}))},"generativeengines.endOfStreamType":(e,t)=>{let r=e?.payload?.answerGenerated??!1;t(cN(r)),t(cM(!r)),t(cO(!1)),t(ck(!1)),t(uW(r)),t(uY())},error:(e,t)=>{"ERROR"===e.finishReason&&t(cA(e))}}}),"follow-up-answer":()=>{let e=null;return{handleOpen:(t,r)=>{(e=t.headers.get("x-answer-id"))&&(r(uD(e)),r(uM({answerId:e,isLoading:!0})),r(uN({contentFormat:"text/markdown",answerId:e})))},handleError:e=>{throw e},handleMessage:{"generativeengines.messageType":(t,r)=>{t?.payload?.textDelta&&r(uP({textDelta:t.payload.textDelta,answerId:e}))},"agentInteraction.citations":(t,r)=>{t?.payload?.citations!==void 0&&r(uL({citations:t.payload.citations,answerId:e}))},"generativeengines.endOfStreamType":(t,r)=>{r(uB({cannotAnswer:!t?.payload?.answerGenerated,answerId:e}))},error:(t,r)=>{"ERROR"===t.finishReason&&r(uj({answerId:e,message:t.errorMessage,code:t.code}))}}}}},uz=e=>{let{configuration:t}=e,{organizationId:r,environment:n,knowledge:{agentId:i}}=t,a=eC(r,n),o=i?.trim();if(!a||!r||!o)throw Error("Missing required parameters for answer endpoint");let s=`/api/preview/organizations/${r}/agents`;return`${a}${s}/${o}/answer`},u$=uu.injectEndpoints({overrideExisting:!0,endpoints:e=>({generateAnswer:e.query({queryFn:()=>({data:uf()}),async onQueryStarted(e,{getState:t,updateCachedData:r,dispatch:n}){let{strategyKey:i,...a}=e,o=uz(t());await uw(o,a,{getState:t,updateCachedData:r,dispatch:n},uZ[i]?.())}})})}),uJ=e=>u$.endpoints.generateAnswer.initiate(e),uX=nv(e=>e.advancedSearchQueries,e=>{if(!e)return{};let{aq:t,cq:r,dq:n,lq:i}=e;return{...t&&{aq:t},...r&&{cq:r},...n&&{dq:n},...i&&{lq:i}}}),u0=e=>e.context,u1=e=>e.pipeline,u2=e=>e.searchHub,u3=nv(e=>e,e=>{if(!e)return"";for(let t in e)if(e[t].isActive)return e[t].id;return""});nv(e=>e,e=>{let t=u3(e);return t&&e?e[t].expression:""});let u4=e=>{if(e.dictionaryFieldContext&&Object.keys(e.dictionaryFieldContext.contextValues).length)return e.dictionaryFieldContext.contextValues},u8=e=>e.excerptLength?.length,u5=(e,t)=>e.facetOptions.facets[t]?.enabled??!0,u6=e=>{let{freezeFacetOrder:t}=e.facetOptions??{};return void 0!==t?{freezeFacetOrder:t}:void 0},u9=e=>{if(e.folding)return{filterField:e.folding.fields.collection,childField:e.folding.fields.parent,parentField:e.folding.fields.child,filterFieldRange:e.folding.filterFieldRange}},u7=e=>e.sortCriteria,ce=async e=>({accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,url:eC(e.configuration.organizationId,e.configuration.environment),streamId:e.search.extendedResults?.generativeQuestionAnsweringId}),ct=(e,t)=>{let r=uc(e)?.q,{aq:n,cq:i,dq:a,lq:o}=ca(e),s=u0(e),l=o0(e.configuration.analytics,t,{actionCause:lc(e)}),u=u2(e),c=u1(e),d=ag(e)??[],f=cn(e),h=u3(e.tabSet)||"default",p=aa(e),g=ao(e),m=t.referrer||"",A=u6(e),y=u7(e),v=ci(e),b=u8(e),w=u9(e),S=u4(e);return{q:r,...n&&{aq:n},...i&&{cq:i},...a&&{dq:a},...o&&{lq:o},...e.query&&{enableQuerySyntax:ud(e)},...s?.contextValues&&{context:s.contextValues},pipelineRuleParameters:{mlGenerativeQuestionAnswering:{responseFormat:e.generatedAnswer.responseFormat,citationsFieldToInclude:d}},...u?.length&&{searchHub:u},...c?.length&&{pipeline:c},...f.length&&{facets:f},...e.fields&&{fieldsToInclude:e.fields.fieldsToInclude},...e.didYouMean&&{queryCorrection:{enabled:e.didYouMean.enableDidYouMean&&"next"===e.didYouMean.queryCorrectionMode,options:{automaticallyCorrect:e.didYouMean.automaticallyCorrectQuery?"whenNoResults":"never"}},enableDidYouMean:e.didYouMean.enableDidYouMean&&"legacy"===e.didYouMean.queryCorrectionMode},...e.pagination&&{numberOfResults:s2(e),firstResult:e.pagination.firstResult},tab:h,locale:p,timezone:g,...void 0!==e.debug&&{debug:e.debug},referrer:m,...v,...w??{},...b&&{excerptLength:b},...S&&{dictionaryFieldContext:S},sortCriteria:y,...A&&{facetOptions:A},...l,...e.insightCaseContext?.caseContext&&{caseContext:e.insightCaseContext?.caseContext}}},cr=(e,t)=>{let r=uc(e)?.q,n=cn(e),i=o0(e.configuration.analytics,t,{actionCause:lc(e)}),a=aa(e),o=u2(e),s=u1(e),l=ag(e)??[];return{q:r||"",...n.length&&{facets:n},pipelineRuleParameters:{mlGenerativeQuestionAnswering:{responseFormat:e.generatedAnswer.responseFormat,citationsFieldToInclude:l}},...o?.length&&{searchHub:o},...s?.length&&{pipeline:s},...i,locale:a}},cn=e=>sq(e)?.map(e=>sg(e,sp())).sort((e,t)=>
19e.facetId>t.facetId?1:t.facetId>e.facetId?-1:0),ci=e=>({actionsHistory:e.configuration.analytics.enabled?aZ.getInstance().getHistory():[]}),ca=e=>{let t=uX(e),r=s8(e);return{...t,...r&&{cq:r}}},co=new Z({required:!0}),cs=new Z,cl=new V({required:!0}),cu={id:co,title:co,uri:co,permanentid:co,clickUri:cs},cc=new Z({required:!0,constrainTo:["text/plain","text/markdown"]}),cd=t$("generatedAnswer/setIsVisible",e=>e2(e,cl)),cf=t$("generatedAnswer/setAnswerId",e=>e2(e,eY)),ch=t$("generatedAnswer/setAnswerGenerationMode",e=>e2(e,new Z({constrainTo:["automatic","manual"],required:!1,default:"automatic"}))),cp=t$("generatedAnswer/setIsEnabled",e=>e2(e,cl)),cg=t$("generatedAnswer/updateMessage",e=>e2(e,{textDelta:co})),cm=t$("generatedAnswer/updateCitations",e=>e2(e,{citations:new X({required:!0,each:new $({values:cu})})})),cA=t$("generatedAnswer/updateError",e=>e2(e,{message:cs,code:new K({min:0})})),cy=t$("generatedAnswer/resetAnswer"),cv=t$("generatedAnswer/like"),cb=t$("generatedAnswer/dislike"),cw=t$("generatedAnswer/feedbackModal/open"),cS=t$("generatedAnswer/expand"),cI=t$("generatedAnswer/collapse"),cE=t$("generatedAnswer/setId",e=>e2(e,{id:new Z({required:!0})})),cC=t$("generatedAnswer/feedbackModal/close"),cx=t$("generatedAnswer/sendFeedback"),ck=t$("generatedAnswer/setIsLoading",e=>e2(e,cl)),cO=t$("generatedAnswer/setIsStreaming",e=>e2(e,cl)),cT=t$("generatedAnswer/setAnswerContentFormat",e=>e2(e,cc)),cR=t$("generatedAnswer/updateResponseFormat",e=>e2(e,{contentFormat:new X({each:cc,default:["text/plain"]})})),c_=t$("knowledge/updateAnswerConfigurationId",e=>e2(e,co)),cD=t$("generatedAnswer/registerFieldsToIncludeInCitations",e=>e2(e,e$)),cN=t$("generatedAnswer/setIsAnswerGenerated",e=>e2(e,cl)),cM=t$("generatedAnswer/setCannotAnswer",e=>e2(e,cl)),cF=t$("generatedAnswer/setAnswerApiQueryParams",e=>e2(e,new $({}))),cP=t$("generatedAnswer/startStep",e=>e2(e,{name:new Z({required:!0,constrainTo:uC}),startedAt:new K({min:0,required:!0})})),cL=t$("generatedAnswer/finishStep",e=>e2(e,{name:new Z({required:!0,constrainTo:uC}),finishedAt:new K({min:0,required:!0})}));rp("generatedAnswer/streamAnswer",async(e,t)=>{let r=t.getState(),{dispatch:n,extra:i,getState:a}=t,{search:o}=a(),{queryExecuted:s}=o,{setAbortControllerRef:l}=e,u=await ce(r),c=(e,t)=>{switch(e){case"genqa.headerMessageType":n(cT(JSON.parse(t).contentFormat));break;case"genqa.messageType":n(cg(JSON.parse(t)));break;case"genqa.citationsType":n(cm(JSON.parse(t)));break;case"genqa.endOfStreamType":{let e=JSON.parse(t).answerGenerated;n(cM(0!==s.length&&!e)),n(cO(!1)),n(cN(e)),n(uW(e)),n(uY());break}default:r.debug&&i.logger.warn(`Unknown payloadType: "${e}"`)}};n(ck(!0));let d=e=>e.streamId===t.getState().search.extendedResults.generativeQuestionAnsweringId,f=i.streamingClient?.streamGeneratedAnswer(u,{write:e=>{d(u)&&(n(ck(!1)),e.payload&&e.payloadType&&c(e.payloadType,e.payload))},abort:e=>{d(u)&&n(cA(e))},close:()=>{d(u)&&n(cO(!1))},resetAnswer:()=>{d(u)&&n(cy())}});f?l(f):n(ck(!1))}),rp("generatedAnswer/generateAnswer",async(e,{getState:t,dispatch:r,extra:{navigatorContext:n,logger:i}})=>{r(cy());let a=t();if(a.generatedAnswer.answerConfigurationId){let e=ct(a,n);r(cF(e)),await r(cK(e))}else i.warn("[WARNING] Missing answerConfigurationId in engine configuration. The generateAnswer action requires an answer configuration ID to use CRGA with the Answer API.")}),rp("generatedAnswerWithFollowUps/generateHeadAnswer",async(e,{getState:t,dispatch:r,extra:{navigatorContext:n,logger:i}})=>{let a=t();if(!ac(a)){i.warn("Missing agentId in engine configuration. The generateHeadAnswer action requires an agent ID.");return}r(cy());let o=cr(a,n),s={...o,strategyKey:"head-answer"};r(cF(o)),await r(uJ(s))});let cB=(e,t)=>{let{contentFormat:r}=t;e.contentFormat=r,e.isStreaming=!0,e.isLoading=!1},cj=(e,t)=>{void 0===e.answer?e.answer=t.textDelta:"string"==typeof t.textDelta&&(e.answer=e.answer.concat(t.textDelta))},cU=(e,t)=>{e.citations=t.citations},cq=(e,t)=>{e.generated=t.answerGenerated,e.isStreaming=!1},cQ=(e,t)=>{let r=t.errorMessage||"Unknown error occurred";e.error={message:r,code:t.code},e.isStreaming=!1,e.isLoading=!1,console.error(`Generated answer error: ${r} (code: ${t.code})`)},cG=(e,t,r)=>{let n=JSON.parse(e.data);"ERROR"===n.finishReason&&n.errorMessage&&cQ(t,n);let i=n.payload.length?JSON.parse(n.payload):{};switch(n.payloadType){case"genqa.headerMessageType":i.contentFormat&&(cB(t,i),r(cT(i.contentFormat)));break;case"genqa.messageType":i.textDelta&&(cj(t,i),r(cg({textDelta:i.textDelta})));break;case"genqa.citationsType":i.citations&&(cU(t,i),r(cm({citations:i.citations})));break;case"genqa.endOfStreamType":cq(t,i),r(uW(i.answerGenerated??!1)),r(uY())}},cV=(e,t,r,n)=>{if(!e||!t||!r)throw Error("Missing required parameters for answer endpoint");let i=`/rest/organizations/${t}`,a=n?`insight/v1/configs/${n}/answer`:"answer/v1/configs";return`${e}${i}/${a}/${r}/generate`},cH=ul.injectEndpoints({overrideExisting:!0,endpoints:e=>({getAnswer:e.query({queryFn:()=>({data:{contentFormat:void 0,answer:void 0,citations:void 0,error:void 0,generated:!1,isStreaming:!0,isLoading:!0}}),serializeQueryArgs:({endpointName:e,queryArgs:t})=>{let{analytics:r,...n}=t;return`${e}(${JSON.stringify(n)})`},async onCacheEntryAdded(e,{getState:t,cacheDataLoaded:r,updateCachedData:n,dispatch:i}){await r;let{configuration:a,generatedAnswer:o,insightConfiguration:s}=t(),{organizationId:l,environment:u,accessToken:c}=a,d=cV(eC(l,u),l,o.answerConfigurationId,s?.insightId);await ef(d,{method:"POST",body:JSON.stringify(e),headers:{Authorization:`Bearer ${c}`,Accept:"application/json","Content-Type":"application/json","Accept-Encoding":"*"},fetch,onopen:async e=>{let t=e.headers.get("x-answer-id");t&&n(e=>{e.answerId=t,i(cf(t))})},onmessage:e=>{n(t=>{cG(e,t,i)})},onerror:e=>{throw e},onclose:()=>{n(e=>{i(cM(!e.generated))})}})}})})}),cK=e=>cH.endpoints.getAnswer.initiate(e),cW=t9(nw,e=>e),cY=e=>t=>r=>{let n;(function(e){let t=e.payload?.analyticsAction;return"type"in e&&!G(t)})(r)&&(n=r.payload.analyticsAction,delete r.payload.analyticsAction);let i=t(r);return"type"in r&&("search/executeSearch/fullfilled"===r.type&&void 0===n&&console.error("No anal
19ytics action associated with search:",r),"recommendation/get/fullfilled"===r.type&&void 0===n&&console.error("No analytics action associated with recommendation:",r),"productRecommendations/get/fullfilled"===r.type&&void 0===n&&console.error("No analytics action associated with product recommendation:",r)),void 0!==n&&e.dispatch(n),i},cZ=t$("tab/register",e=>e2(e,new $({values:{id:eY,expression:ez}}))),cz=t$("tab/updateActiveTab",e=>e2(e,eY));var c$=r(12511),cJ=r(73963);o6.extend(cJ),o6.extend(c$);let cX=()=>({organizationId:"",accessToken:"",search:{locale:"en-US",timezone:o6.tz.guess(),authenticationProviders:[]},analytics:{enabled:!0,originContext:"Search",originLevel2:"default",originLevel3:"default",anonymous:!1,deviceId:"",userDisplayName:"",documentLocation:"",analyticsMode:"next",source:{}},knowledge:{answerConfigurationId:"",agentId:void 0},environment:"prod"}),c0=/(^|; )Coveo-Pendragon=([^;]*)/,c1=t9(cX(),e=>e.addCase(oh,(e,t)=>{var r;G((r=t.payload).accessToken)||(e.accessToken=r.accessToken),e.environment=r.environment??"prod",G(r.organizationId)||(e.organizationId=r.organizationId)}).addCase(op,(e,t)=>{var r;G((r=t.payload).proxyBaseUrl)||(e.search.apiBaseUrl=r.proxyBaseUrl),G(r.locale)||(e.search.locale=r.locale),G(r.timezone)||(e.search.timezone=r.timezone),G(r.authenticationProviders)||(e.search.authenticationProviders=r.authenticationProviders)}).addCase(om,(e,t)=>{!function(e,t){G(t.enabled)||(e.analytics.enabled=t.enabled),G(t.originContext)||(e.analytics.originContext=t.originContext),G(t.originLevel2)||(e.analytics.originLevel2=t.originLevel2),G(t.originLevel3)||(e.analytics.originLevel3=t.originLevel3),G(t.proxyBaseUrl)||(e.analytics.apiBaseUrl=t.proxyBaseUrl),G(t.trackingId)||(e.analytics.trackingId=t.trackingId),G(t.analyticsMode)||(e.analytics.analyticsMode=t.analyticsMode),G(t.source)||(e.analytics.source=t.source);try{let t="undefined"!=typeof window&&(c0.exec(document.cookie)?.pop()||null);t&&(e.analytics.analyticsMode="next",e.analytics.trackingId=t)}catch(e){}G(t.runtimeEnvironment)||(e.analytics.runtimeEnvironment=t.runtimeEnvironment),G(t.anonymous)||(e.analytics.anonymous=t.anonymous),G(t.deviceId)||(e.analytics.deviceId=t.deviceId),G(t.userDisplayName)||(e.analytics.userDisplayName=t.userDisplayName),G(t.documentLocation)||(e.analytics.documentLocation=t.documentLocation)}(e,t.payload)}).addCase(oA,e=>{e.analytics.enabled=!1}).addCase(oy,e=>{e.analytics.enabled=!0}).addCase(ov,(e,t)=>{e.analytics.originLevel2=t.payload.originLevel2}).addCase(ob,(e,t)=>{e.analytics.originLevel3=t.payload.originLevel3}).addCase(cz,(e,t)=>{e.analytics.originLevel2=t.payload}).addCase(oE,(e,t)=>{e.analytics.originLevel2=t.payload}).addCase(oI,(e,t)=>{G(t.payload.tab)||(e.analytics.originLevel2=t.payload.tab)}).addCase(ow,(e,{payload:t})=>{e.knowledge.agentId=t})),c2=()=>e=>t=>e(t.instantlyCallable?t():t);var c3=r(42630),c4=r(19173);let c8=c3.Ry({name:c3.Z_(),arguments:c3.Z_()}),c5=c3.Ry({id:c3.Z_(),type:c3.i0("function"),function:c8,encryptedValue:c3.Z_().optional()}),c6=c3.Ry({id:c3.Z_(),role:c3.Z_(),content:c3.Z_().optional(),name:c3.Z_().optional(),encryptedValue:c3.Z_().optional()}),c9=c3.Ry({type:c3.i0("text"),text:c3.Z_()}),c7=c3.Ry({type:c3.i0("binary"),mimeType:c3.Z_(),id:c3.Z_().optional(),url:c3.Z_().optional(),data:c3.Z_().optional(),filename:c3.Z_().optional()}),de=(e,t)=>{e.id||e.url||e.data||t.addIssue({code:c4.NL.custom,message:"BinaryInputContent requires at least one of id, url, or data.",path:["id"]})};c7.superRefine((e,t)=>{de(e,t)});let dt=c3.VK("type",[c9,c7]).superRefine((e,t)=>{"binary"===e.type&&de(e,t)}),dr=c6.extend({role:c3.i0("developer"),content:c3.Z_()}),dn=c6.extend({role:c3.i0("system"),content:c3.Z_()}),di=c6.extend({role:c3.i0("assistant"),content:c3.Z_().optional(),toolCalls:c3.IX(c5).optional()}),da=c6.extend({role:c3.i0("user"),content:c3.G0([c3.Z_(),c3.IX(dt)])}),ds=c3.Ry({id:c3.Z_(),content:c3.Z_(),role:c3.i0("tool"),toolCallId:c3.Z_(),error:c3.Z_().optional(),encryptedValue:c3.Z_().optional()}),dl=c3.Ry({id:c3.Z_(),role:c3.i0("activity"),activityType:c3.Z_(),content:c3.IM(c3.Yj())}
19),du=c3.Ry({id:c3.Z_(),role:c3.i0("reasoning"),content:c3.Z_(),encryptedValue:c3.Z_().optional()}),dc=c3.VK("role",[dr,dn,di,da,ds,dl,du]);c3.G0([c3.i0("developer"),c3.i0("system"),c3.i0("assistant"),c3.i0("user"),c3.i0("tool"),c3.i0("activity"),c3.i0("reasoning")]);let dd=c3.Ry({description:c3.Z_(),value:c3.Z_()}),df=c3.Ry({name:c3.Z_(),description:c3.Z_(),parameters:c3.Yj()}),dh=c3.Ry({threadId:c3.Z_(),runId:c3.Z_(),parentRunId:c3.Z_().optional(),state:c3.Yj(),messages:c3.IX(dc),tools:c3.IX(df),context:c3.IX(dd),forwardedProps:c3.Yj()}),dp=c3.Yj();var dg=class extends Error{constructor(e){super(e)}},dm=class extends dg{constructor(){super("Connect not implemented. This method is not supported by the current agent.")}};let dA=c3.G0([c3.i0("developer"),c3.i0("system"),c3.i0("assistant"),c3.i0("user")]),dy=((m={}).TEXT_MESSAGE_START="TEXT_MESSAGE_START",m.TEXT_MESSAGE_CONTENT="TEXT_MESSAGE_CONTENT",m.TEXT_MESSAGE_END="TEXT_MESSAGE_END",m.TEXT_MESSAGE_CHUNK="TEXT_MESSAGE_CHUNK",m.TOOL_CALL_START="TOOL_CALL_START",m.TOOL_CALL_ARGS="TOOL_CALL_ARGS",m.TOOL_CALL_END="TOOL_CALL_END",m.TOOL_CALL_CHUNK="TOOL_CALL_CHUNK",m.TOOL_CALL_RESULT="TOOL_CALL_RESULT",m.THINKING_START="THINKING_START",m.THINKING_END="THINKING_END",m.THINKING_TEXT_MESSAGE_START="THINKING_TEXT_MESSAGE_START",m.THINKING_TEXT_MESSAGE_CONTENT="THINKING_TEXT_MESSAGE_CONTENT",m.THINKING_TEXT_MESSAGE_END="THINKING_TEXT_MESSAGE_END",m.STATE_SNAPSHOT="STATE_
19SNAPSHOT",m.STATE_DELTA="STATE_DELTA",m.MESSAGES_SNAPSHOT="MESSAGES_SNAPSHOT",m.ACTIVITY_SNAPSHOT="ACTIVITY_SNAPSHOT",m.ACTIVITY_DELTA="ACTIVITY_DELTA",m.RAW="RAW",m.CUSTOM="CUSTOM",m.RUN_STARTED="RUN_STARTED",m.RUN_FINISHED="RUN_FINISHED",m.RUN_ERROR="RUN_ERROR",m.STEP_STARTED="STEP_STARTED",m.STEP_FINISHED="STEP_FINISHED",m.REASONING_START="REASONING_START",m.REASONING_MESSAGE_START="REASONING_MESSAGE_START",m.REASONING_MESSAGE_CONTENT="REASONING_MESSAGE_CONTENT",m.REASONING_MESSAGE_END="REASONING_MESSAGE_END",m.REASONING_MESSAGE_CHUNK="REASONING_MESSAGE_CHUNK",m.REASONING_END="REASONING_END",m.REASONING_ENCRYPTED_VALUE="REASONING_ENCRYPTED_VALUE",m),dv=c3.Ry({type:c3.jb(dy),timestamp:c3.Rx().optional(),rawEvent:c3.Yj().optional()}).passthrough(),db=dv.extend({type:c3.i0(dy.TEXT_MESSAGE_START),messageId:c3.Z_(),role:dA.default("assistant")}),dw=dv.extend({type:c3.i0(dy.TEXT_MESSAGE_CONTENT),messageId:c3.Z_(),delta:c3.Z_().refine(e=>e.length>0,"Delta must not be an empty string")}),dS=dv.extend({type:c3.i0(dy.TEXT_MESSAGE_END),messageId:c3.Z_()}),dI=dv.extend({type:c3.i0(dy.TEXT_MESSAGE_CHUNK),messageId:c3.Z_().optional(),role:dA.optional(),delta:c3.Z_().optional()}),dE=dv.extend({type:c3.i0(dy.THINKING_TEXT_MESSAGE_START)}),dC=dw.omit({messageId:!0,type:!0}).extend({type:c3.i0(dy.THINKING_TEXT_MESSAGE_CONTENT)}),dx=dv.extend({type:c3.i0(dy.THINKING_TEXT_MESSAGE_END)}),dk=dv.extend({type:c3.i0(dy.TOOL_CALL_START),toolCallId:c3.Z_(),toolCallName:c3.Z_(),parentMessageId:c3.Z_().optional()}),dO=dv.extend({type:c3.i0(dy.TOOL_CALL_ARGS),toolCallId:c3.Z_(),delta:c3.Z_()}),dT=dv.extend({type:c3.i0(dy.TOOL_CALL_END),toolCallId:c3.Z_()}),dR=dv.extend({messageId:c3.Z_(),type:c3.i0(dy.TOOL_CALL_RESULT),toolCallId:c3.Z_(),content:c3.Z_(),role:c3.i0("tool").optional()}),d_=dv.extend({type:c3.i0(dy.TOOL_CALL_CHUNK),toolCallId:c3.Z_().optional(),toolCallName:c3.Z_().optional(),parentMessageId:c3.Z_().optional(),delta:c3.Z_().optional()}),dD=dv.extend({type:c3.i0(dy.THINKING_START),title:c3.Z_().optional()}),dN=dv.extend({type:c3.i0(dy.THINKING_END)}),dM=dv.extend({type:c3.i0(dy.STATE_SNAPSHOT),snapshot:dp}),dF=dv.extend({type:c3.i0(dy.STATE_DELTA),delta:c3.IX(c3.Yj())}),dP=dv.extend({type:c3.i0(dy.MESSAGES_SNAPSHOT),messages:c3.IX(dc)}),dL=dv.extend({type:c3.i0(dy.ACTIVITY_SNAPSHOT),messageId:c3.Z_(),activityType:c3.Z_(),content:c3.IM(c3.Yj()),replace:c3.O7().optional().default(!0)}),dB=dv.extend({type:c3.i0(dy.ACTIVITY_DELTA),messageId:c3.Z_(),activityType:c3.Z_(),patch:c3.IX(c3.Yj())}),dj=dv.extend({type:c3.i0(dy.RAW),event:c3.Yj(),source:c3.Z_().optional()}),dU=dv.extend({type:c3.i0(dy.CUSTOM),name:c3.Z_(),value:c3.Yj()}),dq=dv.extend({type:c3.i0(dy.RUN_STARTED),threadId:c3.Z_(),runId:c3.Z_(),parentRunId:c3.Z_().optional(),input:dh.optional()}),dQ=dv.extend({type:c3.i0(dy.RUN_FINISHED),threadId:c3.Z_(),runId:c3.Z_(),result:c3.Yj().optional()}),dG=dv.extend({type:c3.i0(dy.RUN_ERROR),message:c3.Z_(),code:c3.Z_().optional()}),dV=dv.extend({type:c3.i0(dy.STEP_STARTED),stepName:c3.Z_()}),dH=dv.extend({type:c3.i0(dy.STEP_FINISHED),stepName:c3.Z_()}),dK=c3.G0([c3.i0("tool-call"),c3.i0("message")]),dW=dv.extend({type:c3.i0(dy.REASONING_START),messageId:c3.Z_()}),dY=dv.extend({type:c3.i0(dy.REASONING_MESSAGE_START),messageId:c3.Z_(),role:c3.i0("reasoning")}),dZ=dv.extend({type:c3.i0(dy.REASONING_MESSAGE_CONTENT),messageId:c3.Z_(),delta:c3.Z_().refine(e=>e.length>0,"Delta must not be an empty string")}),dz=dv.extend({type:c3.i0(dy.REASONING_MESSAGE_END),messageId:c3.Z_()}),d$=dv.extend({type:c3.i0(dy.REASONING_MESSAGE_CHUNK),messageId:c3.Z_().optional(),delta:c3.Z_().optional()}),dJ=dv.extend({type:c3.i0(dy.REASONING_END),messageId:c3.Z_()}),dX=dv.extend({type:c3.i0(dy.REASONING_ENCRYPTED_VALUE),subtype:dK,entityId:c3.Z_(),encryptedValue:c3.Z_()}),d0=c3.VK("type",[db,dw,dS,dI,dD,dN,dE,dC,dx,dk,dO,dT,d_,dR,dM,dF,dP,dL,dB,dj,dU,dq,dQ,dG,dV,dH,dW,dY,dZ,dz,d$,dJ,dX]);var d1=(A=function(e,t){return(A=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d2=Object.prototype.hasOwnProperty;function d3(e,t){return d2.call(e,t)}function d4(e){if(Array.isArray(e)){for(var t=Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);var n=[];for(var i in e)d3(e,i)&&n.push(i);return n}function d8(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function d5(e){for(var t,r=0,n=e.length;r<n;){if((t=e.charCodeAt(r))>=48&&t<=57){r++;continue}return!1}return!0}function d6(e){return -1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function d9(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function d7(e,t){var r=[e];for(var n in t){var i="object"==typeof t[n]?JSON.stringify(t[n],null,2):t[n];void 0!==i&&r.push(n+": "+i)}return r.join("\n")}var fe=function(e){function t(t,r,n,i,a){var o=this.constructor,s=e.call(this,d7(t,{name:r,index:n,operation:i,tree:a}))||this;return s.name=r,s.index=n,s.operation=i,s.tree=a,Object.setPrototypeOf(s,o.prototype),s.message=d7(t,{name:r,index:n,operation:i,tree:a}),s}return d1(t,e),t}(Error),ft=fe,fr=d8,fn={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var n=e[t];return delete e[t],{newDocument:r,removed:n}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:function(e,t,r){var n=fa(r,this.path);n&&(n=d8(n));var i=fo(r,{op:"remove",path:this.from}).removed;return fo(r,{op:"add",path:this.path,value:i}),{newDocument:r,removed:n}},copy:function(e,t,r){var n=fa(r,this.from);return fo(r,{op:"add",path:this.path,value:d8(n)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:fd(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},fi={add:function(e,t,r){return d5(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){return{newDocument:r,removed:e.splice(t,1)[0]}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:fn.move,copy:fn.copy,test:fn.test,_get:fn._get};function fa(e,t){if(""==t)return e;var r={op:"_get",path:t};return fo(e,r),r.value}function fo(e,t,r,n,i,a){if(void 0===r&&(r=!1),void 0===n&&(n=!0),void 0===i&&(i=!0),void 0===a&&(a=0),r&&("function"==typeof r?r(t,0,e,t.path):fu(t,0)),""===t.path){var o={newDocument:e};if("add"===t.op)return o.newDocument=t.value,o;if("replace"===t.op)return o.newDocument=t.value,o.removed=e,o;
19if("move"===t.op||"copy"===t.op)return o.newDocument=fa(e,t.from),"move"===t.op&&(o.removed=e),o;if("test"===t.op){if(o.test=fd(e,t.value),!1===o.test)throw new ft("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return o.newDocument=e,o}else{if("remove"===t.op)return o.removed=e,o.newDocument=null,o;if("_get"===t.op)return t.value=e,o;if(!r)return o;throw new ft("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",a,t,e)}}n||(e=d8(e));var s=(t.path||"").split("/"),l=e,u=1,c=s.length,d=void 0,f=void 0,h=void 0;for(h="function"==typeof r?r:fu;;){if((f=s[u])&&-1!=f.indexOf("~")&&(f=d9(f)),i&&("__proto__"==f||"prototype"==f&&u>0&&"constructor"==s[u-1]))throw TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&void 0===d&&(void 0===l[f]?d=s.slice(0,u).join("/"):u==c-1&&(d=t.path),void 0!==d&&h(t,0,e,d)),u++,Array.isArray(l)){if("-"===f)f=l.length;else{if(r&&!d5(f))throw new ft("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a,t,e);d5(f)&&(f=~~f)}if(u>=c){if(r&&"add"===t.op&&f>l.length)throw new ft("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,t,e);var o=fi[t.op].call(t,l,f,e);if(!1===o.test)throw new ft("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return o}}else if(u>=c){var o=fn[t.op].call(t,l,f,e);if(!1===o.test)throw new ft("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return o}if(l=l[f],r&&u<c&&(!l||"object"!=typeof l))throw new ft("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",a,t,e)}}function fs(e,t,r,n,i){if(void 0===n&&(n=!0),void 0===i&&(i=!0),r&&!Array.isArray(t))throw new ft("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=d8(e));for(var a=Array(t.length),o=0,s=t.length;o<s;o++)a[o]=fo(e,t[o],r,!0,i,o),e=a[o].newDocument;return a.newDocument=e,a}function fl(e,t,r){var n=fo(e,t);if(!1===n.test)throw new ft("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return n.newDocument}function fu(e,t,r,n){if("object"!=typeof e||null===e||Array.isArray(e))throw new ft("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);
19if(fn[e.op]){if("string"!=typeof e.path)throw new ft("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new ft('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new ft("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);else if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new ft("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);else if(("add"===e.op||"replace"===e.op||"test"===e.op)&&function e(t){if(void 0===t)return!0;if(t){if(Array.isArray(t)){for(var r=0,n=t.length;r<n;r++)if(e(t[r]))return!0}else if("object"==typeof t){for(var i=d4(t),a=i.length,o=0;o<a;o++)if(e(t[i[o]]))return!0}}return!1}(e.value))throw new ft("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);else if(r){if("add"==e.op){var i=e.path.split("/").length,a=n.split("/").length;if(i!==a+1&&i!==a)throw new ft("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==n)throw new ft("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if("move"===e.op||"copy"===e.op){var o=fc([{op:"_get",path:e.from,value:void 0}],r);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new ft("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}}else throw new ft("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r)}function fc(e,t,r){try{if(!Array.isArray(e))throw new ft("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)fs(d8(t),d8(e),r||!0);else{r=r||fu;for(var n=0;n<e.length;n++)r(e[n],n,t,void 0)}}catch(e){if(e instanceof ft)return e;throw e}}function fd(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r,n,i,a=Array.isArray(e),o=Array.isArray(t);if(a&&o){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!fd(e[r],t[r]))return!1;return!0}if(a!=o)return!1;var s=Object.keys(e);if((n=s.length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!t.hasOwnProperty(s[r]))return!1;for(r=n;0!=r--;)if(!fd(e[i=s[r]],t[i]))return!1;return!0}return e!=e&&t!=t}var ff=new WeakMap,fh=function(e){this.observers=new Map,this.obj=e},fp=function(e,t){this.callback=e,this.observer=t};function fg(e,t){t.unobserve()}function fm(e,t){var r=ff.get(e);if(r){var n,i=r.observers.get(t);n=i&&i.observer}else r=new fh(e),ff.set(e,r);if(n)return n;if(n={},r.value=d8(e),t){n.callback=t,n.next=null;var a=function(){fA(n)},o=function(){clearTimeout(n.next),n.next=setTimeout(a)};"undefined"!=typeof window&&(window.addEventListener("mouseup",o),window.addEventListener("keyup",o),window.addEventListener("mousedown",o),window.addEventListener("keydown",o),window.addEventListener("change",o))}return n.patches=[],n.object=e,n.unobserve=function(){fA(n),clearTimeout(n.next),function(e,t){e.observers.delete(t.callback)}(r,n),"undefined"!=typeof window&&(window.removeEventListener("mouseup",o),window.removeEventListener("keyup",o),window.removeEventListener("mousedown",o),window.removeEventListener("keydown",o),window.removeEventListener("change",o))},r.observers.set(t,new fp(t,n)),n}function fA(e,t){void 0===t&&(t=!1);var r=ff.get(e.object);fy(r.value,e.object,e.patches,"",t),e.patches.length&&fs(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function fy(e,t,r,n,i){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var a=d4(t),o=d4(e),s=!1,l=o.length-1;l>=0;l--){var u=o[l],c=e[u];if(d3(t,u)&&!(void 0===t[u]&&void 0!==c&&!1===Array.isArray(t))){var d=t[u];"object"==typeof c&&null!=c&&"object"==typeof d&&null!=d&&Array.isArray(c)===Array.isArray(d)?fy(c,d,r,n+"/"+d6(u),i):c!==d&&(i&&r.push({op:"test",path:n+"/"+d6(u),value:d8(c)}),r.push({op:"replace",path:n+"/"+d6(u),value:d8(d)}))}else Array.isArray(e)===Array.isArray(t)?(i&&r.push({op:"test",path:n+"/"+d6(u),value:d8(c)}),r.push({op:"remove",path:n+"/"+d6(u)}),s=!0):(i&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}))}if(s||a.length!=o.length)for(var l=0;l<a.length;l++){var u=a[l];d3(e,u)||void 0===t[u]||r.push({op:"add",path:n+"/"+d6(u),value:d8(t[u])})}}}function fv(e,t,r){void 0===r&&(r=!1);var n=[];return fy(e,t,n,"",r),n}function fb(e){return"function"==typeof e}Object.assign({},L,B,{JsonPatchError:fe,deepClone:d8,escapePathComponent:d6,unescapePathComponent:d9});var fw=r(97563),fS=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function fI(e){return fb(null==e?void 0:e.then)}function fE(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var fC=fE(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function fx(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var fk=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,r,n,i,a=this._parentage;if(a){if(this._parentage=null,Array.isArray(a))try{for(var o=(0,fw.XA)(a),s=o.next();!s.done;s=o.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else a.remove(this)}var l=this.initialTeardown;
19if(fb(l))try{l()}catch(e){i=e instanceof fC?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=(0,fw.XA)(u),d=c.next();!d.done;d=c.next()){var f=d.value;try{fR(f)}catch(e){i=null!=i?i:[],e instanceof fC?i=(0,fw.ev)((0,fw.ev)([],(0,fw.CR)(i)),(0,fw.CR)(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}if(i)throw new fC(i)}},t.prototype.add=function(e){var r;if(e&&e!==this){if(this.closed)fR(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(e)}}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&fx(t,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&fx(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),fO=fk.EMPTY;function fT(e){return e instanceof fk||e&&"closed"in e&&fb(e.remove)&&fb(e.add)&&fb(e.unsubscribe)}function fR(e){fb(e)?e():e.unsubscribe()}var f_={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},fD={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=fD.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,(0,fw.ev)([e,t],(0,fw.CR)(r))):setTimeout.apply(void 0,(0,fw.ev)([e,t],(0,fw.CR)(r)))},clearTimeout:function(e){var t=fD.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function fN(e){fD.setTimeout(function(){var t=f_.onUnhandledError;if(t)t(e);else throw e})}function fM(){}var fF=fP("C",void 0,void 0);function fP(e,t,r){return{kind:e,value:t,error:r}}var fL=null;function fB(e){if(f_.useDeprecatedSynchronousErrorHandling){var t=!fL;if(t&&(fL={errorThrown:!1,error:null}),e(),t){var r=fL,n=r.errorThrown,i=r.error;if(fL=null,n)throw i}}else e()}var fj=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,fT(t)&&t.add(r)):r.destination=fK,r}return(0,fw.ZT)(t,e),t.create=function(e,t,r){return new fG(e,t,r)},t.prototype.next=function(e){this.isStopped?fH(fP("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?fH(fP("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?fH(fF,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(fk),fU=Function.prototype.bind;function fq(e,t){return fU.call(e,t)}var fQ=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){fV(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){fV(e)}else fV(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){fV(e)}},e}(),fG=function(e){function t(t,r,n){var i,a,o=e.call(this)||this;return fb(t)||!t?i={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:o&&f_.useDeprecatedNextContext?((a=Object.create(t)).unsubscribe=function(){return o.unsubscribe()},i={next:t.next&&fq(t.next,a),error:t.error&&fq(t.error,a),complete:t.complete&&fq(t.complete,a)}):i=t,o.destination=new fQ(i),o}return(0,fw.ZT)(t,e),t}(fj);function fV(e){f_.useDeprecatedSynchronousErrorHandling?f_.useDeprecatedSynchronousErrorHandling&&fL&&(fL.errorThrown=!0,fL.error=e):fN(e)}function fH(e,t){var r=f_.onStoppedNotification;r&&fD.setTimeout(function(){return r(e,t)})}var fK={closed:!0,next:fM,error:function(e){throw e},complete:fM},fW="function"==typeof Symbol&&Symbol.observable||"@@observable";function fY(e){return e}function fZ(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fz(e)}function fz(e){return 0===e.length?fY:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}var f$=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,i=this,a=(n=e)&&n instanceof fj||n&&fb(n.next)&&fb(n.error)&&fb(n.complete)&&fT(n)?e:new fG(e,t,r);return fB(function(){var e=i.operator,t=i.source;a.add(e?e.call(a,t):t?i._subscribe(a):i._trySubscribe(a))}),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=fJ(t))(function(t,n){var i=new fG({next:function(t){try{e(t)}catch(e){n(e),i.unsubscribe()}},error:n,complete:t});r.subscribe(i)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[fW]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fz(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=fJ(e))(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}();function fJ(e){var t;return null!==(t=null!=e?e:f_.Promise)&&void 0!==t?t:Promise}function fX(e){return Symbol.asyncIterator&&fb(null==e?void 0:e[Symbol.asyncIterator])}function f0(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invali
19d object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var f1="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function f2(e){return fb(null==e?void 0:e[f1])}function f3(e){return(0,fw.FC)(this,arguments,function(){var t,r,n;return(0,fw.Jh)(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,(0,fw.qq)(t.read())];case 3:if(n=(r=i.sent()).value,!r.done)return[3,5];return[4,(0,fw.qq)(void 0)];case 4:return[2,i.sent()];case 5:return[4,(0,fw.qq)(n)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function f4(e){return fb(null==e?void 0:e.getReader)}function f8(e){if(e instanceof f$)return e;if(null!=e){if(fb(e[fW]))return new f$(function(t){var r=e[fW]();if(fb(r.subscribe))return r.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")});if(fS(e))return new f$(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()});if(fI(e))return new f$(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,fN)});if(fX(e))return f5(e);if(f2(e))return new f$(function(t){var r,n;try{for(var i=(0,fw.XA)(e),a=i.next();!a.done;a=i.next()){var o=a.value;if(t.next(o),t.closed)return}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}t.complete()});if(f4(e))return f5(f3(e))}throw f0(e)}function f5(e){return new f$(function(t){(function(e,t){var r,n,i,a;return(0,fw.mG)(this,void 0,void 0,function(){var o;return(0,fw.Jh)(this,function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]),r=(0,fw.KL)(e),s.label=1;case 1:return[4,r.next()];case 2:if((n=s.sent()).done)return[3,4];if(o=n.value,t.next(o),t.closed)return[2];s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:s.sent()},[3,11];case 6:if(s.trys.push([6,,9,10]),!(n&&!n.done&&(a=r.return)))return[3,8];return[4,a.call(r)];case 7:s.sent(),s.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function f6(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var a=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(a),!i)return a}function f9(e){return function(t){if(fb(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}function f7(e,t,r,n,i){return new he(e,t,r,n,i)}var he=function(e){function t(t,r,n,i,a,o){var s=e.call(this,t)||this;return s.onFinalize=a,s.shouldUnsubscribe=o,s._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return(0,fw.ZT)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null===(t=this.onFinalize)||void 0===t||t.call(this)}},t}(fj);function ht(e,t){return void 0===t&&(t=0),f9(function(r,n){r.subscribe(f7(n,function(r){return f6(n,e,function(){return n.next(r)},t)},function(){return f6(n,e,function(){return n.complete()},t)},function(r){return f6(n,e,function(){return n.error(r)},t)}))})}function hr(e,t){return void 0===t&&(t=0),f9(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function hn(e,t){if(!e)throw Error("Iterable cannot be null");return new f$(function(r){f6(r,t,function(){var n=e[Symbol.asyncIterator]();f6(r,t,function(){n.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}function hi(e,t){return t?function(e,t){if(null!=e){if(fb(e[fW]))return f8(e).pipe(hr(t),ht(t));if(fS(e))return new f$(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[
19n++]),r.closed||this.schedule())})});if(fI(e))return f8(e).pipe(hr(t),ht(t));if(fX(e))return hn(e,t);if(f2(e))return new f$(function(r){var n;return f6(r,t,function(){n=e[f1](),f6(r,t,function(){var e,t,i;try{t=(e=n.next()).value,i=e.done}catch(e){r.error(e);return}i?r.complete():r.next(t)},0,!0)}),function(){return fb(null==n?void 0:n.return)&&n.return()}});if(f4(e))return hn(f3(e),t)}throw f0(e)}(e,t):f8(e)}function ha(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=(e=t[t.length-1])&&fb(e.schedule)?t.pop():void 0;return hi(t,n)}var ho=new f$(function(e){return e.complete()});function hs(e,t){var r=fb(e)?e:function(){return e},n=function(e){return e.error(r())};return new f$(t?function(e){return t.schedule(n,0,e)}:n)}var hl=fE(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),hu=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,fw.ZT)(t,e),t.prototype.lift=function(e){var t=new hc(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new hl},t.prototype.next=function(e){var t=this;fB(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=(0,fw.XA)(t.currentObservers),a=i.next();!a.done;a=i.next())a.value.next(e)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;fB(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;fB(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?fO:(this.currentObservers=null,i.push(e),new fk(function(){t.currentObservers=null,fx(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},t.prototype.asObservable=function(){var e=new f$;return e.source=this,e},t.create=function(e,t){return new hc(e,t)},t}(f$),hc=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return(0,fw.ZT)(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:fO},t}(hu),hd={now:function(){return(hd.delegate||Date).now()},delegate:void 0},hf=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=hd);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return(0,fw.ZT)(t,e),t.prototype.next=function(t){var r=this.isStopped,n=this._buffer,i=this._infiniteTimeWindow,a=this._timestampProvider,o=this._windowTime;!r&&(n.push(t),i||n.push(a.now()+o)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var a=t.now(),o=0,s=1;s<r.length&&r[s]<=a;s+=2)o=s;o&&r.splice(0,o+1)}},t}(hu);function hh(e,t){return f9(function(r,n){var i=0;r.subscribe(f7(n,function(r){n.next(e.call(t,r,i++))}))})}function hp(e,t,r){return(void 0===r&&(r=1/0),fb(t))?hp(function(r,n){return hh(function(e,i){return t(r,e,n,i)})(f8(e(r,n)))},r):("number"==typeof t&&(r=t),f9(function(t,n){var i,a,o,s,l,u,c,d,f;return i=r,o=[],s=0,l=0,u=!1,c=function(){!u||o.length||s||n.complete()},d=function(e){return s<i?f(e):o.push(e)},f=function(t){s++;var r=!1;f8(e(t,l++)).subscribe(f7(n,function(e){a?d(e):n.next(e)},function(){r=!0},void 0,function(){if(r)try{for(s--;o.length&&s<i;)!function(){var e=o.shift();f(e)}();c()}catch(e){n.error(e)}}))},t.subscribe(f7(n,d,function(){u=!0,c()})),function(){}}))}function hg(e){return f9(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}var hm=fE(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function hA(e,t){var r="object"==typeof t;return new Promise(function(n,i){var a,o=!1;e.subscribe({next:function(e){a=e,o=!0},error:i,complete:function(){o?n(a):r?n(t.defaultValue):i(new hm)}})})}function hy(e,t){return fb(t)?hp(e,t,1):hp(e,1)}function hv(e){return f9(function(t,r){f8(e).subscribe(f7(r,function(){return r.complete()},fM)),r.closed||t.subscribe(r)})}function hb(e){return f9(function(t,r){var n,i=null,a=!1;i=t.subscribe(f7(r,void 0,void 0,function(o){n=f8(e(o,hb(e)(t))),i?(i.unsubscribe(),i=null,n.subscribe(r)):a=!0})),a&&(i.unsubscribe(),i=null,n.subscribe(r))})}function hw(e){return" \r\n ".indexOf(e)>=0}function hS(e){for(var t,r,n,i=["topLevel"],a=0,o=function(e){return i.push(e)},s=function(e){return i[i.length-1]=e},l=function(e){null==t&&(t=a,r=i.length,n=e)},u=function(e){e===n&&(t=void 0,r=void 0,n=void 0)},c=function(){return i.pop()},d=function(){return a--},f=function(e){if("0"<=e&&e<="9"){o("number");return}switch(e){case'"':o("string");return;case"-":o("numberNeedsDigit");return;case"t":o("true");return;case"f":o("false");return;case"n":o("null");return;case"[":o("arrayNeedsValue");return;case"{":o("objectNeedsKey");return}},h=e.length;a<h;a++){var p=e[a];switch(i[i.length-1]){case"topLevel":f(p);break;case"string":switch(p){case'"':c();break;case"\\":l("stringEscape"),o("stringEscaped")}break;case"stringEscaped":"u"===p?o("stringUnicode"):(u("stringEscape"),c());break;case"stringUnicode":a-e.lastIndexOf("u",a)==4&&(u("stringEscape"),c());break;case"number":"."===p?s("numberNeedsDigit"):"e"===p||"E"===p?s("numberNeedsExponent"):(p<"0"||p>"9")&&(d(),c());break;case"numberNeedsDigit":s("number");break;case"numberNeedsExponent":s("+"===p||"-"===p?"numberNeedsDigit":"number");break;case"true":case"false":case"null":(p<"a"||p>"z")&&(d(),c());break;case"arrayNeedsValue":"]"===p?c():hw(p)||(u("collectionItem"),s("arrayNeedsComma"),f(p));break;case"arrayNeedsComma":"]"===p?c():","===p&&(l("collectionItem"),s("arrayNeedsValue"));break;case"objectNeedsKey":"}"===p?c():'"'===p&&(l("collectionItem"),s("objectNeedsColon"),o("string"));break;case"objectNeedsColon":":"===p&&s("objectNeedsValue");break;case"objectNeedsValue":hw(p)||(u("collectionItem"),s("objectNeedsComma"),f(p));break;case"objectNeedsComma":"}"===p?c():","===p&&(l("collectionItem"),s("objectNeedsKey"))}}null!=r&&(i.length=r);for(var g=[null!=t?e.slice(0,t):e],m=function(t){return g.push(t.slice(e.length-e.lastIndexOf(t[0])))},A=i.length-1;A>=0;A--)switch(i[A]){case"string":g.push('"');break;case"numberNeedsDigit":case"numberNeedsExponent":g.push("0");break;case"true":m("true");break;case"false":m("false");break;case"null":m("null");break;case"arrayNeedsValue":case"arrayNeedsComma":g.push("]");break;case"objectNeedsKey":case"objectNeedsColon":case"objectNeedsValue":case"objectNeedsComma":g.push("}")}return g.join("")}function hI(){let e=0,t=0;for(let r=0;r<28;r+=7){let n=this.buf[this.pos++];if(e|=(127&n)<<r,(128&n)==0)return this.assertBounds(),[e,t]}let r=this.buf[this.pos++];if(e|=(15&r)<<28,t=(112&r)>>4,(128&r)==0)return this.assertBounds(),[e,t];for(let r=3;r<=31;r+=7){let n=this.buf[this.pos++];if(t|=(127&n)<<r,(128&n)==0)return this.assertBounds(),[e,t]}throw Error("invalid varint")}function hE(e,t,r){for(let n=0;n<28;n+=7){let i=e>>>n,a=!(i>>>7==0&&0==t),o=(a?128|i:i)&255;if(r.push(o),!a)return}let n=e>>>28&15|(7&t)<<4,i=t>>3!=0;if(r.push((i?128|n:n)&255),i){for(let e=3;e<31;e+=7){let n=t>>>e,i=n>>>7!=0,a=(i?128|n:n)&255;if(r.push(a),!i)return}r.push(t>>>31&1)}}function hC(e){let t="-"===e[0];t&&(e=e.slice(1));let r=0,n=0;function i(t,i){let a=Number(e.slice(t,i));n*=1e6,(r=1e6*r+a)>=4294967296&&(n+=r/4294967296|0,r%=4294967296)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),t?hO(r,n):hk(r,n)}function hx(e,t){if({lo:e,hi:t}={lo:e>>>0,hi:t>>>0},t<=2097151)return String(4294967296*t+e);let r=16777215&e,n=(e>>>24|t<<8)&16777215,i=t>>16&65535,a=r+6777216*n+6710656*i,o=n+8147497*i,s=2*i;return a>=1e7&&(o+=Math.floor(a/1e7),a%=1e7),o>=1e7&&(s+=Math.floor(o/1e7),o%=1e7),s.toString()+hT(o)+hT(a)}function hk(e,t){return{lo:0|e,hi:0|t}}function hO(e,t){return t=~t,e?e=~e+1:t+=1,hk(e,t)}let hT=e=>{let t=String(e);return"0000000".slice(t.length)+t};function hR(e,t){if(e>=0){for(;e>127;)t.push(127&e|128),e>>>=7;t.push(e)}else{for(let r=0;r<9;r++)t.push(127&e|128),e>>=7;t.push(1)}}function h_(){let e=this.buf[this.pos++],t=127&e;if((128&e)==0||(t|=(127&(e=this.buf[this.pos++]))<<7,(128&e)==0)||(t|=(127&(e=this.buf[this.pos++]))<<14,(128&e)==0)||(t|=(127&(e=this.buf[this.pos++]))<<21,(128&e)==0))return this.assertBounds(),t;
19t|=(15&(e=this.buf[this.pos++]))<<28;for(let t=5;(128&e)!=0&&t<10;t++)e=this.buf[this.pos++];if((128&e)!=0)throw Error("invalid varint");return this.assertBounds(),t>>>0}var hD=r(32608);let hN=function(){let e=new DataView(new ArrayBuffer(8));if("function"==typeof BigInt&&"function"==typeof e.getBigInt64&&"function"==typeof e.getBigUint64&&"function"==typeof e.setBigInt64&&"function"==typeof e.setBigUint64&&(globalThis.Deno||"object"!=typeof hD||"object"!=typeof hD.env||"1"!==hD.env.BUF_BIGINT_DISABLE)){let t=BigInt("-9223372036854775808"),r=BigInt("9223372036854775807"),n=BigInt("0"),i=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(e){let n="bigint"==typeof e?e:BigInt(e);if(n>r||n<t)throw Error(`invalid int64: ${e}`);return n},uParse(e){let t="bigint"==typeof e?e:BigInt(e);if(t>i||t<n)throw Error(`invalid uint64: ${e}`);return t},enc(t){return e.setBigInt64(0,this.parse(t),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(t){return e.setBigInt64(0,this.uParse(t),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec:(t,r)=>(e.setInt32(0,t,!0),e.setInt32(4,r,!0),e.getBigInt64(0,!0)),uDec:(t,r)=>(e.setInt32(0,t,!0),e.setInt32(4,r,!0),e.getBigUint64(0,!0))}}return{zero:"0",supported:!1,parse:e=>("string"!=typeof e&&(e=e.toString()),hM(e),e),uParse:e=>("string"!=typeof e&&(e=e.toString()),hF(e),e),enc:e=>("string"!=typeof e&&(e=e.toString()),hM(e),hC(e)),uEnc:e=>("string"!=typeof e&&(e=e.toString()),hF(e),hC(e)),dec:(e,t)=>(function(e,t){let r=hk(e,t),n=2147483648&r.hi;n&&(r=hO(r.lo,r.hi));let i=hx(r.lo,r.hi);return n?"-"+i:i})(e,t),uDec:(e,t)=>hx(e,t)}}();function hM(e){if(!/^-?[0-9]+$/.test(e))throw Error("invalid int64: "+e)}function hF(e){if(!/^[0-9]+$/.test(e))throw Error("invalid uint64: "+e)}let hP=Symbol.for("@bufbuild/protobuf/text-encoding");function hL(){if(void 0==globalThis[hP]){let e=new globalThis.TextEncoder,t=new globalThis.TextDecoder;globalThis[hP]={encodeUtf8:t=>e.encode(t),decodeUtf8:e=>t.decode(e),checkUtf8(e){try{return encodeURIComponent(e),!0}catch(e){return!1}}}}return globalThis[hP]}(y=F||(F={}))[y.Varint=0]="Varint",y[y.Bit64=1]="Bit64",y[y.LengthDelimited=2]="LengthDelimited",y[y.StartGroup=3]="StartGroup",y[y.EndGroup=4]="EndGroup",y[y.Bit32=5]="Bit32";class hB{constructor(e=hL().encodeUtf8){this.encodeUtf8=e,this.stack=[],this.chunks=[],this.buf=[]}finish(){this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]);let e=0;for(let t=0;t<this.chunks.length;t++)e+=this.chunks[t].length;let t=new Uint8Array(e),r=0;for(let e=0;e<this.chunks.length;e++)t.set(this.chunks[e],r),r+=this.chunks[e].length;return this.chunks=[],t}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let e=this.finish(),t=this.stack.pop();if(!t)throw Error("invalid state, fork stack empty");return this.chunks=t.chunks,this.buf=t.buf,this.uint32(e.byteLength),this.raw(e)}tag(e,t){return this.uint32((e<<3|t)>>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(hq(e);e>127;)this.buf.push(127&e|128),e>>>=7;return this.buf.push(e),this}int32(e){return hU(e),hR(e,this.buf),this}bool(e){return this.buf.push(e?1:0),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let t=this.encodeUtf8(e);return this.uint32(t.byteLength),this.raw(t)}float(e){!function(e){if("string"==typeof e){let t=e;if(Number.isNaN(e=Number(e))&&"NaN"!==t)throw Error("invalid float32: "+t)}else if("number"!=typeof e)throw Error("invalid float32: "+typeof e);if(Number.isFinite(e)&&(e>34028234663852886e22||e<-34028234663852886e22))throw Error("invalid float32: "+e)}(e);let t=new Uint8Array(4);return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}double(e){let t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}fixed32(e){hq(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){hU(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return hU(e),hR(e=(e<<1^e>>31)>>>0,this.buf),this}sfixed64(e){let t=new Uint8Array(8),r=new DataView(t.buffer),n=hN.enc(e);return r.setInt32(0,n.lo,!0),r.setInt32(4,n.hi,!0),this.raw(t)}fixed64(e){let t=new Uint8Array(8),r=new DataView(t.buffer),n=hN.uEnc(e);return r.setInt32(0,n.lo,!0),r.setInt32(4,n.hi,!0),this.raw(t)}int64(e){let t=hN.enc(e);return hE(t.lo,t.hi,this.buf),this}sint64(e){let t=hN.enc(e),r=t.hi>>31;return hE(t.lo<<1^r,(t.hi<<1|t.lo>>>31)^r,this.buf),this}uint64(e){let t=hN.uEnc(e);return hE(t.lo,t.hi,this.buf),this}}class hj{constructor(e,t=hL().decodeUtf8){this.decodeUtf8=t,this.varint64=hI,this.uint32=h_,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength)}tag(){let e=this.uint32(),t=e>>>3,r=7&e;
19if(t<=0||r<0||r>5)throw Error("illegal tag: field no "+t+" wire type "+r);return[t,r]}skip(e,t){let r=this.pos;switch(e){case F.Varint:for(;128&this.buf[this.pos++];);break;case F.Bit64:this.pos+=4;case F.Bit32:this.pos+=4;break;case F.LengthDelimited:let n=this.uint32();this.pos+=n;break;case F.StartGroup:for(;;){let[e,r]=this.tag();if(r===F.EndGroup){if(void 0!==t&&e!==t)throw Error("invalid end group tag");break}this.skip(r,e)}break;default:throw Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(r,this.pos)}assertBounds(){if(this.pos>this.len)throw RangeError("premature EOF")}int32(){return 0|this.uint32()}sint32(){let e=this.uint32();return e>>>1^-(1&e)}int64(){return hN.dec(...this.varint64())}uint64(){return hN.uDec(...this.varint64())}sint64(){let[e,t]=this.varint64(),r=-(1&e);return e=(e>>>1|(1&t)<<31)^r,t=t>>>1^r,hN.dec(e,t)}bool(){let[e,t]=this.varint64();return 0!==e||0!==t}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return hN.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return hN.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(){return this.decodeUtf8(this.bytes())}}function hU(e){if("string"==typeof e)e=Number(e);else if("number"!=typeof e)throw Error("invalid int32: "+typeof e);if(!Number.isInteger(e)||e>2147483647||e<-2147483648)throw Error("invalid int32: "+e)}function hq(e){if("string"==typeof e)e=Number(e);else if("number"!=typeof e)throw Error("invalid uint32: "+typeof e);if(!Number.isInteger(e)||e>4294967295||e<0)throw Error("invalid uint32: "+e)}let hQ=((v={})[v.NULL_VALUE=0]="NULL_VALUE",v[v.UNRECOGNIZED=-1]="UNRECOGNIZED",v);function hG(){return{fields:{}}}let hV={encode:(e,t=new hB)=>(Object.entries(e.fields).forEach(([e,r])=>{void 0!==r&&hK.encode({key:e,value:r},t.uint32(10).fork()).join()}),t),decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=hG();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:{if(10!==e)break;let t=hK.decode(r,r.uint32());void 0!==t.value&&(i.fields[t.key]=t.value);continue}}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>hV.fromPartial(e??{}),fromPartial(e){let t=hG();return t.fields=Object.entries(e.fields??{}).reduce((e,[t,r])=>(void 0!==r&&(e[t]=r),e),{}),t},wrap(e){let t=hG();if(void 0!==e)for(let r of Object.keys(e))t.fields[r]=e[r];return t},unwrap(e){let t={};if(e.fields)for(let r of Object.keys(e.fields))t[r]=e.fields[r];return t}};function hH(){return{key:"",value:void 0}}let hK={encode:(e,t=new hB)=>(""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&hY.encode(hY.wrap(e.value),t.uint32(18).fork()).join(),t),decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=hH();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;i.key=r.string();continue;case 2:if(18!==e)break;i.value=hY.unwrap(hY.decode(r,r.uint32()));continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>hK.fromPartial(e??{}),fromPartial(e){let t=hH();return t.key=e.key??"",t.value=e.value??void 0,t}};function hW(){return{nullValue:void 0,numberValue:void 0,stringValue:void 0,boolValue:void 0,structValue:void 0,listValue:void 0}}let hY={encode:(e,t=new hB)=>(void 0!==e.nullValue&&t.uint32(8).int32(e.nullValue),void 0!==e.numberValue&&t.uint32(17).double(e.numberValue),void 0!==e.stringValue&&t.uint32(26).string(e.stringValue),void 0!==e.boolValue&&t.uint32(32).bool(e.boolValue),void 0!==e.structValue&&hV.encode(hV.wrap(e.structValue),t.uint32(42).fork()).join(),void 0!==e.listValue&&hz.encode(hz.wrap(e.listValue),t.uint32(50).fork()).join(),t),decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=hW();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(8!==e)break;i.nullValue=r.int32();continue;case 2:if(17!==e)break;i.numberValue=r.double();continue;case 3:if(26!==e)break;
19i.stringValue=r.string();continue;case 4:if(32!==e)break;i.boolValue=r.bool();continue;case 5:if(42!==e)break;i.structValue=hV.unwrap(hV.decode(r,r.uint32()));continue;case 6:if(50!==e)break;i.listValue=hz.unwrap(hz.decode(r,r.uint32()));continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>hY.fromPartial(e??{}),fromPartial(e){let t=hW();return t.nullValue=e.nullValue??void 0,t.numberValue=e.numberValue??void 0,t.stringValue=e.stringValue??void 0,t.boolValue=e.boolValue??void 0,t.structValue=e.structValue??void 0,t.listValue=e.listValue??void 0,t},wrap(e){let t=hW();if(null===e)t.nullValue=hQ.NULL_VALUE;else if("boolean"==typeof e)t.boolValue=e;else if("number"==typeof e)t.numberValue=e;else if("string"==typeof e)t.stringValue=e;else if(globalThis.Array.isArray(e))t.listValue=e;else if("object"==typeof e)t.structValue=e;else if(void 0!==e)throw new globalThis.Error("Unsupported any value type: "+typeof e);return t},unwrap:e=>void 0!==e.stringValue?e.stringValue:e?.numberValue!==void 0?e.numberValue:e?.boolValue!==void 0?e.boolValue:e?.structValue!==void 0?e.structValue:e?.listValue!==void 0?e.listValue:e?.nullValue!==void 0?null:void 0};function hZ(){return{values:[]}}let hz={encode(e,t=new hB){for(let r of e.values)hY.encode(hY.wrap(r),t.uint32(10).fork()).join();return t},decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=hZ();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;i.values.push(hY.unwrap(hY.decode(r,r.uint32())));continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>hz.fromPartial(e??{}),fromPartial(e){let t=hZ();return t.values=e.values?.map(e=>e)||[],t},wrap(e){let t=hZ();return t.values=e??[],t},unwrap:e=>e?.hasOwnProperty("values")&&globalThis.Array.isArray(e.values)?e.values:e},h$=((b={})[b.ADD=0]="ADD",b[b.REMOVE=1]="REMOVE",b[b.REPLACE=2]="REPLACE",b[b.MOVE=3]="MOVE",b[b.COPY=4]="COPY",b[b.TEST=5]="TEST",b[b.UNRECOGNIZED=-1]="UNRECOGNIZED",b);function hJ(){return{op:0,path:"",from:void 0,value:void 0}}let hX={encode:(e,t=new hB)=>(0!==e.op&&t.uint32(8).int32(e.op),""!==e.path&&t.uint32(18).string(e.path),void 0!==e.from&&t.uint32(26).string(e.from),void 0!==e.value&&hY.encode(hY.wrap(e.value),t.uint32(34).fork()).join(),t),decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=hJ();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(8!==e)break;i.op=r.int32();continue;case 2:if(18!==e)break;i.path=r.string();continue;case 3:if(26!==e)break;i.from=r.string();continue;case 4:if(34!==e)break;i.value=hY.unwrap(hY.decode(r,r.uint32()));continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>hX.fromPartial(e??{}),fromPartial(e){let t=hJ();return t.op=e.op??0,t.path=e.path??"",t.from=e.from??void 0,t.value=e.value??void 0,t}};function h0(){return{id:"",type:"",function:void 0}}let h1={encode:(e,t=new hB)=>(""!==e.id&&t.uint32(10).string(e.id),""!==e.type&&t.uint32(18).string(e.type),void 0!==e.function&&h3.encode(e.function,t.uint32(26).fork()).join(),t),decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=h0();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;i.id=r.string();continue;case 2:if(18!==e)break;i.type=r.string();continue;case 3:if(26!==e)break;i.function=h3.decode(r,r.uint32());continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>h1.fromPartial(e??{}),fromPartial(e){let t=h0();return t.id=e.id??"",t.type=e.type??"",t.function=void 0!==e.function&&null!==e.function?h3.fromPartial(e.function):void 0,t}};function h2(){return{name:"",arguments:""}}let h3={encode:(e,t=new hB)=>(""!==e.name&&t.uint32(10).string(e.name),""!==e.arguments&&t.uint32(18).string(e.arguments),t),decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=h2();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;i.name=r.string();continue;case 2:if(18!==e)break;i.arguments=r.string();continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>h3.fromPartial(e??{}),fromPartial(e){let t=h2();return t.name=e.name??"",t.arguments=e.arguments??"",t}};function h4(){return{id:"",role:"",content:void 0,name:void 0,toolCalls:[],toolCallId:void 0,error:void 0}}let h8={encode(e,t=new hB){for(let r of(""!==e.id&&t.uint32(10).string(e.id),""!==e.role&&t.uint32(18).string(e.role),void 0!==e.content&&t.uint32(26).string(e.content),void 0!==e.name&&t.uint32(34).string(e.name),e.toolCalls))h1.encode(r,t.uint32(42).fork()).join();return void 0!==e.toolCallId&&t.uint32(50).string(e.toolCallId),void 0!==e.error&&t.uint32(58).string(e.error),t},decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=h4();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;i.id=r.string();continue;case 2:if(18!==e)break;i.role=r.string();continue;case 3:if(26!==e)break;i.content=r.string();continue;case 4:if(34!==e)break;i.name=r.string();continue;case 5:if(42!==e)break;i.toolCalls.push(h1.decode(r,r.uint32()));continue;case 6:if(50!==e)break;i.toolCallId=r.string();continue;case 7:if(58!==e)break;i.error=r.string();continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>h8.fromPartial(e??{}),fromPartial(e){let t=h4();return t.id=e.id??"",t.role=e.role??"",t.content=e.content??void 0,t.name=e.name??void 0,t.toolCalls=e.toolCalls?.map(e=>h1.fromPartial(e))||[],t.toolCallId=e.toolCallId??void 0,t.error=e.error??void 0,t}},h5=((w={})[w.TEXT_MESSAGE_START=0]="TEXT_MESSAGE_START",w[w.TEXT_MESSAGE_CONTENT=1]="TEXT_MESSAGE_CONTENT",w[w.TEXT_MESSAGE_END=2]="TEXT_MESSAGE_END",w[w.TOOL_CALL_START=3]="TOOL_CALL_START",w[w.TOOL_CALL_ARGS=4]="TOOL_CALL_ARGS",w[w.TOOL_CALL_END=5]="TOOL_CALL_END",w[w.STATE_SNAPSHOT=6]="STATE_SNAPSHOT",w[w.STATE_DELTA=7]="STATE_DELTA",w[w.MESSAGES_SNAPSHOT=8]="MESSAGES_SNAPSHOT",w[w.RAW=9]="RAW",w[w.CUSTOM=10]="CUSTOM",w[w.RUN_STARTED=11]="RUN_STARTED",w[w.RUN_FINISHED=12]="RUN_FINISHED",w[w.RUN_ERROR=13]="RUN_ERROR",w[w.STEP_STARTED=14]="STEP_STARTED",w[w.STEP_FINISHED=15]="STEP_FINISHED",w[w.UNRECOGNIZED=-1]="UNRECOGNIZED",w);function h6(){return{type:0,timestamp:void 0,rawEvent:void 0}}let h9={encode:(e,t=new hB)=>(0!==e.type&&t.uint32(8).int32(e.type),void 0!==e.timestamp&&t.uint32(16).int64(e.timestamp),void 0!==e.rawEvent&&hY.encode(hY.wrap(e.rawEvent),t.uint32(26).fork()).join(),t),decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=h6();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(8!==e)break;i.type=r.int32();continue;case 2:if(16!==e)break;i.timestamp=function(e){let t=globalThis.Number(e.toString());if(t>globalThis.Number.MAX_SAFE_INTEGER)throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");if(t<globalThis.Number.MIN_SAFE_INTEGER)throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");return t}(r.int64());continue;case 3:if(26!==e)break;i.rawEvent=hY.unwrap(hY.decode(r,r.uint32()));continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>h9.fromPartial(e??{}),fromPartial(e){let t=h6();return t.type=e.type??0,t.timestamp=e.timestamp??void 0,t.rawEvent=e.rawEvent??void 0,t}};function h7(){return{baseEvent:void 0,messageId:"",role:void 0}}let pe={encode:(e,t=new hB)=>(void 0!==e.baseEvent&&h9.encode(e.baseEvent,t.uint32(10).fork()).join(),""!==e.messageId&&t.uint32(18).string(e.messageId),void 0!==e.role&&t.uint32(26).string(e.role),t),decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=h7();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;i.baseEvent=h9.decode(r,r.uint32());continue;case 2:if(18!==e)break;i.messageId=r.string();continue;case 3:if(26!==e)break;i.role=r.string();continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>pe.fromPartial(e??{}),fromPartial(e){let t=h7();return t.baseEvent=void 0!==e.baseEvent&&null!==e.baseEvent?h9.fromPartial(e.baseEvent):void 0,t.messageId=e.messageId??"",t.role=e.role??void 0,t}};function pt(){return{baseEvent:void 0,messageId:"",delta:""}}let pr={encode:(e,t=new hB)=>(void 0!==e.baseEvent&&h9.encode(e.baseEvent,t.uint32(10).fork()).join(),""!==e.messageId&&t.uint32(18).string(e.messageId),""!==e.delta&&t.uint32(26).string(e.delta),t),decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=pt();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;i.baseEvent=h9.decode(r,r.uint32());continue;case 2:if(18!==e)break;i.messageId=r.string();continue;case 3:if(26!==e)break;i.delta=r.string();continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>pr.fromPartial(e??{}),fromPartial(e){let t=pt();return t.baseEvent=void 0!==e.baseEvent&&null!==e.baseEvent?h9.fromPartial(e.baseEvent):void 0,t.messageId=e.messageId??"",t.delta=e.delta??"",t}};function pn(){return{baseEvent:void 0,messageId:""}}let pi={encode:(e,t=new hB)=>(void 0!==e.baseEvent&&h9.encode(e.baseEvent,t.uint32(10).fork()).join(),""!==e.messageId&&t.uint32(18).string(e.messageId),t),decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=pn();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;i.baseEvent=h9.decode(r,r.uint32());continue;case 2:if(18!==e)break;i.messageId=r.string();continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>pi.fromPartial(e??{}),fromPartial(e){let t=pn();return t.baseEvent=void 0!==e.baseEvent&&null!==e.baseEvent?h9.fromPartial(e.baseEvent):void 0,t.messageId=e.messageId??"",t}};function pa(){return{baseEvent:void 0,toolCallId:"",toolCallName:"",parentMessageId:void 0}}let po={encode:(e,t=new hB)=>(void 0!==e.baseEvent&&h9.encode(e.baseEvent,t.uint32(10).fork()).join(),""!==e.toolCallId&&t.uint32(18).string(e.toolCallId),""!==e.toolCallName&&t.uint32(26).string(e.toolCallName),void 0!==e.parentMessageId&&t.uint32(34).string(e.parentMessageId),t),decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=pa();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;i.baseEvent=h9.decode(r,r.uint32());continue;case 2:if(18!==e)break;i.toolCallId=r.string();continue;case 3:if(26!==e)break;i.toolCallName=r.string();continue;case 4:if(34!==e)break;i.parentMessageId=r.string();continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>po.fromPartial(e??{}),fromPartial(e){let t=pa();return t.baseEvent=void 0!==e.baseEvent&&null!==e.baseEvent?h9.fromPartial(e.baseEvent):void 0,t.toolCallId=e.toolCallId??"",t.toolCallName=e.toolCallName??"",t.parentMessageId=e.parentMessageId??void 0,t}};function ps(){return{baseEvent:void 0,toolCallId:"",delta:""}}let pl={encode:(e,t=new hB)=>(void 0!==e.baseEvent&&h9.encode(e.baseEvent,t.uint32(10).fork()).join(),""!==e.toolCallId&&t.uint32(18).string(e.toolCallId),""!==e.delta&&t.uint32(26).string(e.delta),t),decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=ps();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;i.baseEvent=h9.decode(r,r.uint32());continue;case 2:if(18!==e)break;i.toolCallId=r.string();continue;case 3:if(26!==e)break;i.delta=r.string();continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>pl.fromPartial(e??{}),fromPartial(e){let t=ps();return t.baseEvent=void 0!==e.baseEvent&&null!==e.baseEvent?h9.fromPartial(e.baseEvent):void 0,t.toolCallId=e.toolCallId??"",t.delta=e.delta??"",t}};function pu(){return{baseEvent:void 0,toolCallId:""}}let pc={encode:(e,t=new hB)=>(void 0!==e.baseEvent&&h9.encode(e.baseEvent,t.uint32(10).fork()).join(),""!==e.toolCallId&&t.uint32(18).string(e.toolCallId),t),decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=pu();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;i.baseEvent=h9.decode(r,r.uint32());continue;case 2:if(18!==e)break;i.toolCallId=r.string();continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>pc.fromPartial(e??{}),fromPartial(e){let t=pu();return t.baseEvent=void 0!==e.baseEvent&&null!==e.baseEvent?h9.fromPartial(e.baseEvent):void 0,t.toolCallId=e.toolCallId??"",t}};function pd(){return{baseEvent:void 0,snapshot:void 0}}let pf={encode:(e,t=new hB)=>(void 0!==e.baseEvent&&h9.encode(e.baseEvent,t.uint32(10).fork()).join(),void 0!==e.snapshot&&hY.encode(hY.wrap(e.snapshot),t.uint32(18).fork()).join(),t),decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=pd();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;i.baseEvent=h9.decode(r,r.uint32());continue;case 2:if(18!==e)break;i.snapshot=hY.unwrap(hY.decode(r,r.uint32()));continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>pf.fromPartial(e??{}),fromPartial(e){let t=pd();return t.baseEvent=void 0!==e.baseEvent&&null!==e.baseEvent?h9.fromPartial(e.baseEvent):void 0,t.snapshot=e.snapshot??void 0,t}};function ph(){return{baseEvent:void 0,delta:[]}}let pp={encode(e,t=new hB){for(let r of(void 0!==e.baseEvent&&h9.encode(e.baseEvent,t.uint32(10).fork()).join(),e.delta))hX.encode(r,t.uint32(18).fork()).join();return t},decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=ph();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;i.baseEvent=h9.decode(r,r.uint32());continue;case 2:if(18!==e)break;i.delta.push(hX.decode(r,r.uint32()));continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>pp.fromPartial(e??{}),fromPartial(e){let t=ph();return t.baseEvent=void 0!==e.baseEvent&&null!==e.baseEvent?h9.fromPartial(e.baseEvent):void 0,t.delta=e.delta?.map(e=>hX.fromPartial(e))||[],t}};function pg(){return{baseEvent:void 0,messages:[]}}let pm={encode(e,t=new hB){for(let r of(void 0!==e.baseEvent&&h9.encode(e.baseEvent,t.uint32(10).fork()).join(),e.messages))h8.encode(r,t.uint32(18).fork()).join();return t},decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=pg();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;i.baseEvent=h9.decode(r,r.uint32());continue;case 2:if(18!==e)break;i.messages.push(h8.decode(r,r.uint32()));continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>pm.fromPartial(e??{}),fromPartial(e){let t=pg();return t.baseEvent=void 0!==e.baseEvent&&null!==e.baseEvent?h9.fromPartial(e.baseEvent):void 0,t.messages=e.messages?.map(e=>h8.fromPartial(e))||[],t}};function pA(){return{baseEvent:void 0,event:void 0,source:void 0}}let py={encode:(e,t=new hB)=>(void 0!==e.baseEvent&&h9.encode(e.baseEvent,t.uint32(10).fork()).join(),void 0!==e.event&&hY.encode(hY.wrap(e.event),t.uint32(18).fork()).join(),void 0!==e.source&&t.uint32(26).string(e.source),t),decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=pA();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;i.baseEvent=h9.decode(r,r.uint32());continue;case 2:if(18!==e)break;i.event=hY.unwrap(hY.decode(r,r.uint32()));continue;case 3:if(26!==e)break;i.source=r.string();continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>py.fromPartial(e??{}),fromPartial(e){let t=pA();return t.baseEvent=void 0!==e.baseEvent&&null!==e.baseEvent?h9.fromPartial(e.baseEvent):void 0,t.event=e.event??void 0,t.source=e.source??void 0,t}};function pv(){return{baseEvent:void 0,name:"",value:void 0}}let pb={encode:(e,t=new hB)=>(void 0!==e.baseEvent&&h9.encode(e.baseEvent,t.uint32(10).fork()).join(),""!==e.name&&t.uint32(18).string(e.name),void 0!==e.value&&hY.encode(hY.wrap(e.value),t.uint32(26).fork()).join(),t),decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=pv();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;i.baseEvent=h9.decode(r,r.uint32());continue;case 2:if(18!==e)break;i.name=r.string();continue;case 3:if(26!==e)break;i.value=hY.unwrap(hY.decode(r,r.uint32()));continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>pb.fromPartial(e??{}),fromPartial(e){let t=pv();return t.baseEvent=void 0!==e.baseEvent&&null!==e.baseEvent?h9.fromPartial(e.baseEvent):void 0,t.name=e.name??"",t.value=e.value??void 0,t}};function pw(){return{baseEvent:void 0,threadId:"",runId:""}}let pS={encode:(e,t=new hB)=>(void 0!==e.baseEvent&&h9.encode(e.baseEvent,t.uint32(10).fork()).join(),""!==e.threadId&&t.uint32(18).string(e.threadId),""!==e.runId&&t.uint32(26).string(e.runId),t),decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=pw();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;i.baseEvent=h9.decode(r,r.uint32());conti
19nue;case 2:if(18!==e)break;i.threadId=r.string();continue;case 3:if(26!==e)break;i.runId=r.string();continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>pS.fromPartial(e??{}),fromPartial(e){let t=pw();return t.baseEvent=void 0!==e.baseEvent&&null!==e.baseEvent?h9.fromPartial(e.baseEvent):void 0,t.threadId=e.threadId??"",t.runId=e.runId??"",t}};function pI(){return{baseEvent:void 0,threadId:"",runId:"",result:void 0}}let pE={encode:(e,t=new hB)=>(void 0!==e.baseEvent&&h9.encode(e.baseEvent,t.uint32(10).fork()).join(),""!==e.threadId&&t.uint32(18).string(e.threadId),""!==e.runId&&t.uint32(26).string(e.runId),void 0!==e.result&&hY.encode(hY.wrap(e.result),t.uint32(34).fork()).join(),t),decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=pI();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;i.baseEvent=h9.decode(r,r.uint32());continue;case 2:if(18!==e)break;i.threadId=r.string();continue;case 3:if(26!==e)break;i.runId=r.string();continue;case 4:if(34!==e)break;i.result=hY.unwrap(hY.decode(r,r.uint32()));continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>pE.fromPartial(e??{}),fromPartial(e){let t=pI();return t.baseEvent=void 0!==e.baseEvent&&null!==e.baseEvent?h9.fromPartial(e.baseEvent):void 0,t.threadId=e.threadId??"",t.runId=e.runId??"",t.result=e.result??void 0,t}};function pC(){return{baseEvent:void 0,code:void 0,message:""}}let px={encode:(e,t=new hB)=>(void 0!==e.baseEvent&&h9.encode(e.baseEvent,t.uint32(10).fork()).join(),void 0!==e.code&&t.uint32(18).string(e.code),""!==e.message&&t.uint32(26).string(e.message),t),decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=pC();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;i.baseEvent=h9.decode(r,r.uint32());continue;case 2:if(18!==e)break;i.code=r.string();continue;case 3:if(26!==e)break;i.message=r.string();continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>px.fromPartial(e??{}),fromPartial(e){let t=pC();return t.baseEvent=void 0!==e.baseEvent&&null!==e.baseEvent?h9.fromPartial(e.baseEvent):void 0,t.code=e.code??void 0,t.message=e.message??"",t}};function pk(){return{baseEvent:void 0,stepName:""}}let pO={encode:(e,t=new hB)=>(void 0!==e.baseEvent&&h9.encode(e.baseEvent,t.uint32(10).fork()).join(),""!==e.stepName&&t.uint32(18).string(e.stepName),t),decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=pk();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;i.baseEvent=h9.decode(r,r.uint32());continue;case 2:if(18!==e)break;i.stepName=r.string();continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>pO.fromPartial(e??{}),fromPartial(e){let t=pk();return t.baseEvent=void 0!==e.baseEvent&&null!==e.baseEvent?h9.fromPartial(e.baseEvent):void 0,t.stepName=e.stepName??"",t}};function pT(){return{baseEvent:void 0,stepName:""}}let pR={encode:(e,t=new hB)=>(void 0!==e.baseEvent&&h9.encode(e.baseEvent,t.uint32(10).fork()).join(),""!==e.stepName&&t.uint32(18).string(e.stepName),t),decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=pT();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;i.baseEvent=h9.decode(r,r.uint32());continue;case 2:if(18!==e)break;i.stepName=r.string();continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>pR.fromPartial(e??{}),fromPartial(e){let t=pT();return t.baseEvent=void 0!==e.baseEvent&&null!==e.baseEvent?h9.fromPartial(e.baseEvent):void 0,t.stepName=e.stepName??"",t}};function p_(){return{baseEvent:void 0,messageId:void 0,role:void 0,delta:void 0}}let pD={encode:(e,t=new hB)=>(void 0!==e.baseEvent&&h9.encode(e.baseEvent,t.uint32(10).fork()).join(),void 0!==e.messageId&&t.uint32(18).string(e.messageId),void 0!==e.role&&t.uint32(26).string(e.role),void 0!==e.delta&&t.uint32(34).string(e.delta),t),decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=p_();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;i.baseEvent=h9.decode(r,r.uint32());continue;case 2:if(18!==e)break;i.messageId=r.string();continue;case 3:if(26!==e)break;i.role=r.string();continue;case 4:if(34!==e)break;i.delta=r.string();continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>pD.fromPartial(e??{}),fromPartial(e){let t=p_();return t.baseEvent=void 0!==e.baseEvent&&null!==e.baseEvent?h9.fromPartial(e.baseEvent):void 0,t.messageId=e.messageId??void 0,t.role=e.role??void 0,t.delta=e.delta??void 0,t}};function pN(){return{baseEvent:void 0,toolCallId:void 0,toolCallName:void 0,parentMessageId:void 0,delta:void 0}}let pM={encode:(e,t=new hB)=>(void 0!==e.baseEvent&&h9.encode(e.baseEvent,t.uint32(10).fork()).join(),void 0!==e.toolCallId&&t.uint32(18).string(e.toolCallId),void 0!==e.toolCallName&&t.uint32(26).string(e.toolCallName),void 0!==e.parentMessageId&&t.uint32(34).string(e.parentMessageId),void 0!==e.delta&&t.uint32(42).string(e.delta),t),decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=pN();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;i.baseEvent=h9.decode(r,r.uint32());continue;case 2:if(18!==e)break;i.toolCallId=r.string();continue;case 3:if(26!==e)break;i.toolCallName=r.string();continue;case 4:if(34!==e)break;i.parentMessageId=r.string();continue;case 5:if(42!==e)break;i.delta=r.string();continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>pM.fromPartial(e??{}),fromPartial(e){let t=pN();return t.baseEvent=void 0!==e.baseEvent&&null!==e.baseEvent?h9.fromPartial(e.baseEvent):void 0,t.toolCallId=e.toolCallId??void 0,t.toolCallName=e.toolCallName??void 0,t.parentMessageId=e.parentMessageId??void 0,t.delta=e.delta??void 0,t}};function pF(){return{textMessageStart:void 0,textMessageContent:void 0,textMessageEnd:void 0,toolCallStart:void 0,toolCallArgs:void 0,toolCallEnd:void 0,stateSnapshot:void 0,stateDelta:void 0,messagesSnapshot:void 0,raw:void 0,custom:void 0,runStarted:void 0,runFinished:void 0,runError:void 0,stepStarted:void 0,stepFinished:void 0,textMessageChunk:void 0,toolCallChunk:void 0}}let pP={encode:(e,t=new hB)=>(void 0!==e.textMessageStart&&pe.encode(e.textMessageStart,t.uint32(10).fork()).join(),void 0!==e.textMessageContent&&pr.encode(e.textMessageContent,t.uint32(18).fork()).join(),void 0!==e.textMessageEnd&&pi.encode(e.textMessageEnd,t.uint32(26).fork()).join(),void 0!==e.toolCallStart&&po.encode(e.toolCallStart,t.uint32(34).fork()).join(),void 0!==e.toolCallArgs&&pl.encode(e.toolCallArgs,t.uint32(42).fork()).join(),void 0!==e.toolCallEnd&&pc.encode(e.toolCallEnd,t.uint32(50).fork()).join(),void 0!==e.stateSnapshot&&pf.encode(e.stateSnapshot,t.uint32(58).fork()).join(),void 0!==e.stateDelta&&pp.encode(e.stateDelta,t.uint32(66).fork()).join(),void 0!==e.messagesSnapshot&&pm.encode(e.messagesSnapshot,t.uint32(74).fork()).join(),void 0!==e.raw&&py.encode(e.raw,t.uint32(82).fork()).join(),void 0!==e.custom&&pb.encode(e.custom,t.uint32(90).fork()).join(),void 0!==e.runStarted&&pS.encode(e.runStarted,t.uint32(98).fork()).join(),void 0!==e.runFinished&&pE.encode(e.runFinished,t.uint32(106).fork()).join(),void 0!==e.runError&&px.encode(e.runError,t.uint32(114).fork()).join(),void 0!==e.stepStarted&&pO.encode(e.stepStarted,t.uint32(122).fork()).join(),void 0!==e.stepFinished&&pR.encode(e.stepFinished,t.uint32(130).fork()).join(),void 0!==e.textMessageChunk&&pD.encode(e.textMessageChunk,t.uint32(138).fork()).join(),void 0!==e.toolCallChunk&&pM.encode(e.toolCallChunk,t.uint32(146).fork()).join(),t),decode(e,t){let r=e instanceof hj?e:new hj(e),n=void 0===t?r.len:r.pos+t,i=pF();for(;r.pos<n;){let e=r.uint32();switch(e>>>3){case 1:if(10!==e)break;i.textMessageStart=pe.decode(r,r.uint32());continue;case 2:if(18!==e)break;i.textMessageContent=pr.decode(r,r.uint32());continue;case 3:if(26!==e)break;i.textMessageEnd=pi.decode(r,r.uint32());continue;case 4:if(34!==e)break;i.toolCallStart=po.decode(r,r.uint32());continue;case 5:if(42!==e)break;i.toolCallArgs=pl.decode(r,r.uint32());continue;case 6:if(50!==e)break;i.toolCallEnd=pc.decode(r,r.uint32());continue;case 7:if(58!==e)break;i.stateSnapshot=pf.decode(r,r.uint32());continue;case 8:if(66!==e)break;i.stateDelta=pp.decode(r,r.uint32());continue;case 9:if(74!==e)break;i.messagesSnapshot=pm.decode(r,r.uint32());continue;case 10:if(82!==e)break;i.raw=py.decode(r,r.uint32());continue;case 11:if(90!==e)break;i.custom=pb.decode(r,r.uint32());continue;case 12:if(98!==e)break;i.runStarted=pS.decode(r,r.uint32());continue;case 13:if(106!==e)break;i.runFinished=pE.decode(r,r.uint32());continue;case 14:if(114!==e)break;i.runError=px.decode(r,r.uint32());continue;case 15:if(122!==e)break;i.stepStarted=pO.decode(r,r.uint32());continue;case 16:if(130!==e)break;i.stepFinished=pR.decode(r,r.uint32());continue;case 17:if(138!==e)break;i.textMessageChunk=pD.decode(r,r.uint32());continue;case 18:if(146!==e)break;i.toolCallChunk=pM.decode(r,r.uint32());continue}if((7&e)==4||0===e)break;r.skip(7&e)}return i},create:e=>pP.fromPartial(e??{}),fromPartial(e){let t=pF();return t.textMessageStart=void 0!==e.textMessageStart&&null!==e.textMessageStart?pe.fromPartial(e.textMessageStart):void 0,t.textMessageContent=void 0!==e.textMessageContent&&null!==e.textMessageContent?pr.fromPartial(e.textMessageContent):void 0,t.textMessageEnd=void 0!==e.textMessageEnd&&null!==e.textMessageEnd?pi.fromPartial(e.textMessageEnd):void 0,t.toolCallStart=void 0!==e.toolCallStart&&null!==e.toolCallStart?po.fromPartial(e.toolCallStart):void 0,t.toolCallArgs=void 0!==e.toolCallArgs&&null!==e.toolCallArgs?pl.fromPartial(e.toolCallArgs):void 0,t.toolCallEnd=void 0!==e.toolCallEnd&&null!==e.toolCallEnd?pc.fromPartial(e.toolCallEnd):void 0,t.stateSnapshot=void 0!==e.stateSnapshot&&null!==e.stateSnapshot?pf.fromPartial(e.stateSnapshot):void 0,t.stateDelta=void 0!==e.stateDelta&&null!==e.stateDelta?pp.fromPartial(e.stateDelta):void 0,t.messagesSnapshot=void 0!==e.messagesSnapshot&&null!==e.messagesSnapshot?pm.fromPartial(e.messagesSnapshot):void 0,t.raw=void 0!==e.raw&&null!==e.raw?py.fromPartial(e.raw):void 0,t.custom=void 0!==e.custom&&null!==e.custom?pb.fromPartial(e.custom):void 0,t.runStarted=void 0!==e.runStarted&&null!==e.runStarted?pS.fromPartial(e.runStarted):void 0,t.runFinished=void 0!==e.runFinished&&null!==e.runFinished?pE.fromPartial(e.runFinished):void 0,t.runError=void 0!==e.runError&&null!==e.runError?px.fromPartial(e.runError):void 0,t.stepStarted=void 0!==e.stepStarted&&null!==e.stepStarted?pO.fromPartial(e.stepStarted):void 0,t.stepFinished=void 0!==e.stepFinished&&null!==e.stepFinished?pR.fromPartial(e.stepFinished):void 0,t.textMessageChunk=void 0!==e.textMessageChunk&&null!==e.textMessageChunk?pD.fromPartial(e.textMessageChunk):void 0,t.toolCallChunk=void 0!==e.toolCallChunk&&null!==e.toolCallChunk?pM.fromPartial(e.toolCallChunk):void 0,t}},pL=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,pB=e=>{if("string"!=typeof e)throw TypeError("Invalid argument expected string");let t=e.match(pL);
19if(!t)throw Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},pj=e=>"*"===e||"x"===e||"X"===e,pU=e=>{let t=parseInt(e,10);return isNaN(t)?e:t},pq=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],pQ=(e,t)=>{if(pj(e)||pj(t))return 0;let[r,n]=pq(pU(e),pU(t));return r>n?1:r<n?-1:0},pG=(e,t)=>{for(let r=0;r<Math.max(e.length,t.length);r++){let n=pQ(e[r]||"0",t[r]||"0");if(0!==n)return n}return 0},pV=(e,t)=>{let r=pB(e),n=pB(t),i=r.pop(),a=n.pop(),o=pG(r,n);return 0!==o?o:i&&a?pG(i.split("."),a.split(".")):i||a?i?-1:1:0};var pH=r(32608);let pK=e=>{if("function"==typeof structuredClone)return structuredClone(e);try{return JSON.parse(JSON.stringify(e))}catch{return{...e}}};async function pW(e,t,r,n){let i=t,a=r,o;for(let t of e)try{let e=await n(t,pK(i),pK(a));if(void 0===e)continue;if(void 0!==e.messages&&(i=e.messages),void 0!==e.state&&(a=e.state),o=e.stopPropagation,!0===o)break}catch(e){void 0!==pH.env.VITEST_WORKER_ID||console.error("Subscriber error:",e);continue}return{...JSON.stringify(i)===JSON.stringify(t)?{}:{messages:i},...JSON.stringify(a)===JSON.stringify(r)?{}:{state:a},...void 0===o?{}:{stopPropagation:o}}}let pY=(e,t,r,n)=>{var i,a;let o=pK(r.messages),s=pK(e.state),l={},u=e=>{void 0!==e.messages&&(o=e.messages,l.messages=e.messages),void 0!==e.state&&(s=e.state,l.state=e.state)},c=()=>{let e=pK(l);return l={},void 0!==e.messages||void 0!==e.state?ha(e):ho};return t.pipe(hy(async t=>{let i=await pW(n,o,s,(n,i,a)=>n.onEvent?.({event:t,agent:r,input:e,messages:i,state:a}));if(u(i),!0===i.stopPropagation)return c();switch(t.type){case dy.TEXT_MESSAGE_START:{let i=await pW(n,o,s,(n,i,a)=>n.onTextMessageStartEvent?.({event:t,messages:i,state:a,agent:r,input:e}));if(u(i),!0!==i.stopPropagation){let{messageId:e,role:r="assistant"}=t;o.find(t=>t.id===e)||(o.push({id:e,role:r,content:""}),u({messages:o}))}return c()}case dy.TEXT_MESSAGE_CONTENT:{let{messageId:i,delta:a}=t,l=o.find(e=>e.id===i);if(!l)return console.warn(`TEXT_MESSAGE_CONTENT: No message found with ID '${i}'`),c();let d=await pW(n,o,s,(n,i,a)=>n.onTextMessageContentEvent?.({event:t,messages:i,state:a,agent:r,input:e,textMessageBuffer:"string"==typeof l.content?l.content:""}));return u(d),!0!==d.stopPropagation&&(l.content=`${"string"==typeof l.content?l.content:""}${a}`,u({messages:o})),c()}case dy.TEXT_MESSAGE_END:{let{messageId:i}=t,a=o.find(e=>e.id===i);return a?(u(await pW(n,o,s,(n,i,o)=>n.onTextMessageEndEvent?.({event:t,messages:i,state:o,agent:r,input:e,textMessageBuffer:"string"==typeof a.content?a.content:""}))),await Promise.all(n.map(t=>{t.onNewMessage?.({message:a,messages:o,state:s,agent:r,input:e})}))):console.warn(`TEXT_MESSAGE_END: No message found with ID '${i}'`),c()}case dy.TOOL_CALL_START:{let i=await pW(n,o,s,(n,i,a)=>n.onToolCallStartEvent?.({event:t,messages:i,state:a,agent:r,input:e}));if(u(i),!0!==i.stopPropagation){let{toolCallId:e,toolCallName:r,parentMessageId:n}=t,i;n&&o.length>0&&o[o.length-1].id===n?i=o[o.length-1]:(i={id:n||e,role:"assistant",toolCalls:[]},o.push(i)),i.toolCalls??=[],i.toolCalls.push({id:e,type:"function",function:{name:r,arguments:""}}),u({messages:o})}return c()}case dy.TOOL_CALL_ARGS:{let{toolCallId:i,delta:a}=t,l=o.find(e=>e.toolCalls?.some(e=>e.id===i));if(!l)return console.warn(`TOOL_CALL_ARGS: No message found containing tool call with ID '${i}'`),c();let d=l.toolCalls?.find(e=>e.id===i);if(!d)return console.warn(`TOOL_CALL_ARGS: No tool call found with ID '${i}'`),c();let f=await pW(n,o,s,(n,i,a)=>{let o=d.function.arguments,s=d.function.name,l={};try{l=hS(o)}catch{}return n.onToolCallArgsEvent?.({event:t,messages:i,state:a,agent:r,input:e,toolCallBuffer:o,toolCallName:s,partialToolCallArgs:l})});return u(f),!0!==f.stopPropagation&&(d.function.arguments+=a,u({messages:o})),c()}case dy.TOOL_CALL_END:{let{toolCallId:i}=t,a=o.find(e=>e.toolCalls?.some(e=>e.id===i));if(!a)return console.warn(`TOOL_CALL_END: No message found containing tool call with ID '${i}'`),c();let l=a.toolCalls?.find(e=>e.id===i);return l?(u(await pW(n,o,s,(n,i,a)=>{let o=l.function.arguments,s=l.function.name,u={};try{u=JSON.parse(o)}catch{}return n.onToolCallEndEvent?.({event:t,messages:i,state:a,agent:r,input:e,toolCallName:s,toolCallArgs:u})})),await Promise.all(n.map(t=>{t.onNewToolCall?.({toolCall:l,messages:o,state:s,agent:r,input:e})}))):console.warn(`TOOL_CALL_END: No tool call found with ID '${i}'`),c()}case dy.TOOL_CALL_RESULT:{let i=await pW(n,o,s,(n,i,a)=>n.onToolCallResultEvent?.({event:t,messages:i,state:a,agent:r,input:e}));if(u(i),!0!==i.stopPropagation){let{messageId:i,toolCallId:a,content:l,role:c}=t,d={id:i,toolCallId:a,role:c||"tool",content:l};o.push(d),await Promise.all(n.map(t=>{t.onNewMessage?.({message:d,messages:o,state:s,agent:r,input:e})})),u({messages:o})}return c()}
19case dy.STATE_SNAPSHOT:{let i=await pW(n,o,s,(n,i,a)=>n.onStateSnapshotEvent?.({event:t,messages:i,state:a,agent:r,input:e}));if(u(i),!0!==i.stopPropagation){let{snapshot:e}=t;u({state:s=e})}return c()}case dy.STATE_DELTA:{let i=await pW(n,o,s,(n,i,a)=>n.onStateDeltaEvent?.({event:t,messages:i,state:a,agent:r,input:e}));if(u(i),!0!==i.stopPropagation){let{delta:e}=t;try{s=fs(s,e,!0,!1).newDocument,u({state:s})}catch(r){let t=r instanceof Error?r.message:String(r);console.warn(`Failed to apply state patch: 20Current state: ${JSON.stringify(s,null,2)} 21Patch operations: ${JSON.stringify(e,null,2)} 22Error: ${t}`)}}return c()}case dy.MESSAGES_SNAPSHOT:{let i=await pW(n,o,s,(n,i,a)=>n.onMessagesSnapshotEvent?.({event:t,messages:i,state:a,agent:r,input:e}));if(u(i),!0!==i.stopPropagation){let{messages:e}=t;u({messages:o=e})}return c()}case dy.ACTIVITY_SNAPSHOT:{let i=o.findIndex(e=>e.id===t.messageId),a=i>=0?o[i]:void 0,l=a?.role==="activity"?a:void 0,d=t.replace??!0,f=await pW(n,o,s,(n,i,o)=>n.onActivitySnapshotEvent?.({event:t,messages:i,state:o,agent:r,input:e,activityMessage:l,existingMessage:a}));if(u(f),!0!==f.stopPropagation){let a={id:t.messageId,role:"activity",activityType:t.activityType,content:pK(t.content)},c;-1===i?(o.push(a),c=a):l?d&&(o[i]={...l,activityType:t.activityType,content:pK(t.content)}):d&&(o[i]=a,c=a),u({messages:o}),c&&await Promise.all(n.map(t=>t.onNewMessage?.({message:c,messages:o,state:s,agent:r,input:e})))}return c()}case dy.ACTIVITY_DELTA:{let i=o.findIndex(e=>e.id===t.messageId);if(-1===i)return console.warn(`ACTIVITY_DELTA: No message found with ID '${t.messageId}' to apply patch`),c();let a=o[i];if("activity"!==a.role)return console.warn(`ACTIVITY_DELTA: Message '${t.messageId}' is not an activity message`),c();let l=await pW(n,o,s,(n,i,o)=>n.onActivityDeltaEvent?.({event:t,messages:i,state:o,agent:r,input:e,activityMessage:a}));if(u(l),!0!==l.stopPropagation)try{let e=pK(a.content??{}),r=fs(e,t.patch??[],!0,!1).newDocument;o[i]={...a,content:pK(r),activityType:t.activityType},u({messages:o})}catch(r){let e=r instanceof Error?r.message:String(r);console.warn(`Failed to apply activity patch for '${t.messageId}': ${e}`)}return c()}case dy.RAW:return u(await pW(n,o,s,(n,i,a)=>n.onRawEvent?.({event:t,messages:i,state:a,agent:r,input:e}))),c();case dy.CUSTOM:return u(await pW(n,o,s,(n,i,a)=>n.onCustomEvent?.({event:t,messages:i,state:a,agent:r,input:e}))),c();case dy.RUN_STARTED:{let i=await pW(n,o,s,(n,i,a)=>n.onRunStartedEvent?.({event:t,messages:i,state:a,agent:r,input:e}));if(u(i),!0!==i.stopPropagation&&t.input?.messages){for(let e of t.input.messages)o.find(t=>t.id===e.id)||o.push(e);u({messages:o})}return c()}case dy.RUN_FINISHED:return u(await pW(n,o,s,(n,i,a)=>n.onRunFinishedEvent?.({event:t,messages:i,state:a,agent:r,input:e,result:t.result}))),c();case dy.RUN_ERROR:return u(await pW(n,o,s,(n,i,a)=>n.onRunErrorEvent?.({event:t,messages:i,state:a,agent:r,input:e}))),c();case dy.STEP_STARTED:return u(await pW(n,o,s,(n,i,a)=>n.onStepStartedEvent?.({event:t,messages:i,state:a,agent:r,input:e}))),c();case dy.STEP_FINISHED:return u(await pW(n,o,s,(n,i,a)=>n.onStepFinishedEvent?.({event:t,messages:i,state:a,agent:r,input:e}))),c();case dy.TEXT_MESSAGE_CHUNK:throw Error("TEXT_MESSAGE_CHUNK must be tranformed before being applied");case dy.TOOL_CALL_CHUNK:throw Error("TOOL_CALL_CHUNK must be tranformed before being applied");case dy.THINKING_START:case dy.THINKING_END:case dy.THINKING_TEXT_MESSAGE_START:case dy.THINKING_TEXT_MESSAGE_CONTENT:case dy.THINKING_TEXT_MESSAGE_END:return c();case dy.REASONING_START:return u(await pW(n,o,s,(n,i,a)=>n.onReasoningStartEvent?.({event:t,messages:i,state:a,agent:r,input:e}))),c();case dy.REASONING_MESSAGE_START:{let i=await pW(n,o,s,(n,i,a)=>n.onReasoningMessageStartEvent?.({event:t,messages:i,state:a,agent:r,input:e}));if(u(i),!0!==i.stopPropagation){let{messageId:e}=t;o.find(t=>t.id===e)||(o.push({id:e,role:"reasoning",content:""}),u({messages:o}))}return c()}case dy.REASONING_MESSAGE_CONTENT:{let{messageId:i,delta:a}=t,l=o.find(e=>e.id===i);if(!l)return console.warn(`REASONING_MESSAGE_CONTENT: No message found with ID '${i}'`),c();let d=await pW(n,o,s,(n,i,a)=>n.onReasoningMessageContentEvent?.({event:t,messages:i,state:a,agent:r,input:e,reasoningMessageBuffer:"string"==typeof l.content?l.content:""}));return u(d),!0!==d.stopPropagation&&(l.content=`${"string"==typeof l.content?l.content:""}${a}`,u({messages:o})),c()}case dy.REASONING_MESSAGE_END:{let{messageId:i}=t,a=o.find(e=>e.id===i);return a?(u(await pW(n,o,s,(n,i,o)=>n.onReasoningMessageEndEvent?.({event:t,messages:i,state:o,agent:r,input:e,reasoningMessageBuffer:"string"==typeof a.content?a.content:""}))),await Promise.all(n.map(t=>{t.onNewMessage?.({message:a,messages:o,state:s,agent:r,input:e})}))):console.warn(`REASONING_MESSAGE_END: No message found with ID '${i}'`),c()}case dy.REASONING_MESSAGE_CHUNK:throw Error("REASONING_MESSAGE_CHUNK must be transformed before being applied");case dy.REASONING_END:return u(await pW(n,o,s,(n,i,a)=>n.onReasoningEndEvent?.({event:t,messages:i,state:a,agent:r,input:e}))),c();
22case dy.REASONING_ENCRYPTED_VALUE:{let{subtype:i,entityId:a,encryptedValue:d}=t,f=await pW(n,o,s,(n,i,a)=>n.onReasoningEncryptedValueEvent?.({event:t,messages:i,state:a,agent:r,input:e}));if(u(f),!0!==f.stopPropagation){let e=!1;if("tool-call"===i){for(let t of o)if("assistant"===t.role&&t.toolCalls){let r=t.toolCalls.find(e=>e.id===a);if(r){r.encryptedValue=d,e=!0;break}}}else{let t=o.find(e=>e.id===a);t?.role!=="activity"&&t&&(t.encryptedValue=d,e=!0)}e&&(l.messages=o)}return c()}}return t.type,c()}),(void 0===i&&(i=1/0),hp(fY,i)),n.length>0?(a={},f9(function(e,t){var r=!1;e.subscribe(f7(t,function(e){r=!0,t.next(e)},function(){r||t.next(a),t.complete()}))})):e=>e)},pZ=e=>t=>{let r=new Map,n=new Map,i=!1,a=!1,o=!1,s=new Map,l=!1,u=!1,c=!1,d=()=>{r.clear(),n.clear(),s.clear(),l=!1,u=!1,i=!1,a=!1,c=!0};return t.pipe(hp(t=>{let f=t.type;if(e&&console.debug("[VERIFY]:",JSON.stringify(t)),a)return hs(()=>new dg(`Cannot send event type '${f}': The run has already errored with 'RUN_ERROR'. No further events can be sent.`));if(i&&f!==dy.RUN_ERROR&&f!==dy.RUN_STARTED)return hs(()=>new dg(`Cannot send event type '${f}': The run has already finished with 'RUN_FINISHED'. Start a new run with 'RUN_STARTED'.`));if(o){if(f===dy.RUN_STARTED){if(c&&!i)return hs(()=>new dg("Cannot send 'RUN_STARTED' while a run is still active. The previous run must be finished with 'RUN_FINISHED' before starting a new run."));i&&d()}}else if(o=!0,f!==dy.RUN_STARTED&&f!==dy.RUN_ERROR)return hs(()=>new dg("First event must be 'RUN_STARTED'"));switch(f){case dy.TEXT_MESSAGE_START:{let e=t.messageId;return r.has(e)?hs(()=>new dg(`Cannot send 'TEXT_MESSAGE_START' event: A text message with ID '${e}' is already in progress. Complete it with 'TEXT_MESSAGE_END' first.`)):(r.set(e,!0),ha(t))}case dy.TEXT_MESSAGE_CONTENT:{let e=t.messageId;return r.has(e)?ha(t):hs(()=>new dg(`Cannot send 'TEXT_MESSAGE_CONTENT' event: No active text message found with ID '${e}'. Start a text message with 'TEXT_MESSAGE_START' first.`))}case dy.TEXT_MESSAGE_END:{let e=t.messageId;return r.has(e)?(r.delete(e),ha(t)):hs(()=>new dg(`Cannot send 'TEXT_MESSAGE_END' event: No active text message found with ID '${e}'. A 'TEXT_MESSAGE_START' event must be sent first.`))}case dy.TOOL_CALL_START:{let e=t.toolCallId;return n.has(e)?hs(()=>new dg(`Cannot send 'TOOL_CALL_START' event: A tool call with ID '${e}' is already in progress. Complete it with 'TOOL_CALL_END' first.`)):(n.set(e,!0),ha(t))}case dy.TOOL_CALL_ARGS:{let e=t.toolCallId;return n.has(e)?ha(t):hs(()=>new dg(`Cannot send 'TOOL_CALL_ARGS' event: No active tool call found with ID '${e}'. Start a tool call with 'TOOL_CALL_START' first.`))}case dy.TOOL_CALL_END:{let e=t.toolCallId;return n.has(e)?(n.delete(e),ha(t)):hs(()=>new dg(`Cannot send 'TOOL_CALL_END' event: No active tool call found with ID '${e}'. A 'TOOL_CALL_START' event must be sent first.`))}case dy.STEP_STARTED:{let e=t.stepName;return s.has(e)?hs(()=>new dg(`Step "${e}" is already active for 'STEP_STARTED'`)):(s.set(e,!0),ha(t))}case dy.STEP_FINISHED:{let e=t.stepName;return s.has(e)?(s.delete(e),ha(t)):hs(()=>new dg(`Cannot send 'STEP_FINISHED' for step "${e}" that was not started`))}case dy.RUN_STARTED:return c=!0,ha(t);case dy.RUN_FINISHED:if(s.size>0){let e=Array.from(s.keys()).join(", ");return hs(()=>new dg(`Cannot send 'RUN_FINISHED' while steps are still active: ${e}`))}if(r.size>0){let e=Array.from(r.keys()).join(", ");return hs(()=>new dg(`Cannot send 'RUN_FINISHED' while text messages are still active: ${e}`))}if(n.size>0){let e=Array.from(n.keys()).join(", ");return hs(()=>new dg(`Cannot send 'RUN_FINISHED' while tool calls are still active: ${e}`))}return i=!0,ha(t);case dy.RUN_ERROR:return a=!0,ha(t);case dy.CUSTOM:return ha(t);case dy.THINKING_TEXT_MESSAGE_START:return l?u?hs(()=>new dg("Cannot send 'THINKING_TEXT_MESSAGE_START' event: A thinking message is already in progress. Complete it with 'THINKING_TEXT_MESSAGE_END' first.")):(u=!0,ha(t)):hs(()=>new dg("Cannot send 'THINKING_TEXT_MESSAGE_START' event: A thinking step is not in progress. Create one with 'THINKING_START' first."));case dy.THINKING_TEXT_MESSAGE_CONTENT:return u?ha(t):hs(()=>new dg("Cannot send 'THINKING_TEXT_MESSAGE_CONTENT' event: No active thinking message found. Start a message with 'THINKING_TEXT_MESSAGE_START' first."));case dy.THINKING_TEXT_MESSAGE_END:return u?(u=!1,ha(t)):hs(()=>new dg("Cannot send 'THINKING_TEXT_MESSAGE_END' event: No active thinking message found. A 'THINKING_TEXT_MESSAGE_START' event must be sent first."));case dy.THINKING_START:return l?hs(()=>new dg("Cannot send 'THINKING_START' event: A thinking step is already in progress. End it with 'THINKING_END' first.")):(l=!0,ha(t));case dy.THINKING_END:return l?(l=!1,ha(t)):hs(()=>new dg("Cannot send 'THINKING_END' event: No active thinking step found. A 'THINKING_START' event must be sent first."));default:return ha(t)}}))},pz=((S={}).HEADERS="headers",S.DATA="data",S),p$=(e,t)=>
22{var r,n;return(r=()=>hi(fetch(e,t)),new f$(function(e){f8(r()).subscribe(e)})).pipe((n=e=>{if(!e.ok){let t=e.headers.get("content-type")||"";return hi(e.text()).pipe(hp(r=>{let n=r;if(t.includes("application/json"))try{n=JSON.parse(r)}catch{}let i=Error(`HTTP ${e.status}: ${"string"==typeof n?n:JSON.stringify(n)}`);return i.status=e.status,i.payload=n,hs(()=>i)}))}let t={type:pz.HEADERS,status:e.status,headers:e.headers},r=e.body?.getReader();return r?new f$(e=>(e.next(t),(async()=>{try{for(;;){let{done:t,value:n}=await r.read();if(t)break;let i={type:pz.DATA,data:n};e.next(i)}e.complete()}catch(t){e.error(t)}})(),()=>{r.cancel().catch(e=>{if(e?.name!=="AbortError")throw e})})):hs(()=>Error("Failed to getReader() from response"))},f9(function(e,t){var r=null,i=0,a=!1,o=function(){return a&&!r&&t.complete()};e.subscribe(f7(t,function(e){null==r||r.unsubscribe(),f8(n(e,i++)).subscribe(r=f7(t,function(e){return t.next(e)},function(){r=null,o()}))},function(){a=!0,o()}))})))},pJ=e=>{let t=new hu,r=new TextDecoder("utf-8",{fatal:!1}),n="";function i(e){let r=e.split(` 23`),n=[];for(let e of r)e.startsWith("data:")&&n.push(e.slice(5).replace(/^ /,""));if(n.length>0)try{let e=n.join(` 24`),r=JSON.parse(e);t.next(r)}catch(e){t.error(e)}}return e.subscribe({next:e=>{if(e.type!==pz.HEADERS&&e.type===pz.DATA&&e.data){let t=r.decode(e.data,{stream:!0}),a=(n+=t).split(/\n\n/);for(let e of(n=a.pop()||"",a))i(e)}},error:e=>t.error(e),complete:()=>{n&&i(n+=r.decode()),t.complete()}}),t.asObservable()},pX=e=>{let t=new hu,r=new Uint8Array;function n(){for(;r.length>=4;){let e=4+new DataView(r.buffer,r.byteOffset,4).getUint32(0,!1);if(r.length<e)break;try{let n=r.slice(4,e),i=function(e){let t=Object.values(pP.decode(e)).find(e=>void 0!==e);if(!t)throw Error("Invalid event");if(t.type=h5[t.baseEvent.type],t.timestamp=t.baseEvent.timestamp,t.rawEvent=t.baseEvent.rawEvent,t.type===dy.MESSAGES_SNAPSHOT)for(let e of t.messages)e.toolCalls?.length===0&&(e.toolCalls=void 0);if(t.type===dy.STATE_DELTA)for(let e of t.delta)e.op=h$[e.op].toLowerCase(),Object.keys(e).forEach(t=>{void 0===e[t]&&delete e[t]});return Object.keys(t).forEach(e=>{void 0===t[e]&&delete t[e]}),d0.parse(t)}(n);t.next(i),r=r.slice(e)}catch(r){let e=r instanceof Error?r.message:String(r);t.error(Error(`Failed to decode protocol buffer message: ${e}`));return}}}return e.subscribe({next:e=>{if(e.type!==pz.HEADERS&&e.type===pz.DATA&&e.data){let t=new Uint8Array(r.length+e.data.length);t.set(r,0),t.set(e.data,r.length),r=t,n()}},error:e=>t.error(e),complete:()=>{if(r.length>0)try{n()}catch{console.warn("Incomplete or invalid protocol buffer data at stream end")}t.complete()}}),t.asObservable()},p0=e=>{let t=new hu,r=new hf,n=!1;return e.subscribe({next:e=>{r.next(e),e.type!==pz.HEADERS||n?n||t.error(Error("No headers event received before data events")):(n=!0,"application/vnd.ag-ui.event+proto"===e.headers.get("content-type")?pX(r).subscribe({next:e=>t.next(e),error:e=>t.error(e),complete:()=>t.complete()}):pJ(r).subscribe({next:e=>{try{let r=d0.parse(e);t.next(r)}catch(e){t.error(e)}},error:e=>{if(e?.name==="AbortError"){t.next({type:dy.RUN_ERROR,message:e.message||"Request aborted",code:"abort",rawEvent:e}),t.complete();return}return t.error(e)},complete:()=>t.complete()}))},error:e=>{r.error(e),t.error(e)},complete:()=>{r.complete()}}),t.asObservable()},p1=c3.Km(["TextMessageStart","TextMessageContent","TextMessageEnd","ActionExecutionStart","ActionExecutionArgs","ActionExecutionEnd","ActionExecutionResult","AgentStateMessage","MetaEvent","RunStarted","RunFinished","RunError","NodeStarted","NodeFinished"]),p2=c3.Km(["LangGraphInterruptEvent","PredictState","Exit"]),p3=c3.Ry({type:c3.i0(p1.enum.TextMessageStart),messageId:c3.Z_(),parentMessageId:c3.Z_().optional(),role:c3.Z_().optional()}),p4=c3.Ry({type:c3.i0(p1.enum.TextMessageContent),messageId:c3.Z_(),content:c3.Z_()}),p8=c3.Ry({type:c3.i0(p1.enum.TextMessageEnd),messageId:c3.Z_()}),p5=c3.Ry({type:c3.i0(p1.enum.ActionExecutionStart),actionExecutionId:c3.Z_(),actionName:c3.Z_(),parentMessageId:c3.Z_().optional()}),p6=c3.Ry({type:c3.i0(p1.enum.ActionExecutionArgs),actionExecutionId:c3.Z_(),args:c3.Z_()}),p9=c3.Ry({type:c3.i0(p1.enum.ActionExecutionEnd),actionExecutionId:c3.Z_()}),p7=c3.Ry({type:c3.i0(p1.enum.ActionExecutionResult),actionName:c3.Z_(),actionExecutionId:c3.Z_(),result:c3.Z_()}),ge=c3.Ry({type:c3.i0(p1.enum.AgentStateMessage),threadId:c3.Z_(),agentName:c3.Z_(),nodeName:c3.Z_(),runId:c3.Z_(),active:c3.O7(),role:c3.Z_(),state:c3.Z_(),running:c3.O7()}),gt=c3.Ry({type:c3.i0(p1.enum.MetaEvent),name:p2,value:c3.Yj()}),gr=c3.Ry({type:c3.i0(p1.enum.RunError),message:c3.Z_(),code:c3.Z_().optional()});c3.VK("type",[p3,p4,p8,p5,p6,p9,p7,ge,gt,gr]),c3.Ry({id:c3.Z_(),role:c3.Z_(),content:c3.Z_(),parentMessageId:c3.Z_().optional()}),c3.Ry({id:c3.Z_(),name:c3.Z_(),arguments:c3.Yj(),parentMessageId:c3.Z_().optional()}),c3.Ry({id:c3.Z_(),result:c3.Yj(),actionExecutionId:c3.Z_(),actionName:c3.Z_()});let gn=e=>{if("string"==typeof e)return e;if(!Array.isArray(e))return;let t=e.filter(e=>"text"===e.type).map(e=>e.text).filter(e=>e.length>0);if(0!==t.length)return t.join(` 25`)},gi=(e,t,r)=>n=>{let i={},a=!0,o=!0,s="",l=null,u=null,c=[],d={},f=e=>{"object"==typeof e&&e&&("messages"in e&&delete e.messages,i=e)};return n.pipe(hp(n=>{switch(n.type){case dy.TEXT_MESSAGE_START:return[{type:p1.enum.TextMessageStart,messageId:n.messageId,role:n.role}];case dy.TEXT_MESSAGE_CONTENT:return[{type:p1.enum.TextMessageContent,messageId:n.messageId,content:n.delta}];case dy.TEXT_MESSAGE_END:return[{type:p1.enum.TextMessageEnd,messageId:n.messageId}];case dy.TOOL_CALL_START:return c.push({id:n.toolCallId,type:"function",function:{name:n.toolCallName,arguments:""}}),o=!0,d[n.toolCallId]=n.toolCallName,[{type:p1.enum.ActionExecutionStart,actionExecutionId:n.toolCallId,actionName:n.toolCallName,parentMessageId:n.parentMessageId}];case dy.TOOL_CALL_ARGS:{let l=c.find(e=>e.id===n.toolCallId);if(!l)return console.warn(`TOOL_CALL_ARGS: No tool call found with ID '${n.toolCallId}'`),[];l.function.arguments+=n.delta;let d=!1;if(u){let e=u.find(e=>e.tool==l.function.name);if(e)try{let t=JSON.parse(hS(l.function.arguments));e.tool_argument&&e.tool_argument in t?(f({...i,[e.state_key]:t[e.tool_argument]}
25),d=!0):e.tool_argument||(f({...i,[e.state_key]:t}),d=!0)}catch{}}return[{type:p1.enum.ActionExecutionArgs,actionExecutionId:n.toolCallId,args:n.delta},...d?[{type:p1.enum.AgentStateMessage,threadId:e,agentName:r,nodeName:s,runId:t,running:a,role:"assistant",state:JSON.stringify(i),active:o}]:[]]}case dy.TOOL_CALL_END:return[{type:p1.enum.ActionExecutionEnd,actionExecutionId:n.toolCallId}];case dy.TOOL_CALL_RESULT:return[{type:p1.enum.ActionExecutionResult,actionExecutionId:n.toolCallId,result:n.content,actionName:d[n.toolCallId]||"unknown"}];case dy.RAW:return[];case dy.CUSTOM:switch(n.name){case"Exit":a=!1;break;case"PredictState":u=n.value}return[{type:p1.enum.MetaEvent,name:n.name,value:n.value}];case dy.STATE_SNAPSHOT:return f(n.snapshot),[{type:p1.enum.AgentStateMessage,threadId:e,agentName:r,nodeName:s,runId:t,running:a,role:"assistant",state:JSON.stringify(i),active:o}];case dy.STATE_DELTA:{let l=fs(i,n.delta,!0,!1);return l?(f(l.newDocument),[{type:p1.enum.AgentStateMessage,threadId:e,agentName:r,nodeName:s,runId:t,running:a,role:"assistant",state:JSON.stringify(i),active:o}]):[]}case dy.MESSAGES_SNAPSHOT:return l=n.messages,[{type:p1.enum.AgentStateMessage,threadId:e,agentName:r,nodeName:s,runId:t,running:a,role:"assistant",state:JSON.stringify({...i,...l?{messages:l}:{}}),active:!0}];case dy.RUN_STARTED:return[];case dy.RUN_FINISHED:return l&&(i.messages=l),0===Object.keys(i).length?[]:[{type:p1.enum.AgentStateMessage,threadId:e,agentName:r,nodeName:s,runId:t,running:a,role:"assistant",state:JSON.stringify({...i,...l?{messages:function(e){let t=[];for(let r of e)if("assistant"===r.role||"user"===r.role||"system"===r.role){let e=gn(r.content);if(e){let n={id:r.id,role:r.role,content:e};t.push(n)}if("assistant"===r.role&&r.toolCalls&&r.toolCalls.length>0)for(let e of r.toolCalls){let n={id:e.id,name:e.function.name,arguments:JSON.parse(e.function.arguments),parentMessageId:r.id};t.push(n)}}else if("tool"===r.role){let n="unknown";for(let t of e)if("assistant"===t.role&&t.toolCalls?.length){for(let e of t.toolCalls)if(e.id===r.toolCallId){n=e.function.name;break}}let i={id:r.id,result:r.content,actionExecutionId:r.toolCallId,actionName:n};t.push(i)}return t}(l)}:{}}),active:!1}];case dy.RUN_ERROR:return[{type:p1.enum.RunError,message:n.message,code:n.code}];case dy.STEP_STARTED:return s=n.stepName,c=[],u=null,[{type:p1.enum.AgentStateMessage,threadId:e,agentName:r,nodeName:s,runId:t,running:a,role:"assistant",state:JSON.stringify(i),active:!0}];case dy.STEP_FINISHED:return c=[],u=null,[{type:p1.enum.AgentStateMessage,threadId:e,agentName:r,nodeName:s,runId:t,running:a,role:"assistant",state:JSON.stringify(i),active:!1}];default:return[]}}))},ga=e=>t=>{let r,n,i,a,o=()=>{if(!r||"text"!==a)throw Error("No text message to close");let t={type:dy.TEXT_MESSAGE_END,messageId:r.messageId};return a=void 0,r=void 0,e&&console.debug("[TRANSFORM]: TEXT_MESSAGE_END",JSON.stringify(t)),t},s=()=>{if(!n||"tool"!==a)throw Error("No tool call to close");let t={type:dy.TOOL_CALL_END,toolCallId:n.toolCallId};return a=void 0,n=void 0,e&&console.debug("[TRANSFORM]: TOOL_CALL_END",JSON.stringify(t)),t},l=()=>{if(!i||"reasoning"!==a)throw Error("No reasoning message to close");let t={type:dy.REASONING_MESSAGE_END,messageId:i.messageId};return a=void 0,i=void 0,e&&console.debug("[TRANSFORM]: REASONING_MESSAGE_END",JSON.stringify(t)),t},u=()=>"text"===a?[o()]:"tool"===a?[s()]:"reasoning"===a?[l()]:[];return t.pipe(hp(t=>{switch(t.type){case dy.TEXT_MESSAGE_START:case dy.TEXT_MESSAGE_CONTENT:case dy.TEXT_MESSAGE_END:case dy.TOOL_CALL_START:case dy.TOOL_CALL_ARGS:case dy.TOOL_CALL_END:case dy.TOOL_CALL_RESULT:case dy.STATE_SNAPSHOT:case dy.STATE_DELTA:case dy.MESSAGES_SNAPSHOT:case dy.CUSTOM:case dy.RUN_STARTED:case dy.RUN_FINISHED:case dy.RUN_ERROR:case dy.STEP_STARTED:case dy.STEP_FINISHED:case dy.THINKING_START:case dy.THINKING_END:case dy.THINKING_TEXT_MESSAGE_START:case dy.THINKING_TEXT_MESSAGE_CONTENT:case dy.THINKING_TEXT_MESSAGE_END:case dy.REASONING_START:case dy.REASONING_MESSAGE_START:case dy.REASONING_MESSAGE_CONTENT:case dy.REASONING_MESSAGE_END:case dy.REASONING_END:return[...u(),t];case dy.RAW:case dy.ACTIVITY_SNAPSHOT:case dy.ACTIVITY_DELTA:case dy.REASONING_ENCRYPTED_VALUE:return[t];case dy.TEXT_MESSAGE_CHUNK:let o=[];if(("text"!==a||void 0!==t.messageId&&t.messageId!==r?.messageId)&&o.push(...u()),"text"!==a){if(void 0===t.messageId)throw Error("First TEXT_MESSAGE_CHUNK must have a messageId");r={messageId:t.messageId},a="text";let n={type:dy.TEXT_MESSAGE_START,messageId:t.messageId,role:t.role||"assistant"};o.push(n),e&&console.debug("[TRANSFORM]: TEXT_MESSAGE_START",JSON.stringify(n))}if(void 0!==t.delta){let n={type:dy.TEXT_MESSAGE_CONTENT,messageId:r.messageId,delta:t.delta};o.push(n),e&&console.debug("[TRANSFORM]: TEXT_MESSAGE_CONTENT",JSON.stringify(n))}return o;case dy.TOOL_CALL_CHUNK:let s=[];if(("tool"!==a||void 0!==t.toolCallId&&t.toolCallId!==n?.toolCallId)&&s.push(...u()),"tool"!==a){if(void 0===t.toolCallId)throw Error("First TOOL_CALL_CHUNK must have a toolCallId");if(void 0===t.toolCallName)throw Error("First TOOL_CALL_CHUNK must have a toolCallName");n={toolCallId:t.toolCallId,toolCallName:t.toolCallName,parentMessageId:t.parentMessageId},a="tool";let r={type:dy.TOOL_CALL_START,toolCallId:t.toolCallId,toolCallName:t.toolCallName,parentMessageId:t.parentMessageId};s.push(r),e&&console.debug("[TRANSFORM]: TOOL_CALL_START",JSON.stringify(r))}if(void 0!==t.delta){let r={type:dy.TOOL_CALL_ARGS,toolCallId:n.toolCallId,delta:t.delta};s.push(r),e&&console.debug("[TRANSFORM]: TOOL_CALL_ARGS",JSON.stringify(r))}return s;case dy.REASONING_MESSAGE_CHUNK:let l=[];
25if(("reasoning"!==a||t.messageId&&t.messageId!==i?.messageId)&&l.push(...u()),"reasoning"!==a){if(void 0===t.messageId)throw Error("First REASONING_MESSAGE_CHUNK must have a messageId");i={messageId:t.messageId},a="reasoning";let r={type:dy.REASONING_MESSAGE_START,messageId:t.messageId};l.push(r),e&&console.debug("[TRANSFORM]: REASONING_MESSAGE_START",JSON.stringify(r))}if(void 0!==t.delta){let r={type:dy.REASONING_MESSAGE_CONTENT,messageId:i.messageId,delta:t.delta};l.push(r),e&&console.debug("[TRANSFORM]: REASONING_MESSAGE_CONTENT",JSON.stringify(r))}return l}return t.type,[]}),hg(()=>{u()}))};var go=class{runNext(e,t){return t.run(e).pipe(ga(!1))}runNextWithState(e,t){let r=pK(e.messages||[]),n=pK(e.state||{}),i=new hf;return pY(e,i,t,[]).subscribe(e=>{void 0!==e.messages&&(r=e.messages),void 0!==e.state&&(n=e.state)}),this.runNext(e,t).pipe(hy(async e=>(i.next(e),await new Promise(e=>setTimeout(e,0)),{event:e,messages:pK(r),state:pK(n)})))}},gs=class extends go{constructor(e){super(),this.fn=e}run(e,t){return this.fn(e,t)}};function gl(e){let t=e.content;if(Array.isArray(t)){let r=t.filter(e=>"object"==typeof e&&!!e&&"type"in e&&"text"===e.type&&"string"==typeof e.text).map(e=>e.text).join("");return{...e,content:r}}return"string"==typeof t?e:{...e,content:""}}var gu=class extends go{run(e,t){let{parentRunId:r,...n}=e,i={...n,messages:n.messages.map(gl)};return this.runNext(i,t)}};let gc="THINKING_START",gd="THINKING_END",gf="THINKING_TEXT_MESSAGE_START",gh="THINKING_TEXT_MESSAGE_CONTENT",gp="THINKING_TEXT_MESSAGE_END";var gg=class extends go{constructor(...e){super(...e),this.currentReasoningId=null,this.currentMessageId=null}warnAboutTransformation(e,t){pH.env.SUPPRESS_TRANSFORMATION_WARNINGS||console.warn(`AG-UI is converting ${e} to ${t}. To remove this warning, upgrade your AG-UI integration package (e.g. @ag-ui/langgraph). To surpress it, set SUPPRESS_TRANSFORMATION_WARNINGS=true in your .env file.`)}run(e,t){return this.currentReasoningId=null,this.currentMessageId=null,this.runNext(e,t).pipe(hh(e=>this.transformEvent(e)))}transformEvent(e){switch(e.type){case gc:{this.currentReasoningId=r4();let{title:t,...r}=e;return this.warnAboutTransformation(gc,dy.REASONING_START),{...r,type:dy.REASONING_START,messageId:this.currentReasoningId}}case gf:return this.currentMessageId=r4(),this.warnAboutTransformation(gf,dy.REASONING_MESSAGE_START),{...e,type:dy.REASONING_MESSAGE_START,messageId:this.currentMessageId,role:"assistant"};case gh:{let{delta:t,...r}=e;return this.warnAboutTransformation(gh,dy.REASONING_MESSAGE_CONTENT),{...r,type:dy.REASONING_MESSAGE_CONTENT,messageId:this.currentMessageId??r4(),delta:t}}case gp:{let t=this.currentMessageId??r4();return this.warnAboutTransformation(gp,dy.REASONING_MESSAGE_END),{...e,type:dy.REASONING_MESSAGE_END,messageId:t}}case gd:{let t=this.currentReasoningId??r4();return this.warnAboutTransformation(gd,dy.REASONING_END),{...e,type:dy.REASONING_END,messageId:t}}default:return e}}},gm=class{get maxVersion(){return"0.0.45"}constructor({agentId:e,description:t,threadId:r,initialMessages:n,initialState:i,debug:a}={}){this.debug=!1,this.subscribers=[],this.isRunning=!1,this.middlewares=[],this.agentId=e,this.description=t??"",this.threadId=r??r4(),this.messages=pK(n??[]),this.state=pK(i??{}),this.debug=a??!1,0>=pV(this.maxVersion,"0.0.39")&&this.middlewares.unshift(new gu),0>=pV(this.maxVersion,"0.0.45")&&this.middlewares.unshift(new gg)}subscribe(e){return this.subscribers.push(e),{unsubscribe:()=>{this.subscribers=this.subscribers.filter(t=>t!==e)}}}use(...e){let t=e.map(e=>"function"==typeof e?new gs(e):e);return this.middlewares.push(...t),this}async runAgent(e,t){try{let r;this.isRunning=!0,this.agentId=this.agentId??r4();let n=this.prepareRunAgentInput(e),i,a=new Set(this.messages.map(e=>e.id)),o=[{onRunFinishedEvent:e=>{i=e.result}},...this.subscribers,t??{}];await this.onInitialize(n,o),this.activeRunDetach$=new hu,this.activeRunCompletionPromise=new Promise(e=>{r=e}),await hA(fZ(()=>0===this.middlewares.length?this.run(n):this.middlewares.reduceRight((e,t)=>({run:r=>t.run(r,e)}),this).run(n),ga(this.debug),pZ(this.debug),e=>e.pipe(hv(this.activeRunDetach$)),e=>this.apply(n,e,o),e=>this.processApplyEvents(n,e,o),hb(e=>(this.isRunning=!1,this.onError(n,e,o))),hg(()=>{this.isRunning=!1,this.onFinalize(n,o),r?.(),r=void 0,this.activeRunCompletionPromise=void 0,this.activeRunDetach$=void 0}))(ha(null)));let s=pK(this.messages).filter(e=>!a.has(e.id));return{result:i,newMessages:s}}finally{this.isRunning=!1}}connect(e){throw new dm}async connectAgent(e,t){try{let r;this.isRunning=!0,this.agentId=this.agentId??r4();let n=this.prepareRunAgentInput(e),i,a=new Set(this.messages.map(e=>e.id)),o=[{onRunFinishedEvent:e=>{i=e.result}},...this.subscribers,t??{}];await this.onInitialize(n,o),this.activeRunDetach$=new hu,this.activeRunCompletionPromise=new Promise(e=>{r=e}),await hA(fZ(()=>this.connect(n),ga(this.debug),pZ(this.debug),e=>e.pipe(hv(this.activeRunDetach$)),e=>this.apply(n,e,o),e=>this.processApplyEvents(n,e,o),hb(e=>(this.isRunning=!1,e instanceof dm?ho:this.onError(n,e,o))),hg(()=>{this.isRunning=!1,this.onFinalize(n,o),r?.(),r=void 0,this.activeRunCompletionPromise=void 0,this.activeRunDetach$=void 0}))(ha(null)));let s=pK(this.messages).filter(e=>!a.has(e.id));return{result:i,newMessages:s}}finally{this.isRunning=!1}}abortRun(){}async detachActiveRun(){if(!this.activeRunDetach$)return;let e=this.activeRunCompletionPromise??Promise.resolve();this.activeRunDetach$.next(),this.activeRunDetach$?.complete(),await e}apply(e,t,r){return pY(e,t,this,r)}processApplyEvents(e,t,r){var n,i,a,o;return t.pipe((o=fb(n=t=>{t.messages&&(this.messages=t.messages,r.forEach(t=>{t.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this,input:e})})),t.state&&(this.state=t.state,r.forEach(t=>{t.onStateChanged?.({state:this.state,messages:this.messages,agent:this,input:e})}))})?{next:n,error:i,complete:a}:n)?f9(function(e,t){null===(r=o.subscribe)||void 0===r||r.call(o);var r,n=!0;e.subscribe(f7(t,function(e){var r;null===(r=o.next)||void 0===r||r.call(o,e),t.next(e)},function(){var e;n=!1,null===(e=o.complete)||void 0===e||e.call(o),t.complete()},function(e){var r;n=!1,null===(r=o.error)||void 0===r||r.call(o,e),t.error(e)},function(){var e,t;n&&(null===(e=o.unsubscribe)||void 0===e||e.call(o)),null===(t=o.finalize)||void 0===t||t.call(o)}
25))}):fY)}prepareRunAgentInput(e){let t=pK(this.messages).filter(e=>"activity"!==e.role);return{threadId:this.threadId,runId:e?.runId||r4(),tools:pK(e?.tools??[]),context:pK(e?.context??[]),forwardedProps:pK(e?.forwardedProps??{}),state:pK(this.state),messages:t}}async onInitialize(e,t){let r=await pW(t,this.messages,this.state,(t,r,n)=>t.onRunInitialized?.({messages:r,state:n,agent:this,input:e}));(void 0!==r.messages||void 0!==r.state)&&(r.messages&&(this.messages=r.messages,e.messages=r.messages,t.forEach(t=>{t.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this,input:e})})),r.state&&(this.state=r.state,e.state=r.state,t.forEach(t=>{t.onStateChanged?.({state:this.state,messages:this.messages,agent:this,input:e})})))}onError(e,t,r){return hi(pW(r,this.messages,this.state,(r,n,i)=>r.onRunFailed?.({error:t,messages:n,state:i,agent:this,input:e}))).pipe(hh(n=>{if((void 0!==n.messages||void 0!==n.state)&&(void 0!==n.messages&&(this.messages=n.messages,r.forEach(t=>{t.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this,input:e})})),void 0!==n.state&&(this.state=n.state,r.forEach(t=>{t.onStateChanged?.({state:this.state,messages:this.messages,agent:this,input:e})}))),!0!==n.stopPropagation)throw console.error("Agent execution failed:",t),t;return{}}))}async onFinalize(e,t){let r=await pW(t,this.messages,this.state,(t,r,n)=>t.onRunFinalized?.({messages:r,state:n,agent:this,input:e}));(void 0!==r.messages||void 0!==r.state)&&(void 0!==r.messages&&(this.messages=r.messages,t.forEach(t=>{t.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this,input:e})})),void 0!==r.state&&(this.state=r.state,t.forEach(t=>{t.onStateChanged?.({state:this.state,messages:this.messages,agent:this,input:e})})))}clone(){let e=Object.create(Object.getPrototypeOf(this));return e.agentId=this.agentId,e.description=this.description,e.threadId=this.threadId,e.messages=pK(this.messages),e.state=pK(this.state),e.debug=this.debug,e.isRunning=this.isRunning,e.subscribers=[...this.subscribers],e.middlewares=[...this.middlewares],e}addMessage(e){this.messages.push(e),(async()=>{for(let t of this.subscribers)await t.onNewMessage?.({message:e,messages:this.messages,state:this.state,agent:this});if("assistant"===e.role&&e.toolCalls)for(let t of e.toolCalls)for(let e of this.subscribers)await e.onNewToolCall?.({toolCall:t,messages:this.messages,state:this.state,agent:this});for(let e of this.subscribers)await e.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this})})()}addMessages(e){this.messages.push(...e),(async()=>{for(let t of e){for(let e of this.subscribers)await e.onNewMessage?.({message:t,messages:this.messages,state:this.state,agent:this});if("assistant"===t.role&&t.toolCalls)for(let e of t.toolCalls)for(let t of this.subscribers)await t.onNewToolCall?.({toolCall:e,messages:this.messages,state:this.state,agent:this})}for(let e of this.subscribers)await e.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this})})()}setMessages(e){this.messages=pK(e),(async()=>{for(let e of this.subscribers)await e.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this})})()}setState(e){this.state=pK(e),(async()=>{for(let e of this.subscribers)await e.onStateChanged?.({messages:this.messages,state:this.state,agent:this})})()}legacy_to_be_removed_runAgentBridged(e){this.agentId=this.agentId??r4();let t=this.prepareRunAgentInput(e);return(0===this.middlewares.length?this.run(t):this.middlewares.reduceRight((e,t)=>({run:r=>t.run(r,e)}),this).run(t)).pipe(ga(this.debug),pZ(this.debug),gi(this.threadId,t.runId,this.agentId),e=>e.pipe(hh(e=>(this.debug&&console.debug("[LEGACY]:",JSON.stringify(e)),e))))}},gA=class extends gm{requestInit(e){return{method:"POST",headers:{...this.headers,"Content-Type":"application/json",Accept:"text/event-stream"},body:JSON.stringify(e),signal:this.abortController.signal}}runAgent(e,t){return this.abortController=e?.abortController??new AbortController,super.runAgent(e,t)}abortRun(){this.abortController.abort(),super.abortRun()}constructor(e){super(e),this.abortController=new AbortController,this.url=e.url,this.headers=pK(e.headers??{})}run(e){return p0(p$(this.url,this.requestInit(e)))}clone(){let e=super.clone();e.url=this.url,e.headers=pK(this.headers??{});let t=new AbortController,r=this.abortController.signal;return r.aborted&&t.abort(r.reason),e.abortController=t,e}};let gy=(e,t,r)=>{let n=eC(t,r),i=e?.trim();if(!n||!t||!i)throw Error("Missing required parameters for answer endpoint");let a=`/api/preview/organizations/${t}/agents`;return`${n}${a}/${i}`};class gv extends gA{requestInit(e){let{params:t,accessToken:r}=e.forwardedProps||{};return{method:"POST",headers:{...this.headers,Authorization:`Bearer ${r}`,"Content-Type":"application/json",Accept:"text/event-stream"},body:JSON.stringify(t),signal:this.abortController.signal}}}let gb=(e,t,r)=>new gv({url:`${gy(e,t,r)}/answer`});(I=P||(P={}))[I.SseMaxDurationExceeded=1e3]="SseMaxDurationExceeded",I[I.SseFollowUpNotSupported=1001]="SseFollowUpNotSupported",I[I.ConversationNotFound=1002]="ConversationNotFound",I[I.SseModelsNotAvailable=1003]="SseModelsNotAvailable",I[I.SseInternalError=1004]="SseInternalError";let gw={"KNOWLEDGE:SSE_MAX_DURATION_EXCEEDED":P.SseMaxDurationExceeded,"KNOWLEDGE:SSE_FOLLOW_UP_NOT_SUPPORTED":P.SseFollowUpNotSupported,"KNOWLEDGE:NOT_FOUND":P.ConversationNotFound,"KNOWLEDGE:SSE_MODELS_NOT_AVAILABLE":P.SseModelsNotAvailable,"KNOWLEDGE:SSE_INTERNAL_ERROR":P.SseInternalError},gS=e=>({onRunStartedEvent:({event:t})=>{e(cf(t.runId)),e(ck(!1)),e(cO(!0)),e(uR(t.threadId))},onStepStartedEvent:({event:t})=>{e(cP({name:t.stepName,startedAt:t.timestamp??Date.now()}))},onStepFinishedEvent:({event:t})=>{e(cL({name:t.stepName,finishedAt:t.timestamp??Date.now()}))},onTextMessageContentEvent:({event:t})=>{e(cg({textDelta:t.delta}))},onCustomEvent:({event:t})=>{let{name:r,value:n}=t;switch(r){case"header":n?.contentFormat&&e(cT(n.contentFormat)),n?.followUpEnabled&&e(uT(n.followUpEnabled));return;case"citations":e(cm({citations:n.citations}));return}},onRunErrorEvent:({event:t})=>{var r;let n=(r=t.code)?gw[r]??P.SseInternalError:P.SseInternalError;e(cA({message:t.message,code:n}))},onRunFinishedEvent:({event:t})=>{let r=t.result?.answerGenerated??!1;e(cN(r)),e(cM(!r)),e(cO(!1))}}),gI=()=>{let e;let t=()=>{e?.abortRun(),e=void 0};return{run:async(r,n,i)=>{t();let a=ac(r),o=al(r),s=au(r),l=as(r),u=gb(a,o,s);e=u;let c=gS(n),d=cr(r,i());try{n(ck(!0)),await u.runAgent({forwardedProps:{params:d,accessToken:l}},c)}catch(e){n(ck(!1)),n(cA({message:"An error occurred while starting the answer generation."})),console.error("Error running the answer agent:",e)}},abortRun:t}},gE=e=>{let t=rX({extra:e}),r=gI();return t.startListening({actionCreator:s7.pending,effect:async(t,n)=>{let i=n.getState();if(!ah(i))return;r.abortRun(),n.dispatch(cy()),n.dispatch(uV());let a=uc(i)?.q;a&&""!==a.trim()&&r.run(i,n.dispatch,e.getNavigatorContext)}}),t},gC=e=>()=>t=>r=>{if(!r.error)return t(r);let n=r.error;if(r.payload?.ignored||e.error({error:n,action:r},`Action dispatch error ${r.type}`),"SchemaValidationError"!==r.error.name)return t(r)},gx=e=>t=>r=>n=>(e.debug({action:n,nextState:t.getState()},`Action dispatched: ${n.type}`),r(n)),gk=(e,t)=>{let{referrer:r,userAgent:n,location:i,clientId:a}=e.getMeta("");return{...t?t():{},referrer:r,userAgent:n,location:i,clientId:a}};function gO(e){if(!e||!(e&&/^[A-Za-z0-9_-]{2,}(?:\.[A-Za-z0-9_-]{2,}){2}$/.test(e)))return null;try{let t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),r=atob(t),n=decodeURIComponent(r.split("").map(e=>`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`).join(""));return JSON.parse(n)}catch(e){return null}}function gT(e,t){e.dispatch(ld({status:401,statusCode:401,message:t.message,type:t.name}))}let gR=Symbol.for("coveo-headless-internal-state");var g_=r(27953);let gD=(e,t,r,n,i,a)=>{let o=e[t];
25G(o)||G(i)||i===o||i===n||(a.warn(`Mismatch on access token (JWT Token) ${t} and engine configuration.`),a.warn(`To remove this warning, make sure that access token value [${o}] matches engine configuration value [${r}]`))},gN=(e,t)=>!G(e)&&t!==e,gM=e=>{let t=gO(e);return!!t&&t},gF=(e,t)=>(gN(e.searchHub,t.searchHub)&&(t.searchHub=e.searchHub),t),gP=(e,t,r,n)=>(gD(e,"searchHub",t.searchHub,i9(),r,n),gF(e,t)),gL=(e,t)=>(gN(e.pipeline,t.pipeline)&&(t.pipeline=e.pipeline),t),gB=(e,t,r,n)=>(gD(e,"pipeline",t.pipeline,a0(),r,n),gL(e,t)),gj=(e,t)=>(gN(e.userDisplayName,t.configuration.analytics.userDisplayName)&&(t.configuration.analytics.userDisplayName=e.userDisplayName),t),gU=(e,t,r,n)=>(gD(e,"userDisplayName",t.configuration.analytics.userDisplayName,cX().analytics.userDisplayName,r,n),gj(e,t)),gq=e=>t9({},t=>{t.addCase(lA,(t,r)=>{let n=gM(t.configuration.accessToken);return n?gP(n,t,r.payload,e):t}).addCase(oN,(t,r)=>{let n=gM(t.configuration.accessToken);return n?gB(n,t,r.payload,e):t}).addCase(oh,(e,t)=>{if(e.configuration.accessToken!==t.payload.accessToken)return e;let{accessToken:r}=t.payload;if(!r)return e;let n=gM(r);return n?[gL,gF,gj].reduce((e,t)=>t(n,e),e):e}).addCase(op,(t,r)=>{let n=gM(t.configuration.accessToken);if(!n)return t;let i=gP(n,t,r.payload.searchHub,e);return gB(n,i,r.payload?.pipeline,e)}).addCase(om,(t,r)=>{let n=gM(t.configuration.accessToken);return n?gU(n,t,r.payload.userDisplayName,e):t})}),gQ=new U({organizationId:eY,accessToken:eY,name:new Z({required:!1,emptyAllowed:!1}),analytics:new $({options:{required:!1},values:{enabled:new V({required:!1}),originContext:new Z({required:!1}),originLevel2:new Z({required:!1}),originLevel3:new Z({required:!1}),analyticsMode:new Z({constrainTo:["legacy","next"],required:!1,default:"next"}),proxyBaseUrl:new Z({required:!1,url:!0}),trackingId:new Z({required:!1,emptyAllowed:!1,regex:/^[a-zA-Z0-9_\-.]{1,100}$/})}}),environment:new Z({required:!1,default:"prod",constrainTo:["prod","hipaa","stg","dev"]}),search:new $({options:{required:!1},values:{pipeline:new Z({required:!1,emptyAllowed:!0}),searchHub:eZ,locale:eZ,timezone:eZ,authenticationProviders:new X({required:!1,each:eY}),proxyBaseUrl:new Z({required:!1,url:!0})}})}),gG={debug:oO,pipeline:oM,searchHub:ly,search:lm};function gV(e){var t;let r=(t=e.loggerOptions,(0,g_.pino)({name:"@coveo/headless",level:t?.level||"warn",formatters:{log:t?.logFormatter}})),{configuration:n}=e;!function(e,t){try{gQ.validate(e)}catch(e){throw t.error(e,"Search engine configuration error"),e}}(n,r);let i=function(e,t){let{search:r}=e;return new eU({logger:t,preprocessRequest:e.preprocessRequest||ek,postprocessSearchResponseMiddleware:r?.preprocessSearchResponseMiddleware||eH,postprocessFacetSearchResponseMiddleware:r?.preprocessFacetSearchResponseMiddleware||eK,postprocessQuerySuggestResponseMiddleware:r?.preprocessQuerySuggestResponseMiddleware||eW})}(n,r),a=new ev({logger:r}),o={analyticsClientMiddleware:function(e){let{analytics:t}=e;return t?.analyticsClientMiddleware||((e,t)=>t)}(n),validatePayload:e1,preprocessRequest:n.preprocessRequest||ek,logger:r,apiClient:i,streamingClient:a},s=function(e,t){let r={...e.reducers,configuration:c1,version:cW},n=function(e,t,r){let{reducers:n,navigatorContextProvider:i}=e,a=function(e,t){let r;let n={...e},i=e=>(t,n)=>{let i=e(t,n);return r?r(i,n):i};return{get combinedReducer(){return i(tt({...function(e){let t={};for(let[r,n]of e)t[r]=n;return t}(Object.entries(t).filter(([e])=>!(e in n)).map(([e,t])=>[e,()=>t])),...n}))},containsAll:e=>Object.keys(e).every(e=>e in n),add(e){Object.keys(e).filter(e=>!(e in n)).forEach(t=>{n[t]=e[t]})},addCrossReducer(e){r=e}}}({...n,configurationReducer:r},e.preloadedState??{});e.crossReducer&&a.addCrossReducer(e.crossReducer);let o=t.logger,s=function(e,t,r){let{preloadedState:n,configuration:i}=e,a=i.name||"coveo-headless",o=function(e,t,r){let{renewAccessToken:n}=e.configuration,i=function(e,t){let r=0,n=null,i=ea(()=>{r=0},500),a=async(e,r=!1)=>{let i=!n;i&&t&&(n=(async()=>{try{return await t()}catch(e){if(!r)throw e;return null}})().finally(()=>{n=null}));let a=await n;return i&&a&&e.dispatch(oh({accessToken:a})),a},o=async t=>{let r=t.getState().configuration.accessToken;if(r&&function(e,t=60){if(!e)return!1;let r=gO(e);if(!r||"number"!=typeof r.exp)return!1;let n=Math.floor(Date.now()/1e3);return r.exp<=n+t}
25(r)){e.debug("Access token is expired or about to expire, attempting renewal.");try{await a(t)?e.debug("Access token was renewed."):e.warn("Access token renewal returned an empty token. Please check the #renewAccessToken function.")}catch(t){e.warn(t,"Access token renewal failed. A retry will occur if necessary.")}}},s=async(t,n,o)=>{if(r>=5)return e.warn("Attempted to renew the token but was not successful. Please check the #renewAccessToken function."),gT(t,n.error),n;r++,i(),await a(t,!0),t.dispatch(o)};return r=>n=>async i=>{let a="function"==typeof t;if("function"!=typeof i)return n(i);a&&await o(r);let l=await n(i);return"object"==typeof l&&null!==l&&"error"in l&&l.error?.name===new ew().name?a?await s(r,l,i):(e.warn("Unable to renew the expired token because a renew function was not provided. Please specify the #renewAccessToken option when initializing the engine."),gT(r,l.error),l):l}}(t,n),a=gE({getNavigatorContext:r});return[c2,i,gC(t),cY].concat(cH.middleware,uu.middleware,a.middleware,e.middlewares||[])}(e,t.logger,()=>t.navigatorContext);return function({reducer:e,preloadedState:t,middlewares:r=[],thunkExtraArguments:n,name:i}){return function(e){let t,r;let n=t1(),{reducer:i,middleware:a,devTools:o=!0,preloadedState:s,enhancers:l}=e||{};if("function"==typeof i)t=i;else if(te(i))t=tt(i);else throw Error(r0(1));r="function"==typeof a?a(n):n();let u=tr;o&&(u=tZ({trace:!1,..."object"==typeof o&&o}));let c=t5(function(...e){return t=>(r,n)=>{let i=t(r,n),a=()=>{throw Error(e5(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=tr(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}(...r));return function e(t,r,n){if("function"!=typeof t)throw Error(e5(2));if("function"==typeof r&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw Error(e5(0));if("function"==typeof r&&void 0===n&&(n=r,r=void 0),void 0!==n){if("function"!=typeof n)throw Error(e5(1));return n(e)(t,r)}let i=t,a=r,o=new Map,s=o,l=0,u=!1;function c(){s===o&&(s=new Map,o.forEach((e,t)=>{s.set(t,e)}))}function d(){if(u)throw Error(e5(3));return a}function f(e){if("function"!=typeof e)throw Error(e5(4));if(u)throw Error(e5(5));let t=!0;c();let r=l++;return s.set(r,e),function(){if(t){if(u)throw Error(e5(6));t=!1,c(),s.delete(r),o=null}}}function h(e){if(!te(e))throw Error(e5(7));if(void 0===e.type)throw Error(e5(8));if("string"!=typeof e.type)throw Error(e5(17));if(u)throw Error(e5(9));try{u=!0,a=i(a,e)}finally{u=!1}
25return(o=s).forEach(e=>{e()}),e}return h({type:e7.INIT}),{dispatch:h,subscribe:f,getState:d,replaceReducer:function(e){if("function"!=typeof e)throw Error(e5(10));i=e,h({type:e7.REPLACE})},[e6]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(e5(11));function t(){e.next&&e.next(d())}return t(),{unsubscribe:f(t)}},[e6](){return this}}}}}(t,s,u(..."function"==typeof l?l(c):c()))}({reducer:e,preloadedState:t,devTools:{stateSanitizer:e=>e.history?{...e,history:"<<OMIT>>"}:e,name:i,shouldHotReload:!1},middleware:e=>e({thunk:{extraArgument:n}}).prepend(...r).concat(gx(n.logger))})}({preloadedState:n,reducer:r.combinedReducer,middlewares:o,thunkExtraArguments:t,name:a})}(e,{...t,get relay(){return nI(l.state,i)},get navigatorContext(){return gk(this.relay,i)}},a),l={addReducers(e){a.containsAll(e)||(a.add(e),s.replaceReducer(a.combinedReducer))},dispatch:s.dispatch,subscribe:s.subscribe,enableAnalytics(){s.dispatch(oy())},disableAnalytics(){s.dispatch(oA())},get state(){return s.getState()},get relay(){return nI(this.state,i)},get navigatorContext(){return gk(this.relay,i)},logger:o,store:s};return l}({...e,reducers:r},t,c1),{accessToken:i,environment:a,organizationId:o}=e.configuration;n.dispatch(oh({accessToken:i,environment:a,organizationId:o}));let s=function(e,t){let{analytics:r}=e,{analyticsClientMiddleware:n,...i}=r??{},a={...i,...r?.proxyBaseUrl&&{apiBaseUrl:r.proxyBaseUrl,nexApiBaseUrl:r.proxyBaseUrl}};return"next"!==a.analyticsMode&&function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;let e=navigator,t=window;return[e.globalPrivacyControl,e.doNotTrack,e.msDoNotTrack,t.doNotTrack].some(e=>en.has(e))}()?(t.info("Analytics disabled since doNotTrack is active."),{...a,enabled:!1}):a}(e.configuration,n.logger);return s&&n.dispatch(om(s)),n}({...e,reducers:gG,crossReducer:gq(r)},o),l=function(e){let{search:t,organizationId:r,environment:n}=e,i=t?.proxyBaseUrl?t.proxyBaseUrl:ex(r,n);return{...t,apiBaseUrl:i}}(n);return l&&s.dispatch(op(l)),{...s,get state(){return s.state},executeFirstSearch(e=oi()){if(lu(s.state))return;let t=s7({legacy:e,next:ol()});s.dispatch(t)},executeFirstSearchAfterStandaloneSearchBoxRedirect(e){let{cause:t,metadata:r}=e;if(lu(s.state))return;let n=r&&"omniboxFromLink"===t,i=s7({legacy:n?os(r):oo(),next:n?od():oc()});s.dispatch(i)}}}let gH={value:eY,numberOfResults:new K({min:0}),state:eY},gK=new K({min:1,default:8,required:!1}),gW={desiredCount:new K({min:1,max:20,default:5,required:!1}),numberOfValues:gK},gY=t$("automaticFacet/setOptions",e=>e2(e,gW)),gZ=t$("automaticFacet/deselectAll",e=>e2(e,eY)),gz=t$("automaticFacet/toggleSelectValue",e=>e2(e,{field:eY,selection:new $({values:gH})})),g$={state:new q({required:!0}),numberOfResults:new K({required:!0,min:0}),value:new Z({required:!0,emptyAllowed:!0}),path:new X({required:!0,each:eY}),moreValuesAvailable:new V({required:!1})},gJ={facetId:eY,field:eY,tabs:new $({options:{required:!1},values:{included:new X({each:new Z}),excluded:new X({each:new Z})}}),activeTab:new Z({required:!1}),delimitingCharacter:new Z({required:!1,emptyAllowed:!0}),filterFacetCount:new V({required:!1}),injectionDepth:new K({required:!1,min:0}),numberOfValues:new K({required:!1,min:1}),sortCriteria:new q({required:!1}),basePath:new X({required:!1,each:eY}),filterByBasePath:new V({required:!1})},gX=t$("categoryFacet/register",e=>e2(e,gJ)),g0=t$("categoryFacet/toggleSelectValue",e=>{try{return e1(e.facetId,eY),!function e(t){t.children.forEach(t=>{e(t)}),e1({state:t.state,numberOfResults:t.numberOfResults,value:t.value,path:t.path,moreValuesAvailable:t.moreValuesAvailable},g$)}(e.selection),{payload:e,error:null}}catch(t){return{payload:e,error:e0(t)}}}),g1=t$("categoryFacet/deselectAll",e=>e2(e,gJ.facetId)),g2=t$("categoryFacet/updateNumberOfValues",e=>e2(e,{facetId:gJ.facetId,numberOfValues:gJ.numberOfValues})),g3=t$("categoryFacet/updateSortCriterion",e=>e2(e,{facetId:gJ.facetId,criterion:new q})),g4=t$("categoryFacet/updateBasePath",e=>e2(e,{facetId:gJ.facetId,basePath:new X({each:eY})}));new X({required:!0,each:eY});let g8=t$("facetOptions/update",(e={freezeFacetOrder:!0})=>e2(e,{freezeFacetOrder:new V({required:!1})})),g5=t$("facetOptions/facet/enable",e=>e2(e,eY)),g6=t$("facetOptions/facet/disable",e=>e2(e,eY)),g9=(e,t)=>
25"object"==typeof e&&0===Object.keys({...e}).length||!t||!e||!e.excluded?.includes(t)&&(!!(e.included&&(0===e.included.length||e.included.includes(t)))||!!e.excluded&&!e.included),g7={facetId:eY,captions:new $({options:{required:!1}}),numberOfValues:new K({required:!1,min:1}),query:new Z({required:!1,emptyAllowed:!0})},me={path:new X({required:!0,each:eY}),displayValue:ez,rawValue:ez,count:new K({required:!0,min:0})},mt=t$("categoryFacet/selectSearchResult",e=>e2(e,{facetId:eY,value:new $({values:me})})),mr=t$("categoryFacetSearch/register",e=>e2(e,g7));function mn(e,t){let{facetId:r,criterion:n}=t,i=e[r]?.request;i&&(i.sortCriteria=n)}function mi(e){e&&(e.currentValues=e.currentValues.map(e=>({...e,previousState:"idle"!==e.state?e.state:void 0,state:"idle"})),e.preventAutoSelect=!0)}function ma(e,t){e&&(e.numberOfValues=t)}function mo(e,t){let r=e[t];r&&(r.request.numberOfValues=r.initialNumberOfValues,r.request.currentValues=[],r.request.preventAutoSelect=!0)}function ms(e,t,r){e.currentValues=function(e,t){if(!e.length)return[];let r=ml(e[0],t),n=r;for(let r of e.splice(1)){let e=ml(r,t);n.children.push(e),n=e}return n.state="selected",n.retrieveChildren=!0,[r]}(t,r),e.numberOfValues=t.length?1:r,e.preventAutoSelect=!0}function ml(e,t){return{value:e,retrieveCount:t,children:[],state:"idle",retrieveChildren:!1}}t9({},e=>{e.addCase(gX,(e,t)=>{let r=t.payload,{facetId:n,tabs:i}=r;if(n in e)return;let a={...mu,currentValues:[],preventAutoSelect:!1,type:"hierarchical",...r},o=a.numberOfValues;e[n]={request:a,initialNumberOfValues:o,tabs:i}}).addCase(oD.fulfilled,(e,t)=>t.payload?.categoryFacetSet??e).addCase(oI,(e,t)=>{let r=t.payload.cf||{},n=t.payload.tab;Object.keys(e).forEach(t=>{let i=e[t],a=i.request;if((i.tabs?.included?.length||i.tabs?.excluded?.length)&&!g9(i.tabs,n)){a.currentValues.length&&ms(a,[],i.initialNumberOfValues);return}let o=r[t]||[];(o.length||a.currentValues.length)&&ms(a,o,i.initialNumberOfValues)})}).addCase(g3,(e,t)=>{let{facetId:r,criterion:n}=t.payload,i=e[r]?.request;i&&(i.sortCriteria=n)}).addCase(g4,(e,t)=>{let{facetId:r,basePath:n}=t.payload,i=e[r]?.request;i&&(i.basePath=[...n])}).addCase(g0,(e,t)=>{let{facetId:r,selection:n,retrieveCount:i}=t.payload,a=e[r]?.request;if(!a)return;let{path:o}=n,s=function(e,t,r){let n=e.currentValues;for(let e of t){let t=n[0];t&&e===t.value||(t=mc(e,r),n.length=0,n.push(t)),t.retrieveChildren=!1,t.previousState=void 0,t.state="idle",n=t.children}return n}(a,o.slice(0,o.length-1),i);if(s.length){let e=s[0];e.retrieveChildren=!0,e.state="selected",e.previousState="idle",e.children=[];return}let l=mc(n.value,i);l.state="selected",l.previousState="idle",s.push(l),a.numberOfValues=1}).addCase(g1,(e,t)=>{mo(e,t.payload)}).addCase(oF,e=>{Object.keys(e).forEach(t=>mo(e,t))}).addCase(oL,(e,t)=>Object.keys(e).forEach(r=>{e[r].request.preventAutoSelect=!t.payload.allow})).addCase(g2,(e,t)=>{let{facetId:r,numberOfValues:n}=t.payload,i=e[r]?.request;if(i){if(!i.currentValues.length)return ma(i,n);!function(e,t){let{facetId:r,numberOfValues:n}=t,i=e[r]?.request.currentValues[0];if(i){for(;i.children.length&&i?.state!=="selected";)i=i.children[0];i.retrieveCount=n}}(e,t.payload)}}).addCase(mt,(e,t)=>{let{facetId:r,value:n}=t.payload,i=e[r];if(!i)return;let a=[...n.path,n.rawValue];ms(i.request,a,i.initialNumberOfValues)}).addCase(lr.fulfilled,(e,t)=>{md(e,t.payload.response.facets)}).addCase(s7.fulfilled,(e,t)=>{md(e,t.payload.response.facets)}).addCase(g6,(e,t)=>{mo(e,t.payload)}).addCase(cz,(e,t)=>{let r=t.payload;Object.keys(e).forEach(t=>{let n=e[t];(n.tabs?.included?.length||n.tabs?.excluded?.length)&&!g9(n.tabs,r)&&mo(e,t)})})});let mu={delimitingCharacter:";",filterFacetCount:!0,injectionDepth:1e3,numberOfValues:5,sortCriteria:"occurrences",basePath:[],filterByBasePath:!0,resultsMustMatch:"atLeastOneValue"};function mc(e,t){return{value:e,state:"idle",children:[],retrieveChildren:!0,retrieveCount:t}}function md(e,t){t.forEach(t=>{if(!(t.facetId in e))return;let r=t.facetId,n=e[r]?.request;if(!n)return;let i=function(e,t){let r=aA(e.currentValues),n=aA(t.values);return r.length!==n.length}(n,t);n.currentValues=i?[]:n.currentValues,n.preventAutoSelect=!1})}let mf=new Z({regex:/^[a-zA-Z0-9-_]+$/}),mh=new Z({required:!0}),mp=new X({each:new Z}),mg=new Z,mm=new V,mA=new V,my=new K({min:0}),mv=new K({min:1}),mb=new V({required:!0}),mw=new $,mS=new $({values:{captions:mw,numberOfValues:mv,query:new Z}}
25),mI=new $({options:{required:!1},values:{type:new Z({constrainTo:["simple"],emptyAllowed:!1,required:!0}),values:new X({required:!0,max:25,each:new Z({emptyAllowed:!1,required:!0})})}}),mE=new V,mC=new X({min:1,max:25,required:!1,each:new Z({emptyAllowed:!1,required:!0})}),mx={facetId:eY,field:new Z({required:!0,emptyAllowed:!0}),tabs:new $({options:{required:!1},values:{included:new X({each:new Z}),excluded:new X({each:new Z})}}),activeTab:new Z({required:!1}),filterFacetCount:new V({required:!1}),injectionDepth:new K({required:!1,min:0}),numberOfValues:new K({required:!1,min:1}),sortCriteria:new q({required:!1}),resultsMustMatch:new q({required:!1}),allowedValues:mI,customSort:mC},mk=t$("facet/register",e=>e2(e,mx)),mO=t$("facet/toggleSelectValue",e=>e2(e,{facetId:eY,selection:new $({values:gH})})),mT=t$("facet/toggleExcludeValue",e=>e2(e,{facetId:eY,selection:new $({values:gH})})),mR=t$("facet/deselectAll",e=>e2(e,eY)),m_=t$("facet/updateSortCriterion",e=>e2(e,{facetId:eY,criterion:new q({required:!0})})),mD=t$("facet/updateNumberOfValues",e=>e2(e,{facetId:eY,numberOfValues:new K({required:!0,min:1})})),mN=t$("facet/updateIsFieldExpanded",e=>e2(e,{facetId:eY,isFieldExpanded:new V({required:!0})})),mM=t$("facet/updateFreezeCurrentValues",e=>e2(e,{facetId:eY,freezeCurrentValues:new V({required:!0})})),mF=e=>a5("analytics/facet/showMore",(t,r)=>{e2(e,eY);let n=ab(e,aS(r));return t.makeFacetShowMore(n)}),mP=e=>a5("analytics/facet/showLess",(t,r)=>{e2(e,eY);let n=ab(e,aS(r));return t.makeFacetShowLess(n)}),mL=e=>a5("analytics/facet/sortChange",(t,r)=>{e2(e,{facetId:eY,criterion:new q({required:!0})});let{facetId:n,criterion:i}=e,a={...ab(n,aS(r)),criteria:i};return t.makeFacetUpdateSort(a)}),mB=e=>a5("analytics/facet/reset",(t,r)=>{e2(e,eY);let n=ab(e,aS(r));return t.makeFacetClearAll(n)}),mj=e=>a5("analytics/facet/select",(t,r)=>{e2(e,{facetId:eY,facetValue:eY});let n=aw(e,aS(r));return t.makeFacetSelect(n)}),mU=e=>a5("analytics/facet/exclude",(t,r)=>{e2(e,{facetId:eY,facetValue:eY});let n=aw(e,aS(r));return t.makeFacetExclude(n)}),mq=e=>a5("analytics/facet/deselect",(t,r)=>{e2(e,{facetId:eY,facetValue:eY});let n=aw(e,aS(r));return t.makeFacetDeselect(n)}),mQ=e=>a5("analytics/facet/unexclude",(t,r)=>{e2(e,{facetId:eY,facetValue:eY});let n=aw(e,aS(r));return t.makeFacetUnexclude(n)}),mG=()=>({actionCause:M.facetClearAll}),mV=()=>({actionCause:M.facetSelect}),mH=()=>({actionCause:M.facetExclude}),mK=()=>({actionCause:M.facetDeselect}),mW=()=>({actionCause:M.facetUnexclude}),mY={facetId:eY,value:new $({values:{displayValue:ez,rawValue:ez,count:new K({required:!0,min:0})}})},mZ=t$("facetSearch/register",e=>e2(e,g7)),mz=t$("facetSearch/update",e=>e2(e,g7)),m$=t$("facetSearch/toggleSelectValue",e=>e2(e,mY)),mJ=t$("facetSearch/toggleExcludeValue",e=>e2(e,mY)),mX=t9({},e=>{e.addCase(mk,(e,t)=>{let{facetId:r,tabs:n}=t.payload;if(!(r in e)){var i;e[r]=(i=t.payload,{request:{...m2,type:"specific",currentValues:[],freezeCurrentValues:!1,isFieldExpanded:!1,preventAutoSelect:!1,...i},hasBreadcrumbs:!0,tabs:n})}}).addCase(oD.fulfilled,(e,t)=>{if(t.payload&&0!==Object.keys(t.payload.facetSet).length)return t.payload.facetSet}).addCase(oI,(e,t)=>{let r=t.payload.f||{},n=t.payload.fExcluded||{};Object.keys(e).forEach(t=>{let{request:i}=e[t],a=r[t]||[],o=n[t]||[],s=a.length+o.length,l=i.currentValues.filter(e=>!a.includes(e.value)&&!o.includes(e.value));i.currentValues=[...a.map(m4),...o.map(m8),...l.map(m5)],i.preventAutoSelect=s>0,i.numberOfValues=Math.max(s,i.numberOfValues)})}).addCase(mO,(e,t)=>{let{facetId:r,selection:n}=t.payload,i=e[r]?.request;if(!i)return;i.preventAutoSelect=!0;let a=i.currentValues.find(e=>e.value===n.value);if(!a){m0(i,n);return}let o="selected"===a.state;a.previousState=a.state,a.state=o?"idle":"selected",i.freezeCurrentValues=!0}).addCase(mT,(e,t)=>{let{facetId:r,selection:n}=t.payload,i=e[r]?.request;if(!i)return;i.preventAutoSelect=!0;let a=i.currentValues.find(e=>e.value===n.value);if(!a){m0(i,n);return}let o="excluded"===a.state;a.previousState=a.state,a.state=o?"idle":"excluded",i.freezeCurrentValues=!0}).addCase(mM,(e,t)=>{let{facetId:r,freezeCurrentValues:n}=t.payload,i=e[r]?.request;i&&(i.freezeCurrentValues=n)}).addCase(mR,(e,t)=>{mi(e[t.payload]?.request)}).addCase(oF,e=>{Object.values(e).filter(e=>
25e.hasBreadcrumbs).forEach(({request:e})=>mi(e))}).addCase(oP,e=>{Object.values(e).filter(e=>!e.hasBreadcrumbs).forEach(({request:e})=>mi(e))}).addCase(oL,(e,t)=>Object.values(e).forEach(e=>{e.request.preventAutoSelect=!t.payload.allow})).addCase(m_,(e,t)=>{mn(e,t.payload)}).addCase(mD,(e,t)=>{let{facetId:r,numberOfValues:n}=t.payload;ma(e[r]?.request,n)}).addCase(mN,(e,t)=>{let{facetId:r,isFieldExpanded:n}=t.payload,i=e[r]?.request;i&&(i.isFieldExpanded=n)}).addCase(s7.fulfilled,(e,t)=>{t.payload.response.facets.forEach(t=>m1(e[t.facetId]?.request,t))}).addCase(lr.fulfilled,(e,t)=>{t.payload.response.facets.forEach(t=>m1(e[t.facetId]?.request,t))}).addCase(m$,(e,t)=>{let{facetId:r,value:n}=t.payload,i=e[r]?.request;if(!i)return;let{rawValue:a}=n,{currentValues:o}=i,s=o.find(e=>e.value===a);if(s){s.state="selected";return}m0(i,m4(a)),i.freezeCurrentValues=!0,i.preventAutoSelect=!0}).addCase(mJ,(e,t)=>{let{facetId:r,value:n}=t.payload,i=e[r]?.request;if(!i)return;let{rawValue:a}=n,{currentValues:o}=i,s=o.find(e=>e.value===a);if(s){s.state="excluded";return}m0(i,m8(a)),i.freezeCurrentValues=!0,i.preventAutoSelect=!0}).addCase(g6,(e,t)=>{if(!(t.payload in e))return;let{request:r}=e[t.payload];mi(r)}).addCase(cz,(e,t)=>{let r=t.payload;Object.keys(e).forEach(t=>{let n=e[t];(n.tabs?.included?.length||n.tabs?.excluded?.length)&&!g9(n.tabs,r)&&mi(n.request)})})});function m0(e,t){let{currentValues:r}=e,n=r.findIndex(e=>"idle"===e.state),i=-1===n?r.length:n;e.currentValues.splice(i,0,t),n>-1&&e.currentValues.pop(),e.numberOfValues=e.currentValues.length}function m1(e,t){e&&(e.currentValues=t.values.map(m3),e.freezeCurrentValues=!1,e.preventAutoSelect=!1)}let m2={filterFacetCount:!0,injectionDepth:1e3,numberOfValues:8,sortCriteria:"automatic",resultsMustMatch:"atLeastOneValue"};function m3(e){let{value:t,state:r}=e;return{value:t,state:r}}function m4(e){return{value:e,state:"selected"}}function m8(e){return{value:e,state:"excluded"}}function m5(e){return{...e,state:"idle"}}function m6(e){let t=m9(e.start,e);return{start:t,end:m9(e.end,e),endInclusive:e.endInclusive??!1,state:e.state??"idle"}}function m9(e,t){let{dateFormat:r}=t;return e&&"object"==typeof e&&"period"in e?(sl(e),function(e){let{period:t,amount:r,unit:n}=e;switch(t){case"past":case"next":return`${t}-${r}-${n}`;case"now":return t}}(e)):"string"==typeof e&&sf(e)?(sl(e),e):(sn(e,r),sr(st(e,r)))}let m7=t$("rangeFacet/updateSortCriterion",e=>e2(e,{facetId:eY,criterion:new q({required:!0})})),Ae={state:eY,start:new K({required:!0}),end:new K({required:!0}),endInclusive:new V({required:!0}),numberOfResults:new K({required:!0,min:0})},At={start:eY,end:eY,endInclusive:new V({required:!0}),state:eY,numberOfResults:new K({required:!0,min:0})},Ar=e=>({facetId:eY,selection:new $("string"==typeof e.start?{values:At}:{values:Ae})}),An={start:eY,end:eY,endInclusive:new V({required:!0}),state:eY},Ai={facetId:eY,field:eY,tabs:new $({options:{required:!1},values:{included:new X({each:new Z}),excluded:new X({each:new Z})}}),activeTab:new Z({required:!1}),currentValues:new X({required:!1,each:new $({values:An})}),generateAutomaticRanges:new V({required:!0}),filterFacetCount:new V({required:!1}),injectionDepth:new K({required:!1,min:0}),numberOfValues:new K({required:!1,min:1}),sortCriteria:new q({required:!1}),rangeAlgorithm:new q({required:!1})};function Aa(e){e.currentValues&&e.currentValues.forEach(e=>{let{start:t,end:r}=m6(e);if(st(sf(t)?sc(t):t).isAfter(st(sf(r)?sc(r):r)))throw Error(`The start value is greater than the end value for the date range ${e.start} to ${e.end}`)})}let Ao=t$("dateFacet/register",e=>{try{return e1(e,Ai),Aa(e),{payload:e,error:null}}catch(t){return{payload:e,error:e0(t)}}}),As=t$("dateFacet/toggleSelectValue",e=>e2(e,{facetId:eY,selection:new $({values:At})})),Al=t$("dateFacet/toggleExcludeValue",e=>e2(e,{facetId:eY,selection:new $({values:At})})),Au=t$("dateFacet/updateFacetValues",e=>{try{return e1(e,{facetId:eY,values:new X({each:new $({values:At})})}),Aa({currentValues:e.values}),{payload:e,error:null}}catch(t){return{payload:e,error:e0(t)}}}),Ac={filterFacetCount:!0,injectionDepth:1e3,numberOfValues:8,sortCriteria:"ascending",rangeAlgorithm:"even",resultsMustMatch:"atLeastOneValue"};function Ad(e,t){let{request:r}=t,{facetId:n}=r;if(n in e)return;let i=Av(r);r.numberOfValues=i,e[n]=t}function Af(e,t,r){let n=e[t]?.request;n&&(n.currentValues=r,n.numberOfValues=Av(n))}function Ah(e,t,r){let n=e[t]?.request;if(!n)return;let i=Ay(n.currentValues,r);if(!i)return;let a="selected"===i.state;i.previousState=i.state,i.state=a?"idle":"selected",n.preventAutoSelect=!0}function Ap(e,t,r){let n=e[t]?.request;if(!n)return;let i=Ay(n.currentValues,r);if(!i)return;let a="excluded"===i.state;i.previousState=i.state,i.state=a?"idle":"excluded",n.preventAutoSelect=!0}function Ag(e,t){let r=e[t]?.request;
25r&&r.currentValues.forEach(e=>{"idle"!==e.state&&(e.previousState=e.state),e.state="idle"})}function Am(e,t){Object.entries(e).forEach(([e,{request:r}])=>{let n=t[e]||[];r.currentValues.forEach(e=>(Ay(n,e)&&(e.state="selected"),e));let i=n.filter(e=>!Ay(r.currentValues,e)),a=r.currentValues;a.push(...i),r.numberOfValues=Math.max(r.numberOfValues,a.length)})}function AA(e,t,r){t.forEach(t=>{let n=t.facetId,i=e[n]?.request;if(!i)return;let a=r(t.values);i.currentValues=a,i.preventAutoSelect=!1})}function Ay(e,t){let{start:r,end:n}=t;return e.find(e=>e.start===r&&e.end===n)}function Av(e){let{generateAutomaticRanges:t,currentValues:r,numberOfValues:n}=e;return t?Math.max(n,r.length):r.length}function Ab(e){return e.map(e=>{let{numberOfResults:t,...r}=e;return r})}t9({},e=>{e.addCase(Ao,(e,t)=>{let{payload:r}=t,{tabs:n}=r;Ad(e,{request:{...Ac,currentValues:[],preventAutoSelect:!1,type:"dateRange",...r},tabs:n})}).addCase(oD.fulfilled,(e,t)=>t.payload?.dateFacetSet??e).addCase(oI,(e,t)=>{Am(e,t.payload.df||{})}).addCase(As,(e,t)=>{let{facetId:r,selection:n}=t.payload;Ah(e,r,n)}).addCase(Al,(e,t)=>{let{facetId:r,selection:n}=t.payload;Ap(e,r,n)}).addCase(Au,(e,t)=>{let{facetId:r,values:n}=t.payload;Af(e,r,n)}).addCase(mR,(e,t)=>{Ag(e,t.payload)}).addCase(oF,e=>{Object.keys(e).forEach(t=>{Ag(e,t)})}).addCase(m7,(e,t)=>{mn(e,t.payload)}).addCase(s7.fulfilled,(e,t)=>{AA(e,t.payload.response.facets,Ab)}).addCase(g6,(e,t)=>{Ag(e,t.payload)}).addCase(cz,(e,t)=>{let r=t.payload;Object.keys(e).forEach(t=>{let n=e[t];(n.tabs?.included?.length||n.tabs?.excluded?.length)&&!g9(n.tabs,r)&&Ag(e,t)})})});let Aw={state:eY,start:new K({required:!0}),end:new K({required:!0}),endInclusive:new V({required:!0})},AS={facetId:eY,field:eY,tabs:new $({options:{required:!1},values:{included:new X({each:new Z}),excluded:new X({each:new Z})}}),activeTab:new Z({required:!1}),currentValues:new X({required:!1,each:new $({values:Aw})}),generateAutomaticRanges:new V({required:!0}),filterFacetCount:new V({required:!1}),injectionDepth:new K({required:!1,min:0}),numberOfValues:new K({required:!1,min:1}),sortCriteria:new q({required:!1}),rangeAlgorithm:new q({required:!1})};function AI(e){e.currentValues&&e.currentValues.forEach(({start:e,end:t})=>{if(e>t)throw Error(`The start value is greater than the end value for the numeric range ${e} to ${t}`)})}let AE=t$("numericFacet/register",e=>{try{return e2(e,AS),AI(e),{payload:e,error:null}}catch(t){return{payload:e,error:e0(t)}}}),AC=t$("numericFacet/toggleSelectValue",e=>e2(e,{facetId:eY,selection:new $({values:Ae})})),Ax=t$("numericFacet/toggleExcludeValue",e=>e2(e,{facetId:eY,selection:new $({values:Ae})})),Ak=t$("numericFacet/updateFacetValues",e=>{try{return e1(e,{facetId:eY,values:new X({each:new $({values:Ae})})}),AI({currentValues:e.values}),{payload:e,error:null}}catch(t){return{payload:e,error:e0(t)}}});function AO(e){return e.map(e=>{let{numberOfResults:t,...r}=e;return r})}t9({},e=>{e.addCase(AE,(e,t)=>{let{payload:r}=t,{tabs:n}=r;Ad(e,{request:{...Ac,currentValues:[],preventAutoSelect:!1,type:"numericalRange",...r},tabs:n})}).addCase(oD.fulfilled,(e,t)=>t.payload?.numericFacetSet??e).addCase(oI,(e,t)=>{Am(e,t.payload.nf||{})}).addCase(AC,(e,t)=>{let{facetId:r,selection:n}=t.payload;Ah(e,r,n)}).addCase(Ax,(e,t)=>{let{facetId:r,selection:n}=t.payload;Ap(e,r,n)}).addCase(Ak,(e,t)=>{let{facetId:r,values:n}=t.payload;Af(e,r,n)}).addCase(mR,(e,t)=>{Ag(e,t.payload)}).addCase(oF,e=>{Object.keys(e).forEach(t=>{Ag(e,t)})}).addCase(m7,(e,t)=>{mn(e,t.payload)}).addCase(s7.fulfilled,(e,t)=>{AA(e,t.payload.response.facets,AO)}).addCase(g6,(e,t)=>{Ag(e,t.payload)}).addCase(cz,(e,t)=>{let r=t.payload;Object.keys(e).forEach(t=>{let n=e[t];(n.tabs?.included?.length||n.tabs?.excluded?.length)&&!g9(n.tabs,r)&&Ag(e,t)})})});let AT=new $({options:{required:!0},values:{caption:ez,expression:ez,state:new Z({constrainTo:["idle","selected","excluded"]})}}),AR=new X({required:!0,each:AT}),A_=t$("staticFilter/register",e=>e2(e,{id:eY,values:AR})),AD=t$("staticFilter/toggleSelect",e=>e2(e,{id:eY,value:AT})),AN=t$("staticFilter/toggleExclude",e=>e2(e,{id:eY,value:AT})),AM=t$("staticFilter/deselectAllFilterValues",e=>e2(e,eY)),AF=new X({each:eY,required:!0}),AP=(e,t)=>(e2(e,eY),z(t)?e2(t,eY):e2(t,AF),{payload:{contextKey:e,contextValue:t}}),AL=t$("context/set",e=>{for(let[t,r]of Object.entries(e))AP(t,r);return{payload:e}}),AB=t$("context/add",e=>AP(e.contextKey,e.contextValue)),Aj=t$("context/remove",e=>e2(e,eY));t9(sO(),e=>{e.addCase(AL,(e,t)=>{e.contextValues=t.payload}).addCase(AB,(e,t)=>{e.contextValues[t.payload.contextKey]=t.payload.contextValue}).addCase(Aj,(e,t)=>{delete e.contextValues[t.payload]}).addCase(oD.fulfilled,(e,t)=>{t.payload&&(e.contextValues=t.payload.context.contextValues)})}
25),new U({values:new $({options:{required:!1}})});let AU=t9(s_(),e=>{e.addCase(g8,(e,t)=>({...e,...t.payload})).addCase(s7.fulfilled,e=>{e.freezeFacetOrder=!1}).addCase(s7.rejected,e=>{e.freezeFacetOrder=!1}).addCase(oD.fulfilled,(e,t)=>t.payload?.facetOptions??e).addCase(gX,(e,t)=>{let{facetId:r,tabs:n}=t.payload;Aq(n,e,r)}).addCase(mk,(e,t)=>{let{facetId:r,tabs:n}=t.payload;Aq(n,e,r)}).addCase(Ao,(e,t)=>{let{facetId:r,tabs:n}=t.payload;Aq(n,e,r)}).addCase(AE,(e,t)=>{let{facetId:r,tabs:n}=t.payload;Aq(n,e,r)}).addCase(g5,(e,t)=>{e.facets[t.payload].enabled=!0}).addCase(g6,(e,t)=>{e.facets[t.payload].enabled=!1}).addCase(oI,(e,t)=>{[...Object.keys(t.payload.f??{}),...Object.keys(t.payload.fExcluded??{}),...Object.keys(t.payload.cf??{}),...Object.keys(t.payload.nf??{}),...Object.keys(t.payload.df??{})].forEach(t=>{t in e||(e.facets[t]=sR()),e.facets[t].enabled=!0})})});function Aq(e,t,r){let n={...sR(),tabs:e??{}};t.facets[r]=n}function AQ(e,t){t in e&&Object.keys(e).forEach(r=>{e[r].isActive=r===t})}t9({},e=>{e.addCase(cZ,(e,t)=>{let r=t.payload,{id:n}=r;n in e||(e[n]={...r,isActive:!1})}).addCase(cz,(e,t)=>{AQ(e,t.payload)}).addCase(oE,(e,t)=>{AQ(e,t.payload)}).addCase(oD.fulfilled,(e,t)=>t.payload?.tabSet??e).addCase(oI,(e,t)=>{let r=t.payload.tab;G(r)||Object.keys(e).forEach(t=>{e[t].isActive=t===r})})});let AG=t$("dictionaryFieldContext/set",e=>{let t=e2(e,new $({options:{required:!0}})).error;if(t)return{payload:e,error:t};let r=e2(Object.values(e),new X({each:ez})).error;return r?{payload:e,error:r}:{payload:e}}),AV=t$("dictionaryFieldContext/add",e=>e2(e,new $({options:{required:!0},values:{field:ez,key:ez}}))),AH=t$("dictionaryFieldContext/remove",e=>e2(e,ez));t9(sT(),e=>{e.addCase(AG,(e,t)=>{e.contextValues=t.payload}).addCase(AV,(e,t)=>{let{field:r,key:n}=t.payload;e.contextValues[r]=n}).addCase(AH,(e,t)=>{delete e.contextValues[t.payload]}).addCase(oD.fulfilled,(e,t)=>{t.payload&&(e.contextValues=t.payload.dictionaryFieldContext.contextValues)})});let AK=e=>""!==e.queryCorrection.correctedQuery||""!==e.wasCorrectedTo,AW=()=>({correctedQuery:"",wordCorrections:[],originalQuery:""}),AY=()=>({correctedQuery:"",corrections:[],originalQuery:""}),AZ=(e,t)=>{let r={...AY(),...t,correctedQuery:t?.correctedQuery||t?.corrections[0]?.correctedQuery||""};e.queryCorrection=r,e.wasCorrectedTo=r.correctedQuery},Az=t9({enableDidYouMean:!1,wasCorrectedTo:"",wasAutomaticallyCorrected:!1,queryCorrection:AW(),originalQuery:"",automaticallyCorrectQuery:!0,queryCorrectionMode:"legacy"},e=>{e.addCase(sy,e=>{e.enableDidYouMean=!0}).addCase(sv,e=>{e.enableDidYouMean=!1}).addCase(sw,e=>{e.automaticallyCorrectQuery=!0}).addCase(sb,e=>{e.automaticallyCorrectQuery=!1}).addCase(s7.pending,e=>{e.queryCorrection=AW(),e.wasAutomaticallyCorrected=!1,e.wasCorrectedTo=""}).addCase(s7.fulfilled,(e,t)=>{let{queryCorrection:r,queryCorrections:n}=t.payload.response;if("legacy"===e.queryCorrectionMode){let t=n?.[0]?n[0]:AW();e.queryCorrection=t}"next"===e.queryCorrectionMode&&AZ(e,r),e.wasAutomaticallyCorrected=t.payload.automaticallyCorrected,e.originalQuery=t.payload.originalQuery}).addCase(sS,(e,t)=>{e.wasCorrectedTo=t.payload}).addCase(sI,(e,t)=>{e.queryCorrectionMode=t.payload})});function A$(e){let t;let r=new Map,n=()=>0===r.size,i=e=>{try{let r=JSON.stringify(e),n=t!==r;return t=r,n}catch(e){return console.warn('Could not detect if state has changed, check the controller "get state method"',e),!0}};return{subscribe(a){let o;a();let s=Symbol();return n()&&(t=JSON.stringify(this.state),o=e.subscribe(()=>{i(this.state)&&r.forEach(e=>e())})),r.set(s,a),()=>{r.delete(s),n()&&o?.()}},get state(){return{}}}}function AJ(e,t={}){let r=function(e,t={}){e.addReducers({configuration:c1,didYouMean:Az});let r=A$(e),{dispatch:n}=e;n(sy()),t.options?.automaticallyCorrectQuery===!1&&n(sb()),n(sI(t.options?.queryCorrectionMode||"next"));let i=()=>e.state,a=()=>AK(i().didYouMean);return{...r,get state(){let e=i();return{originalQuery:e.didYouMean.originalQuery,wasCorrectedTo:e.didYouMean.wasCorrectedTo,wasAutomaticallyCorrected:e.didYouMean.wasAutomaticallyCorrected,queryCorrection:e.didYouMean.queryCorrection,hasQueryCorrection:a()}},applyCorrection(){n(sS(this.state.queryCorrection.correctedQuery))},updateQueryCorrectionMode(e){n(sI(e))}}}(e,t),{dispatch:n}=e;return{...r,get state(){return r.state},applyCorrection(){r.applyCorrection(),n(s7({legacy:sE(),next:sx()}))}}}function AX(e){return{value:e,state:"selected",numberOfResults:0}}t9(am(),e=>{e.addCase(s7.fulfilled,(e,t)=>{e.set={};let r=t.payload.response.generateAutomaticFacets?.facets;r?.forEach(t=>{e.set[t.field]={response:t}})}).addCase(gY,(e,t)=>{t.payload.desiredCount&&(e.desiredCount=t.payload.desiredCount),t.payload.numberOfValues&&(e.numberOfValues=t.payload.numberOfValues)}).addCase(gz,(e,t)=>{let{field:r,selection:n}=t.payload,i=e.set[r]?.response;if(!i)return;let a=i.values.find(e=>e.value===n.value);if(!a)return;let o="selected"===a.state;a.state=o?"idle":"selected"}).addCase(gZ,(e,t)=>{let r=t.payload,n=e.set[r]?.response;if(n)for(let e of n.values)e.state="idle"}).addCase(oI,(e,t)=>{let r=t.payload.af??{},n=Object.keys(e.set);for(let t in r)if(!e.set[t]){let n={field:t,values:[],moreValuesAvailable:!1,label:"",indexScore:0},i=r[t].map(e=>AX(e));n.values.push(...i),e.set[t]={response:n}}for(let t of n)if(!(t in r))for(let r of(e.set[t]?.response).values)r.state="idle";for(let t in r){let n=e.set[t]?.response;if(n){let e=n.values,i=new Set(r[t]);for(let t of e)i.has(t.value)?(t.state="selected",i.delete(t.value)):t.state="idle";for(let e of i)n.values.push(AX(e))}}}).addCase(oD.fulfilled,(e,t)=>{if(t.payload&&0!==Object.keys(t.payload.automaticFacetSet.set).length)return t.payload.automaticFacetSet}).addCase(oF,e=>{Object.values(e.set).forEach(({response:e})=>
25{e.values.forEach(e=>{e.state="idle"})})})});let A0=e=>"selected"===e.state,A1=e=>"excluded"===e.state,A2=(e,t)=>{let r={facetId:e,facetValue:t.value};return A0(t)?mq(r):mj(r)},A3=e=>A0(e)?mK():mV(),A4=(e,t)=>{let r={facetId:e,facetValue:t.value};return A1(t)?mQ(r):mU(r)},A8=e=>A1(e)?mW():mH();function A5(e,t,r){let{facetId:n}=t;if(e[n])return;let i={...yn,...t},a=r();e[n]={options:i,isLoading:!1,response:a,initialNumberOfValues:i.numberOfValues,requestId:""}}function A6(e,t){let{facetId:r,...n}=t,i=e[r];i&&(i.options={...i.options,...n})}function A9(e,t,r){let n=e[t];n&&(n.requestId=r,n.isLoading=!0)}function A7(e,t){let r=e[t];r&&(r.isLoading=!1)}function ye(e,t,r){let{facetId:n,response:i}=t,a=e[n];a&&a.requestId===r&&(a.isLoading=!1,a.response=i)}function yt(e,t,r){let{facetId:n}=t,i=e[n];i&&(i.requestId="",i.isLoading=!1,i.response=r(),i.options.numberOfValues=i.initialNumberOfValues,i.options.query=yn.query)}function yr(e,t){Object.keys(e).forEach(r=>yt(e,{facetId:r},t))}let yn={captions:{},numberOfValues:10,query:""},yi=async(e,t,r,n)=>{let i=t.categoryFacetSearchSet[e].options,a=t.categoryFacetSet[e].request,{captions:o,query:s,numberOfValues:l}=i,{field:u,delimitingCharacter:c,basePath:d,filterFacetCount:f}=a,h=ya(a),p=h.length?[h]:[],g=`*${s}*`;return{url:t.configuration.search.apiBaseUrl??ex(t.configuration.organizationId,t.configuration.environment),accessToken:t.configuration.accessToken,organizationId:t.configuration.organizationId,...t.configuration.search.authenticationProviders.length&&{authentication:t.configuration.search.authenticationProviders.join(",")},basePath:d,captions:o,numberOfValues:l,query:g,field:u,delimitingCharacter:c,ignorePaths:p,filterFacetCount:f,type:"hierarchical",...n?{}:{searchContext:(await s1(t,r)).request}}},ya=e=>{let t=[],r=e.currentValues[0];for(;r;)t.push(r.value),r=r.children[0];return t},yo=async(e,t,r,n)=>{let{captions:i,query:a,numberOfValues:o}=t.facetSearchSet[e].options,{field:s,currentValues:l,filterFacetCount:u}=t.facetSet[e].request,c=l.filter(e=>"idle"!==e.state).map(e=>e.value),d=`*${a}*`;return{url:t.configuration.search.apiBaseUrl??ex(t.configuration.organizationId,t.configuration.environment),accessToken:t.configuration.accessToken,organizationId:t.configuration.organizationId,...t.configuration.search.authenticationProviders&&{authentication:t.configuration.search.authenticationProviders.join(",")},captions:i,numberOfValues:o,query:d,field:s,ignoreValues:c,filterFacetCount:u,type:"specific",...n?{}:{searchContext:(await s1(t,r)).request}}},ys=e=>async(t,{getState:r,extra:{apiClient:n,validatePayload:i,navigatorContext:a}})=>{let o;let s=r();return i(t,eY),o=yd(s,t)?await yo(t,s,a,e):await yi(t,s,a,e),{facetId:t,response:await n.facetSearch(o)}},yl=rp("facetSearch/executeSearch",ys(!1)),yu=rp("facetSearch/executeSearch",ys(!0)),yc=t$("facetSearch/clearResults",e=>e2(e,{facetId:eY})),yd=(e,t)=>void 0!==e.facetSearchSet&&void 0!==e.facetSet&&void 0!==e.facetSet[t];function yf(){return{moreValuesAvailable:!1,values:[]}}t9({},e=>{e.addCase(mr,(e,t)=>{A5(e,t.payload,yf)}).addCase(mz,(e,t)=>{A6(e,t.payload)}).addCase(yl.pending,(e,t)=>{A9(e,t.meta.arg,t.meta.requestId)}).addCase(yl.rejected,(e,t)=>{A7(e,t.meta.arg)}).addCase(yl.fulfilled,(e,t)=>{ye(e,t.payload,t.meta.requestId)}).addCase(yc,(e,{payload:{facetId:t}})=>{yt(e,{facetId:t},yf)}).addCase(s7.fulfilled,e=>{yr(e,yf)})}),new U({field:mh,tabs:new $({options:{required:!1},values:{included:new X({each:new Z}),excluded:new X({each:new Z})}}),basePath:mp,delimitingCharacter:mg,facetId:mf,facetSearch:mS,filterByBasePath:mm,filterFacetCount:mA,injectionDepth:my,numberOfValues:mv,sortCriteria:new Z({constrainTo:["alphanumeric","occurrences"]})});
25let yh=t9({},e=>{e.addCase(mZ,(e,t)=>{A5(e,t.payload,yp)}).addCase(mz,(e,t)=>{A6(e,t.payload)}).addCase(yl.pending,(e,t)=>{A9(e,t.meta.arg,t.meta.requestId)}).addCase(yl.rejected,(e,t)=>{A7(e,t.meta.arg)}).addCase(yl.fulfilled,(e,t)=>{ye(e,t.payload,t.meta.requestId)}).addCase(yc,(e,{payload:t})=>{yt(e,t,yp)}).addCase(s7.fulfilled,e=>{yr(e,yp)})});function yp(){return{moreValuesAvailable:!1,values:[]}}let yg={facetId:eY,selection:new $({values:gH})},ym=rp("facet/executeToggleSelect",({facetId:e,selection:t},r)=>{let{dispatch:n,extra:{validatePayload:i}}=r;i({facetId:e,selection:t},yg),n(mO({facetId:e,selection:t})),n(g8())}),yA=rp("facet/executeToggleExclude",({facetId:e,selection:t},r)=>{let{dispatch:n,extra:{validatePayload:i}}=r;i({facetId:e,selection:t},yg),n(mT({facetId:e,selection:t})),n(g8())}),yy=(e,t)=>e.search?.response.facets.find(e=>e.facetId===t),yv=(e,t)=>e.facetSet[t]?.request,yb=(e,t)=>{let r=yy(e,t);return r&&r.facetId in e.facetSet?r:void 0},yw=e=>e.search.isLoading;function yS(e){let{facetSet:t,numericFacetSet:r,dateFacetSet:n,categoryFacetSet:i}=e;return[t,r,n,i]}let yI=["allValues","atLeastOneValue"],yE=["score","alphanumeric","alphanumericDescending","occurrences","automatic","alphanumericNatural","alphanumericNaturalDescending"],yC=new U({facetId:mf,tabs:new $({options:{required:!1},values:{included:new X({each:new Z}),excluded:new X({each:new Z})}}),field:mh,filterFacetCount:mA,injectionDepth:my,numberOfValues:mv,sortCriteria:new Z({constrainTo:yE}),resultsMustMatch:new Z({constrainTo:yI}),facetSearch:mS}),yx=new U({facetId:mf,field:mh,tabs:new $({options:{required:!1},values:{included:new X({each:new Z}),excluded:new X({each:new Z})}}),filterFacetCount:mA,injectionDepth:my,numberOfValues:mv,sortCriteria:new Z({constrainTo:yE}),resultsMustMatch:new Z({constrainTo:yI}),facetSearch:mS,allowedValues:mI,hasBreadcrumbs:mE,customSort:mC});function yk(e,t){e.addReducers({facetSet:mX,configuration:c1,facetSearchSet:yh,search:lm});let{dispatch:r}=e,n=function(e,t,r=yC){e.addReducers({facetSet:mX,facetOptions:AU,configuration:c1,facetSearchSet:yh});let{dispatch:n}=e,i=A$(e),a=function(e,t){let{state:r,logger:n}=e,{field:i,facetId:a}=t;return a||function(e,t){let{field:r,state:n}=e;if(!function(e){let{field:t,state:r}=e;return yS(r).some(e=>e&&t in e)}(e))return r;let i=`${r}_`,a=(yS(n).map(e=>Object.keys(e||{})).reduce((e,t)=>e.concat(t),[]).map(e=>{let t=parseInt(e.split(i)[1],10);return Number.isNaN(t)?0:t}).sort().pop()??0)+1;return function(e,t){let r=`A facet with field "${e}" already exists. 26 To avoid unexpected behaviour, configure the #id option on the facet controller.`;t.warn(r)}(r,t),`${i}${a}`}({field:i,state:r},n)}(e,t.options),o=t.options.tabs??{},s=u3(e.state.tabSet),l={...m2,...function(e,t){let{[e]:r,...n}=t;return n}("facetSearch",t.options),field:t.options.field,facetId:a,tabs:o,activeTab:s},u={facetSearch:{...yn,...t.options.facetSearch},...l};e4(e,r,u,"buildFacet");let c=()=>yv(e.state,a),d=()=>yb(e.state,a),f=()=>yw(e.state),h=()=>u5(e.state,a),p=()=>{let{currentValues:e}=c();return e.filter(e=>"idle"!==e.state).length},g=()=>{let{currentValues:e}=c(),t=u.numberOfValues,r=!!e.find(e=>"idle"===e.state);return t<e.length&&r};return n(mk(l)),{...i,toggleSelect:e=>n(ym({facetId:u.facetId,selection:e})),toggleExclude:e=>n(yA({facetId:u.facetId,selection:e})),toggleSingleSelect:function(e){"idle"===e.state&&n(mR(a)),this.toggleSelect(e)},toggleSingleExclude:function(e){"idle"===e.state&&n(mR(a)),this.toggleExclude(e)},isValueSelected:A0,isValueExcluded:A1,deselectAll(){n(mR(a)),n(g8())},sortBy(e){n(m_({facetId:a,criterion:e})),n(g8())},isSortedBy(e){return this.state.sortCriterion===e},showMoreValues(){let e=c().numberOfValues,t=u.numberOfValues;n(mD({facetId:a,numberOfValues:e+(t-e%t)})),n(mN({facetId:a,isFieldExpanded:!0})),n(g8())},showLessValues(){n(mD({facetId:a,numberOfValues:Math.max(u.numberOfValues,p())})),n(mN({facetId:a,isFieldExpanded:!1})),n(g8())},enable(){n(g5(a))},disable(){n(g6(a))},get state(){let e;let t=c(),r=d(),n=f(),i=h();e="object"==typeof t.sortCriteria?"descending"===t.sortCriteria.order?"alphanumericDescending":"alphanumeric":t.sortCriteria;let s=r?r.values:[],l=s.some(e=>"idle"!==e.state),u=!!r&&r.moreValuesAvailable,p=t.resultsMustMatch;return{label:r?.label,facetId:a,tabs:o,values:s,sortCriterion:e,resultsMustMatch:p,isLoading:n,hasActiveValues:l,canShowMoreValues:u,canShowLessValues:g(),enabled:i}}}}(e,{...t,options:{...t.options,...t.options.allowedValues&&{allowedValues:{type:"simple",values:t.options.allowedValues}}}},yx),i=()=>n.state.facetId,a=(()=>{let{facetSearch:n}=t.options;return function(e,t){let{dispatch:r}=e,{options:n,select:i,exclude:a,isForFieldSuggestions:o,executeFacetSearchActionCreator:s,executeFieldSuggestActionCreator:l}=t,{facetId:u}=n;r(mZ(n));let c=function(e,t){let r=e.dispatch,{options:n,getFacetSearch:i,executeFacetSearchActionCreator:a,executeFieldSuggestActionCreator:o}=t,{facetId:s}=n;return{updateText(e){r(mz({facetId:s,query:e,numberOfValues:i().initialNumberOfValues}))},showMoreResults(){let{initialNumberOfValues:e,options:n}=i();r(mz({facetId:s,numberOfValues:n.numberOfValues+e}
26)),r(t.isForFieldSuggestions?o(s):a(s))},search(){r(t.isForFieldSuggestions?o(s):a(s))},clear(){r(yc({facetId:s}))},updateCaptions(e){r(mz({facetId:s,captions:e}))},get state(){let{response:e,isLoading:t,options:r}=i(),{query:n}=r,a=e.values;return{...e,values:a,isLoading:t,query:n}}}}(e,{options:n,getFacetSearch:()=>"state"in e?e.state.facetSearchSet[u]:e[gR].facetSearchSet[u],isForFieldSuggestions:o,executeFacetSearchActionCreator:s,executeFieldSuggestActionCreator:l});return{...c,select(e){r(m$({facetId:u,value:e})),i(e)},exclude(e){r(mJ({facetId:u,value:e})),a(e)},singleSelect(e){r(mR(u)),r(m$({facetId:u,value:e})),i(e)},singleExclude(e){r(mR(u)),r(mJ({facetId:u,value:e})),a(e)},get state(){let{values:e}=c.state;return{...c.state,values:e.map(({count:e,displayValue:t,rawValue:r})=>({count:e,displayValue:t,rawValue:r}))}}}}(e,{options:{facetId:i(),...n},select:e=>{r(g8()),r(s7({legacy:mj({facetId:i(),facetValue:e.rawValue}),next:mV()}))},exclude:e=>{r(g8()),r(s7({legacy:mU({facetId:i(),facetValue:e.rawValue}),next:mH()}))},isForFieldSuggestions:!1,executeFacetSearchActionCreator:yl,executeFieldSuggestActionCreator:yu})})(),{state:o,...s}=a;return{...n,facetSearch:s,toggleSelect(e){n.toggleSelect(e),r(s7({legacy:A2(i(),e),next:A3(e)}))},toggleExclude(e){n.toggleExclude(e),r(s7({legacy:A4(i(),e),next:A8(e)}))},deselectAll(){n.deselectAll(),r(s7({legacy:mB(i()),next:mG()}))},sortBy(e){n.sortBy(e),r(s7({legacy:mL({facetId:i(),criterion:e})}))},isSortedBy(e){return this.state.sortCriterion===e},showMoreValues(){n.showMoreValues(),r(lr({legacy:mF(i())}))},showLessValues(){n.showLessValues(),r(lr({legacy:mP(i())}))},get state(){return{...n.state,facetSearch:a.state}}}}let yO=t$("rangeFacet/executeToggleSelect",e=>e2(e,Ar(e.selection))),yT=t$("rangeFacet/executeToggleExclude",e=>e2(e,Ar(e.selection))),yR={facetId:eY,selection:new $({values:At})};rp("dateFacet/executeToggleSelect",(e,{dispatch:t,extra:{validatePayload:r}})=>{r(e,yR),t(As(e)),t(yO(e)),t(g8())}),rp("dateFacet/executeToggleExclude",(e,{dispatch:t,extra:{validatePayload:r}})=>{r(e,yR),t(Al(e)),t(yT(e)),t(g8())});let y_=["idle","selected","excluded"],yD=["ascending","descending"],yN=["even","equiprobable"],yM={start:new Z,end:new Z,endInclusive:new V,state:new Z({constrainTo:y_})};new U({facetId:mf,field:mh,tabs:new $({options:{required:!1},values:{included:new X({each:new Z}),excluded:new X({each:new Z})}}),generateAutomaticRanges:mb,filterFacetCount:mA,injectionDepth:my,numberOfValues:mv,currentValues:new X({each:new $({values:yM})}),sortCriteria:new Z({constrainTo:yD}),rangeAlgorithm:new Z({constrainTo:yN})});let yF={facetId:eY,selection:new $({values:Ae})};rp("numericFacet/executeToggleSelect",(e,{dispatch:t,extra:{validatePayload:r}})=>{r(e,yF),t(AC(e)),t(yO(e)),t(g8())}),rp("numericFacet/executeToggleExclude",(e,{dispatch:t,extra:{validatePayload:r}})=>{r(e,yF),t(Ax(e)),t(yT(e)),t(g8())});let yP={start:new K,end:new K,endInclusive:new V,state:new Z({constrainTo:y_})};new U({facetId:mf,tabs:new $({options:{required:!1},values:{included:new X({each:new Z}),excluded:new X({each:new Z})}}),field:mh,generateAutomaticRanges:mb,filterFacetCount:mA,injectionDepth:my,numberOfValues:mv,currentValues:new X({each:new $({values:yP})}),sortCriteria:new Z({constrainTo:yD}),resultsMustMatch:new Z({constrainTo:yI}),rangeAlgorithm:new Z({constrainTo:yN})});let yL={collectionField:new Z({emptyAllowed:!1,required:!1}),parentField:new Z({emptyAllowed:!1,required:!1}),childField:new Z({emptyAllowed:!1,required:!1}),numberOfFoldedResults:new K({min:0,required:!1})},yB=t$("folding/register",e=>e2(e,yL)),yj=rp("folding/loadCollection",async(e,{getState:t,rejectWithValue:r,extra:{apiClient:n,navigatorContext:i}})=>{let a=t(),o="legacy"===a.configuration.analytics.analyticsMode?await o3(a):o1(a,i),s=await n.search({...o,q:""===a.query.q?"":a.query.enableQuerySyntax?`${a.query.q} OR @uri`:`( <@- ${a.query.q} -@> ) OR @uri`,enableQuerySyntax:!0,cq:`@${a.folding.fields.collection}="${e}"`,filterField:a.folding.fields.collection,childField:a.folding.fields.parent,parentField:a.folding.fields.child,filterFieldRange:100},{origin:"foldingCollection"});return eQ(s)?r(s.error):{collectionId:e,results:s.success.results,searchUid:s.success.searchUid,rootResult:a.folding.collections[e].result}}),yU=()=>({enabled:!1,fields:{collection:"foldingcollection",parent:"foldingparent",child:"foldingchild"},filterFieldRange:2,collections:{}});function yq(e,t){return e.raw[t.parent]}function yQ(e,t){let r=e.raw[t.child];return Array.isArray(r)?r[0]:r}function yG(e,t,r,n){let i={};
26return e.forEach(e=>{let a=e.raw[t.collection];a&&(yQ(e,t)||e.parentResult)&&(i[a]=function(e,t,r,n){let i=aX(e),a={...n??i.find(e=>{var r,n;let i=void 0===yq(e,t),a=(r=yq(e,t),n=yQ(e,t),(r||n)!==void 0&&r===n);return i||a})??function e(t){return t.parentResult?e(t.parentResult):t}(e),searchUid:r};return{result:a,children:function e(t,r,n,i=[]){let a=yQ(t,n);return a&&-1===i.indexOf(a)?r.filter(e=>{let r=yQ(e,n)===yQ(t,n);return yq(e,n)===a&&!r}).map(o=>{let s={...o,searchUid:t.searchUid};return{result:s,children:e(s,r,n,[...i,a])}}):[]}(a,i,t),moreResultsAvailable:e.totalNumberOfChildResults>1,isLoadingMoreResults:!1}}(e,t,r,n))}),i}function yV(e,t){if(!e.collections[t])throw Error(`Missing collection ${t} from ${Object.keys(e.collections)}: Folding most probably in an invalid state...`);return e.collections[t]}t9(yU(),e=>e.addCase(s7.fulfilled,(e,{payload:t})=>{e.collections=e.enabled?yG(t.response.results,e.fields,t.response.searchUid):{}}).addCase(le.fulfilled,(e,{payload:t})=>{e.collections=e.enabled?yG(t.response.results,e.fields,t.response.searchUid):{}}).addCase(lt.fulfilled,(e,{payload:t})=>{e.collections=e.enabled?{...e.collections,...yG(t.response.results,e.fields,t.response.searchUid)}:{}}).addCase(yB,(e,{payload:t})=>e.enabled?e:{enabled:!0,collections:{},fields:{collection:t.collectionField??e.fields.collection,parent:t.parentField??e.fields.parent,child:t.childField??e.fields.child},filterFieldRange:t.numberOfFoldedResults??e.filterFieldRange}).addCase(yj.pending,(e,{meta:t})=>{yV(e,t.arg).isLoadingMoreResults=!0}).addCase(yj.rejected,(e,{meta:t})=>{yV(e,t.arg).isLoadingMoreResults=!1}).addCase(yj.fulfilled,(e,{payload:{collectionId:t,results:r,rootResult:n,searchUid:i}})=>{let a=yG(r,e.fields,i,n);if(!a||!a[t])throw Error(`Unable to create collection ${t} from received results: ${JSON.stringify(r)}. Folding most probably in an invalid state... `);e.collections[t]=a[t],e.collections[t].moreResultsAvailable=!1}));let yH={id:eY},yK=t$("querySuggest/register",e=>e2(e,{...yH,count:new K({min:0})})),yW=t$("querySuggest/unregister",e=>e2(e,yH)),yY=t$("querySuggest/selectSuggestion",e=>e2(e,{...yH,expression:ez})),yZ=t$("querySuggest/clear",e=>e2(e,yH)),yz=rp("querySuggest/fetch",async(e,{getState:t,rejectWithValue:r,extra:{apiClient:n,validatePayload:i,navigatorContext:a}})=>{i(e,yH);let o=e.id,s=await y$(o,t(),a),l=await n.querySuggest(s);return eQ(l)?r(l.error):{id:o,q:s.q,...l.success}}),y$=async(e,t,r)=>({accessToken:t.configuration.accessToken,organizationId:t.configuration.organizationId,url:t.configuration.search.apiBaseUrl??ex(t.configuration.organizationId,t.configuration.environment),count:t.querySuggest[e].count,q:t.querySet[e],locale:t.configuration.search.locale,timezone:t.configuration.search.timezone,actionsHistory:t.configuration.analytics.enabled?aZ.getInstance().getHistory():[],...t.context&&{context:t.context.contextValues},...t.pipeline&&{pipeline:t.pipeline},...t.searchHub&&{searchHub:t.searchHub},tab:t.configuration.analytics.originLevel2,...t.configuration.analytics.enabled&&{...t.configuration.analytics.enabled&&"legacy"===t.configuration.analytics.analyticsMode?await o2(t.configuration.analytics):o0(t.configuration.analytics,r)},...t.configuration.search.authenticationProviders.length&&{authentication:t.configuration.search.authenticationProviders.join(",")}}),yJ=t9(aB(),e=>e.addCase(oX,(e,t)=>({...e,...t.payload})).addCase(sS,(e,t)=>{e.q=t.payload}).addCase(yY,(e,t)=>{e.q=t.payload.expression}).addCase(oD.fulfilled,(e,t)=>t.payload?.query??e).addCase(oI,(e,t)=>{e.q=t.payload.q??e.q,e.enableQuerySyntax=t.payload.enableQuerySyntax??e.enableQuerySyntax})),yX=t$("fields/registerFieldsToInclude",e=>e2(e,e$)),y0=t$("fields/fetchall/enable"),y1=t$("fields/fetchall/disable"),y2=rp("fields/fetchDescription",async(e,{extra:t,getState:r,rejectWithValue:n})=>{let i=r(),{accessToken:a,environment:o,organizationId:s}=i.configuration,{apiBaseUrl:l}=i.configuration.search,u=await t.apiClient.fieldDescriptions({accessToken:a,organizationId:s,url:l??ex(s,o)});return eQ(u)?n(u.error):u.success.fields}),y3=["author","language","urihash","objecttype","collection","source","permanentid"];[...y3];let y4=t9({fieldsToInclude:y3,fetchAllFields:!1,fieldsDescription:[]},e=>e.addCase(yX,(e,t)=>{e.fieldsToInclude=[...new Set(e.fieldsToInclude.concat(t.payload))]}).addCase(y0,e=>{e.fetchAllFields=!0}).addCase(y1,e=>{e.fetchAllFields=!1}).addCase(y2.fulfilled,(e,{payload:t})=>{e.fieldsDescription=t}).addCase(yB,(e,{payload:t})=>{let r=yU().fields;e.fieldsToInclude.push(t.collectionField??r.collection,t.parentField??r.parent,t.childField??r.child)}));function y8(e){e.addReducers({search:lm});let t=A$(e),r=()=>e.state;return{...t,get state(){let e=r();
26return{hasError:null!==e.search.error,isLoading:e.search.isLoading,hasResults:!!e.search.results.length,firstSearchExecuted:lu(e)}}}}let y5=new U({fieldsToInclude:new X({required:!1,each:new Z({required:!0,emptyAllowed:!1})})});function y6(e){let t=new Set;return e.filter(e=>{let r=!t.has(e.uri);return r&&t.add(e.uri),r})}new U(yL),t9(ux(),e=>e.addCase(cd,(e,{payload:t})=>{e.isVisible=t}).addCase(cp,(e,{payload:t})=>{e.isEnabled=t}).addCase(cE,(e,{payload:t})=>{e.id=t.id}).addCase(cg,(e,{payload:t})=>{e.isLoading=!1,e.isStreaming=!0,e.answer||(e.answer=""),e.answer+=t.textDelta,delete e.error}).addCase(cm,(e,{payload:t})=>{e.isLoading=!1,e.isStreaming=!0,e.citations=y6([...e.citations,...t.citations]),delete e.error}).addCase(cA,(e,{payload:t})=>{e.isLoading=!1,e.isStreaming=!1,e.error={...t,isRetryable:1===t.code},e.citations=[],delete e.answer}).addCase(cv,e=>{e.liked=!0,e.disliked=!1}).addCase(cb,e=>{e.liked=!1,e.disliked=!0}).addCase(cw,e=>{e.feedbackModalOpen=!0}).addCase(cC,e=>{e.feedbackModalOpen=!1}).addCase(cx,e=>{e.feedbackSubmitted=!0}).addCase(cy,e=>({...ux(),...e.answerConfigurationId?{answerConfigurationId:e.answerConfigurationId}:{},responseFormat:e.responseFormat,fieldsToIncludeInCitations:e.fieldsToIncludeInCitations,isVisible:e.isVisible,id:e.id})).addCase(ck,(e,{payload:t})=>{e.isLoading=t}).addCase(cO,(e,{payload:t})=>{e.isStreaming=t}).addCase(cT,(e,{payload:t})=>{e.answerContentFormat=t}).addCase(cR,(e,{payload:t})=>{e.responseFormat=t}).addCase(cD,(e,t)=>{e.fieldsToIncludeInCitations=[...new Set(e.fieldsToIncludeInCitations.concat(t.payload))]}).addCase(cN,(e,{payload:t})=>{e.isAnswerGenerated=t}).addCase(cS,e=>{e.expanded=!0}).addCase(cI,e=>{e.expanded=!1}).addCase(c_,(e,{payload:t})=>{e.answerConfigurationId=t}).addCase(cM,(e,{payload:t})=>{e.cannotAnswer=t}).addCase(cF,(e,{payload:t})=>{e.answerApiQueryParams=t}).addCase(cf,(e,{payload:t})=>{e.answerId=t}).addCase(ch,(e,{payload:t})=>{e.answerGenerationMode=t}).addCase(cP,(e,{payload:t})=>{e.generationSteps.push({name:t.name,status:"active",startedAt:t.startedAt})}).addCase(cL,(e,{payload:t})=>{let r=e.generationSteps.findLast(e=>e.name===t.name&&"active"===e.status);r&&(r.status="completed",r.finishedAt=t.finishedAt)})),ul.injectEndpoints({endpoints:e=>({post:e.query({query:e=>({url:"/evaluations",method:"POST",body:e})})})});let y9=e=>({question:e,isLoading:!0,isStreaming:!1,citations:[],liked:!1,disliked:!1,feedbackSubmitted:!1,cannotAnswer:!1,isActive:!0,generationSteps:[]});function y7(e){return e.followUpAnswers.find(e=>e.isActive)}function ve(e,t){return e.followUpAnswers.find(e=>e.answerId===t)}function vt(e,t){return t.payload.response.facets.map(e=>e.facetId)}t9({conversationId:"",isEnabled:!1,followUpAnswers:[]},e=>e.addCase(uT,(e,{payload:t})=>{e.isEnabled=t}).addCase(uR,(e,{payload:t})=>{e.conversationId=t}).addCase(u_,(e,{payload:t})=>{let r=y7(e);r&&(r.isActive=!1),e.followUpAnswers.push(y9(t.question))}).addCase(uD,(e,{payload:t})=>{let r=y7(e);r&&!r.answerId&&(r.answerId=t)}).addCase(uN,(e,{payload:t})=>{let r=ve(e,t.answerId);r&&(r.answerContentFormat=t.contentFormat)}).addCase(uM,(e,{payload:t})=>{let r=ve(e,t.answerId);r&&(r.isLoading=t.isLoading)}).addCase(uF,(e,{payload:t})=>{let r=ve(e,t.answerId);r&&(r.isStreaming=t.isStreaming)}).addCase(uP,(e,{payload:t})=>{let r=ve(e,t.answerId);r&&(r.answer||(r.answer=""),r.answer+=t.textDelta,delete r.error)}).addCase(uL,(e,{payload:t})=>{let r=ve(e,t.answerId);r&&(r.citations=y6([...r.citations,...t.citations]),delete r.error)}).addCase(uB,(e,{payload:t})=>{let r=ve(e,t.answerId);r&&(r.isLoading=!1,r.isStreaming=!1,r.isActive=!1,r.cannotAnswer=!!t.cannotAnswer)}).addCase(uj,(e,{payload:t})=>{let r=ve(e,t.answerId);r&&(r.isLoading=!1,r.isStreaming=!1,r.error={message:t.message,code:t.code},r.citations=[],delete r.answer)}).addCase(uU,(e,{payload:t})=>{let r=y7(e);r&&(r.isLoading=!1,r.isStreaming=!1,r.error={message:t.message},r.citations=[],delete r.answer)}).addCase(uq,(e,{payload:t})=>{let r=ve(e,t.answerId);r&&(r.liked=!0,r.disliked=!1)}).addCase(uQ,(e,{payload:t})=>{let r=ve(e,t.answerId);r&&(r.liked=!1,r.disliked=!0)}).addCase(uG,(e,{payload:t})=>{let r=ve(e,t.answerId);r&&(r.feedbackSubmitted=!0)}).addCase(uH,(e,{payload:t})=>{let r=ve(e,t.answerId);r&&(r.generationSteps=[...r.generationSteps,{name:t.name,status:"active",startedAt:t.startedAt}])}).addCase(uK,(e,{payload:t})=>{let r=ve(e,t.answerId);if(!r)return;let n=r.generationSteps.findLast(e=>
26e.name===t.name&&"active"===e.status);n&&(n.status="completed",n.finishedAt=t.finishedAt)}).addCase(uV,e=>{e.followUpAnswers=[],e.conversationId=""})),t9([],e=>{e.addCase(s7.fulfilled,vt).addCase(oD.fulfilled,(e,t)=>t.payload?.facetOrder??e)});let vr=e=>({past:[],present:e,future:[]}),vn=e=>{let{past:t,present:r,future:n}=e;if(!r||0===t.length)return e;let i=t[t.length-1];return{past:t.slice(0,t.length-1),present:i,future:[r,...n]}},vi=e=>{let{past:t,present:r,future:n}=e;return r&&0!==n.length?{past:[...t,r],present:n[0],future:n.slice(1)}:e},va=e=>{let{action:t,state:r,reducer:n}=e,{past:i,present:a}=r,o=n(a,t);return a?a===o?r:{past:[...i,a].slice(-10),present:o,future:[]}:vr(o)};var vo=Object.getOwnPropertyNames,vs=Object.getOwnPropertySymbols,vl=Object.prototype.hasOwnProperty;function vu(e,t){return function(r,n,i){return e(r,n,i)&&t(r,n,i)}}function vc(e){return function(t,r,n){if(!t||!r||"object"!=typeof t||"object"!=typeof r)return e(t,r,n);var i=n.cache,a=i.get(t),o=i.get(r);if(a&&o)return a===r&&o===t;i.set(t,r),i.set(r,t);var s=e(t,r,n);return i.delete(t),i.delete(r),s}}function vd(e){return vo(e).concat(vs(e))}var vf=Object.hasOwn||function(e,t){return vl.call(e,t)};function vh(e,t){return e===t||!e&&!t&&e!=e&&t!=t}var vp=Object.getOwnPropertyDescriptor,vg=Object.keys;function vm(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function vA(e,t){return vh(e.getTime(),t.getTime())}function vy(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function vv(e,t){return e===t}function vb(e,t,r){var n,i,a=e.size;if(a!==t.size)return!1;if(!a)return!0;for(var o=Array(a),s=e.entries(),l=0;(n=s.next())&&!n.done;){for(var u=t.entries(),c=!1,d=0;(i=u.next())&&!i.done;){if(o[d]){d++;continue}var f=n.value,h=i.value;if(r.equals(f[0],h[0],l,d,e,t,r)&&r.equals(f[1],h[1],f[0],h[0],e,t,r)){c=o[d]=!0;break}d++}if(!c)return!1;l++}return!0}function vw(e,t,r){var n=vg(e),i=n.length;if(vg(t).length!==i)return!1;for(;i-- >0;)if(!vO(e,t,r,n[i]))return!1;return!0}function vS(e,t,r){var n,i,a,o=vd(e),s=o.length;if(vd(t).length!==s)return!1;for(;s-- >0;)if(!vO(e,t,r,n=o[s])||(i=vp(e,n),a=vp(t,n),(i||a)&&(!i||!a||i.configurable!==a.configurable||i.enumerable!==a.enumerable||i.writable!==a.writable)))return!1;return!0}function vI(e,t){return vh(e.valueOf(),t.valueOf())}function vE(e,t){return e.source===t.source&&e.flags===t.flags}function vC(e,t,r){var n,i,a=e.size;if(a!==t.size)return!1;if(!a)return!0;for(var o=Array(a),s=e.values();(n=s.next())&&!n.done;){for(var l=t.values(),u=!1,c=0;(i=l.next())&&!i.done;){if(!o[c]&&r.equals(n.value,i.value,n.value,i.value,e,t,r)){u=o[c]=!0;break}c++}if(!u)return!1}return!0}function vx(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function vk(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function vO(e,t,r,n){return("_owner"===n||"__o"===n||"__v"===n)&&(!!e.$$typeof||!!t.$$typeof)||vf(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var vT=Array.isArray,vR="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,v_=Object.assign,vD=Object.prototype.toString.call.bind(Object.prototype.toString);function vN(e){void 0===e&&(e={});var t,r,n,i,a,o,s,l,u,c,d,f,h,p=e.circular,g=e.createInternalComparator,m=e.createState,A=e.strict,y=(r=(t=function(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?vS:vm,areDatesEqual:vA,areErrorsEqual:vy,areFunctionsEqual:vv,areMapsEqual:n?vu(vb,vS):vb,areNumbersEqual:vh,areObjectsEqual:n?vS:vw,arePrimitiveWrappersEqual:vI,areRegExpsEqual:vE,areSetsEqual:n?vu(vC,vS):vC,areTypedArraysEqual:n?vS:vx,areUrlsEqual:vk};if(r&&(i=v_({},i,r(i))),t){var a=vc(i.areArraysEqual),o=vc(i.areMapsEqual),s=vc(i.areObjectsEqual),l=vc(i.areSetsEqual);i=v_({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return i}(e)).areArraysEqual,n=t.areDatesEqual,i=t.areErrorsEqual,a=t.areFunctionsEqual,o=t.areMapsEqual,s=t.areNumbersEqual,l=t.areObjectsEqual,u=t.arePrimitiveWrappersEqual,c=t.areRegExpsEqual,d=t.areSetsEqual,f=t.areTypedArraysEqual,h=t.areUrlsEqual,function(e,t,p){if(e===t)return!0;
26if(null==e||null==t)return!1;var g=typeof e;if(g!==typeof t)return!1;if("object"!==g)return"number"===g?s(e,t,p):"function"===g&&a(e,t,p);var m=e.constructor;if(m!==t.constructor)return!1;if(m===Object)return l(e,t,p);if(vT(e))return r(e,t,p);if(null!=vR&&vR(e))return f(e,t,p);if(m===Date)return n(e,t,p);if(m===RegExp)return c(e,t,p);if(m===Map)return o(e,t,p);if(m===Set)return d(e,t,p);var A=vD(e);return"[object Date]"===A?n(e,t,p):"[object RegExp]"===A?c(e,t,p):"[object Map]"===A?o(e,t,p):"[object Set]"===A?d(e,t,p):"[object Object]"===A?"function"!=typeof e.then&&"function"!=typeof t.then&&l(e,t,p):"[object URL]"===A?h(e,t,p):"[object Error]"===A?i(e,t,p):"[object Arguments]"===A?l(e,t,p):("[object Boolean]"===A||"[object Number]"===A||"[object String]"===A)&&u(e,t,p)}),v=g?g(y):function(e,t,r,n,i,a,o){return y(e,t,o)};return function(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(e,o){var s=n(),l=s.cache;return r(e,o,{cache:void 0===l?t?new WeakMap:void 0:l,equals:i,meta:s.meta,strict:a})};if(t)return function(e,t){return r(e,t,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(e,t){return r(e,t,o)}}({circular:void 0!==p&&p,comparator:y,createState:m,equals:v,strict:void 0!==A&&A})}function vM(e,t){return e.length===t.length&&e.every(e=>-1!==t.findIndex(t=>vF(e,t)))}vN(),vN({strict:!0}),vN({circular:!0}),vN({circular:!0,strict:!0}),vN({createInternalComparator:function(){return vh}}),vN({strict:!0,createInternalComparator:function(){return vh}}),vN({circular:!0,createInternalComparator:function(){return vh}}),vN({circular:!0,createInternalComparator:function(){return vh},strict:!0});let vF=vN({createCustomConfig:e=>({...e,areArraysEqual:vM})}),vP=t9(sN({}),e=>{e.addCase(o_,(e,t)=>vL(e,t.payload)?void 0:t.payload)}),vL=(e,t)=>vB(e.context,t.context)&&vj(e.dictionaryFieldContext,t.dictionaryFieldContext)&&vZ(e.advancedSearchQueries,t.advancedSearchQueries)&&vU(e.tabSet,t.tabSet)&&vQ(e.staticFilterSet,t.staticFilterSet)&&vV(e.facetSet,t.facetSet)&&vV(e.dateFacetSet,t.dateFacetSet)&&vV(e.numericFacetSet,t.numericFacetSet)&&vK(e.automaticFacetSet,t.automaticFacetSet)&&vH(e.categoryFacetSet,t.categoryFacetSet)&&vW(e.pagination,t.pagination)&&vY(e.query,t.query)&&vz(e,t)&&v$(e.pipeline,t.pipeline)&&vJ(e.searchHub,t.searchHub)&&vX(e.facetOrder,t.facetOrder)&&v0(e.debug,t.debug),vB=(e,t)=>JSON.stringify(e.contextValues)===JSON.stringify(t.contextValues),vj=(e,t)=>JSON.stringify(e.contextValues)===JSON.stringify(t.contextValues),vU=(e,t)=>{let r=vq(e),n=vq(t);return r?.id===n?.id},vq=e=>Object.values(e).find(e=>e.isActive),vQ=(e,t)=>{for(let[r,n]of Object.entries(t)){if(!e[r])return!1;let t=vG(e[r]),i=vG(n);if(JSON.stringify(t)!==JSON.stringify(i))return!1}return!0},vG=e=>e.values.filter(e=>"idle"!==e.state),vV=(e,t)=>{for(let[r,n]of Object.entries(t)){if(!e[r])return!1;let t=e[r].request.currentValues.filter(e=>"idle"!==e.state),i=n.request.currentValues.filter(e=>"idle"!==e.state);if(JSON.stringify(t)!==JSON.stringify(i))return!1}return!0},vH=(e,t)=>{for(let[r,n]of Object.entries(t)){if(!e[r])return!1;let t=aA(e[r]?.request.currentValues).map(({value:e})=>e),i=aA(n?.request.currentValues).map(({value:e})=>e);if(JSON.stringify(t)!==JSON.stringify(i))return!1}return!0},vK=(e,t)=>{for(let[r,n]of Object.entries(t.set)){if(!e.set[r])return!1;let t=e.set[r].response.values.filter(e=>"idle"!==e.state),i=n.response.values.filter(e=>"idle"!==e.state);if(JSON.stringify(t)!==JSON.stringify(i))return!1}return!0},vW=(e,t)=>e.firstResult===t.firstResult&&e.numberOfResults===t.numberOfResults,vY=(e,t)=>JSON.stringify(e)===JSON.stringify(t),vZ=(e,t)=>JSON.stringify(e)===JSON.stringify(t),vz=(e,t)=>e.sortCriteria===t.sortCriteria,v$=(e,t)=>e===t,vJ=(e,t)=>e===t,vX=(e,t)=>(function(e,t,r=(e,t)=>e===t){return e.length===t.length&&-1===e.findIndex((e,n)=>!r(t[n],e))})(e,t),v0=(e,t)=>e===t;(e=>{let{actionTypes:t,reducer:r}=e,n=vr();return(e=n,i)=>{switch(i.type){case t.undo:return vn(e);case t.redo:return vi(e);case t.snapshot:return va({state:e,reducer:r,action:i});default:return e}}})({actionTypes:{redo:oR.type,undo:oT.type,snapshot:o_.type},reducer:vP});let v1={results:new X({required:!0,each:new $({values:oe})}),maxLength:new K({required:!0,min:1,default:10})},v2=t$("recentResults/registerRecentResults",e=>e2(e,v1)),v3=t$("recentResults/pushRecentResult",e=>(ot(e),{payload:e})),v4=t$("recentResults/clearRecentResults"),v8=(e,t)=>
26{let{id:r}=e;if(!t[r])return t[r]={q:"",cache:{}},t},v5=(e,t)=>{let{q:r,id:n}=e;r&&(t[n].q=r)},v6=(e,t)=>{let{id:r}=e;Object.entries(t[r].cache).forEach(([e,n])=>{n&&n.expiresAt&&Date.now()>=n.expiresAt&&delete t[r].cache[e]})},v9=(e,t,r)=>{for(let e in t)for(let r in t[e].cache)t[e].cache[r].isActive=!1;if(!bt(e,t)){br(e,t,r);return}let n=bt(e,t);n.isLoading=!0,n.isActive=!0,n.error=null},v7=(e,t,r)=>{let{id:n,q:i,searchUid:a,cacheTimeout:o,totalCountFiltered:s,duration:l}=e;t[n].cache[i]={...bt(e,t),...r,isActive:!0,searchUid:a,isLoading:!1,error:null,expiresAt:o?o+Date.now():0,totalCountFiltered:s,duration:l}},be=(e,t)=>{let{id:r,q:n,error:i}=e;t[r].cache[n].error=i||null,t[r].cache[n].isLoading=!1,t[r].cache[n].isActive=!1},bt=(e,t)=>{let{q:r,id:n}=e;return t[n].cache[r]||null},br=(e,t,r)=>{let{q:n,id:i}=e;t[i].cache[n]={isLoading:!0,error:null,expiresAt:0,isActive:!0,searchUid:"",totalCountFiltered:0,duration:0,...r}};t9({},e=>{e.addCase(oG,(e,t)=>{v8(t.payload,e)}),e.addCase(oV,(e,t)=>{v5(t.payload,e)}),e.addCase(oH,(e,t)=>{v6(t.payload,e)}),e.addCase(ln.pending,(e,t)=>{v9(t.meta.arg,e,{results:[]})}),e.addCase(ln.fulfilled,(e,t)=>{let r=t.payload.results.map(e=>({...e,searchUid:t.payload.searchUid}));v7({...t.payload,...t.meta.arg},e,{results:r})}),e.addCase(ln.rejected,(e,t)=>{be(t.meta.arg,e)})}),new U({searchBoxId:eZ,maxResultsPerQuery:new K({required:!0,min:1}),cacheTimeout:new K});let bn=t9(sD(),e=>{e.addCase(oW,(e,t)=>{let r=ba(e),n=t.payload;e.defaultNumberOfResults=e.numberOfResults=n,e.firstResult=(r-1)*n}).addCase(oY,(e,t)=>{e.numberOfResults=t.payload,e.firstResult=0}).addCase(cz,e=>{e.firstResult=0}).addCase(oZ,(e,t)=>{let r=t.payload;e.firstResult=(r-1)*e.numberOfResults}).addCase(oz,(e,t)=>{let r=t.payload;e.firstResult=(r-1)*e.numberOfResults}).addCase(oJ,e=>{let t=ba(e);e.firstResult=(Math.max(t-1,1)-1)*e.numberOfResults}).addCase(o$,e=>{let t=ba(e),r=function(e){let{totalCountFiltered:t,numberOfResults:r}=e;return bs(t,r)}(e);e.firstResult=(Math.min(t+1,r)-1)*e.numberOfResults}).addCase(oD.fulfilled,(e,t)=>{t.payload&&(e.numberOfResults=t.payload.pagination.numberOfResults,e.firstResult=t.payload.pagination.firstResult)}).addCase(oI,(e,t)=>{e.firstResult=t.payload.firstResult??e.firstResult,e.numberOfResults=t.payload.numberOfResults??e.defaultNumberOfResults}).addCase(s7.fulfilled,(e,t)=>{let{response:r}=t.payload;e.totalCountFiltered=r.totalCountFiltered}).addCase(le.fulfilled,(e,t)=>{let{response:r}=t.payload;e.totalCountFiltered=r.totalCountFiltered}).addCase(mR,e=>{bi(e)}).addCase(Al,e=>{bi(e)}).addCase(mT,e=>{bi(e)}).addCase(Ax,e=>{bi(e)}).addCase(mJ,e=>{bi(e)}).addCase(mO,e=>{bi(e)}).addCase(g1,e=>{bi(e)}).addCase(g0,e=>{bi(e)}).addCase(mt,e=>{bi(e)}).addCase(As,e=>{bi(e)}).addCase(AC,e=>{bi(e)}).addCase(oF,e=>{bi(e)}).addCase(Au,e=>{bi(e)}).addCase(Ak,e=>{bi(e)}).addCase(m$,e=>{bi(e)}).addCase(gz,e=>{bi(e)})});function bi(e){e.firstResult=sD().firstResult}function ba(e){let{firstResult:t,numberOfResults:r}=e;return bo(t,r)}function bo(e,t){return Math.round(e/t)+1}function bs(e,t){return Math.ceil(Math.min(e,5e3)/t)}function bl(e){return e.pagination.numberOfResults}let bu=e=>bo(e.pagination.firstResult,bl(e)),bc=e=>bs(e.pagination.totalCountFiltered,bl(e)),bd=(e,t)=>{let r=bu(e),n=bc(e),i=function(e,t){let r=Math.floor(t/2);return{start:e-r,end:e+(t%2==0?r-1:r)}}(r,t);return function(e){let t=[];for(let r=e.start;r<=e.end;++r)t.push(r);return t}(i=function(e,t){let r=Math.max(e.end-t,0);return{start:Math.max(e.start-r,1),end:e.end-r}}(i=function(e){let t=Math.max(1-e.start,0);return{start:e.start+t,end:e.end+t}}(i),n))},bf=()=>a5("analytics/pager/resize",(e,t)=>e.makePagerResize({currentResultsPerPage:t.pagination?.numberOfResults||sD().numberOfResults})),bh=()=>a5("analytics/pager/number",(e,t)=>e.makePagerNumber({pagerNumber:bu(t)})),bp=()=>a5("analytics/pager/next",(e,t)=>e.makePagerNext({pagerNumber:bu(t)})),bg=()=>a5("analytics/pager/previous",(e,t)=>e.makePagerPrevious({pagerNumber:bu(t)})),bm=()=>({actionCause:M.browseResults}),bA=new U({numberOfPages:new K({default:5,min:0})}),by=new U({page:new K({min:1})});
26function bv(e,t={}){let{dispatch:r}=e,n=function(e,t={}){e.addReducers({configuration:c1,pagination:bn});let r=A$(e),{dispatch:n}=e,i=e4(e,bA,t.options,"buildPager"),a=e3(e,by,t.initialState,"buildPager").page;a&&n(oZ(a));let o=()=>bu(e.state),s=()=>{let{numberOfPages:t}=i;return bd(e.state,t)},l=()=>bc(e.state);return{...r,get state(){let e=o(),t=l();return{currentPage:e,currentPages:s(),maxPage:t,hasPreviousPage:e>1&&t>0,hasNextPage:e<t}},selectPage(e){n(oz(e))},nextPage(){n(o$())},previousPage(){n(oJ())},isCurrentPage(e){return e===this.state.currentPage}}}(e,t);return{...n,get state(){return n.state},selectPage(e){n.selectPage(e),r(le({legacy:bh(),next:bm()}))},nextPage(){n.nextPage(),r(le({legacy:bp(),next:bm()}))},previousPage(){n.previousPage(),r(le({legacy:bg(),next:bm()}))}}}function bb(e){return function(e){e.addReducers({search:lm,pagination:bn});let t=A$(e),r=y8(e),n=()=>e.state,i=()=>Math.round((n().search.duration/1e3+Number.EPSILON)*100)/100;return{...t,get state(){return{...r.state,durationInMilliseconds:n().search.duration,durationInSeconds:i(),firstResult:n().pagination.firstResult+1,hasDuration:0!==n().search.duration,hasQuery:""!==n().search.queryExecuted,lastResult:n().pagination.firstResult+n().search.results.length,query:n().search.queryExecuted,total:n().pagination.totalCountFiltered}}}}(e)}async function bw(e,t){let{search:r,accessToken:n,organizationId:i}=e.configuration,a=e.query?.q||"";return{url:r.apiBaseUrl??ex(e.configuration.organizationId,e.configuration.environment),accessToken:n,organizationId:i,enableNavigation:!1,q:a,...t,requestedOutputSize:t.requestedOutputSize||0,...r.authenticationProviders.length&&{authentication:r.authenticationProviders.join(",")}}}let bS=rp("resultPreview/fetchResultContent",async(e,{extra:t,getState:r,rejectWithValue:n})=>{let i=r(),a=await bw(i,e),o=await t.apiClient.html(a);return eQ(o)?n(o.error):{content:o.success,uniqueId:e.uniqueId}}),bI=t$("resultPreview/next"),bE=t$("resultPreview/previous"),bC=t$("resultPreview/prepare",e=>e2(e,{results:new X({required:!0})})),bx=rp("resultPreview/updateContentURL",async(e,{getState:t,extra:r})=>{let n=t(),i=eL(await e.buildResultPreviewRequest(n,{uniqueId:e.uniqueId,requestedOutputSize:e.requestedOutputSize}),e.path);return i?.length>2048&&r.logger.error("The content URL was truncated as it exceeds the maximum allowed length of 2048 characters."),{contentURL:i}});function bk(){return{uniqueId:"",content:"",isLoading:!1,position:-1,resultsWithPreview:[]}}let bO=e=>{let{content:t,isLoading:r,uniqueId:n,contentURL:i}=bk();e.content=t,e.isLoading=r,e.uniqueId=n,e.contentURL=i},bT=e=>e.filter(e=>e.hasHtmlVersion).map(e=>e.uniqueId);t9(bk(),e=>{e.addCase(bS.pending,e=>{e.isLoading=!0}).addCase(bS.fulfilled,(e,t)=>{let{content:r,uniqueId:n}=t.payload;e.position=e.resultsWithPreview.indexOf(n),e.content=r,e.uniqueId=n,e.isLoading=!1}).addCase(s7.fulfilled,(e,t)=>{bO(e),e.resultsWithPreview=bT(t.payload.response.results)}).addCase(lt.fulfilled,(e,t)=>{bO(e),e.resultsWithPreview=e.resultsWithPreview.concat(bT(t.payload.response.results))}).addCase(le.fulfilled,bO).addCase(bC,(e,t)=>{e.resultsWithPreview=bT(t.payload.results)}).addCase(bI,e=>{if(e.isLoading)return;let t=e.position+1;t>e.resultsWithPreview.length-1&&(t=0),e.position=t}).addCase(bE,e=>{if(e.isLoading)return;let t=e.position-1;t<0&&(t=e.resultsWithPreview.length-1),e.position=t}).addCase(bx.fulfilled,(e,t)=>{e.contentURL=t.payload.contentURL})});let bR={queries:new X({required:!0,each:new Z({emptyAllowed:!1})}),maxLength:new K({required:!0,min:1,default:10})},b_=t$("recentQueries/registerRecentQueries",e=>e2(e,bR)),bD=t$("recentQueries/clearRecentQueries");function bN(e,t){e.queries=Array.from(new Set(t.payload.queries.map(e=>e.trim().toLowerCase()))).slice(0,t.payload.maxLength),e.maxLength=t.payload.maxLength}function bM(e){e.queries=[]}t9({queries:[],maxLength:10},e=>{e.addCase(b_,bN).addCase(bD,bM).addCase(s7.fulfilled,(e,t)=>{let r=t.payload.queryExecuted,n=t.payload.response.results;r.length&&n.length&&function(e,t){let r=e.trim().toLowerCase();if(""===r)return;let n=Array.from(new Set(t.queries.filter(e=>e.trim().toLowerCase()!==r))).slice(0,t.maxLength-1);t.queries=[r,...n]}(r,e)})}),new U({queries:new X({required:!0})}),new U({maxLength:new K({required:!0,min:1}),clearFilters:new V}),t9({results:[],maxLength:10},e=>{e.addCase(v2,(e,t)=>{e.results=t.payload.results.slice(0,t.payload.maxLength),e.maxLength=t.payload.maxLength}).addCase(v4,e=>{e.results=[]}).addCase(v3,(e,t)=>{let r=t.payload;e.results=e.results.filter(e=>e.uniqueId!==r.uniqueId);let n=e.results.slice(0,e.maxLength-1);e.results=[r,...n]})}),new U({results:new X({required:!0})}),new U({maxLength:new K({required:!0,min:1})}),new U({enabled:new V({default:!1})});let bF=e=>a5({prefix:"analytics/result/open",__legacy__getBuilder:(t,r)=>(ot(e),t.makeDocumentOpen(a6(e,r),a9(e))),analyticsType:"itemClick",analyticsPayloadBuilder:t=>{let r=a6(e,t),n=a9(e);return{responseId:e.searchUid??"",position:r.documentPosition,itemMetadata:{uniqueFieldName:n.contentIDKey,uniqueFieldValue:n.contentIDValue,title:r.documentTitle,author:r.documentAuthor,url:r.documentUrl}}}});function bP(e,t){let r=!1,n=()=>{r||(r=!0,e.dispatch(bF(t.options.result)))};return function(e,t,r){let n;e.addReducers({configuration:c1});let i={selectionDelay:1e3,debounceWait:1e3,...t.options};return{select:ea(r,i.debounceWait,{isImmediate:!0}),beginDelayedSelect(){n=setTimeout(r,i.selectionDelay)},cancelPendingSelect(){n&&clearTimeout(n)}}}(e,t,()=>{n(),e.dispatch(v3(t.options.result))})}function bL(e,t){return function(e,t){e.addReducers({search:lm,configuration:c1,fields:y4});let r=A$(e),n=y8(e),{dispatch:i}=e,a=()=>e.state,o=e4(e,y5,t?.options,"buildCoreResultList");o.fieldsToInclude&&i(yX(o.fieldsToInclude));let s=()=>e.state.search.results.length<e.state.search.response.totalCountFiltered,l=0,u=0,c=!1,d=async()=>
26{if(!e.state.search.isLoading){if(!s()){e.logger.info("No more results are available for the result list to fetch.");return}if(Date.now()-l<200){if(++u>=5){l=Date.now(),c||e.logger.error('The result list method "fetchMoreResults" execution prevented because it has been triggered consecutively 5 times, with little delay. Please verify the conditions under which the function is called.'),c=!0;return}}else u=0;c=!1,t?.fetchMoreResultsActionCreator&&(await i(t?.fetchMoreResultsActionCreator()),l=Date.now())}};return{...r,get state(){let e=a();return{...n.state,results:e.search.results,moreResultsAvailable:s(),searchResponseId:e.search.searchResponseId}},fetchMoreResults:d}}(e,{...t,fetchMoreResultsActionCreator:lt})}let bB=new U({numberOfResults:new K({min:0})});function bj(e,t={}){e.addReducers({pagination:bn,configuration:c1});let r=function(e,t={}){e.addReducers({pagination:bn,configuration:c1});let r=A$(e),{dispatch:n}=e,i=()=>e.state,a=e3(e,bB,t.initialState,"buildResultsPerPage").numberOfResults;return void 0!==a&&n(oW(a)),{...r,get state(){return{numberOfResults:i().pagination.numberOfResults}},set(e){n(oY(e))},isSetTo(e){return e===this.state.numberOfResults}}}(e,t),{dispatch:n}=e;return{...r,get state(){return{...r.state}},set(e){r.set(e),n(le({legacy:bf(),next:bm()}))}}}let bU=()=>a5("analytics/searchbox/submit",e=>e.makeSearchboxSubmit()),bq=()=>({actionCause:M.searchboxSubmit}),bQ={id:eY,query:ez},bG=t$("querySet/register",e=>e2(e,bQ)),bV=t$("querySet/update",e=>e2(e,bQ)),bH=t9({},e=>{e.addCase(bG,(e,t)=>bZ(e,t.payload)).addCase(bV,(e,t)=>{let{id:r,query:n}=t.payload;bY(e,r,n)}).addCase(yY,(e,t)=>{let{id:r,expression:n}=t.payload;bY(e,r,n)}).addCase(s7.fulfilled,(e,t)=>{let{queryExecuted:r}=t.payload;bW(e,r)}).addCase(oI,bK).addCase(oD.fulfilled,(e,t)=>{if(t.payload)for(let[r,n]of Object.entries(t.payload.querySet))bY(e,r,n)})});function bK(e,t){G(t.payload.q)||bW(e,t.payload.q)}function bW(e,t){Object.keys(e).forEach(r=>{e[r]=t})}let bY=(e,t,r)=>{t in e&&(e[t]=r)},bZ=(e,t)=>{let{id:r,query:n}=t;r in e||(e[r]=n)},bz=e=>a5("analytics/querySuggest",(t,r)=>{let n=function(e,t){let{id:r,suggestion:n}=t,i=e.querySuggest?.[r];if(!i)throw Error(`Unable to determine the query suggest analytics metadata to send because no query suggest with id "${r}" was found. Please check the sent #id.`);let a=i.completions.map(e=>e.expression),o=i.partialQueries.length-1,s=i.partialQueries[o]||"",l=i.responseId;return{suggestionRanking:a.indexOf(n),partialQuery:s,partialQueries:i.partialQueries,suggestions:a,querySuggestResponseId:l}}(r,e);return t.makeOmniboxAnalytics(n)}),b$=()=>({actionCause:M.omniboxAnalytics});function bJ(e,t){let r=e[t.meta.arg.id];r&&(r.currentRequestId=t.meta.requestId,r.isLoading=!0)}function bX(e,t){let r=e[t.meta.arg.id];r&&(r.error=t.payload||null,r.isLoading=!1)}let b0=t9({},e=>e.addCase(yK,(e,t)=>{!function(e,t){let r=t.id;!(r in e)&&(e[r]={id:"",completions:[],responseId:"",count:5,currentRequestId:"",error:null,partialQueries:[],isLoading:!1,...t})}(e,t.payload)}).addCase(yW,(e,t)=>{delete e[t.payload.id]}).addCase(yz.pending,bJ).addCase(yz.fulfilled,(e,t)=>{let r=e[t.meta.arg.id];if(!r||t.meta.requestId!==r.currentRequestId)return;let{q:n}=t.payload;n&&r.partialQueries.push(n.replace(/;/,encodeURIComponent(";"))),r.responseId=t.payload.responseId,r.completions=t.payload.completions,r.isLoading=!1,r.error=null}).addCase(yz.rejected,bX).addCase(yZ,(e,t)=>{!function(e,t){let r=e[t.id];r&&(r.responseId="",r.completions=[],r.partialQueries=[])}(e,t.payload)}).addCase(ld,(e,t)=>{Object.keys(e).forEach(r=>{let n=e[r];n&&(n.error=t.payload,n.isLoading=!1)})})),b1={enableQuerySyntax:!1,numberOfSuggestions:5,clearFilters:!0},b2={open:new Z,close:new Z},b3={id:eY,numberOfSuggestions:new K({min:0}),enableQuerySyntax:new V,highlightOptions:new $({values:{notMatchDelimiters:new $({values:b2}),exactMatchDelimiters:new $({values:b2}),correctionDelimiters:new $({values:b2})}}),clearFilters:new V},b4=new U(b3);function b8(e,t={}){let r=function(e,t){e.addReducers({query:yJ,querySuggest:b0,configuration:c1,querySet:bH,search:lm});let r=A$(e),{dispatch:n}=e,i=()=>e.state,a=t.options?.id||er("search_box"),o={id:a,highlightOptions:{...t.options?.highlightOptions},...b1,...t.options};e4(e,b4,o,"buildSearchBox"),n(bG({id:a,query:e.state.query.q})),o.numberOfSuggestions&&n(yK({id:a,count:o.numberOfSuggestions})),o.enableQuerySyntax&&n(oX({enableQuerySyntax:o.enableQuerySyntax}));let s=()=>e.state.querySet[o.id],l=async e=>{let{enableQuerySyntax:r,clearFilters:i}=o;n(s6({q:s(),enableQuerySyntax:r,clearFilters:i})),t.isNextAnalyticsReady?n(t.executeSearchActionCreator(e)):n(t.executeSearchActionCreator(e.legacy))};return{...r,updateText(e){n(bV({id:a,query:e})),this.showSuggestions()},clear(){n(bV({id:a,query:""})),n(yZ({id:a}))},showSuggestions(){o.numberOfSuggestions&&n(t.fetchQuerySuggestionsActionCreator({id:a}))},selectSuggestion(e){n(yY({id:a,expression:e})),l({legacy:bz({id:a,suggestion:e}),next:b$()}).then(()=>{n(yZ({id:a}))})},submit(e=bU(),t){l({legacy:e,next:t}),n(yZ({id:a}))},get state(){var u;let e=i(),t=e.querySuggest[o.id],r=(u=o.highlightOptions,t?t.completions.map(e=>{var t;return{highlightedValue:(function(e){let t={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},r=`(?:${Object.keys(t).join("|")})`,n=RegExp(r),i=RegExp(r,"g");return n.test(e)?e.replace(i,e=>t[e]):e})(e.highlighted).replace(/\[(.*?)\]|\{(.*?)\}|\((.*?)\)/g,(e,t,r,n)=>t?eo(t,u.notMatchDelimiters):r?eo(r,u.exactMatchDelimiters):n?eo(n,u.correctionDelimiters):e),rawValue:e.expression}}):[]),n=!!t&&t.isLoading;return{searchBoxId:a,value:s(),suggestions:r,isLoading:e.search.isLoading,isLoadingSuggestions:n}}}}(e,{...t,executeSearchActionCreator:s7,fetchQuerySuggestionsActionCreator:yz,isNextAnalyticsReady:!0});return{...r,submit(){r.submit(bU(),bq())},get state(){return r.state}}}let b5=()=>a5("analytics/sort/results",(e,t)=>e.makeResultsSort({resultsSortBy:t.sortCriteria||aG()})),b6=()=>({actionCause:M.resultsSort});function b9(e={},t={},r=!1){let n=Object.keys(e),i=Object.keys(t),a=n.filter(e=>!i.includes(e));if(a.length){let t=a[0];switch(!0){case e[t].length>1:return mB(t);case r:return mQ({facetId:t,facetValue:e[t][0]});
26default:return mq({facetId:t,facetValue:e[t][0]})}}let o=i.filter(e=>!n.includes(e));if(o.length){let e=o[0];return r?mU({facetId:e,facetValue:t[e][0]}):mj({facetId:e,facetValue:t[e][0]})}let s=i.find(r=>t[r].filter(t=>e[r].includes(t)));if(!s)return oa();let l=e[s],u=t[s],c=u.filter(e=>!l.includes(e));if(c.length)return r?mU({facetId:s,facetValue:c[0]}):mj({facetId:s,facetValue:c[0]});let d=l.filter(e=>!u.includes(e));return d.length?r?mQ({facetId:s,facetValue:d[0]}):mq({facetId:s,facetValue:d[0]}):oa()}function b7(e={},t={}){return b9(wr(e),wr(t))}function we(e={},t={}){return JSON.stringify(e)!==JSON.stringify(t)}function wt(e={},t={},r=!1){let n=Object.keys(e),i=Object.keys(t),a=n.filter(e=>!i.includes(e));if(a.length)return e[a[0]].length>1?mG():mK();if(i.filter(e=>!n.includes(e)).length)return r?mH():mV();let o=i.find(r=>t[r].filter(t=>e[r].includes(t)));if(!o)return ou();let s=e[o],l=t[o];return l.filter(e=>!s.includes(e)).length?r?mH():mV():s.filter(e=>!l.includes(e)).length?mK():ou()}function wr(e={}){let t={};return Object.keys(e).forEach(r=>{t[r]=e[r].map(e=>`${e.start}..${e.end}`)}),t}function wn(e,t,r,n){if(void 0===e)return{};let i=Object.entries(e).filter(([e])=>t(e)).map(([e,{request:t}])=>{let n=r(t);return n.length?{[e]:n}:{}}).reduce((e,t)=>({...e,...t}),{});return Object.keys(i).length?{[n]:i}:{}}let wi=new U({parameters:new $({options:{required:!0},values:oS})});function wa(e,t){var r;return{...(r=e.state,{q:aB().q,enableQuerySyntax:aB().enableQuerySyntax,aq:r.advancedSearchQueries?.defaultFilters.aq??o4().defaultFilters.aq,cq:r.advancedSearchQueries?.defaultFilters.cq??o4().defaultFilters.cq,firstResult:sD().firstResult,numberOfResults:r.pagination?.defaultNumberOfResults??sD().defaultNumberOfResults,sortCriteria:aG(),f:{},fExcluded:{},cf:{},nf:{},df:{},debug:ok(),sf:{},tab:"",af:{},mnf:{}}),...t}}function wo(e,t){if(t.tab&&e){let r=Object.values(e).some(e=>e.id===t.tab),n=Object.values(e).find(e=>e.isActive);if(!r&&n)return{...t,tab:n.id};if(!r)return{...t,tab:""}}return t}function ws(e){let t=e.state;return{...function(e,t,r){if(void 0===e)return{};let n=t(e);return n!==r?{q:n}:{}}(t.query,e=>e.q,aB().q),...function(e,t,r){if(void 0===e)return{};let n=t(e);return n!==r?{tab:n}:{}}(t.tabSet,e=>{let t=Object.values(e??{}).find(e=>e.isActive);return t?t.id:Object.keys(e??{})[0]},t.tabSet?Object.keys(t.tabSet)[0]:""),...function(e,t,r){if(void 0===e)return{};let n=t(e);return n!==r?{sortCriteria:n}:{}}(t.sortCriteria,e=>e,aG()),...function(e){let t=e.facetSet;if(void 0===t)return{};let r=wl(e),n={},i={};for(let[e,{request:a}]of Object.entries(t)){if(!r(e))continue;let t=a.currentValues.filter(e=>"selected"===e.state).map(e=>e.value),o=a.currentValues.filter(e=>"excluded"===e.state).map(e=>e.value);t.length&&(n[e]=t),o.length&&(i[e]=o)}return{...Object.keys(n).length?{f:n}:{},...Object.keys(i).length?{fExcluded:i}:{}}}(t),...wn(t.categoryFacetSet,wl(t),e=>aA(e.currentValues).map(e=>e.value),"cf"),...wn(t.numericFacetSet,wl(t),wu,"nf"),...wn(t.dateFacetSet,wl(t),wu,"df"),...function(e){let t=e.automaticFacetSet?.set;if(void 0===t)return{};let r=Object.entries(t).map(([e,{response:t}])=>{let r=t.values.filter(e=>"selected"===e.state).map(e=>e.value);return r.length?{[e]:r}:{}}).reduce((e,t)=>({...e,...t}),{});return Object.keys(r).length?{af:r}:{}}(t)}}function wl(e){let t=function(e){let t=e.tabSet;if(!t)return;let r=Object.values(t).find(e=>e.isActive);return r?.id}(e);return r=>{let n=e.facetOptions?.facets[r],i=n?.enabled??!0,a=g9(n?.tabs,t);return i&&a}}function wu(e){return e.currentValues.filter(e=>"selected"===e.state)}function wc(e){let t=e.state;return{...ws(e),...function(e){if(void 0===e.query)return{};let t=e.query.enableQuerySyntax;return void 0!==t&&t!==aB().enableQuerySyntax?{enableQuerySyntax:t}:{}}(t),...function(e){if(void 0===e.advancedSearchQueries)return{};let{aq:t,defaultFilters:r}=e.advancedSearchQueries;return t!==r.aq?{aq:t}:{}}(t),...function(e){if(void 0===e.advancedSearchQueries)return{};let{cq:t,defaultFilters:r}=e.advancedSearchQueries;return t!==r.cq?{cq:t}:{}}(t),...function(e){if(void 0===e.pagination)return{};let t=e.pagination.firstResult;return t!==sD().firstResult?{firstResult:t}:{}}(t),...function(e){if(void 0===e.pagination)return{};let{numberOfResults:t,defaultNumberOfResults:r}=e.pagination;return t!==r?{numberOfResults:t}:{}}(t),...function(e){if(void 0===e.debug)return{};let t=e.debug;return t!==ok()?{debug:t}:{}}(t),...function(e){if(void 0===e.staticFilterSet)return{};let t=Object.entries(e.staticFilterSet).map(([e,t])=>{let r=t.values.filter(e=>"selected"===e.state).map(e=>e.caption);return r.length?{[e]:r}:{}}).reduce((e,t)=>
26({...e,...t}),{});return Object.keys(t).length?{sf:t}:{}}(t)}}function wd(e){return y8(e)}let wf=()=>new $({values:{questionAnswerId:eY},options:{required:!0}}),wh=t$("smartSnippet/expand"),wp=t$("smartSnippet/collapse"),wg=t$("smartSnippet/like"),wm=t$("smartSnippet/dislike"),wA=t$("smartSnippet/feedbackModal/open"),wy=t$("smartSnippet/feedbackModal/close"),wv=t$("smartSnippet/related/expand",e=>e2(e,wf())),wb=t$("smartSnippet/related/collapse",e=>e2(e,wf())),ww=()=>({liked:!1,disliked:!1,expanded:!1,feedbackModalOpen:!1,relatedQuestions:[]}),wS=(e,t)=>e.findIndex(e=>e.questionAnswerId===t.questionAnswerId);function wI({question:e,answerSnippet:t,documentId:{contentIdKey:r,contentIdValue:n}}){return btoa(encodeURI(JSON.stringify({question:e,answerSnippet:t,contentIdKey:r,contentIdValue:n})))}t9(ww(),e=>e.addCase(wh,e=>{e.expanded=!0}).addCase(wp,e=>{e.expanded=!1}).addCase(wg,e=>{e.liked=!0,e.disliked=!1,e.feedbackModalOpen=!1}).addCase(wm,e=>{e.liked=!1,e.disliked=!0}).addCase(wA,e=>{e.feedbackModalOpen=!0}).addCase(wy,e=>{e.feedbackModalOpen=!1}).addCase(s7.fulfilled,(e,t)=>{let r=t.payload.response.questionAnswer.relatedQuestions.map((t,r)=>(function(e,t){let r=wI(e);return t&&r===t.questionAnswerId?t:{contentIdKey:e.documentId.contentIdKey,contentIdValue:e.documentId.contentIdValue,expanded:!1,questionAnswerId:r}})(t,e.relatedQuestions[r])),n=wI(t.payload.response.questionAnswer);return e.questionAnswerId===n?{...e,relatedQuestions:r}:{...ww(),relatedQuestions:r,questionAnswerId:n}}).addCase(wv,(e,t)=>{let r=wS(e.relatedQuestions,t.payload);-1!==r&&(e.relatedQuestions[r].expanded=!0)}).addCase(wb,(e,t)=>{let r=wS(e.relatedQuestions,t.payload);-1!==r&&(e.relatedQuestions[r].expanded=!1)}));let wE={by:new et({enum:N,required:!0})},wC=t$("sortCriteria/register",e=>wk(e)),wx=t$("sortCriteria/update",e=>wk(e)),wk=e=>ee(e)?(e.forEach(e=>e2(e,wE)),{payload:e}):e2(e,wE),wO=t9(aG(),e=>{e.addCase(wC,(e,t)=>aj(t.payload)).addCase(wx,(e,t)=>aj(t.payload)).addCase(oD.fulfilled,(e,t)=>t.payload?.sortCriteria??e).addCase(oI,(e,t)=>t.payload.sortCriteria??e)});function wT(e,t={}){let{dispatch:r}=e,n=function(e,t){e.addReducers({configuration:c1,sortCriteria:wO});let r=A$(e),{dispatch:n}=e,i=()=>e.state;!function(e,t){if(!t)return;let r=new U({criterion:new X({each:aQ})}),n=t.criterion?ee(t.criterion)?t.criterion:[t.criterion]:[];e3(e,r,{...t,criterion:n},"buildSort")}(e,t.initialState);let a=t.initialState?.criterion;return a&&n(wC(a)),{...r,sortBy(e){n(wx(e)),n(oz(1))},isSortedBy(e){return this.state.sortCriteria===aj(e)},get state(){return{sortCriteria:i().sortCriteria}}}}(e,t),i=()=>r(s7({legacy:b5(),next:b6()}));return{...n,get state(){return n.state},sortBy(e){n.sortBy(e),i()}}}function wR(e){return"redirect"===e.type}class w_{response;constructor(e){this.response=e}get basicExpression(){return this.response.parsedInput.basicExpression}get largeExpression(){return this.response.parsedInput.largeExpression}get redirectionUrl(){let e=this.response.preprocessingOutput.triggers.filter(wR);return e.length?e[0].content:null}}let wD=t$("standaloneSearchBox/register",e=>e2(e,{id:eY,redirectionUrl:eY,overwrite:new V({required:!1})})),wN=t$("standaloneSearchBox/updateRedirectionUrl",e=>e2(e,{id:eY,redirectionUrl:eY})),wM=t$("standaloneSearchBox/reset",e=>e2(e,{id:eY})),wF=t$("standaloneSearchBox/updateAnalyticsToSearchFromLink",e=>e2(e,{id:eY})),wP=t$("standaloneSearchBox/updateAnalyticsToOmniboxFromLink"),wL=rp("standaloneSearchBox/fetchRedirect",async(e,{dispatch:t,getState:r,rejectWithValue:n,extra:{apiClient:i,validatePayload:a,navigatorContext:o}})=>{a(e,{id:new Z({emptyAllowed:!1})});let s=await wj(r(),o),l=await i.plan(s);if(eQ(l))return n(l.error);let{redirectionUrl:u}=new w_(l.success);return u&&t(wB(u)),u||""}),wB=e=>a5("analytics/standaloneSearchBox/redirect",t=>t.makeTriggerRedirect({redirectedTo:e})),wj=async(e,t)=>({accessToken:e.configuration.accessToken,organizationId:e.configuration.organizationId,url:e.configuration.search.apiBaseUrl??ex(e.configuration.organizationId,e.configuration.environment),locale:e.configuration.search.locale,timezone:e.configuration.search.timezone,q:e.query.q,...e.context&&{context:e.context.contextValues},...e.pipeline&&{pipeline:e.pipeline},...e.searchHub&&{searchHub:e.searchHub},...e.configuration.analytics.enabled&&"legacy"===e.configuration.analytics.analyticsMode?await o2(e.configuration.analytics):o0(e.configuration.analytics,t),...e.configuration.search.authenticationProviders.length&&{authentication:e.configuration.search.authenticationProviders.join(",")}});function wU(e){return{defaultRedirectionUrl:e,redirectTo:"",isLoading:!1,analytics:{cause:"",metadata:null}}}function wq(e){return e.query="",e.queryModification={originalQuery:"",newQuery:"",queryToIgnore:e.queryModification.queryToIgnore},e}t9({},e=>e.addCase(wD,(e,t)=>{let{id:r,redirectionUrl:n,overwrite:i}=t.payload;!i&&r in e||(e[r]=wU(n))}).addCase(wM,(e,t)=>{let{id:r}=t.payload,n=e[r];if(n){e[r]=wU(n.defaultRedirectionUrl);return}}).addCase(wN,(e,t)=>{let{id:r,redirectionUrl:n}=t.payload;r in e&&(e[r]=wU(n))}).addCase(wL.pending,(e,t)=>{let r=e[t.meta.arg.id];r&&(r.isLoading=!0)}).addCase(wL.fulfilled,(e,t)=>{let r=t.payload,n=e[t.meta.arg.id];n&&(n.redirectTo=r||n.defaultRedirectionUrl,n.isLoading=!1)}).addCase(wL.rejected,(e,t)=>{let r=e[t.meta.arg.id];r&&(r.isLoading=!1)}).addCase(wF,(e,t)=>{let r=e[t.payload.id];r&&(r.analytics.cause="searchFromLink")}).addCase(wP,(e,t)=>{let r=e[t.payload.id];r&&(r.analytics.cause="omniboxFromLink",r.analytics.metadata=t.payload.metadata)})),new U({...b3,redirectionUrl:new Z({required:!0,emptyAllowed:!1}),overwrite:new V({required:!1})}),t9({},e=>e.addCase(A_,(e,t)=>{let r=t.payload,{id:n}=r;
26n in e||(e[n]=r)}).addCase(AD,(e,t)=>{let{id:r,value:n}=t.payload,i=e[r];if(!i)return;let a=i.values.find(e=>e.caption===n.caption);if(!a)return;let o="selected"===a.state;a.state=o?"idle":"selected"}).addCase(AN,(e,t)=>{let{id:r,value:n}=t.payload,i=e[r];if(!i)return;let a=i.values.find(e=>e.caption===n.caption);if(!a)return;let o="excluded"===a.state;a.state=o?"idle":"excluded"}).addCase(AM,(e,t)=>{let r=e[t.payload];r&&r.values.forEach(e=>{e.state="idle"})}).addCase(oF,e=>{Object.values(e).forEach(e=>{e.values.forEach(e=>{e.state="idle"})})}).addCase(oI,(e,t)=>{let r=t.payload.sf||{};Object.entries(e).forEach(([e,t])=>{let n=r[e]||[];t.values.forEach(e=>{e.state=n.includes(e.caption)?"selected":"idle"})})})),new U({id:eY,values:AR}),new U({expression:ez,id:eY,clearFiltersOnTabChange:new V}),new U({isActive:new V}),t9({redirectTo:"",query:"",executions:[],notifications:[],queryModification:{originalQuery:"",newQuery:"",queryToIgnore:""}},e=>e.addCase(s7.pending,wq).addCase(s7.fulfilled,(e,t)=>(function(e,t){let r=[],n=[],i=[],a=[];return t.forEach(e=>{switch(e.type){case"redirect":r.push(e.content);break;case"query":n.push(e.content);break;case"execute":i.push({functionName:e.content.name,params:e.content.params});break;case"notify":a.push(e.content)}}),e.redirectTo=r[0]??"",e.query=e.queryModification.newQuery,e.executions=i,e.notifications=a,e})(e,t.payload.response.triggers)).addCase(sP,(e,t)=>{var r;return r=t.payload,e.queryModification={...r,queryToIgnore:""},e}).addCase(sF,(e,t)=>{var r;return r=t.payload,e.queryModification.queryToIgnore=r,e}));let wQ=/^(f|fExcluded|cf|nf|df|sf|af|mnf)-(.+)$/,wG={f:!0,fExcluded:!0,cf:!0,sf:!0,af:!0,nf:!0,df:!0,mnf:!0};function wV(){return{serialize:wK(wW),deserialize:wz}}function wH(e){return e in{q:!0,aq:!0,cq:!0,enableQuerySyntax:!0,firstResult:!0,numberOfResults:!0,sortCriteria:!0,debug:!0,tab:!0}||e in wG}let wK=e=>t=>Object.entries(t).map(e).filter(e=>e).join("&");function wW(e){let[t,r]=e;return wH(t)?t in wG&&!(t in wG&&t in{nf:!0,df:!0,mnf:!0})?wY(r)&&wZ(r,e=>"string"==typeof e)?Object.entries(r).map(([e,r])=>`${t}-${e}=${r.map(e=>encodeURIComponent(e)).join(",")}`).join("&"):"":"nf"===t||"df"===t?wY(r)&&wZ(r,e=>wY(e)&&"start"in e&&"end"in e)?Object.entries(r).map(([e,r])=>{let n=r.map(({start:e,end:t,endInclusive:r})=>`${e}${r?"...":".."}${t}`).join(",");return`${t}-${e}=${n}`}).join("&"):"":`${t}=${encodeURIComponent(r)}`:""}function wY(e){return!!(e&&"object"==typeof e)}function wZ(e,t){return 0===Object.entries(e).filter(e=>{let r=e[1];return!Array.isArray(r)||!r.every(t)}).length}function wz(e){return e.split("&").map(e=>(function(e){let[t,...r]=e.split("=");return[t,r.join("=")]})(e)).map(e=>(function(e,t=wQ){var r;let[n,i]=e,a=t.exec(n);if(!a)return e;let o=a[1],s=a[2],l=(r=i.split(","),"nf"===o||"mnf"===o?function(e,t){let r=[];for(let n of e){let{startAsString:e,endAsString:i,isEndInclusive:a}=wX(n),o=parseFloat(e),s=parseFloat(i);Number.isFinite(o)&&Number.isFinite(s)&&r.push({endInclusive:!1,state:"idle",start:o,end:s,state:t,endInclusive:a})}return r}(r,"selected"):"df"===o?function(e,t){let r=[];for(let n of e){let{isEndInclusive:e,startAsString:i,endAsString:a}=wX(n);w$(i)&&w$(a)&&r.push(m6({start:i,end:a,state:t,endInclusive:e}))}return r}(r,"selected"):r);return[o,JSON.stringify({[s]:l})]})(e)).filter(wJ).map(e=>(function(e,t=!0){let[r,n]=e;return"enableQuerySyntax"===r||"debug"===r?[r,"true"===n]:"firstResult"===r||"numberOfResults"===r?[r,parseInt(n)]:r in wG?[r,function(e){let t=JSON.parse(e),r={};return Object.entries(t).forEach(e=>{let[t,n]=e;r[t]=n.map(e=>z(e)?decodeURIComponent(e):e)}),r}(n)]:[r,t?decodeURIComponent(n):n]})(e)).reduce((e,t)=>{let[r,n]=t;if(r in wG){let t={...e[r],...n};return{...e,[r]:t}}return{...e,[r]:n}},{})}function w$(e){try{if(sr(st(e))===e)return sn(e,se),!0;if(sf(e))return sl(e),!0;return!1}catch(e){return!1}}function wJ(e){let t=wH(e[0]),r=2===e.length;return t&&r}function wX(e){let t=-1!==e.indexOf("..."),[r,n]=e.split(t?"...":"..");return{isEndInclusive:t,startAsString:r,endAsString:n}}let w0=new U({fragment:new Z});function w1(e,t){let r;function n(){r=e.state.search.requestId}e.addReducers({configuration:c1}),e3(e,w0,t.initialState,"buildUrlManager");let i=A$(e),a=t.initialState.fragment;n();let o=function(e,t){let{dispatch:r}=e,n=function(e,t){let{dispatch:r}=e,n=A$(e);return e3(e,wi,t.initialState,"buildSearchParameterManager"),r(oI(wo(e.state.tabSet,t.initialState.parameters))),{...n,synchronize(t){r(oI(wo(e.state.tabSet,wa(e,t))))},get state(){return{parameters:ws(e)}}}}(e,t);return{...n,synchronize(t){let i=wc(e),a=wa(e,i),o=wa(e,t);vF(a,o)||(n.synchronize(t),r(s7({legacy:a.q!==o.q?bU():a.sortCriteria!==o.sortCriteria?b5():a.firstResult!==o.firstResult?bh():a.numberOfResults!==o.numberOfResults?bf():we(a.f,o.f)?b9(a.f,o.f):we(a.fExcluded,o.fExcluded)?b9(a.fExcluded,o.fExcluded,!0):we(a.cf,o.cf)?b9(a.cf,o.cf):we(a.af,o.af)?b9(a.af,o.af):we(a.nf,o.nf)?b7(a.nf,o.nf):we(a.df,o.df)?b7(a.df,o.df):oa(),next:a.q!==o.q?bq():a.sortCriteria!==o.sortCriteria?b6():we(a.f,o.f)?wt(a.f,o.f):we(a.fExcluded,o.fExcluded)?wt(a.fExcluded,o.fExcluded,!0):we(a.cf,o.cf)?wt(a.cf,o.cf):we(a.af,o.af)?wt(a.af,o.af):we(a.nf,o.nf)?wt(wr(a.nf),wr(o.nf)):we(a.df,o.df)?wt(wr(a.df),wr(o.df)):ou()})))},get state(){return{parameters:wc(e)}}}}(e,{initialState:{parameters:w2(a)}});return{...i,subscribe(t){let i=()=>{var i;let o=this.state.fragment;(i=a)===o||vF(w2(i),w2(o))||r===e.state.search.requestId||(a=o,t()),n()};return i(),e.subscribe(i)},get state(){return{fragment:wV().serialize(o.state.parameters)}},synchronize(e){a=e;let t=w2(e);o.synchronize(t)}}}function w2(e){return wV().deserialize(e)}rp("analytics/addPageViewEntry",async(e,{getState:t})=>{t().configuration.analytics.enabled&&aZ.getInstance().addElement({name:"PageView",value:e,time:JSON.stringify(new Date)})});let w3=()=>new Z({required:!1,emptyAllowed:!0}),w4=t$("advancedSearchQueries/update",e=>e2(e,{aq:w3(),cq:w3(),lq:w3(),dq:w3()})),w8=t$("advancedSearchQueries/register",e=>e2(e,{aq:w3(),cq:w3(),lq:w3(),dq:w3()})),w5=t9(o4(),e=>{e.addCase(w4,(e,t)=>{let{aq:r,cq:n,lq:i,dq:a}=t.payload;Q(r)||(e.aq=r,e.aqWasSet=!0),Q(n)||(e.cq=n,e.cqWasSet=!0),Q(i)||(e.lq=i,e.lqWasSet=!0),Q(a)||(e.dq=a,e.dqWasSet=!0)}).addCase(w8,(e,t)=>{let{aq:r,cq:n,lq:i,dq:a}=t.payload;Q(r)||(e.defaultFilters.aq=r,e.aqWasSet||(e.aq=r)),Q(n)||(e.defaultFilters.cq=n,e.cqWasSet||(e.cq=n)),Q(i)||(e.defaultFilters.lq=i,e.lqWasSet||(e.lq=i)),Q(a)||(e.defaultFilters.dq=a,e.dqWasSet||(e.dq=a))}).addCase(oD.fulfilled,(e,t)=>t.payload?.advancedSearchQueries??e).addCase(oI,(e,t)=>{let{aq:r,cq:n}
26=t.payload;Q(r)||(e.aq=r,e.aqWasSet=!0),Q(n)||(e.cq=n,e.cqWasSet=!0)})});function w6(e){return e.addReducers({advancedSearchQueries:w5}),{updateAdvancedSearchQueries:w4,registerAdvancedSearchQueries:w8}}let w9=t$("excerptLength/set",e=>e2(e,new K({min:0,required:!0})));function w7(e){return e.addReducers({fields:y4}),{registerFieldsToInclude:yX,enableFetchAllFields:y0,disableFetchAllFields:y1,fetchFieldsDescription:y2}}t9({length:void 0},e=>{e.addCase(w9,(e,t)=>{e.length=t.payload})}),new U({content:new q({required:!0}),conditions:new q({required:!0}),priority:new K({required:!1,default:0,min:0}),fields:new X({required:!1,each:eY})})},67227:function(e,t,r){"use strict";r.d(t,{x7:function(){return L},X5:function(){return D},Me:function(){return T},oo:function(){return U},US:function(){return R},RR:function(){return M},Cp:function(){return P},Qo:function(){return B},dr:function(){return j},cv:function(){return _},Jv:function(){return k},uY:function(){return N},dp:function(){return F}});var n=r(29765);function i(e,t,r){let i,{reference:a,floating:o}=e,s=(0,n.Qq)(t),l=(0,n.Wh)(t),u=(0,n.I4)(l),c=(0,n.k3)(t),d="y"===s,f=a.x+a.width/2-o.width/2,h=a.y+a.height/2-o.height/2,p=a[u]/2-o[u]/2;switch(c){case"top":i={x:f,y:a.y-o.height};break;case"bottom":i={x:f,y:a.y+a.height};break;case"right":i={x:a.x+a.width,y:h};break;case"left":i={x:a.x-o.width,y:h};break;default:i={x:a.x,y:a.y}}switch((0,n.hp)(t)){case"start":i[l]-=p*(r&&d?-1:1);break;case"end":i[l]+=p*(r&&d?-1:1)}return i}let a=async(e,t,r)=>{let{placement:n="bottom",strategy:a="absolute",middleware:o=[],platform:s}=r,l=o.filter(Boolean),u=await (null==s.isRTL?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:f}=i(c,n,u),h=n,p={},g=0;for(let r=0;r<l.length;r++){let{name:o,fn:m}=l[r],{x:A,y:y,data:v,reset:b}=await m({x:d,y:f,initialPlacement:n,placement:h,strategy:a,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});d=null!=A?A:d,f=null!=y?y:f,p={...p,[o]:{...p[o],...v}},b&&g<=50&&(g++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(c=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:a}):b.rects),{x:d,y:f}=i(c,h,u)),r=-1)}return{x:d,y:f,placement:h,strategy:a,middlewareData:p}};async function o(e,t){var r;void 0===t&&(t={});let{x:i,y:a,platform:o,rects:s,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=(0,n.ku)(t,e),g=(0,n.yd)(p),m=l[h?"floating"===f?"reference":"floating":f],A=(0,n.JB)(await o.getClippingRect({element:null==(r=await (null==o.isElement?void 0:o.isElement(m)))||r?m:m.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:u})),y="floating"===f?{x:i,y:a,width:s.floating.width,height:s.floating.height}:s.reference,v=await (null==o.getOffsetParent?void 0:o.getOffsetParent(l.floating)),b=await (null==o.isElement?void 0:o.isElement(v))&&await (null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},w=(0,n.JB)(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:v,strategy:u}):y);return{top:(A.top-w.top+g.top)/b.y,bottom:(w.bottom-A.bottom+g.bottom)/b.y,left:(A.left-w.left+g.left)/b.x,right:(w.right-A.right+g.right)/b.x}}function s(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function l(e){return n.mA.some(t=>e[t]>=0)}function u(e){let t=(0,n.VV)(...e.map(e=>e.left)),r=(0,n.VV)(...e.map(e=>e.top));return{x:t,y:r,width:(0,n.Fp)(...e.map(e=>e.right))-t,height:(0,n.Fp)(...e.map(e=>e.bottom))-r}}let c=new Set(["left","top"]);async function d(e,t){let{placement:r,platform:i,elements:a}=e,o=await (null==i.isRTL?void 0:i.isRTL(a.floating)),s=(0,n.k3)(r),l=(0,n.hp)(r),u="y"===(0,n.Qq)(r),d=c.has(s)?-1:1,f=o&&u?-1:1,h=(0,n.ku)(t,e),{mainAxis:p,crossAxis:g,alignmentAxis:m}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&"number"==typeof m&&(g="end"===l?-1*m:m),u?{x:g*f,y:p*d}:{x:p*d,y:g*f}}var f=r(95260);function h(e){let t=(0,f.Dx)(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,a=(0,f.Re)(e),o=a?e.offsetWidth:r,s=a?e.offsetHeight:i,l=(0,n.NM)(r)!==o||(0,n.NM)(i)!==s;return l&&(r=o,i=s),{width:r,height:i,$:l}}function p(e){return(0,f.kK)(e)?e:e.contextElement}function g(e){let t=p(e);if(!(0,f.Re)(t))return(0,n.ze)(1);let r=t.getBoundingClientRect(),{width:i,height:a,$:o}=h(t),s=(o?(0,n.NM)(r.width):r.width)/i,l=(o?(0,n.NM)(r.height):r.height)/a;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}let m=(0,n.ze)(0);function A(e){let t=(0,f.Jj)(e);
26return(0,f.Pf)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:m}function y(e,t,r,i){var a;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),s=p(e),l=(0,n.ze)(1);t&&(i?(0,f.kK)(i)&&(l=g(i)):l=g(e));let u=(void 0===(a=r)&&(a=!1),i&&(!a||i===(0,f.Jj)(s))&&a)?A(s):(0,n.ze)(0),c=(o.left+u.x)/l.x,d=(o.top+u.y)/l.y,h=o.width/l.x,m=o.height/l.y;if(s){let e=(0,f.Jj)(s),t=i&&(0,f.kK)(i)?(0,f.Jj)(i):i,r=e,n=(0,f.wK)(r);for(;n&&i&&t!==r;){let e=g(n),t=n.getBoundingClientRect(),i=(0,f.Dx)(n),a=t.left+(n.clientLeft+parseFloat(i.paddingLeft))*e.x,o=t.top+(n.clientTop+parseFloat(i.paddingTop))*e.y;c*=e.x,d*=e.y,h*=e.x,m*=e.y,c+=a,d+=o,r=(0,f.Jj)(n),n=(0,f.wK)(r)}}return(0,n.JB)({width:h,height:m,x:c,y:d})}function v(e,t){let r=(0,f.Lw)(e).scrollLeft;return t?t.left+r:y((0,f.tF)(e)).left+r}function b(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-v(e,r),y:r.top+t.scrollTop}}let w=new Set(["absolute","fixed"]);function S(e,t,r){let i;if("viewport"===t)i=function(e,t){let r=(0,f.Jj)(e),n=(0,f.tF)(e),i=r.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;let e=(0,f.Pf)();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}let u=v(n);if(u<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,o=Math.abs(n.clientWidth-t.clientWidth-i);o<=25&&(a-=o)}else u<=25&&(a+=u);return{width:a,height:o,x:s,y:l}}(e,r);else if("document"===t)i=function(e){let t=(0,f.tF)(e),r=(0,f.Lw)(e),i=e.ownerDocument.body,a=(0,n.Fp)(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=(0,n.Fp)(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+v(e),l=-r.scrollTop;return"rtl"===(0,f.Dx)(i).direction&&(s+=(0,n.Fp)(t.clientWidth,i.clientWidth)-a),{width:a,height:o,x:s,y:l}}((0,f.tF)(e));else if((0,f.kK)(t))i=function(e,t){let r=y(e,!0,"fixed"===t),i=r.top+e.clientTop,a=r.left+e.clientLeft,o=(0,f.Re)(e)?g(e):(0,n.ze)(1),s=e.clientWidth*o.x;return{width:s,height:e.clientHeight*o.y,x:a*o.x,y:i*o.y}}(t,r);else{let r=A(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return(0,n.JB)(i)}function I(e){return"static"===(0,f.Dx)(e).position}function E(e,t){if(!(0,f.Re)(e)||"fixed"===(0,f.Dx)(e).position)return null;if(t)return t(e);let r=e.offsetParent;return(0,f.tF)(e)===r&&(r=r.ownerDocument.body),r}function C(e,t){let r=(0,f.Jj)(e);if((0,f.tR)(e))return r;if(!(0,f.Re)(e)){let t=(0,f.Ow)(e);for(;t&&!(0,f.Py)(t);){if((0,f.kK)(t)&&!I(t))return t;t=(0,f.Ow)(t)}return r}let n=E(e,t);for(;n&&(0,f.Ze)(n)&&I(n);)n=E(n,t);return n&&(0,f.Py)(n)&&I(n)&&!(0,f.hT)(n)?r:n||(0,f.gQ)(e)||r}let x=async function(e){let t=this.getOffsetParent||C,r=this.getDimensions,i=await r(e.floating);return{reference:function(e,t,r){let i=(0,f.Re)(t),a=(0,f.tF)(t),o="fixed"===r,s=y(e,!0,o,t),l={scrollLeft:0,scrollTop:0},u=(0,n.ze)(0);if(i||!i&&!o){if(("body"!==(0,f.wk)(t)||(0,f.ao)(a))&&(l=(0,f.Lw)(t)),i){let e=y(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else a&&(u.x=v(a))}o&&!i&&a&&(u.x=v(a));let c=!a||i||o?(0,n.ze)(0):b(a,l);return{x:s.left+l.scrollLeft-u.x-c.x,y:s.top+l.scrollTop-u.y-c.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},k={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:i,strategy:a}=e,o="fixed"===a,s=(0,f.tF)(i),l=!!t&&(0,f.tR)(t.floating);if(i===s||l&&o)return r;let u={scrollLeft:0,scrollTop:0},c=(0,n.ze)(1),d=(0,n.ze)(0),h=(0,f.Re)(i);if((h||!h&&!o)&&(("body"!==(0,f.wk)(i)||(0,f.ao)(s))&&(u=(0,f.Lw)(i)),(0,f.Re)(i))){let e=y(i);c=g(i),d.x=e.x+i.clientLeft,d.y=e.y+i.clientTop}let p=!s||h||o?(0,n.ze)(0):b(s,u);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-u.scrollLeft*c.x+d.x+p.x,y:r.y*c.y-u.scrollTop*c.y+d.y+p.y}},getDocumentElement:f.tF,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:i,strategy:a}=e,o=[..."clippingAncestors"===r?(0,f.tR)(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=(0,f.Kx)(e,[],!1).filter(e=>(0,f.kK)(e)&&"body"!==(0,f.wk)(e)),i=null,a="fixed"===(0,f.Dx)(e).position,o=a?(0,f.Ow)(e):e;for(;(0,f.kK)(o)&&!(0,f.Py)(o);){let t=(0,f.Dx)(o),r=(0,f.hT)(o);r||"fixed"!==t.position||(i=null),(a?!r&&!i:!r&&"static"===t.position&&!!i&&w.has(i.position)||(0,f.ao)(o)&&!r&&function e(t,r){let n=(0,f.Ow)(t);return!(n===r||!(0,f.kK)(n)||(0,f.Py)(n))&&("fixed"===(0,f.Dx)(n).position||e(n,r))}(e,o))?n=n.filter(e=>e!==o):i=t,o=(0,f.Ow)(o)}return t.set(e,n),n}(t,this._c):[].concat(r),i],s=o[0],l=o.reduce((e,r)=>{let i=S(t,r,a);return e.top=(0,n.Fp)(i.top,e.top),e.right=(0,n.VV)(i.right,e.right),e.bottom=(0,n.VV)(i.bottom,e.bottom),e.left=(0,n.Fp)(i.left,e.left),e},S(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:C,getElementRects:x,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=h(e);return{width:t,height:r}},getScale:g,isElement:f.kK,isRTL:function(e){return"rtl"===(0,f.Dx)(e).direction}};function O(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}
26function T(e,t,r,i){let a;void 0===i&&(i={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:c=!1}=i,d=p(e),h=o||s?[...d?(0,f.Kx)(d):[],...(0,f.Kx)(t)]:[];h.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),s&&e.addEventListener("resize",r)});let g=d&&u?function(e,t){let r,i=null,a=(0,f.tF)(e);function o(){var e;clearTimeout(r),null==(e=i)||e.disconnect(),i=null}return!function s(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),o();let c=e.getBoundingClientRect(),{left:d,top:f,width:h,height:p}=c;if(l||t(),!h||!p)return;let g=(0,n.GW)(f),m=(0,n.GW)(a.clientWidth-(d+h)),A={rootMargin:-g+"px "+-m+"px "+-(0,n.GW)(a.clientHeight-(f+p))+"px "+-(0,n.GW)(d)+"px",threshold:(0,n.Fp)(0,(0,n.VV)(1,u))||1},y=!0;function v(t){let n=t[0].intersectionRatio;if(n!==u){if(!y)return s();n?s(!1,n):r=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==n||O(c,e.getBoundingClientRect())||s(),y=!1}try{i=new IntersectionObserver(v,{...A,root:a.ownerDocument})}catch(e){i=new IntersectionObserver(v,A)}i.observe(e)}(!0),o}(d,r):null,m=-1,A=null;l&&(A=new ResizeObserver(e=>{let[n]=e;n&&n.target===d&&A&&(A.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=A)||e.observe(t)})),r()}),d&&!c&&A.observe(d),A.observe(t));let v=c?y(e):null;return c&&function t(){let n=y(e);v&&!O(v,n)&&r(),v=n,a=requestAnimationFrame(t)}(),r(),()=>{var e;h.forEach(e=>{o&&e.removeEventListener("scroll",r),s&&e.removeEventListener("resize",r)}),null==g||g(),null==(e=A)||e.disconnect(),A=null,c&&cancelAnimationFrame(a)}}let R=o,_=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:a,placement:o,middlewareData:s}=t,l=await d(t,e);return o===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},D=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,a,s;let{rects:l,middlewareData:u,placement:c,platform:d,elements:f}=t,{crossAxis:h=!1,alignment:p,allowedPlacements:g=n.Ct,autoAlignment:m=!0,...A}=(0,n.ku)(e,t),y=void 0!==p||g===n.Ct?((s=p||null)?[...g.filter(e=>(0,n.hp)(e)===s),...g.filter(e=>(0,n.hp)(e)!==s)]:g.filter(e=>(0,n.k3)(e)===e)).filter(e=>!s||(0,n.hp)(e)===s||!!m&&(0,n.Go)(e)!==e):g,v=await o(t,A),b=(null==(r=u.autoPlacement)?void 0:r.index)||0,w=y[b];if(null==w)return{};let S=(0,n.i8)(w,l,await (null==d.isRTL?void 0:d.isRTL(f.floating)));if(c!==w)return{reset:{placement:y[0]}};let I=[v[(0,n.k3)(w)],v[S[0]],v[S[1]]],E=[...(null==(i=u.autoPlacement)?void 0:i.overflows)||[],{placement:w,overflows:I}],C=y[b+1];if(C)return{data:{index:b+1,overflows:E},reset:{placement:C}};let x=E.map(e=>{let t=(0,n.hp)(e.placement);return[e.placement,t&&h?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),k=(null==(a=x.filter(e=>e[2].slice(0,(0,n.hp)(e[0])?2:3).every(e=>e<=0))[0])?void 0:a[0])||x[0][0];return k!==c?{data:{index:b+1,overflows:E},reset:{placement:k}}:{}}}},N=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:a}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=(0,n.ku)(e,t),d={x:r,y:i},f=await o(t,c),h=(0,n.Qq)((0,n.k3)(a)),p=(0,n.Rn)(h),g=d[p],m=d[h];
26if(s){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",r=g+f[e],i=g-f[t];g=(0,n.uZ)(r,g,i)}if(l){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",r=m+f[e],i=m-f[t];m=(0,n.uZ)(r,m,i)}let A=u.fn({...t,[p]:g,[h]:m});return{...A,data:{x:A.x-r,y:A.y-i,enabled:{[p]:s,[h]:l}}}}}},M=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,i,a,s,l;let{placement:u,middlewareData:c,rects:d,initialPlacement:f,platform:h,elements:p}=t,{mainAxis:g=!0,crossAxis:m=!0,fallbackPlacements:A,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:b=!0,...w}=(0,n.ku)(e,t);if(null!=(r=c.arrow)&&r.alignmentOffset)return{};let S=(0,n.k3)(u),I=(0,n.Qq)(f),E=(0,n.k3)(f)===f,C=await (null==h.isRTL?void 0:h.isRTL(p.floating)),x=A||(E||!b?[(0,n.pw)(f)]:(0,n.gy)(f)),k="none"!==v;!A&&k&&x.push(...(0,n.KX)(f,b,v,C));let O=[f,...x],T=await o(t,w),R=[],_=(null==(i=c.flip)?void 0:i.overflows)||[];if(g&&R.push(T[S]),m){let e=(0,n.i8)(u,d,C);R.push(T[e[0]],T[e[1]])}if(_=[..._,{placement:u,overflows:R}],!R.every(e=>e<=0)){let e=((null==(a=c.flip)?void 0:a.index)||0)+1,t=O[e];if(t&&(!("alignment"===m&&I!==(0,n.Qq)(t))||_.every(e=>(0,n.Qq)(e.placement)!==I||e.overflows[0]>0)))return{data:{index:e,overflows:_},reset:{placement:t}};let r=null==(s=_.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:s.placement;if(!r)switch(y){case"bestFit":{let e=null==(l=_.filter(e=>{if(k){let t=(0,n.Qq)(e.placement);return t===I||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(r=e);break}case"initialPlacement":r=f}if(u!==r)return{reset:{placement:r}}}return{}}}},F=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,i;let a,s;let{placement:l,rects:u,platform:c,elements:d}=t,{apply:f=()=>{},...h}=(0,n.ku)(e,t),p=await o(t,h),g=(0,n.k3)(l),m=(0,n.hp)(l),A="y"===(0,n.Qq)(l),{width:y,height:v}=u.floating;"top"===g||"bottom"===g?(a=g,s=m===(await (null==c.isRTL?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(s=g,a="end"===m?"top":"bottom");let b=v-p.top-p.bottom,w=y-p.left-p.right,S=(0,n.VV)(v-p[a],b),I=(0,n.VV)(y-p[s],w),E=!t.middlewareData.shift,C=S,x=I;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(x=w),null!=(i=t.middlewareData.shift)&&i.enabled.y&&(C=b),E&&!m){let e=(0,n.Fp)(p.left,0),t=(0,n.Fp)(p.right,0),r=(0,n.Fp)(p.top,0),i=(0,n.Fp)(p.bottom,0);A?x=y-2*(0!==e||0!==t?e+t:(0,n.Fp)(p.left,p.right)):C=v-2*(0!==r||0!==i?r+i:(0,n.Fp)(p.top,p.bottom))}await f({...t,availableWidth:x,availableHeight:C});let k=await c.getDimensions(d.floating);return y!==k.width||v!==k.height?{reset:{rects:!0}}:{}}}},P=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:i="referenceHidden",...a}=(0,n.ku)(e,t);switch(i){case"referenceHidden":{let e=s(await o(t,{...a,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:l(e)}}}case"escaped":{let e=s(await o(t,{...a,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:l(e)}}}default:return{}}}}},L=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:i,placement:a,rects:o,platform:s,elements:l,middlewareData:u}=t,{element:c,padding:d=0}=(0,n.ku)(e,t)||{};if(null==c)return{};let f=(0,n.yd)(d),h={x:r,y:i},p=(0,n.Wh)(a),g=(0,n.I4)(p),m=await s.getDimensions(c),A="y"===p,y=A?"clientHeight":"clientWidth",v=o.reference[g]+o.reference[p]-h[p]-o.floating[g],b=h[p]-o.reference[p],w=await (null==s.getOffsetParent?void 0:s.getOffsetParent(c)),S=w?w[y]:0;S&&await (null==s.isElement?void 0:s.isElement(w))||(S=l.floating[y]||o.floating[g]);let I=S/2-m[g]/2-1,E=(0,n.VV)(f[A?"top":"left"],I),C=(0,n.VV)(f[A?"bottom":"right"],I),x=S-m[g]-C,k=S/2-m[g]/2+(v/2-b/2),O=(0,n.uZ)(E,k,x),T=!u.arrow&&null!=(0,n.hp)(a)&&k!==O&&o.reference[g]/2-(k<E?E:C)-m[g]/2<0,R=T?k<E?k-E:k-x:0;return{[p]:h[p]+R,data:{[p]:O,centerOffset:k-O-R,...T&&{alignmentOffset:R}},reset:T}}}),B=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:r,elements:i,rects:a,platform:o,strategy:s}=t,{padding:l=2,x:c,y:d}=(0,n.ku)(e,t),f=Array.from(await (null==o.getClientRects?void 0:o.getClientRects(i.reference))||[]),h=function(e){let t=e.slice().sort((e,t)=>
26e.y-t.y),r=[],i=null;for(let e=0;e<t.length;e++){let n=t[e];!i||n.y-i.y>i.height/2?r.push([n]):r[r.length-1].push(n),i=n}return r.map(e=>(0,n.JB)(u(e)))}(f),p=(0,n.JB)(u(f)),g=(0,n.yd)(l),m=await o.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=c&&null!=d)return h.find(e=>c>e.left-g.left&&c<e.right+g.right&&d>e.top-g.top&&d<e.bottom+g.bottom)||p;if(h.length>=2){if("y"===(0,n.Qq)(r)){let e=h[0],t=h[h.length-1],i="top"===(0,n.k3)(r),a=e.top,o=t.bottom,s=i?e.left:t.left,l=i?e.right:t.right;return{top:a,bottom:o,left:s,right:l,width:l-s,height:o-a,x:s,y:a}}let e="left"===(0,n.k3)(r),t=(0,n.Fp)(...h.map(e=>e.right)),i=(0,n.VV)(...h.map(e=>e.left)),a=h.filter(r=>e?r.left===i:r.right===t),o=a[0].top,s=a[a.length-1].bottom;return{top:o,bottom:s,left:i,right:t,width:t-i,height:s-o,x:i,y:o}}return p}},floating:i.floating,strategy:s});return a.reference.x!==m.reference.x||a.reference.y!==m.reference.y||a.reference.width!==m.reference.width||a.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}},j=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:r,y:i,placement:a,rects:o,middlewareData:s}=t,{offset:l=0,mainAxis:u=!0,crossAxis:d=!0}=(0,n.ku)(e,t),f={x:r,y:i},h=(0,n.Qq)(a),p=(0,n.Rn)(h),g=f[p],m=f[h],A=(0,n.ku)(l,t),y="number"==typeof A?{mainAxis:A,crossAxis:0}:{mainAxis:0,crossAxis:0,...A};if(u){let e="y"===p?"height":"width",t=o.reference[p]-o.floating[e]+y.mainAxis,r=o.reference[p]+o.reference[e]-y.mainAxis;g<t?g=t:g>r&&(g=r)}if(d){var v,b;let e="y"===p?"width":"height",t=c.has((0,n.k3)(a)),r=o.reference[h]-o.floating[e]+(t&&(null==(v=s.offset)?void 0:v[h])||0)+(t?0:y.crossAxis),i=o.reference[h]+o.reference[e]+(t?0:(null==(b=s.offset)?void 0:b[h])||0)-(t?y.crossAxis:0);m<r?m=r:m>i&&(m=i)}return{[p]:g,[h]:m}}}},U=(e,t,r)=>{let n=new Map,i={platform:k,...r},o={...i.platform,_c:n};return a(e,t,{...i,platform:o})}},92859:function(e,t,r){"use strict";r.d(t,{Cp:function(){return v},Qo:function(){return b},RR:function(){return m},X5:function(){return y},YF:function(){return d},cv:function(){return h},dp:function(){return A},dr:function(){return g},uY:function(){return p},x7:function(){return w}});var n=r(67227),i=r(91500),a=r(38361),o="undefined"!=typeof document?i.useLayoutEffect:function(){};function s(e,t){let r,n,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!s(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!e.$$typeof)&&!s(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function l(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){let r=l(e);return Math.round(t*r)/r}function c(e){let t=i.useRef(e);return o(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:d=[],platform:f,elements:{reference:h,floating:p}={},transform:g=!0,whileElementsMounted:m,open:A}=e,[y,v]=i.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[b,w]=i.useState(d);s(b,d)||w(d);let[S,I]=i.useState(null),[E,C]=i.useState(null),x=i.useCallback(e=>{e!==R.current&&(R.current=e,I(e))},[]),k=i.useCallback(e=>{e!==_.current&&(_.current=e,C(e))},[]),O=h||S,T=p||E,R=i.useRef(null),_=i.useRef(null),D=i.useRef(y),N=null!=m,M=c(m),F=c(f),P=c(A),L=i.useCallback(()=>{if(!R.current||!_.current)return;let e={placement:t,strategy:r,middleware:b};F.current&&(e.platform=F.current),(0,n.oo)(R.current,_.current,e).then(e=>{let t={...e,isPositioned:!1!==P.current};B.current&&!s(D.current,t)&&(D.current=t,a.flushSync(()=>{v(t)}))})},[b,t,r,F,P]);o(()=>{!1===A&&D.current.isPositioned&&(D.current.isPositioned=!1,v(e=>({...e,isPositioned:!1})))},[A]);let B=i.useRef(!1);o(()=>(B.current=!0,()=>{B.current=!1}),[]),o(()=>{if(O&&(R.current=O),T&&(_.current=T),O&&T){if(M.current)return M.current(O,T,L);L()}},[O,T,L,M,N]);let j=i.useMemo(()=>({reference:R,floating:_,setReference:x,setFloating:k}),[x,k]),U=i.useMemo(()=>({reference:O,floating:T}),[O,T]),q=i.useMemo(()=>{let e={position:r,left:0,top:0};if(!U.floating)return e;let t=u(U.floating,y.x),n=u(U.floating,y.y);return g?{...e,transform:"translate("+t+"px, "+n+"px)",...l(U.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,g,U.floating,y.x,y.y]);return i.useMemo(()=>({...y,update:L,refs:j,elements:U,floatingStyles:q}),[y,L,j,U,q])}let f=e=>({name:"arrow",options:e,fn(t){let{element:r,padding:i}="function"==typeof e?e(t):e;return r&&({}).hasOwnProperty.call(r,"current")?null!=r.current?(0,n.x7)({element:r.current,padding:i}).fn(t):{}:r?(0,n.x7)({element:r,padding:i}).fn(t):{}}}),h=(e,t)=>({...(0,n.cv)(e),options:[e,t]}),p=(e,t)=>({...(0,n.uY)(e),options:[e,t]}),g=(e,t)=>({...(0,n.dr)(e),options:[e,t]}),m=(e,t)=>
26({...(0,n.RR)(e),options:[e,t]}),A=(e,t)=>({...(0,n.dp)(e),options:[e,t]}),y=(e,t)=>({...(0,n.X5)(e),options:[e,t]}),v=(e,t)=>({...(0,n.Cp)(e),options:[e,t]}),b=(e,t)=>({...(0,n.Qo)(e),options:[e,t]}),w=(e,t)=>({...f(e),options:[e,t]})},59302:function(e,t,r){"use strict";r.d(t,{AW:function(){return i},G6:function(){return c},Ie:function(){return w},MM:function(){return p},Me:function(){return m},Pe:function(){return A},U9:function(){return y},V5:function(){return f},Xf:function(){return o},Zj:function(){return l},cr:function(){return u},ex:function(){return g},ij:function(){return s},j7:function(){return v},p7:function(){return b},r:function(){return h},r3:function(){return a}});var n=r(95260);function i(e){let t=e.activeElement;for(;(null==(r=t)||null==(r=r.shadowRoot)?void 0:r.activeElement)!=null;){var r;t=t.shadowRoot.activeElement}return t}function a(e,t){if(!e||!t)return!1;let r=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&(0,n.Zq)(r)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function o(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function s(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:r}=e;return t+"/"+r}).join(" "):navigator.userAgent}function l(e){return 0===e.mozInputSource&&!!e.isTrusted||(d()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function u(e){return!s().includes("jsdom/")&&(!d()&&0===e.width&&0===e.height||d()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function c(){return/apple/i.test(navigator.vendor)}function d(){let e=/android/i;return e.test(o())||e.test(s())}function f(){return o().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function h(e,t){let r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function p(e){return"nativeEvent"in e}function g(e){return e.matches("html,body")}function m(e){return(null==e?void 0:e.ownerDocument)||document}function A(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function y(e){return"composedPath"in e?e.composedPath()[0]:e.target}function v(e){return(0,n.Re)(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function b(e){e.preventDefault(),e.stopPropagation()}function w(e){return!!e&&"combobox"===e.getAttribute("role")&&v(e)}},95260:function(e,t,r){"use strict";function n(){return"undefined"!=typeof window}function i(e){return s(e)?(e.nodeName||"").toLowerCase():"#document"}function a(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function o(e){var t;return null==(t=(s(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function s(e){return!!n()&&(e instanceof Node||e instanceof a(e).Node)}function l(e){return!!n()&&(e instanceof Element||e instanceof a(e).Element)}function u(e){return!!n()&&(e instanceof HTMLElement||e instanceof a(e).HTMLElement)}function c(e){return!!n()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof a(e).ShadowRoot)}r.d(t,{Dx:function(){return C},Jj:function(){return a},Kx:function(){return function e(t,r,n){var i;void 0===r&&(r=[]),void 0===n&&(n=!0);let o=function e(t){let r=k(t);return E(r)?t.ownerDocument?t.ownerDocument.body:t.body:u(r)&&f(r)?r:e(r)}(t),s=o===(null==(i=t.ownerDocument)?void 0:i.body),l=a(o);if(s){let t=O(l);return r.concat(l,l.visualViewport||[],f(o)?o:[],t&&n?e(t):[])}return r.concat(o,e(o,[],n))}},Lw:function(){return x},Ow:function(){return k},Pf:function(){return S},Py:function(){return E},Re:function(){return u},Ze:function(){return p},Zq:function(){return c},ao:function(){return f},gQ:function(){return w},hT:function(){return b},kK:function(){return l},tF:function(){return o},tR:function(){return m},wK:function(){return O},wk:function(){return i}});let d=new Set(["inline","contents"]);function f(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=C(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!d.has(i)}let h=new Set(["table","td","th"]);function p(e){return h.has(i(e))}let g=[":popover-open",":modal"];function m(e){return g.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let A=["transform","translate","scale","rotate","perspective"],y=["transform","translate","scale","rotate","perspective","filter"],v=["paint","layout","strict","content"];function b(e){let t=S(),r=l(e)?C(e):e;
26return A.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||y.some(e=>(r.willChange||"").includes(e))||v.some(e=>(r.contain||"").includes(e))}function w(e){let t=k(e);for(;u(t)&&!E(t);){if(b(t))return t;if(m(t))break;t=k(t)}return null}function S(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let I=new Set(["html","body","#document"]);function E(e){return I.has(i(e))}function C(e){return a(e).getComputedStyle(e)}function x(e){return l(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function k(e){if("html"===i(e))return e;let t=e.assignedSlot||e.parentNode||c(e)&&e.host||o(e);return c(t)?t.host:t}function O(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},29765:function(e,t,r){"use strict";r.d(t,{Ct:function(){return i},Fp:function(){return o},GW:function(){return l},Go:function(){return I},I4:function(){return A},JB:function(){return _},KX:function(){return O},NM:function(){return s},Qq:function(){return v},Rn:function(){return m},VV:function(){return a},Wh:function(){return b},gy:function(){return S},hp:function(){return g},i8:function(){return w},k3:function(){return p},ku:function(){return h},mA:function(){return n},pw:function(){return T},uZ:function(){return f},yd:function(){return R},ze:function(){return u}});let n=["top","right","bottom","left"],i=n.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),a=Math.min,o=Math.max,s=Math.round,l=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function f(e,t,r){return o(e,a(t,r))}function h(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function g(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function A(e){return"y"===e?"height":"width"}let y=new Set(["top","bottom"]);function v(e){return y.has(p(e))?"y":"x"}function b(e){return m(v(e))}function w(e,t,r){void 0===r&&(r=!1);let n=g(e),i=b(e),a=A(i),o="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=T(o)),[o,T(o)]}function S(e){let t=T(e);return[I(e),t,I(t)]}function I(e){return e.replace(/start|end/g,e=>d[e])}let E=["left","right"],C=["right","left"],x=["top","bottom"],k=["bottom","top"];function O(e,t,r,n){let i=g(e),a=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?C:E;return t?E:C;case"left":case"right":return t?x:k;default:return[]}}(p(e),"start"===r,n);return i&&(a=a.map(e=>e+"-"+i),t&&(a=a.concat(a.map(I)))),a}function T(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function R(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function _(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}},36852:function(e,t,r){"use strict";let n,i,a,o;r.d(t,{hQ:function(){return eY},gA:function(){return eV},O2:function(){return eW},L5:function(){return eK}});var s=r(4304),l=r(5554),u=r(91500),c=r(38361);function d(e,t,r){let n,i=r.initialDeps??[],a=!0;function o(){var o,s,l;let u,c;r.key&&(null==(o=r.debug)?void 0:o.call(r))&&(u=Date.now());let d=e();if(!(d.length!==i.length||d.some((e,t)=>i[t]!==e)))return n;if(i=d,r.key&&(null==(s=r.debug)?void 0:s.call(r))&&(c=Date.now()),n=t(...d),r.key&&(null==(l=r.debug)?void 0:l.call(r))){let e=Math.round((Date.now()-u)*100)/100,t=Math.round((Date.now()-c)*100)/100,n=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%câ± ${i(t,5)} /${i(e,5)} ms`,` 27 font-size: .6rem; 28 font-weight: bold; 29 color: hsl(${Math.max(0,Math.min(120-120*n,120))}deg 100% 31%);`,null==r?void 0:r.key)}return(null==r?void 0:r.onChange)&&!(a&&r.skipInitialOnChange)&&r.onChange(n),a=!1,n}return o.updateDeps=e=>{i=e},o}function f(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let h=(e,t)=>1.01>Math.abs(e-t),p=(e,t,r)=>{let n;return function(...i){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,i),r)}},g=e=>{let{offsetWidth:t,offsetHeight:r}=e;return{width:t,height:r}},m=e=>e,A=e=>{let t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let e=t;e<=r;e++)n.push(e);return n},y=(e,t)=>{let r=e.scrollElement;if(!r)return;let n=e.targetWindow;if(!n)return;let i=e=>{let{width:r,height:n}=e;t({width:Math.round(r),height:Math.round(n)})};if(i(g(r)),!n.ResizeObserver)return()=>{};let a=new n.ResizeObserver(t=>{let n=()=>{let e=t[0];if(null==e?void 0:e.borderBoxSize){let t=e.borderBoxSize[0];if(t){i({width:t.inlineSize,height:t.blockSize});return}}i(g(r))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(n):n()});return a.observe(r,{box:"border-box"}),()=>{a.unobserve(r)}},v={passive:!0},b="undefined"==typeof window||"onscrollend"in window,w=(e,t)=>{let r=e.scrollElement;if(!r)return;let n=e.targetWindow;if(!n)return;let i=0,a=e.options.useScrollendEvent&&b?()=>void 0:p(n,()=>{t(i,!1)},e.options.isScrollingResetDelay),o=n=>()=>{let{horizontal:o,isRtl:s}=e.options;i=o?r.scrollLeft*(s&&-1||1):r.scrollTop,a(),t(i,n)},s=o(!0),l=o(!1);r.addEventListener("scroll",s,v);let u=e.options.useScrollendEvent&&b;return u&&r.addEventListener("scrollend",l,v),()=>{r.removeEventListener("scroll",s),u&&r.removeEventListener("scrollend",l)}},S=(e,t,r)=>{if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[r.options.horizontal?"inlineSize":"blockSize"])}return e[r.options.horizontal?"offsetWidth":"offsetHeight"]}
29,I=(e,{adjustments:t=0,behavior:r},n)=>{var i,a;null==(a=null==(i=n.scrollElement)?void 0:i.scrollTo)||a.call(i,{[n.options.horizontal?"left":"top"]:e+t,behavior:r})};class E{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.currentScrollToIndex=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var r;null==(r=t())||r.disconnect(),e=null},observe:e=>{var r;return null==(r=t())?void 0:r.observe(e,{box:"border-box"})},unobserve:e=>{var r;return null==(r=t())?void 0:r.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,r])=>{void 0===r&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:m,rangeExtractor:A,onChange:()=>{},measureElement:S,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,r;null==(r=(t=this.options).onChange)||r.call(t,this,e)},this.maybeNotify=d(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t){this.maybeNotify();return}this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}}
29,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let r=new Map,n=new Map;for(let i=t-1;i>=0;i--){let t=e[i];if(r.has(t.lane))continue;let a=n.get(t.lane);if(null==a||t.end>a.end?n.set(t.lane,t):t.end<a.end&&r.set(t.lane,!0),r.size===this.options.lanes)break}return n.size===this.options.lanes?Array.from(n.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=d(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(e,t,r,n,i,a)=>(void 0!==this.prevLanes&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:r,getItemKey:n,enabled:i,lanes:a}),{key:!1}),this.getMeasurements=d(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:r,getItemKey:n,enabled:i,lanes:a},o)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let s=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);let l=this.measurementsCache.slice(0,s),u=Array(a).fill(void 0);for(let e=0;e<s;e++){let t=l[e];t&&(u[t.lane]=e)}for(let i=s;i<e;i++){let e,a;let s=n(i),c=this.laneAssignments.get(i);if(void 0!==c&&this.options.lanes>1){let n=u[e=c],i=void 0!==n?l[n]:void 0;a=i?i.end+this.options.gap:t+r}else{let n=1===this.options.lanes?l[i-1]:this.getFurthestMeasurement(l,i);a=n?n.end+this.options.gap:t+r,e=n?n.lane:i%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(i,e)}let d=o.get(s),f="number"==typeof d?d:this.options.estimateSize(i),h=a+f;l[i]={index:i,start:a,size:f,end:h,key:s,lane:e},u[e]=i}return this.measurementsCache=l,l},{key:!1,debug:()=>this.options.debug}),this.calculateRange=d(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,r,n)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:r,lanes:n}){let i=e.length-1;if(e.length<=n)return{startIndex:0,endIndex:i};let a=C(0,i,t=>e[t].start,r),o=a;if(1===n)for(;o<i&&e[o].end<r+t;)o++;else if(n>1){let s=Array(n).fill(0);for(;o<i&&s.some(e=>e<r+t);){let t=e[o];s[t.lane]=t.end,o++}let l=Array(n).fill(r+t);for(;a>=0&&l.some(e=>e>=r);){let t=e[a];l[t.lane]=t.start,a--}a=Math.max(0,a-a%n),o=Math.min(i,o+(n-1-o%n))}return{startIndex:a,endIndex:o}}({measurements:e,outerSize:t,scrollOffset:r,lanes:n}):null,{key:!1,debug:()=>this.options.debug}
29),this.getVirtualIndexes=d(()=>{let e=null,t=null,r=this.calculateRange();return r&&(e=r.startIndex,t=r.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,r,n,i)=>null===n||null===i?[]:e({startIndex:n,endIndex:i,overscan:t,count:r}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,r=e.getAttribute(t);return r?parseInt(r,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let r=this.indexFromElement(e),n=this.measurementsCache[r];if(!n)return;let i=n.key,a=this.elementsCache.get(i);a!==e&&(a&&this.observer.unobserve(a),this.observer.observe(e),this.elementsCache.set(i,e)),e.isConnected&&this.resizeItem(r,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{let r=this.measurementsCache[e];if(!r)return;let n=t-(this.itemSizeCache.get(r.key)??r.size);0!==n&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(r,n,this):r.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=n,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(r.index),this.itemSizeCache=new Map(this.itemSizeCache.set(r.key,t)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}this._measureElement(e,void 0)},this.getVirtualItems=d(()=>
29[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let r=[];for(let n=0,i=e.length;n<i;n++){let i=t[e[n]];r.push(i)}return r},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0!==t.length)return f(t[C(0,t.length-1,e=>f(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,t,r=0)=>{if(!this.scrollElement)return 0;let n=this.getSize(),i=this.getScrollOffset();return"auto"===t&&(t=e>=i+n?"end":"start"),"center"===t?e+=(r-n)/2:"end"===t&&(e-=n),Math.max(Math.min(this.getMaxScrollOffset(),e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let r=this.measurementsCache[e];if(!r)return;let n=this.getSize(),i=this.getScrollOffset();if("auto"===t){if(r.end>=i+n-this.options.scrollPaddingEnd)t="end";else{if(!(r.start<=i+this.options.scrollPaddingStart))return[i,t];t="start"}}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let a="end"===t?r.end+this.options.scrollPaddingEnd:r.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,t,r.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(e,{align:t="start",behavior:r}={})=>{"smooth"===r&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:r})},this.scrollToIndex=(e,{align:t="auto",behavior:r}={})=>{"smooth"===r&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,this.options.count-1)),this.currentScrollToIndex=e;let n=0,i=t=>{if(!this.targetWindow)return;let n=this.getOffsetForIndex(e,t);if(!n){console.warn("Failed to get offset for index:",e);return}let[i,o]=n;this._scrollToOffset(i,{adjustments:void 0,behavior:r}),this.targetWindow.requestAnimationFrame(()=>{let t=()=>{if(this.currentScrollToIndex!==e)return;let t=this.getScrollOffset(),r=this.getOffsetForIndex(e,o);if(!r){console.warn("Failed to get offset for index:",e);return}h(r[0],t)||a(o)};this.isDynamicMode()?this.targetWindow.requestAnimationFrame(t):t()})},a=t=>{this.targetWindow&&this.currentScrollToIndex===e&&(++n<10?this.targetWindow.requestAnimationFrame(()=>i(t)):console.warn(`Failed to scroll to index ${e} after 10 attempts.`))};i(t)},this.scrollBy=(e,{behavior:t}={})=>{"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adju
29stments:void 0,behavior:t})},this.getTotalSize=()=>{var e;let t;let r=this.getMeasurements();if(0===r.length)t=this.options.paddingStart;else if(1===this.options.lanes)t=(null==(e=r[r.length-1])?void 0:e.end)??0;else{let e=Array(this.options.lanes).fill(null),n=r.length-1;for(;n>=0&&e.some(e=>null===e);){let t=r[n];null===e[t.lane]&&(e[t.lane]=t.end),n--}t=Math.max(...e.filter(e=>null!==e))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:r})=>{this.options.scrollToFn(e,{behavior:r,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}}let C=(e,t,r,n)=>{for(;e<=t;){let i=(e+t)/2|0,a=r(i);if(a<n)e=i+1;else{if(!(a>n))return i;t=i-1}}return e>0?e-1:0},x="undefined"!=typeof document?u.useLayoutEffect:u.useEffect;var k=r(38912),O=r(57567),T=r(86440),R=r(22856),_=r(37703),D=r(79264),N=r(73415),M=r(75414),F=r(68499),P=r(6464),L=r(23036),B=r(90254),j=r(13886),U=r(63085),q=r(25737),Q=r(20154),G=r(57167),V=r(11598);function H(e){let t=(0,u.useRef)({value:"",selectionStart:null,selectionEnd:null});return(0,V.O)(e,"blur",e=>{let r=e.target;Q.LL(r)&&(t.current={value:r.value,selectionStart:r.selectionStart,selectionEnd:r.selectionEnd})}),(0,N.z)(()=>{if(!(0,G.H9)(e)&&Q.LL(e)&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==t.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:r,selectionEnd:n}=t.current;null!==r&&null!==n&&e.setSelectionRange(r,n)}t.current={value:"",selectionStart:null,selectionEnd:null}}})}var K=r(98519),W=r(21571),Y=r(32164),Z=r(16536),z=r(76411),$=r(73924),J=r(53479),X=r(85053),ee=r(75477),et=r(67547),er=r(52459),en=r(81031),ei=r(17453),ea=r(30026),eo=r(68126),es=r(53943),el=r(20463),eu=r(9312),ec=r(29887),ed=r(21690),ef=r(79229),eh=r(62582),ep=r(92641),eg=r(92975),em=r(13389),eA=r(43634),ey=r(31163),ev=r(95644),eb=r(56440),ew=r(88628),eS=Object.defineProperty,eI=(e,t,r)=>t in e?eS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,eE=(e,t,r)=>(eI(e,"symbol"!=typeof t?t+"":t,r),r),eC=((n=eC||{})[n.Open=0]="Open",n[n.Closed=1]="Closed",n),ex=((i=ex||{})[i.Single=0]="Single",i[i.Multi=1]="Multi",i),ek=((a=ek||{})[a.Pointer=0]="Pointer",a[a.Focus=1]="Focus",a[a.Other=2]="Other",a),eO=((o=eO||{})[o.OpenCombobox=0]="OpenCombobox",o[o.CloseCombobox=1]="CloseCombobox",o[o.GoToOption=2]="GoToOption",o[o.SetTyping=3]="SetTyping",o[o.RegisterOption=4]="RegisterOption",o[o.UnregisterOption=5]="UnregisterOption",o[o.DefaultToFirstOption=6]="DefaultToFirstOption",o[o.SetActivationTrigger=7]="SetActivationTrigger",o[o.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",o[o.SetInputElement=9]="SetInputElement",o[o.SetButtonElement=10]="SetButtonElement",o[o.SetOptionsElement=11]="SetOptionsElement",o[o.MarkInputAsMoved=12]="MarkInputAsMoved",o);function eT(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,r=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,n=t(e.options.slice()),i=n.length>0&&null!==n[0].dataRef.current.order?n.sort((e,t)=>e.dataRef.current.order-t.dataRef.current.order):(0,ew.z2)(n,e=>e.dataRef.current.domRef.current),a=r?i.indexOf(r):null;return -1===a&&(a=null),{options:i,activeOptionIndex:a}}let eR={1(e){var t;if(null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState)return e;let r=e.inputElement?eb.On.Tracked((0,eb.kn)(e.inputElement)):e.inputPositionState;return{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,inputPositionState:r,__demoMode:!1}},0(e){var t,r;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;if(null!=(r=e.dataRef.current)&&r.value){let t=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(-1!==t)return{...e,activeOptionIndex:t,comboboxState:0,__demoMode:!1,inputPositionState:eb.On.Idle}}return{...e,comboboxState:0,inputPositionState:eb.On.Idle,__demoMode:!1}},3:(e,t)=>e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping},2(e,t){var r,n,i,a;if(null!=(r=e.dataRef.current)&&r.disabled||e.optionsElement&&!(null!=(n=e.dataRef.current)&&n.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let{options:r,disabled:n}=e.virtual,a=t.focus===eu.T.Specific?t.idx:(0,eu.d)(t,{resolveItems:()=>r,resolveActiveIndex:()=>{var t,i;
29return null!=(i=null!=(t=e.activeOptionIndex)?t:r.findIndex(e=>!n(e)))?i:null},resolveDisabled:n,resolveId(){throw Error("Function not implemented.")}}),o=null!=(i=t.trigger)?i:2;return e.activeOptionIndex===a&&e.activationTrigger===o?e:{...e,activeOptionIndex:a,activationTrigger:o,isTyping:!1,__demoMode:!1}}let o=eT(e);if(null===o.activeOptionIndex){let e=o.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(o.activeOptionIndex=e)}let s=t.focus===eu.T.Specific?t.idx:(0,eu.d)(t,{resolveItems:()=>o.options,resolveActiveIndex:()=>o.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),l=null!=(a=t.trigger)?a:2;return e.activeOptionIndex===s&&e.activationTrigger===l?e:{...e,...o,isTyping:!1,activeOptionIndex:s,activationTrigger:l,__demoMode:!1}},4:(e,t)=>{var r,n,i,a;if(null!=(r=e.dataRef.current)&&r.virtual)return{...e,options:[...e.options,t.payload]};let o=t.payload,s=eT(e,e=>(e.push(o),e));null===e.activeOptionIndex&&null!=(i=(n=e.dataRef.current).isSelected)&&i.call(n,t.payload.dataRef.current.value)&&(s.activeOptionIndex=s.options.indexOf(o));let l={...e,...s,activationTrigger:2};return null!=(a=e.dataRef.current)&&a.__demoMode&&void 0===e.dataRef.current.value&&(l.activeOptionIndex=0),l},5:(e,t)=>{var r;if(null!=(r=e.dataRef.current)&&r.virtual)return{...e,options:e.options.filter(e=>e.id!==t.id)};let n=eT(e,e=>{let r=e.findIndex(e=>e.id===t.id);return -1!==r&&e.splice(r,1),e});return{...e,...n,activationTrigger:2}},6:(e,t)=>e.defaultToFirstOption===t.value?e:{...e,defaultToFirstOption:t.value},7:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},8:(e,t)=>
29{var r,n;if(null===e.virtual)return{...e,virtual:{options:t.options,disabled:null!=(r=t.disabled)?r:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let i=e.activeOptionIndex;if(null!==e.activeOptionIndex){let r=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);i=-1!==r?r:null}return{...e,activeOptionIndex:i,virtual:{options:t.options,disabled:null!=(n=t.disabled)?n:()=>!1}}},9:(e,t)=>e.inputElement===t.element?e:{...e,inputElement:t.element},10:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},11:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},12:e=>"Tracked"!==e.inputPositionState.kind?e:{...e,inputPositionState:eb.On.Moved}};class e_ extends ev.J{static new(e){var t;let{id:r,virtual:n=null,__demoMode:i=!1}=e;return new e_({id:r,dataRef:{current:{}},comboboxState:i?0:1,isTyping:!1,options:[],virtual:n?{options:n.options,disabled:null!=(t=n.disabled)?t:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:i,inputPositionState:eb.On.Idle})}reduce(e,t){return(0,ed.E)(t.type,eR,e,t)}constructor(e){super(e),eE(this,"actions",{onChange:e=>{let{onChange:t,compare:r,mode:n,value:i}=this.state.dataRef.current;return(0,ed.E)(n,{0:()=>null==t?void 0:t(e),1:()=>{let n=i.slice(),a=n.findIndex(t=>r(t,e));return -1===a?n.push(e):n.splice(a,1),null==t?void 0:t(n)}})},registerOption:(e,t)=>(this.send({type:4,payload:{id:e,dataRef:t}}),()=>{this.state.activeOptionIndex===this.state.dataRef.current.calculateIndex(t.current.value)&&this.send({type:6,value:!0}),this.send({type:5,id:e})}),goToOption:(e,t)=>(this.send({type:6,value:!1}),this.send({type:2,...e,trigger:t})),setIsTyping:e=>{this.send({type:3,isTyping:e})},closeCombobox:()=>{var e,t;this.send({type:1}),this.send({type:6,value:!1}),null==(t=(e=this.state.dataRef.current).onClose)||t.call(e)},openCombobox:()=>{this.send({type:0}),this.send({type:6,value:!0})},setActivationTrigger:e=>{this.send({type:7,trigger:e})},selectActiveOption:()=>{let e=this.selectors.activeOptionIndex(this.state);if(null!==e){if(this.actions.setIsTyping(!1),this.state.virtual)this.actions.onChange(this.state.virtual.options[e]);else{let{dataRef:t}=this.state.options[e];this.actions.onChange(t.current.value)}this.actions.goToOption({focus:eu.T.Specific,idx:e})}},setInputElement:e=>{this.send({type:9,element:e})},setButtonElement:e=>{this.send({type:10,element:e})},setOptionsElement:e=>{this.send({type:11,element:e})}}),eE(this,"selectors",{activeDescendantId:e=>{var t,r;let n=this.selectors.activeOptionIndex(e);if(null!==n)return e.virtual?null==(r=e.options.find(t=>!t.dataRef.current.disabled&&e.dataRef.current.compare(t.dataRef.current.value,e.virtual.options[n])))?void 0:r.id:null==(t=e.options[n])?void 0:t.id},activeOptionIndex:e=>{if(e.defaultToFirstOption&&null===e.activeOptionIndex&&(e.virtual?e.virtual.options.length>0:e.options.length>0)){if(e.virtual){let{options:t,disabled:r}=e.virtual,n=t.findIndex(e=>{var t;return!(null!=(t=null==r?void 0:r(e))&&t)});if(-1!==n)return n}let t=e.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==t)return t}return e.activeOptionIndex},activeOption:e=>{var t,r;let n=this.selectors.activeOptionIndex(e);return null===n?null:e.virtual?e.virtual.options[null!=n?n:0]:null!=(r=null==(t=e.options[n])?void 0:t.dataRef.current.value)?r:null},isActive:(e,t,r)=>{var n;let i=this.selectors.activeOptionIndex(e);return null!==i&&(e.virtual?i===e.dataRef.current.calculateIndex(t):(null==(n=e.options[i])?void 0:n.id)===r)},shouldScrollIntoView:(e,t,r)=>!(e.virtual||e.__demoMode||0!==e.comboboxState||0===e.activationTrigger||!this.selectors.isActive(e,t,r)),didInputMove:e=>"Moved"===e.inputPositionState.kind});{let e=this.state.id,t=eo.n.get(null);this.disposables.add(t.on(eo.M.Push,r=>{t.selectors.isTop(r,e)||0!==this.state.comboboxState||this.actions.closeCombobox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.inputElement&&(e.dispose(),e.add((0,eb.hS)(t.inputElement,t.inputPositionState,()=>{this.send({type:12})})))})})}}var eD=r(93064);let eN=(0,u.createContext)(null);function eM(e){let t=(0,u.useContext)(eN);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Combobox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,eF),t}return t}function eF(e){let{id:t,virtual:r=null,__demoMode:n=!1}=e,i=(0,u.useMemo)(()=>e_.new({id:t,virtual:r,__demoMode:n}),[]);return(0,eD.L)(()=>i.dispose()),i}let eP=(0,u.createContext)(null);function eL(e){let t=(0,u.useContext)(eP);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Combobox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,eL),t}return t}eP.displayName="ComboboxDataContext";let eB=(0,u.createContext)(null);function ej(e){let t=eM("VirtualProvider"),{options:r}=eL("VirtualProvider").virtual,n=(0,es.M)(t,e=>e.optionsElement),[i,a]=(0,u.useMemo)(()=>
29{if(!n)return[0,0];let e=window.getComputedStyle(n);return[parseFloat(e.paddingBlockStart||e.paddingTop),parseFloat(e.paddingBlockEnd||e.paddingBottom)]},[n]),o=function({useFlushSync:e=!0,...t}){let r=u.useReducer(()=>({}),{})[1],n={...t,onChange:(n,i)=>{var a;e&&i?(0,c.flushSync)(r):r(),null==(a=t.onChange)||a.call(t,n,i)}},[i]=u.useState(()=>new E(n));return i.setOptions(n),x(()=>i._didMount(),[]),x(()=>i._willUpdate()),i}({observeElementRect:y,observeElementOffset:w,scrollToFn:I,enabled:0!==r.length,scrollPaddingStart:i,scrollPaddingEnd:a,count:r.length,estimateSize:()=>40,getScrollElement:()=>t.state.optionsElement,overscan:12}),[s,l]=(0,u.useState)(0);(0,P.e)(()=>{l(e=>e+1)},[r]);let d=o.getVirtualItems(),f=(0,es.M)(t,e=>e.activationTrigger===ek.Pointer),h=(0,es.M)(t,t.selectors.activeOptionIndex);return 0===d.length?null:u.createElement(eB.Provider,{value:o},u.createElement("div",{style:{position:"relative",width:"100%",height:"".concat(o.getTotalSize(),"px")},ref:e=>{e&&(f||null!==h&&r.length>h&&o.scrollToIndex(h))}},d.map(t=>{var n;return u.createElement(u.Fragment,{key:t.key},u.cloneElement(null==(n=e.children)?void 0:n.call(e,{...e.slot,option:r[t.index]}),{key:"".concat(s,"-").concat(t.key),"data-index":t.index,"aria-setsize":r.length,"aria-posinset":t.index+1,style:{position:"absolute",top:0,left:0,transform:"translateY(".concat(t.start,"px)"),overflowAnchor:"none"}}))})))}let eU=u.Fragment,eq=eh.VN.RenderStrategy|eh.VN.Static,eQ=(0,eh.yV)(function(e,t){let r=(0,u.useId)(),n=(0,ee.B)(),{value:i,defaultValue:a,onChange:o,form:s,name:l,by:c,invalid:d=!1,disabled:f=n||!1,onClose:h,__demoMode:p=!1,multiple:g=!1,immediate:m=!1,virtual:A=null,nullable:y,...v}=e,b=(0,R.L)(a),[w=g?[]:void 0,S]=(0,T.q)(i,o,b),I=eF({id:r,virtual:A,__demoMode:p}),E=(0,u.useRef)({static:!1,hold:!1}),C=(0,O.J)(c),x=(0,N.z)(e=>A?null===c?A.options.indexOf(e):A.options.findIndex(t=>C(t,e)):I.state.options.findIndex(t=>C(t.dataRef.current.value,e))),k=(0,u.useCallback)(e=>(0,ed.E)(M.mode,{[ex.Multi]:()=>w.some(t=>C(t,e)),[ex.Single]:()=>C(w,e)}),[w]),_=(0,es.M)(I,e=>e.virtual),D=(0,N.z)(()=>null==h?void 0:h()),M=(0,u.useMemo)(()=>({__demoMode:p,immediate:m,optionsPropsRef:E,value:w,defaultValue:b,disabled:f,invalid:d,mode:g?ex.Multi:ex.Single,virtual:A?_:null,onChange:S,isSelected:k,calculateIndex:x,compare:C,onClose:D}),[p,m,E,w,b,f,d,g,A,_,S,k,x,C,D]);(0,P.e)(()=>{var e;A&&I.send({type:eO.UpdateVirtualConfiguration,options:A.options,disabled:null!=(e=A.disabled)?e:null})},[A,null==A?void 0:A.options,null==A?void 0:A.disabled]),(0,P.e)(()=>{I.state.dataRef.current=M},[M]);let[F,L,B,U]=(0,es.M)(I,e=>[e.comboboxState,e.buttonElement,e.inputElement,e.optionsElement]),q=eo.n.get(null),Q=(0,es.M)(q,(0,u.useCallback)(e=>q.selectors.isTop(e,r),[q,r]));(0,j.O)(Q,[L,B,U],()=>I.actions.closeCombobox());let G=(0,es.M)(I,I.selectors.activeOptionIndex),V=(0,es.M)(I,I.selectors.activeOption),H=(0,Y.x)({open:F===eC.Open,disabled:f,invalid:d,activeIndex:G,activeOption:V,value:w}),[K,W]=(0,em.bE)(),Z=(0,u.useCallback)(()=>{if(void 0!==b)return null==S?void 0:S(b)},[S,b]),z=(0,eh.L6)();return u.createElement(W,{value:K,props:{htmlFor:null==B?void 0:B.id},slot:{open:F===eC.Open,disabled:f}},u.createElement(et.HO,null,u.createElement(eP.Provider,{value:M},u.createElement(eN.Provider,{value:I},u.createElement(ea.up,{value:(0,ed.E)(F,{[eC.Open]:ea.ZM.Open,[eC.Closed]:ea.ZM.Closed})},null!=l&&u.createElement(er.Mt,{disabled:f,data:null!=w?{[l]:w}:{},form:s,onReset:Z}),z({ourProps:null===t?{}:{ref:t},theirProps:v,slot:H,defaultTag:eU,name:"Combobox"}))))))}),eG=(0,eh.yV)(function(e,t){let r=eM("Combobox.Button"),n=eL("Combobox.Button"),[i,a]=(0,u.useState)(null),o=(0,Z.T)(t,a,r.actions.setButtonElement),d=(0,u.useId)(),{id:f="headlessui-combobox-button-".concat(d),disabled:h=n.disabled||!1,autoFocus:p=!1,...g}=e,[m,A,y]=(0,es.M)(r,e=>[e.comboboxState,e.inputElement,e.optionsElement]),v=H(A),b=m===eC.Open;(0,q.G)(b,{trigger:i,action:(0,u.useCallback)(e=>{if(null!=i&&i.contains(e.target)||null!=A&&A.contains(e.target))return q.a.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return Q.Re(t)?q.a.Select(t):null!=y&&y.contains(e.target)?q.a.Ignore:q.a.Close},[i,A,y]),close:r.actions.closeCombobox,select:r.actions.selectActiveOption});let w=(0,N.z)(e=>{switch(e.key){case eg.R.Space:case eg.R.Enter:e.preventDefault(),e.stopPropagation(),r.state.comboboxState===eC.Closed&&(0,c.flushSync)(()=>r.actions.openCombobox()),v();return;case eg.R.ArrowDown:e.preventDefault(),e.stopPropagation(),r.state.comboboxState===eC.Closed&&((0,c.flushSync)(()=>r.actions.openCombobox()),r.state.dataRef.current.value||r.actions.goToOption({focus:eu.T.First})),v();return;case eg.R.ArrowUp:e.preventDefault(),e.stopPropagation(),r.state.comboboxState===eC.Closed&&((0,c.flushSync)(()=>r.actions.openCombobox()),r.state.dataRef.current.value||r.actions.goToOption({focus:eu.T.Last})),v();return;case eg.R.Escape:if(r.state.comboboxState!==eC.Open)return;e.preventDefault(),r.state.optionsElement&&!n.optionsPropsRef.current.static&&e.stopPropagation(),(0,c.flushSync)(()=>r.actions.closeCombobox()),v();return;default:return}}),S=(0,M.a)(()=>{r.state.comboboxState===eC.Open?r.actions.closeCombobox():r.actions.openCombobox(),v()}),I=(0,em.wp)([f]),{isFocusVisible:E,focusProps:C}=(0,s.F)({autoFocus:p}),{isHovered:x,hoverProps:O}=(0,l.X)({isDisabled:h}),{pressed:T,pressProps:R}=(0,k.x)({disabled:h}),_=(0,Y.x)({open:m===eC.Open,active:T||m===eC.Open,disabled:h,invalid:n.invalid,value:n.value,hover:x,focus:E}),D=(0,eh.dG)({ref:o,id:f,type:(0,K.f)(e,i),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==y?void 0:y.id,"aria-expanded":m===eC.Open,"aria-labelledby":I,disabled:h||void 0,autoFocus:p,onKeyDown:w},S,C,O,R);return(0,eh.L6)()({ourProps:D,theirProps:g,slot:_,defaultTag:"button",name:"Combobox.Button"})}),eV=(0,eh.yV)(function(e,t){var r,n;let i=eM("Combobox.Input"),a=eL("Combobox.Input"),o=(0,u.useId)(),d=(0,ei.Q)(),{id:f=d||"headlessui-combobox-input-".concat(o),onChange:h,displayValue:p,disabled:g=a.disabled||!1,autoFocus:m=!1,type:A="text",...y}=e,v=(0,u.useRef)(null),b=(0,Z.T)(v,t,(0,et.AZ)(),i.actions.setInputElement),[w,S]=(0,es.M)(i,e=>[e.comboboxState,e.isTyping]),I=(0,_.G)(),E=(0,N.z)(()=>{i.actions.onChange(null),i.state.optionsElement&&(i.state.optionsElement.scrollTop=0),i.actions.goToOption({focus:eu.T.Nothing})}),C=(0,u.useMemo)(()=>{var e;return"function"==typeof p&&void 0!==a.value?null!=(e=p(a.value))?e:"":"string"==typeof a.value?a.value:""},[a.value,p]);(0,X.q)((e,t)=>{let[r,n]=e,[a,o]=t;if(i.state.isTyping)return;let s=v.current;s&&((o===eC.Open&&n===eC.Closed||r!==a)&&(s.value=r),requestAnimationFrame(()=>{if(i.state.isTyping||!s||(0,G.H9)(s))return;let{selectionStart:e,selectionEnd:t}=s;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&s.setSelectionRange(s.value.length,s.value.length)}))},[C,w,S]),(0,X.q)((e,t)=>{let[r]=e,[n]=t;if(r===eC.Open&&n===eC.Closed){if(i.state.isTyping)return;let e=v.current;if(!e)return;let t=e.value,{selectionStart:r,selectionEnd:n,selectionDirection:a}=e;e.value="",e.value=t,null!==a?e.setSelectionRange(r,n,a):e.setSelectionRange(r,n)}},[w]);let x=(0,u.useRef)(!1),k=(0,N.z)(()=>{x.current=!0}),O=(0,N.z)(()=>{I.nextFrame(()=>{x.current=!1})}),T=(0,N.z)(e=>{switch(i.actions.setIsTyping(!0),e.key){case eg.R.Enter:if(i.state.comboboxState!==eC.Open||x.current)return;if(e.preventDefault(),e.stopPropagation(),null===i.selectors.activeOptionIndex(i.state)){i.actions.closeCombobox();return}i.actions.selectActiveOption(),a.mode===ex.Single&&i.actions.closeCombobox();break;case eg.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),(0,ed.E)(i.state.comboboxState,{[eC.Open]:()=>i.actions.goToOption({focus:eu.T.Next}),[eC.Closed]:()=>i.actions.openCombobox()});case eg.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),(0,ed.E)(i.state.comboboxState,{[eC.Open]:()=>i.actions.goToOption({focus:eu.T.Previous}),[eC.Closed]:()=>{(0,c.flushSync)(()=>i.actions.openCombobox()),a.value||i.actions.goToOption({focus:eu.T.Last})}});case eg.R.Home:if(i.state.comboboxState===eC.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),i.actions.goToOption({focus:eu.T.First});case eg.R.PageUp:return e.preventDefault(),e.stopPropagation(),i.actions.goToOption({focus:eu.T.First});case eg.R.End:if(i.state.comboboxState===eC.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),i.actions.goToOption({focus:eu.T.Last});case eg.R.PageDown:return e.preventDefault(),e.stopPropagation(),i.actions.goToOption({focus:eu.T.Last});case eg.R.Escape:return i.state.comboboxState!==eC.Open?void 0:(e.preventDefault(),i.state.optionsElement&&!a.optionsPropsRef.current.static&&e.stopPropagation(),a.mode===ex.Single&&null===a.value&&E(),i.actions.closeCombobox());case eg.R.Tab:if(i.actions.setIsTyping(!1),i.state.comboboxState!==eC.Open)return;a.mode===ex.Single&&i.state.activationTrigger!==ek.Focus&&i.actions.selectActiveOption(),i.actions.closeCombobox()}}),R=(0,N.z)(e=>{null==h||h(e),a.mode===ex.Single&&""===e.target.value&&E(),i.actions.openCombobox()}),D=(0,N.z)(e=>{var t,r,n;let o=null!=(t=e.relatedTarget)?t:el.m.find(t=>t!==e.currentTarget);if(!(null!=(r=i.state.optionsElement)&&r.contains(o))&&!(null!=(n=i.state.buttonElement)&&n.c
29ontains(o))&&i.state.comboboxState===eC.Open)return e.preventDefault(),a.mode===ex.Single&&null===a.value&&E(),i.actions.closeCombobox()}),M=(0,N.z)(e=>{var t,r,n;let o=null!=(t=e.relatedTarget)?t:el.m.find(t=>t!==e.currentTarget);null!=(r=i.state.buttonElement)&&r.contains(o)||null!=(n=i.state.optionsElement)&&n.contains(o)||a.disabled||a.immediate&&i.state.comboboxState!==eC.Open&&I.microTask(()=>{(0,c.flushSync)(()=>i.actions.openCombobox()),i.actions.setActivationTrigger(ek.Focus)})}),F=(0,em.wp)(),P=(0,ep.zH)(),{isFocused:L,focusProps:B}=(0,s.F)({autoFocus:m}),{isHovered:j,hoverProps:U}=(0,l.X)({isDisabled:g}),q=(0,es.M)(i,e=>e.optionsElement),Q=(0,Y.x)({open:w===eC.Open,disabled:g,invalid:a.invalid,hover:j,focus:L,autofocus:m}),V=(0,eh.dG)({ref:b,id:f,role:"combobox",type:A,"aria-controls":null==q?void 0:q.id,"aria-expanded":w===eC.Open,"aria-activedescendant":(0,es.M)(i,i.selectors.activeDescendantId),"aria-labelledby":F,"aria-describedby":P,"aria-autocomplete":"list",defaultValue:null!=(n=null!=(r=e.defaultValue)?r:void 0!==a.defaultValue?null==p?void 0:p(a.defaultValue):null)?n:a.defaultValue,disabled:g||void 0,autoFocus:m,onCompositionStart:k,onCompositionEnd:O,onKeyDown:T,onChange:R,onFocus:M,onBlur:D},B,U);return(0,eh.L6)()({ourProps:V,theirProps:y,slot:Q,defaultTag:"input",name:"Combobox.Input"})}),eH=em.__,eK=(0,eh.yV)(function(e,t){var r,n,i;let a=(0,u.useId)(),{id:o="headlessui-combobox-options-".concat(a),hold:s=!1,anchor:l,portal:c=!1,modal:d=!0,transition:f=!1,...h}=e,p=eM("Combobox.Options"),g=eL("Combobox.Options"),m=(0,et.Vy)(l);m&&(c=!0);let[A,y]=(0,et.ES)(m),[v,b]=(0,u.useState)(null),w=(0,et.U8)(),S=(0,Z.T)(t,m?A:null,p.actions.setOptionsElement,b),[I,E,C,x,k]=(0,es.M)(p,e=>[e.comboboxState,e.inputElement,e.buttonElement,e.optionsElement,e.activationTrigger]),O=(0,U.i)(E||C),T=(0,U.i)(x),R=(0,ea.oJ)(),[_,M]=(0,$.Y)(f,v,null!==R?(R&ea.ZM.Open)===ea.ZM.Open:I===eC.Open);(0,B.m)(_,E,p.actions.closeCombobox);let L=!g.__demoMode&&d&&I===eC.Open;(0,W.P)(L,T);let j=!g.__demoMode&&d&&I===eC.Open;(0,F.s)(j,{allowed:(0,u.useCallback)(()=>[E,C,x],[E,C,x])});let q=!(0,es.M)(p,p.selectors.didInputMove)&&_;(0,P.e)(()=>{var t;g.optionsPropsRef.current.static=null!=(t=e.static)&&t},[g.optionsPropsRef,e.static]),(0,P.e)(()=>{g.optionsPropsRef.current.hold=s},[g.optionsPropsRef,s]),(0,J.B)(I===eC.Open,{container:x,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let Q=(0,em.wp)([null==C?void 0:C.id]),G=(0,Y.x)({open:I===eC.Open,option:void 0}),V=(0,N.z)(()=>{p.actions.setActivationTrigger(ek.Pointer)}),H=(0,N.z)(e=>{e.preventDefault(),p.actions.setActivationTrigger(ek.Pointer)}),K=(0,eh.dG)(m?w():{},{"aria-labelledby":Q,role:"listbox","aria-multiselectable":g.mode===ex.Multi||void 0,id:o,ref:S,style:{...h.style,...y,"--input-width":(0,D.h)(_,E,!0).width,"--button-width":(0,D.h)(_,C,!0).width},onWheel:k===ek.Pointer?void 0:V,onMouseDown:H,...(0,$.X)(M)}),z=_&&I===eC.Closed&&!e.static,X=(0,en._)(z,null==(r=g.virtual)?void 0:r.options),ee=(0,en._)(z,g.value),er=(0,u.useCallback)(e=>g.compare(ee,e),[g.compare,ee]),ei=(0,u.useMemo)(()=>{if(!g.virtual)return g;if(void 0===X)throw Error("Missing `options` in virtual mode");return X!==g.virtual.options?{...g,virtual:{...g.virtual,options:X}}:g},[g,X,null==(n=g.virtual)?void 0:n.options]);g.virtual&&Object.assign(h,{children:u.createElement(eP.Provider,{value:ei},u.createElement(ej,{slot:G},h.children))});let eo=(0,eh.L6)(),el=(0,u.useMemo)(()=>g.mode===ex.Multi?g:{...g,isSelected:er},[g,er]);return u.createElement(ey.h_,{enabled:!!c&&(e.static||_),ownerDocument:O},u.createElement(eP.Provider,{value:el},eo({ourProps:K,theirProps:{...h,children:u.createElement(en.F,{freeze:z},"function"==typeof h.children?null==(i=h.children)?void 0:i.call(h,G):h.children)},slot:G,defaultTag:"div",features:eq,visible:q,name:"Combobox.Options"}
29)))}),eW=(0,eh.yV)(function(e,t){var r,n,i;let a=eL("Combobox.Option"),o=eM("Combobox.Option"),s=(0,u.useId)(),{id:l="headlessui-combobox-option-".concat(s),value:c,disabled:d=null!=(i=null==(n=null==(r=a.virtual)?void 0:r.disabled)?void 0:n.call(r,c))&&i,order:f=null,...h}=e,[p]=(0,es.M)(o,e=>[e.inputElement]),g=H(p),m=(0,es.M)(o,(0,u.useCallback)(e=>o.selectors.isActive(e,c,l),[c,l])),A=a.isSelected(c),y=(0,u.useRef)(null),v=(0,L.E)({disabled:d,value:c,domRef:y,order:f}),b=(0,u.useContext)(eB),w=(0,Z.T)(t,y,b?b.measureElement:null),S=(0,N.z)(()=>{o.actions.setIsTyping(!1),o.actions.onChange(c)});(0,P.e)(()=>o.actions.registerOption(l,v),[v,l]);let I=(0,es.M)(o,(0,u.useCallback)(e=>o.selectors.shouldScrollIntoView(e,c,l),[c,l]));(0,P.e)(()=>{if(I)return(0,ec.k)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=y.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[I,y]);let E=(0,N.z)(e=>{e.preventDefault(),e.button===eA.t.Left&&(d||(S(),(0,ef.tq)()||requestAnimationFrame(()=>g()),a.mode===ex.Single&&o.actions.closeCombobox()))}),C=(0,N.z)(()=>{if(d)return o.actions.goToOption({focus:eu.T.Nothing});let e=a.calculateIndex(c);o.actions.goToOption({focus:eu.T.Specific,idx:e})}),x=(0,z.g)(),k=(0,N.z)(e=>x.update(e)),O=(0,N.z)(e=>{if(!x.wasMoved(e)||d||m&&o.state.activationTrigger===ek.Pointer)return;let t=a.calculateIndex(c);o.actions.goToOption({focus:eu.T.Specific,idx:t},ek.Pointer)}),T=(0,N.z)(e=>{x.wasMoved(e)&&(d||m&&(a.optionsPropsRef.current.hold||o.state.activationTrigger===ek.Pointer&&o.actions.goToOption({focus:eu.T.Nothing})))}),R=(0,Y.x)({active:m,focus:m,selected:A,disabled:d});return(0,eh.L6)()({ourProps:{id:l,ref:w,role:"option",tabIndex:!0===d?void 0:-1,"aria-disabled":!0===d||void 0,"aria-selected":A,disabled:void 0,onMouseDown:E,onFocus:C,onPointerEnter:k,onMouseEnter:k,onPointerMove:O,onMouseMove:O,onPointerLeave:T,onMouseLeave:T},theirProps:h,slot:R,defaultTag:"div",name:"Combobox.Option"})}),eY=Object.assign(eQ,{Input:eV,Button:eG,Label:eH,Options:eK,Option:eW})},35368:function(e,t,r){"use strict";let n,i;r.d(t,{pJ:function(){return L},lG:function(){return F},V2:function(){return P}});var a,o=r(4304),s=r(5554),l=r(91500),u=r(38912),c=r(73415),d=r(98519),f=r(32164),h=r(16536),p=r(73924),g=r(47454),m=r(30026),A=r(712),y=r(20154),v=r(21690),b=r(57167),w=r(62582);let S=null!=(a=l.startTransition)?a:function(e){e()};var I=r(92975),E=((n=E||{})[n.Open=0]="Open",n[n.Closed=1]="Closed",n),C=((i=C||{})[i.ToggleDisclosure=0]="ToggleDisclosure",i[i.CloseDisclosure=1]="CloseDisclosure",i[i.SetButtonId=2]="SetButtonId",i[i.SetPanelId=3]="SetPanelId",i[i.SetButtonElement=4]="SetButtonElement",i[i.SetPanelElement=5]="SetPanelElement",i);let x={0:e=>({...e,disclosureState:(0,v.E)(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId},4:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},5:(e,t)=>e.panelElement===t.element?e:{...e,panelElement:t.element}},k=(0,l.createContext)(null);function O(e){let t=(0,l.useContext)(k);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Disclosure /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,O),t}return t}k.displayName="DisclosureContext";let T=(0,l.createContext)(null);T.displayName="DisclosureAPIContext";let R=(0,l.createContext)(null);function _(e,t){return(0,v.E)(t.type,x,e,t)}R.displayName="DisclosurePanelContext";let D=l.Fragment,N=w.VN.RenderStrategy|w.VN.Static,M=(0,w.yV)(function(e,t){let{defaultOpen:r=!1,...n}=e,i=(0,l.useRef)(null),a=(0,h.T)(t,(0,h.h)(e=>{i.current=e},void 0===e.as||(0,w.M2)(e.as))),o=(0,l.useReducer)(_,{disclosureState:r?0:1,buttonElement:null,panelElement:null,buttonId:null,panelId:null}),[{disclosureState:s,buttonId:u},d]=o,p=(0,c.z)(e=>{d({type:1});let t=(0,b.r3)(i.current);if(!t||!u)return;let r=e?y.sP(e)?e:"current"in e&&y.sP(e.current)?e.current:t.getElementById(u):t.getElementById(u);null==r||r.focus()}),A=(0,l.useMemo)(()=>({close:p}),[p]),S=(0,f.x)({open:0===s,close:p}),I=(0,w.L6)();return l.createElement(k.Provider,{value:o},l.createElement(T.Provider,{value:A},l.createElement(g.Z,{value:p},l.createElement(m.up,{value:(0,v.E)(s,{0:m.ZM.Open,1:m.ZM.Closed})},I({ourProps:{ref:a},theirProps:n,slot:S,defaultTag:D,name:"Disclosure"})))))}),F=(0,w.yV)(function(e,t){let r=(0,l.useId)(),{id:n="headlessui-disclosure-button-".concat(r),disabled:i=!1,autoFocus:a=!1,...p}=e,[g,m]=O("Disclosure.Button"),y=(0,l.useContext)(R),v=null!==y&&y===g.panelId,b=(0,l.useRef)(null),S=(0,h.T)(b,t,(0,c.z)(e=>{if(!v)return m({type:4,element:e})}));(0,l.useEffect)(()=>
29{if(!v)return m({type:2,buttonId:n}),()=>{m({type:2,buttonId:null})}},[n,m,v]);let E=(0,c.z)(e=>{var t;if(v){if(1===g.disclosureState)return;switch(e.key){case I.R.Space:case I.R.Enter:e.preventDefault(),e.stopPropagation(),m({type:0}),null==(t=g.buttonElement)||t.focus()}}else switch(e.key){case I.R.Space:case I.R.Enter:e.preventDefault(),e.stopPropagation(),m({type:0})}}),C=(0,c.z)(e=>{e.key===I.R.Space&&e.preventDefault()}),x=(0,c.z)(e=>{var t;(0,A.P)(e.currentTarget)||i||(v?(m({type:0}),null==(t=g.buttonElement)||t.focus()):m({type:0}))}),{isFocusVisible:k,focusProps:T}=(0,o.F)({autoFocus:a}),{isHovered:_,hoverProps:D}=(0,s.X)({isDisabled:i}),{pressed:N,pressProps:M}=(0,u.x)({disabled:i}),F=(0,f.x)({open:0===g.disclosureState,hover:_,active:N,disabled:i,focus:k,autofocus:a}),P=(0,d.f)(e,g.buttonElement),L=v?(0,w.dG)({ref:S,type:P,disabled:i||void 0,autoFocus:a,onKeyDown:E,onClick:x},T,D,M):(0,w.dG)({ref:S,id:n,type:P,"aria-expanded":0===g.disclosureState,"aria-controls":g.panelElement?g.panelId:void 0,disabled:i||void 0,autoFocus:a,onKeyDown:E,onKeyUp:C,onClick:x},T,D,M);return(0,w.L6)()({ourProps:L,theirProps:p,slot:F,defaultTag:"button",name:"Disclosure.Button"})}),P=(0,w.yV)(function(e,t){let r=(0,l.useId)(),{id:n="headlessui-disclosure-panel-".concat(r),transition:i=!1,...a}=e,[o,s]=O("Disclosure.Panel"),{close:u}=function e(t){let r=(0,l.useContext)(T);if(null===r){let r=Error("<".concat(t," /> is missing a parent <Disclosure /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(r,e),r}return r}("Disclosure.Panel"),[d,g]=(0,l.useState)(null),A=(0,h.T)(t,(0,c.z)(e=>{S(()=>s({type:5,element:e}))}),g);(0,l.useEffect)(()=>(s({type:3,panelId:n}),()=>{s({type:3,panelId:null})}),[n,s]);let y=(0,m.oJ)(),[v,b]=(0,p.Y)(i,d,null!==y?(y&m.ZM.Open)===m.ZM.Open:0===o.disclosureState),I=(0,f.x)({open:0===o.disclosureState,close:u}),E={ref:A,id:n,...(0,p.X)(b)},C=(0,w.L6)();return l.createElement(m.uu,null,l.createElement(R.Provider,{value:o.panelId},C({ourProps:E,theirProps:a,slot:I,defaultTag:"div",features:N,visible:v,name:"Disclosure.Panel"})))}),L=Object.assign(M,{Button:F,Panel:P})},13389:function(e,t,r){"use strict";r.d(t,{__:function(){return m},bE:function(){return g},t0:function(){return h},wp:function(){return p}});var n=r(91500),i=r(73415),a=r(6464),o=r(32164),s=r(16536),l=r(75477),u=r(17453),c=r(20154),d=r(62582);let f=(0,n.createContext)(null);function h(){let e=(0,n.useContext)(f);if(null===e){let e=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,h),e}return e}function p(e){var t,r,i;let a=null!=(r=null==(t=(0,n.useContext)(f))?void 0:t.value)?r:void 0;return(null!=(i=null==e?void 0:e.length)?i:0)>0?[a,...e].filter(Boolean).join(" "):a}function g(){let{inherit:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=p(),[r,a]=(0,n.useState)([]),o=e?[t,...r].filter(Boolean):r;return[o.length>0?o.join(" "):void 0,(0,n.useMemo)(()=>function(e){let t=(0,i.z)(e=>(a(t=>[...t,e]),()=>a(t=>{let r=t.slice(),n=r.indexOf(e);return -1!==n&&r.splice(n,1),r}))),r=(0,n.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return n.createElement(f.Provider,{value:r},e.children)},[a])]}f.displayName="LabelContext";let m=Object.assign((0,d.yV)(function(e,t){var r;let f=(0,n.useId)(),p=h(),g=(0,u.Q)(),m=(0,l.B)(),{id:A="headlessui-label-".concat(f),htmlFor:y=null!=g?g:null==(r=p.props)?void 0:r.htmlFor,passive:v=!1,...b}=e,w=(0,s.T)(t);(0,a.e)(()=>p.register(A),[A,p.register]);let S=(0,i.z)(e=>{let t=e.currentTarget;if(!(e.target!==e.currentTarget&&c.jF(e.target))&&(c.dz(t)&&e.preventDefault(),p.props&&"onClick"in p.props&&"function"==typeof p.props.onClick&&p.props.onClick(e),c.dz(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let r=e.getAttribute("aria-disabled");if("true"===r||""===r)return;(c.LL(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),I=(0,o.x)({...p.slot,disabled:m||!1}),E={ref:w,...p.props,id:A,htmlFor:y,onClick:S};return v&&("onClick"in E&&(delete E.htmlFor,delete E.onClick),"onClick"in b&&delete b.onClick),(0,d.L6)()({ourProps:E,theirProps:b,slot:
29I,defaultTag:y?"label":"div",name:p.name||"Label"})}),{})},80315:function(e,t,r){"use strict";let n,i,a,o;r.d(t,{Ri:function(){return ex},Y4:function(){return eS},wt:function(){return eC},O_:function(){return eE}});var s=r(4304),l=r(5554),u=r(91500),c=r(38361),d=r(38912),f=r(57567),h=r(86440),p=r(22856),g=r(37703),m=r(79264),A=r(73415),y=r(75414),v=r(68499),b=r(6464),w=r(23036),S=r(90254),I=r(13886),E=r(63085),C=r(25737),x=r(98519),k=r(21571),O=r(32164),T=r(16536),R=r(36263),_=r(76411),D=r(73924),N=r(75477),M=r(67547),F=r(52459),P=r(81031),L=r(17453),B=r(30026),j=r(68126),U=r(53943),q=r(9312),Q=r(29887),G=r(20154),V=r(88628),H=r(8988),K=r(21690),W=r(57167),Y=r(62582),Z=r(92641),z=r(92975),$=r(13389),J=r(31163),X=r(95644),ee=r(56440),et=Object.defineProperty,er=(e,t,r)=>t in e?et(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,en=(e,t,r)=>(er(e,"symbol"!=typeof t?t+"":t,r),r),ei=((n=ei||{})[n.Open=0]="Open",n[n.Closed=1]="Closed",n),ea=((i=ea||{})[i.Single=0]="Single",i[i.Multi=1]="Multi",i),eo=((a=eo||{})[a.Pointer=0]="Pointer",a[a.Other=1]="Other",a),es=((o=es||{})[o.OpenListbox=0]="OpenListbox",o[o.CloseListbox=1]="CloseListbox",o[o.GoToOption=2]="GoToOption",o[o.Search=3]="Search",o[o.ClearSearch=4]="ClearSearch",o[o.SelectOption=5]="SelectOption",o[o.RegisterOptions=6]="RegisterOptions",o[o.UnregisterOptions=7]="UnregisterOptions",o[o.SetButtonElement=8]="SetButtonElement",o[o.SetOptionsElement=9]="SetOptionsElement",o[o.SortOptions=10]="SortOptions",o[o.MarkButtonAsMoved=11]="MarkButtonAsMoved",o);function el(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,r=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,n=(0,V.z2)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),i=r?n.indexOf(r):null;return -1===i&&(i=null),{options:n,activeOptionIndex:i}}let eu={1(e){if(e.dataRef.current.disabled||1===e.listboxState)return e;let t=e.buttonElement?ee.On.Tracked((0,ee.kn)(e.buttonElement)):e.buttonPositionState;return{...e,activeOptionIndex:null,pendingFocus:{focus:q.T.Nothing},listboxState:1,__demoMode:!1,buttonPositionState:t}},0(e,t){if(e.dataRef.current.disabled||0===e.listboxState)return e;let r=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,i=e.options.findIndex(e=>n(e.dataRef.current.value));return -1!==i&&(r=i),{...e,frozenValue:!1,pendingFocus:t.focus,listboxState:0,activeOptionIndex:r,__demoMode:!1,buttonPositionState:ee.On.Idle}},2(e,t){var r,n,i,a,o;if(e.dataRef.current.disabled||1===e.listboxState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(r=t.trigger)?r:1,__demoMode:!1};if(t.focus===q.T.Nothing)return{...s,activeOptionIndex:null};if(t.focus===q.T.Specific)return{...s,activeOptionIndex:e.options.findIndex(e=>e.id===t.id)};if(t.focus===q.T.Previous){let r=e.activeOptionIndex;if(null!==r){let a=e.options[r].dataRef.current.domRef,o=(0,q.d)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.options[o].dataRef.current.domRef;if((null==(n=a.current)?void 0:n.previousElementSibling)===t.current||(null==(i=t.current)?void 0:i.previousElementSibling)===null)return{...s,activeOptionIndex:o}}}}else if(t.focus===q.T.Next){let r=e.activeOptionIndex;if(null!==r){let n=e.options[r].dataRef.current.domRef,i=(0,q.d)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==i){let t=e.options[i].dataRef.current.domRef;if((null==(a=n.current)?void 0:a.nextElementSibling)===t.current||(null==(o=t.current)?void 0:o.nextElementSibling)===null)return{...s,activeOptionIndex:i}}}}let l=el(e),u=(0,q.d)(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...l,activeOptionIndex:u}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=""!==e.searchQuery?0:1,n=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))}),a=i?e.options.indexOf(i):-1;return -1===a||a===e.activeOptionIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeOptionIndex:a,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:e=>0===e.dataRef.current.mode?{...e,frozenValue:!0}:{...e},6:(e,t)=>{let r=e.options.concat(t.options),n=e.activeOptionIndex;if(e.pendingFocus.focus!==q.T.Nothing&&(n=(0,q.d)(e.pendingFocus,{resolveItems:()=>r,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),null===e.activeOptionIndex){let{isSelected:t}=e.dataRef.current;if(t){let e=r.findIndex(e=>null==t?void 0:t(e.dataRef.current.value));-1!==e&&(n=e)}}return{...e,options:r,activeOptionIndex:n,pendingFocus:{focus:q.T.Nothing},pendingShouldSort:!0}},7:(e,t)=>{let r=e.options,n=[],i=new Set(t.options);for(let[e,t]of r.entries())if(i.has(t.id)&&(n.push(e),i.delete(t.id),0===i.size))break;if(n.length>0)for(let e of(r=r.slice(),n.reverse()))r.splice(e,1);return{...e,options:r,activationTrigger:1}},8:(e,t)=>
29e.buttonElement===t.element?e:{...e,buttonElement:t.element},9:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},10:e=>e.pendingShouldSort?{...e,...el(e),pendingShouldSort:!1}:e,11:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:ee.On.Moved}};class ec extends X.J{static new(e){let{id:t,__demoMode:r=!1}=e;return new ec({id:t,dataRef:{current:{}},listboxState:r?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:q.T.Nothing},frozenValue:!1,__demoMode:r,buttonPositionState:ee.On.Idle})}reduce(e,t){return(0,K.E)(t.type,eu,e,t)}constructor(e){super(e),en(this,"actions",{onChange:e=>{let{onChange:t,compare:r,mode:n,value:i}=this.state.dataRef.current;return(0,K.E)(n,{0:()=>null==t?void 0:t(e),1:()=>{let n=i.slice(),a=n.findIndex(t=>r(t,e));return -1===a?n.push(e):n.splice(a,1),null==t?void 0:t(n)}})},registerOption:(0,X.dC)(()=>{let e=[],t=new Set;return[(r,n)=>{t.has(n)||(t.add(n),e.push({id:r,dataRef:n}))},()=>(t.clear(),this.send({type:6,options:e.splice(0)}))]}),unregisterOption:(0,X.dC)(()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:7,options:e.splice(0)})}]}),goToOption:(0,X.dC)(()=>{let e=null;return[(t,r)=>{e={type:2,...t,trigger:r}},()=>e&&this.send(e)]}),closeListbox:()=>{this.send({type:1})},openListbox:e=>{this.send({type:0,focus:e})},selectActiveOption:()=>{var e;if(null!==this.state.activeOptionIndex){let{dataRef:e}=this.state.options[this.state.activeOptionIndex];this.actions.selectOption(e.current.value)}else 0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(e=this.state.buttonElement)||e.focus({preventScroll:!0}))},selectOption:e=>{this.send({type:5,value:e})},search:e=>{this.send({type:3,value:e})},clearSearch:()=>{this.send({type:4})},setButtonElement:e=>{this.send({type:8,element:e})},setOptionsElement:e=>{this.send({type:9,element:e})}}),en(this,"selectors",{activeDescendantId(e){var t;let r=e.activeOptionIndex,n=e.options;return null===r||null==(t=n[r])?void 0:t.id},isActive(e,t){var r;let n=e.activeOptionIndex,i=e.options;return null!==n&&(null==(r=i[n])?void 0:r.id)===t},hasFrozenValue:e=>e.frozenValue,shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.listboxState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(6,()=>{requestAnimationFrame(()=>{this.send({type:10})})});{let e=this.state.id,t=j.n.get(null);this.disposables.add(t.on(j.M.Push,r=>{t.selectors.isTop(r,e)||0!==this.state.listboxState||this.actions.closeListbox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.buttonElement&&(e.dispose(),e.add((0,ee.hS)(t.buttonElement,t.buttonPositionState,()=>{this.send({type:11})})))})}),this.on(5,(e,t)=>{var r;this.actions.onChange(t.value),0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(r=this.state.buttonElement)||r.focus({preventScroll:!0}))})}}var ed=r(93064);let ef=(0,u.createContext)(null);function eh(e){let t=(0,u.useContext)(ef);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Listbox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,ep),t}return t}function ep(e){let{id:t,__demoMode:r=!1}=e,n=(0,u.useMemo)(()=>ec.new({id:t,__demoMode:r}),[]);return(0,ed.L)(()=>n.dispose()),n}let eg=(0,u.createContext)(null);function em(e){let t=(0,u.useContext)(eg);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Listbox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,em),t}return t}eg.displayName="ListboxDataContext";let eA=u.Fragment,ey=(0,u.createContext)(!1),ev=Y.VN.RenderStrategy|Y.VN.Static,eb=u.Fragment,ew=(0,Y.yV)(function(e,t){let r=(0,u.useId)(),n=(0,N.B)(),{value:i,defaultValue:a,form:o,name:s,onChange:l,by:c,invalid:d=!1,disabled:g=n||!1,horizontal:m=!1,multiple:A=!1,__demoMode:y=!1,...v}=e,w=(0,T.T)(t),S=(0,p.L)(a),[E=A?[]:void 0,C]=(0,h.q)(i,l,S),x=ep({id:r,__demoMode:y}),k=(0,u.useRef)({static:!1,hold:!1}),R=(0,u.useRef)(new Map),_=(0,f.J)(c),D=(0,u.useCallback)(e=>(0,K.E)(P.mode,{[ea.Multi]:()=>E.some(t=>_(t,e)),[ea.Single]:()=>_(E,e)}
29),[E]),P=(0,O.x)({value:E,disabled:g,invalid:d,mode:A?ea.Multi:ea.Single,orientation:m?"horizontal":"vertical",onChange:C,compare:_,isSelected:D,optionsPropsRef:k,listRef:R});(0,b.e)(()=>{x.state.dataRef.current=P},[P]);let L=(0,U.M)(x,e=>e.listboxState),q=j.n.get(null),Q=(0,U.M)(q,(0,u.useCallback)(e=>q.selectors.isTop(e,r),[q,r])),[G,H]=(0,U.M)(x,e=>[e.buttonElement,e.optionsElement]);(0,I.O)(Q,[G,H],(e,t)=>{x.send({type:es.CloseListbox}),(0,V.sP)(t,V.tJ.Loose)||(e.preventDefault(),null==G||G.focus())});let W=(0,O.x)({open:L===ei.Open,disabled:g,invalid:d,value:E}),[Z,z]=(0,$.bE)({inherit:!0}),J=(0,u.useCallback)(()=>{if(void 0!==S)return null==C?void 0:C(S)},[C,S]),X=(0,Y.L6)();return u.createElement(z,{value:Z,props:{htmlFor:null==G?void 0:G.id},slot:{open:L===ei.Open,disabled:g}},u.createElement(M.HO,null,u.createElement(ef.Provider,{value:x},u.createElement(eg.Provider,{value:P},u.createElement(B.up,{value:(0,K.E)(L,{[ei.Open]:B.ZM.Open,[ei.Closed]:B.ZM.Closed})},null!=s&&null!=E&&u.createElement(F.Mt,{disabled:g,data:{[s]:E},form:o,onReset:J}),X({ourProps:{ref:w},theirProps:v,slot:W,defaultTag:eA,name:"Listbox"}))))))}),eS=(0,Y.yV)(function(e,t){let r=(0,u.useId)(),n=(0,L.Q)(),i=em("Listbox.Button"),a=eh("Listbox.Button"),{id:o=n||"headlessui-listbox-button-".concat(r),disabled:f=i.disabled||!1,autoFocus:h=!1,...p}=e,g=(0,T.T)(t,(0,M.AZ)(),a.actions.setButtonElement),m=(0,M.L)(),[v,b,w]=(0,U.M)(a,e=>[e.listboxState,e.buttonElement,e.optionsElement]),S=v===ei.Open;(0,C.G)(S,{trigger:b,action:(0,u.useCallback)(e=>{if(null!=b&&b.contains(e.target))return C.a.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return G.Re(t)?C.a.Select(t):null!=w&&w.contains(e.target)?C.a.Ignore:C.a.Close},[b,w]),close:a.actions.closeListbox,select:a.actions.selectActiveOption});let I=(0,A.z)(e=>{switch(e.key){case z.R.Enter:(0,H.g)(e.currentTarget);break;case z.R.Space:case z.R.ArrowDown:e.preventDefault(),a.actions.openListbox({focus:i.value?q.T.Nothing:q.T.First});break;case z.R.ArrowUp:e.preventDefault(),a.actions.openListbox({focus:i.value?q.T.Nothing:q.T.Last})}}),E=(0,A.z)(e=>{e.key===z.R.Space&&e.preventDefault()}),k=(0,y.a)(e=>{var t;a.state.listboxState===ei.Open?((0,c.flushSync)(()=>a.actions.closeListbox()),null==(t=a.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),a.actions.openListbox({focus:q.T.Nothing}))}),R=(0,A.z)(e=>e.preventDefault()),_=(0,$.wp)([o]),D=(0,Z.zH)(),{isFocusVisible:N,focusProps:F}=(0,s.F)({autoFocus:h}),{isHovered:P,hoverProps:B}=(0,l.X)({isDisabled:f}),{pressed:j,pressProps:Q}=(0,d.x)({disabled:f}),V=(0,O.x)({open:v===ei.Open,active:j||v===ei.Open,disabled:f,invalid:i.invalid,value:i.value,hover:P,focus:N,autofocus:h}),K=(0,U.M)(a,e=>e.listboxState===ei.Open),W=(0,Y.dG)(m(),{ref:g,id:o,type:(0,x.f)(e,b),"aria-haspopup":"listbox","aria-controls":null==w?void 0:w.id,"aria-expanded":K,"aria-labelledby":_,"aria-describedby":D,disabled:f||void 0,autoFocus:h,onKeyDown:I,onKeyUp:E,onKeyPress:R},k,F,B,Q);return(0,Y.L6)()({ourProps:W,theirProps:p,slot:V,defaultTag:"button",name:"Listbox.Button"})}),eI=$.__,eE=(0,Y.yV)(function(e,t){let r=(0,u.useId)(),{id:n="headlessui-listbox-options-".concat(r),anchor:i,portal:a=!1,modal:o=!0,transition:s=!1,...l}=e,d=(0,M.Vy)(i),[f,h]=(0,u.useState)(null);d&&(a=!0);let p=em("Listbox.Options"),y=eh("Listbox.Options"),[b,w,I,C]=(0,U.M)(y,e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode]),x=(0,E.i)(w),R=(0,E.i)(I),_=(0,B.oJ)(),[N,F]=(0,D.Y)(s,f,null!==_?(_&B.ZM.Open)===B.ZM.Open:b===ei.Open);(0,S.m)(N,w,y.actions.closeListbox);let L=!C&&o&&b===ei.Open;(0,k.P)(L,R);let j=!C&&o&&b===ei.Open;(0,v.s)(j,{allowed:(0,u.useCallback)(()=>[w,I],[w,I])});let Q=!(0,U.M)(y,y.selectors.didButtonMove)&&N,G=(0,U.M)(y,y.selectors.hasFrozenValue)&&!e.static,H=(0,P._)(G,p.value),Z=(0,u.useCallback)(e=>p.compare(H,e),[p.compare,H]),$=(0,U.M)(y,e=>{var t;if(null==d||!(null!=(t=null==d?void 0:d.to)&&t.includes("selection")))return null;let r=e.options.findIndex(e=>Z(e.dataRef.current.value));return -1===r&&(r=0),r}),X=(()=>{if(null==d)return;if(null===$)return{...d,inner:void 0};let e=Array.from(p.listRef.current.values());return{...d,inner:{listRef:{current:e},index:$}}})(),[ee,et]=(0,M.ES)(X),er=(0,M.U8)(),en=(0,T.T)(t,d?ee:null,y.actions.setOptionsElement,h),eo=(0,g.G)();(0,u.useEffect)(()=>{I&&b===ei.Open&&((0,W.H9)(I)||null==I||I.focus({preventScroll:!0}))},[b,I]);let es=(0,A.z)(e=>{var t;switch(eo.dispose(),e.key){case z.R.Space:if(""!==y.state.searchQuery)return e.preventDefault(),e.stopPropagation(),y.actions.search(e.key);case z.R.Enter:e.preventDefault(),e.stopPropagation(),y.actions.selectActiveOption();break;case(0,K.E)(p.orientation,{vertical:z.R.ArrowDown,horizontal:z.R.ArrowRight}):return e.preventDefault(),e.stopPropagation(),y.actions.goToOption({focus:q.T.Next});case(0,K.E)(p.orientation,{vertical:z.R.ArrowUp,horizontal:z.R.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),y.actions.goToOption({focus:q.T.Previous});case z.R.Home:case z.R.PageUp:return e.preventDefault(),e.stopPropagation(),y.actions.goToOption({focus:q.T.First});case z.R.End:case z.R.PageDown:return e.preventDefault(),e.stopPropagation(),y.actions.goToOption({focus:q.T.
29Last});case z.R.Escape:e.preventDefault(),e.stopPropagation(),(0,c.flushSync)(()=>y.actions.closeListbox()),null==(t=y.state.buttonElement)||t.focus({preventScroll:!0});return;case z.R.Tab:e.preventDefault(),e.stopPropagation(),(0,c.flushSync)(()=>y.actions.closeListbox()),(0,V.EO)(y.state.buttonElement,e.shiftKey?V.TO.Previous:V.TO.Next);break;default:1===e.key.length&&(y.actions.search(e.key),eo.setTimeout(()=>y.actions.clearSearch(),350))}}),el=(0,U.M)(y,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),eu=(0,O.x)({open:b===ei.Open}),ec=(0,Y.dG)(d?er():{},{id:n,ref:en,"aria-activedescendant":(0,U.M)(y,y.selectors.activeDescendantId),"aria-multiselectable":p.mode===ea.Multi||void 0,"aria-labelledby":el,"aria-orientation":p.orientation,onKeyDown:es,role:"listbox",tabIndex:b===ei.Open?0:void 0,style:{...l.style,...et,"--button-width":(0,m.h)(N,w,!0).width},...(0,D.X)(F)}),ed=(0,Y.L6)(),ef=(0,u.useMemo)(()=>p.mode===ea.Multi?p:{...p,isSelected:Z},[p,Z]);return u.createElement(J.h_,{enabled:!!a&&(e.static||N),ownerDocument:x},u.createElement(eg.Provider,{value:ef},ed({ourProps:ec,theirProps:l,slot:eu,defaultTag:"div",features:ev,visible:Q,name:"Listbox.Options"}
29)))}),eC=(0,Y.yV)(function(e,t){let r=(0,u.useId)(),{id:n="headlessui-listbox-option-".concat(r),disabled:i=!1,value:a,...o}=e,s=!0===(0,u.useContext)(ey),l=em("Listbox.Option"),c=eh("Listbox.Option"),d=(0,U.M)(c,e=>c.selectors.isActive(e,n)),f=l.isSelected(a),h=(0,u.useRef)(null),p=(0,R.x)(h),g=(0,w.E)({disabled:i,value:a,domRef:h,get textValue(){return p()}}),m=(0,T.T)(t,h,e=>{e?l.listRef.current.set(n,e):l.listRef.current.delete(n)}),y=(0,U.M)(c,e=>c.selectors.shouldScrollIntoView(e,n));(0,b.e)(()=>{if(y)return(0,Q.k)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=h.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[y,h]),(0,b.e)(()=>{if(!s)return c.actions.registerOption(n,g),()=>c.actions.unregisterOption(n)},[g,n,s]);let v=(0,A.z)(e=>{if(i)return e.preventDefault();c.actions.selectOption(a)}),S=(0,A.z)(()=>{if(i)return c.actions.goToOption({focus:q.T.Nothing});c.actions.goToOption({focus:q.T.Specific,id:n})}),I=(0,_.g)(),E=(0,A.z)(e=>I.update(e)),C=(0,A.z)(e=>{I.wasMoved(e)&&(i||d&&c.state.activationTrigger===eo.Pointer||c.actions.goToOption({focus:q.T.Specific,id:n},eo.Pointer))}),x=(0,A.z)(e=>{I.wasMoved(e)&&(i||d&&c.state.activationTrigger===eo.Pointer&&c.actions.goToOption({focus:q.T.Nothing}))}),k=(0,O.x)({active:d,focus:d,selected:f,disabled:i,selectedOption:f&&s}),D=s?{}:{id:n,ref:m,role:"option",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-selected":f,disabled:void 0,onClick:v,onFocus:S,onPointerEnter:E,onMouseEnter:E,onPointerMove:C,onMouseMove:C,onPointerLeave:x,onMouseLeave:x},N=(0,Y.L6)();return!f&&s?null:N({ourProps:D,theirProps:o,slot:k,defaultTag:"div",name:"Listbox.Option"})}),ex=Object.assign(ew,{Button:eS,Label:eI,Options:eE,Option:eC,SelectedOption:(0,Y.yV)(function(e,t){let{options:r,placeholder:n,...i}=e,a={ref:(0,T.T)(t)},o=em("ListboxSelectedOption"),s=(0,O.x)({}),l=void 0===o.value||null===o.value||o.mode===ea.Multi&&Array.isArray(o.value)&&0===o.value.length,c=(0,Y.L6)();return u.createElement(ey.Provider,{value:!0},c({ourProps:a,theirProps:{...i,children:u.createElement(u.Fragment,null,n&&l?n:r)},slot:s,defaultTag:eb,name:"ListboxSelectedOption"}))})})},88390:function(e,t,r){"use strict";let n,i,a;r.d(t,{v2:function(){return ef},j2:function(){return eu},sN:function(){return ed},sd:function(){return ec}});var o=r(4304),s=r(5554),l=r(91500),u=r(38361),c=r(38912),d=r(37703),f=r(79264),h=r(73415),p=r(75414),g=r(68499),m=r(6464),A=r(90254),y=r(13886),v=r(63085),b=r(25737),w=r(98519),S=r(21571),I=r(32164),E=r(16536),C=r(36263),x=r(76411),k=r(73924),O=r(53479),T=r(67547),R=r(30026),_=r(68126),D=r(53943),N=r(9312),M=r(29887),F=r(20154),P=r(88628),L=r(21690),B=r(57167),j=r(62582),U=r(92641),q=r(92975),Q=r(13389),G=r(31163),V=r(95644),H=r(56440),K=Object.defineProperty,W=(e,t,r)=>t in e?K(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Y=(e,t,r)=>(W(e,"symbol"!=typeof t?t+"":t,r),r),Z=((n=Z||{})[n.Open=0]="Open",n[n.Closed=1]="Closed",n),z=((i=z||{})[i.Pointer=0]="Pointer",i[i.Other=1]="Other",i),$=((a=$||{})[a.OpenMenu=0]="OpenMenu",a[a.CloseMenu=1]="CloseMenu",a[a.GoToItem=2]="GoToItem",a[a.Search=3]="Search",a[a.ClearSearch=4]="ClearSearch",a[a.RegisterItems=5]="RegisterItems",a[a.UnregisterItems=6]="UnregisterItems",a[a.SetButtonElement=7]="SetButtonElement",a[a.SetItemsElement=8]="SetItemsElement",a[a.SortItems=9]="SortItems",a[a.MarkButtonAsMoved=10]="MarkButtonAsMoved",a);function J(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,r=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,n=(0,P.z2)(t(e.items.slice()),e=>e.dataRef.current.domRef.current),i=r?n.indexOf(r):null;return -1===i&&(i=null),{items:n,activeItemIndex:i}}let X={1(e){if(1===e.menuState)return e;let t=e.buttonElement?H.On.Tracked((0,H.kn)(e.buttonElement)):e.buttonPositionState;return{...e,activeItemIndex:null,pendingFocus:{focus:N.T.Nothing},menuState:1,buttonPositionState:t}},0:(e,t)=>0===e.menuState?e:{...e,__demoMode:!1,pendingFocus:t.focus,menuState:0,buttonPositionState:H.On.Idle},2:(e,t)=>{var r,n,i,a,o;if(1===e.menuState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(r=t.trigger)?r:1,__demoMode:!1};if(t.focus===N.T.Nothing)return{...s,activeItemIndex:null};if(t.focus===N.T.Specific)return{...s,activeItemIndex:e.items.findIndex(e=>e.id===t.id)};if(t.focus===N.T.Previous){let r=e.activeItemIndex;if(null!==r){let a=e.items[r].dataRef.current.domRef,o=(0,N.d)(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.items[o].dataRef.current.domRef;if((null==(n=a.current)?void 0:n.previousElementSibling)===t.current||(null==(i=t.current)?void 0:i.previousElementSibling)===null)return{...s,activeItemIndex:o}}}}else if(t.focus===N.T.Next){let r=e.activeItemIndex;if(null!==r){let n=e.items[r].dataRef.current.domRef,i=(0,N.d)(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==i){let t=e.items[i].dataRef.current.domRef;if((null==(a=n.current)?void 0:a.nextElementSibling)===t.current||(null==(o=t.current)?void 0:o.nextElementSibling)===null)return{...s,activeItemIndex:i}}}}let l=J(e),u=(0,N.d)(t,{resolveItems:()=>l.items,resolveActiveIndex:()=>l.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...l,activeItemIndex:u}},3:(e,t)=>
29{let r=""!==e.searchQuery?0:1,n=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+r).concat(e.items.slice(0,e.activeItemIndex+r)):e.items).find(e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))&&!e.dataRef.current.disabled}),a=i?e.items.indexOf(i):-1;return -1===a||a===e.activeItemIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeItemIndex:a,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let r=e.items.concat(t.items.map(e=>e)),n=e.activeItemIndex;return e.pendingFocus.focus!==N.T.Nothing&&(n=(0,N.d)(e.pendingFocus,{resolveItems:()=>r,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),{...e,items:r,activeItemIndex:n,pendingFocus:{focus:N.T.Nothing},pendingShouldSort:!0}},6:(e,t)=>{let r=e.items,n=[],i=new Set(t.items);for(let[e,t]of r.entries())if(i.has(t.id)&&(n.push(e),i.delete(t.id),0===i.size))break;if(n.length>0)for(let e of(r=r.slice(),n.reverse()))r.splice(e,1);return{...e,items:r,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element},9:e=>e.pendingShouldSort?{...e,...J(e),pendingShouldSort:!1}:e,10:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:H.On.Moved}};class ee extends V.J{static new(e){let{id:t,__demoMode:r=!1}=e;return new ee({id:t,__demoMode:r,menuState:r?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1,pendingShouldSort:!1,pendingFocus:{focus:N.T.Nothing},buttonPositionState:H.On.Idle})}reduce(e,t){return(0,L.E)(t.type,X,e,t)}constructor(e){super(e),Y(this,"actions",{registerItem:(0,V.dC)(()=>{let e=[],t=new Set;return[(r,n)=>{t.has(n)||(t.add(n),e.push({id:r,dataRef:n}))},()=>(t.clear(),this.send({type:5,items:e.splice(0)}))]}),unregisterItem:(0,V.dC)(()=>{let e=[];return[t=>e.push(t),()=>this.send({type:6,items:e.splice(0)})]})}),Y(this,"selectors",{activeDescendantId(e){var t;let r=e.activeItemIndex,n=e.items;return null===r||null==(t=n[r])?void 0:t.id},isActive(e,t){var r;let n=e.activeItemIndex,i=e.items;return null!==n&&(null==(r=i[n])?void 0:r.id)===t},shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.menuState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(5,()=>{this.disposables.requestAnimationFrame(()=>{this.send({type:9})})});{let e=this.state.id,t=_.n.get(null);this.disposables.add(t.on(_.M.Push,r=>{t.selectors.isTop(r,e)||0!==this.state.menuState||this.send({type:1})})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.buttonElement&&(e.dispose(),e.add((0,H.hS)(t.buttonElement,t.buttonPositionState,()=>{this.send({type:10})})))})})}}var et=r(93064);let er=(0,l.createContext)(null);function en(e){let t=(0,l.useContext)(er);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Menu /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,ei),t}return t}function ei(e){let{id:t,__demoMode:r=!1}=e,n=(0,l.useMemo)(()=>ee.new({id:t,__demoMode:r}),[]);return(0,et.L)(()=>n.dispose()),n}let ea=l.Fragment,eo=j.VN.RenderStrategy|j.VN.Static,es=l.Fragment,el=(0,j.yV)(function(e,t){let r=(0,l.useId)(),{__demoMode:n=!1,...i}=e,a=ei({id:r,__demoMode:n}),[o,s,u]=(0,D.M)(a,e=>[e.menuState,e.itemsElement,e.buttonElement]),c=(0,E.T)(t),d=_.n.get(null),f=(0,D.M)(d,(0,l.useCallback)(e=>d.selectors.isTop(e,r),[d,r]));(0,y.O)(f,[u,s],(e,t)=>{var r;a.send({type:$.CloseMenu}),(0,P.sP)(t,P.tJ.Loose)||(e.preventDefault(),null==(r=a.state.buttonElement)||r.focus())});let p=(0,h.z)(()=>{a.send({type:$.CloseMenu})}),g=(0,I.x)({open:o===Z.Open,close:p}),m=(0,j.L6)();return l.createElement(T.HO,null,l.createElement(er.Provider,{value:a},l.createElement(R.up,{value:(0,L.E)(o,{[Z.Open]:R.ZM.Open,[Z.Closed]:R.ZM.Closed})},m({ourProps:{ref:c},theirProps:i,slot:g,defaultTag:ea,name:"Menu"}))))}),eu=(0,j.yV)(function(e,t){let r=en("Menu.Button"),n=(0,l.useId)(),{id:i="headlessui-menu-button-".concat(n),disabled:a=!1,autoFocus:d=!1,...f}=e,g=(0,l.useRef)(null),m=(0,T.L)(),A=(0,E.T)(t,g,(0,T.AZ)(),(0,h.z)(e=>r.send({type:$.SetButtonElement,element:e}))),y=(0,h.z)(e=>{switch(e.key){case q.R.Space:case q.R.Enter:case q.R.ArrowDown:e.preventDefault(),e.stopPropagation(),r.send({type:$.OpenMenu,focus:{focus:N.T.First}});break;case q.R.ArrowUp:e.preventDefault(),e.stopPropagation(),r.send({type:$.OpenMenu,focus:{focus:N.T.Last}})}}),v=(0,h.z)(e=>{e.key===q.R.Space&&e.preventDefault()}),[S,C,x]=(0,D.M)(r,e=>[e.menuState,e.buttonElement,e.itemsElement]),k=S===Z.Open;(0,b.G)(k,{trigger:C,action:(0,l.useCallback)(e=>{if(null!=C&&C.contains(e.target))return b.a.Ignore;let t=e.target.closest('[role="menuitem"]:not([data-disabled])');return F.Re(t)?b.a.Select(t):null!=x&&x.contains(e.target)?b.a.Ignore:b.a.Close},[C,x]),close:(0,l.useCallback)(()=>r.send({type:$.CloseMenu}),[]),select:(0,l.useCallback)(e=>e.click(),[])});let O=(0,p.a)(e=>{var t;a||(S===Z.Open?((0,u.flushSync)(()=>r.send({type:$.CloseMenu}
29)),null==(t=g.current)||t.focus({preventScroll:!0})):(e.preventDefault(),r.send({type:$.OpenMenu,focus:{focus:N.T.Nothing},trigger:z.Pointer})))}),{isFocusVisible:R,focusProps:_}=(0,o.F)({autoFocus:d}),{isHovered:M,hoverProps:P}=(0,s.X)({isDisabled:a}),{pressed:L,pressProps:B}=(0,c.x)({disabled:a}),U=(0,I.x)({open:S===Z.Open,active:L||S===Z.Open,disabled:a,hover:M,focus:R,autofocus:d}),Q=(0,j.dG)(m(),{ref:A,id:i,type:(0,w.f)(e,g.current),"aria-haspopup":"menu","aria-controls":null==x?void 0:x.id,"aria-expanded":S===Z.Open,disabled:a||void 0,autoFocus:d,onKeyDown:y,onKeyUp:v},O,_,P,B);return(0,j.L6)()({ourProps:Q,theirProps:f,slot:U,defaultTag:"button",name:"Menu.Button"})}),ec=(0,j.yV)(function(e,t){let r=(0,l.useId)(),{id:n="headlessui-menu-items-".concat(r),anchor:i,portal:a=!1,modal:o=!0,transition:s=!1,...c}=e,p=(0,T.Vy)(i),m=en("Menu.Items"),[y,b]=(0,T.ES)(p),w=(0,T.U8)(),[C,x]=(0,l.useState)(null),_=(0,E.T)(t,p?y:null,(0,h.z)(e=>m.send({type:$.SetItemsElement,element:e})),x),[M,F]=(0,D.M)(m,e=>[e.menuState,e.buttonElement]),L=(0,v.i)(F),U=(0,v.i)(C);p&&(a=!0);let Q=(0,R.oJ)(),[V,H]=(0,k.Y)(s,C,null!==Q?(Q&R.ZM.Open)===R.ZM.Open:M===Z.Open);(0,A.m)(V,F,()=>{m.send({type:$.CloseMenu})});let K=(0,D.M)(m,e=>e.__demoMode),W=!K&&o&&M===Z.Open;(0,S.P)(W,U);let Y=!K&&o&&M===Z.Open;(0,g.s)(Y,{allowed:(0,l.useCallback)(()=>[F,C],[F,C])});let z=!(0,D.M)(m,m.selectors.didButtonMove)&&V;(0,l.useEffect)(()=>{C&&M===Z.Open&&((0,B.H9)(C)||C.focus({preventScroll:!0}))},[M,C]),(0,O.B)(M===Z.Open,{container:C,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let J=(0,d.G)(),X=(0,h.z)(e=>{var t,r,n;switch(J.dispose(),e.key){case q.R.Space:if(""!==m.state.searchQuery)return e.preventDefault(),e.stopPropagation(),m.send({type:$.Search,value:e.key});case q.R.Enter:if(e.preventDefault(),e.stopPropagation(),null!==m.state.activeItemIndex){let{dataRef:e}=m.state.items[m.state.activeItemIndex];null==(r=null==(t=e.current)?void 0:t.domRef.current)||r.click()}m.send({type:$.CloseMenu}),(0,P.wI)(m.state.buttonElement);break;case q.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),m.send({type:$.GoToItem,focus:N.T.Next});case q.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),m.send({type:$.GoToItem,focus:N.T.Previous});case q.R.Home:case q.R.PageUp:return e.preventDefault(),e.stopPropagation(),m.send({type:$.GoToItem,focus:N.T.First});case q.R.End:case q.R.PageDown:return e.preventDefault(),e.stopPropagation(),m.send({type:$.GoToItem,focus:N.T.Last});case q.R.Escape:e.preventDefault(),e.stopPropagation(),(0,u.flushSync)(()=>m.send({type:$.CloseMenu})),null==(n=m.state.buttonElement)||n.focus({preventScroll:!0});break;case q.R.Tab:e.preventDefault(),e.stopPropagation(),(0,u.flushSync)(()=>m.send({type:$.CloseMenu})),(0,P.EO)(m.state.buttonElement,e.shiftKey?P.TO.Previous:P.TO.Next);break;default:1===e.key.length&&(m.send({type:$.Search,value:e.key}),J.setTimeout(()=>m.send({type:$.ClearSearch}),350))}}),ee=(0,h.z)(e=>{e.key===q.R.Space&&e.preventDefault()}),et=(0,I.x)({open:M===Z.Open}),er=(0,j.dG)(p?w():{},{"aria-activedescendant":(0,D.M)(m,m.selectors.activeDescendantId),"aria-labelledby":(0,D.M)(m,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),id:n,onKeyDown:X,onKeyUp:ee,role:"menu",tabIndex:M===Z.Open?0:void 0,ref:_,style:{...c.style,...b,"--button-width":(0,f.h)(V,F,!0).width},...(0,k.X)(H)}),ei=(0,j.L6)();return l.createElement(G.h_,{enabled:!!a&&(e.static||V),ownerDocument:L},ei({ourProps:er,theirProps:c,slot:et,defaultTag:"div",features:eo,visible:z,name:"Menu.Items"}))}),ed=(0,j.yV)(function(e,t){let r=(0,l.useId)(),{id:n="headlessui-menu-item-".concat(r),disabled:i=!1,...a}=e,o=en("Menu.Item"),s=(0,D.M)(o,e=>o.selectors.isActive(e,n)),u=(0,l.useRef)(null),c=(0,E.T)(t,u),d=(0,D.M)(o,e=>o.selectors.shouldScrollIntoView(e,n));(0,m.e)(()=>{if(d)return(0,M.k)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=u.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[d,u]);let f=(0,C.x)(u),p=(0,l.useRef)({disabled:i,domRef:u,get textValue(){return f()}});(0,m.e)(()=>{p.current.disabled=i},[p,i]),(0,m.e)(()=>(o.actions.registerItem(n,p),()=>o.actions.unregisterItem(n)),[p,n]);let g=(0,h.z)(()=>{o.send({type:$.CloseMenu})}),A=(0,h.z)(e=>{if(i)return e.preventDefault();o.send({type:$.CloseMenu}),(0,P.wI)(o.state.buttonElement)}),y=(0,h.z)(()=>
29{if(i)return o.send({type:$.GoToItem,focus:N.T.Nothing});o.send({type:$.GoToItem,focus:N.T.Specific,id:n})}),v=(0,x.g)(),b=(0,h.z)(e=>v.update(e)),w=(0,h.z)(e=>{v.wasMoved(e)&&(i||s||o.send({type:$.GoToItem,focus:N.T.Specific,id:n,trigger:z.Pointer}))}),S=(0,h.z)(e=>{v.wasMoved(e)&&(i||s&&o.state.activationTrigger===z.Pointer&&o.send({type:$.GoToItem,focus:N.T.Nothing}))}),[k,O]=(0,Q.bE)(),[T,R]=(0,U.fw)(),_=(0,I.x)({active:s,focus:s,disabled:i,close:g}),F=(0,j.L6)();return l.createElement(O,null,l.createElement(R,null,F({ourProps:{id:n,ref:c,role:"menuitem",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-labelledby":k,"aria-describedby":T,disabled:void 0,onClick:A,onFocus:y,onPointerEnter:b,onMouseEnter:b,onPointerMove:w,onMouseMove:w,onPointerLeave:S,onMouseLeave:S},theirProps:a,slot:_,defaultTag:es,name:"Menu.Item"})))}),ef=Object.assign(el,{Button:eu,Items:ec,Item:ed,Section:(0,j.yV)(function(e,t){let[r,n]=(0,Q.bE)(),i=(0,j.L6)();return l.createElement(n,null,i({ourProps:{ref:t,"aria-labelledby":r,role:"group"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Section"}))}),Heading:(0,j.yV)(function(e,t){let r=(0,l.useId)(),{id:n="headlessui-menu-heading-".concat(r),...i}=e,a=(0,Q.t0)();(0,m.e)(()=>a.register(n),[n,a.register]);let o={id:n,ref:t,role:"presentation",...a.props};return(0,j.L6)()({ourProps:o,theirProps:i,slot:{},defaultTag:"header",name:"Menu.Heading"})}),Separator:(0,j.yV)(function(e,t){return(0,j.L6)()({ourProps:{ref:t,role:"separator"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Separator"})})})},43634:function(e,t,r){"use strict";let n;r.d(t,{t:function(){return i}});var i=((n=i||{})[n.Left=0]="Left",n[n.Right=2]="Right",n)},548:function(e,t,r){"use strict";let n,i,a;r.d(t,{OK:function(){return G},v0:function(){return j},td:function(){return U},x4:function(){return Q},nP:function(){return q}});var o=r(4304),s=r(5554),l=r(91500),u=r(38912),c=r(73415),d=r(6464),f=r(23036),h=r(98519),p=r(32164),g=r(16536),m=r(88612),A=r(28910);function y(e){let{onFocus:t}=e,[r,n]=(0,l.useState)(!0),i=(0,m.t)();return r?l.createElement(A._,{as:"button",type:"button",features:A.x.Focusable,onFocus:e=>{e.preventDefault();let r,a=50;r=requestAnimationFrame(function e(){if(a--<=0){r&&cancelAnimationFrame(r);return}if(t()){if(cancelAnimationFrame(r),!i.current)return;n(!1);return}r=requestAnimationFrame(e)})}}):null}var v=r(88628),b=r(21690),w=r(62803),S=r(57167),I=r(62582);let E=l.createContext(null);function C(e){let{children:t}=e,r=l.useRef({groups:new Map,get(e,t){var r;let n=this.groups.get(e);n||(n=new Map,this.groups.set(e,n));let i=null!=(r=n.get(t))?r:0;return n.set(t,i+1),[Array.from(n.keys()).indexOf(t),function(){let e=n.get(t);e>1?n.set(t,e-1):n.delete(t)}]}});return l.createElement(E.Provider,{value:r},t)}function x(e){let t=l.useContext(E);if(!t)throw Error("You must wrap your component in a <StableCollection>");let r=l.useId(),[n,i]=t.current.get(e,r);return l.useEffect(()=>i,[]),n}var k=r(92975),O=((n=O||{})[n.Forwards=0]="Forwards",n[n.Backwards=1]="Backwards",n),T=((i=T||{})[i.Less=-1]="Less",i[i.Equal=0]="Equal",i[i.Greater=1]="Greater",i),R=((a=R||{})[a.SetSelectedIndex=0]="SetSelectedIndex",a[a.RegisterTab=1]="RegisterTab",a[a.UnregisterTab=2]="UnregisterTab",a[a.RegisterPanel=3]="RegisterPanel",a[a.UnregisterPanel=4]="UnregisterPanel",a);let _={0(e,t){var r;let n=(0,v.z2)(e.tabs,e=>e.current),i=(0,v.z2)(e.panels,e=>e.current),a=n.filter(e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))}),o={...e,tabs:n,panels:i};if(t.index<0||t.index>n.length-1){let r=(0,b.E)(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>(0,b.E)(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===a.length)return o;let i=(0,b.E)(r,{0:()=>n.indexOf(a[0]),1:()=>n.indexOf(a[a.length-1])});return{...o,selectedIndex:-1===i?e.selectedIndex:i}}let s=n.slice(0,t.index),l=[...n.slice(t.index),...s].find(e=>a.includes(e));if(!l)return o;let u=null!=(r=n.indexOf(l))?r:e.selectedIndex;return -1===u&&(u=e.selectedIndex),{...o,selectedIndex:u}},1(e,t){if(e.tabs.includes(t.tab))return e;let r=e.tabs[e.selectedIndex],n=(0,v.z2)([...e.tabs,t.tab],e=>e.current),i=e.selectedIndex;return e.info.current.isControlled||-1===(i=n.indexOf(r))&&(i=e.selectedIndex),{...e,tabs:n,selectedIndex:i}},2:(e,t)=>({...e,tabs:e.tabs.filter(e=>e!==t.tab)}),3:(e,t)=>
29e.panels.includes(t.panel)?e:{...e,panels:(0,v.z2)([...e.panels,t.panel],e=>e.current)},4:(e,t)=>({...e,panels:e.panels.filter(e=>e!==t.panel)})},D=(0,l.createContext)(null);function N(e){let t=(0,l.useContext)(D);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Tab.Group /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,N),t}return t}D.displayName="TabsDataContext";let M=(0,l.createContext)(null);function F(e){let t=(0,l.useContext)(M);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Tab.Group /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,F),t}return t}function P(e,t){return(0,b.E)(t.type,_,e,t)}M.displayName="TabsActionsContext";let L=I.VN.RenderStrategy|I.VN.Static,B=(0,I.yV)(function(e,t){var r,n;let i=(0,l.useId)(),{id:a="headlessui-tabs-tab-".concat(i),disabled:f=!1,autoFocus:m=!1,...A}=e,{orientation:y,activation:E,selectedIndex:C,tabs:O,panels:T}=N("Tab"),R=F("Tab"),_=N("Tab"),[D,M]=(0,l.useState)(null),P=(0,l.useRef)(null),L=(0,g.T)(P,t,M);(0,d.e)(()=>R.registerTab(P),[R,P]);let B=x("tabs"),j=O.indexOf(P);-1===j&&(j=B);let U=j===C,q=(0,c.z)(e=>{let t=e();if(t===v.fE.Success&&"auto"===E){let e=(0,S.vY)(P.current),t=_.tabs.findIndex(t=>t.current===e);-1!==t&&R.change(t)}return t}),Q=(0,c.z)(e=>{let t=O.map(e=>e.current).filter(Boolean);if(e.key===k.R.Space||e.key===k.R.Enter){e.preventDefault(),e.stopPropagation(),R.change(j);return}switch(e.key){case k.R.Home:case k.R.PageUp:return e.preventDefault(),e.stopPropagation(),q(()=>(0,v.jA)(t,v.TO.First));case k.R.End:case k.R.PageDown:return e.preventDefault(),e.stopPropagation(),q(()=>(0,v.jA)(t,v.TO.Last))}if(q(()=>(0,b.E)(y,{vertical:()=>e.key===k.R.ArrowUp?(0,v.jA)(t,v.TO.Previous|v.TO.WrapAround):e.key===k.R.ArrowDown?(0,v.jA)(t,v.TO.Next|v.TO.WrapAround):v.fE.Error,horizontal:()=>e.key===k.R.ArrowLeft?(0,v.jA)(t,v.TO.Previous|v.TO.WrapAround):e.key===k.R.ArrowRight?(0,v.jA)(t,v.TO.Next|v.TO.WrapAround):v.fE.Error}))===v.fE.Success)return e.preventDefault()}),G=(0,l.useRef)(!1),V=(0,c.z)(()=>{var e;G.current||(G.current=!0,null==(e=P.current)||e.focus({preventScroll:!0}),R.change(j),(0,w.Y)(()=>{G.current=!1}))}),H=(0,c.z)(e=>{e.preventDefault()}),{isFocusVisible:K,focusProps:W}=(0,o.F)({autoFocus:m}),{isHovered:Y,hoverProps:Z}=(0,s.X)({isDisabled:f}),{pressed:z,pressProps:$}=(0,u.x)({disabled:f}),J=(0,p.x)({selected:U,hover:Y,active:z,focus:K,autofocus:m,disabled:f}),X=(0,I.dG)({ref:L,onKeyDown:Q,onMouseDown:H,onClick:V,id:a,role:"tab",type:(0,h.f)(e,D),"aria-controls":null==(n=null==(r=T[j])?void 0:r.current)?void 0:n.id,"aria-selected":U,tabIndex:U?0:-1,disabled:f||void 0,autoFocus:m},W,Z,$);return(0,I.L6)()({ourProps:X,theirProps:A,slot:J,defaultTag:"button",name:"Tabs.Tab"})}),j=(0,I.yV)(function(e,t){let{defaultIndex:r=0,vertical:n=!1,manual:i=!1,onChange:a,selectedIndex:o=null,...s}=e,u=n?"vertical":"horizontal",h=i?"manual":"auto",m=null!==o,A=(0,f.E)({isControlled:m}),b=(0,g.T)(t),[w,S]=(0,l.useReducer)(P,{info:A,selectedIndex:null!=o?o:r,tabs:[],panels:[]}),E=(0,p.x)({selectedIndex:w.selectedIndex}),x=(0,f.E)(a||(()=>{})),k=(0,f.E)(w.tabs),O=(0,l.useMemo)(()=>({orientation:u,activation:h,...w}),[u,h,w]),T=(0,c.z)(e=>(S({type:1,tab:e}),()=>S({type:2,tab:e}))),R=(0,c.z)(e=>(S({type:3,panel:e}),()=>S({type:4,panel:e}))),_=(0,c.z)(e=>{N.current!==e&&x.current(e),m||S({type:0,index:e})}),N=(0,f.E)(m?e.selectedIndex:w.selectedIndex),F=(0,l.useMemo)(()=>({registerTab:T,registerPanel:R,change:_}),[]);(0,d.e)(()=>{S({type:0,index:null!=o?o:r})},[o]),(0,d.e)(()=>{if(void 0===N.current||w.tabs.length<=0)return;let e=(0,v.z2)(w.tabs,e=>e.current);e.some((e,t)=>w.tabs[t]!==e)&&_(e.indexOf(w.tabs[N.current]))});let L=(0,I.L6)();return l.createElement(C,null,l.createElement(M.Provider,{value:F},l.createElement(D.Provider,{value:O},O.tabs.length<=0&&l.createElement(y,{onFocus:()=>{var e,t;for(let r of k.current)if((null==(e=r.current)?void 0:e.tabIndex)===0)return null==(t=r.current)||t.focus(),!0;return!1}}),L({ourProps:{ref:b},theirProps:s,slot:E,defaultTag:"div",name:"Tabs"}))))}),U=(0,I.yV)(function(e,t){let{orientation:r,selectedIndex:n}=N("Tab.List"),i=(0,g.T)(t),a=(0,p.x)({selectedIndex:n});return(0,I.L6)()({ourProps:{ref:i,role:"tablist","aria-orientation":r}
29,theirProps:e,slot:a,defaultTag:"div",name:"Tabs.List"})}),q=(0,I.yV)(function(e,t){let{selectedIndex:r}=N("Tab.Panels"),n=(0,g.T)(t),i=(0,p.x)({selectedIndex:r});return(0,I.L6)()({ourProps:{ref:n},theirProps:e,slot:i,defaultTag:"div",name:"Tabs.Panels"})}),Q=(0,I.yV)(function(e,t){var r,n,i,a;let s=(0,l.useId)(),{id:u="headlessui-tabs-panel-".concat(s),tabIndex:c=0,...f}=e,{selectedIndex:h,tabs:m,panels:y}=N("Tab.Panel"),v=F("Tab.Panel"),b=(0,l.useRef)(null),w=(0,g.T)(b,t);(0,d.e)(()=>v.registerPanel(b),[v,b]);let S=x("panels"),E=y.indexOf(b);-1===E&&(E=S);let C=E===h,{isFocusVisible:k,focusProps:O}=(0,o.F)(),T=(0,p.x)({selected:C,focus:k}),R=(0,I.dG)({ref:w,id:u,role:"tabpanel","aria-labelledby":null==(n=null==(r=m[E])?void 0:r.current)?void 0:n.id,tabIndex:C?c:-1},O),_=(0,I.L6)();return C||null!=(i=f.unmount)&&!i||null!=(a=f.static)&&a?_({ourProps:R,theirProps:f,slot:T,defaultTag:"div",features:L,visible:C,name:"Tabs.Panel"}):l.createElement(A._,{"aria-hidden":"true",...R})}),G=Object.assign(B,{Group:j,List:U,Panels:q,Panel:Q})},38912:function(e,t,r){"use strict";r.d(t,{x:function(){return s}});var n=r(91500),i=r(57167),a=r(37703),o=r(73415);function s(){let{disabled:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,n.useRef)(null),[r,s]=(0,n.useState)(!1),l=(0,a.G)(),u=(0,o.z)(()=>{t.current=null,s(!1),l.dispose()}),c=(0,o.z)(e=>{if(l.dispose(),null===t.current){t.current=e.currentTarget,s(!0);{let r=(0,i.r3)(e.currentTarget);l.addEventListener(r,"pointerup",u,!1),l.addEventListener(r,"pointermove",e=>{if(t.current){var r,n;let i,a;s((i=e.width/2,a=e.height/2,r={top:e.clientY-a,right:e.clientX+i,bottom:e.clientY+a,left:e.clientX-i},n=t.current.getBoundingClientRect(),!(!r||!n||r.right<n.left||r.left>n.right||r.bottom<n.top||r.top>n.bottom)))}},!1),l.addEventListener(r,"pointercancel",u,!1)}}});return{pressed:r,pressProps:e?{}:{onPointerDown:c,onPointerUp:u,onClick:u}}}},57567:function(e,t,r){"use strict";r.d(t,{J:function(){return a}});var n=r(91500);function i(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return(0,n.useCallback)((t,r)=>"string"==typeof e?(null==t?void 0:t[e])===(null==r?void 0:r[e]):e(t,r),[e])}},86440:function(e,t,r){"use strict";r.d(t,{q:function(){return o}});var n=r(91500),i=r(38361),a=r(73415);function o(e,t,r){let[o,s]=(0,n.useState)(r),l=void 0!==e,u=(0,n.useRef)(l),c=(0,n.useRef)(!1),d=(0,n.useRef)(!1);return!l||u.current||c.current?l||!u.current||d.current||(d.current=!0,u.current=l,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(c.current=!0,u.current=l,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[l?e:o,(0,a.z)(e=>(l||(0,i.flushSync)(()=>s(e)),null==t?void 0:t(e)))]}},22856:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(91500);function i(e){let[t]=(0,n.useState)(e);return t}},79264:function(e,t,r){"use strict";r.d(t,{h:function(){return s}});var n=r(91500),i=r(29887),a=r(6464);function o(e){if(null===e)return{width:0,height:0};let{width:t,height:r}=e.getBoundingClientRect();return{width:t,height:r}}function s(e,t){let r=arguments.length>
292&&void 0!==arguments[2]&&arguments[2],[s,l]=(0,n.useState)(()=>o(t));return(0,a.e)(()=>{if(!t||!e)return;let r=(0,i.k)();return r.requestAnimationFrame(function e(){r.requestAnimationFrame(e),l(e=>{let r=o(t);return r.width===e.width&&r.height===e.height?e:r})}),()=>{r.dispose()}},[t,e]),r?{width:"".concat(s.width,"px"),height:"".concat(s.height,"px")}:s}},75414:function(e,t,r){"use strict";r.d(t,{a:function(){return s}});var n=r(91500),i=r(43634),a=r(712),o=r(73415);function s(e){let t=(0,n.useRef)(null);return{onPointerDown:(0,o.z)(r=>{t.current=r.pointerType,(0,a.P)(r.currentTarget)||"mouse"!==r.pointerType||r.button!==i.t.Left||(r.preventDefault(),e(r))}),onClick:(0,o.z)(r=>{"mouse"!==t.current&&((0,a.P)(r.currentTarget)||e(r))})}}},25737:function(e,t,r){"use strict";let n;r.d(t,{G:function(){return u},a:function(){return l}});var i=r(91500),a=r(20154),o=r(32757),s=((n=s||{})[n.Ignore=0]="Ignore",n[n.Select=1]="Select",n[n.Close=2]="Close",n);let l={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}};function u(e,t){let{trigger:r,action:n,close:s,select:l}=t,u=(0,i.useRef)(null),c=(0,i.useRef)(null),d=(0,i.useRef)(null);(0,o.I)(e&&null!==r,"pointerdown",e=>{a.UG(null==e?void 0:e.target)&&null!=r&&r.contains(e.target)&&(c.current=e.x,d.current=e.y,u.current=e.timeStamp)}),(0,o.I)(e&&null!==r,"pointerup",e=>{var t,r;let i=u.current;if(null===i||(u.current=null,!a.sP(e.target))||5>Math.abs(e.x-(null!=(t=c.current)?t:e.x))&&5>Math.abs(e.y-(null!=(r=d.current)?r:e.y)))return;let o=n(e);switch(o.kind){case 0:return;case 1:e.timeStamp-i>200&&(l(o.target),s());break;case 2:s()}},{capture:!0})}},98519:function(e,t,r){"use strict";r.d(t,{f:function(){return i}});var n=r(91500);function i(e,t){return(0,n.useMemo)(()=>{var r;if(e.type)return e.type;let n=null!=(r=e.as)?r:"button";if("string"==typeof n&&"button"===n.toLowerCase()||(null==t?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}},36263:function(e,t,r){"use strict";r.d(t,{x:function(){return l}});var n=r(91500),i=r(20154);let a=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function o(e){var t,r;let n=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!i.Re(o))return n;let s=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),s=!0;let l=s?null!=(r=o.innerText)?r:"":n;return a.test(l)&&(l=l.replace(a,"")),l}var s=r(73415);function l(e){let t=(0,n.useRef)(""),r=(0,n.useRef)("");return(0,s.z)(()=>{let n=e.current;if(!n)return"";let i=n.innerText;if(t.current===i)return r.current;let a=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let e=r.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():o(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return o(e).trim()})(n).trim().toLowerCase();return t.current=i,r.current=a,a})}},76411:function(e,t,r){"use strict";r.d(t,{g:function(){return a}});var n=r(91500);function i(e){return[e.screenX,e.screenY]}function a(){let e=(0,n.useRef)([-1,-1]);return{wasMoved(t){let r=i(t);return(e.current[0]!==r[0]||e.current[1]!==r[1])&&(e.current=r,!0)},update(t){e.current=i(t)}}}},53479:function(e,t,r){"use strict";r.d(t,{B:function(){return o}});var n=r(91500),i=r(57167),a=r(6464);function o(e,t){let{container:r,accept:o,walk:s}=t,l=(0,n.useRef)(o),u=(0,n.useRef)(s);(0,n.useEffect)(()=>{l.current=o,u.current=s},[o,s]),(0,a.e)(()=>{if(!r||!e)return;let t=(0,i.r3)(r);if(!t)return;let n=l.current,a=u.current,o=Object.assign(e=>n(e),{acceptNode:n}),s=t.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,o,!1);for(;s.nextNode();)a(s.currentNode)},[r,e,l,u])}},67547:function(e,t,r){"use strict";r.d(t,{AZ:function(){return p},ES:function(){return A},HO:function(){return y},L:function(){return g},U8:function(){return m},Vy:function(){return h}});var n=r(17420),i=r(92859),a=r(67227),o=r(91500),s=r(37703),l=r(73415),u=r(6464),c=r(20154);let d=(0,o.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});d.displayName="FloatingContext";let f=(0,o.createContext)(null);function h(e){return(0,o.useMemo)(()=>e?"string"==typeof e?{to:e}:e:null,[e])}function p(){return(0,o.useContext)(d).setReference}function g(){return(0,o.useContext)(d).getReferenceProps}function m(){let{getFloatingProps:e,slot:t}=(0,o.useContext)(d);return(0,o.useCallback)(function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return Object.assign({},e(...n),{"data-anchor":t.anchor})},[e,t])}function A(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,o.useContext)(f),r=(0,o.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var r;return null!=(r=null==t?void 0:t.outerHTML)?r:t})]);(0,u.e)(()=>{null==t||t(null!=r?r:null)},[t,r]);let n=(0,o.useContext)(d);return(0,o.useMemo)(()=>[n.setFloating,e?n.styles:{}],[n.setFloating,e,n.styles])}function y(e){var t,r,s;let h,p,g,{children:m,enabled:A=!0}=e,[y,b]=(0,o.useState)(null),[w,S]=(0,o.useState)(0),I=(0,o.useRef)(null),[E,C]=(0,o.useState)(null);(0,u.e)(()=>
29{if(!E)return;let e=new MutationObserver(()=>{let e=window.getComputedStyle(E).maxHeight,t=parseFloat(e);if(isNaN(t))return;let r=parseInt(e);isNaN(r)||t!==r&&(E.style.maxHeight="".concat(Math.ceil(t),"px"))});return e.observe(E,{attributes:!0,attributeFilter:["style"]}),()=>{e.disconnect()}},[E]);let x=A&&null!==y&&null!==E,{to:k="bottom",gap:O=0,offset:T=0,padding:R=0,inner:_}=(h=v(null!=(t=null==y?void 0:y.gap)?t:"var(--anchor-gap, 0)",E),p=v(null!=(r=null==y?void 0:y.offset)?r:"var(--anchor-offset, 0)",E),g=v(null!=(s=null==y?void 0:y.padding)?s:"var(--anchor-padding, 0)",E),{...y,gap:h,offset:p,padding:g}),[D,N="center"]=k.split(" ");(0,u.e)(()=>{x&&S(0)},[x]);let{refs:M,floatingStyles:F,context:P}=(0,n.YF)({open:x,placement:"selection"===D?"center"===N?"bottom":"bottom-".concat(N):"center"===N?"".concat(D):"".concat(D,"-").concat(N),strategy:"absolute",transform:!1,middleware:[(0,i.cv)({mainAxis:"selection"===D?0:O,crossAxis:T}),(0,i.uY)({padding:R}),"selection"!==D&&(0,i.RR)({padding:R}),"selection"===D&&_?(0,n.aN)({..._,padding:R,overflowRef:I,offset:w,minItemsVisible:4,referenceOverflowThreshold:R,onFallbackChange(e){var t,r;if(!e)return;let n=P.elements.floating;if(!n)return;let i=parseFloat(getComputedStyle(n).scrollPaddingBottom)||0,a=Math.min(4,n.childElementCount),o=0,s=0;for(let e of null!=(r=null==(t=P.elements.floating)?void 0:t.childNodes)?r:[])if(c.Re(e)){let t=e.offsetTop,r=t+e.clientHeight+i,l=n.scrollTop,u=l+n.clientHeight;if(t>=l&&r<=u)a--;else{s=Math.max(0,Math.min(r,u)-Math.max(t,l)),o=e.clientHeight;break}}a>=1&&S(e=>{let t=o*a-s+i;return e>=t?e:t})}}):null,(0,i.dp)({padding:R,apply(e){let{availableWidth:t,availableHeight:r,elements:n}=e;Object.assign(n.floating.style,{overflow:"auto",maxWidth:"".concat(t,"px"),maxHeight:"min(var(--anchor-max-height, 100vh), ".concat(r,"px)")})}})].filter(Boolean),whileElementsMounted:a.Me}),[L=D,B=N]=P.placement.split("-");"selection"===D&&(L="selection");let j=(0,o.useMemo)(()=>({anchor:[L,B].filter(Boolean).join(" ")}),[L,B]),U=(0,n.Rz)(P,{overflowRef:I,onChange:S}),{getReferenceProps:q,getFloatingProps:Q}=(0,n.NI)([U]),G=(0,l.z)(e=>{C(e),M.setFloating(e)});return o.createElement(f.Provider,{value:b},o.createElement(d.Provider,{value:{setFloating:G,setReference:M.setReference,styles:F,getReferenceProps:q,getFloatingProps:Q,slot:j}},m))}function v(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=(0,s.G)(),i=(0,l.z)((e,t)=>{if(null==e)return[r,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[r,null];let i=b(e,t);return[i,r=>{let a=function e(t){let r=/var\((.*)\)/.exec(t);if(r){let t=r[1].indexOf(",");if(-1===t)return[r[1]];let n=r[1].slice(0,t).trim(),i=r[1].slice(t+1).trim();return i?[n,...e(i)]:[n]}return[]}(e);{let o=a.map(e=>window.getComputedStyle(t).getPropertyValue(e));n.requestAnimationFrame(function s(){n.nextFrame(s);let l=!1;for(let[e,r]of a.entries()){let n=window.getComputedStyle(t).getPropertyValue(r);if(o[e]!==n){o[e]=n,l=!0;break}}if(!l)return;let u=b(e,t);i!==u&&(r(u),i=u)})}return n.dispose}]}return[r,null]}),a=(0,o.useMemo)(()=>i(e,t)[0],[e,t]),[c=a,d]=(0,o.useState)();return(0,u.e)(()=>{let[r,n]=i(e,t);if(d(r),n)return n(d)},[e,t]),c}function b(e,t){let r=document.createElement("div");t.appendChild(r),r.style.setProperty("margin-top","0px","important"),r.style.setProperty("margin-top",e,"important");let n=parseFloat(window.getComputedStyle(r).marginTop)||0;return t.removeChild(r),n}f.displayName="PlacementContext"},52459:function(e,t,r){"use strict";r.d(t,{Mt:function(){return d}});var n=r(91500),i=r(38361),a=r(37703),o=r(8988),s=r(62582),l=r(28910);let u=(0,n.createContext)(null);function c(e){let{children:t}=e,r=(0,n.useContext)(u);if(!r)return n.createElement(n.Fragment,null,t);let{target:a}=r;return a?(0,i.createPortal)(n.createElement(n.Fragment,null,t),a):null}function d(e){let{data:t,form:r,disabled:i,onReset:u,overrides:d}=e,[h,p]=(0,n.useState)(null),g=(0,a.G)();return(0,n.useEffect)(()=>{if(u&&h)return g.addEventListener(h,"reset",u)},[h,r,u]),n.createElement(c,null,n.createElement(f,{setForm:p,formId:r}),(0,o.t)(t).map(e=>
29{let[t,a]=e;return n.createElement(l._,{features:l.x.Hidden,...(0,s.oA)({key:t,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:r,disabled:i,name:t,value:a,...d})})}))}function f(e){let{setForm:t,formId:r}=e;return(0,n.useEffect)(()=>{if(r){let e=document.getElementById(r);e&&t(e)}},[t,r]),r?null:n.createElement(l._,{features:l.x.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:e=>{if(!e)return;let r=e.closest("form");r&&t(r)}})}},81031:function(e,t,r){"use strict";r.d(t,{F:function(){return i},_:function(){return a}});var n=r(91500);let i=n.forwardRef(function(e,t){let{children:r,freeze:i}=e,o=a(i,r);return(0,n.isValidElement)(o)?(0,n.cloneElement)(o,{ref:t}):n.createElement(n.Fragment,null,o)});function a(e,t){let[r,i]=(0,n.useState)(t);return e||r===t||i(t),e?r:t}},17453:function(e,t,r){"use strict";r.d(t,{Q:function(){return a}});var n=r(91500);let i=(0,n.createContext)(void 0);function a(){return(0,n.useContext)(i)}},712:function(e,t,r){"use strict";r.d(t,{P:function(){return i}});var n=r(20154);function i(e){let t=e.parentElement,r=null;for(;t&&!n.zO(t);)n.CD(t)&&(r=t),t=t.parentElement;let i=(null==t?void 0:t.getAttribute("disabled"))==="";return!(i&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(n.CD(t))return!1;t=t.previousElementSibling}return!0}(r))&&i}},9312:function(e,t,r){"use strict";let n;r.d(t,{T:function(){return i},d:function(){return a}});var i=((n=i||{})[n.First=0]="First",n[n.Previous=1]="Previous",n[n.Next=2]="Next",n[n.Last=3]="Last",n[n.Specific=4]="Specific",n[n.Nothing=5]="Nothing",n);function a(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=null!=n?n:-1;switch(e.focus){case 0:for(let e=0;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 1:-1===i&&(i=r.length);for(let e=i-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 2:for(let e=i+1;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 3:for(let e=r.length-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 4:for(let n=0;n<r.length;++n)if(t.resolveId(r[n],n,r)===e.id)return n;return n;case 5:return null;default:!function(e){throw Error("Unexpected object: "+e)}(e)}}},56440:function(e,t,r){"use strict";r.d(t,{On:function(){return i},hS:function(){return o},kn:function(){return a}});var n=r(29887);let i={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function a(e){let t=e.getBoundingClientRect();return"".concat(t.x,",").concat(t.y)}function o(e,t,r){let i=(0,n.k)();if("Tracked"===t.kind){let n=function(){o!==a(e)&&(i.dispose(),r())},{position:o}=t,s=new ResizeObserver(n);s.observe(e),i.add(()=>s.disconnect()),i.addEventListener(window,"scroll",n,{passive:!0}),i.addEventListener(window,"resize",n)}return()=>i.dispose()}},8988:function(e,t,r){"use strict";r.d(t,{g:function(){return a},t:function(){return function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let[o,s]of Object.entries(t))!function t(r,a,o){if(Array.isArray(o))for(let[e,n]of o.entries())t(r,i(a,e.toString()),n);else o instanceof Date?r.push([a,o.toISOString()]):"boolean"==typeof o?r.push([a,o?"1":"0"]):"string"==typeof o?r.push([a,o]):"number"==typeof o?r.push([a,"".concat(o)]):null==o?r.push([a,""]):function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(o)&&!(0,n.isValidElement)(o)&&e(o,a,r)}(a,i(r,o),s);return a}}});var n=r(91500);function i(e,t){return e?e+"["+t+"]":t}function a(e){var t,r;let n=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(n){for(let t of n.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type)){t.click();return}null==(r=n.requestSubmit)||r.call(n)}}},4304:function(e,t,r){"use strict";r.d(t,{F:function(){return j}});var n=r(91500);let i="undefined"!=typeof document?n.useLayoutEffect:()=>{};function a(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function o(e){let t=(0,n.useRef)({isFocused:!1,observer:null});return i(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,n.useCallback)(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r.target;n.addEventListener("focusout",r=>{if(t.current.isFocused=!1,n.disabled){let t=a(r);null==e||e(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();
29let r=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[e])}function s(e){var t;if("undefined"==typeof window||null==window.navigator)return!1;let r=null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands;return Array.isArray(r)&&r.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function l(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function u(e){let t=null;return()=>(null==t&&(t=e()),t)}let c=u(function(){return l(/^Mac/i)}),d=u(function(){return l(/^iPhone/i)}),f=u(function(){return l(/^iPad/i)||c()&&navigator.maxTouchPoints>1}),h=u(function(){return d()||f()});u(function(){return c()||h()});let p=u(function(){return s(/AppleWebKit/i)&&!g()}),g=u(function(){return s(/Chrome/i)}),m=u(function(){return s(/Android/i)}),A=u(function(){return s(/Firefox/i)}),y=null;function v(e,t,r=!0){var n,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}=t;A()&&(null===(i=window.event)||void 0===i?void 0:null===(n=i.type)||void 0===n?void 0:n.startsWith("key"))&&"_blank"===e.target&&(c()?a=!0:o=!0);let u=p()&&c()&&!f()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});v.isOpening=r,function(e){if(function(){if(null==y){y=!1;try{document.createElement("div").focus({get preventScroll(){return y=!0,!0}})}catch{}}return y}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}(e);e.focus(),function(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}(t)}}(e),e.dispatchEvent(u),v.isOpening=!1}v.isOpening=!1;var b=r(46958);let w=null,S=new Set,I=new Map,E=!1,C=!1,x={Tab:!0,Escape:!0};function k(e,t){for(let r of S)r(e,t)}function O(e){E=!0,v.isOpening||e.metaKey||!c()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(w="keyboard",k("keyboard",e))}function T(e){w="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(E=!0,k("pointer",e))}function R(e){v.isOpening||(""!==e.pointerType||!e.isTrusted)&&(m()&&e.pointerType?"click"!==e.type||1!==e.buttons:0!==e.detail||e.pointerType)||(E=!0,w="virtual")}function _(e){e.target!==window&&e.target!==document&&e.isTrusted&&(E||C||(w="virtual",k("virtual",e)),E=!1,C=!1)}function D(){E=!1,C=!0}function N(e){if("undefined"==typeof window||"undefined"==typeof document||I.get((0,b.kR)(e)))return;let t=(0,b.kR)(e),r=(0,b.r3)(e),n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){E=!0,n.apply(this,arguments)},r.addEventListener("keydown",O,!0),r.addEventListener("keyup",O,!0),r.addEventListener("click",R,!0),t.addEventListener("focus",_,!0),t.addEventListener("blur",D,!1),"undefined"!=typeof PointerEvent&&(r.addEventListener("pointerdown",T,!0),r.addEventListener("pointermove",T,!0),r.addEventListener("pointerup",T,!0)),t.addEventListener("beforeunload",()=>{M(e)},{once:!0}),I.set(t,{focus:n})}let M=(e,t)=>{let r=(0,b.kR)(e),n=(0,b.r3)(e);t&&n.removeEventListener("DOMContentLoaded",t),I.has(r)&&(r.HTMLElement.prototype.focus=I.get(r).focus,n.removeEventListener("keydown",O,!0),n.removeEventListener("keyup",O,!0),n.removeEventListener("click",R,!0),r.removeEventListener("focus",_,!0),r.removeEventListener("blur",D,!1),"undefined"!=typeof PointerEvent&&(n.removeEventListener("pointerdown",T,!0),n.removeEventListener("pointermove",T,!0),n.removeEventListener("pointerup",T,!0)),I.delete(r))};function F(){return"pointer"!==w}"undefined"!=typeof document&&function(e){let t;let r=(0,b.r3)(void 0);"loading"!==r.readyState?N(void 0):(t=()=>{N(void 0)},r.addEventListener("DOMContentLoaded",t)),()=>M(e,t)}();let P=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);var L=r(23565),B=r(6036);function j(e={}){var t,r,i;let{autoFocus:s=!1,isTextInput:l,within:u}=e,c=(0,n.useRef)({isFocused:!1,isFocusVisible:s||F()}
29),[d,f]=(0,n.useState)(!1),[h,p]=(0,n.useState)(()=>c.current.isFocused&&c.current.isFocusVisible),g=(0,n.useCallback)(()=>p(c.current.isFocused&&c.current.isFocusVisible),[]),m=(0,n.useCallback)(e=>{c.current.isFocused=e,f(e),g()},[g]);t=e=>{c.current.isFocusVisible=e,g()},r=[],i={isTextInput:l},N(),(0,n.useEffect)(()=>{let e=(e,r)=>{(function(e,t,r){let n=(0,b.r3)(null==r?void 0:r.target),i="undefined"!=typeof window?(0,b.kR)(null==r?void 0:r.target).HTMLInputElement:HTMLInputElement,a="undefined"!=typeof window?(0,b.kR)(null==r?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,o="undefined"!=typeof window?(0,b.kR)(null==r?void 0:r.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?(0,b.kR)(null==r?void 0:r.target).KeyboardEvent:KeyboardEvent;return!((e=e||n.activeElement instanceof i&&!P.has(n.activeElement.type)||n.activeElement instanceof a||n.activeElement instanceof o&&n.activeElement.isContentEditable)&&"keyboard"===t&&r instanceof s&&!x[r.key])})(!!(null==i?void 0:i.isTextInput),e,r)&&t(F())};return S.add(e),()=>{S.delete(e)}},r);let{focusProps:A}=function(e){let{isDisabled:t,onFocus:r,onBlur:i,onFocusChange:a}=e,s=(0,n.useCallback)(e=>{if(e.target===e.currentTarget)return i&&i(e),a&&a(!1),!0},[i,a]),l=o(s),u=(0,n.useCallback)(e=>{let t=(0,b.r3)(e.target),n=t?(0,L.vY)(t):(0,L.vY)();e.target===e.currentTarget&&n===(0,L.NI)(e.nativeEvent)&&(r&&r(e),a&&a(!0),l(e))},[a,r,l]);return{focusProps:{onFocus:!t&&(r||a||i)?u:void 0,onBlur:!t&&(i||a)?s:void 0}}}({isDisabled:u,onFocusChange:m}),{focusWithinProps:y}=function(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:i,onFocusWithinChange:s}=e,l=(0,n.useRef)({isFocusWithin:!1}),{addGlobalListener:u,removeAllGlobalListeners:c}=(0,B.x)(),d=(0,n.useCallback)(e=>{e.currentTarget.contains(e.target)&&l.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(l.current.isFocusWithin=!1,c(),r&&r(e),s&&s(!1))},[r,s,l,c]),f=o(d),h=(0,n.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;let t=(0,b.r3)(e.target),r=(0,L.vY)(t);if(!l.current.isFocusWithin&&r===(0,L.NI)(e.nativeEvent)){i&&i(e),s&&s(!0),l.current.isFocusWithin=!0,f(e);let r=e.currentTarget;u(t,"focus",e=>{if(l.current.isFocusWithin&&!(0,L.bE)(r,e.target)){let n=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});Object.defineProperty(n,"target",{value:r}),Object.defineProperty(n,"currentTarget",{value:r}),d(a(n))}},{capture:!0})}},[i,s,f,u,d]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:h,onBlur:d}}}({isDisabled:!u,onFocusWithinChange:m});return{isFocused:d,isFocusVisible:h,focusProps:u?y:A}}},5554:function(e,t,r){"use strict";r.d(t,{X:function(){return d}});var n=r(6036),i=r(46958),a=r(23565),o=r(91500);let s=!1,l=0;function u(e){"touch"===e.pointerType&&(s=!0,setTimeout(()=>{s=!1},50))}function c(){if("undefined"!=typeof document)return 0===l&&"undefined"!=typeof PointerEvent&&document.addEventListener("pointerup",u),l++,()=>{--l>0||"undefined"==typeof PointerEvent||document.removeEventListener("pointerup",u)}}function d(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:l,isDisabled:u}=e,[d,f]=(0,o.useState)(!1),h=(0,o.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,o.useEffect)(c,[]);let{addGlobalListener:p,removeAllGlobalListeners:g}=(0,n.x)(),{hoverProps:m,triggerHoverEnd:A}=(0,o.useMemo)(()=>{let e=(e,o)=>{if(h.pointerType=o,u||"touch"===o||h.isHovered||!e.currentTarget.contains(e.target))return;h.isHovered=!0;let s=e.currentTarget;h.target=s,p((0,i.r3)(e.target),"pointerover",e=>{h.isHovered&&h.target&&!(0,a.bE)(h.target,e.target)&&n(e,e.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:s,pointerType:o}),r&&r(!0),f(!0)},n=(e,t)=>{let n=h.target;h.pointerType="",h.target=null,"touch"!==t&&h.isHovered&&n&&(h.isHovered=!1,g(),l&&l({type:"hoverend",target:n,pointerType:t}),r&&r(!1),f(!1))},o={};return"undefined"!=typeof PointerEvent&&(o.onPointerEnter=t=>{s&&"mouse"===t.pointerType||e(t,t.pointerType)},o.onPointerLeave=e=>{!u&&e.currentTarget.contains(e.target)&&n(e,e.pointerType)}),{hoverProps:o,triggerHoverEnd:n}},[t,r,l,u,h,p,g]);return(0,o.useEffect)(()=>{u&&A({currentTarget:h.target},h.pointerType)},[u]),{hoverProps:m,isHovered:d}}},23565:function(e,t,r){"use strict";function n(e,t){return!!t&&!!e&&e.contains(t)}r.d(t,{vY:function(){return i},NI:function(){return a},bE:function(){return n}}),r(46958);let i=(e=document)=>e.activeElement;function a(e){return e.target}},46958:function(e,t,r){"use strict";r.d(t,{Zq:function(){return a},kR:function(){return i},r3:function(){return n}});let n=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},i=e=>e&&"window"in e&&e.window===e?e:n(e).defaultView||window;function a(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&"number"==typeof e.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}},6036:function(e,t,r){"use strict";r.d(t,{x:function(){return i}});var n=r(91500);function i(){let e=(0,n.useRef)(new Map),t=(0,n.useCallback)((t,r,n,i)=>{let a=(null==i?void 0:i.once)?(...t)=>{e.current.delete(n),n(...t)}:n;e.current.set(n,{type:r,eventTarget:t,fn:a,options:i}),t.addEventListener(r,a,i)},[]),r=(0,n.useCallback)((t,r,n,i)=>{var a;let o=(null===(a=e.current.get(n))||void 0===a?void 0:a.fn)||n;t.removeEventListener(r,o,i),e.current.delete(n)},[]),i=(0,n.useCallback)(()=>{e.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]);return(0,n.useEffect)(()=>i,[i]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:i}}},82615:function(e,t,r){"use strict";r.d(t,{G:function(){return o},T:function(){return a}});var n=r(6952);function i(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let a=i(0,n.T_),o=i(0,n.Gb)},19173:function(e,t,r){"use strict";r.d(t,{NL:function(){return i}
29,Zh:function(){return a},jm:function(){return o}});var n=r(20258);let i=n.D5.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"]),a=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class o extends Error{get errors(){return this.issues}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}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(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof o))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,n.D5.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)if(n.path.length>0){let r=n.path[0];t[r]=t[r]||[],t[r].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}o.create=e=>new o(e)},22568:function(e,t,r){"use strict";r.d(t,{DJ:function(){return a},Pr:function(){return o},jY:function(){return n.Z}});var n=r(95420);let i=n.Z;function a(e){i=e}function o(){return i}},90822:function(e,t,r){"use strict";r.d(t,{Hc:function(){return f},JY:function(){return p},KD:function(){return s},OK:function(){return d},Q9:function(){return l},RC:function(){return c},S9:function(){return g},UI:function(){return u},Xm:function(){return a},eT:function(){return h},h2:function(){return o}});var n=r(22568),i=r(95420);let a=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}},o=[];function s(e,t){let r=(0,n.Pr)(),o=a({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===i.Z?void 0:i.Z].filter(e=>!!e)});e.common.issues.push(o)}class l{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 u;"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 l.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 u;"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 u=Object.freeze({status:"aborted"}),c=e=>({status:"dirty",value:e}),d=e=>({status:"valid",value:e}),f=e=>"aborted"===e.status,h=e=>"dirty"===e.status,p=e=>"valid"===e.status,g=e=>"undefined"!=typeof Promise&&e instanceof Promise},20258:function(e,t,r){"use strict";var n,i,a;r.d(t,{$k:function(){return o},D5:function(){return n},FQ:function(){return s},Mg:function(){return i}}),(a=n||(n={})).assertEqual=e=>{},a.assertIs=function(e){},a.assertNever=function(e){throw Error()},a.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},a.getValidEnumValues=e=>{let t=a.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let n of t)r[n]=e[n];return a.objectValues(r)},a.objectValues=e=>a.objectKeys(e).map(function(t){return e[t]}),a.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},a.find=(e,t)=>{for(let r of e)if(t(r))return r},a.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,a.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},a.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(i||(i={})).mergeShapes=(e,t)=>({...e,...t});let o=n.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),s=e=>{switch(typeof e){case"undefined":return o.undefined;case"string":return o.string;case"number":return Number.isNaN(e)?o.nan:o.number;case"boolean":return o.boolean;case"function":return o.function;case"bigint":return o.bigint;case"symbol":return o.symbol;case"object":if(Array.isArray(e))return o.array;if(null===e)return o.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return o.promise;if("undefined"!=typeof Map&&e instanceof Map)return o.map;if("undefined"!=typeof Set&&e instanceof Set)return o.set;if("undefined"!=typeof Date&&e instanceof Date)return o.date;return o.object;default:return o.unknown}}},95420:function(e,t,r){"use strict";var n=r(19173),i=r(20258);t.Z=(e,t)=>{let r;switch(e.code){case n.NL.invalid_type:r=e.received===i.$k.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case n.NL.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,i.D5.jsonStringifyReplacer)}`;break;case n.NL.unrecognized_keys:r=`Unrecognized key(s) in object: ${i.D5.joinValues(e.keys,", ")}`;break;case n.NL.invalid_union:r="Invalid input";break;case n.NL.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${i.D5.joinValues(e.options)}`;break;case n.NL.invalid_enum_value:r=`Invalid enum value. Expected ${i.D5.joinValues(e.options)}, received '${e.received}'`;break;case n.NL.invalid_arguments:r="Invalid function arguments";break;case n.NL.invalid_return_type:r="Invalid function return type";break;case n.NL.invalid_date:r="Invalid date";break;case n.NL.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}"`:i.D5.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case n.NL.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}`:"bigint"===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 n.NL.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 n.NL.custom:r="Invalid input";break;case n.NL.invalid_intersection_types:r="Intersection results could not be merged";break;case n.NL.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case n.NL.not_finite:r="Number must be finite";break;default:r=t.defaultError,i.D5.assertNever(e)}return{message:r}}},42630:function(e,t,r){"use strict";let n;r.d(t,{cg:function(){return em},C4:function(){return e9},V_:function(){return m},O8:function(){return G},p5:function(){return W},EG:function(){return L},pZ:function(){return B},Gd:function(){return eA},ON:function(){return ep},$s:function(){return j},uE:function(){return eh},Iy:function(){return $},Xc:function(){return ec},K7:function(){return es},pA:function(){return s},b_:function(){return en},f9:function(){return J},dT:function(){return ei},SG:function(){return ea},Ym:function(){return et},Hu:function(){return eg},Zl:function(){return el},$n:function(){return H},pV:function(){return Q},ng:function(){return ef},IV:function(){return P},CQ:function(){return Y},ak:function(){return ed},om:function(){return ey},Wx:function(){return eu},ur:function(){return ev},KX:function(){return ee},I6:function(){return m},qA:function(){return er},$T:function(){return F},tX:function(){return U},z2:function(){return ec},_P:function(){return X},DI:function(){return m},DY:function(){return q},jp:function(){return Z},Dy:function(){return V},XE:function(){return K},Yj:function(){return eN},IX:function(){return eL},Kv:function(){return ek},O7:function(){return eO},oQ:function(){return e6},PG:function(){return ew},hT:function(){return eT},wU:function(){return M},VK:function(){return eq},cE:function(){return eX},Km:function(){return ez},ZI:function(){return eW},Pp:function(){return eI},jV:function(){return eQ},wt:function(){return eS},Vo:function(){return eY},i0:function(){return eZ},UI:function(){return eH},qn:function(){return ex},jb:function(){return e$},Fi:function(){return eF},lB:function(){return eD},AG:function(){return e1},Rx:function(){return eC},Ry:function(){return eB},Ts:function(){return e5},vs:function(){return e8},jt:function(){return e0},Dk:function(){return e4},EU:function(){return e3},dj:function(){return e2},MC:function(){return eJ},IM:function(){return eV},t8:function(){return eK},cf:function(){return ej}
29,Z_:function(){return eE},NA:function(){return eR},l4:function(){return eX},bc:function(){return eG},S1:function(){return e_},G0:function(){return eU},_4:function(){return eM},Hc:function(){return eP}});var i,a,o,s,l=r(19173),u=r(22568),c=r(95420);(i=o||(o={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},i.toString=e=>"string"==typeof e?e:e?.message;var d=r(90822),f=r(20258);class h{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||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let p=(e,t)=>{if((0,d.JY)(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 l.jm(e.common.issues);return this._error=t,this._error}}};function g(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)=>{let{message:a}=e;return"invalid_enum_value"===t.code?{message:a??i.defaultError}:void 0===i.data?{message:a??n??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:a??r??i.defaultError}},description:i}}class m{get description(){return this._def.description}_getType(e){return(0,f.FQ)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,f.FQ)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new d.Q9,ctx:{common:e.parent.common,data:e.data,parsedType:(0,f.FQ)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if((0,d.S9)(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){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,f.FQ)(e)},n=this._parseSync({data:e,path:r.path,parent:r});return p(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,f.FQ)(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return(0,d.JY)(r)?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>(0,d.JY)(e)?{value:e.value}:{issues:t.common.issues})}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:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,f.FQ)(e)},n=this._parse({data:e,path:r.path,parent:r});return p(r,await ((0,d.S9)(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:l.NL.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 ec({schema:this,typeName:s.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}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),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return ed.create(this,this._def)}nullable(){return ef.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return W.create(this)}promise(){return eu.create(this,this._def)}or(e){return Z.create([this,e],this._def)}and(e){return J.create(this,e,this._def)}transform(e){return new ec({...g(this._def),schema:this,typeName:s.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eh({...g(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:s.ZodDefault})}brand(){return new eA({typeName:s.ZodBranded,type:this,...g(this._def)})}catch(e){return new ep({...g(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:s.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return ey.create(this,e)}readonly(){return ev.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let A=/^c[^\s-]{8,}
29$/i,y=/^[0-9a-z]+$/,v=/^[0-9A-HJKMNP-TV-Z]{26}$/i,b=/^[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,w=/^[a-z0-9_-]{21}$/i,S=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,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)?)??$/,E=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,C=/^(?:(?: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])$/,x=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,k=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,O=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,T=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,R=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,_="((\\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])))",D=RegExp(`^${_}$`);function N(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function M(e){let t=`${_}T${N(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}class F extends m{_parse(e){var t,r,i,a;let o;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==f.$k.string){let t=this._getOrReturnCtx(e);return(0,d.KD)(t,{code:l.NL.invalid_type,expected:f.$k.string,received:t.parsedType}),d.UI}let s=new d.Q9;for(let u of this._def.checks)if("min"===u.kind)e.data.length<u.value&&(o=this._getOrReturnCtx(e,o),(0,d.KD)(o,{code:l.NL.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),s.dirty());else if("max"===u.kind)e.data.length>u.value&&(o=this._getOrReturnCtx(e,o),(0,d.KD)(o,{code:l.NL.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),s.dirty());else if("length"===u.kind){let t=e.data.length>u.value,r=e.data.length<u.value;(t||r)&&(o=this._getOrReturnCtx(e,o),t?(0,d.KD)(o,{code:l.NL.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}):r&&(0,d.KD)(o,{code:l.NL.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}),s.dirty())}else if("email"===u.kind)E.test(e.data)||(o=this._getOrReturnCtx(e,o),(0,d.KD)(o,{validation:"email",code:l.NL.invalid_string,message:u.message}),s.dirty());else if("emoji"===u.kind)n||(n=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),n.test(e.data)||(o=this._getOrReturnCtx(e,o),(0,d.KD)(o,{validation:"emoji",code:l.NL.invalid_string,message:u.message}),s.dirty());else if("uuid"===u.kind)b.test(e.data)||(o=this._getOrReturnCtx(e,o),(0,d.KD)(o,{validation:"uuid",code:l.NL.invalid_string,message:u.message}),s.dirty());else if("nanoid"===u.kind)w.test(e.data)||(o=this._getOrReturnCtx(e,o),(0,d.KD)(o,{validation:"nanoid",code:l.NL.invalid_string,message:u.message}),s.dirty());else if("cuid"===u.kind)A.test(e.data)||(o=this._getOrReturnCtx(e,o),(0,d.KD)(o,{validation:"cuid",code:l.NL.invalid_string,message:u.message}),s.dirty());else if("cuid2"===u.kind)y.test(e.data)||(o=this._getOrReturnCtx(e,o),(0,d.KD)(o,{validation:"cuid2",code:l.NL.invalid_string,message:u.message}),s.dirty());else if("ulid"===u.kind)v.test(e.data)||(o=this._getOrReturnCtx(e,o),(0,d.KD)(o,{validation:"ulid",code:l.NL.invalid_string,message:u.message}),s.dirty());else if("url"===u.kind)try{new URL(e.data)}catch{o=this._getOrReturnCtx(e,o),(0,d.KD)(o,{validation:"url",code:l.NL.invalid_string,message:u.message}),s.dirty()}else"regex"===u.kind?(u.regex.lastIndex=0,u.regex.test(e.data)||(o=this._getOrReturnCtx(e,o),(0,d.KD)(o,{validation:"regex",code:l.NL.invalid_string,message:u.message}),s.dirty())):"trim"===u.kind?e.data=e.data.trim():"includes"===u.kind?e.data.includes(u.value,u.position)||(o=this._getOrReturnCtx(e,o),(0,d.KD)(o,{co
29de:l.NL.invalid_string,validation:{includes:u.value,position:u.position},message:u.message}),s.dirty()):"toLowerCase"===u.kind?e.data=e.data.toLowerCase():"toUpperCase"===u.kind?e.data=e.data.toUpperCase():"startsWith"===u.kind?e.data.startsWith(u.value)||(o=this._getOrReturnCtx(e,o),(0,d.KD)(o,{code:l.NL.invalid_string,validation:{startsWith:u.value},message:u.message}),s.dirty()):"endsWith"===u.kind?e.data.endsWith(u.value)||(o=this._getOrReturnCtx(e,o),(0,d.KD)(o,{code:l.NL.invalid_string,validation:{endsWith:u.value},message:u.message}),s.dirty()):"datetime"===u.kind?M(u).test(e.data)||(o=this._getOrReturnCtx(e,o),(0,d.KD)(o,{code:l.NL.invalid_string,validation:"datetime",message:u.message}),s.dirty()):"date"===u.kind?D.test(e.data)||(o=this._getOrReturnCtx(e,o),(0,d.KD)(o,{code:l.NL.invalid_string,validation:"date",message:u.message}),s.dirty()):"time"===u.kind?RegExp(`^${N(u)}$`).test(e.data)||(o=this._getOrReturnCtx(e,o),(0,d.KD)(o,{code:l.NL.invalid_string,validation:"time",message:u.message}),s.dirty()):"duration"===u.kind?I.test(e.data)||(o=this._getOrReturnCtx(e,o),(0,d.KD)(o,{validation:"duration",code:l.NL.invalid_string,message:u.message}),s.dirty()):"ip"===u.kind?(t=e.data,("v4"===(r=u.version)||!r)&&C.test(t)||("v6"===r||!r)&&k.test(t)||(o=this._getOrReturnCtx(e,o),(0,d.KD)(o,{validation:"ip",code:l.NL.invalid_string,message:u.message}),s.dirty())):"jwt"===u.kind?!function(e,t){if(!S.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}(e.data,u.alg)&&(o=this._getOrReturnCtx(e,o),(0,d.KD)(o,{validation:"jwt",code:l.NL.invalid_string,message:u.message}),s.dirty()):"cidr"===u.kind?(i=e.data,("v4"===(a=u.version)||!a)&&x.test(i)||("v6"===a||
29!a)&&O.test(i)||(o=this._getOrReturnCtx(e,o),(0,d.KD)(o,{validation:"cidr",code:l.NL.invalid_string,message:u.message}),s.dirty())):"base64"===u.kind?T.test(e.data)||(o=this._getOrReturnCtx(e,o),(0,d.KD)(o,{validation:"base64",code:l.NL.invalid_string,message:u.message}),s.dirty()):"base64url"===u.kind?R.test(e.data)||(o=this._getOrReturnCtx(e,o),(0,d.KD)(o,{validation:"base64url",code:l.NL.invalid_string,message:u.message}),s.dirty()):f.D5.assertNever(u);return{status:s.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:l.NL.invalid_string,...o.errToObj(r)})}_addCheck(e){return new F({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...o.errToObj(e)})}url(e){return this._addCheck({kind:"url",...o.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...o.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...o.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...o.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...o.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...o.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...o.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...o.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...o.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...o.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...o.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...o.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...o.errToObj(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===e?.precision?null:e?.precision,...o.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...o.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...o.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...o.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...o.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...o.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...o.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...o.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...o.errToObj(t)})}nonempty(e){return this.min(1,o.errToObj(e))}trim(){return new F({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new F({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new F({...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 isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===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<e)&&(e=t.value);return e}}F.create=e=>new F({checks:[],typeName:s.ZodString,coerce:e?.coerce??!1,...g(e)});class P extends m{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)!==f.$k.number){let t=this._getOrReturnCtx(e);return(0,d.KD)(t,{code:l.NL.invalid_type,expected:f.$k.number,received:t.parsedType}),d.UI}let r=new d.Q9;for(let n of this._def.checks)"int"===n.kind?f.D5.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),(0,d.KD)(t,{code:l.NL.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),(0,d.KD)(t,{code:l.NL.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),(0,d.KD)(t,{code:l.NL.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 Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(e.data,n.value)&&(t=this._getOrReturnCtx(e,t),(0,d.KD)(t,{code:l.NL.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),(0,d.KD)(t,{code:l.NL.not_finite,message:n.message}),r.dirty()):f.D5.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,o.toString(t))}gt(e,t){return this.setLimit("min",e,!1,o.toString(t))}lte(e,t){return this.setLimit("max",e,!0,o.toString(t))}lt(e,t){return this.setLimit("max",e,!1,o.toString(t))}setLimit(e,t,r,n){return new P({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:o.toString(n)}]})}_addCheck(e){return new P({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:o.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:o.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:o.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:o.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:o.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:o.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:o.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:o.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:o.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<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&f.D5.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.value<e)&&(e=r.value)}return Number.isFinite(t)&&Number.isFinite(e)}}P.create=e=>new P({checks:[],typeName:s.ZodNumber,coerce:e?.coerce||!1,...g(e)});class L extends m{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==f.$k.bigint)return this._getInvalidInput(e);let r=new d.Q9;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(t=this._getOrReturnCtx(e,t),(0,d.KD)(t,{code:l.NL.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(t=this._getOrReturnCtx(e,t),(0,d.KD)(t,{code:l.NL.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),(0,d.KD)(t,{code:l.NL.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):f.D5.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return(0,d.KD)(t,{code:l.NL.invalid_type,expected:f.$k.bigint,received:t.parsedType}),d.UI}gte(e,t){return this.setLimit("min",e,!0,o.toString(t))}gt(e,t){return this.setLimit("min",e,!1,o.toString(t))}lte(e,t){return this.setLimit("max",e,!0,o.toString(t))}lt(e,t){return this.setLimit("max",e,!1,o.toString(t))}setLimit(e,t,r,n){return new L({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:o.toString(n)}]})}_addCheck(e){return new L({...this._def,checks:[...this._def.checks,e]})}
29positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:o.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:o.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:o.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:o.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:o.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<e)&&(e=t.value);return e}}L.create=e=>new L({checks:[],typeName:s.ZodBigInt,coerce:e?.coerce??!1,...g(e)});class B extends m{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==f.$k.boolean){let t=this._getOrReturnCtx(e);return(0,d.KD)(t,{code:l.NL.invalid_type,expected:f.$k.boolean,received:t.parsedType}),d.UI}return(0,d.OK)(e.data)}}B.create=e=>new B({typeName:s.ZodBoolean,coerce:e?.coerce||!1,...g(e)});class j extends m{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==f.$k.date){let t=this._getOrReturnCtx(e);return(0,d.KD)(t,{code:l.NL.invalid_type,expected:f.$k.date,received:t.parsedType}),d.UI}if(Number.isNaN(e.data.getTime())){let t=this._getOrReturnCtx(e);return(0,d.KD)(t,{code:l.NL.invalid_date}),d.UI}let r=new d.Q9;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(t=this._getOrReturnCtx(e,t),(0,d.KD)(t,{code:l.NL.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(t=this._getOrReturnCtx(e,t),(0,d.KD)(t,{code:l.NL.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):f.D5.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new j({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:o.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:o.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.value<e)&&(e=t.value);return null!=e?new Date(e):null}}j.create=e=>new j({checks:[],coerce:e?.coerce||!1,typeName:s.ZodDate,...g(e)});class U extends m{_parse(e){if(this._getType(e)!==f.$k.symbol){let t=this._getOrReturnCtx(e);return(0,d.KD)(t,{code:l.NL.invalid_type,expected:f.$k.symbol,received:t.parsedType}),d.UI}return(0,d.OK)(e.data)}}U.create=e=>new U({typeName:s.ZodSymbol,...g(e)});class q extends m{_parse(e){if(this._getType(e)!==f.$k.undefined){let t=this._getOrReturnCtx(e);return(0,d.KD)(t,{code:l.NL.invalid_type,expected:f.$k.undefined,received:t.parsedType}),d.UI}return(0,d.OK)(e.data)}}q.create=e=>new q({typeName:s.ZodUndefined,...g(e)});class Q extends m{_parse(e){if(this._getType(e)!==f.$k.null){let t=this._getOrReturnCtx(e);return(0,d.KD)(t,{code:l.NL.invalid_type,expected:f.$k.null,received:t.parsedType}),d.UI}return(0,d.OK)(e.data)}}Q.create=e=>new Q({typeName:s.ZodNull,...g(e)});class G extends m{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,d.OK)(e.data)}}G.create=e=>new G({typeName:s.ZodAny,...g(e)});class V extends m{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,d.OK)(e.data)}}V.create=e=>new V({typeName:s.ZodUnknown,...g(e)});class H extends m{_parse(e){let t=this._getOrReturnCtx(e);return(0,d.KD)(t,{code:l.NL.invalid_type,expected:f.$k.never,received:t.parsedType}),d.UI}}H.create=e=>new H({typeName:s.ZodNever,...g(e)});class K extends m{_parse(e){if(this._getType(e)!==f.$k.undefined){let t=this._getOrReturnCtx(e);return(0,d.KD)(t,{code:l.NL.invalid_type,expected:f.$k.void,received:t.parsedType}),d.UI}return(0,d.OK)(e.data)}}K.create=e=>new K({typeName:s.ZodVoid,...g(e)});class W extends m{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==f.$k.array)return(0,d.KD)(t,{code:l.NL.invalid_type,expected:f.$k.array,received:t.parsedType}),d.UI;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&((0,d.KD)(t,{code:e?l.NL.too_big:l.NL.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&((0,d.KD)(t,{code:l.NL.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&((0,d.KD)(t,{code:l.NL.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 h(t,e,t.path,r)))).then(e=>d.Q9.mergeArray(r,e));let i=[...t.data].map((e,r)=>n.type._parseSync(new h(t,e,t.path,r)));return d.Q9.mergeArray(r,i)}
29get element(){return this._def.type}min(e,t){return new W({...this._def,minLength:{value:e,message:o.toString(t)}})}max(e,t){return new W({...this._def,maxLength:{value:e,message:o.toString(t)}})}length(e,t){return new W({...this._def,exactLength:{value:e,message:o.toString(t)}})}nonempty(e){return this.min(1,e)}}W.create=(e,t)=>new W({type:e,minLength:null,maxLength:null,exactLength:null,typeName:s.ZodArray,...g(t)});class Y extends m{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=f.D5.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==f.$k.object){let t=this._getOrReturnCtx(e);return(0,d.KD)(t,{code:l.NL.invalid_type,expected:f.$k.object,received:t.parsedType}),d.UI}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof H&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=n[e],i=r.data[e];o.push({key:{status:"valid",value:e},value:t._parse(new h(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof H){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of a)o.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)a.length>0&&((0,d.KD)(r,{code:l.NL.unrecognized_keys,keys:a}),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 a){let n=r.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new h(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>d.Q9.mergeObjectSync(t,e)):d.Q9.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(e){return o.errToObj,new Y({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:o.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new Y({...this._def,unknownKeys:"strip"})}passthrough(){return new Y({...this._def,unknownKeys:"passthrough"})}extend(e){return new Y({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Y({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:s.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Y({...this._def,catchall:e})}pick(e){let t={};for(let r of f.D5.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new Y({...this._def,shape:()=>t})}omit(e){let t={};for(let r of f.D5.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new Y({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof Y){let r={};for(let n in t.shape){let i=t.shape[n];r[n]=ed.create(e(i))}return new Y({...t._def,shape:()=>r})}return t instanceof W?new W({...t._def,type:e(t.element)}):t instanceof ed?ed.create(e(t.unwrap())):t instanceof ef?ef.create(e(t.unwrap())):t instanceof X?X.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};for(let r of f.D5.objectKeys(this.shape)){let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new Y({...this._def,shape:()=>t})}required(e){let t={};for(let r of f.D5.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof ed;)e=e._def.innerType;t[r]=e}return new Y({...this._def,shape:()=>t})}keyof(){return eo(f.D5.objectKeys(this.shape))}}Y.create=(e,t)=>new Y({shape:()=>e,unknownKeys:"strip",catchall:H.create(),typeName:s.ZodObject,...g(t)}),Y.strictCreate=(e,t)=>new Y({shape:()=>e,unknownKeys:"strict",catchall:H.create(),typeName:s.ZodObject,...g(t)}),Y.lazycreate=(e,t)=>new Y({shape:e,unknownKeys:"strip",catchall:H.create(),typeName:s.ZodObject,...g(t)});class Z extends m{_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 l.jm(e.ctx.common.issues));return(0,d.KD)(t,{code:l.NL.invalid_union,unionErrors:r}),d.UI});{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 l.jm(e));return(0,d.KD)(t,{code:l.NL.invalid_union,unionErrors:i}),d.UI}}get options(){return this._def.options}}Z.create=(e,t)=>
29new Z({options:e,typeName:s.ZodUnion,...g(t)});let z=e=>{if(e instanceof ei)return z(e.schema);if(e instanceof ec)return z(e.innerType());if(e instanceof ea)return[e.value];if(e instanceof es)return e.options;if(e instanceof el)return f.D5.objectValues(e.enum);if(e instanceof eh)return z(e._def.innerType);if(e instanceof q)return[void 0];else if(e instanceof Q)return[null];else if(e instanceof ed)return[void 0,...z(e.unwrap())];else if(e instanceof ef)return[null,...z(e.unwrap())];else if(e instanceof eA)return z(e.unwrap());else if(e instanceof ev)return z(e.unwrap());else if(e instanceof ep)return z(e._def.innerType);else return[]};class $ extends m{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.$k.object)return(0,d.KD)(t,{code:l.NL.invalid_type,expected:f.$k.object,received:t.parsedType}),d.UI;let r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):((0,d.KD)(t,{code:l.NL.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),d.UI)}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=z(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 $({typeName:s.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...g(r)})}}class J extends m{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if((0,d.Hc)(e)||(0,d.Hc)(n))return d.UI;let i=function e(t,r){let n=(0,f.FQ)(t),i=(0,f.FQ)(r);if(t===r)return{valid:!0,data:t};if(n===f.$k.object&&i===f.$k.object){let n=f.D5.objectKeys(r),i=f.D5.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===f.$k.array&&i===f.$k.array){if(t.length!==r.length)return{valid:!1};let n=[];for(let i=0;i<t.length;i++){let a=e(t[i],r[i]);if(!a.valid)return{valid:!1};n.push(a.data)}return{valid:!0,data:n}}return n===f.$k.date&&i===f.$k.date&&+t==+r?{valid:!0,data:t}:{valid:!1}}(e.value,n.value);return i.valid?(((0,d.eT)(e)||(0,d.eT)(n))&&t.dirty(),{status:t.value,value:i.data}):((0,d.KD)(r,{code:l.NL.invalid_intersection_types}),d.UI)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(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}))}}J.create=(e,t,r)=>new J({left:e,right:t,typeName:s.ZodIntersection,...g(r)});class X extends m{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==f.$k.array)return(0,d.KD)(r,{code:l.NL.invalid_type,expected:f.$k.array,received:r.parsedType}),d.UI;if(r.data.length<this._def.items.length)return(0,d.KD)(r,{code:l.NL.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),d.UI;!this._def.rest&&r.data.length>this._def.items.length&&((0,d.KD)(r,{code:l.NL.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 h(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>d.Q9.mergeArray(t,e)):d.Q9.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new X({...this._def,rest:e})}}X.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new X({items:e,typeName:s.ZodTuple,rest:null,...g(t)})};class ee extends m{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!==f.$k.object)return(0,d.KD)(r,{code:l.NL.invalid_type,expected:f.$k.object,received:r.parsedType}),d.UI;let n=[],i=this._def.keyType,a=this._def.valueType;for(let e in r.data)n.push({key:i._parse(new h(r,e,r.path,e)),value:a._parse(new h(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?d.Q9.mergeObjectAsync(t,n):d.Q9.mergeObjectSync(t,n)}
29get element(){return this._def.valueType}static create(e,t,r){return new ee(t instanceof m?{keyType:e,valueType:t,typeName:s.ZodRecord,...g(r)}:{keyType:F.create(),valueType:e,typeName:s.ZodRecord,...g(t)})}}class et extends m{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!==f.$k.map)return(0,d.KD)(r,{code:l.NL.invalid_type,expected:f.$k.map,received:r.parsedType}),d.UI;let n=this._def.keyType,i=this._def.valueType,a=[...r.data.entries()].map(([e,t],a)=>({key:n._parse(new h(r,e,r.path,[a,"key"])),value:i._parse(new h(r,t,r.path,[a,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of a){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return d.UI;("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 a){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return d.UI;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}et.create=(e,t,r)=>new et({valueType:t,keyType:e,typeName:s.ZodMap,...g(r)});class er extends m{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==f.$k.set)return(0,d.KD)(r,{code:l.NL.invalid_type,expected:f.$k.set,received:r.parsedType}),d.UI;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&((0,d.KD)(r,{code:l.NL.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&((0,d.KD)(r,{code:l.NL.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let r=new Set;for(let n of e){if("aborted"===n.status)return d.UI;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let o=[...r.data.values()].map((e,t)=>i._parse(new h(r,e,r.path,t)));return r.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(e,t){return new er({...this._def,minSize:{value:e,message:o.toString(t)}})}max(e,t){return new er({...this._def,maxSize:{value:e,message:o.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}er.create=(e,t)=>new er({valueType:e,minSize:null,maxSize:null,typeName:s.ZodSet,...g(t)});class en extends m{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.$k.function)return(0,d.KD)(t,{code:l.NL.invalid_type,expected:f.$k.function,received:t.parsedType}),d.UI;function r(e,r){return(0,d.Xm)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,u.Pr)(),c.Z].filter(e=>!!e),issueData:{code:l.NL.invalid_arguments,argumentsError:r}})}function n(e,r){return(0,d.Xm)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,u.Pr)(),c.Z].filter(e=>!!e),issueData:{code:l.NL.invalid_return_type,returnTypeError:r}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof eu){let e=this;return(0,d.OK)(async function(...t){let o=new l.jm([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(r(t,e)),o}),u=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(u,i).catch(e=>{throw o.addIssue(n(u,e)),o})})}{let e=this;return(0,d.OK)(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new l.jm([r(t,o.error)]);let s=Reflect.apply(a,this,o.data),u=e._def.returns.safeParse(s,i);if(!u.success)throw new l.jm([n(s,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new en({...this._def,args:X.create(e).rest(V.create())})}returns(e){return new en({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new en({args:e||X.create([]).rest(V.create()),returns:t||V.create(),typeName:s.ZodFunction,...g(r)})}}class ei extends m{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})}}ei.create=(e,t)=>
29new ei({getter:e,typeName:s.ZodLazy,...g(t)});class ea extends m{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return(0,d.KD)(t,{received:t.data,code:l.NL.invalid_literal,expected:this._def.value}),d.UI}return{status:"valid",value:e.data}}get value(){return this._def.value}}function eo(e,t){return new es({values:e,typeName:s.ZodEnum,...g(t)})}ea.create=(e,t)=>new ea({value:e,typeName:s.ZodLiteral,...g(t)});class es extends m{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return(0,d.KD)(t,{expected:f.D5.joinValues(r),received:t.parsedType,code:l.NL.invalid_type}),d.UI}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return(0,d.KD)(t,{received:t.data,code:l.NL.invalid_enum_value,options:r}),d.UI}return(0,d.OK)(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 es.create(e,{...this._def,...t})}exclude(e,t=this._def){return es.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}es.create=eo;class el extends m{_parse(e){let t=f.D5.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==f.$k.string&&r.parsedType!==f.$k.number){let e=f.D5.objectValues(t);return(0,d.KD)(r,{expected:f.D5.joinValues(e),received:r.parsedType,code:l.NL.invalid_type}),d.UI}if(this._cache||(this._cache=new Set(f.D5.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=f.D5.objectValues(t);return(0,d.KD)(r,{received:r.data,code:l.NL.invalid_enum_value,options:e}),d.UI}return(0,d.OK)(e.data)}get enum(){return this._def.values}}el.create=(e,t)=>new el({values:e,typeName:s.ZodNativeEnum,...g(t)});class eu extends m{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==f.$k.promise&&!1===t.common.async)return(0,d.KD)(t,{code:l.NL.invalid_type,expected:f.$k.promise,received:t.parsedType}),d.UI;let r=t.parsedType===f.$k.promise?t.data:Promise.resolve(t.data);return(0,d.OK)(r.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eu.create=(e,t)=>new eu({type:e,typeName:s.ZodPromise,...g(t)});class ec extends m{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===s.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=>{(0,d.KD)(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 d.UI;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?d.UI:"dirty"===n.status||"dirty"===t.value?(0,d.RC)(n.value):n});{if("aborted"===t.value)return d.UI;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?d.UI:"dirty"===n.status||"dirty"===t.value?(0,d.RC)(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?d.UI:("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?d.UI:("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=>(0,d.JY)(e)?Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})):d.UI);{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!(0,d.JY)(e))return d.UI;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}}}f.D5.assertNever(n)}}ec.create=(e,t,r)=>new ec({schema:e,typeName:s.ZodEffects,effect:t,...g(r)}),ec.createWithPreprocess=(e,t,r)=>new ec({schema:t,effect:{type:"preprocess",transform:e},typeName:s.ZodEffects,...g(r)});class ed extends m{_parse(e){return this._getType(e)===f.$k.undefined?(0,d.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ed.create=(e,t)=>
29new ed({innerType:e,typeName:s.ZodOptional,...g(t)});class ef extends m{_parse(e){return this._getType(e)===f.$k.null?(0,d.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ef.create=(e,t)=>new ef({innerType:e,typeName:s.ZodNullable,...g(t)});class eh extends m{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===f.$k.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eh.create=(e,t)=>new eh({innerType:e,typeName:s.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...g(t)});class ep extends m{_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(0,d.S9)(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new l.jm(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new l.jm(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ep.create=(e,t)=>new ep({innerType:e,typeName:s.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...g(t)});class eg extends m{_parse(e){if(this._getType(e)!==f.$k.nan){let t=this._getOrReturnCtx(e);return(0,d.KD)(t,{code:l.NL.invalid_type,expected:f.$k.nan,received:t.parsedType}),d.UI}return{status:"valid",value:e.data}}}eg.create=e=>new eg({typeName:s.ZodNaN,...g(e)});let em=Symbol("zod_brand");class eA extends m{_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 ey extends m{_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?d.UI:"dirty"===e.status?(t.dirty(),(0,d.RC)(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?d.UI:"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 ey({in:e,out:t,typeName:s.ZodPipeline})}}class ev extends m{_parse(e){let t=this._def.innerType._parse(e),r=e=>((0,d.JY)(e)&&(e.value=Object.freeze(e.value)),e);return(0,d.S9)(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}function eb(e,t){let r="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof r?{message:r}:r}function ew(e,t={},r){return e?G.create().superRefine((n,i)=>{let a=e(n);if(a instanceof Promise)return a.then(e=>{if(!e){let e=eb(t,n),a=e.fatal??r??!0;i.addIssue({code:"custom",...e,fatal:a})}});if(!a){let e=eb(t,n),a=e.fatal??r??!0;i.addIssue({code:"custom",...e,fatal:a})}}):G.create()}ev.create=(e,t)=>new ev({innerType:e,typeName:s.ZodReadonly,...g(t)});let eS={object:Y.lazycreate};(a=s||(s={})).ZodString="ZodString",a.ZodNumber="ZodNumber",a.ZodNaN="ZodNaN",a.ZodBigInt="ZodBigInt",a.ZodBoolean="ZodBoolean",a.ZodDate="ZodDate",a.ZodSymbol="ZodSymbol",a.ZodUndefined="ZodUndefined",a.ZodNull="ZodNull",a.ZodAny="ZodAny",a.ZodUnknown="ZodUnknown",a.ZodNever="ZodNever",a.ZodVoid="ZodVoid",a.ZodArray="ZodArray",a.ZodObject="ZodObject",a.ZodUnion="ZodUnion",a.ZodDiscriminatedUnion="ZodDiscriminatedUnion",a.ZodIntersection="ZodIntersection",a.ZodTuple="ZodTuple",a.ZodRecord="ZodRecord",a.ZodMap="ZodMap",a.ZodSet="ZodSet",a.ZodFunction="ZodFunction",a.ZodLazy="ZodLazy",a.ZodLiteral="ZodLiteral",a.ZodEnum="ZodEnum",a.ZodEffects="ZodEffects",a.ZodNativeEnum="ZodNativeEnum",a.ZodOptional="ZodOptional",a.ZodNullable="ZodNullable",a.ZodDefault="ZodDefault",a.ZodCatch="ZodCatch",a.ZodPromise="ZodPromise",a.ZodBranded="ZodBranded",a.ZodPipeline="ZodPipeline",a.ZodReadonly="ZodReadonly";let eI=(e,t={message:`Input not instance of ${e.name}`})=>ew(t=>t instanceof e,t),eE=F.create,eC=P.create,ex=eg.create,ek=L.create,eO=B.create,eT=j.create,eR=U.create,e_=q.create,eD=Q.create,eN=G.create,eM=V.create,eF=H.create,eP=K.create,eL=W.create,eB=Y.create,ej=Y.strictCreate,eU=Z.create,eq=$.create,eQ=J.create,eG=X.create,eV=ee.create,eH=et.create,eK=er.create,eW=en.create,eY=ei.create,eZ=ea.create,ez=es.create,e$=el.create,eJ=eu.create,eX=ec.create,e0=ed.create,e1=ef.create,e2=ec.createWithPreprocess,e3=ey.create,e4=()=>eE().optional(),e8=()=>eC().optional(),e5=()=>eO().optional(),e6={string:e=>F.create({...e,coerce:!0}),number:e=>P.create({...e,coerce:!0}),boolean:e=>B.create({...e,coerce:!0}),bigint:e=>L.create({...e,coerce:!0}),date:e=>j.create({...e,coerce:!0})},e9=d.UI}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.