import"./_sentry.oHIlJInL.js";import{d as f,c as l}from"./headlessui.KhaQJLTS.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1ca7b56b-e849-4d06-935a-399e7c673cd8",e._sentryDebugIdIdentifier="sentry-dbid-1ca7b56b-e849-4d06-935a-399e7c673cd8")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fa12a787-9fcb-4226-bcf0-d80d073e83ad",e._sentryDebugIdIdentifier="sentry-dbid-fa12a787-9fcb-4226-bcf0-d80d073e83ad")}catch{}})();const i=e=>{const t=Object.entries(e);return t.sort((r,s)=>r[0].localeCompare(s[0])),Object.fromEntries(t)},c=()=>({class_types:void 0,class_years:void 0,course_type_group:void 0,course_types:void 0,goals:void 0,scope:void 0,city:void 0,sys_course_type:void 0,teacher_id:void 0}),_=(e={},t)=>{const r=new Set(t),s=f({...c(),...e});return{filter:l(()=>{const n=Object.entries(s).map(([o,d])=>r.has(o)&&!Array.isArray(d)?[o,d==null?[]:[d]]:[o,d]).filter(([,o])=>o!=null),a=Object.fromEntries(n);return i(a)}),patchFilter:n=>{Object.assign(s,i(n))},resetFilter:n=>{Object.assign(s,{...c(),...n})}}};export{i as s,_ as u};
