import{rasw,qasm,anasy,sasf}from"./entry.a42f0781.js";constu=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;functionh(e,r){if(typeofe!="string")thrownewTypeError("argument str must be a string");consto={},a=(r||{}).decode||k;letn=0;for(;n<e.length;){consti=e.indexOf("=",n);if(i===-1)break;lets=e.indexOf(";",n);if(s===-1)s=e.length;elseif(s<i){n=e.lastIndexOf(";",i-1)+1;continue}constd=e.slice(n,i).trim();if(o[d]===void0){letc=e.slice(i+1,s).trim();c.codePointAt(0)===34&&(c=c.slice(1,-1)),o[d]=v(c,a)}n=s+1}returno}functionl(e,r,o){constt=o||{},a=t.encode||S;if(typeofa!="function")thrownewTypeError("option encode is invalid");if(!u.test(e))thrownewTypeError("argument name is invalid");constn=a(r);if(n&&!u.test(n))thrownewTypeError("argument val is invalid");leti=e+"="+n;if(t.maxAge!==void0&&t.maxAge!==null){consts=t.maxAge-0;if(Number.isNaN(s)||!Number.isFinite(s))thrownewTypeError("option maxAge is invalid");i+="; Max-Age="+Math.floor(s)}if(t.domain){if(!u.test(t.domain))thrownewTypeError("option domain is invalid");i+="; Domain="+t.domain}if(t.path){if(!u.test(t.path))thrownewTypeError("option path is invalid");i+="; Path="+t.path}if(t.expires){if(!g(t.expires)||Number.isNaN(t.expires.valueOf()))thrownewTypeError("option expires is invalid");i+="; Expires="+t.expires.toUTCString()}if(t.httpOnly&&(i+="; HttpOnly"),t.secure&&(i+="; Secure"),t.priority)switch(typeoft.priority=="string"?t.priority.toLowerCase():t.priority){case"low":i+="; Priority=Low";break;case"medium":i+="; Priority=Medium";break;case"high":i+="; Priority=High";break;default:thrownewTypeError("option priority is invalid")}if(t.sameSite)switch(typeoft.sameSite=="string"?t.sameSite.toLowerCase():t.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:thrownewTypeError("option sameSite is invalid")}returni}functiong(e){returnObject.prototype.toString.call(e)==="[object Date]"||einstanceofDate}functionv(e,r){try{returnr(e)}catch{returne}}functionk(e){returne.includes("%")?decodeURIComponent(e):e}functionS(e){returnencodeURIComponent(e)}constx={path:"/",watch:!0,decode:e=>y(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeofe=="string"?e:JSON.stringify(e))};functionp(e,r){varn;consto={...x,...r},t=T(o)||{},a=w(t[e]??((n=o.default)==null?void0:n.call(o)));{consti=()=>{C(e,a.value,o)};o.watch?m(a,i,{deep:o.watch!=="shallow"}):i()}returna}functionT(e={}){returnh(document.cookie,e)}functionb(e,r,o={}){returnr==null?l(e,r,{...o,maxAge:-1}):l(e,r,o)}functionC(e,r,o={}){document.cookie=b(e,r,o)}constI=()=>({isEnabled:()=>{constt=f().query;returnObject.prototype.hasOwnProperty.call(t,"preview")&&!t.preview?!1:!!(t.preview||p("previewToken").value||sessionStorage.getItem("previewToken"))},getPreviewToken:()=>p("previewToken").value||sessionStorage.getItem("previewToken")||void0,setPreviewToken:t=>{p("previewToken").value=t,f().query.preview=t||"",t?sessionStorage.setItem("previewToken",t):sessionStorage.removeItem("previewToken"),window.location.reload()}});export{Iasu};