PageSourceSearch

https://www.kff.org/wp-content/plugins/kff-shared/dist/blocks/river/view.js?ver=ae294c8d33fb0c7e97e7

js kff.org collected 2026-10-01 07:24:07 UTC 78,155 bytes, 2 lines download raw bytes

1/*! For license information please see view.js.LICENSE.txt */
2!function(){var e={1020:function(e,t,r){"use strict";var s=r(1609),a=Symbol.for("react.element"),i=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var s,i={},c=null,u=null;for(s in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)n.call(t,s)&&!l.hasOwnProperty(s)&&(i[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===i[s]&&(i[s]=t[s]);return{$$typeof:a,type:e,key:c,ref:u,props:i,_owner:o.current}}t.jsx=c},1609:function(e){"use strict";e.exports=window.React},4848:function(e,t,r){"use strict";e.exports=r(1020)},5338:function(e,t,r){"use strict";var s=r(5795);t.H=s.createRoot,s.hydrateRoot},5795:function(e){"use strict";e.exports=window.ReactDOM},6942:function(e,t){var r;!function(){"use strict";var s={}.hasOwnProperty;function a(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=n(e,i(r)))}return e}function i(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)s.call(e,r)&&e[r]&&(t=n(t,r));return t}function n(e,t){return t?e?e+" "+t:e+t:e}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()}},t={};function r(s){var a=t[s];if(void 0!==a)return a.exports;var i=t[s]={exports:{}};return e[s](i,i.exports,r),i.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.element,t=r(5338),s={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},a=new class{#e=s;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};var i="undefined"===typeof window||"Deno"in globalThis;function n(){}function o(e){return"number"===typeof e&&e>=0&&e!==1/0}function l(e,t){return Math.max(e+(t||0)-Date.now(),0)}function c(e,t){return"function"===typeof e?e(t):e}function u(e,t){return"function"===typeof e?e(t):e}function h(e,t){const{type:r="all",exact:s,fetchStatus:a,predicate:i,queryKey:n,stale:o}=e;if(n)if(s){if(t.queryHash!==f(n,t.options))return!1}else if(!m(t.queryKey,n))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return("boolean"!==typeof o||t.isStale()===o)&&((!a||a===t.state.fetchStatus)&&!(i&&!i(t)))}function d(e,t){const{exact:r,status:s,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(p(t.options.mutationKey)!==p(i))return!1}else if(!m(t.options.mutationKey,i))return!1}return(!s||t.state.status===s)&&!(a&&!a(t))}function f(e,t){return(t?.queryKeyHashFn||p)(e)}function p(e){return JSON.stringify(e,(e,t)=>_(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function m(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&Object.keys(t).every(r=>m(e[r],t[r])))}var y=Object.prototype.hasOwnProperty;function v(e,t){if(e===t)return e;const r=b(e)&&b(t);if(!r&&(!_(e)||!_(t)))return t;const s=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),i=a.length,n=r?new Array(i):{};let o=0;for(let l=0;l<i;l++){const i=r?l:a[l],c=e[i],u=t[i];if(c===u){n[i]=c,(r?l<s:y.call(e,i))&&o++;continue}if(null===c||null===u||"object"!==typeof c||"object"!==typeof u){n[i]=u;continue}const h=v(c,u);n[i]=h,h===c&&o++}return s===i&&o===s?e:n}function g(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function b(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _(e){if(!w(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!w(r)&&(!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function w(e){return"[object Object]"===Object.prototype.toString.call(e)}function E(e,t,r){return"function"===typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?v(e,t):t}function S(e,t,r=0){const s=[...e,t];return r&&s.length>r?s.slice(1):s}function O(e,t,r=0){const s=[t,...e];return r&&s.length>r?s.slice(0,-1):s}var C=Symbol();function F(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==C?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var x=function(e){setTimeout(e,0)};var R=function(){let e=[],t=0,r=e=>{e()},s=e=>{e()},a=x;const i=s=>{t?e.push(s):a(()=>{r(s)})};return{batch:i=>{let n;t++;try{n=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&a(()=>{s(()=>
2{t.forEach(e=>{r(e)})})})})()}return n},batchCalls:e=>(...t)=>{i(()=>{e(...t)})},schedule:i,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{s=e},setScheduler:e=>{a=e}}}(),k=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},D=new class extends k{#r;#s;#a;constructor(){super(),this.#a=e=>{if(!i&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#s||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#s?.(),this.#s=void 0)}setEventListener(e){this.#a=e,this.#s?.(),this.#s=e(e=>{"boolean"===typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#r!==e&&(this.#r=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"===typeof this.#r?this.#r:"hidden"!==globalThis.document?.visibilityState}},A=new class extends k{#i=!0;#s;#a;constructor(){super(),this.#a=e=>{if(!i&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#s||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#s?.(),this.#s=void 0)}setEventListener(e){this.#a=e,this.#s?.(),this.#s=e(this.setOnline.bind(this))}setOnline(e){this.#i!==e&&(this.#i=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#i}};function N(){let e,t;const r=new Promise((r,s)=>{e=r,t=s});function s(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{s({status:"fulfilled",value:t}),e(t)},r.reject=e=>{s({status:"rejected",reason:e}),t(e)},r}function V(e){return Math.min(1e3*2**e,3e4)}function P(e){return"online"!==(e??"online")||A.isOnline()}var q=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function T(e){let t,r=!1,s=0;const n=N(),o=()=>"pending"!==n.status,l=()=>D.isFocused()&&("always"===e.networkMode||A.isOnline())&&e.canRun(),c=()=>P(e.networkMode)&&e.canRun(),u=e=>{o()||(t?.(),n.resolve(e))},h=e=>{o()||(t?.(),n.reject(e))},d=()=>new Promise(r=>{t=e=>{(o()||l())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,o()||e.onContinue?.()}),f=()=>{if(o())return;let t;const n=0===s?e.initialPromise:void 0;try{t=n??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(u).catch(t=>{if(o())return;const n=e.retry??(i?0:3),c=e.retryDelay??V,u="function"===typeof c?c(s,t):c,p=!0===n||"number"===typeof n&&s<n||"function"===typeof n&&n(s,t);var m;!r&&p?(s++,e.onFail?.(s,t),(m=u,new Promise(e=>{a.setTimeout(e,m)})).then(()=>l()?void 0:d()).then(()=>{r?h(t):f()})):h(t)})};return{promise:n,status:()=>n.status,cancel:t=>{if(!o()){const r=new q(t);h(r),e.onCancel?.(r)}},continue:()=>(t?.(),n),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:c,start:()=>(c()?f():d().then(f),n)}}var Q=class{#n;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),o(this.gcTime)&&(this.#n=a.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(i?1/0:3e5))}clearGcTimeout(){this.#n&&(a.clearTimeout(this.#n),this.#n=void 0)}},M=class extends Q{#o;#l;#c;#u;#h;#d;#f;constructor(e){super(),this.#f=!1,this.#d=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#u=e.client,this.#c=this.#u.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#o=L(this.options),this.state=e.state??this.#o,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#h?.promise}setOptions(e){if(this.options={...this.#d,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=L(this.options);void 0!==e.data&&(this.setState(j(e.data,e.dataUpdatedAt)),this.#o=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#c.remove(this)}setData(e,t){const r=E(this.state.data,e,this.options);return this.#p({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#p({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#h?.promise;return this.#h?.cancel(e),t?t.then(n).catch(n):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#o)}isActive(){return this.observers.some(e=>!1!==u(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===C||this.state.dataUpdateCount+this.state.errorUpdate
2Count===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===c(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!l(this.state.dataUpdatedAt,e))}onFocus(){const e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#h?.continue()}onOnline(){const e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#h?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#c.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#h&&(this.#f?this.#h.cancel({revert:!0}):this.#h.cancelRetry()),this.scheduleGc()),this.#c.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#p({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#h?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#h)return this.#h.continueRetry(),this.#h.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const r=new AbortController,s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#f=!0,r.signal)})},a=()=>{const e=F(this.options,t),r=(()=>{const e={client:this.#u,queryKey:this.queryKey,meta:this.meta};return s(e),e})();return this.#f=!1,this.options.persister?this.options.persister(e,r,this):e(r)},i=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#u,state:this.state,fetchFn:a};return s(e),e})();this.options.behavior?.onFetch(i,this),this.#l=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||this.#p({type:"fetch",meta:i.fetchOptions?.meta}),this.#h=T({initialPromise:t?.initialPromise,fn:i.fetchFn,onCancel:e=>{e instanceof q&&e.revert&&this.setState({...this.#l,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#p({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#p({type:"pause"})},onContinue:()=>{this.#p({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0});try{const e=await this.#h.start();if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#c.config.onSuccess?.(e,this),this.#c.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof q){if(e.silent)return this.#h.promise;if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#p({type:"error",error:e}),this.#c.config.onError?.(e,this),this.#c.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#p(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...I(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,...j(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#l=e.manual?r:void 0,r;case"error":const s=e.error;return{...t,error:s,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),R.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#c.notify({query:this,type:"updated",action:e})})}};function I(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:P(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function j(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function L(e){const t="function"===typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,
vendor: 4,346 bytes, line 2
2s=r?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var U=class extends k{constructor(e={}){super(),this.config=e,this.#m=new Map}#m;build(e,t,r){const s=t.queryKey,a=t.queryHash??f(s,t);let i=this.get(a);return i||(i=new M({client:e,queryKey:s,queryHash:a,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(i)),i}add(e){this.#m.has(e.queryHash)||(this.#m.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#m.get(e.queryHash);t&&(e.destroy(),t===e&&this.#m.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){R.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#m.get(e)}getAll(){return[...this.#m.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>h(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>h(e,t)):t}notify(e){R.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){R.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){R.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},H=class extends Q{#u;#y;#v;#h;constructor(e){super(),this.#u=e.client,this.mutationId=e.mutationId,this.#v=e.mutationCache,this.#y=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#y.includes(e)||(this.#y.push(e),this.clearGcTimeout(),this.#v.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#y=this.#y.filter(t=>t!==e),this.scheduleGc(),this.#v.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#y.length||("pending"===this.state.status?this.scheduleGc():this.#v.remove(this))}continue(){return this.#h?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#p({type:"continue"})},r={client:this.#u,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#h=T({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#p({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#p({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#v.canRun(this)});const s="pending"===this.state.status,a=!this.#h.canStart();try{if(s)t();else{this.#p({type:"pending",variables:e,isPaused:a}),await(this.#v.config.onMutate?.(e,this,r));const t=await(this.options.onMutate?.(e,r));t!==this.state.context&&this.#p({type:"pending",context:t,variables:e,isPaused:a})}const i=await this.#h.start();return await(this.#v.config.onSuccess?.(i,e,this.state.context,this,r)),await(this.options.onSuccess?.(i,e,this.state.context,r)),await(this.#v.config.onSettled?.(i,null,this.state.variables,this.state.context,this,r)),await(this.options.onSettled?.(i,null,e,this.state.context,r)),this.#p({type:"success",data:i}),i}catch(t){try{throw await(this.#v.config.onError?.(t,e,this.state.context,this,r)),await(this.options.onError?.(t,e,this.state.context,r)),await(this.#v.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r)),await(this.options.onSettled?.(void 0,t,e,this.state.context,r)),t}finally{this.#p({type:"error",error:t})}}finally{this.#v.runNext(this)}}#p(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPau
2sed:!1,status:"error"}}})(this.state),R.batch(()=>{this.#y.forEach(t=>{t.onMutationUpdate(e)}),this.#v.notify({mutation:this,type:"updated",action:e})})}};var B=class extends k{constructor(e={}){super(),this.config=e,this.#g=new Set,this.#b=new Map,this.#_=0}#g;#b;#_;build(e,t,r){const s=new H({client:e,mutationCache:this,mutationId:++this.#_,options:e.defaultMutationOptions(t),state:r});return this.add(s),s}add(e){this.#g.add(e);const t=K(e);if("string"===typeof t){const r=this.#b.get(t);r?r.push(e):this.#b.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#g.delete(e)){const t=K(e);if("string"===typeof t){const r=this.#b.get(t);if(r)if(r.length>1){const t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#b.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=K(e);if("string"===typeof t){const r=this.#b.get(t),s=r?.find(e=>"pending"===e.state.status);return!s||s===e}return!0}runNext(e){const t=K(e);if("string"===typeof t){const r=this.#b.get(t)?.find(t=>t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}return Promise.resolve()}clear(){R.batch(()=>{this.#g.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#g.clear(),this.#b.clear()})}getAll(){return Array.from(this.#g)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>d(t,e))}findAll(e={}){return this.getAll().filter(t=>d(e,t))}notify(e){R.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>
2e.state.isPaused);return R.batch(()=>Promise.all(e.map(e=>e.continue().catch(n))))}};function K(e){return e.options.scope?.id}function Z(e){return{onFetch:(t,r)=>{const s=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],n=t.state.data?.pageParams||[];let o={pages:[],pageParams:[]},l=0;const c=async()=>{let r=!1;const c=F(t.options,t.fetchOptions),u=async(e,s,a)=>{if(r)return Promise.reject();if(null==s&&e.pages.length)return Promise.resolve(e);const i=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:s,direction:a?"backward":"forward",meta:t.options.meta};var i;return i=e,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>(t.signal.aborted?r=!0:t.signal.addEventListener("abort",()=>{r=!0}),t.signal)}),e})(),n=await c(i),{maxPages:o}=t.options,l=a?O:S;return{pages:l(e.pages,n,o),pageParams:l(e.pageParams,s,o)}};if(a&&i.length){const e="backward"===a,t={pages:i,pageParams:n},r=(e?G:$)(s,t);o=await u(t,r,e)}else{const t=e??i.length;do{const e=0===l?n[0]??s.initialPageParam:$(s,o);if(l>0&&null==e)break;o=await u(o,e),l++}while(l<t)}return o};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function $(e,{pages:t,pageParams:r}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,r[s],r):void 0}function G(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var W=r(1609),J=r(4848),z=W.createContext(void 0),Y=({client:e,children:t})=>(W.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,J.jsx)(z.Provider,{value:e,children:t})),X=class extends k{constructor(e,t){super(),this.options=t,this.#u=e,this.#w=null,this.#E=N(),this.bindMethods(),this.setOptions(t)}#u;#S=void 0;#O=void 0;#C=void 0;#F;#x;#E;#w;#R;#k;#D;#A;#N;#V;#P=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#S.addObserver(this),ee(this.#S,this.options)?this.#q():this.updateResult(),this.#T())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return te(this.#S,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return te(this.#S,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#Q(),this.#M(),this.#S.removeObserver(this)}setOptions(e){const t=this.options,r=this.#S;if(this.options=this.#u.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!==typeof this.options.enabled&&"function"!==typeof this.options.enabled&&"boolean"!==typeof u(this.options.enabled,this.#S))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#I(),this.#S.setOptions(this.options),t._defaulted&&!g(this.options,t)&&this.#u.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#S,observer:this});const s=this.hasListeners();s&&re(this.#S,r,this.options,t)&&this.#q(),this.updateResult(),!s||this.#S===r&&u(this.options.enabled,this.#S)===u(t.enabled,this.#S)&&c(this.options.staleTime,this.#S)===c(t.staleTime,this.#S)||this.#j();const a=this.#L();!s||this.#S===r&&u(this.options.enabled,this.#S)===u(t.enabled,this.#S)&&a===this.#V||this.#U(a)}getOptimisticResult(e){const t=this.#u.getQueryCache().build(this.#u,e),r=this.createResult(t,e);return function(e,t){if(!g(e.getCurrentResult(),t))return!0;return!1}(this,r)&&(this.#C=r,this.#x=this.options,this.#F=this.#S.state),r}getCurrentResult(){return this.#C}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#E.status||this.#E.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#P.add(e)}getCurrentQuery(){return this.#S}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#u.defaultQueryOptions(e),r=this.#u.getQueryCache().build(this.#u,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#q({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#C))}#q(e){this.#I();let t=this.#S.fetch(this.options,e);return e?.throwOnError||(t=t.catch(n)),t}#j(){this.#Q();const e=c(this.options.staleTime,this.#S);if(i||this.#C.isStale||!o(e))return;const t=l(this.#C.dataUpdatedAt,e)+1;this.#A=a.setTimeout(()=>{this.#C.isStale||this.updateResult()},t)}#L(){return("function"===typeof this.options.refetchInterval?this.options.refetchInterval(this.#S):this.options.refetchInterval)??!1}#U(e){this.#M(),this.#V=e,!i&&!1!==u(this.options.enabled,this.#S)&&o(this.#V)&&0!==this.#V&&(this.#N=a.setInterval(()=>
2{(this.options.refetchIntervalInBackground||D.isFocused())&&this.#q()},this.#V))}#T(){this.#j(),this.#U(this.#L())}#Q(){this.#A&&(a.clearTimeout(this.#A),this.#A=void 0)}#M(){this.#N&&(a.clearInterval(this.#N),this.#N=void 0)}createResult(e,t){const r=this.#S,s=this.options,a=this.#C,i=this.#F,n=this.#x,o=e!==r?e.state:this.#O,{state:l}=e;let c,h={...l},d=!1;if(t._optimisticResults){const a=this.hasListeners(),i=!a&&ee(e,t),n=a&&re(e,r,t,s);(i||n)&&(h={...h,...I(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(h.fetchStatus="idle")}let{error:f,errorUpdatedAt:p,status:m}=h;c=h.data;let y=!1;if(void 0!==t.placeholderData&&void 0===c&&"pending"===m){let e;a?.isPlaceholderData&&t.placeholderData===n?.placeholderData?(e=a.data,y=!0):e="function"===typeof t.placeholderData?t.placeholderData(this.#D?.state.data,this.#D):t.placeholderData,void 0!==e&&(m="success",c=E(a?.data,e,t),d=!0)}if(t.select&&void 0!==c&&!y)if(a&&c===i?.data&&t.select===this.#R)c=this.#k;else try{this.#R=t.select,c=t.select(c),c=E(a?.data,c,t),this.#k=c,this.#w=null}catch(e){this.#w=e}this.#w&&(f=this.#w,c=this.#k,p=Date.now(),m="error");const v="fetching"===h.fetchStatus,g="pending"===m,b="error"===m,_=g&&v,w=void 0!==c,S={status:m,fetchStatus:h.fetchStatus,isPending:g,isSuccess:"success"===m,isError:b,isInitialLoading:_,isLoading:_,data:c,dataUpdatedAt:h.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>o.dataUpdateCount||h.errorUpdateCount>o.errorUpdateCount,isFetching:v,isRefetching:v&&!g,isLoadingError:b&&!w,isPaused:"paused"===h.fetchStatus,isPlaceholderData:d,isRefetchError:b&&w,isStale:se(e,t),refetch:this.refetch,promise:this.#E,isEnabled:!1!==u(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===S.status?e.reject(S.error):void 0!==S.data&&e.resolve(S.data)},s=()=>{const e=this.#E=S.promise=N();t(e)},a=this.#E;switch(a.status){case"pending":e.queryHash===r.queryHash&&t(a);break;case"fulfilled":"error"!==S.status&&S.data===a.value||s();break;case"rejected":"error"===S.status&&S.error===a.reason||s()}}return S}updateResult(){const e=this.#C,t=this.createResult(this.#S,this.options);if(this.#F=this.#S.state,this.#x=this.options,void 0!==this.#F.data&&(this.#D=this.#S),g(t,e))return;this.#C=t;this.#H({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,r="function"===typeof t?t():t;if("all"===r||!r&&!this.#P.size)return!0;const s=new Set(r??this.#P);return this.options.throwOnError&&s.add("error"),Object.keys(this.#C).some(t=>{const r=t;return this.#C[r]!==e[r]&&s.has(r)})})()})}#I(){const e=this.#u.getQueryCache().build(this.#u,this.options);if(e===this.#S)return;const t=this.#S;this.#S=e,this.#O=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#T()}#H(e){R.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#C)}),this.#u.getQueryCache().notify({query:this.#S,type:"observerResultsUpdated"})})}};function ee(e,t){return function(e,t){return!1!==u(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&te(e,t,t.refetchOnMount)}function te(e,t,r){if(!1!==u(t.enabled,e)&&"static"!==c(t.staleTime,e)){const s="function"===typeof r?r(e):r;return"always"===s||!1!==s&&se(e,t)}return!1}function re(e,t,r,s){return(e!==t||!1===u(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&se(e,r)}function se(e,t){return!1!==u(t.enabled,e)&&e.isStaleByTime(c(t.staleTime,e))}function ae(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ie=W.createContext(ae()),ne=W.createContext(!1),oe=(ne.Provider,(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()}));function le(e,t,r){const s=W.useContext(ne),a=W.useContext(ie),o=(e=>{const t=W.useContext(z);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t})(r),l=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=s?"isRestoring":"optimistic",(e=>{if(e.suspense){const t=1e3,r=e=>"static"===e?e:Math.max(e??t,t),s=e.staleTime;e.staleTime="function"===typeof s?(...e)=>r(s(...e)):r(s),"number"===typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}})(l),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOn
2Mount=!1))})(l,a),(e=>{W.useEffect(()=>{e.clearReset()},[e])})(a);const c=!o.getQueryCache().get(l.queryHash),[u]=W.useState(()=>new t(o,l)),h=u.getOptimisticResult(l),d=!s&&!1!==e.subscribed;if(W.useSyncExternalStore(W.useCallback(e=>{const t=d?u.subscribe(R.batchCalls(e)):n;return u.updateResult(),t},[u,d]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),W.useEffect(()=>{u.setOptions(l)},[l,u]),((e,t)=>e?.suspense&&t.isPending)(l,h))throw oe(l,u,a);if((({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(a&&void 0===e.data||function(e,t){return"function"===typeof e?e(...t):!!e}(r,[e.error,s])))({result:h,errorResetBoundary:a,throwOnError:l.throwOnError,query:o.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw h.error;if(o.getDefaultOptions().queries?._experimental_afterQuery?.(l,h),l.experimental_prefetchInRender&&!i&&((e,t)=>e.isLoading&&e.isFetching&&!t)(h,s)){const e=c?oe(l,u,a):o.getQueryCache().get(l.queryHash)?.promise;e?.catch(n).finally(()=>{u.updateResult()})}return l.notifyOnChangeProps?h:u.trackResult(h)}var ce=r(6942),ue=r.n(ce),he=e=>"checkbox"===e.type,de=e=>e instanceof Date,fe=e=>null==e;const pe=e=>"object"===typeof e;var me=e=>!fe(e)&&!Array.isArray(e)&&pe(e)&&!de(e),ye=e=>me(e)&&e.target?he(e.target)?e.target.checked:e.target.value:e,ve=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),ge="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function be(e){let t;const r=Array.isArray(e),s="undefined"!==typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else{if(ge&&(e instanceof Blob||s)||!r&&!me(e))return e;if(t=r?[]:Object.create(Object.getPrototypeOf(e)),r||(e=>{const t=e.constructor&&e.constructor.prototype;return me(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const r in e)e.hasOwnProperty(r)&&(t[r]=be(e[r]));else t=e}return t}var _e=e=>/^\w*$/.test(e),we=e=>void 0===e,Ee=e=>Array.isArray(e)?e.filter(Boolean):[],Se=e=>Ee(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Oe=(e,t,r)=>{if(!t||!me(e))return r;const s=(_e(t)?[t]:Se(t)).reduce((e,t)=>fe(e)?e:e[t],e);return we(s)||s===e?we(e[t])?r:e[t]:s},Ce=e=>"boolean"===typeof e,Fe=(e,t,r)=>{let s=-1;const a=_e(t)?[t]:Se(t),i=a.length,n=i-1;for(;++s<i;){const t=a[s];let i=r;if(s!==n){const r=e[t];i=me(r)||Array.isArray(r)?r:isNaN(+a[s+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=i,e=e[t]}};const xe="blur",Re="focusout",ke="onBlur",De="onChange",Ae="onSubmit",Ne="onTouched",Ve="all",Pe="max",qe="min",Te="maxLength",Qe="minLength",Me="pattern",Ie="required",je="validate",Le=W.createContext(null);Le.displayName="HookFormContext";var Ue=(e,t,r,s=!0)=>{const a={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(a,i,{get:()=>{const a=i;return t._proxyFormState[a]!==Ve&&(t._proxyFormState[a]=!s||Ve),r&&(r[a]=!0),e[a]}});return a};const He="undefined"!==typeof window?W.useLayoutEffect:W.useEffect;var Be=e=>"string"===typeof e,Ke=(e,t,r,s,a)=>Be(e)?(s&&t.watch.add(e),Oe(r,e,a)):Array.isArray(e)?e.map(e=>(s&&t.watch.add(e),Oe(r,e))):(s&&(t.watchAll=!0),r),Ze=e=>fe(e)||!pe(e);function $e(e,t,r=new WeakSet){if(Ze(e)||Ze(t))return Object.is(e,t);if(de(e)&&de(t))return e.getTime()===t.getTime();const s=Object.keys(e),a=Object.keys(t);if(s.length!==a.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const i of s){const s=e[i];if(!a.includes(i))return!1;if("ref"!==i){const e=t[i];if(de(s)&&de(e)||me(s)&&me(e)||Array.isArray(s)&&Array.isArray(e)?!$e(s,e,r):!Object.is(s,e))return!1}}return!0}var Ge=(e,t,r,s,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[s]:a||!0}}:{},We=e=>Array.isArray(e)?e:[e],Je=()=>{let e=[];return{get observers(){return e},next:t=>{for(const r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function ze(e,t){const r={};for(const s in e)if(e.hasOwnProperty(s)){const a=e[s],i=t[s];if(a&&me(a)&&i){const e=ze(a,i);me(e)&&(r[s]=e)}else e[s]&&(r[s]=i)}return r}var Ye=e=>me(e)&&!Object.keys(e).length,Xe=e=>"file"===e.type,et=e=>"function"===typeof e,tt=e=>{if(!ge)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},rt=e=>"select-multiple"===e.type,st=e=>"radio"===e.type,at=e=>tt(e)&&e.isConnected;function it(e,t){const r=Array.isArray(t)?t:_e(t)?[t]:Se(t),s=1===r.length?e:function(e,t){const r=t.slice(0,-1).length;let s=0;for(;s<r;)e=we(e)?s++:e[t[s++]];return e}(e,r),a=r.length-1,i=r[a];return s&&delete s[i],0!==a&&(me(s)&&Ye(s)||Array.isArray(s)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!we(e[t]))return!1;return!0}(s))&&it(e,r.slice(0,-1)),e}function nt(e){return Array.isArray(e)||me(e)&&!(e=>{for(const t in e)if(et(e[t]))return!0;return!1})(e)}function ot(e,t={}){for(const r in e){const s=e[r];nt(s)?(t[r]=Array.isArray(s)?[]:{},ot(s,t[r])):we(s)||(t[r]=!0)}return t}function lt(e,t,r){r||(r=ot(t));for(const s in e){const a=e[s];if(nt(a))we(t)||Ze(r[s])?r[s]=ot(a,Array.isArray(a)?[]:{}):lt(a,fe(t)?{}:t[s],r[s]);else{const e=t[s];r[s]=!$e(a,e)}}return r}const ct={value:!1,isValid:!1},ut={value:!0,isValid:!0};var ht=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!we(e[0].attributes.value)?we(e[0].value)||""===e[0].value?ut:{value:e[0].value,isValid:!0}:ut:ct}return ct},dt=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:s})=>we(e)?e:t?""===e?NaN:e?+e:e:r&&Be(e)?new Date(e):s?s(e):e;
vendor: 17,404 bytes, line 2
2const ft={isValid:!1,value:null};var pt=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,ft):ft;function mt(e){const t=e.ref;return Xe(t)?t.files:st(t)?pt(e.refs).value:rt(t)?[...t.selectedOptions].map(({value:e})=>e):he(t)?ht(e.refs).value:dt(we(t.value)?e.ref.value:t.value,e)}var yt=e=>e instanceof RegExp,vt=e=>we(e)?e:yt(e)?e.source:me(e)?yt(e.value)?e.value.source:e.value:e,gt=e=>({isOnSubmit:!e||e===Ae,isOnBlur:e===ke,isOnChange:e===De,isOnAll:e===Ve,isOnTouch:e===Ne});const bt="AsyncFunction";var _t=e=>!!e&&!!e.validate&&!!(et(e.validate)&&e.validate.constructor.name===bt||me(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===bt)),wt=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));const Et=(e,t,r,s)=>{for(const a of r||Object.keys(e)){const r=Oe(e,a);if(r){const{_f:e,...i}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],a)&&!s)return!0;if(e.ref&&t(e.ref,e.name)&&!s)return!0;if(Et(i,t))break}else if(me(i)&&Et(i,t))break}}};function St(e,t,r){const s=Oe(e,r);if(s||_e(r))return{error:s,name:r};const a=r.split(".");for(;a.length;){const s=a.join("."),i=Oe(t,s),n=Oe(e,s);if(i&&!Array.isArray(i)&&r!==s)return{name:r};if(n&&n.type)return{name:s,error:n};if(n&&n.root&&n.root.type)return{name:`${s}.root`,error:n.root};a.pop()}return{name:r}}var Ot=(e,t,r)=>{const s=We(Oe(e,r));return Fe(s,"root",t[r]),Fe(e,r,s),e};function Ct(e,t,r="validate"){if(Be(e)||Array.isArray(e)&&e.every(Be)||Ce(e)&&!e)return{type:r,message:Be(e)?e:"",ref:t}}var Ft=e=>me(e)&&!yt(e)?e:{value:e,message:""},xt=async(e,t,r,s,a,i)=>{const{ref:n,refs:o,required:l,maxLength:c,minLength:u,min:h,max:d,pattern:f,validate:p,name:m,valueAsNumber:y,mount:v}=e._f,g=Oe(r,m);if(!v||t.has(m))return{};const b=o?o[0]:n,_=e=>{a&&b.reportValidity&&(b.setCustomValidity(Ce(e)?"":e||""),b.reportValidity())},w={},E=st(n),S=he(n),O=E||S,C=(y||Xe(n))&&we(n.value)&&we(g)||tt(n)&&""===n.value||""===g||Array.isArray(g)&&!g.length,F=Ge.bind(null,m,s,w),x=(e,t,r,s=Te,a=Qe)=>{const i=e?t:r;w[m]={type:e?s:a,message:i,ref:n,...F(e?s:a,i)}};if(i?!Array.isArray(g)||!g.length:l&&(!O&&(C||fe(g))||Ce(g)&&!g||S&&!ht(o).isValid||E&&!pt(o).isValid)){const{value:e,message:t}=Be(l)?{value:!!l,message:l}:Ft(l);if(e&&(w[m]={type:Ie,message:t,ref:b,...F(Ie,t)},!s))return _(t),w}if(!C&&(!fe(h)||!fe(d))){let e,t;const r=Ft(d),a=Ft(h);if(fe(g)||isNaN(g)){const s=n.valueAsDate||new Date(g),i=e=>new Date((new Date).toDateString()+" "+e),o="time"==n.type,l="week"==n.type;Be(r.value)&&g&&(e=o?i(g)>i(r.value):l?g>r.value:s>new Date(r.value)),Be(a.value)&&g&&(t=o?i(g)<i(a.value):l?g<a.value:s<new Date(a.value))}else{const s=n.valueAsNumber||(g?+g:g);fe(r.value)||(e=s>r.value),fe(a.value)||(t=s<a.value)}if((e||t)&&(x(!!e,r.message,a.message,Pe,qe),!s))return _(w[m].message),w}if((c||u)&&!C&&(Be(g)||i&&Array.isArray(g))){const e=Ft(c),t=Ft(u),r=!fe(e.value)&&g.length>+e.value,a=!fe(t.value)&&g.length<+t.value;if((r||a)&&(x(r,e.message,t.message),!s))return _(w[m].message),w}if(f&&!C&&Be(g)){const{value:e,message:t}=Ft(f);if(yt(e)&&!g.match(e)&&(w[m]={type:Me,message:t,ref:n,...F(Me,t)},!s))return _(t),w}if(p)if(et(p)){const e=Ct(await p(g,r),b);if(e&&(w[m]={...e,...F(je,e.message)},!s))return _(e.message),w}else if(me(p)){let e={};for(const t in p){if(!Ye(e)&&!s)break;const a=Ct(await p[t](g,r),b,t);a&&(e={...a,...F(t,a.message)},_(a.message),s&&(w[m]=e))}if(!Ye(e)&&(w[m]={ref:b,...e},!s))return w}return _(!0),w};const Rt={mode:Ae,reValidateMode:De,shouldFocusError:!0};function kt(e={}){let t,r={...Rt,...e},s={submitCount:0,isDirty:!1,isReady:!1,isLoading:et(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},a={},i=(me(r.defaultValues)||me(r.values))&&be(r.defaultValues||r.values)||{},n=r.shouldUnregister?{}:be(i),o={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let h={...u};const d={array:Je(),state:Je()},f=r.criteriaMode===Ve,p=async e=>{if(!r.disabled&&(u.isValid||h.isValid||e)){const e=r.resolver?Ye((await b()).errors):await _(a,!0);e!==s.isValid&&d.state.next({isValid:e})}},m=(e,t)=>{!r.disabled&&(u.isValidating||u.validatingFields||h.isValidating||h.validatingFields)&&((e||Array.from(l.mount)).forEach(e=>{e&&(t?Fe(s.validatingFields,e,t):it(s.validatingFields,e))}),d.state.next({validatingFields:s.validatingFields,isValidating:!Ye(s.validatingFields)}))},y=(e,t,r,s)=>{const l=Oe(a,e);if(l){const a=Oe(n,e,we(r)?Oe(i,e):r);we(a)||s&&s.defaultChecked||t?Fe(n,e,t?a:mt(l._f)):S(e,a),o.mount&&!o.action&&p()}},v=(e,t,a,n,o)=>{let l=!1,c=!1;const f={name:e};if(!r.disabled){if(!a||n){(u.isDirty||h.isDirty)&&(c=s.isDirty,s.isDirty=f.isDirty=w(),l=c!==f.isDirty);const r=$e(Oe(i,e),t);c=!!Oe(s.dirtyFields,e),r?it(s.dirtyFields,e):Fe(s.dirtyFields,e,!0),f.dirtyFields=s.dirtyFields,l=l||(u.dirtyFields||h.dirtyFields)&&c!==!r}if(a){const t=Oe(s.touchedFields,e);t||(Fe(s.touchedFields,e,a),f.touchedFields=s.touchedFields,l=l||(u.touchedFields||h.touchedFields)&&t!==a)}l&&o&&d.state.next(f)}return l?f:{}},g=(e,a,i,n)=>{const o=Oe(s.errors,e),l=(u.isValid||h.isValid)&&Ce(a)&&s.isValid!==a;var f;if(r.delayError&&i?(f=()=>((e,t)=>{Fe(s.errors,e,t),d.state.next({errors:s.errors})})(e,i),t=e=>{clearTimeout(c),c=setTimeout(f,e)},t(r.delayError)):(clearTimeout(c),t=null,i?Fe(s.errors,e,i):it(s.errors,e)),(i?!$e(o,i):o)||!Ye(n)||l){const t={...n,...l&&Ce(a)?{isValid:a}:{},errors:s.errors,name:e};s={...s,...t},d.state.next(t)}},b=async e=>{m(e,!0);const t=await r.resolver(n,r.context,((e,t,r,s)=>{const a={};for(const r of e){const e=Oe(t,r);e&&Fe(a,r,e._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:s}})(e||l.mount,a,r.criteriaMode,r.shouldUseNativeValidation));return m(e),t},_=async(e,t,a={valid:!0})=>{for(const i in e){const o=e[i];if(o){const{_f:e,...i}=o;if(e){const i=l.array.has(e.name),c=o._f&&_t(o._f);c&&u.validatingFields&&m([e.name],!0);const h=await xt(o,l.disabled,n,f,r.shouldUseNativeValidation&&!t,i);if(c&&u.validatingFields&&m([e.name]),h[e.name]&&(a.valid=!1,t))break;!t&&(Oe(h,e.name)?i?Ot(s.errors,h,e.name):Fe(s.errors,e.name,h[e.name]):it(s.errors,e.name))}!Ye(i)&&await _(i,t,a)}}return a.valid},w=(e,t)=>!r.disabled&&(e&&t&&Fe(n,e,t),!$e(k(),i)),E=(e,t,r)=>Ke(e,l,{...o.mount?n:we(t)?i:Be(e)?{[e]:t}:t},r,t),S=(e,t,r={})=>{const s=Oe(a,e);let i=t;if(s){const r=s._f;r&&(!r.disabled&&Fe(n,e,dt(t,r)),i=tt(r.ref)&&fe(t)?"":t,rt(r.ref)?[...r.ref.options].forEach(e=>e.selected=i.includes(e.value)):r.refs?he(r.ref)?r.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(i)?e.checked=!!i.find(t=>t===e.value):e.checked=i===e.value||!!i)}):r.refs.forEach(e=>e.checked=e.value===i):Xe(r.ref)?r.ref.value="":(r.ref.value=i,r.ref.type||d.state.next({name:e,values:be(n)})))}(r.shouldDirty||r.shouldTouch)&&v(e,i,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&R(e)},O=(e,t,r)=>{for(const s in t){if(!t.hasOwnProperty(s))return;const i=t[s],n=e+"."+s,o=Oe(a,n);(l.array.has(e)||me(i)||o&&!o._f)&&!de(i)?O(n,i,r):S(n,i,r)}},C=(e,t,r={})=>{const c=Oe(a,e),f=l.array.has(e),p=be(t);Fe(n,e,p),f?(d.array.next({name:e,values:be(n)}),(u.isDirty||u.dirtyFields||h.isDirty||h.dirtyFields)&&r.shouldDirty&&d.state.next({name:e,dirtyFields:lt(i,n),isDirty:w(e,p)})):!c||c._f||fe(p)?S(e,p,r):O(e,p,r),wt(e,l)&&d.state.next({...s,name:e}),d.state.next({name:o.mount?e:void 0,values:be(n)})},F=async e=>{o.mount=!0;const i=e.target;let c=i.name,y=!0;const w=Oe(a,c),E=e=>{y=Number.isNaN(e)||de(e)&&isNaN(e.getTime())||$e(e,Oe(n,c,e))},S=gt(r.mode),O=gt(r.reValidateMode);if(w){let o,F;const x=i.type?mt(w._f):ye(e),k=e.type===xe||e.type===Re,D=!((C=w._f).mount&&(C.required||C.min||C.max||C.maxLength||C.minLength||C.pattern||C.validate))&&!r.resolver&&!Oe(s.errors,c)&&!w._f.deps||((e,t,r,s,a)=>!a.isOnAll&&(!r&&a.isOnTouch?!(t||e):(r?s.isOnBlur:a.isOnBlur)?!e:!(r?s.isOnChange:a.isOnChange)||e))(k,Oe(s.touchedFields,c),s.isSubmitted,O,S),A=wt(c,l,k);Fe(n,c,x),k?i&&i.readOnly||(w._f.onBlur&&w._f.onBlur(e),t&&t(0)):w._f.onChange&&w._f.onChange(e);const N=v(c,x,k),V=!Ye(N)||A;if(!k&&d.state.next({name:c,type:e.type,values:be(n)}),D)return(u.isValid||h.isValid)&&("onBlur"===r.mode?k&&p():k||p()),V&&d.state.next({name:c,...A?{}:N});if(!k&&A&&d.state.next({...s}),r.resolver){const{errors:e}=await b([c]);if(E(x),y){const t=St(s.errors,a,c),r=St(e,a,t.name||c);o=r.error,c=r.name,F=Ye(e)}}else m([c],!0),o=(await xt(w,l.disabled,n,f,r.shouldUseNativeValidation))[c],m([c]),E(x),y&&(o?F=!1:(u.isValid||h.isValid)&&(F=await _(a,!0)));y&&(w._f.deps&&(!Array.isArray(w._f.deps)||w._f.deps.length>0)&&R(w._f.deps),g(c,F,o,N))}var C},x=(e,t)=>{if(Oe(s.errors,t)&&e.focus)return e.focus(),1},R=async(e,t={})=>{let i,n;const o=We(e);if(r.resolver){const t=await(async e=>{const{errors:t}=await b(e);if(e)for(const r of e){const e=Oe(t,r);e?Fe(s.errors,r,e):it(s.errors,r)}else s.errors=t;return t})(we(e)?e:o);i=Ye(t),n=e?!o.some(e=>Oe(t,e)):i}else e?(n=(await Promise.all(o.map(async e=>{const t=Oe(a,e);return await _(t&&t._f?{[e]:t}:t)}))).every(Boolean),(n||s.isValid)&&p()):n=i=await _(a);return d.state.next({...!Be(e)||(u.isValid||h.isValid)&&i!==s.isValid?{}:{name:e},...r.resolver||!e?{isValid:i}:{},errors:s.errors}),t.shouldFocus&&!n&&Et(a,x,e?o:l.mount),n},k=(e,t)=>{let r={...o.mount?n:i};return t&&(r=ze(t.dirtyFields?s.dirtyFields:s.touchedFields,r)),we(e)?r:Be(e)?Oe(r,e):e.map(e=>Oe(r,e))},D=(e,t)=>({invalid:!!Oe((t||s).errors,e),isDirty:!!Oe((t||s).dirtyFields,e),error:Oe((t||s).errors,e),isValidating:!!Oe(s.validatingFields,e),isTouched:!!Oe((t||s).touchedFields,e)}),A=(e,t,r)=>{const i=(Oe(a,e,{_f:{}})._f||{}).ref,n=Oe(s.errors,e)||{},{ref:o,message:l,type:c,...u}=n;Fe(s.errors,e,{...u,...t,ref:i}),d.state.next({name:e,errors:s.errors,isValid:!1}),r&&r.shouldFocus&&i&&i.focus&&i.focus()},N=e=>d.state.subscribe({next:t=>{var r,a,o;r=e.name,a=t.name,o=e.exact,r&&a&&r!==a&&!We(r).some(e=>e&&(o?e===a:e.startsWith(a)||a.startsWith(e)))||!((e,t,r,s)=>{r(e);const{name:a,...i}=e;return Ye(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(e=>t[e]===(!s||Ve))})(t,e.formState||u,j,e.reRenderRoot)||e.callback({values:{...n},...s,...t,defaultValues:i})}}).unsubscribe,V=(e,t={})=>{for(const o of e?We(e):l.mount)l.mount.delete(o),l.array.delete(o),t.keepValue||(it(a,o),it(n,o)),!t.keepError&&it(s.errors,o),!t.keepDirty&&it(s.dirtyFields,o),!t.keepTouched&&it(s.touchedFields,o),!t.keepIsValidating&&it(s.validatingFields,o),!r.shouldUnregister&&!t.keepDefaultValue&&it(i,o);d.state.next({values:be(n)}),d.state.next({...s,...t.keepDirty?{isDirty:w()}:{}}),!t.keepIsValid&&p()},P=({disabled:e,name:t})=>{(Ce(e)&&o.mount||e||l.disabled.has(t))&&(e?l.disabled.add(t):l.disabled.delete(t))},q=(e,t={})=>{let s=Oe(a,e);const n=Ce(t.disabled)||Ce(r.disabled);return Fe(a,e,{...s||{},_f:{...s&&s._f?s._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),s?P({disabled:Ce(t.disabled)?t.disabled:r.disabled,name:e}):y(e,!0,t.value),{...n?{disabled:t.disabled||r.disabled}:{},...r.progressive?{required:!!t.required,min:vt(t.min),max:vt(t.max),minLength:vt(t.minLength),maxLength:vt(t.maxLength),pattern:vt(t.pattern)}:{},name:e,onChange:F,onBlur:F,ref:n=>{if(n){q(e,t),s=Oe(a,e);const r=we(n.value)&&n.querySelectorAll&&n.querySelectorAll("input,select,textarea")[0]||n,o=(e=>st(e)||he(e))(r),l=s._f.refs||[];if(o?l.find(e=>e===r):r===s._f.ref)return;Fe(a,e,{_f:{...s._f,...o?{refs:[...l.filter(at),r,...Array.isArray(Oe(i,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),y(e,!1,void 0,r)}else s=Oe(a,e,{}),s._f&&(s._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&(!ve(l.array,e)||!o.action)&&l.unMount.add(e)}}},T=()=>r.shouldFocusError&&Et(a,x,l.mount),Q=(e,t)=>async i=>{let o;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let c=be(n);if(d.state.next({isSubmitting:!0}),r.resolver){const{errors:e,values:t}=await b();s.errors=e,c=be(t)}else await _(a);if(l.disabled.size)for(const e of l.disabled)it(c,e);if(it(s.errors,"root"),Ye(s.errors)){d.state.next({errors:{}});try{await e(c,i)}catch(e){o=e}}else t&&await t({...s.errors},i),T(),setTimeout(T);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ye(s.errors)&&!o,submitCount:s.submitCount+1,errors:s.errors}),o)throw o},M=(e,t={})=>{const c=e?be(e):i,h=be(c),f=Ye(e),p=f?i:h;if(t.keepDefaultValues||(i=c),!t.keepValues){if(t.keepDirtyValues){const e=new Set([...l.mount,...Object.keys(lt(i,n))]);for(const t of Array.from(e))Oe(s.dirtyFields,t)?Fe(p,t,Oe(n,t)):C(t,Oe(p,t))}else{if(ge&&we(e))for(const e of l.mount){const t=Oe(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(tt(e)){const t=e.closest("form");if(t){t.reset();break}}}}if(t.keepFieldsRef)for(const e of l.mount)C(e,Oe(p,e));else a={}}n=r.shouldUnregister?t.keepDefaultValues?be(i):{}:be(p),d.array.next({values:{...p}}),d.state.next({values:{...p}})}l={mount:t.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!t.keepIsValid||!!t.keepDirtyValues||!r.shouldUnregister&&!Ye(p),o.watch=!!r.shouldUnregister,d.state.next({submitCount:t.keepSubmitCount?s.submitCount:0,isDirty:!f&&(t.keepDirty?s.isDirty:!(!t.keepDefaultValues||$e(e,i))),isSubmitted:!!t.keepIsSubmitted&&s.isSubmitted,dirtyFields:f?{}:t.keepDirtyValues?t.keepDefaultValues&&n?lt(i,n):s.dirtyFields:t.keepDefaultValues&&e?lt(i,e):t.keepDirty?s.dirtyFields:{},touchedFields:t.keepTouched?s.touchedFields:{},errors:t.keepErrors?s.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&s.isSubmitSuccessful,isSubmitting:!1,defaultValues:i})},I=(e,t)=>M(et(e)?e(n):e,t),j=e=>{s={...s,...e}},L={control:{register:q,unregister:V,getFieldState:D,handleSubmit:Q,setError:A,_subscribe:N,_runSchema:b,_focusError:T,_getWatch:E,_getDirty:w,_setValid:p,_setFieldArray:(e,t=[],l,c,f=!0,p=!0)=>{if(c&&l&&!r.disabled){if(o.action=!0,p&&Array.isArray(Oe(a,e))){const t=l(Oe(a,e),c.argA,c.argB);f&&Fe(a,e,t)}if(p&&Array.isArray(Oe(s.errors,e))){const t=l(Oe(s.errors,e),c.argA,c.argB);f&&Fe(s.errors,e,t),((e,t)=>{!Ee(Oe(e,t)).length&&it(e,t)})(s.errors,e)}if((u.touchedFields||h.touchedFields)&&p&&Array.isArray(Oe(s.touchedFields,e))){const t=l(Oe(s.touchedFields,e),c.argA,c.argB);f&&Fe(s.touchedFields,e,t)}(u.dirtyFields||h.dirtyFields)&&(s.dirtyFields=lt(i,n)),d.state.next({name:e,isDirty:w(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else Fe(n,e,t)},_setDisabledField:P,_setErrors:e=>{s.errors=e,d.state.next({errors:s.errors,isValid:!1})},_getFieldArray:e=>Ee(Oe(o.mount?n:i,e,r.shouldUnregister?Oe(i,e,[]):[])),_reset:M,_resetDefaultValues:()=>et(r.defaultValues)&&r.defaultValues().then(e=>{I(e,r.resetOptions),d.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(const e of l.unMount){const t=Oe(a,e);t&&(t._f.refs?t._f.refs.every(e=>!at(e)):!at(t._f.ref))&&V(e)}l.unMount=new Set},_disableForm:e=>{Ce(e)&&(d.state.next({disabled:e}),Et(a,(t,r)=>{const s=Oe(a,r);s&&(t.disabled=s._f.disabled||e,Array.isArray(s._f.refs)&&s._f.refs.forEach(t=>{t.disabled=s._f.disabled||e}))},0,!1))},_subjects:d,_proxyFormState:u,get _fields(){return a},get _formValues(){return n},get _state(){return o},set _state(e){o=e},get _defaultValues(){return i},get _names(){return l},set _names(e){l=e},get _formState(){return s},get _options(){return r},set _options(e){r={...r,...e}}},subscribe:e=>(o.mount=!0,h={...h,...e.formState},N({...e,formState:h})),trigger:R,register:q,handleSubmit:Q,watch:(e,t)=>et(e)?d.state.subscribe({next:r=>"values"in r&&e(E(void 0,t),r)}):E(e,t,!0),setValue:C,getValues:k,reset:I,resetField:(e,t={})=>{Oe(a,e)&&(we(t.defaultValue)?C(e,be(Oe(i,e))):(C(e,t.defaultValue),Fe(i,e,be(t.defaultValue))),t.keepTouched||it(s.touchedFields,e),t.keepDirty||(it(s.dirtyFields,e),s.isDirty=t.defaultValue?w(e,be(Oe(i,e))):w()),t.keepError||(it(s.errors,e),u.isValid&&p()),d.state.next({...s}))},clearErrors:e=>{e&&We(e).forEach(e=>it(s.errors,e)),d.state.next({errors:e?s.errors:{}})},unregister:V,setError:A,setFocus:(e,t={})=>{const r=Oe(a,e),s=r&&r._f;if(s){const e=s.refs?s.refs[0]:s.ref;e.focus&&(e.focus(),t.shouldSelect&&et(e.select)&&e.select())}},getFieldState:D};return{...L,formControl:L}}const Dt=()=>(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M12.3711 2.66663L2.66786 12.1419L3.52491 13.1633L13.2281 3.68802L12.3711 2.66663Z",fill:"#004B88"}),(0,e.createElement)("rect",{width:"0.666667",height:"1.33333",transform:"matrix(-1 0 0 1 8 7.33337)",fill:"#004B88"}),(0,e.createElement)("path",{d:"M13.2263 12.1419L3.52305 2.66662L2.666 3.68801L12.3692 13.1633L13.2263 12.1419Z",fill:"#004B88"})),At=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24"},(0,e.createElement)("path",{stroke:"#E6EDF3",strokeWidth:"1.5",d:"m6.02489 5.38028-.22032-.3525H5.25V4.75h14.5v.27778h-.5546l-.2203.3525-4.4444 7.11112-.114.1824V19.25h-3.8334v-6.5762l-.114-.1824-4.44441-7.11112Z"})),Nt=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"
2currentColor",viewBox:"0 0 16 17",width:"16",height:"16"},(0,e.createElement)("path",{d:"M2 3.16663v2.13333h2.10857V3.16663H2Zm4.08535.53333c-.06985-.001-.1392.01206-.20402.03841-.06482.02635-.12382.06548-.17357.1151-.04974.04963-.08925.10876-.11621.17396-.02696.06521-.04085.13518-.04085.20586 0 .07068.01389.14066.04085.20586.02696.06521.06647.12434.11621.17396.04975.04963.10875.08875.17357.1151.06482.02636.13417.03942.20402.03842h7.38005c.0698.001.1392-.01206.204-.03842.0648-.02635.1238-.06547.1735-.1151.0498-.04962.0893-.10875.1163-.17396.0269-.0652.0408-.13518.0408-.20586 0-.07068-.0139-.14065-.0408-.20586-.027-.0652-.0665-.12433-.1163-.17396-.0497-.04962-.1087-.08875-.1735-.1151-.0648-.02635-.1342-.03941-.204-.03841H6.08535ZM2 7.43329v2.13334h2.10857V7.43329H2Zm4.08535.53334c-.06985-.001-.1392.01205-.20402.03841-.06482.02635-.12382.06548-.17357.1151-.04974.04962-.08925.10876-.11621.17396-.02696.0652-.04085.13518-.04085.20586 0 .07068.01389.14065.04085.20586.02696.0652.06647.12433.11621.17396.04975.04962.10875.08875.17357.1151.06482.02636.13417.03941.20402.03841h7.38005c.0698.001.1392-.01205.204-.03841.0648-.02635.1238-.06548.1735-.1151.0498-.04963.0893-.10876.1163-.17396.0269-.06521.0408-.13518.0408-.20586 0-.07068-.0139-.14066-.0408-.20586-.027-.0652-.0665-.12434-.1163-.17396-.0497-.04962-.1087-.08875-.1735-.1151-.0648-.02636-.1342-.03941-.204-.03841H6.08535ZM2 11.7v2.1333h2.10857V11.7H2Zm4.08535.5333c-.06985-.001-.1392.012-.20402.0384-.06482.0264-.12382.0655-.17357.1151-.04974.0496-.08925.1088-.11621.174-.02696.0652-.04085.1351-.04085.2058 0 .0707.01389.1407.04085.2059.02696.0652.06647.1243.11621.1739.04975.0497.10875.0888.17357.1151.06482.0264.13417.0395.20402.0385h7.38005c.0698.001.1392-.0121.204-.0385.0648-.0263.1238-.0654.1735-.1151.0498-.0496.0893-.1087.1163-.1739.0269-.0652.0408-.1352.0408-.2059 0-.0707-.0139-.1406-.0408-.2058-.027-.0652-.0665-.1244-.1163-.174-.0497-.0496-.1087-.0887-.1735-.1151-.0648-.0264-.1342-.0394-.204-.0384H6.08535Z"})),Vt=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 17",width:"16",height:"16"},(0,e.createElement)("path",{d:"M10.7 5.8V2.5h2.7c.3312 0 .6.2688.6.6v2.7h-3.3ZM6.5 2.5h3v3.3h-3V2.5ZM5.3 5.8H2V3.1c0-.3312.2688-.6.6-.6h2.7v3.3ZM2 10V7h3.3v3H2Zm3.3 1.2v3.3H2.6c-.3312 0-.6-.2688-.6-.6v-2.7h3.3Zm4.2 3.3h-3v-3.3h3v3.3Zm1.2-3.3H14v2.7c0 .3312-.2688.6-.6.6h-2.7v-3.3ZM14 7v3h-3.3V7H14ZM9.5 7v3h-3V7h3Z"})),Pt=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:"16",height:"16"},(0,e.createElement)("path",{fill:"#004B88",fillRule:"evenodd",d:"M14.4534 13.1096c.284.2798.2841.736-.0004 1.0158-.2812.2771-.7355.2772-1.0168.0002l-2.9054-2.8591c-.88546.6306-1.97297 1.0036-3.14879 1.0036C4.41458 12.2701 2 9.90163 2 6.96837 2 4.0351 4.41458 1.66663 7.38201 1.66663c2.96749 0 5.38199 2.36847 5.38239 5.30169 0 1.25574-.4472 2.4057-1.1864 3.31188l2.8754 2.8294ZM3.44348 6.96837c0 2.13269 1.75828 3.87063 3.93853 3.87063 2.18028 0 3.93859-1.73793 3.93859-3.87063S9.56229 3.09771 7.38201 3.09771c-2.18025 0-3.93853 1.73796-3.93853 3.87066Z",clipRule:"evenodd"})),qt=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",height:"24",width:"24"},(0,e.createElement)("path",{fill:"#fff",fillRule:"evenodd",d:"M21.6801 19.6645c.426.4197.4262 1.1039-.0005 1.5237-.4219.4156-1.1033.4157-1.5253.0002l-4.358-4.2886c-1.3283.946-2.9595 1.5054-4.7233 1.5054-4.45114 0-8.073-3.5527-8.073-7.9526C3 6.05271 6.62186 2.5 11.073 2.5c4.4512 0 8.073 3.55271 8.0736 7.9525 0 1.8836-.6708 3.6086-1.7796 4.9678l4.3131 4.2442ZM5.16522 10.4526c0 3.1991 2.63742 5.806 5.90778 5.806 3.2704 0 5.9078-2.6069 5.9078-5.806 0-3.19903-2.6374-5.80597-5.9078-5.80597-3.27036 0-5.90778 2.60694-5.90778 5.80597Z",clipRule:"evenodd"})),Tt=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:"16",height:"16"},(0,e.createElement)("path",{fill:"#004B88",d:"M4 1.33331v1.33334H2V14.6666h12V2.66665h-2V1.33331h-1.3333v1.33334H5.33333V1.33331H4Zm-.66667 4.66667h9.33337v7.33332H3.33333V5.99998Z"})),Qt=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 25"},(0,e.createElement)("path",{fill:"#004B88",d:"M10.9448 5.44483V19.4448h2V5.44483h-2Z"}),(0,e.createElement)("path",{fill:"#004B88",d:"M18.9448 11.4448H4.94482v2H18.9448v-2Z"})),Mt=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 25"},(0,e.createElement)("path",{fill:"#004B88",d:"M18.9448 11.4448H4.94482v2H18.9448v-2Z"}));function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}
2).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},It.apply(null,arguments)}const jt=({register:t})=>(0,e.createElement)("div",{className:"search__field-wrapper"},(0,e.createElement)("label",{htmlFor:"search-form-input",className:"search__field-label"},(0,e.createElement)(Pt,null)," Search KFF Content"),(0,e.createElement)("div",{className:"search__field-bottom"},(0,e.createElement)("input",It({className:"search__field-input",placeholder:"Search",id:"search-form-input",itemProp:"query-input",type:"search"},t("s"))),(0,e.createElement)("button",{className:"search__field-submit",type:"submit","aria-label":"Search",value:"Submit"},(0,e.createElement)(qt,null))));function Lt(){return Lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},Lt.apply(null,arguments)}const Ut=({register:t,watch:r,setValue:s})=>{const a=r("date_range"),i=r("start_date"),n=r("end_date"),[o,l]=(0,W.useState)(!1);return(0,e.createElement)("div",{className:ue()("search__accordion",{open:o})},(0,e.createElement)("button",{type:"button",className:"search__accordion-button",onClick:()=>l(e=>!e)},"Date Range",(0,e.createElement)("div",{className:"search__accordion-button-icon-closed"},(0,e.createElement)(Qt,null)),(0,e.createElement)("div",{className:"search__accordion-button-icon-open"},(0,e.createElement)(Mt,null))),(0,e.createElement)("div",{className:"search__accordion-content"},(0,e.createElement)("ul",{className:"search__accordion-list"},(0,e.createElement)("li",{className:"search__radio-wrapper"},(0,e.createElement)("input",Lt({className:"search__radio",type:"radio",id:"date_range_past_week",value:"past_week"},t("date_range"))),(0,e.createElement)("label",{className:"search__filter-label",htmlFor:"date_range_past_week"},"Past Week")),(0,e.createElement)("li",{className:"search__radio-wrapper"},(0,e.createElement)("input",Lt({className:"search__radio",type:"radio",id:"date_range_past_month",value:"past_month"},t("date_range"))),(0,e.createElement)("label",{className:"search__filter-label",htmlFor:"date_range_past_month"},"Past Month")),(0,e.createElement)("li",{className:"search__radio-wrapper"},(0,e.createElement)("input",Lt({className:"search__radio",type:"radio",id:"date_range_past_6_months",value:"past_6_months"},t("date_range"))),(0,e.createElement)("label",{className:"search__filter-label",htmlFor:"date_range_past_6_months"},"Past 6 Months")),(0,e.createElement)("li",{className:"search__radio-wrapper"},(0,e.createElement)("input",Lt({className:"search__radio",type:"radio",id:"date_range_past_year",value:"past_year"},t("date_range"))),(0,e.createElement)("label",{className:"search__filter-label",htmlFor:"date_range_past_year"},"Past Year")),(0,e.createElement)("li",{className:"search__radio-wrapper"},(0,e.createElement)("input",Lt({className:"search__radio",type:"radio",id:"custom_date_range",value:"custom"},t("date_range"))),(0,e.createElement)("label",{className:"search__filter-label",htmlFor:"custom_date_range"},"Custom")),(0,e.createElement)("li",{className:ue()("search__date-fields",{open:"custom"===a})},(0,e.createElement)("div",{className:"search__date-field"},(0,e.createElement)("label",{htmlFor:"start_date",className:"search__date-field-label"},(0,e.createElement)(Tt,null),"Start Date"),(0,e.createElement)("input",Lt({className:"search__date-field-input",type:"date",id:"start_date"},t("start_date")))),(0,e.createElement)("div",{className:"search__date-field"},(0,e.createElement)("label",{htmlFor:"end_date",className:"search__date-field-label"},(0,e.createElement)(Tt,null),"End Date"),(0,e.createElement)("input",Lt({className:"search__date-field-input",type:"date",id:"end_date"},t("end_date")))))),(a||i||n)&&(0,e.createElement)("div",null,(0,e.createElement)("button",{type:"button",className:"search__filter-clear",onClick:()=>{s("date_range",""),s("start_date",""),s("end_date",""),l(!1)}},"Clear Selections"))))};function Ht(){return Ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}
2).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},Ht.apply(null,arguments)}const Bt={category:["public-opinion","health-information-and-trust"],series:["kff-health-news-announcements","kff-health-news-events"],program:["public-opinion-and-survey-research","social-impact-media"]},Kt=({taxonomy:t,taxonomy_name:r,terms:s,register:a,watch:i,setValue:n,location:o})=>{const l=i(`ep_filter_${t}`),[c,u]=(0,W.useState)(!1),h=s.filter(e=>l.includes(e.slug)),d=s.filter(e=>!l.includes(e.slug)&&e.count>0);return(0,e.createElement)("div",{className:ue()("search__accordion",{open:c})},(0,e.createElement)("button",{type:"button",className:"search__accordion-button",onClick:()=>u(e=>!e)},r,(0,e.createElement)("div",{className:"search__accordion-button-icon-closed"},(0,e.createElement)(Qt,null)),(0,e.createElement)("div",{className:"search__accordion-button-icon-open"},(0,e.createElement)(Mt,null))),h.length>0&&(0,e.createElement)("div",{className:"search__accordion-content search__accordion-content--selected"},(0,e.createElement)("ul",{className:"search__accordion-list"},[...h].map(r=>(0,e.createElement)("li",{className:"search__filter-wrapper",key:r.slug},(0,e.createElement)("input",Ht({className:"search__filter-checkbox",type:"checkbox",id:`topic_${t}_${r.slug}`,value:r.slug,disabled:"policy-research"===o&&Bt[t]?.includes(r.slug)||!1},a(`ep_filter_${t}`),{onChange:e=>{u(!1),a(`ep_filter_${t}`).onChange(e)}})),(0,e.createElement)("label",{className:"search__filter-label",htmlFor:`topic_${t}_${r.slug}`,"aria-label":`${r.name} (with ${r.count} items)`},r.name,(0,e.createElement)("span",{className:"search__filter-total"},"(",r.count,")"))))),(0,e.createElement)("button",{className:"search__filter-clear",type:"button",onClick:()=>{n(`ep_filter_${t}`,[]),u(!1)}},"Clear Selections")),(0,e.createElement)("div",{className:"search__accordion-content"},(0,e.createElement)("ul",{className:"search__accordion-list"},0===d.length&&(0,e.createElement)("li",{className:"search__filter-wrapper"},(0,e.createElement)("span",{className:"search__filter-label"},"No more items available")),d.length>0&&[...d].map(r=>(0,e.createElement)("li",{className:"search__filter-wrapper",key:r.slug},(0,e.createElement)("input",Ht({className:"search__filter-checkbox",type:"checkbox",id:`topic_${t}_${r.slug}`,value:r.slug,disabled:0===r.count||"policy-research"===o&&Bt[t]?.includes(r.slug)||!1},a(`ep_filter_${t}`),{onChange:e=>{u(!1),a(`ep_filter_${t}`).onChange(e)}})),(0,e.createElement)("label",{className:"search__filter-label",htmlFor:`topic_${t}_${r.slug}`,"aria-label":`${r.name} (with ${r.count} items)`},r.name,(0,e.createElement)("span",{className:"search__filter-total"},"(",r.count,")")))))))};function Zt(){return Zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}
2).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},Zt.apply(null,arguments)}const $t=({register:t,watch:r,setValue:s,facets:a,location:i})=>(0,e.createElement)("div",{className:"search__accordions"},(0,e.createElement)(Ut,{register:t,watch:r,setValue:s}),a?.length>0?a.filter(e=>e?.terms&&e.terms.length>0).map(a=>(0,e.createElement)(Kt,Zt({key:a.taxonomy},a,{register:t,watch:r,setValue:s,location:i}))):null),Gt=({total:t,page:r,setPage:s})=>{const[a,i]=(0,W.useState)(r);if((0,W.useEffect)(()=>{i(r)},[r]),t<=1)return null;const n=()=>{const e=Math.max(1,Math.min(t,parseInt(a,10)||1));s(e)};return(0,e.createElement)("nav",{className:"nav-links-wrapper","aria-label":"Pagination"},t>1&&(0,e.createElement)("div",{className:"pagination-jump"},(0,e.createElement)("span",{className:"pagination-jump__label",id:"river-pagination-jump-label"},"Current page"),(0,e.createElement)("input",{"aria-labelledby":"river-pagination-jump-label",className:"pagination-jump__input",id:"river-pagination-jump-input",type:"number",min:"1",max:t,value:a,onChange:e=>i(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),n())}}),(0,e.createElement)("span",{className:"pagination-jump__label"},`of ${t}`),(0,e.createElement)("button",{className:"pagination-jump__btn button button--md",type:"button",onClick:n},"Go")),(0,e.createElement)("div",{className:"pagination-nav"},(0,e.createElement)("button",{onClick:()=>s(r-1),disabled:1===r,type:"button","aria-label":"Previous Page",className:"pagination-nav__btn pagination-nav__btn--outlined button button--md"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 24",width:"25",height:"24"},(0,e.createElement)("path",{fill:"currentColor",fillRule:"evenodd",d:"m9.60952 11 4.78108-4.48228L12.9678 5l-7.4667 7 7.4667 7 1.4228-1.5177L9.60952 13h9.78108v-2H9.60952Z",clipRule:"evenodd"})),"Previous"),(0,e.createElement)("button",{onClick:()=>s(r+1),disabled:r===t,type:"button","aria-label":"Next Page",className:"pagination-nav__btn button button--md"},"Next",(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 24",width:"25",height:"24"},(0,e.createElement)("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.2811 11 10.5 6.51772 11.9229 5l7.4666 7-7.4666 7L10.5 17.4823 15.2811 13H5.5v-2h9.7811Z",clipRule:"evenodd"})))))},Wt=({posts:t,location:r})=>{const[s,a]=(0,W.useState)(!1),i=(0,W.useRef)(),n=(0,W.useRef)(),o=function(){const[e,t]=W.useState({width:null,height:null});return W.useLayoutEffect(()=>{const e=()=>{t({width:window.innerWidth,height:window.innerHeight})};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),e}(),{register:l,handleSubmit:c,watch:u,setValue:h,formState:{isDirty:d},reset:f}=function(e={}){const t=W.useRef(void 0),r=W.useRef(void 0),[s,a]=W.useState({isDirty:!1,isValidating:!1,isLoading:et(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:et(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:s},e.defaultValues&&!et(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:r,...a}=kt(e);t.current={...a,formState:s}}const i=t.current.control;return i._options=e,He(()=>{const e=i._subscribe({formState:i._proxyFormState,callback:()=>a({...i._formState}),reRenderRoot:!0});return a(e=>({...e,isReady:!0})),i._formState.isReady=!0,e},[i]),W.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),W.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),W.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),W.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),W.useEffect(()=>{if(i._proxyFormState.isDirty){const e=i._getDirty();e!==s.isDirty&&i._subjects.state.next({isDirty:e})}},[i,s.isDirty]),W.useEffect(()=>{var t;e.values&&!$e(e.values,r.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),(null===(t=i._options.resetOptions)||void 0===t?void 0:t.keepIsValid)||i._setValid(),r.current=e.values,a(e=>({...e}))):i._resetDefaultValues()},[i,e.values]),W.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=Ue(s,i),t.current}({defaultValues:{location:r,posts:t,view:"list",s:"",page:1,date_range:"",start_date:"",end_date:"","ep_filter_content-types":[],ep_filter_series:[],ep_filter_category:[],ep_filter_post_tag:[]}}),p=u(),[m,y]=(0,W.useState)(""),v=()=>{setTimeout(()=>{if(i.current){const e=i.current.parentElement.querySelector(".wp-block-kff-shared-river__header");e?e.scrollIntoView({behavior:"smooth"}
2):i.current.scrollIntoView({behavior:"smooth"})}},100)},g=n.current,b=g&&(g.date_range!==p.date_range||g.start_date!==p.start_date||g.end_date!==p.end_date||JSON.stringify(g["ep_filter_content-types"])!==JSON.stringify(p["ep_filter_content-types"])||JSON.stringify(g.ep_filter_series)!==JSON.stringify(p.ep_filter_series)||JSON.stringify(g.ep_filter_category)!==JSON.stringify(p.ep_filter_category)||JSON.stringify(g.ep_filter_post_tag)!==JSON.stringify(p.ep_filter_post_tag));(0,W.useEffect)(()=>{n.current?(b&&(h("page",1),v()),n.current=p):n.current=p},[p,b,h]);const _={...p,page:b?1:p.page,s:m},{data:w,isLoading:E}=function(e,t){return le(e,X,t)}({queryKey:["searchResults",_],queryFn:()=>(async e=>{const t=new URLSearchParams(Object.fromEntries(Object.entries(e).filter(([,e])=>"number"===typeof e&&e>1||"string"===typeof e&&e||Array.isArray(e)&&e.length>0).sort(([e],[t])=>e.localeCompare(t)))).toString();return(await fetch(`/wp-json/kff/v1/river?${t}`)).json()})(_),placeholderData:e=>e,enabled:!("custom"===p?.date_range&&(!p?.start_date||!p?.end_date))}),S=()=>{f({location:r,posts:t,view:"list",s:"",page:1,date_range:"",start_date:"",end_date:"","ep_filter_content-types":[],ep_filter_series:[],ep_filter_category:[],ep_filter_post_tag:[]}),y("")};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wp-block-kff-shared-river__header"},(0,e.createElement)("div",{className:"wp-block-kff-shared-river__text"},"Browse the latest from KFF"),(0,e.createElement)("div",{className:"wp-block-kff-shared-river__bar"})),(0,e.createElement)("form",{className:"search__grid",onSubmit:c(e=>{y(e.s),h("page",1),a(!1)}),ref:i},o.width>768?(0,e.createElement)("div",{className:"search__left"},(0,e.createElement)("div",{className:"search__left-top"},(0,e.createElement)("h2",{className:"search__left--title"},"Filter"),d?(0,e.createElement)("button",{type:"button",className:"search__filter-clear",onClick:S},"Clear All"):null),(0,e.createElement)("div",{className:"search__search-form"},(0,e.createElement)(jt,{register:l}),(0,e.createElement)($t,{register:l,watch:u,setValue:h,facets:w?.facets,location:r}))):null,(0,e.createElement)("div",{className:ue()("search__right",`search__right--view-${p.view}`)},o.width<768?(0,e.createElement)("div",{className:"search__search-form"},(0,e.createElement)("div",{className:"search__mobile-only"},(0,e.createElement)(jt,{register:l})),(0,e.createElement)("div",{className:ue()("search__modal",s&&"open")},(0,e.createElement)("button",{type:"button",className:"search__modal-close","aria-label":"Close filter modal",onClick:()=>a(!1)},(0,e.createElement)(Dt,null)),(0,e.createElement)("div",{className:"search__modal-title"},"Filter",d?(0,e.createElement)("button",{type:"button",className:"search__filter-clear",onClick:S},"Clear All"):null),(0,e.createElement)($t,{register:l,watch:u,setValue:h,facets:w?.facets}),(0,e.createElement)("button",{type:"submit",className:"search__modal-button"},"Apply Filters"))):null,(0,e.createElement)("div",{className:"search__filters-wrapper"},(0,e.createElement)("div",{className:"search__filters"},(0,e.createElement)("button",{className:"search__filters-button","aria-label":"Open search filters",type:"button",onClick:()=>a(!0)},(0,e.createElement)(At,null)," Filter"),(0,e.createElement)("div",{className:"search__layout"},(0,e.createElement)("button",{className:ue()("list"===p.view&&"active"),type:"button",onClick:()=>{h("view","list")}},(0,e.createElement)(Nt,null)," List"),(0,e.createElement)("button",{className:ue()("grid"===p.view&&"active"),type:"button",onClick:()=>{h("view","grid")}},(0,e.createElement)(Vt,null)," Grid")))),(0,e.createElement)("div",{className:"wp-block-query search__results is-layout-flow wp-block-query-is-layout-flow"},E?(0,e.createElement)("div",{className:"wp-block-query-loading"},(0,e.createElement)("p",{className:"wp-block-paragraph"},"Loading...")):null,0===w?.posts?.length?(0,e.createElement)("div",{className:"wp-block-query-no-results"},(0,e.createElement)("p",{className:"wp-block-paragraph"},"No results found.")):null,w?.posts?.length>0?(0,e.createElement)("ul",{className:"wp-block-post-template is-layout-flow wp-block-post-template-is-layout-flow"},w.posts.map(t=>(0,e.createElement)("li",{className:"wp-block-post post-613551 page type-page status-publish hentry",dangerouslySetInnerHTML:{__html:t.content},key:t.id}))):null),(0,e.createElement)(Gt,{total:w?.total??0,page:p.page,setPage:e=>{h("page",e),v()}}))))},Jt=new class{#B;#v;#d;#K;#Z;#$;#G;#W;constructor(e={}){this.#B=e.queryCache||new U,this.#v=e.mutationCache||new B,this.#d=e.defaultOptions||{},this.#K=new Map,this.#Z=new Map,this.#$=0}mount(){this.#$++,1===this.#$&&(this.#G=D.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#B.onFocus())}),this.#W=A.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#B.onOnline())}))}unmount(){this.#$--,0===this.#$&&(this.#G?.(),this.#G=void 0,this.#W?.(),this.#W=void 0)}isFetching(e){return this.#B.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#v.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#B.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#B.build(this,t),s=r.state.data;return void 0===s?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(c(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return this.#B.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){const s=this.defaultQueryOptions({queryKey:e}),a=this.#B.get(s.queryHash),i=a?.state.data,n=function(e,t){return"function"===typeof e?e(t):e}(t,i);if(void 0!==n)return this.#B.build(this,s).setData(n,{...r,manual:!0})}
2setQueriesData(e,t,r){return R.batch(()=>this.#B.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#B.get(t.queryHash)?.state}removeQueries(e){const t=this.#B;R.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const r=this.#B;return R.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},s=R.batch(()=>this.#B.findAll(e).map(e=>e.cancel(r)));return Promise.all(s).then(n).catch(n)}invalidateQueries(e,t={}){return R.batch(()=>(this.#B.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},s=R.batch(()=>this.#B.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(n)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(s).then(n)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=this.#B.build(this,t);return r.isStaleByTime(c(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(n).catch(n)}fetchInfiniteQuery(e){return e.behavior=Z(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(n).catch(n)}ensureInfiniteQueryData(e){return e.behavior=Z(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return A.isOnline()?this.#v.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#B}getMutationCache(){return this.#v}getDefaultOptions(){return this.#d}setDefaultOptions(e){this.#d=e}setQueryDefaults(e,t){this.#K.set(p(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#K.values()],r={};return t.forEach(t=>{m(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#Z.set(p(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#Z.values()],r={};return t.forEach(t=>{m(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#d.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=f(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===C&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#d.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#B.clear(),this.#v.clear()}},zt=({posts:t,location:r})=>(0,e.createElement)(Y,{client:Jt},(0,e.createElement)(Wt,{posts:t,location:r}));document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".wp-block-kff-shared-river").forEach(r=>{const s=Number(r.dataset.posts),{location:a}=r.dataset;(0,t.H)(r).render((0,e.createElement)(zt,{posts:s,location:a}))})})}()}();

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.