PageSourceSearch

https://www.fairmed.ch/_next/static/chunks/8728.850fa2a2b33e0b46.js

js fairmed.ch collected 2026-10-02 17:08:28 UTC 15,729 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8728],{8728:(e,t,n)=>{n.d(t,{l:()=>eo});var r=n(4232),o=n.t(r,2),l=n(5069),a=n(9266),i=n(6793),u=n(1691),c=n(3986),s=n(1217),d=n(8820),f=n(26),p=n(1421);function g(e,t){let n=(0,r.useRef)([]),o=(0,a._)(e);(0,r.useEffect)(()=>{let e=[...n.current];for(let[r,l]of t.entries())if(n.current[r]!==l){let r=o(t,e);return n.current=t,r}},[o,...t])}var m=n(5285);let v=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&v[0]!==e.target&&(v.unshift(e.target),(v=v.filter(e=>null!=e&&e.isConnected)).splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var h=n(4163),E=n(3872),w=n(3249),b=n(3710);function y(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}var D=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(D||{});let T=Object.assign((0,b.FX)(function(e,t){let n=(0,r.useRef)(null),o=(0,f.P)(n,t),{initialFocus:D,containers:T,features:P=30,...C}=e;(0,d.g)()||(P=1);let O=(0,s.g)(n);!function(e,t){let{ownerDocument:n}=e,o=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,r.useRef)(v.slice());return g((e,n)=>{let[r]=e,[o]=n;!0===o&&!1===r&&(0,w._)(()=>{t.current.splice(0)}),!1===o&&!0===r&&(t.current=v.slice())},[e,v,t]),(0,a._)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(t);g(()=>{t||(null==n?void 0:n.activeElement)===(null==n?void 0:n.body)&&(0,h.pW)(o())},[t]),(0,c.X)(()=>{t&&(0,h.pW)(o())})}({ownerDocument:O},!!(16&P));let S=function(e,t){let{ownerDocument:n,container:o,initialFocus:l}=e,a=(0,r.useRef)(null),i=(0,u.a)();return g(()=>{if(!t)return;let e=o.current;e&&(0,w._)(()=>{if(!i.current)return;let t=null==n?void 0:n.activeElement;if(null!=l&&l.current){if((null==l?void 0:l.current)===t){a.current=t;return}}else if(e.contains(t)){a.current=t;return}null!=l&&l.current?(0,h.pW)(l.current):(0,h.CU)(e,h.BD.First)===h.Me.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),a.current=null==n?void 0:n.activeElement})},[t]),a}({ownerDocument:O,container:n,initialFocus:D},!!(2&P));!function(e,t){let{ownerDocument:n,container:r,containers:o,previousActiveElement:l}=e,a=(0,u.a)();(0,i.M)(null==n?void 0:n.defaultView,"focus",e=>{if(!t||!a.current)return;let n=y(o);r.current instanceof HTMLElement&&n.add(r.current);let i=l.current;if(!i)return;let u=e.target;u&&u instanceof HTMLElement?L(n,u)?(l.current=u,(0,h.pW)(u)):(e.preventDefault(),e.stopPropagation(),(0,h.pW)(i)):(0,h.pW)(l.current)},!0)}({ownerDocument:O,container:n,containers:T,previousActiveElement:S},!!(8&P));let k=(0,p.u)(),R=(0,a._)(e=>{let t=n.current;t&&(0,E.Y)(k.current,{[p.O.Forwards]:()=>{(0,h.CU)(t,h.BD.First,{skipElements:[e.relatedTarget]})},[p.O.Backwards]:()=>{(0,h.CU)(t,h.BD.Last,{skipElements:[e.relatedTarget]})}})}),F=(0,l.L)(),M=(0,r.useRef)(!1);return r.createElement(r.Fragment,null,!!(4&P)&&r.createElement(m.j,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:R,features:m.O.Focusable}),(0,b.XX)({ourProps:{ref:o,onKeyDown(e){"Tab"==e.key&&(M.current=!0,F.requestAnimationFrame(()=>{M.current=!1}))},onBlur(e){let t=y(T);n.current instanceof HTMLElement&&t.add(n.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(L(t,r)||(M.current?(0,h.CU)(n.current,(0,E.Y)(k.current,{[p.O.Forwards]:()=>h.BD.Next,[p.O.Backwards]:()=>h.BD.Previous})|h.BD.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&(0,h.pW)(e.target)))}},theirProps:C,defaultTag:"div",name:"FocusTrap"}),!!(4&P)&&r.createElement(m.j,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:R,features:m.O.Focusable}))}),{features:D});function L(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var P=n(3247);let C="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},{useState:O,useEffect:S,useLayoutEffect:k,useDebugValue:R}=o;void 0!==window.document&&window.document.createElement;let F=o.useSyncExternalStore;var M=n(2214),A=n(9314),B=n(3644);let _=function(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e){for(var o=arguments.length,l=Array(o>1?o-1:0),a=1;a<o;a++)l[a-1]=arguments[a];let i=t[e].call(n,...l);
1i&&(n=i,r.forEach(e=>e()))}}}(()=>new Map,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,A.e)(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT(e){let t,{doc:n,d:r,meta:o}=e,l={doc:n,d:r,meta:function(e){let t={};for(let n of e)Object.assign(t,n(t));return t}(o)},a=[(0,B.un)()?{before(e){let{doc:t,d:n,meta:r}=e;function o(e){return r.containers.flatMap(e=>e()).some(t=>t.contains(e))}n.microTask(()=>{var e;if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=(0,A.e)();e.style(t.documentElement,"scrollBehavior","auto"),n.add(()=>n.microTask(()=>e.dispose()))}let r=null!=(e=window.scrollY)?e:window.pageYOffset,l=null;n.addEventListener(t,"click",e=>{if(e.target instanceof HTMLElement)try{let n=e.target.closest("a");if(!n)return;let{hash:r}=new URL(n.href),a=t.querySelector(r);a&&!o(a)&&(l=a)}catch(e){}},!0),n.addEventListener(t,"touchstart",e=>{if(e.target instanceof HTMLElement)if(o(e.target)){let t=e.target;for(;t.parentElement&&o(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")}),n.addEventListener(t,"touchmove",e=>{if(e.target instanceof HTMLElement)if(o(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()},{passive:!1}),n.add(()=>{var e;r!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,r),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=null)})})}}:{},{before(e){var n;let{doc:r}=e,o=r.documentElement;t=(null!=(n=r.defaultView)?n:window).innerWidth-o.clientWidth},after(e){let{doc:n,d:r}=e,o=n.documentElement,l=o.clientWidth-o.offsetWidth,a=t-l;r.style(o,"paddingRight","".concat(a,"px"))}},{before(e){let{doc:t,d:n}=e;n.style(t.documentElement,"overflow","hidden")}}];a.forEach(e=>{let{before:t}=e;return null==t?void 0:t(l)}),a.forEach(e=>{let{after:t}=e;return null==t?void 0:t(l)})},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}});_.subscribe(()=>{let e=_.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&_.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&_.dispatch("TEARDOWN",n)}});var X=n(5463);let W=new Map,H=new Map;function Y(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];(0,M.s)(()=>{var n;if(!t)return;let r="function"==typeof e?e():e.current;if(!r)return;let o=null!=(n=H.get(r))?n:0;return H.set(r,o+1),0!==o||(W.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),function(){var e;if(!r)return;let t=null!=(e=H.get(r))?e:1;if(1===t?H.delete(r):H.set(r,t-1),1!==t)return;let n=W.get(r);n&&(null===n["aria-hidden"]?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",n["aria-hidden"]),r.inert=n.inert,W.delete(r))}},[e,t])}var x=n(8611),N=n(7197),U=n(140),I=n(6924);let j=(0,r.createContext)(()=>{});j.displayName="StackContext";var V=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(V||{});function q(e){let{children:t,onUpdate:n,type:o,element:l,enabled:i}=e,u=(0,r.useContext)(j),c=(0,a._)(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];null==n||n(...t),u(...t)});return(0,M.s)(()=>{let e=void 0===i||!0===i;return e&&c(0,o,l),()=>{e&&c(1,o,l)}},[c,o,l,i]),r.createElement(j.Provider,{value:c},t)}var Z=n(6439);let G=(0,r.createContext)(null),z=Object.assign((0,b.FX)(function(e,t){let n=(0,X.B)(),{id:o="headlessui-description-".concat(n),...l}=e,a=function e(){let t=(0,r.useContext)(G);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),i=(0,f.P)(t);(0,M.s)(()=>a.register(o),[o,a.register]);let u={ref:i,...a.props,id:o};return(0,b.XX)({ourProps:u,theirProps:l,slot:a.slot||{},defaultTag:"p",name:a.name||"Description"})}),{});var K=n(9075),J=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(J||{}),Q=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Q||{});let $={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},ee=(0,r.createContext)(null);function et(e){let t=(0,r.useContext)(ee);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Dialog /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,et),t}return t}function en(e,t){return(0,E.Y)(t.type,$,e,t)}ee.displayName="DialogContext";let er=b.O5.RenderStrategy|b.O5.Static,eo=Object.assign((0,b.FX)(function(e,t){let n=(0,X.B)(),{id:o="headlessui-dialog-".concat(n),open:l,onClose:u,initialFocus:c,role:p="dialog",__demoMode:g=!1,...m}=e,[v,h]=(0,r.useState)(0),w=(0,r.useRef)(!1);
1p="dialog"===p||"alertdialog"===p?p:(w.current||(w.current=!0,console.warn("Invalid role [".concat(p,"] passed to <Dialog />. Only `dialog` and and `alertdialog` are supported. Using `dialog` instead."))),"dialog");let y=(0,U.O_)();void 0===l&&null!==y&&(l=(y&U.Uw.Open)===U.Uw.Open);let D=(0,r.useRef)(null),L=(0,f.P)(D,t),C=(0,s.g)(D),O=e.hasOwnProperty("open")||null!==y,S=e.hasOwnProperty("onClose");if(!O&&!S)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!O)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!S)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof l)throw Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: ".concat(l));if("function"!=typeof u)throw Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: ".concat(u));let k=+!l,[R,A]=(0,r.useReducer)(en,{titleId:null,descriptionId:null,panelRef:(0,r.createRef)()}),B=(0,a._)(()=>u(!1)),W=(0,a._)(e=>A({type:0,id:e})),H=!!(0,d.g)()&&!g&&0===k,j=v>1,Z=null!==(0,r.useContext)(ee),[z,J]=(0,P.k)(),{resolveContainers:Q,mainTreeNodeRef:$,MainTreeNode:et}=(0,N.i)({portals:z,defaultContainers:[{get current(){var eo;return null!=(eo=R.panelRef.current)?eo:D.current}}]}),el=null!==y&&(y&U.Uw.Closing)===U.Uw.Closing,ea=!Z&&!el&&H;Y((0,r.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==C?void 0:C.querySelectorAll("body > *"))?e:[]).find(e=>"headlessui-portal-root"!==e.id&&e.contains($.current)&&e instanceof HTMLElement))?t:null},[$]),ea);let ei=!!j||H;Y((0,r.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==C?void 0:C.querySelectorAll("[data-headlessui-portal]"))?e:[]).find(e=>e.contains($.current)&&e instanceof HTMLElement))?t:null},[$]),ei);let eu=!(!H||j);(0,x.j)(Q,e=>{e.preventDefault(),B()},eu);let ec=!(j||0!==k);(0,i.M)(null==C?void 0:C.defaultView,"keydown",e=>{ec&&(e.defaultPrevented||e.key===K.D.Escape&&(e.preventDefault(),e.stopPropagation(),B()))}),function(e,t){var n;let r,o,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];n=e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],l]}},r=F(_.subscribe,_.getSnapshot,_.getSnapshot),(o=e?r.get(e):void 0)&&o.count,(0,M.s)(()=>{if(!(!e||!t))return _.dispatch("PUSH",e,n),()=>_.dispatch("POP",e,n)},[t,e])}(C,!(el||0!==k||Z),Q),(0,r.useEffect)(()=>{if(0!==k||!D.current)return;let e=new ResizeObserver(e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&B()}});return e.observe(D.current),()=>e.disconnect()},[k,D,B]);let[es,ed]=function(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)(()=>function(e){let n=(0,a._)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),o=(0,r.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props}),[n,e.slot,e.name,e.props]);return r.createElement(G.Provider,{value:o},e.children)},[t])]}(),ef=(0,r.useMemo)(()=>[{dialogState:k,close:B,setTitleId:W},R],[k,R,B,W]),ep=(0,r.useMemo)(()=>({open:0===k}),[k]),eg={ref:L,id:o,role:p,"aria-modal":0===k||void 0,"aria-labelledby":R.titleId,"aria-describedby":es};return r.createElement(q,{type:"Dialog",enabled:0===k,element:D,onUpdate:(0,a._)((e,t)=>{"Dialog"===t&&(0,E.Y)(e,{[V.Add]:()=>h(e=>e+1),[V.Remove]:()=>h(e=>e-1)})})},r.createElement(I.a,{force:!0},r.createElement(P.Z,null,r.createElement(ee.Provider,{value:ef},r.createElement(P.Z.Group,{target:D},r.createElement(I.a,{force:!1},r.createElement(ed,{slot:ep,name:"Dialog.Description"},r.createElement(T,{initialFocus:c,containers:Q,features:H?(0,E.Y)(j?"parent":"leaf",{parent:T.features.RestoreFocus,leaf:T.features.All&~T.features.FocusLock}):T.features.None},r.createElement(J,null,(0,b.XX)({ourProps:eg,theirProps:m,slot:ep,defaultTag:"div",features:er,visible:0===k,name:"Dialog"}))))))))),r.createElement(et,null))}),{Backdrop:(0,b.FX)(function(e,t){let n=(0,X.B)(),{id:o="headlessui-dialog-backdrop-".concat(n),...l}=e,[{dialogState:a},i]=et("Dialog.Backdrop"),u=(0,f.P)(t);(0,r.useEffect)(()=>
1{if(null===i.panelRef.current)throw Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[i.panelRef]);let c=(0,r.useMemo)(()=>({open:0===a}),[a]);return r.createElement(I.a,{force:!0},r.createElement(P.Z,null,(0,b.XX)({ourProps:{ref:u,id:o,"aria-hidden":!0},theirProps:l,slot:c,defaultTag:"div",name:"Dialog.Backdrop"})))}),Panel:(0,b.FX)(function(e,t){let n=(0,X.B)(),{id:o="headlessui-dialog-panel-".concat(n),...l}=e,[{dialogState:i},u]=et("Dialog.Panel"),c=(0,f.P)(t,u.panelRef),s=(0,r.useMemo)(()=>({open:0===i}),[i]),d=(0,a._)(e=>{e.stopPropagation()});return(0,b.XX)({ourProps:{ref:c,id:o,onClick:d},theirProps:l,slot:s,defaultTag:"div",name:"Dialog.Panel"})}),Overlay:(0,b.FX)(function(e,t){let n=(0,X.B)(),{id:o="headlessui-dialog-overlay-".concat(n),...l}=e,[{dialogState:i,close:u}]=et("Dialog.Overlay"),c=(0,f.P)(t),s=(0,a._)(e=>{if(e.target===e.currentTarget){if((0,Z.l)(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),u()}}),d=(0,r.useMemo)(()=>({open:0===i}),[i]);return(0,b.XX)({ourProps:{ref:c,id:o,"aria-hidden":!0,onClick:s},theirProps:l,slot:d,defaultTag:"div",name:"Dialog.Overlay"})}),Title:(0,b.FX)(function(e,t){let n=(0,X.B)(),{id:o="headlessui-dialog-title-".concat(n),...l}=e,[{dialogState:a,setTitleId:i}]=et("Dialog.Title"),u=(0,f.P)(t);(0,r.useEffect)(()=>(i(o),()=>i(null)),[o,i]);let c=(0,r.useMemo)(()=>({open:0===a}),[a]);return(0,b.XX)({ourProps:{ref:u,id:o},theirProps:l,slot:c,defaultTag:"h2",name:"Dialog.Title"})}),Description:z})}}]);

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.