@qratilabs/qrati-connect 2.5.4 → 2.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/element/{B59V0Mhr.js → B28y50Bi.js} +1 -1
- package/element/{DLz0G_z2.js → BWU1Eb1i.js} +1 -1
- package/element/{kdp9oLRU.js → CAt6yWea.js} +1 -1
- package/element/{D_N6wPLS.js → CH2f_afH.js} +1 -1
- package/element/{D43BQzpf.js → CUOOhGTj.js} +1 -1
- package/element/{BwemkCCJ.js → Cf1QDu0i.js} +1 -1
- package/element/{OucaMSbY.js → CvA0vfrf.js} +1 -1
- package/element/{DhfeoyBz.js → D4xTzxjA.js} +1 -1
- package/element/{J72K45YE.js → DODG2TX4.js} +1 -1
- package/element/{CPPs7pi-.js → DPOkh0eJ.js} +1 -1
- package/element/{DhcdFi7M.js → DiiWe_SG.js} +2 -2
- package/element/{BrMlCiWh.js → wHbQZdly.js} +1 -1
- package/element/web.es.js +3 -3
- package/package.json +1 -1
- package/react/{DXg0jviV.js → BAbwOJvT.js} +1 -1
- package/react/{DVhoieUG.js → BXiO9Rt2.js} +1 -1
- package/react/{B-MiXFkt.js → BaT1o9UO.js} +1 -1
- package/react/{q8ln6Sqn.js → BexGhdGA.js} +2 -2
- package/react/{CYK5EdMk.js → C4TTO8j2.js} +1 -1
- package/react/{DQq5P5kz.js → CNAEfadS.js} +1 -1
- package/react/{yjP1jdU0.js → CT_Cvh8-.js} +1 -1
- package/react/{DQRcftrx.js → Cs3wia2w.js} +1 -1
- package/react/{BBNhso7S.js → Czrz88CD.js} +1 -1
- package/react/{Rx2eXHSy.js → Czw0BHMZ.js} +1 -1
- package/react/{BaqVlxbd.js → D3jlv133.js} +1 -1
- package/react/{HzUDi5NE.js → D4BACpJw.js} +1 -1
- package/react/{Bh_3jcgw.js → D6cMN4OJ.js} +1 -1
- package/react/{B9vdeEQv.js → D7c4q3kj.js} +1 -1
- package/react/{t-ii7Ss0.js → DEIcfk-y.js} +1 -1
- package/react/{-k-ffFwP.js → DGIVHiX4.js} +1 -1
- package/react/{DMqKxwcb.js → DOw70z3P.js} +1 -1
- package/react/DV6DJ1Br.js +1 -0
- package/react/{r0vUVZIh.js → Dljj3ToS.js} +1 -1
- package/react/QPXxc9eb.js +1 -0
- package/react/{BQ7Q_1WB.js → Sb4c6EUR.js} +1 -1
- package/react/{Fhq5zLvg.js → aragUG-J.js} +1 -1
- package/react/{BRLq62Uv.js → e8YBtYhk.js} +1 -1
- package/react/index.cjs +1 -1
- package/react/index.mjs +3 -3
- package/react/{BTW-b-Wo.js → pIx9IeV5.js} +1 -1
- package/umd/web.umd.js +1 -1
- package/react/BJBX47Jb.js +0 -1
- package/react/C9yNmSQ8.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [2.5.5](https://github.com/qrati-labs/qrati-connect-ts/compare/v2.5.4...v2.5.5) (2026-03-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update comment to clarify token structure in SessionProvider ([4d148db](https://github.com/qrati-labs/qrati-connect-ts/commit/4d148dbe10fce05a879a399343bdddf36ccb427f))
|
|
7
|
+
|
|
8
|
+
## [2.5.4](https://github.com/qrati-labs/qrati-connect-ts/compare/v2.5.3...v2.5.4) (2026-03-25)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* remove disableSentry prop from QratiConnectProps interface and related documentation ([51aee15](https://github.com/qrati-labs/qrati-connect-ts/commit/51aee15f45aded6f8cb4693a964ff42c8023eff2))
|
|
14
|
+
|
|
1
15
|
# 1.0.0 (2026-03-23)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{Dt as e,Mt as l,N as t,T as r,wt as n}from"./
|
|
1
|
+
import{Dt as e,Mt as l,N as t,T as r,wt as n}from"./wHbQZdly.js";import{p as s,t as a}from"./DPOkh0eJ.js";var i=({event:i})=>{const o=s(),[c,d]=e(0),u=n(null),h=(i.contents??[]).filter(e=>e.thumbnailUrl||e.url);return l(()=>{if(!(h.length<=1))return u.current=setInterval(()=>{d(e=>(e+1)%h.length)},3e3),()=>{u.current&&clearInterval(u.current)}},[h.length]),/* @__PURE__ */t("div",{class:"w-44 overflow-hidden",children:[h.length>0?/* @__PURE__ */t("div",{class:"relative h-28 w-full overflow-hidden",children:[/* @__PURE__ */t(a,{src:h[c]?.thumbnailUrl||h[c]?.url,blurhash:h[c]?.blurHash,containerClassName:"size-full",imgClassName:"rounded-none"}),h.length>1&&/* @__PURE__ */t("div",{class:"absolute right-0 bottom-1.5 left-0 flex justify-center gap-1",children:h.map((e,l)=>/* @__PURE__ */t("button",{onClick:()=>d(l),class:"size-1.5 rounded-full transition-all "+(l===c?"bg-white":"bg-white/50"),"aria-label":`Go to image ${l+1}`},l))})]}):/* @__PURE__ */t("div",{class:"bg-muted flex h-28 w-full items-center justify-center",children:/* @__PURE__ */t("svg",{xmlns:"http://www.w3.org/2000/svg",class:"text-muted-foreground size-10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",children:/* @__PURE__ */t("path",{d:"M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909M9 12.75a2.25 2.25 0 100-4.5 2.25 2.25 0 000 4.5z"})})}),/* @__PURE__ */t("div",{class:"",children:[
|
|
2
2
|
/* @__PURE__ */t("p",{class:"line-clamp-2 text-sm leading-tight font-medium",children:i.name}),i.location?.label&&/* @__PURE__ */t("p",{class:"text-foreground line-clamp-1 text-xs",children:i.location.label}),
|
|
3
3
|
/* @__PURE__ */t("button",{onClick:()=>{o(r.GALLERY(i.slug))},class:"bg-background text-foreground mt-2 w-full rounded py-1 text-xs font-medium transition-opacity hover:opacity-90",children:"Explore"})]})]})};export{i as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{B as e,N as t,q as r}from"./
|
|
1
|
+
import{B as e,N as t,q as r}from"./wHbQZdly.js";import{n as s}from"./DiiWe_SG.js";var i=r(()=>import("./Cf1QDu0i.js")),n=r(()=>import("./DODG2TX4.js")),o=r(()=>import("./CH2f_afH.js")),a=r(()=>import("./D4xTzxjA.js")),l=({events:r,isLoading:l=!1})=>{const{organization:c}=s(),d=c?.integrationSettings??{},p=d.mapProvider??"openstreetmap",m=d.mapTilerApiKey??"",u=d.googleMapsApiKey??"",f=d.mapboxApiKey??"",x=r.filter(e=>"number"==typeof e.location?.x&&"number"==typeof e.location?.y);/* @__PURE__ */
|
|
2
2
|
return t("div",{class:"w relative mt-3 h-screen sm:mt-6",children:l?/* @__PURE__ */t("div",{class:"flex h-full items-center justify-center",children:/* @__PURE__ */t("div",{class:"border-primary bt-transparent size-8 animate-spin rounded-full"})}):"openstreetmap"===p&&!m||"google"===p&&!u||"mapbox"===p&&!f?/* @__PURE__ */t("div",{class:"flex h-full items-center justify-center",children:/* @__PURE__ */t("div",{class:"text-center",children:[
|
|
3
3
|
/* @__PURE__ */t("svg",{xmlns:"http://www.w3.org/2000/svg",class:"text-muted-foreground mx-auto mb-3 size-10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",children:[/* @__PURE__ */t("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z"}),/* @__PURE__ */t("circle",{cx:"12",cy:"9",r:"2.5"})]}),
|
|
4
4
|
/* @__PURE__ */t("p",{class:"text-foreground",children:"Map API Key Required"}),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Dt as t,Et as e,Ft as o,I as r,It as n,Mt as a,N as i,Pt as s,Rt as c,U as l,W as f,jt as d,l as u,n as p,o as m,r as g,s as y,t as h,wt as b}from"./BrMlCiWh.js";import{a as v,n as x,r as _}from"./DhcdFi7M.js";import{b as w,m as T,p as k,r as I,t as E}from"./DHTkVJH6.js";var O=Object.freeze({left:0,top:0,width:16,height:16}),j=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),z=Object.freeze({...O,...j}),S=Object.freeze({...z,body:"",hidden:!1});function N(t,e){const o=function(t,e){const o={};!t.hFlip!=!e.hFlip&&(o.hFlip=!0),!t.vFlip!=!e.vFlip&&(o.vFlip=!0);const r=((t.rotate||0)+(e.rotate||0))%4;return r&&(o.rotate=r),o}(t,e);for(const r in S)r in j?r in t&&!(r in o)&&(o[r]=j[r]):r in e?o[r]=e[r]:r in t&&(o[r]=t[r]);return o}function C(t,e,o){const r=t.icons,n=t.aliases||Object.create(null);let a={};function i(t){a=N(r[t]||n[t],a)}return i(e),o.forEach(i),N(t,a)}function L(t,e){const o=[];if("object"!=typeof t||"object"!=typeof t.icons)return o;t.not_found instanceof Array&&t.not_found.forEach(t=>{e(t,null),o.push(t)});const r=function(t){const e=t.icons,o=t.aliases||Object.create(null),r=Object.create(null);return Object.keys(e).concat(Object.keys(o)).forEach(function t(n){if(e[n])return r[n]=[];if(!(n in r)){r[n]=null;const e=o[n]&&o[n].parent,a=e&&t(e);a&&(r[n]=[e].concat(a))}return r[n]}),r}(t);for(const n in r){const a=r[n];a&&(e(n,C(t,n,a)),o.push(n))}return o}var A={provider:"",aliases:{},not_found:{},...O};function F(t,e){for(const o in e)if(o in t&&typeof t[o]!=typeof e[o])return!1;return!0}function P(t){if("object"!=typeof t||null===t)return null;const e=t;if("string"!=typeof e.prefix||!t.icons||"object"!=typeof t.icons)return null;if(!F(t,A))return null;const o=e.icons;for(const n in o){const t=o[n];if(!n||"string"!=typeof t.body||!F(t,S))return null}const r=e.aliases||Object.create(null);for(const n in r){const t=r[n],e=t.parent;if(!n||"string"!=typeof e||!o[e]&&!r[e]||!F(t,S))return null}return e}var M=Object.create(null);function D(t,e){const o=M[t]||(M[t]=Object.create(null));return o[e]||(o[e]=function(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:/* @__PURE__ */new Set}}(t,e))}function R(t,e){return P(e)?L(e,(e,o)=>{o?t.icons[e]=o:t.missing.add(e)}):[]}var $=/^[a-z0-9]+(-[a-z0-9]+)*$/,U=(t,e,o,r="")=>{const n=t.split(":");if("@"===t.slice(0,1)){if(n.length<2||n.length>3)return null;r=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const t=n.pop(),o=n.pop(),a={provider:n.length>0?n[0]:r,prefix:o,name:t};return e&&!V(a)?null:a}const a=n[0],i=a.split("-");if(i.length>1){const t={provider:r,prefix:i.shift(),name:i.join("-")};return e&&!V(t)?null:t}if(o&&""===r){const t={provider:r,prefix:"",name:a};return e&&!V(t,o)?null:t}return null},V=(t,e)=>!!t&&!(!(e&&""===t.prefix||t.prefix)||!t.name),X=!1;function q(t){return"boolean"==typeof t&&(X=t),X}function H(t){const e="string"==typeof t?U(t,!0,X):t;if(e){const t=D(e.provider,e.prefix),o=e.name;return t.icons[o]||(t.missing.has(o)?null:void 0)}}var B=Object.freeze({width:null,height:null}),W=Object.freeze({...B,...j}),Q=/(-?[0-9.]*[0-9]+[0-9.]*)/g,G=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Y(t,e,o){if(1===e)return t;if(o=o||100,"number"==typeof t)return Math.ceil(t*e*o)/o;if("string"!=typeof t)return t;const r=t.split(Q);if(null===r||!r.length)return t;const n=[];let a=r.shift(),i=G.test(a);for(;;){if(i){const t=parseFloat(a);isNaN(t)?n.push(a):n.push(Math.ceil(t*e*o)/o)}else n.push(a);if(a=r.shift(),void 0===a)return n.join("");i=!i}}var J=/\sid="(\S+)"/g,K="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16),Z=0;function tt(t,e=K){const o=[];let r;for(;r=J.exec(t);)o.push(r[1]);if(!o.length)return t;const n="suffix"+(16777216*Math.random()|Date.now()).toString(16);return o.forEach(o=>{const r="function"==typeof e?e(o):e+(Z++).toString(),a=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+r+n+"$3")}),t=t.replace(new RegExp(n,"g"),"")}var et=Object.create(null);function ot(t){return et[t]||et[""]}function rt(t){let e;if("string"==typeof t.resources)e=[t.resources];else if(e=t.resources,!(e instanceof Array&&e.length))return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:!0===t.random,index:t.index||0,dataAfterTimeout:!1!==t.dataAfterTimeout}}for(var nt=Object.create(null),at=["https://api.simplesvg.com","https://api.unisvg.com"],it=[];at.length>0;)1===at.length||Math.random()>.5?it.push(at.shift()):it.push(at.pop());function st(t,e){const o=rt(e);return null!==o&&(nt[t]=o,!0)}function ct(t){return nt[t]}nt[""]=rt({resources:["https://api.iconify.design"].concat(it)});var lt=(()=>{let t;try{if(t=fetch,"function"==typeof t)return t}catch(e){}})(),ft={prepare:(t,e,o)=>{const r=[],n=function(t,e){const o=ct(t);if(!o)return 0;let r;if(o.maxURL){let t=0;o.resources.forEach(e=>{t=Math.max(t,e.length)});const n=e+".json?icons=";r=o.maxURL-t-o.path.length-n.length}else r=0;return r}(t,e),a="icons";let i={type:a,provider:t,prefix:e,icons:[]},s=0;return o.forEach((o,c)=>{s+=o.length+1,s>=n&&c>0&&(r.push(i),i={type:a,provider:t,prefix:e,icons:[]},s=o.length),i.icons.push(o)}),r.push(i),r},send:(t,e,o)=>{if(!lt)return void o("abort",424);let r=function(t){if("string"==typeof t){const e=ct(t);if(e)return e.path}return"/"}(e.provider);switch(e.type){case"icons":{const t=e.prefix,o=e.icons.join(",");r+=t+".json?"+new URLSearchParams({icons:o}).toString();break}case"custom":{const t=e.uri;r+="/"===t.slice(0,1)?t.slice(1):t;break}default:return void o("abort",400)}let n=503;lt(t+r).then(t=>{const e=t.status;if(200===e)return n=501,t.json();setTimeout(()=>{o(function(t){return 404===t}(e)?"abort":"next",e)})}).then(t=>{"object"==typeof t&&null!==t?setTimeout(()=>{o("success",t)}):setTimeout(()=>{404===t?o("abort",t):o("next",n)})}).catch(()=>{o("next",n)})}};function dt(t,e){t.forEach(t=>{const o=t.loaderCallbacks;o&&(t.loaderCallbacks=o.filter(t=>t.id!==e))})}var ut=0,pt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function mt(t){const e={...pt,...t};let o=[];function r(){o=o.filter(t=>"pending"===t().status)}return{query:function(t,n,a){const i=function(t,e,o,r){const n=t.resources.length,a=t.random?Math.floor(Math.random()*n):t.index;let i;if(t.random){let e=t.resources.slice(0);for(i=[];e.length>1;){const t=Math.floor(Math.random()*e.length);i.push(e[t]),e=e.slice(0,t).concat(e.slice(t+1))}i=i.concat(e)}else i=t.resources.slice(a).concat(t.resources.slice(0,a));const s=Date.now();let c,l="pending",f=0,d=null,u=[],p=[];function m(){d&&(clearTimeout(d),d=null)}function g(){"pending"===l&&(l="aborted"),m(),u.forEach(t=>{"pending"===t.status&&(t.status="aborted")}),u=[]}function y(t,e){e&&(p=[]),"function"==typeof t&&p.push(t)}function h(){l="failed",p.forEach(t=>{t(void 0,c)})}function b(){u.forEach(t=>{"pending"===t.status&&(t.status="aborted")}),u=[]}return"function"==typeof r&&p.push(r),setTimeout(function r(){if("pending"!==l)return;m();const n=i.shift();if(void 0===n)return u.length?void(d=setTimeout(()=>{m(),"pending"===l&&(b(),h())},t.timeout)):void h();const a={status:"pending",resource:n,callback:(e,o)=>{!function(e,o,n){const a="success"!==o;switch(u=u.filter(t=>t!==e),l){case"pending":break;case"failed":if(a||!t.dataAfterTimeout)return;break;default:return}if("abort"===o)return c=n,void h();if(a)return c=n,void(u.length||(i.length?r():h()));if(m(),b(),!t.random){const o=t.resources.indexOf(e.resource);-1!==o&&o!==t.index&&(t.index=o)}l="completed",p.forEach(t=>{t(n)})}(a,e,o)}};u.push(a),f++,d=setTimeout(r,t.rotate),o(n,e,a.callback)}),function(){return{startTime:s,payload:e,status:l,queriesSent:f,queriesPending:u.length,subscribe:y,abort:g}}}(e,t,n,(t,e)=>{r(),a&&a(t,e)});return o.push(i),i},find:function(t){return o.find(e=>t(e))||null},setIndex:t=>{e.index=t},getIndex:()=>e.index,cleanup:r}}function gt(){}var yt=Object.create(null);function ht(){}function bt(t,e,o){function r(){const o=t.pendingIcons;e.forEach(e=>{o&&o.delete(e),t.icons[e]||t.missing.add(e)})}if(o&&"object"==typeof o)try{if(!R(t,o).length)return void r()}catch(n){console.error(n)}r(),function(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,function(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let o=!1;const r=t.provider,n=t.prefix;e.forEach(e=>{const a=e.icons,i=a.pending.length;a.pending=a.pending.filter(e=>{if(e.prefix!==n)return!0;const i=e.name;if(t.icons[i])a.loaded.push({provider:r,prefix:n,name:i});else{if(!t.missing.has(i))return o=!0,!0;a.missing.push({provider:r,prefix:n,name:i})}return!1}),a.pending.length!==i&&(o||dt([t],e.id),e.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),e.abort))})}))}(t)}))}(t)}function vt(t,e){t instanceof Promise?t.then(t=>{e(t)}).catch(()=>{e(null)}):e(t)}function xt(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:e,prefix:o}=t,r=t.iconsToLoad;if(delete t.iconsToLoad,!r||!r.length)return;const n=t.loadIcon;if(t.loadIcons&&(r.length>1||!n))return void vt(t.loadIcons(r,o,e),e=>{bt(t,r,e)});if(n)return void r.forEach(r=>{vt(n(r,o,e),e=>{bt(t,[r],e?{prefix:o,icons:{[r]:e}}:null)})});const{valid:a,invalid:i}=function(t){const e=[],o=[];return t.forEach(t=>{(t.match($)?e:o).push(t)}),{valid:e,invalid:o}}(r);if(i.length&&bt(t,i,null),!a.length)return;const s=o.match($)?ot(e):null;s?s.prepare(e,o,a).forEach(o=>{!function(t,e,o){let r,n;if("string"==typeof t){const e=ot(t);if(!e)return o(void 0,424),gt;n=e.send;const a=function(t){if(!yt[t]){const e=ct(t);if(!e)return;yt[t]={config:e,redundancy:mt(e)}}return yt[t]}(t);a&&(r=a.redundancy)}else{const e=rt(t);if(e){r=mt(e);const o=ot(t.resources?t.resources[0]:"");o&&(n=o.send)}}r&&n?r.query(e,n,o)().abort:o(void 0,424)}(e,o,e=>{bt(t,o.icons,e)})}):bt(t,a,null)}))}var _t,wt=(t,e)=>{const o=function(t){const e={loaded:[],missing:[],pending:[]},o=Object.create(null);t.sort((t,e)=>t.provider!==e.provider?t.provider.localeCompare(e.provider):t.prefix!==e.prefix?t.prefix.localeCompare(e.prefix):t.name.localeCompare(e.name));let r={provider:"",prefix:"",name:""};return t.forEach(t=>{if(r.name===t.name&&r.prefix===t.prefix&&r.provider===t.provider)return;r=t;const n=t.provider,a=t.prefix,i=t.name,s=o[n]||(o[n]=Object.create(null)),c=s[a]||(s[a]=D(n,a));let l;l=i in c.icons?e.loaded:""===a||c.missing.has(i)?e.missing:e.pending;const f={provider:n,prefix:a,name:i};l.push(f)}),e}(function(t,e=!0,o=!1){const r=[];return t.forEach(t=>{const n="string"==typeof t?U(t,e,o):t;n&&r.push(n)}),r}(t,!0,q()));if(!o.pending.length){let t=!0;return e&&setTimeout(()=>{t&&e(o.loaded,o.missing,o.pending,ht)}),()=>{t=!1}}const r=Object.create(null),n=[];let a,i;return o.pending.forEach(t=>{const{provider:e,prefix:o}=t;if(o===i&&e===a)return;a=e,i=o,n.push(D(e,o));const s=r[e]||(r[e]=Object.create(null));s[o]||(s[o]=[])}),o.pending.forEach(t=>{const{provider:e,prefix:o,name:n}=t,a=D(e,o),i=a.pendingIcons||(a.pendingIcons=/* @__PURE__ */new Set);i.has(n)||(i.add(n),r[e][o].push(n))}),n.forEach(t=>{const e=r[t.provider][t.prefix];e.length&&xt(t,e)}),e?function(t,e,o){const r=ut++,n=dt.bind(null,o,r);if(!e.pending.length)return n;const a={id:r,icons:e,callback:t,abort:n};return o.forEach(t=>{(t.loaderCallbacks||(t.loaderCallbacks=[])).push(a)}),n}(e,o,n):ht},Tt=/[\s,]+/;function kt(t,e){e.split(Tt).forEach(e=>{switch(e.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0}})}function It(t,e=0){const o=t.replace(/^-?[0-9.]*/,"");function r(t){for(;t<0;)t+=4;return t%4}if(""===o){const e=parseInt(t);return isNaN(e)?0:r(e)}if(o!==t){let e=0;switch(o){case"%":e=25;break;case"deg":e=90}if(e){let n=parseFloat(t.slice(0,t.length-o.length));return isNaN(n)?0:(n/=e,n%1==0?r(n):0)}}return e}function Et(t){return void 0===_t&&function(){try{_t=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch(t){_t=null}}(),_t?_t.createHTML(t):t}var Ot={...W,inline:!1},jt={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},zt={display:"inline-block"},St={backgroundColor:"currentColor"},Nt={backgroundColor:"transparent"},Ct={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Lt={WebkitMask:St,mask:St,background:Nt};for(const Ee in Lt){const t=Lt[Ee];for(const e in Ct)t[Ee+e]=Ct[e]}var At={...Ot,inline:!0};function Ft(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}var Pt;if(q(!0),Pt=ft,et[""]=Pt,"undefined"!=typeof document&&"undefined"!=typeof window){const t=window;if(void 0!==t.IconifyPreload){const e=t.IconifyPreload,o="Invalid IconifyPreload syntax.";"object"==typeof e&&null!==e&&(e instanceof Array?e:[e]).forEach(t=>{try{("object"!=typeof t||null===t||t instanceof Array||"object"!=typeof t.icons||"string"!=typeof t.prefix||!function(t,e){if("object"!=typeof t)return!1;if("string"!=typeof e&&(e=t.provider||""),X&&!e&&!t.prefix){let e=!1;return P(t)&&(t.prefix="",L(t,(t,r)=>{(function(t,e){const r=U(t,!0,X);if(!r)return!1;const n=D(r.provider,r.prefix);return e?function(t,e,r){try{if("string"==typeof r.body)return t.icons[e]={...r},!0}catch(o){}return!1}(n,r.name,e):(n.missing.add(r.name),!0)})(t,r)&&(e=!0)})),e}const r=t.prefix;return!!V({prefix:r,name:"a"})&&!!R(D(e,r),t)}(t))&&console.error(o)}catch(e){console.error(o)}})}if(void 0!==t.IconifyProviders){const e=t.IconifyProviders;if("object"==typeof e&&null!==e)for(let t in e){const o="IconifyProviders["+t+"] is invalid.";try{const r=e[t];if("object"!=typeof r||!r||void 0===r.resources)continue;st(t,r)||console.error(o)}catch(Ie){console.error(o)}}}}function Mt(e){const[o,r]=t(!!e.ssr),[i,s]=t({}),[c,l]=t(function(t){if(t){const t=e.icon;if("object"==typeof t)return{name:"",data:t};const o=H(t);if(o)return{name:t,data:o}}return{name:""}}(!!e.ssr));function f(){const t=i.callback;t&&(t(),s({}))}function d(t){if(JSON.stringify(c)!==JSON.stringify(t))return f(),l(t),!0}function u(){var t;const o=e.icon;if("object"==typeof o)return void d({name:"",data:o});const r=H(o);d({name:o,data:r})&&(void 0===r?s({callback:wt([o],u)}):r&&(null===(t=e.onLoad)||void 0===t||t.call(e,o)))}a(()=>(r(!0),f),[]),a(()=>{o&&u()},[e.icon,o]);const{name:p,data:m}=c;return m?((t,e,o)=>{const r=e.inline?At:Ot,a=function(t,e){const o={...t};for(const r in e){const t=e[r],n=typeof t;r in B?(null===t||t&&("string"===n||"number"===n))&&(o[r]=t):n===typeof o[r]&&(o[r]="rotate"===r?t%4:t)}return o}(r,e),i=e.mode||"svg",s={},c=e.style||{},l={..."svg"===i?jt:{}};if(o){const t=U(o,!1,!0);if(t){const e=["iconify"];for(const o of["provider","prefix"])t[o]&&e.push("iconify--"+t[o]);l.className=e.join(" ")}}for(let n in e){const t=e[n];if(void 0!==t)switch(n){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":case"fallback":break;case"_ref":l.ref=t;break;case"className":l[n]=(l[n]?l[n]+" ":"")+t;break;case"inline":case"hFlip":case"vFlip":a[n]=!0===t||"true"===t||1===t;break;case"flip":"string"==typeof t&&kt(a,t);break;case"color":s.color=t;break;case"rotate":"string"==typeof t?a[n]=It(t):"number"==typeof t&&(a[n]=t);break;case"ariaHidden":case"aria-hidden":!0!==t&&"true"!==t&&delete l["aria-hidden"];break;default:void 0===r[n]&&(l[n]=t)}}const f=function(t,e){const o={...z,...t},r={...W,...e},n={left:o.left,top:o.top,width:o.width,height:o.height};let a=o.body;[o,r].forEach(t=>{const e=[],o=t.hFlip,r=t.vFlip;let i,s=t.rotate;switch(o?r?s+=2:(e.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),e.push("scale(-1 1)"),n.top=n.left=0):r&&(e.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),e.push("scale(1 -1)"),n.top=n.left=0),s<0&&(s-=4*Math.floor(s/4)),s%=4,s){case 1:i=n.height/2+n.top,e.unshift("rotate(90 "+i.toString()+" "+i.toString()+")");break;case 2:e.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:i=n.width/2+n.left,e.unshift("rotate(-90 "+i.toString()+" "+i.toString()+")")}s%2==1&&(n.left!==n.top&&(i=n.left,n.left=n.top,n.top=i),n.width!==n.height&&(i=n.width,n.width=n.height,n.height=i)),e.length&&(a=function(t,e){const o=function(t,e="defs"){let o="";const r=t.indexOf("<"+e);for(;r>=0;){const n=t.indexOf(">",r),a=t.indexOf("</"+e);if(-1===n||-1===a)break;const i=t.indexOf(">",a);if(-1===i)break;o+=t.slice(n+1,a).trim(),t=t.slice(0,r).trim()+t.slice(i+1)}return{defs:o,content:t}}(t);return r=o.defs,n=e+o.content+"</g>",r?"<defs>"+r+"</defs>"+n:n;var r,n}(a,'<g transform="'+e.join(" ")+'">'))});const i=r.width,s=r.height,c=n.width,l=n.height;let f,d;null===i?(d=null===s?"1em":"auto"===s?l:s,f=Y(d,c/l)):(f="auto"===i?c:i,d=null===s?Y(f,l/c):"auto"===s?l:s);const u={},p=(t,e)=>{(t=>"unset"===t||"undefined"===t||"none"===t)(e)||(u[t]=e.toString())};p("width",f),p("height",d);const m=[n.left,n.top,c,l];return u.viewBox=m.join(" "),{attributes:u,viewBox:m,body:a}}(t,a),d=f.attributes;if(a.inline&&(s.verticalAlign="-0.125em"),"svg"===i){l.style={...s,...c},Object.assign(l,d);let t=0,o=e.id;return"string"==typeof o&&(o=o.replace(/-/g,"_")),l.dangerouslySetInnerHTML={__html:Et(tt(f.body,o?()=>o+"ID"+t++:"iconifyReact"))},n("svg",l)}const{body:u,width:p,height:m}=t,g="mask"===i||"bg"!==i&&-1!==u.indexOf("currentColor"),y=function(t,e){let o=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in e)o+=" "+r+'="'+e[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+t+"</svg>"}(u,{...d,width:p+"",height:m+""});var h;return l.style={...s,"--svg":(h=y,'url("'+function(t){return"data:image/svg+xml,"+function(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(t)}(h)+'")'),width:Ft(d.width),height:Ft(d.height),...zt,...g?St:Nt,...c},n("span",l)})({...z,...m},e,p):e.children?e.children:e.fallback?e.fallback:n("span",{})}var Dt=r((t,e)=>Mt({...t,_ref:e})),Rt=(r((t,e)=>Mt({inline:!0,...t,_ref:e})),t=>"boolean"==typeof t?`${t}`:0===t?"0":t),$t=g,Ut=(t,e)=>o=>{var r;if(null==(null==e?void 0:e.variants))return $t(t,null==o?void 0:o.class,null==o?void 0:o.className);const{variants:n,defaultVariants:a}=e,i=Object.keys(n).map(t=>{const e=null==o?void 0:o[t],r=null==a?void 0:a[t];if(null===e)return null;const i=Rt(e)||Rt(r);return n[t][i]}),s=o&&Object.entries(o).reduce((t,e)=>{let[o,r]=e;return void 0===r||(t[o]=r),t},{});return $t(t,i,null==e||null===(r=e.compoundVariants)||void 0===r?void 0:r.reduce((t,e)=>{let{class:o,className:r,...n}=e;return Object.entries(n).every(t=>{let[e,o]=t;return Array.isArray(o)?o.includes({...a,...s}[e]):{...a,...s}[e]===o})?[...t,o,r]:t},[]),null==o?void 0:o.class,null==o?void 0:o.className)},Vt=Ut("",{variants:{variant:{default:"border-none",outline:"rounded",solid:"bg-background"},size:{sm:"size-4",md:"size-5",lg:"size-6",xl:"size-7","2xl":"size-8","3xl":"size-9"},color:{foreground:"text-foreground",primary:"text-primary",secondary:"text-muted-foreground",info:"text-info",warning:"text-warning",success:"text-success",error:"text-destructive",a11y:"text-primary-foreground",inherit:""}},compoundVariants:[{variant:"outline",color:"primary",class:"border-primary"},{variant:"outline",color:"secondary",class:"border-border"},{variant:"outline",color:"info",class:"border-info"},{variant:"outline",color:"warning",class:"border-warning"},{variant:"outline",color:"success",class:"border-success"},{variant:"outline",color:"error",class:"border-destructive"},{variant:"solid",color:"primary",class:"bg-background text-foreground"},{variant:"solid",color:"secondary",class:"bg-background text-muted-foreground"},{variant:"solid",color:"info",class:"bg-info text-foreground text-text-primary-dark"},{variant:"solid",color:"warning",class:"bg-warning text-foreground text-text-primary-dark"},{variant:"solid",color:"success",class:"bg-success text-foreground text-text-primary-dark"},{variant:"solid",color:"error",class:"bg-destructive text-foreground text-text-primary-dark"}],defaultVariants:{variant:"default",size:"md",color:"foreground"}}),Xt=({className:t,color:e="foreground",size:o="md",variant:r="default",name:n="line-md:iconify1",...a})=>/* @__PURE__ */i(Dt,{icon:n,className:h(Vt({color:e,size:o,variant:r,className:t})),...a});function qt({children:t,asChild:e=!1,...o}){if(e){const e=Array.isArray(t)?t[0]:t;if(e&&e.type)return s(e,{...o,...e.props})}/* @__PURE__ */
|
|
1
|
+
import{Dt as t,Et as e,Ft as o,I as r,It as n,Mt as a,N as i,Pt as s,Rt as c,U as l,W as f,jt as d,l as u,n as p,o as m,r as g,s as y,t as h,wt as b}from"./wHbQZdly.js";import{a as v,n as x,r as _}from"./DiiWe_SG.js";import{b as w,m as T,p as k,r as I,t as E}from"./DHTkVJH6.js";var O=Object.freeze({left:0,top:0,width:16,height:16}),j=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),z=Object.freeze({...O,...j}),S=Object.freeze({...z,body:"",hidden:!1});function N(t,e){const o=function(t,e){const o={};!t.hFlip!=!e.hFlip&&(o.hFlip=!0),!t.vFlip!=!e.vFlip&&(o.vFlip=!0);const r=((t.rotate||0)+(e.rotate||0))%4;return r&&(o.rotate=r),o}(t,e);for(const r in S)r in j?r in t&&!(r in o)&&(o[r]=j[r]):r in e?o[r]=e[r]:r in t&&(o[r]=t[r]);return o}function C(t,e,o){const r=t.icons,n=t.aliases||Object.create(null);let a={};function i(t){a=N(r[t]||n[t],a)}return i(e),o.forEach(i),N(t,a)}function L(t,e){const o=[];if("object"!=typeof t||"object"!=typeof t.icons)return o;t.not_found instanceof Array&&t.not_found.forEach(t=>{e(t,null),o.push(t)});const r=function(t){const e=t.icons,o=t.aliases||Object.create(null),r=Object.create(null);return Object.keys(e).concat(Object.keys(o)).forEach(function t(n){if(e[n])return r[n]=[];if(!(n in r)){r[n]=null;const e=o[n]&&o[n].parent,a=e&&t(e);a&&(r[n]=[e].concat(a))}return r[n]}),r}(t);for(const n in r){const a=r[n];a&&(e(n,C(t,n,a)),o.push(n))}return o}var A={provider:"",aliases:{},not_found:{},...O};function F(t,e){for(const o in e)if(o in t&&typeof t[o]!=typeof e[o])return!1;return!0}function P(t){if("object"!=typeof t||null===t)return null;const e=t;if("string"!=typeof e.prefix||!t.icons||"object"!=typeof t.icons)return null;if(!F(t,A))return null;const o=e.icons;for(const n in o){const t=o[n];if(!n||"string"!=typeof t.body||!F(t,S))return null}const r=e.aliases||Object.create(null);for(const n in r){const t=r[n],e=t.parent;if(!n||"string"!=typeof e||!o[e]&&!r[e]||!F(t,S))return null}return e}var M=Object.create(null);function D(t,e){const o=M[t]||(M[t]=Object.create(null));return o[e]||(o[e]=function(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:/* @__PURE__ */new Set}}(t,e))}function R(t,e){return P(e)?L(e,(e,o)=>{o?t.icons[e]=o:t.missing.add(e)}):[]}var $=/^[a-z0-9]+(-[a-z0-9]+)*$/,U=(t,e,o,r="")=>{const n=t.split(":");if("@"===t.slice(0,1)){if(n.length<2||n.length>3)return null;r=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const t=n.pop(),o=n.pop(),a={provider:n.length>0?n[0]:r,prefix:o,name:t};return e&&!V(a)?null:a}const a=n[0],i=a.split("-");if(i.length>1){const t={provider:r,prefix:i.shift(),name:i.join("-")};return e&&!V(t)?null:t}if(o&&""===r){const t={provider:r,prefix:"",name:a};return e&&!V(t,o)?null:t}return null},V=(t,e)=>!!t&&!(!(e&&""===t.prefix||t.prefix)||!t.name),X=!1;function q(t){return"boolean"==typeof t&&(X=t),X}function H(t){const e="string"==typeof t?U(t,!0,X):t;if(e){const t=D(e.provider,e.prefix),o=e.name;return t.icons[o]||(t.missing.has(o)?null:void 0)}}var B=Object.freeze({width:null,height:null}),W=Object.freeze({...B,...j}),Q=/(-?[0-9.]*[0-9]+[0-9.]*)/g,G=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Y(t,e,o){if(1===e)return t;if(o=o||100,"number"==typeof t)return Math.ceil(t*e*o)/o;if("string"!=typeof t)return t;const r=t.split(Q);if(null===r||!r.length)return t;const n=[];let a=r.shift(),i=G.test(a);for(;;){if(i){const t=parseFloat(a);isNaN(t)?n.push(a):n.push(Math.ceil(t*e*o)/o)}else n.push(a);if(a=r.shift(),void 0===a)return n.join("");i=!i}}var J=/\sid="(\S+)"/g,K="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16),Z=0;function tt(t,e=K){const o=[];let r;for(;r=J.exec(t);)o.push(r[1]);if(!o.length)return t;const n="suffix"+(16777216*Math.random()|Date.now()).toString(16);return o.forEach(o=>{const r="function"==typeof e?e(o):e+(Z++).toString(),a=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+r+n+"$3")}),t=t.replace(new RegExp(n,"g"),"")}var et=Object.create(null);function ot(t){return et[t]||et[""]}function rt(t){let e;if("string"==typeof t.resources)e=[t.resources];else if(e=t.resources,!(e instanceof Array&&e.length))return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:!0===t.random,index:t.index||0,dataAfterTimeout:!1!==t.dataAfterTimeout}}for(var nt=Object.create(null),at=["https://api.simplesvg.com","https://api.unisvg.com"],it=[];at.length>0;)1===at.length||Math.random()>.5?it.push(at.shift()):it.push(at.pop());function st(t,e){const o=rt(e);return null!==o&&(nt[t]=o,!0)}function ct(t){return nt[t]}nt[""]=rt({resources:["https://api.iconify.design"].concat(it)});var lt=(()=>{let t;try{if(t=fetch,"function"==typeof t)return t}catch(e){}})(),ft={prepare:(t,e,o)=>{const r=[],n=function(t,e){const o=ct(t);if(!o)return 0;let r;if(o.maxURL){let t=0;o.resources.forEach(e=>{t=Math.max(t,e.length)});const n=e+".json?icons=";r=o.maxURL-t-o.path.length-n.length}else r=0;return r}(t,e),a="icons";let i={type:a,provider:t,prefix:e,icons:[]},s=0;return o.forEach((o,c)=>{s+=o.length+1,s>=n&&c>0&&(r.push(i),i={type:a,provider:t,prefix:e,icons:[]},s=o.length),i.icons.push(o)}),r.push(i),r},send:(t,e,o)=>{if(!lt)return void o("abort",424);let r=function(t){if("string"==typeof t){const e=ct(t);if(e)return e.path}return"/"}(e.provider);switch(e.type){case"icons":{const t=e.prefix,o=e.icons.join(",");r+=t+".json?"+new URLSearchParams({icons:o}).toString();break}case"custom":{const t=e.uri;r+="/"===t.slice(0,1)?t.slice(1):t;break}default:return void o("abort",400)}let n=503;lt(t+r).then(t=>{const e=t.status;if(200===e)return n=501,t.json();setTimeout(()=>{o(function(t){return 404===t}(e)?"abort":"next",e)})}).then(t=>{"object"==typeof t&&null!==t?setTimeout(()=>{o("success",t)}):setTimeout(()=>{404===t?o("abort",t):o("next",n)})}).catch(()=>{o("next",n)})}};function dt(t,e){t.forEach(t=>{const o=t.loaderCallbacks;o&&(t.loaderCallbacks=o.filter(t=>t.id!==e))})}var ut=0,pt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function mt(t){const e={...pt,...t};let o=[];function r(){o=o.filter(t=>"pending"===t().status)}return{query:function(t,n,a){const i=function(t,e,o,r){const n=t.resources.length,a=t.random?Math.floor(Math.random()*n):t.index;let i;if(t.random){let e=t.resources.slice(0);for(i=[];e.length>1;){const t=Math.floor(Math.random()*e.length);i.push(e[t]),e=e.slice(0,t).concat(e.slice(t+1))}i=i.concat(e)}else i=t.resources.slice(a).concat(t.resources.slice(0,a));const s=Date.now();let c,l="pending",f=0,d=null,u=[],p=[];function m(){d&&(clearTimeout(d),d=null)}function g(){"pending"===l&&(l="aborted"),m(),u.forEach(t=>{"pending"===t.status&&(t.status="aborted")}),u=[]}function y(t,e){e&&(p=[]),"function"==typeof t&&p.push(t)}function h(){l="failed",p.forEach(t=>{t(void 0,c)})}function b(){u.forEach(t=>{"pending"===t.status&&(t.status="aborted")}),u=[]}return"function"==typeof r&&p.push(r),setTimeout(function r(){if("pending"!==l)return;m();const n=i.shift();if(void 0===n)return u.length?void(d=setTimeout(()=>{m(),"pending"===l&&(b(),h())},t.timeout)):void h();const a={status:"pending",resource:n,callback:(e,o)=>{!function(e,o,n){const a="success"!==o;switch(u=u.filter(t=>t!==e),l){case"pending":break;case"failed":if(a||!t.dataAfterTimeout)return;break;default:return}if("abort"===o)return c=n,void h();if(a)return c=n,void(u.length||(i.length?r():h()));if(m(),b(),!t.random){const o=t.resources.indexOf(e.resource);-1!==o&&o!==t.index&&(t.index=o)}l="completed",p.forEach(t=>{t(n)})}(a,e,o)}};u.push(a),f++,d=setTimeout(r,t.rotate),o(n,e,a.callback)}),function(){return{startTime:s,payload:e,status:l,queriesSent:f,queriesPending:u.length,subscribe:y,abort:g}}}(e,t,n,(t,e)=>{r(),a&&a(t,e)});return o.push(i),i},find:function(t){return o.find(e=>t(e))||null},setIndex:t=>{e.index=t},getIndex:()=>e.index,cleanup:r}}function gt(){}var yt=Object.create(null);function ht(){}function bt(t,e,o){function r(){const o=t.pendingIcons;e.forEach(e=>{o&&o.delete(e),t.icons[e]||t.missing.add(e)})}if(o&&"object"==typeof o)try{if(!R(t,o).length)return void r()}catch(n){console.error(n)}r(),function(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,function(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let o=!1;const r=t.provider,n=t.prefix;e.forEach(e=>{const a=e.icons,i=a.pending.length;a.pending=a.pending.filter(e=>{if(e.prefix!==n)return!0;const i=e.name;if(t.icons[i])a.loaded.push({provider:r,prefix:n,name:i});else{if(!t.missing.has(i))return o=!0,!0;a.missing.push({provider:r,prefix:n,name:i})}return!1}),a.pending.length!==i&&(o||dt([t],e.id),e.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),e.abort))})}))}(t)}))}(t)}function vt(t,e){t instanceof Promise?t.then(t=>{e(t)}).catch(()=>{e(null)}):e(t)}function xt(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:e,prefix:o}=t,r=t.iconsToLoad;if(delete t.iconsToLoad,!r||!r.length)return;const n=t.loadIcon;if(t.loadIcons&&(r.length>1||!n))return void vt(t.loadIcons(r,o,e),e=>{bt(t,r,e)});if(n)return void r.forEach(r=>{vt(n(r,o,e),e=>{bt(t,[r],e?{prefix:o,icons:{[r]:e}}:null)})});const{valid:a,invalid:i}=function(t){const e=[],o=[];return t.forEach(t=>{(t.match($)?e:o).push(t)}),{valid:e,invalid:o}}(r);if(i.length&&bt(t,i,null),!a.length)return;const s=o.match($)?ot(e):null;s?s.prepare(e,o,a).forEach(o=>{!function(t,e,o){let r,n;if("string"==typeof t){const e=ot(t);if(!e)return o(void 0,424),gt;n=e.send;const a=function(t){if(!yt[t]){const e=ct(t);if(!e)return;yt[t]={config:e,redundancy:mt(e)}}return yt[t]}(t);a&&(r=a.redundancy)}else{const e=rt(t);if(e){r=mt(e);const o=ot(t.resources?t.resources[0]:"");o&&(n=o.send)}}r&&n?r.query(e,n,o)().abort:o(void 0,424)}(e,o,e=>{bt(t,o.icons,e)})}):bt(t,a,null)}))}var _t,wt=(t,e)=>{const o=function(t){const e={loaded:[],missing:[],pending:[]},o=Object.create(null);t.sort((t,e)=>t.provider!==e.provider?t.provider.localeCompare(e.provider):t.prefix!==e.prefix?t.prefix.localeCompare(e.prefix):t.name.localeCompare(e.name));let r={provider:"",prefix:"",name:""};return t.forEach(t=>{if(r.name===t.name&&r.prefix===t.prefix&&r.provider===t.provider)return;r=t;const n=t.provider,a=t.prefix,i=t.name,s=o[n]||(o[n]=Object.create(null)),c=s[a]||(s[a]=D(n,a));let l;l=i in c.icons?e.loaded:""===a||c.missing.has(i)?e.missing:e.pending;const f={provider:n,prefix:a,name:i};l.push(f)}),e}(function(t,e=!0,o=!1){const r=[];return t.forEach(t=>{const n="string"==typeof t?U(t,e,o):t;n&&r.push(n)}),r}(t,!0,q()));if(!o.pending.length){let t=!0;return e&&setTimeout(()=>{t&&e(o.loaded,o.missing,o.pending,ht)}),()=>{t=!1}}const r=Object.create(null),n=[];let a,i;return o.pending.forEach(t=>{const{provider:e,prefix:o}=t;if(o===i&&e===a)return;a=e,i=o,n.push(D(e,o));const s=r[e]||(r[e]=Object.create(null));s[o]||(s[o]=[])}),o.pending.forEach(t=>{const{provider:e,prefix:o,name:n}=t,a=D(e,o),i=a.pendingIcons||(a.pendingIcons=/* @__PURE__ */new Set);i.has(n)||(i.add(n),r[e][o].push(n))}),n.forEach(t=>{const e=r[t.provider][t.prefix];e.length&&xt(t,e)}),e?function(t,e,o){const r=ut++,n=dt.bind(null,o,r);if(!e.pending.length)return n;const a={id:r,icons:e,callback:t,abort:n};return o.forEach(t=>{(t.loaderCallbacks||(t.loaderCallbacks=[])).push(a)}),n}(e,o,n):ht},Tt=/[\s,]+/;function kt(t,e){e.split(Tt).forEach(e=>{switch(e.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0}})}function It(t,e=0){const o=t.replace(/^-?[0-9.]*/,"");function r(t){for(;t<0;)t+=4;return t%4}if(""===o){const e=parseInt(t);return isNaN(e)?0:r(e)}if(o!==t){let e=0;switch(o){case"%":e=25;break;case"deg":e=90}if(e){let n=parseFloat(t.slice(0,t.length-o.length));return isNaN(n)?0:(n/=e,n%1==0?r(n):0)}}return e}function Et(t){return void 0===_t&&function(){try{_t=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch(t){_t=null}}(),_t?_t.createHTML(t):t}var Ot={...W,inline:!1},jt={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},zt={display:"inline-block"},St={backgroundColor:"currentColor"},Nt={backgroundColor:"transparent"},Ct={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Lt={WebkitMask:St,mask:St,background:Nt};for(const Ee in Lt){const t=Lt[Ee];for(const e in Ct)t[Ee+e]=Ct[e]}var At={...Ot,inline:!0};function Ft(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}var Pt;if(q(!0),Pt=ft,et[""]=Pt,"undefined"!=typeof document&&"undefined"!=typeof window){const t=window;if(void 0!==t.IconifyPreload){const e=t.IconifyPreload,o="Invalid IconifyPreload syntax.";"object"==typeof e&&null!==e&&(e instanceof Array?e:[e]).forEach(t=>{try{("object"!=typeof t||null===t||t instanceof Array||"object"!=typeof t.icons||"string"!=typeof t.prefix||!function(t,e){if("object"!=typeof t)return!1;if("string"!=typeof e&&(e=t.provider||""),X&&!e&&!t.prefix){let e=!1;return P(t)&&(t.prefix="",L(t,(t,r)=>{(function(t,e){const r=U(t,!0,X);if(!r)return!1;const n=D(r.provider,r.prefix);return e?function(t,e,r){try{if("string"==typeof r.body)return t.icons[e]={...r},!0}catch(o){}return!1}(n,r.name,e):(n.missing.add(r.name),!0)})(t,r)&&(e=!0)})),e}const r=t.prefix;return!!V({prefix:r,name:"a"})&&!!R(D(e,r),t)}(t))&&console.error(o)}catch(e){console.error(o)}})}if(void 0!==t.IconifyProviders){const e=t.IconifyProviders;if("object"==typeof e&&null!==e)for(let t in e){const o="IconifyProviders["+t+"] is invalid.";try{const r=e[t];if("object"!=typeof r||!r||void 0===r.resources)continue;st(t,r)||console.error(o)}catch(Ie){console.error(o)}}}}function Mt(e){const[o,r]=t(!!e.ssr),[i,s]=t({}),[c,l]=t(function(t){if(t){const t=e.icon;if("object"==typeof t)return{name:"",data:t};const o=H(t);if(o)return{name:t,data:o}}return{name:""}}(!!e.ssr));function f(){const t=i.callback;t&&(t(),s({}))}function d(t){if(JSON.stringify(c)!==JSON.stringify(t))return f(),l(t),!0}function u(){var t;const o=e.icon;if("object"==typeof o)return void d({name:"",data:o});const r=H(o);d({name:o,data:r})&&(void 0===r?s({callback:wt([o],u)}):r&&(null===(t=e.onLoad)||void 0===t||t.call(e,o)))}a(()=>(r(!0),f),[]),a(()=>{o&&u()},[e.icon,o]);const{name:p,data:m}=c;return m?((t,e,o)=>{const r=e.inline?At:Ot,a=function(t,e){const o={...t};for(const r in e){const t=e[r],n=typeof t;r in B?(null===t||t&&("string"===n||"number"===n))&&(o[r]=t):n===typeof o[r]&&(o[r]="rotate"===r?t%4:t)}return o}(r,e),i=e.mode||"svg",s={},c=e.style||{},l={..."svg"===i?jt:{}};if(o){const t=U(o,!1,!0);if(t){const e=["iconify"];for(const o of["provider","prefix"])t[o]&&e.push("iconify--"+t[o]);l.className=e.join(" ")}}for(let n in e){const t=e[n];if(void 0!==t)switch(n){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":case"fallback":break;case"_ref":l.ref=t;break;case"className":l[n]=(l[n]?l[n]+" ":"")+t;break;case"inline":case"hFlip":case"vFlip":a[n]=!0===t||"true"===t||1===t;break;case"flip":"string"==typeof t&&kt(a,t);break;case"color":s.color=t;break;case"rotate":"string"==typeof t?a[n]=It(t):"number"==typeof t&&(a[n]=t);break;case"ariaHidden":case"aria-hidden":!0!==t&&"true"!==t&&delete l["aria-hidden"];break;default:void 0===r[n]&&(l[n]=t)}}const f=function(t,e){const o={...z,...t},r={...W,...e},n={left:o.left,top:o.top,width:o.width,height:o.height};let a=o.body;[o,r].forEach(t=>{const e=[],o=t.hFlip,r=t.vFlip;let i,s=t.rotate;switch(o?r?s+=2:(e.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),e.push("scale(-1 1)"),n.top=n.left=0):r&&(e.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),e.push("scale(1 -1)"),n.top=n.left=0),s<0&&(s-=4*Math.floor(s/4)),s%=4,s){case 1:i=n.height/2+n.top,e.unshift("rotate(90 "+i.toString()+" "+i.toString()+")");break;case 2:e.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:i=n.width/2+n.left,e.unshift("rotate(-90 "+i.toString()+" "+i.toString()+")")}s%2==1&&(n.left!==n.top&&(i=n.left,n.left=n.top,n.top=i),n.width!==n.height&&(i=n.width,n.width=n.height,n.height=i)),e.length&&(a=function(t,e){const o=function(t,e="defs"){let o="";const r=t.indexOf("<"+e);for(;r>=0;){const n=t.indexOf(">",r),a=t.indexOf("</"+e);if(-1===n||-1===a)break;const i=t.indexOf(">",a);if(-1===i)break;o+=t.slice(n+1,a).trim(),t=t.slice(0,r).trim()+t.slice(i+1)}return{defs:o,content:t}}(t);return r=o.defs,n=e+o.content+"</g>",r?"<defs>"+r+"</defs>"+n:n;var r,n}(a,'<g transform="'+e.join(" ")+'">'))});const i=r.width,s=r.height,c=n.width,l=n.height;let f,d;null===i?(d=null===s?"1em":"auto"===s?l:s,f=Y(d,c/l)):(f="auto"===i?c:i,d=null===s?Y(f,l/c):"auto"===s?l:s);const u={},p=(t,e)=>{(t=>"unset"===t||"undefined"===t||"none"===t)(e)||(u[t]=e.toString())};p("width",f),p("height",d);const m=[n.left,n.top,c,l];return u.viewBox=m.join(" "),{attributes:u,viewBox:m,body:a}}(t,a),d=f.attributes;if(a.inline&&(s.verticalAlign="-0.125em"),"svg"===i){l.style={...s,...c},Object.assign(l,d);let t=0,o=e.id;return"string"==typeof o&&(o=o.replace(/-/g,"_")),l.dangerouslySetInnerHTML={__html:Et(tt(f.body,o?()=>o+"ID"+t++:"iconifyReact"))},n("svg",l)}const{body:u,width:p,height:m}=t,g="mask"===i||"bg"!==i&&-1!==u.indexOf("currentColor"),y=function(t,e){let o=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in e)o+=" "+r+'="'+e[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+t+"</svg>"}(u,{...d,width:p+"",height:m+""});var h;return l.style={...s,"--svg":(h=y,'url("'+function(t){return"data:image/svg+xml,"+function(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(t)}(h)+'")'),width:Ft(d.width),height:Ft(d.height),...zt,...g?St:Nt,...c},n("span",l)})({...z,...m},e,p):e.children?e.children:e.fallback?e.fallback:n("span",{})}var Dt=r((t,e)=>Mt({...t,_ref:e})),Rt=(r((t,e)=>Mt({inline:!0,...t,_ref:e})),t=>"boolean"==typeof t?`${t}`:0===t?"0":t),$t=g,Ut=(t,e)=>o=>{var r;if(null==(null==e?void 0:e.variants))return $t(t,null==o?void 0:o.class,null==o?void 0:o.className);const{variants:n,defaultVariants:a}=e,i=Object.keys(n).map(t=>{const e=null==o?void 0:o[t],r=null==a?void 0:a[t];if(null===e)return null;const i=Rt(e)||Rt(r);return n[t][i]}),s=o&&Object.entries(o).reduce((t,e)=>{let[o,r]=e;return void 0===r||(t[o]=r),t},{});return $t(t,i,null==e||null===(r=e.compoundVariants)||void 0===r?void 0:r.reduce((t,e)=>{let{class:o,className:r,...n}=e;return Object.entries(n).every(t=>{let[e,o]=t;return Array.isArray(o)?o.includes({...a,...s}[e]):{...a,...s}[e]===o})?[...t,o,r]:t},[]),null==o?void 0:o.class,null==o?void 0:o.className)},Vt=Ut("",{variants:{variant:{default:"border-none",outline:"rounded",solid:"bg-background"},size:{sm:"size-4",md:"size-5",lg:"size-6",xl:"size-7","2xl":"size-8","3xl":"size-9"},color:{foreground:"text-foreground",primary:"text-primary",secondary:"text-muted-foreground",info:"text-info",warning:"text-warning",success:"text-success",error:"text-destructive",a11y:"text-primary-foreground",inherit:""}},compoundVariants:[{variant:"outline",color:"primary",class:"border-primary"},{variant:"outline",color:"secondary",class:"border-border"},{variant:"outline",color:"info",class:"border-info"},{variant:"outline",color:"warning",class:"border-warning"},{variant:"outline",color:"success",class:"border-success"},{variant:"outline",color:"error",class:"border-destructive"},{variant:"solid",color:"primary",class:"bg-background text-foreground"},{variant:"solid",color:"secondary",class:"bg-background text-muted-foreground"},{variant:"solid",color:"info",class:"bg-info text-foreground text-text-primary-dark"},{variant:"solid",color:"warning",class:"bg-warning text-foreground text-text-primary-dark"},{variant:"solid",color:"success",class:"bg-success text-foreground text-text-primary-dark"},{variant:"solid",color:"error",class:"bg-destructive text-foreground text-text-primary-dark"}],defaultVariants:{variant:"default",size:"md",color:"foreground"}}),Xt=({className:t,color:e="foreground",size:o="md",variant:r="default",name:n="line-md:iconify1",...a})=>/* @__PURE__ */i(Dt,{icon:n,className:h(Vt({color:e,size:o,variant:r,className:t})),...a});function qt({children:t,asChild:e=!1,...o}){if(e){const e=Array.isArray(t)?t[0]:t;if(e&&e.type)return s(e,{...o,...e.props})}/* @__PURE__ */
|
|
2
2
|
return i("button",{...o,children:t})}var Ht=Ut("shadow-outer inline-flex size-fit cursor-pointer items-center justify-center rounded font-medium transition-all duration-200 active:scale-95 disabled:pointer-events-none disabled:opacity-50",{variants:{size:{sm:"gap-1 p-2 text-sm",md:"gap-2 px-4 py-2 text-sm sm:text-base",lg:"gap-2 px-4 py-3 text-lg",icon:"h-9 w-9 p-0"},color:{foreground:"bg-background text-foreground hover:bg-muted active:bg-muted/80",primary:"bg-primary text-primary-foreground hover:bg-primary/90 active:bg-primary/80",info:"bg-info hover:bg-info/90 active:bg-info/80 text-white",warning:"bg-warning hover:bg-warning/90 active:bg-warning/80 text-white",success:"bg-success hover:bg-success/90 active:bg-success/80 text-white",error:"bg-destructive hover:bg-destructive/90 active:bg-destructive/80 text-white"},variant:{default:"",outlined:"bg-transparent hover:bg-current/10 active:bg-current/15",ghost:"border-transparent bg-transparent shadow-none hover:bg-current/10 active:bg-current/15"}},compoundVariants:[{variant:"default",color:"primary",class:"border-primary border"},{variant:"default",color:"info",class:"border-info border"},{variant:"default",color:"warning",class:"border-warning border"},{variant:"default",color:"success",class:"border-success border"},{variant:"default",color:"error",class:"border-destructive border"},{variant:"outlined",color:"foreground",class:"text-foreground border-muted-foreground hover:bg-foreground/10 border bg-transparent"},{variant:"outlined",color:"primary",class:"border-primary text-primary hover:bg-primary/10 border bg-transparent"},{variant:"outlined",color:"info",class:"border-info text-info hover:bg-info/10 border bg-transparent"},{variant:"outlined",color:"warning",class:"border-warning text-warning hover:bg-warning/10 border bg-transparent"},{variant:"outlined",color:"success",class:"border-success text-success hover:bg-success/10 border bg-transparent"},{variant:"outlined",color:"error",class:"border-destructive text-destructive hover:bg-destructive/10 border bg-transparent"},{variant:"ghost",color:"primary",class:"text-primary hover:bg-primary/10"},{variant:"ghost",color:"info",class:"text-info hover:bg-info/10"},{variant:"ghost",color:"warning",class:"text-warning hover:bg-warning/10"},{variant:"ghost",color:"success",class:"text-success hover:bg-success/10"},{variant:"ghost",color:"error",class:"text-destructive hover:bg-destructive/10"}],defaultVariants:{variant:"default",size:"md",color:"primary"}}),Bt=({className:t,type:e="button",disabled:o,loading:r,fullWidth:n,color:a,size:s,variant:c,icon:l,iconName:f,iconSvg:d,asChild:u=!1,immutable:p,elementRef:m,children:g,...y})=>{const b=u?qt:"button",v=u?{asChild:!0}:{},x=d||l||(f?/* @__PURE__ */i(Xt,{name:f,className:"text-primary-foreground"}):null);/* @__PURE__ */
|
|
3
3
|
return i(b,{ref:m,type:e,disabled:o||r,className:h(Ht({color:a,size:s,variant:c}),t,n&&"w-full"),...v,...y,children:[/* @__PURE__ */i("div",{className:h(r?"collapse":"visible flex items-center gap-3"),children:[x&&!r&&x,g]}),r&&/* @__PURE__ */i("span",{className:"icon-[eos-icons--three-dots-loading] absolute size-6"})]})},Wt={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",blockquote:"blockquote",body1:"p",body2:"p",body3:"p",caption:"span",overline:"span",lead:"p"},Qt=Ut("antialiased",{variants:{variant:{h1:"scroll-m-20 text-4xl font-bold tracking-tight lg:text-5xl",h2:"scroll-m-20 text-3xl font-bold tracking-tight lg:text-4xl",h3:"scroll-m-20 text-2xl font-semibold tracking-tight",h4:"scroll-m-20 text-xl font-semibold",h5:"scroll-m-20 text-lg font-semibold",h6:"scroll-m-20 text-base font-semibold",body1:"text-base leading-relaxed font-medium",body2:"text-sm leading-relaxed",body3:"text-sm leading-relaxed sm:text-base",p:"text-base leading-7",lead:"text-muted-foreground text-xl leading-relaxed",blockquote:"border-primary/30 text-muted-foreground border-l-4 pl-4 text-base italic",caption:"text-muted-foreground text-xs",overline:"text-muted-foreground text-xs font-medium tracking-widest uppercase"},color:{foreground:"text-foreground",muted:"text-muted-foreground",primary:"text-primary",info:"text-info",warning:"text-warning",success:"text-success",error:"text-destructive",inherit:"text-inherit",secondary:"text-muted-foreground",white:"text-white",black:"text-black",a11y:"text-primary-foreground",light:"text-text-primary-light"},align:{left:"text-left",right:"text-right",center:"text-center",justify:"text-justify"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{variant:"body1",color:"foreground",align:"left"}}),Gt=({variant:t="body1",color:e,align:o,weight:r,transform:n,lines:a,shadow:s,noWrap:c,className:l,immutable:f,...d})=>/* @__PURE__ */i(Wt[t],{className:h(Qt({variant:t,color:e,align:o,weight:r}),n,a&&a>0?`line-clamp-${a}`:void 0,s&&"drop-shadow-[0_1px_2px_rgba(0,0,0,0.5)]",c&&"truncate",l),...d,children:d.children}),Yt=async()=>{const t=await _();return"string"==typeof t?t:t?.fingerprint},Jt=()=>{const t=b(null),{props:e,sessionId:o,user:r}=x(),n=e?.organizationId,a=b(null),i=b(null),s=async(e,o)=>{if(e&&o&&(t.current||(t.current=await Yt()),t.current))try{await v.post(u.UPDATE_AD_ANALYTICS,{json:{adId:e,type:o,browserFingerprint:t.current},headers:{"x-org-id":n}})}catch(Ie){console.error(Ie)}},c=async t=>{if(o)try{await v.post(u.UPDATE_SESSION,{headers:{"x-org-id":n},json:{sessionId:o,pageViews:t}})}catch(Ie){console.error(Ie)}};return{incrementEventView:async e=>{if(e&&(t.current||(t.current=await Yt()),t.current))try{await v.post(u.INCREMENT_EVENT_VIEW,{json:{eventSlug:e,browserFingerprint:t.current},headers:{"x-org-id":n,Authorization:r?`Bearer ${r.token}`:void 0}})}catch(Ie){console.error(Ie)}},captureAdImpression:async t=>s(t,m.AD_IMPRESSION),captureAdEngagement:async t=>s(t,m.AD_ENGAGEMENT),captureAdClick:(t,e,o)=>{if(s(t,m.AD_CLICK),o)switch(e){case y.LINK:window.open(String(o),"_blank");break;case y.EMAIL:window.location.href=`mailto:${String(o)}`;break;case y.PHONE:window.location.href=`tel:${String(o)}`;break;case y.SMS:window.location.href=`sms:${String(o)}`;break;case y.WHATSAPP:window.location.href=`https://wa.me/${String(o)}`;break;case y.MESSENGER:window.location.href=`https://m.me/${String(o)}`;break;default:window.open(String(o),"_blank")}},trackPageView:t=>{a.current&&i.current&&c([{page:a.current,entryTime:i.current,exitTime:Date.now()}]),a.current=t??null,i.current=Date.now()},exportPageViewsData:c}},Kt=o(null),Zt=({open:e,onOpenChange:o,children:r})=>{const[n,s]=t(!!e);return a(()=>{"boolean"==typeof e&&s(e)},[e]),/* @__PURE__ */i(Kt.Provider,{value:{open:n,setOpen:t=>{s(t),o?.(t)}},children:r})},te=({children:t})=>/* @__PURE__ */i(c,{children:t}),ee=({className:t,...e})=>{const o=d(Kt);/* @__PURE__ */
|
|
4
4
|
return i("div",{"data-state":o?.open?"open":"closed",className:h("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-2001 bg-black/15 backdrop-blur-md",t),...e})},oe=({className:t,children:e,...o})=>{const{organization:r}=x(),n=d(Kt);return a(()=>{if(!n?.open)return;const t=t=>{"Escape"===t.key&&n.setOpen(!1)};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[n?.open]),n?.open?/* @__PURE__ */i(te,{children:[/* @__PURE__ */i(ee,{onClick:()=>n.setOpen(!1)}),/* @__PURE__ */i("div",{role:"dialog","aria-modal":"true","data-state":n?.open?"open":"closed",className:h("shadow-outer border-border bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed bottom-0 left-0 z-2002 w-full max-w-5xl rounded-3xl border border-x-0 border-b-0 duration-300 sm:top-[50%] sm:left-[50%] sm:h-fit sm:w-auto sm:translate-x-[-50%] sm:translate-y-[-50%] sm:rounded sm:border",t),style:p(r),...o,children:e})]}):null},re=({className:t,...e})=>/* @__PURE__ */i("div",{className:h("flex flex-col space-y-1 p-3 text-center sm:text-left",t),...e}),ne=({className:t,...e})=>/* @__PURE__ */i("div",{className:h("flex flex-col-reverse p-4 sm:flex-row sm:justify-end sm:space-x-4",t),...e}),ae=({className:t,...e})=>/* @__PURE__ */i("h2",{className:h("text-center text-lg font-semibold",t),...e}),ie=({className:t,...e})=>/* @__PURE__ */i("p",{className:h("text-muted-foreground text-center text-sm",t),...e});!function(t){if("undefined"==typeof document)return;let e=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",e.firstChild?e.insertBefore(o,e.firstChild):e.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}(':root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n');var se=t=>"number"==typeof t&&!isNaN(t),ce=t=>"string"==typeof t,le=t=>"function"==typeof t;function fe({enter:t,exit:o,appendPosition:r=!1,collapse:n=!0,collapseDuration:i=300}){return function({children:s,position:c,preventExitTransition:f,done:d,nodeRef:u,isIn:p,playToast:m}){let g=r?`${t}--${c}`:t,y=r?`${o}--${c}`:o,h=b(0);return e(()=>{let t=u.current,e=g.split(" "),o=r=>{r.target===u.current&&(m(),t.removeEventListener("animationend",o),t.removeEventListener("animationcancel",o),0===h.current&&"animationcancel"!==r.type&&t.classList.remove(...e))};t.classList.add(...e),t.addEventListener("animationend",o),t.addEventListener("animationcancel",o)},[]),a(()=>{let t=u.current,e=()=>{t.removeEventListener("animationend",e),n?function(t,e,o=300){let{scrollHeight:r,style:n}=t;requestAnimationFrame(()=>{n.minHeight="initial",n.height=r+"px",n.transition=`all ${o}ms`,requestAnimationFrame(()=>{n.height="0",n.padding="0",n.margin="0",setTimeout(e,o)})})}(t,d,i):d()};p||(f?e():(h.current=1,t.className+=` ${y}`,t.addEventListener("animationend",e)))},[p]),l.createElement(l.Fragment,null,s)}}var de=1,ue=()=>""+de++,pe=/* @__PURE__ */new Map,me=[],ge=/* @__PURE__ */new Set,ye=()=>pe.size>0;function he(t,e){pe.forEach(o=>{(null==e||null==e||!e.containerId||(null==e?void 0:e.containerId)===o.id)&&o.toggle(t,null==e?void 0:e.id)})}function be(t){return t&&(ce(t.toastId)||se(t.toastId))?t.toastId:ue()}function ve(t,e){return function(t,e){(t=>f(t)||ce(t)||le(t)||se(t))(t)&&(ye()||me.push({content:t,options:e}),pe.forEach(o=>{o.buildToast(t,e)}))}(t,e),e.toastId}function xe(t,e){return{...e,type:e&&e.type||t,toastId:be(e)}}function _e(t){return(e,o)=>ve(e,xe(t,o))}function we(t,e){return ve(t,xe("default",e))}we.loading=(t,e)=>ve(t,xe("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),we.promise=function(t,{pending:e,error:o,success:r},n){let a;e&&(a=ce(e)?we.loading(e,n):we.loading(e.render,{...n,...e}));let i={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},s=(t,e,o)=>{if(null==e)return void we.dismiss(a);let r={type:t,...i,...n,data:o},s=ce(e)?{render:e}:e;return a?we.update(a,{...r,...s}):we(s.render,{...r,...s}),o},c=le(t)?t():t;return c.then(t=>s("success",r,t)).catch(t=>s("error",o,t)),c},we.success=_e("success"),we.info=_e("info"),we.error=_e("error"),we.warning=_e("warning"),we.warn=we.warning,we.dark=(t,e)=>ve(t,xe("default",{theme:"dark",...e})),we.dismiss=function(t){!function(t){if(ye()){if(null==t||(t=>ce(t)||se(t))(t))pe.forEach(e=>{e.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){let e=pe.get(t.containerId);e?e.removeToast(t.id):pe.forEach(e=>{e.removeToast(t.id)})}}else me=me.filter(e=>null!=t&&e.options.toastId!==t)}(t)},we.clearWaitingQueue=(t={})=>{pe.forEach(e=>{e.props.limit&&(!t.containerId||e.id===t.containerId)&&e.clearQueue()})},we.isActive=function(t,e){var o;if(e)return!(null==(o=pe.get(e))||!o.isToastActive(t));let r=!1;return pe.forEach(e=>{e.isToastActive(t)&&(r=!0)}),r},we.update=(t,e={})=>{let o=((t,{containerId:e})=>{var o;return null==(o=pe.get(e||1))?void 0:o.toasts.get(t)})(t,e);if(o){let{props:r,content:n}=o,a={delay:100,...r,...e,toastId:e.toastId||t,updateId:ue()};a.toastId!==t&&(a.staleId=t);let i=a.render||n;delete a.render,ve(i,a)}},we.done=t=>{we.update(t,{progress:1})},we.onChange=function(t){return ge.add(t),()=>{ge.delete(t)}},we.play=t=>he(!0,t),we.pause=t=>he(!1,t);var Te=(t,e=!1)=>({enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}),ke=(fe(Te("bounce",!0)),fe(Te("slide",!0)),fe(Te("zoom")),fe(Te("flip")),class extends E{constructor(t){super(),this.options=t||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){k(this.options.gallery,this.options.gallerySelector).forEach(t=>{t.addEventListener("click",this.onThumbnailsClick,!1)})}onThumbnailsClick(t){if(w(t)||window.pswp)return;let e={x:t.clientX,y:t.clientY};e.x||e.y||(e=null);let o=this.getClickedIndex(t);o=this.applyFilters("clickedIndex",o,t,this);const r={gallery:t.currentTarget};o>=0&&(t.preventDefault(),this.loadAndOpen(o,r,e))}getClickedIndex(t){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,t);const e=t.target,o=k(this.options.children,this.options.childSelector,t.currentTarget).findIndex(t=>t===e||t.contains(e));return-1!==o?o:this.options.children||this.options.childSelector?-1:0}loadAndOpen(t,e,o){if(window.pswp||!this.options)return!1;if(!e&&this.options.gallery&&this.options.children){const t=k(this.options.gallery);t[0]&&(e={gallery:t[0]})}return this.options.index=t,this.options.initialPointerPos=o,this.shouldOpen=!0,this.preload(t,e),!0}preload(t,e){const{options:o}=this;e&&(o.dataSource=e);const r=[],n=typeof o.pswpModule;if(T(o.pswpModule))r.push(Promise.resolve(o.pswpModule));else{if("string"===n)throw new Error("pswpModule as string is no longer supported");if("function"!==n)throw new Error("pswpModule is not valid");r.push(o.pswpModule())}"function"==typeof o.openPromise&&r.push(o.openPromise()),!1!==o.preloadFirstSlide&&t>=0&&(this._preloadedContent=I(t,this));const a=++this._uid;Promise.all(r).then(t=>{if(this.shouldOpen){const e=t[0];this._openPhotoswipe(e,a)}})}_openPhotoswipe(t,e){if(e!==this._uid&&this.shouldOpen)return;if(this.shouldOpen=!1,window.pswp)return;const o="object"==typeof t?new t.default(this.options):new t(this.options);this.pswp=o,window.pswp=o,Object.keys(this._listeners).forEach(t=>{this._listeners[t]?.forEach(e=>{o.on(t,e)})}),Object.keys(this._filters).forEach(t=>{this._filters[t]?.forEach(e=>{o.addFilter(t,e.fn,e.priority)})}),this._preloadedContent&&(o.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),o.on("destroy",()=>{this.pswp=void 0,delete window.pswp}),o.init()}destroy(){this.pswp?.destroy(),this.shouldOpen=!1,this._listeners={},k(this.options.gallery,this.options.gallerySelector).forEach(t=>{t.removeEventListener("click",this.onThumbnailsClick,!1)})}});export{ie as a,ae as c,Qt as d,Bt as f,oe as i,Jt as l,Ut as m,we as n,ne as o,Xt as p,Zt as r,re as s,ke as t,Gt as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Mt as e,N as n,Nt as t,j as r,wt as o}from"./
|
|
1
|
+
import{Mt as e,N as n,Nt as t,j as r,wt as o}from"./wHbQZdly.js";import{t as a}from"./CUOOhGTj.js";import{o as s}from"./DPOkh0eJ.js";import{t as i}from"./B28y50Bi.js";var l=new a,c=(e,o)=>{t(/* @__PURE__ */n(r,{client:l,children:/* @__PURE__ */n(s,{children:/* @__PURE__ */n(i,{event:e})})}),o)},d=({events:t,apiKey:r})=>{const a=o(null),s=o(null);return e(()=>{if(a.current&&!s.current)return(async()=>{const{setOptions:e,importLibrary:n}=await import("./DSjmSa7l.js");e({key:r,v:"weekly"}),await Promise.all([n("maps"),n("marker")]);const o=window.google.maps;if(!a.current)return;const i=new o.Map(a.current,{mapId:"DEMO_MAP_ID",renderingType:"VECTOR",mapTypeId:"roadmap",center:{lat:20,lng:0},zoom:2,mapTypeControl:!1,streetViewControl:!1});o.event.addListenerOnce(i,"idle",()=>{i.getRenderingType?.()!==o.RenderingType?.VECTOR&&console.warn("Google Maps fell back to raster rendering; globe view is unavailable in raster mode.")}),s.current=i;const l=t.filter(e=>"number"==typeof e.location?.x&&"number"==typeof e.location?.y);if(0===l.length)return;const d=new o.LatLngBounds,p=new o.InfoWindow({maxWidth:200});for(const t of l){const e=t.location.x,n={lat:t.location.y,lng:e};d.extend(n);const r=document.createElement("div");r.style.cssText="\n width: 28px; height: 28px; cursor: pointer;\n background: var(--color-primary, #6366f1);\n border-radius: 50% 50% 50% 0;\n transform: rotate(-45deg);\n border: 2px solid white;\n box-shadow: 0 2px 8px rgba(0,0,0,0.3);\n ";const a=new o.marker.AdvancedMarkerElement({map:i,position:n,content:r});a.addEventListener("gmp-click",()=>{const e=document.createElement("div");c(t,e),p.setContent(e),p.open({anchor:a,map:i})})}i.fitBounds(d)})(),()=>{s.current=null}},[r]),/* @__PURE__ */n("div",{ref:a,class:"size-full"})};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as t,Ct as e,J as s,Q as i,St as a,X as r,Z as n,at as o,ct as u,dt as h,ft as c,gt as l,it as d,nt as f,ot as y,pt as p,rt as m,st as g,ut as v,yt as b}from"./BrMlCiWh.js";function q(t){return{onFetch:(e,s)=>{const i=e.options,a=e.fetchOptions?.meta?.fetchMore?.direction,r=e.state.data?.pages||[],n=e.state.data?.pageParams||[];let u={pages:[],pageParams:[]},h=0;const c=async()=>{let s=!1;const c=o(e.options,e.fetchOptions),l=async(t,i,a)=>{if(s)return Promise.reject();if(null==i&&t.pages.length)return Promise.resolve(t);const r=await c((()=>{const t={client:e.client,queryKey:e.queryKey,pageParam:i,direction:a?"backward":"forward",meta:e.options.meta};return f(t,()=>e.signal,()=>s=!0),t})()),{maxPages:n}=e.options,o=a?d:m;return{pages:o(t.pages,r,n),pageParams:o(t.pageParams,i,n)}};if(a&&r.length){const t="backward"===a,e=t?P:C,s={pages:r,pageParams:n};u=await l(s,e(i,s),t)}else{const e=t??r.length;do{const t=0===h?n[0]??i.initialPageParam:C(i,u);if(h>0&&null==t)break;u=await l(u,t),h++}while(h<e)}return u};e.options.persister?e.fetchFn=()=>e.options.persister?.(c,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},s):e.fetchFn=c}}}function C(t,{pages:e,pageParams:s}){const i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,s[i],s):void 0}function P(t,{pages:e,pageParams:s}){return e.length>0?t.getPreviousPageParam?.(e[0],e,s[0],s):void 0}function O(t,e){return!!e&&null!=C(t,e)}function w(t,e){return!(!e||!t.getPreviousPageParam)&&null!=P(t,e)}var Q=class extends r{#t;#e;#s;#i;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#s=t.mutationCache,this.#e=[],this.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#s.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>{this.#a({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=n({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(/* @__PURE__ */new Error("No mutationFn found")),onFail:(t,e)=>{this.#a({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#a({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#s.canRun(this)});const i="pending"===this.state.status,a=!this.#i.canStart();try{if(i)e();else{this.#a({type:"pending",variables:t,isPaused:a}),this.#s.config.onMutate&&await this.#s.config.onMutate(t,this,s);const e=await(this.options.onMutate?.(t,s));e!==this.state.context&&this.#a({type:"pending",context:e,variables:t,isPaused:a})}const r=await this.#i.start();return await(this.#s.config.onSuccess?.(r,t,this.state.context,this,s)),await(this.options.onSuccess?.(r,t,this.state.context,s)),await(this.#s.config.onSettled?.(r,null,this.state.variables,this.state.context,this,s)),await(this.options.onSettled?.(r,null,t,this.state.context,s)),this.#a({type:"success",data:r}),r}catch(r){try{await(this.#s.config.onError?.(r,t,this.state.context,this,s))}catch(o){Promise.reject(o)}try{await(this.options.onError?.(r,t,this.state.context,s))}catch(o){Promise.reject(o)}try{await(this.#s.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this,s))}catch(o){Promise.reject(o)}try{await(this.options.onSettled?.(void 0,r,t,this.state.context,s))}catch(o){Promise.reject(o)}throw this.#a({type:"error",error:r}),r}finally{this.#s.runNext(this)}}#a(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,isPaused:!1,status:"error"}}})(this.state),t.batch(()=>{this.#e.forEach(t=>{t.onMutationUpdate(e)}),this.#s.notify({mutation:this,type:"updated",action:e})})}},D=class extends e{constructor(t={}){super(),this.config=t,this.#r=/* @__PURE__ */new Set,this.#n=/* @__PURE__ */new Map,this.#o=0}#r;#n;#o;build(t,e,s){const i=new Q({client:t,mutationCache:this,mutationId:++this.#o,options:t.defaultMutationOptions(e),state:s});return this.add(i),i}add(t){this.#r.add(t);const e=x(t);if("string"==typeof e){const s=this.#n.get(e);s?s.push(t):this.#n.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#r.delete(t)){const e=x(t);if("string"==typeof e){const s=this.#n.get(e);if(s)if(s.length>1){const e=s.indexOf(t);-1!==e&&s.splice(e,1)}else s[0]===t&&this.#n.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=x(t);if("string"==typeof e){const s=this.#n.get(e)?.find(t=>"pending"===t.state.status);return!s||s===t}return!0}runNext(t){const e=x(t);return"string"==typeof e?(this.#n.get(e)?.find(e=>e!==t&&e.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){t.batch(()=>{this.#r.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#r.clear(),this.#n.clear()})}getAll(){return Array.from(this.#r)}find(t){const e={exact:!0,...t};return this.getAll().find(t=>v(e,t))}findAll(t={}){return this.getAll().filter(e=>v(t,e))}notify(e){t.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return t.batch(()=>Promise.all(e.map(t=>t.continue().catch(c))))}};function x(t){return t.options.scope?.id}var M=class extends e{constructor(t={}){super(),this.config=t,this.#u=/* @__PURE__ */new Map}#u;build(t,e,i){const a=e.queryKey,r=e.queryHash??u(a,e);let n=this.get(r);return n||(n=new s({client:t,queryKey:a,queryHash:r,options:t.defaultQueryOptions(e),state:i,defaultOptions:t.getQueryDefaults(a)}),this.add(n)),n}add(t){this.#u.has(t.queryHash)||(this.#u.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#u.get(t.queryHash);e&&(t.destroy(),e===t&&this.#u.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){t.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#u.get(t)}getAll(){return[...this.#u.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(t=>h(e,t))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(e=>h(t,e)):e}notify(e){t.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){t.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){t.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},A=class{#h;#s;#c;#l;#d;#f;#y;#p;constructor(t={}){this.#h=t.queryCache||new M,this.#s=t.mutationCache||new D,this.#c=t.defaultOptions||{},this.#l=/* @__PURE__ */new Map,this.#d=/* @__PURE__ */new Map,this.#f=0}mount(){this.#f++,1===this.#f&&(this.#y=a.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#h.onFocus())}),this.#p=i.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#h.onOnline())}))}unmount(){this.#f--,0===this.#f&&(this.#y?.(),this.#y=void 0,this.#p?.(),this.#p=void 0)}isFetching(t){return this.#h.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#s.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#h.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),s=this.#h.build(this,e),i=s.state.data;return void 0===i?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(l(e.staleTime,s))&&this.prefetchQuery(e),Promise.resolve(i))}getQueriesData(t){return this.#h.findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,s){const i=this.defaultQueryOptions({queryKey:t}),a=this.#h.get(i.queryHash)?.state.data,r=y(e,a);if(void 0!==r)return this.#h.build(this,i).setData(r,{...s,manual:!0})}setQueriesData(e,s,i){return t.batch(()=>this.#h.findAll(e).map(({queryKey:t})=>[t,this.setQueryData(t,s,i)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#h.get(e.queryHash)?.state}removeQueries(e){const s=this.#h;t.batch(()=>{s.findAll(e).forEach(t=>{s.remove(t)})})}resetQueries(e,s){const i=this.#h;return t.batch(()=>(i.findAll(e).forEach(t=>{t.reset()}),this.refetchQueries({type:"active",...e},s)))}cancelQueries(e,s={}){const i={revert:!0,...s},a=t.batch(()=>this.#h.findAll(e).map(t=>t.cancel(i)));return Promise.all(a).then(c).catch(c)}invalidateQueries(e,s={}){return t.batch(()=>(this.#h.findAll(e).forEach(t=>{t.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},s)))}refetchQueries(e,s={}){const i={...s,cancelRefetch:s.cancelRefetch??!0},a=t.batch(()=>this.#h.findAll(e).filter(t=>!t.isDisabled()&&!t.isStatic()).map(t=>{let e=t.fetch(void 0,i);return i.throwOnError||(e=e.catch(c)),"paused"===t.state.fetchStatus?Promise.resolve():e}));return Promise.all(a).then(c)}fetchQuery(t){const e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);const s=this.#h.build(this,e);return s.isStaleByTime(l(e.staleTime,s))?s.fetch(e):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(c).catch(c)}fetchInfiniteQuery(t){return t.behavior=q(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(c).catch(c)}ensureInfiniteQueryData(t){return t.behavior=q(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return i.isOnline()?this.#s.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#h}getMutationCache(){return this.#s}getDefaultOptions(){return this.#c}setDefaultOptions(t){this.#c=t}setQueryDefaults(t,e){this.#l.set(g(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#l.values()],s={};return e.forEach(e=>{p(t,e.queryKey)&&Object.assign(s,e.defaultOptions)}),s}setMutationDefaults(t,e){this.#d.set(g(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#d.values()],s={};return e.forEach(e=>{p(t,e.mutationKey)&&Object.assign(s,e.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#c.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=u(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===b&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#c.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#h.clear(),this.#s.clear()}};export{q as i,O as n,w as r,A as t};
|
|
1
|
+
import{$ as t,Ct as e,J as s,Q as i,St as a,X as r,Z as n,at as o,ct as u,dt as h,ft as c,gt as l,it as d,nt as f,ot as y,pt as p,rt as m,st as g,ut as v,yt as b}from"./wHbQZdly.js";function q(t){return{onFetch:(e,s)=>{const i=e.options,a=e.fetchOptions?.meta?.fetchMore?.direction,r=e.state.data?.pages||[],n=e.state.data?.pageParams||[];let u={pages:[],pageParams:[]},h=0;const c=async()=>{let s=!1;const c=o(e.options,e.fetchOptions),l=async(t,i,a)=>{if(s)return Promise.reject();if(null==i&&t.pages.length)return Promise.resolve(t);const r=await c((()=>{const t={client:e.client,queryKey:e.queryKey,pageParam:i,direction:a?"backward":"forward",meta:e.options.meta};return f(t,()=>e.signal,()=>s=!0),t})()),{maxPages:n}=e.options,o=a?d:m;return{pages:o(t.pages,r,n),pageParams:o(t.pageParams,i,n)}};if(a&&r.length){const t="backward"===a,e=t?P:C,s={pages:r,pageParams:n};u=await l(s,e(i,s),t)}else{const e=t??r.length;do{const t=0===h?n[0]??i.initialPageParam:C(i,u);if(h>0&&null==t)break;u=await l(u,t),h++}while(h<e)}return u};e.options.persister?e.fetchFn=()=>e.options.persister?.(c,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},s):e.fetchFn=c}}}function C(t,{pages:e,pageParams:s}){const i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,s[i],s):void 0}function P(t,{pages:e,pageParams:s}){return e.length>0?t.getPreviousPageParam?.(e[0],e,s[0],s):void 0}function O(t,e){return!!e&&null!=C(t,e)}function w(t,e){return!(!e||!t.getPreviousPageParam)&&null!=P(t,e)}var Q=class extends r{#t;#e;#s;#i;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#s=t.mutationCache,this.#e=[],this.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#s.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>{this.#a({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=n({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(/* @__PURE__ */new Error("No mutationFn found")),onFail:(t,e)=>{this.#a({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#a({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#s.canRun(this)});const i="pending"===this.state.status,a=!this.#i.canStart();try{if(i)e();else{this.#a({type:"pending",variables:t,isPaused:a}),this.#s.config.onMutate&&await this.#s.config.onMutate(t,this,s);const e=await(this.options.onMutate?.(t,s));e!==this.state.context&&this.#a({type:"pending",context:e,variables:t,isPaused:a})}const r=await this.#i.start();return await(this.#s.config.onSuccess?.(r,t,this.state.context,this,s)),await(this.options.onSuccess?.(r,t,this.state.context,s)),await(this.#s.config.onSettled?.(r,null,this.state.variables,this.state.context,this,s)),await(this.options.onSettled?.(r,null,t,this.state.context,s)),this.#a({type:"success",data:r}),r}catch(r){try{await(this.#s.config.onError?.(r,t,this.state.context,this,s))}catch(o){Promise.reject(o)}try{await(this.options.onError?.(r,t,this.state.context,s))}catch(o){Promise.reject(o)}try{await(this.#s.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this,s))}catch(o){Promise.reject(o)}try{await(this.options.onSettled?.(void 0,r,t,this.state.context,s))}catch(o){Promise.reject(o)}throw this.#a({type:"error",error:r}),r}finally{this.#s.runNext(this)}}#a(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,isPaused:!1,status:"error"}}})(this.state),t.batch(()=>{this.#e.forEach(t=>{t.onMutationUpdate(e)}),this.#s.notify({mutation:this,type:"updated",action:e})})}},D=class extends e{constructor(t={}){super(),this.config=t,this.#r=/* @__PURE__ */new Set,this.#n=/* @__PURE__ */new Map,this.#o=0}#r;#n;#o;build(t,e,s){const i=new Q({client:t,mutationCache:this,mutationId:++this.#o,options:t.defaultMutationOptions(e),state:s});return this.add(i),i}add(t){this.#r.add(t);const e=x(t);if("string"==typeof e){const s=this.#n.get(e);s?s.push(t):this.#n.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#r.delete(t)){const e=x(t);if("string"==typeof e){const s=this.#n.get(e);if(s)if(s.length>1){const e=s.indexOf(t);-1!==e&&s.splice(e,1)}else s[0]===t&&this.#n.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=x(t);if("string"==typeof e){const s=this.#n.get(e)?.find(t=>"pending"===t.state.status);return!s||s===t}return!0}runNext(t){const e=x(t);return"string"==typeof e?(this.#n.get(e)?.find(e=>e!==t&&e.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){t.batch(()=>{this.#r.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#r.clear(),this.#n.clear()})}getAll(){return Array.from(this.#r)}find(t){const e={exact:!0,...t};return this.getAll().find(t=>v(e,t))}findAll(t={}){return this.getAll().filter(e=>v(t,e))}notify(e){t.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return t.batch(()=>Promise.all(e.map(t=>t.continue().catch(c))))}};function x(t){return t.options.scope?.id}var M=class extends e{constructor(t={}){super(),this.config=t,this.#u=/* @__PURE__ */new Map}#u;build(t,e,i){const a=e.queryKey,r=e.queryHash??u(a,e);let n=this.get(r);return n||(n=new s({client:t,queryKey:a,queryHash:r,options:t.defaultQueryOptions(e),state:i,defaultOptions:t.getQueryDefaults(a)}),this.add(n)),n}add(t){this.#u.has(t.queryHash)||(this.#u.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#u.get(t.queryHash);e&&(t.destroy(),e===t&&this.#u.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){t.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#u.get(t)}getAll(){return[...this.#u.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(t=>h(e,t))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(e=>h(t,e)):e}notify(e){t.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){t.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){t.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},A=class{#h;#s;#c;#l;#d;#f;#y;#p;constructor(t={}){this.#h=t.queryCache||new M,this.#s=t.mutationCache||new D,this.#c=t.defaultOptions||{},this.#l=/* @__PURE__ */new Map,this.#d=/* @__PURE__ */new Map,this.#f=0}mount(){this.#f++,1===this.#f&&(this.#y=a.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#h.onFocus())}),this.#p=i.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#h.onOnline())}))}unmount(){this.#f--,0===this.#f&&(this.#y?.(),this.#y=void 0,this.#p?.(),this.#p=void 0)}isFetching(t){return this.#h.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#s.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#h.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),s=this.#h.build(this,e),i=s.state.data;return void 0===i?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(l(e.staleTime,s))&&this.prefetchQuery(e),Promise.resolve(i))}getQueriesData(t){return this.#h.findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,s){const i=this.defaultQueryOptions({queryKey:t}),a=this.#h.get(i.queryHash)?.state.data,r=y(e,a);if(void 0!==r)return this.#h.build(this,i).setData(r,{...s,manual:!0})}setQueriesData(e,s,i){return t.batch(()=>this.#h.findAll(e).map(({queryKey:t})=>[t,this.setQueryData(t,s,i)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#h.get(e.queryHash)?.state}removeQueries(e){const s=this.#h;t.batch(()=>{s.findAll(e).forEach(t=>{s.remove(t)})})}resetQueries(e,s){const i=this.#h;return t.batch(()=>(i.findAll(e).forEach(t=>{t.reset()}),this.refetchQueries({type:"active",...e},s)))}cancelQueries(e,s={}){const i={revert:!0,...s},a=t.batch(()=>this.#h.findAll(e).map(t=>t.cancel(i)));return Promise.all(a).then(c).catch(c)}invalidateQueries(e,s={}){return t.batch(()=>(this.#h.findAll(e).forEach(t=>{t.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},s)))}refetchQueries(e,s={}){const i={...s,cancelRefetch:s.cancelRefetch??!0},a=t.batch(()=>this.#h.findAll(e).filter(t=>!t.isDisabled()&&!t.isStatic()).map(t=>{let e=t.fetch(void 0,i);return i.throwOnError||(e=e.catch(c)),"paused"===t.state.fetchStatus?Promise.resolve():e}));return Promise.all(a).then(c)}fetchQuery(t){const e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);const s=this.#h.build(this,e);return s.isStaleByTime(l(e.staleTime,s))?s.fetch(e):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(c).catch(c)}fetchInfiniteQuery(t){return t.behavior=q(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(c).catch(c)}ensureInfiniteQueryData(t){return t.behavior=q(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return i.isOnline()?this.#s.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#h}getMutationCache(){return this.#s}getDefaultOptions(){return this.#c}setDefaultOptions(t){this.#c=t}setQueryDefaults(t,e){this.#l.set(g(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#l.values()],s={};return e.forEach(e=>{p(t,e.queryKey)&&Object.assign(s,e.defaultOptions)}),s}setMutationDefaults(t,e){this.#d.set(g(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#d.values()],s={};return e.forEach(e=>{p(t,e.mutationKey)&&Object.assign(s,e.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#c.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=u(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===b&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#c.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#h.clear(),this.#s.clear()}};export{q as i,O as n,w as r,A as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./2R3GoXB1.js";import{Mt as t,N as r,Nt as n,j as o,wt as i}from"./
|
|
1
|
+
import{r as e}from"./2R3GoXB1.js";import{Mt as t,N as r,Nt as n,j as o,wt as i}from"./wHbQZdly.js";import{t as a}from"./CUOOhGTj.js";import{o as s}from"./DPOkh0eJ.js";import{t as l}from"./B28y50Bi.js";var c=new a,u=(e,t)=>{n(/* @__PURE__ */r(o,{client:c,children:/* @__PURE__ */r(s,{children:/* @__PURE__ */r(l,{event:e})})}),t)},d=({events:n,apiKey:o,is3D:a})=>{const s=i(null),l=i(null),c=i(a);return t(()=>{if(!s.current||l.current)return;let t;return(async()=>{const r=(await import("./DMDEuqn7.js").then(t=>/* @__PURE__ */e(t.default,1))).default;if(await Promise.resolve({ }),!s.current)return;const i=new r.Map({container:s.current,style:`https://api.maptiler.com/maps/streets-v2/style.json?key=${o}`,center:[0,20],zoom:2,pitch:0,bearing:0,projection:c.current?{type:"globe"}:{type:"mercator"},canvasContextAttributes:{antialias:!0}});l.current=i,i.on("load",()=>{const e=i.getStyle()?.layers??[];let t,o;for(const r of e){const e=r;"symbol"===e.type&&e.layout?.["text-field"]&&!t&&(t=r.id),"building"!==e["source-layer"]||o||(o=e.source)}o&&!i.getLayer("3d-buildings")&&i.addLayer({id:"3d-buildings",source:o,"source-layer":"building",filter:["has","render_height"],type:"fill-extrusion",minzoom:14,paint:{"fill-extrusion-color":["interpolate",["linear"],["get","render_height"],0,"lightgray",200,"royalblue",400,"lightblue"],"fill-extrusion-height":["interpolate",["linear"],["zoom"],14,0,15,["get","render_height"]],"fill-extrusion-base":["case",["has","render_min_height"],["get","render_min_height"],0],"fill-extrusion-opacity":.6}},t);const a=n.filter(e=>"number"==typeof e.location?.x&&"number"==typeof e.location?.y);if(0===a.length)return;const s=new r.LngLatBounds;for(const n of a){const e=n.location.x,t=n.location.y;s.extend([e,t]);const o=document.createElement("div");o.className="qrati-map-marker",o.style.cssText="\n width: 32px; height: 32px; cursor: pointer;\n background: var(--color-primary, #6366f1);\n border-radius: 50% 50% 50% 0;\n transform: rotate(-45deg);\n border: 2px solid white;\n box-shadow: 0 2px 8px rgba(0,0,0,0.3);\n ";const a=document.createElement("div");u(n,a);const l=new r.Popup({closeButton:!0,closeOnClick:!1,maxWidth:"none",offset:[0,-34]}).setDOMContent(a);new r.Marker({element:o}).setLngLat([e,t]).setPopup(l).addTo(i)}s.isEmpty()||i.fitBounds(s,{padding:{top:60,bottom:60,left:60,right:60},maxZoom:14,animate:!0,duration:1200})}),t=()=>{i.remove(),l.current=null}})(),()=>{t?.()}},[o]),t(()=>{l.current&&(c.current=a,l.current.setProjection(a?{type:"globe"}:{type:"mercator"}),l.current.easeTo({pitch:0,bearing:0,duration:600}))},[a]),/* @__PURE__ */r("div",{ref:s,class:"size-full"})};export{d as default};
|