PageSourceSearch

https://www.fjordnorway.com/_next/static/chunks/pages/_app-dc3edee18eaf0803.js

js fjordnorway.com collected 2026-10-02 04:27:25 UTC 488,622 bytes, 41 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{75919:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.withPageAuthRequired=t.useUser=t.RequestError=t.UserContext=t.UserProvider=t.useConfig=t.ConfigProvider=void 0;var i=n(21719);Object.defineProperty(t,"ConfigProvider",{enumerable:!0,get:function(){return r(i).default}}),Object.defineProperty(t,"useConfig",{enumerable:!0,get:function(){return i.useConfig}});var o=n(71418);Object.defineProperty(t,"UserProvider",{enumerable:!0,get:function(){return r(o).default}}),Object.defineProperty(t,"UserContext",{enumerable:!0,get:function(){return o.UserContext}}),Object.defineProperty(t,"RequestError",{enumerable:!0,get:function(){return o.RequestError}}),Object.defineProperty(t,"useUser",{enumerable:!0,get:function(){return o.useUser}});var s=n(84246);Object.defineProperty(t,"withPageAuthRequired",{enumerable:!0,get:function(){return r(s).default}})},21719:(e,t,n)=>{"use strict";var r=n(65606);Object.defineProperty(t,"__esModule",{value:!0}),t.useConfig=void 0;var i=n(31635).__importStar(n(96540)),o=i.createContext({});t.useConfig=function(){return i.useContext(o)},t.default=function(e){var t=e.children,n=e.loginUrl,s=void 0===n?r.env.NEXT_PUBLIC_AUTH0_LOGIN||"/api/auth/login":n;return i.default.createElement(o.Provider,{value:{loginUrl:s}},t)}},71418:(e,t,n)=>{"use strict";var r=n(65606);Object.defineProperty(t,"__esModule",{value:!0}),t.useUser=t.UserContext=t.RequestError=void 0;var i=n(31635),o=i.__importStar(n(96540)),s=i.__importDefault(n(21719)),a=function(e){function t(n){var r=e.call(this)||this;return r.status=n,Object.setPrototypeOf(r,t.prototype),r}return i.__extends(t,e),t}(Error);t.RequestError=a;var l="You forgot to wrap your app in <UserProvider>";t.UserContext=o.createContext({get user(){throw Error(l)},get error(){throw Error(l)},get isLoading(){throw Error(l)},checkSession:function(){throw Error(l)}}),t.useUser=function(){return o.useContext(t.UserContext)};var u=function(e){return i.__awaiter(void 0,void 0,void 0,function(){var t;return i.__generator(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,fetch(e)];case 1:return t=n.sent(),[3,3];case 2:throw n.sent(),new a(0);case 3:if(t.ok)return[2,t.json()];if(401===t.status)return[2,void 0];throw new a(t.status)}})})};t.default=function(e){var n=e.children,a=e.user,l=e.profileUrl,c=void 0===l?r.env.NEXT_PUBLIC_AUTH0_PROFILE||"/api/auth/me":l,d=e.loginUrl,h=e.fetcher,f=void 0===h?u:h,p=i.__read(o.useState({user:a,isLoading:!a}),2),g=p[0],m=p[1],y=o.useCallback(function(){return i.__awaiter(void 0,void 0,void 0,function(){var e,t;return i.__generator(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,f(c)];case 1:return e=n.sent(),m(function(t){return i.__assign(i.__assign({},t),{user:e,error:void 0})}),[3,3];case 2:return t=n.sent(),m(function(e){return i.__assign(i.__assign({},e),{error:t})}),[3,3];case 3:return[2]}})})},[c]);o.useEffect(function(){g.user||i.__awaiter(void 0,void 0,void 0,function(){return i.__generator(this,function(e){switch(e.label){case 0:return[4,y()];case 1:return e.sent(),m(function(e){return i.__assign(i.__assign({},e),{isLoading:!1})}),[2]}})})},[g.user]);var v=g.user,b=g.error,w=g.isLoading;return o.default.createElement(s.default,{loginUrl:d},o.default.createElement(t.UserContext.Provider,{value:{user:v,error:b,isLoading:w,checkSession:y}},n))}},84246:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),i=r.__importStar(n(96540)),o=n(21719),s=n(71418);t.default=function(e,t){return void 0===t&&(t={}),function(n){var a=t.returnTo,l=t.onRedirecting,u=t.onError,c=o.useConfig().loginUrl,d=s.useUser(),h=d.user,f=d.error,p=d.isLoading;return(i.useEffect(function(){if((!h||f)&&!p){if(a)e=a;else{var e,t=window.location.toString();e=t.replace(new URL(t).origin,"")||"/"}window.location.assign(c+"?returnTo="+encodeURIComponent(e))}},[h,f,p]),f)?(void 0===u?function(){return i.default.createElement(i.default.Fragment,null)}:u)(f):h?i.default.createElement(e,r.__assign({user:h},n)):(void 0===l?function(){return i.default.createElement(i.default.Fragment,null)}:l)()}}},5176:(e,t,n)=>{"use strict";t.Jd=t.vu=void 0,n(31635);var r=n(75919);Object.defineProperty(t,"vu",{enumerable:!0,get:function(){return r.UserProvider}}),Object.defineProperty(t,"Jd",{enumerable:!0,get:function(){return r.useUser}})},43842:function(){!function(){"use strict";function e(e){var t=!0,n=!1,r=null,i={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function o(e){return!!e&&e!==document&&"HTML"!==e.nodeName&&"BODY"!==e.n
1odeName&&"classList"in e&&"contains"in e.classList}function s(e){e.classList.contains("focus-visible")||(e.classList.add("focus-visible"),e.setAttribute("data-focus-visible-added",""))}function a(e){t=!1}function l(){document.addEventListener("mousemove",u),document.addEventListener("mousedown",u),document.addEventListener("mouseup",u),document.addEventListener("pointermove",u),document.addEventListener("pointerdown",u),document.addEventListener("pointerup",u),document.addEventListener("touchmove",u),document.addEventListener("touchstart",u),document.addEventListener("touchend",u)}function u(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(t=!1,document.removeEventListener("mousemove",u),document.removeEventListener("mousedown",u),document.removeEventListener("mouseup",u),document.removeEventListener("pointermove",u),document.removeEventListener("pointerdown",u),document.removeEventListener("pointerup",u),document.removeEventListener("touchmove",u),document.removeEventListener("touchstart",u),document.removeEventListener("touchend",u))}document.addEventListener("keydown",function(n){n.metaKey||n.altKey||n.ctrlKey||(o(e.activeElement)&&s(e.activeElement),t=!0)},!0),document.addEventListener("mousedown",a,!0),document.addEventListener("pointerdown",a,!0),document.addEventListener("touchstart",a,!0),document.addEventListener("visibilitychange",function(e){"hidden"===document.visibilityState&&(n&&(t=!0),l())},!0),l(),e.addEventListener("focus",function(e){var n,r,a;o(e.target)&&(t||(r=(n=e.target).type,"INPUT"===(a=n.tagName)&&i[r]&&!n.readOnly||"TEXTAREA"===a&&!n.readOnly||n.isContentEditable))&&s(e.target)},!0),e.addEventListener("blur",function(e){if(o(e.target)){var t;(e.target.classList.contains("focus-visible")||e.target.hasAttribute("data-focus-visible-added"))&&(n=!0,window.clearTimeout(r),r=window.setTimeout(function(){n=!1},100),(t=e.target).hasAttribute("data-focus-visible-added")&&(t.classList.remove("focus-visible"),t.removeAttribute("data-focus-visible-added")))}},!0),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host?e.host.setAttribute("data-js-focus-visible",""):e.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var t;window.applyFocusVisiblePolyfill=e;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(e){(t=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}"undefined"!=typeof document&&e(document)}()},28203:e=>{"use strict";e.exports=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=e.length-1;return e.slice(0,i).reduce(function(e,t,r){return e+t+n[r]},"")+e[i]}},86170:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(5617)}])},28550:(e,t,n)=>{"use strict";n.d(t,{$W:()=>c,Ei:()=>h,I3:()=>d,eo:()=>s,sd:()=>a});let r=""!==window.location.hostname?window.location.hostname:"localhost",i=""!==window.localStorage?window.localStorage:void 0,o=""!==window.location?window.location:void 0,s=[{name:"no",title:"Norwegian",lang:"no",path:"/"},{name:"en_GB",title:"English (UK)",lang:"en",path:"/en/"},{name:"de_DE",title:"German",lang:"de",path:"/de/"}],a=s.filter(e=>"no"===e.lang)[0],l=["activity","article","event","campaign","categories","events","fullscreen","home","page","place","profile","provider","region","register","search","service","travel-planner"],u=[...l,"activities","attractions","destinations","inspiration","services"],c={adSite:"fjordnorway",adDfpNetworkId:"22381252584",cloudinaryName:"djew0njor",dataset:"production",defaultMapCoordinatesMax:25,defaultMapPadding:50,defaultMapTransition:1e3,defaultMyPlan:{_type:"Ixinerary",title:"",duration:{timeStart:"",timeEnd:""},plan:[],official:!1},defaultTraveller:{_type:"Traveller",itineraries:[],ixineraries:[],firstName:"",lastName:"",email:"",emailVerified:!1,lastUpdated:"",locale:"",name:"",nickname:"",picture:"",sub:""},fetchPolicy:"no-cache",gtmId:"GTM-NBTRKT",guestUserId:"25456c09-7ee2-45d8-9f68-fd939d116b77",hostname:r,inDevelopment:!1,inProduction:!0,inTest:!1,localStorage:i,location:o,mapboxApiAccessToken:"pk.eyJ1IjoiZmpvcmRub3J3YXkiLCJhIjoiY2tvd3Z1cm51MGEwMjJvbzJ2MDY0NjZzNiJ9.NpUbNKXGeCcJ3euf-66eQg",monthFormat:"DD/MM/yyyy",monthFormatUs:"MM/dd/yyyy",myPlanLSTimeout:"1800000",pageTypes:l,pageTypesAll:u,pageTitleAppend:" - Fjord Norway",pageTitleFallback:"Fjord Norway",plannerStatusTimeout:"5000",projectId:"ifljqzp4",showWarningProduction:!1,travellerFjordNorwayId:"83c4aee1-63a0-46ae-9098-63d0579afbed",updateTests:!1,zoom:[{name:"Extra-Remote",level:7},{name:"Remote",level:8},{name:"Rural",level:10},{name:"Urban",level:12},{name:"MaxAfterZoom",level:24}],zoomMaxLevel:"Urban",zoomShowProductsLevel:"Rural",MINIMUM_DURATION:2,MAXIMUM_DURATION:10,paginateStart:0,paginateEnd:20,numberOfProductsPerPagination:20},d=!0,h={nordvest:"ac360348-5de5-47fa-ae82-bd5d6c117ec0",aalesund:"74f7a69a-100e-4b8c-aed0-4e758a385867",nordfjord:"41242676-7265-4462-8034-0b521866bef8",fjordkysten:"d7c2f6f8-3130-45d2-939f-5480b55f95c4",sognefjord:"f1b05fbf-d43a-461d-8ec8-f36384f46f97",voss:"0e3371b7-b0ab-458f-8fd4-77c85c1fec36",bergen:"ca1cea89-b754-4433-b98b-15f34837a61d",hardangerfjord:"f4559e89-00dd-4bb2-995f-cf70a33dc9c5",sunnhordland:"15282bff-adda-4622-893d-895c78339bc3",ryfylke:"e4dd2490-c1e4-4657-bdd0-07bb5bcef027",haugesund:"f6e7ac67-b851-44e4-a2c1-46b6d4677a9b",stavanger:"82eb7f43-3b53-4fe2-a95e-61dc8b5fee15"}},56815:(e,t,n)=>{"use strict";n.d(t,{N1:()=>rA});let r=!(typeof navigator>"u")&&"ReactNative"===navigator.product,i={timeout:r?6e4:12e4},o=function(e){let t={...i,..."string"==typeof e?{url:e}:e};if(t.timeout=function e(t){if(!1===t||0===t)return!1;if(t.connect||t.socket)return t;let n=Number(t);return isNaN(n)?e(i.timeout):{connect:n,socket:n}}(t.timeout),t.query){let{url:e,searchParams:n}=function(e){let t=e.indexOf("?");if(-1===t)return{url:e,searchParams:new URLSearchParams};let n=e.slice(0,t),i=e.slice(t+1);if(!r)return{url:n,searchParams:new URLSearchParams(i)};if("function"!=typeof decodeURIComponent)throw Error("Broken `URLSearchParams` implementation, and `decodeURIComponent` is not defined");let o=new URLSearchParams;for(let e of i.split("&")){let[t,n]=e.split("=");t&&o.append(s(t),s(n||""))}return{url:n,searchParams:o}}(t.url);for(let[r,i]of Object.entries(t.query)){if(void 0!==i){if(Array.isArray(i))for(let e of i)n.append(r,e);else n.append(r,i)}let o=n.toString();o&&(t.url=`${e}?${o}`)}}return t.method=t.body&&!t.method?"POST":(t.method||"GET").toUpperCase(),t};function s(e){return decodeURIComponent(e.replace(/\+/g," "))}let a=/^https?:\/\//i,l=function(e){if(!a.test(e.url))throw Error(`"${e.url}" is not a valid URL`)},u=["request","response","progress","error","abort"],c=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];
1var d,h,f=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(function(){if(h)return d;h=1;var e=function(e){return e.replace(/^\s+|\s+$/g,"")};return d=function(t){if(!t)return{};for(var n=Object.create(null),r=e(t).split("\n"),i=0;i<r.length;i++){var o,s=r[i],a=s.indexOf(":"),l=e(s.slice(0,a)).toLowerCase(),u=e(s.slice(a+1));typeof n[l]>"u"?n[l]=u:(o=n[l],"[object Array]"===Object.prototype.toString.call(o))?n[l].push(u):n[l]=[n[l],u]}return n}}());class p{onabort;onerror;onreadystatechange;ontimeout;readyState=0;response;responseText="";responseType="";status;statusText;withCredentials;#e;#t;#n;#r={};#i;#o={};#s;open(e,t,n){this.#e=e,this.#t=t,this.#n="",this.readyState=1,this.onreadystatechange?.(),this.#i=void 0}abort(){this.#i&&this.#i.abort()}getAllResponseHeaders(){return this.#n}setRequestHeader(e,t){this.#r[e]=t}setInit(e,t=!0){this.#o=e,this.#s=t}send(e){let t="arraybuffer"!==this.responseType,n={...this.#o,method:this.#e,headers:this.#r,body:e};"function"==typeof AbortController&&this.#s&&(this.#i=new AbortController,"u">typeof EventTarget&&this.#i.signal instanceof EventTarget&&(n.signal=this.#i.signal)),"u">typeof document&&(n.credentials=this.withCredentials?"include":"omit"),fetch(this.#t,n).then(e=>(e.headers.forEach((e,t)=>{this.#n+=`${t}: ${e}\r
2`}),this.status=e.status,this.statusText=e.statusText,this.readyState=3,this.onreadystatechange?.(),t?e.text():e.arrayBuffer())).then(e=>{"string"==typeof e?this.responseText=e:this.response=e,this.readyState=4,this.onreadystatechange?.()}).catch(e=>{"AbortError"!==e.name?this.onerror?.(e):this.onabort?.()})}}let g="function"==typeof XMLHttpRequest?"xhr":"fetch",m="xhr"===g?XMLHttpRequest:p,y=(e,t)=>{let n=e.options,r=e.applyMiddleware("finalizeOptions",n),i={},o=e.applyMiddleware("interceptRequest",void 0,{adapter:g,context:e});if(o){let e=setTimeout(t,0,null,o);return{abort:()=>clearTimeout(e)}}let s=new m;s instanceof p&&"object"==typeof r.fetch&&s.setInit(r.fetch,r.useAbortSignal??!0);let a=r.headers,l=r.timeout,u=!1,c=!1,d=!1;if(s.onerror=e=>{v(s instanceof p?e instanceof Error?e:Error(`Request error while attempting to reach ${r.url}`,{cause:e}):Error(`Request error while attempting to reach is ${r.url}${e.lengthComputable?`(${e.loaded} of ${e.total} bytes transferred)`:""}`))},s.ontimeout=e=>{v(Error(`Request timeout while attempting to reach ${r.url}${e.lengthComputable?`(${e.loaded} of ${e.total} bytes transferred)`:""}`))},s.onabort=()=>{y(!0),u=!0},s.onreadystatechange=function(){l&&(y(),i.socket=setTimeout(()=>h("ESOCKETTIMEDOUT"),l.socket)),!u&&s&&4===s.readyState&&0!==s.status&&function(){if(!(u||c||d)){if
2(0===s.status)return void v(Error("Unknown XHR error"));y(),c=!0,t(null,{body:s.response||(""===s.responseType||"text"===s.responseType?s.responseText:""),url:r.url,method:r.method,headers:f(s.getAllResponseHeaders()),statusCode:s.status,statusMessage:s.statusText})}}()},s.open(r.method,r.url,!0),s.withCredentials=!!r.withCredentials,a&&s.setRequestHeader)for(let e in a)a.hasOwnProperty(e)&&s.setRequestHeader(e,a[e]);return r.rawBody&&(s.responseType="arraybuffer"),e.applyMiddleware("onRequest",{options:r,adapter:g,request:s,context:e}),s.send(r.body||null),l&&(i.connect=setTimeout(()=>h("ETIMEDOUT"),l.connect)),{abort:function(){u=!0,s&&s.abort()}};function h(t){d=!0,s.abort();let n=Error("ESOCKETTIMEDOUT"===t?`Socket timed out on request to ${r.url}`:`Connection timed out on request to ${r.url}`);n.code=t,e.channels.error.publish(n)}function y(e){(e||u||s&&s.readyState>=2&&i.connect)&&clearTimeout(i.connect),i.socket&&clearTimeout(i.socket)}function v(e){if(c)return;y(!0),c=!0,s=null;let n=e||Error(`Network error while attempting to reach ${r.url}`);n.isNetworkError=!0,n.request=r,t(n)}},v=(e=[],t=y)=>(function e(t,n){let r=[],i=c.reduce((e,t)=>(e[t]=e[t]||[],e),{processOptions:[o],validateOptions:[l]});function s(e){let t;let r="object"==typeof e&&e.callSiteStack?e.callSiteStack:void 0,o=r?void 0:Error(),s=u.reduce((e,t)=>(e[t]=function(){let e=Object.create(null),t=0;return{publish:function(t){for(let n in e)e[n](t)},subscribe:function(n){let r=t++;return e[r]=n,function(){delete e[r]}}}}(),e),{}),a=function(e,t,...n){let r="onError"===e,o=t;for(let t=0;t<i[e].length&&(o=(0,i[e][t])(o,...n),!r||o);t++);return o},l=a("processOptions",e);a("validateOptions",l);let c={options:l,channels:s,applyMiddleware:a},d=s.request.subscribe(e=>{t=n(e,(t,n)=>((e,t,n)=>{let i=e,l=t;if(!i)try{l=a("onResponse",t,n)}catch(e){l=null,i=e}if(i=i&&a("onError",i,n)){if(i instanceof Error){let e=r?.stack||o?.stack;if("string"==typeof e){let t=e.split("\n").slice(r?1:2);t.length>0&&(i.stack+="\n"+t.join("\n"))}}s.error.publish(i)}else l&&s.response.publish(l)})(t,n,e))});s.abort.subscribe(()=>{d(),t&&t.abort()});let h=a("onReturn",s,c);return h===s&&s.request.publish(c),h}return s.use=function(e){if(!e)throw Error("Tried to add middleware that resolved to falsey value");if("function"==typeof e)throw Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(e.onReturn&&i.onReturn.length>0)throw Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return c.forEach(t=>{e[t]&&i[t].push(e[t])}),r.push(e),s},s.clone=()=>e(r,n),t.forEach(s.use),s})(e,t);var b,w,L,S,M,E=n(65606),x=n(2928).Buffer,C={exports:{}};M||(M=1,function(e,t){let n;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch{}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!e&&"u">typeof E&&"env"in E&&(e=E.env.DEBUG),e},t.useColors=function(){let e;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch{}}(),t.destroy=(n=!1,()=>{n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33
2CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=(S?L:(S=1,L=function(e){function t(e){let r,i,o,s=null;function a(...e){if(!a.enabled)return;let n=Number(new Date),i=n-(r||n);a.diff=i,a.prev=r,a.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,r)=>{if("%%"===n)return"%";o++;let i=t.formatters[r];if("function"==typeof i){let t=e[o];n=i.call(a,t),e.splice(o,1),o--}return n}),t.formatArgs.call(a,e),(a.log||t.log).apply(a,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,n){let r=t(this.namespace+(typeof n>"u"?":":n)+e);return r.log=this.log,r}function r(e,t){let n=0,r=0,i=-1,o=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||"*"===t[r]))"*"===t[r]?(i=r,o=n):n++,r++;else{if(-1===i)return!1;r=i+1,n=++o}for(;r<t.length&&"*"===t[r];)r++;return r===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let n of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===n[0]?t.skips.push(n.slice(1)):t.names.push(n)},t.enabled=function(e){for(let n of t.skips)if(r(e,n))return!1;for(let n of t.names)if(r(e,n))return!0;return!1},t.humanize=function(){if(w)return b;function e(e,t,n,r){return Math.round(e/n)+" "+r+(t>=1.5*n?"s":"")}return w=1,b=function(t,n){n=n||{};var r,i,o=typeof t;if("string"===o&&t.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return 864e5*n;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*n;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*n;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(t);if("number"===o&&isFinite(t))return n.long?(i=Math.abs(t))>=864e5?e(t,i,864e5,"day"):i>=36e5?e(t,i,36e5,"hour"):i>=6e4?e(t,i,6e4,"minute"):i>=1e3?e(t,i,1e3,"second"):t+" ms":(r=Math.abs(t))>=864e5?Math.round(t/864e5)+"d":r>=36e5?Math.round(t/36e5)+"h":r>=6e4?Math.round(t/6e4)+"m":r>=1e3?Math.round(t/1e3)+"s":t+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}}(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t)|0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}))(t);let{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(C,C.exports)),C.exports,Object.prototype.hasOwnProperty;let A=typeof x>"u"?()=>!1:e=>x.isBuffer(e);function k(e){return"[object Object]"===Object.prototype.toString.call(e)}let P=["boolean","string","number"],T={};"u">typeof globalThis?T=globalThis:"u">typeof window?T=window:"u">typeof global?T=global:"u">typeof self&&(T=self);var R=T;let j=(e={})=>{let t=e.implementation||Promise;if(!t)throw Error("`Promise` is not available in global scope, and n
2o implementation was passed");return{onReturn:(n,r)=>new t((t,i)=>{let o=r.options.cancelToken;o&&o.promise.then(e=>{n.abort.publish(e),i(e)}),n.error.subscribe(i),n.response.subscribe(n=>{t(e.onlyBody?n.body:n)}),setTimeout(()=>{try{n.request.publish(r)}catch(e){i(e)}},0)})}};class O{__CANCEL__=!0;message;constructor(e){this.message=e}toString(){return"Cancel"+(this.message?`: ${this.message}`:"")}}class _{promise;reason;constructor(e){if("function"!=typeof e)throw TypeError("executor must be a function.");let t=null;this.promise=new Promise(e=>{t=e}),e(e=>{this.reason||(this.reason=new O(e),t(this.reason))})}static source=()=>{let e;return{token:new _(t=>{e=t}),cancel:e}}}j.Cancel=O,j.CancelToken=_,j.isCancel=e=>!(!e||!e?.__CANCEL__);var V=(e,t,n)=>("GET"===n.method||"HEAD"===n.method)&&(e.isNetworkError||!1);function D(e){return 100*Math.pow(2,e)+100*Math.random()}let I=(e={})=>(e=>{let t=e.maxRetries||5,n=e.retryDelay||D,r=e.shouldRetry;return{onError:(e,i)=>{var o;let s=i.options,a=s.maxRetries||t,l=s.retryDelay||n,u=s.shouldRetry||r,c=s.attemptNumber||0;if(null!==(o=s.body)&&"object"==typeof o&&"function"==typeof o.pipe||!u(e,c,s)||c>=a)return e;let d=Object.assign({},i,{options:Object.assign({},s,{attemptNumber:c+1})});return setTimeout(()=>i.channels.request.publish(d),l(c)),null}}})({shouldRetry:V,...e});I.shouldRetry=V;var F=n(31635);function H(e){return"function"==typeof e}function q(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var U=q(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t}});function N(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var $=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,n,r,i,o=this._parentage;if(o){if(this._parentage=null,Array.isArray(o))try{for(var s=(0,F.__values)(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this)}var l=this.initialTeardown;if(H(l))try{l()}catch(e){i=e instanceof U?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=(0,F.__values)(u),d=c.next();!d.done;d=c.next()){var h=d.value;try{W(h)}catch(e){i=null!=i?i:[],e instanceof U?i=(0,F.__spreadArray)((0,F.__spreadArray)([],(0,F.__read)(i)),(0,F.__read)(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}if(i)throw new U(i)}},t.prototype.add=function(e){var n;if(e&&e!==this){if(this.closed)W(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(e)}}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&N(t,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&N(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),B=$.EMPTY;function z(e){return e instanceof $||e&&"closed"in e&&H(e.remove)&&H(e.add)&&H(e.unsubscribe)}function W(e){H(e)?e():e.unsubscribe()}var G={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Z={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Z.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,(0,F.__spreadArray)([e,t],(0,F.__read)(n))):setTimeout.apply(void 0,(0,F.__spreadArray)([e,t],(0,F.__read)(n)))},clearTimeout:function(e){var t=Z.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function K(e){Z.setTimeout(function(){var t=G.onUnhandledError;if(t)t(e);else throw e})}function Q(){}var Y=X("C",void 0,void 0);
2function X(e,t,n){return{kind:e,value:t,error:n}}var J=null;function ee(e){if(G.useDeprecatedSynchronousErrorHandling){var t=!J;if(t&&(J={errorThrown:!1,error:null}),e(),t){var n=J,r=n.errorThrown,i=n.error;if(J=null,r)throw i}}else e()}var et=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,z(t)&&t.add(n)):n.destination=el,n}return(0,F.__extends)(t,e),t.create=function(e,t,n){return new eo(e,t,n)},t.prototype.next=function(e){this.isStopped?ea(X("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?ea(X("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?ea(Y,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}($),en=Function.prototype.bind;function er(e,t){return en.call(e,t)}var ei=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){es(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){es(e)}else es(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){es(e)}},e}(),eo=function(e){function t(t,n,r){var i,o,s=e.call(this)||this;return H(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&G.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&er(t.next,o),error:t.error&&er(t.error,o),complete:t.complete&&er(t.complete,o)}):i=t,s.destination=new ei(i),s}return(0,F.__extends)(t,e),t}(et);function es(e){G.useDeprecatedSynchronousErrorHandling?G.useDeprecatedSynchronousErrorHandling&&J&&(J.errorThrown=!0,J.error=e):K(e)}function ea(e,t){var n=G.onStoppedNotification;n&&Z.setTimeout(function(){return n(e,t)})}var el={closed:!0,next:Q,error:function(e){throw e},complete:Q},eu="function"==typeof Symbol&&Symbol.observable||"@@observable";function ec(e){return e}function ed(e){return 0===e.length?ec:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}var eh=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof et||r&&H(r.next)&&H(r.error)&&H(r.complete)&&z(r)?e:new eo(e,t,n);return ee(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=ef(t))(function(t,r){var i=new eo({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[eu]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ed(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=ef(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function ef(e){var t;return null!==(t=null!=e?e:G.Promise)&&void 0!==t?t:Promise}var ep=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function eg(e){return H(null==e?void 0:e.then)}function em(e){return Symbol.asyncIterator&&H(null==e?void 0:e[Symbol.asyncIterator])}function ey(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var ev="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function eb(e){return H(null==e?void 0:e[ev])}function ew(e){return(0,F.__asyncGenerator)(this,arguments,function(){var t,n,r;return(0,F.__generator)(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,(0,F.__await)(t.read())];case 3:if(r=(n=i.sent()).value,!n.done)return[3,5];return[4,(0,F.__await)(void 0)];case 4:return[2,i.sent()];case 5:return[4,(0,F.__await)(r)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function eL(e){return H(null==e?void 0:e.getReader)}function eS(e){if(e instanceof eh)return e;if(null!=e){if(H(e[eu]))return new eh(function(t){var n=e[eu]();if(H(n.subscribe))return n.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")});if(ep(e))return new eh(function(t){for(var n=0;n<e.length&&!t.closed;
2n++)t.next(e[n]);t.complete()});if(eg(e))return new eh(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,K)});if(em(e))return eM(e);if(eb(e))return new eh(function(t){var n,r;try{for(var i=(0,F.__values)(e),o=i.next();!o.done;o=i.next()){var s=o.value;if(t.next(s),t.closed)return}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()});if(eL(e))return eM(ew(e))}throw ey(e)}function eM(e){return new eh(function(t){(function(e,t){var n,r,i,o;return(0,F.__awaiter)(this,void 0,void 0,function(){var s;return(0,F.__generator)(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),n=(0,F.__asyncValues)(e),a.label=1;case 1:return[4,n.next()];case 2:if((r=a.sent()).done)return[3,4];if(s=r.value,t.next(s),t.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:a.sent()},[3,11];case 6:if(a.trys.push([6,,9,10]),!(r&&!r.done&&(o=n.return)))return[3,8];return[4,o.call(n)];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function eE(e){return new eh(function(t){eS(e()).subscribe(t)})}function ex(e){return e[e.length-1]}function eC(e){var t;return(t=ex(e))&&H(t.schedule)?e.pop():void 0}function eA(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function ek(e){return function(t){if(H(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}function eP(e,t,n,r,i){return new eT(e,t,n,r,i)}var eT=function(e){function t(t,n,r,i,o,s){var a=e.call(this,t)||this;return a.onFinalize=o,a.shouldUnsubscribe=s,a._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return(0,F.__extends)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),n||null===(t=this.onFinalize)||void 0===t||t.call(this)}},t}(et);function eR(e,t){return void 0===t&&(t=0),ek(function(n,r){n.subscribe(eP(r,function(n){return eA(r,e,function(){return r.next(n)},t)},function(){return eA(r,e,function(){return r.complete()},t)},function(n){return eA(r,e,function(){return r.error(n)},t)}))})}function ej(e,t){return void 0===t&&(t=0),ek(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function eO(e,t){if(!e)throw Error("Iterable cannot be null");return new eh(function(n){eA(n,t,function(){var r=e[Symbol.asyncIterator]();eA(n,t,function(){r.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}function e_(e,t){return t?function(e,t){if(null!=e){if(H(e[eu]))return eS(e).pipe(ej(t),eR(t));if(ep(e))return new eh(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})});if(eg(e))return eS(e).pipe(ej(t),eR(t));if(em(e))return eO(e,t);if(eb(e))return new eh(function(n){var r;return eA(n,t,function(){r=e[ev](),eA(n,t,function(){var e,t,i;try{t=(e=r.next()).value,i=e.done}catch(e){n.error(e);return}i?n.complete():n.next(t)},0,!0)}),function(){return H(null==r?void 0:r.return)&&r.return()}});if(eL(e))return eO(ew(e),t)}throw ey(e)}(e,t):eS(e)}function eV(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=eC(e);return e_(e,n)}function eD(e,t){return ek(function(n,r){var i=0;n.subscribe(eP(r,function(n){r.next(e.call(t,n,i++))}))})}function eI(e,t,n){return(void 0===n&&(n=1/0),H(t))?eI(function(n,r){return eD(function(e,i){return t(n,e,r,i)})(eS(e(n,r)))},n):("number"==typeof t&&(n=t),ek(function(t,r){var i,o,s,a,l,u,c,d,h;return i=n,s=[],a=0,l=0,u=!1,c=function(){!u||s.length||a||r.complete()},d=function(e){return a<i?h(e):s.push(e)},h=function(t){a++;var n=!1;eS(e(t,l++)).subscribe(eP(r,function(e){o?d(e):r.next(e)},function(){n=!0},void 0,function(){if(n)try{for(a--;s.length&&a<i;)!function(){var e=s.shift();h(e)}();c()}catch(e){r.error(e)}}))},t.subscribe(eP(r,d,function(){u=!0,c()})),function(){}}))}var eF=q(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function eH(e,t){var n="object"==typeof t;return new Promise(function(r,i){var o,s=!1;e.subscribe({next:function(e){o=e,s=!0},error:i,complete:function(){s?r(o):n?r(t.defaultValue):i(new eF)}})})}var eq=q(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),eU=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,F.__extends)(t,e),t.prototype.lift=function(e){var t=new eN(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new eq},t.prototype.next=function(e){var t=this;ee(function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=(0,F.__values)(t.currentObservers),o=i.next();!o.done;o=i.next())o.value.next(e)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;ee(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;ee(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}
2,enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,i=this.observers;return n||r?B:(this.currentObservers=null,i.push(e),new $(function(){t.currentObservers=null,N(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},t.prototype.asObservable=function(){var e=new eh;return e.source=this,e},t.create=function(e,t){return new eN(e,t)},t}(eh),eN=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return(0,F.__extends)(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:B},t}(eU),e$={now:function(){return(e$.delegate||Date).now()},delegate:void 0},eB=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=e$);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return(0,F.__extends)(t,e),t.prototype.next=function(t){var n=this.isStopped,r=this._buffer,i=this._infiniteTimeWindow,o=this._timestampProvider,s=this._windowTime;!n&&(r.push(t),i||r.push(o.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,i=(r?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!r){for(var o=t.now(),s=0,a=1;a<n.length&&n[a]<=o;a+=2)s=a;s&&n.splice(0,s+1)}},t}(eU);function ez(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new eU}:t,r=e.resetOnError,i=void 0===r||r,o=e.resetOnComplete,s=void 0===o||o,a=e.resetOnRefCountZero,l=void 0===a||a;return function(e){var t,r,o,a=0,u=!1,c=!1,d=function(){null==r||r.unsubscribe(),r=void 0},h=function(){d(),t=o=void 0,u=c=!1},f=function(){var e=t;h(),null==e||e.unsubscribe()};return ek(function(e,p){a++,c||u||d();var g=o=null!=o?o:n();p.add(function(){0!=--a||c||u||(r=eW(f,l))}),g.subscribe(p),!t&&a>0&&(t=new eo({next:function(e){return g.next(e)},error:function(e){c=!0,d(),r=eW(h,i,e),g.error(e)},complete:function(){u=!0,d(),r=eW(h,s),g.complete()}}),eS(e).subscribe(t))})(e)}}function eW(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!0===t){e();return}if(!1!==t){var i=new eo({next:function(){i.unsubscribe(),e()}});return eS(t.apply(void 0,(0,F.__spreadArray)([],(0,F.__read)(n)))).subscribe(i)}}function eG(e){return ek(function(t,n){var r,i=null,o=!1;i=t.subscribe(eP(n,void 0,void 0,function(s){r=eS(e(s,eG(e)(t))),i?(i.unsubscribe(),i=null,r.subscribe(n)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(n))})}function eZ(e){return void 0===e&&(e=1/0),eI(ec,e)}var eK=function(e){function t(t,n){return e.call(this)||this}return(0,F.__extends)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}($),eQ={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=eQ.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,(0,F.__spreadArray)([e,t],(0,F.__read)(n))):setInterval.apply(void 0,(0,F.__spreadArray)([e,t],(0,F.__read)(n)))},clearInterval:function(e){var t=eQ.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},eY=function(e){function t(t,n){var r=e.call(this,t,n)||this;
2return r.scheduler=t,r.work=n,r.pending=!1,r}return(0,F.__extends)(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n,r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),eQ.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&eQ.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=e||Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,N(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(eK),eX=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=e$.now,e}(),eJ=new(function(e){function t(t,n){void 0===n&&(n=eX.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return(0,F.__extends)(t,e),t.prototype.flush=function(e){var t,n=this.actions;if(this._active){n.push(e);return}this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,t){for(;e=n.shift();)e.unsubscribe();throw t}},t}
2(eX))(eY);function e0(e,t){var n=H(e)?e:function(){return e},r=function(e){return e.error(n())};return new eh(t?function(e){return t.schedule(r,0,e)}:r)}function e1(e){return ek(function(t,n){try{t.subscribe(n)}finally{n.add(e)}})}var e2=new eh(function(e){return e.complete()});function e5(e,t){var n="object"==typeof t;return new Promise(function(r,i){var o=new eo({next:function(e){r(e),o.unsubscribe()},error:i,complete:function(){n?r(t.defaultValue):i(new eF)}});e.subscribe(o)})}var e8=n(49200),e6=Array.isArray,e9=Array.isArray;function e3(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=H(ex(e))?e.pop():void 0;return n?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ed(e)}(e3.apply(void 0,(0,F.__spreadArray)([],(0,F.__read)(e))),eD(function(e){return e9(e)?n.apply(void 0,(0,F.__spreadArray)([],(0,F.__read)(e))):n(e)})):ek(function(t,n){var r,i,o;(r=(0,F.__spreadArray)([t],(0,F.__read)(1===e.length&&e6(e[0])?e[0]:e)),void 0===o&&(o=ec),function(e){var t,n;t=void 0,n=function(){for(var t=r.length,n=Array(t),s=t,a=t,l=function(t){var l;l=function(){var l=e_(r[t],i),u=!1;l.subscribe(eP(e,function(r){n[t]=r,!u&&(u=!0,a--),a||e.next(o(n.slice()))},function(){--s||e.complete()}))},i?eA(e,i,l):l()},u=0;u<t;u++)l(u)},t?eA(e,t,n):n()})(n)})}function e4(e,t){return ek(function(n,r){var i=0;n.subscribe(eP(r,function(n){return e.call(t,n,i++)&&r.next(n)}))})}let e7=/_key\s*==\s*['"](.*)['"]/,te=/^\d*:\d*$/,tt="drafts.",tn="versions.";function tr(e){return e.startsWith(tt)}function ti(e){return e.startsWith(tn)}function to(e){return ti(e)?tt+tl(e):tr(e)?e:tt+e}function ts(e,t){if("drafts"===t||"published"===t)throw Error('Version can not be "published" or "drafts"');return`${tn}${t}.${tl(e)}`}function ta(e){if(!ti(e))return;let[t,n]=e.split(".");return n}function tl(e){return ti(e)?e.split(".").slice(2).join("."):tr(e)?e.slice(tt.length):e}let tu=e=>crypto.getRandomValues(new Uint8Array(e)),tc=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*r*t/e.length);return (o=t)=>{if(o<=0)return"";let s="";for(;;){let t=n(i),a=0|i;for(;a--;)if((s+=e[t[a]&r]||"").length===o)return s}}},td=/\r\n|[\n\r\u2028\u2029]/;function th(e,t){let n=0;for(let r=0;r<t.length;r++){let i=t[r].length+1;if(n+i>e)return{line:r+1,column:e-n};n+=i}return{line:t.length,column:t[t.length-1]?.length??0}}class tf extends Error{constructor(e,t){let n=tg(e,t);super(n.message),this.statusCode=400,Object.assign(this,n)}}
2class tp extends Error{constructor(e){let t=tg(e);super(t.message),this.statusCode=500,Object.assign(this,t)}}function tg(e,t){let n=e.body,r={response:e,statusCode:e.statusCode,responseBody:-1!==(e.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(n,null,2):n,traceId:function(e){let t=e?.headers?.traceparent;if(t)return t.split("-")[1]}(e),message:"",details:void 0};if(!(0,e8.u4)(n))return r.message=`${tv(e,n)}${tb(r.traceId)}`,r;let i=n.error;if("string"==typeof i&&"string"==typeof n.message)return r.message=`${i} - ${n.message}${tb(r.traceId)}`,r;if("object"!=typeof i||null===i)return"string"==typeof i?r.message=`${i}${tb(r.traceId)}`:"string"==typeof n.message?r.message=`${n.message}${tb(r.traceId)}`:r.message=`${tv(e,n)}${tb(r.traceId)}`,r;if("type"in i&&"mutationError"===i.type&&"description"in i&&"string"==typeof i.description||"type"in i&&"actionError"===i.type&&"description"in i&&"string"==typeof i.description){let e=i.items||[],t=e.slice(0,5).map(e=>e.error?.description).filter(Boolean),o=t.length?`:
3- ${t.join(`
4- `)}`:"";return e.length>5&&(o+=`
5...and ${e.length-5} more`),r.message=`${i.description}${tb(r.traceId)}${o}`,r.details=n.error,r}if(tm(i)){let e=t?.options?.query?.tag;return r.message=ty(i,e,r.traceId),r.details=n.error,r}return"description"in i&&"string"==typeof i.description?(r.message=`${i.description}${tb(r.traceId)}`,r.details=i):r.message=`${tv(e,n)}${tb(r.traceId)}`,r}function tm(e){return(0,e8.u4)(e)&&"queryParseError"===e.type&&"string"==typeof e.query&&"number"==typeof e.start&&"number"==typeof e.end}function ty(e,t,n){let{query:r,start:i,end:o,description:s}=e,a=n?`
6(traceId: ${n})`:"";if(!r||typeof i>"u")return`GROQ query parse error: ${s}${a}`;let l=t?`
7
8Tag: ${t}`:"";return`GROQ query parse error:
9${function(e,t,n){let r=e.split(td),{start:i,end:o,markerLines:s}=function(e,t){let n={...e.start},r={...n,...e.end},i=n.line??-1,o=n.column??0,s=r.line,a=r.column,l=Math.max(i-3,0),u=Math.min(t.length,s+3);-1===i&&(l=0),-1===s&&(u=t.length);let c=s-i,d={};if(c)for(let e=0;e<=c;e++){let n=e+i;if(o){if(0===e){let e=t[n-1].length;d[n]=[o,e-o+1]}else if(e===c)d[n]=[0,a];else{let r=t[n-e].length;d[n]=[0,r]}}else d[n]=!0}else o===a?o?d[i]=[o,0]:d[i]=!0:d[i]=[o,a-o];return{start:l,end:u,markerLines:d}}({start:th(t.start,r),end:t.end?th(t.end,r):void 0},r),a=`${o}`.length;return e.split(td,o).slice(i,o).map((e,t)=>{let r=i+1+t,o=` ${` ${r}`.slice(-a)} |`,l=s[r],u=!s[r+1];if(!l)return` ${o}${e.length>0?` ${e}`:""}`;let c="";if(Array.isArray(l)){let t=e.slice(0,Math.max(l[0]-1,0)).replace(/[^\t]/g," "),r=l[1]||1;c=[`
10 `,o.replace(/\d/g," ")," ",t,"^".repeat(r)].join(""),u&&n&&(c+=" "+n)}return[">",o,e.length>0?` ${e}`:"",c].join("")}).join(`
11`)}(r,{start:i,end:o},s)}${l}${a}`}function tv(e,t){let n="string"==typeof t?` (${t.length>100?`${t.slice(0,100)}\u2026`:t})`:"",r=e.statusMessage?` ${e.statusMessage}`:"";return`${e.method}-request to ${e.url} resulted in HTTP ${e.statusCode}${r}${n}`}function tb(e){return e?` (traceId: ${e})`:""}class tw extends Error{constructor({projectId:e,credentials:t}={}){if(super("CorsOriginError"),this.name="CorsOriginError",this.projectId=e,e&&"u">typeof location){let n=new URL(`https://sanity.io/manage/project/${e}/api`),{origin:r}=location;n.searchParams.set("cors","add"),n.searchParams.set("origin",r),t&&n.searchParams.set("credentials",""),this.addOriginUrl=n,this.message=`The current origin is not allowed to connect to the Live Content API. Add it here: ${n}`}else e?this.message=`The current origin is not allowed to connect to the Live Content API. Change your configuration here: https://sanity.io/manage/project/${e}/api`:this.message="The current origin is not allowed to connect to the Live Content API."}}let tL={onResponse:(e,t)=>{if(e.statusCode>=500)throw new tp(e);if(e.statusCode>=400)throw new tf(e,t);return e}};function tS(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return v([I({shouldRetry:tM}),...e,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={},n=t=>void 0!==e.ignoreWarnings&&(Array.isArray(e.ignoreWarnings)?e.ignoreWarnings:[e.ignoreWarnings]).some(e=>"string"==typeof e?t.includes(e):e instanceof RegExp&&e.test(t));return{onResponse:e=>{let r=e.headers["x-sanity-warning"];for(let e of Array.isArray(r)?r:[r])!e||t[e]||n(e)||(t[e]=!0,console.warn(e));return e}}}(t),{processOptions:e=>{let t=e.body;return!t||"function"==typeof t.pipe||A(t)||-1===P.indexOf(typeof t)&&!Array.isArray(t)&&!function(e){if(!1===k(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!(!1===k(n)||!1===n.hasOwnProperty("isPrototypeOf"))}(t)?e:Object.assign({},e,{body:JSON.stringify(e.body),headers:Object.assign({},e.headers,{"Content-Type":"application/json"})})}},{onResponse:e=>{let t=e.headers["content-type"]||"",n=-1!==t.indexOf("application/json");return e.body&&t&&n?Object.assign({},e,{body:function(e){try{return JSON.parse(e)}catch(e){throw e.message=`Failed to parsed response body as JSON: ${e.message}`,e}}(e.body)}):e},processOptions:e=>Object.assign({},e,{headers:Object.assign({Accept:"application/json"},e.headers)})},{onRequest:e=>{if("xhr"!==e.adapter)return;let t=e.request,n=e.context;function r(e){return t=>{let r=t.lengthComputable?t.loaded/t.total*100:-1;n.channels.progress.publish({stage:e,percent:r,total:t.total,loaded:t.loaded,lengthComputable:t.lengthComputable})}}"upload"in t&&"onprogress"in t.upload&&(t.upload.onprogress=r("upload")),"onprogress"in t&&(t.onprogress=r("download"))}},tL,function(e={}){let t=e.implementation||R.Observable;if(!t)throw Error("`Observable` is not available in global scope, and n
11o implementation was passed");return{onReturn:(e,n)=>new t(t=>(e.error.subscribe(e=>t.error(e)),e.progress.subscribe(e=>t.next(Object.assign({type:"progress"},e))),e.response.subscribe(e=>{t.next(Object.assign({type:"response"},e)),t.complete()}),e.request.publish(n),()=>e.abort.publish()))}}({implementation:eh})])}function tM(e,t,n){if(0===n.maxRetries)return!1;let r="GET"===n.method||"HEAD"===n.method,i=(n.uri||n.url).startsWith("/data/query"),o=e.response&&(429===e.response.statusCode||502===e.response.statusCode||503===e.response.statusCode);return(!!r||!!i)&&!!o||I.shouldRetry(e,t,n)}function tE(e){return"https://www.sanity.io/help/"+e}let tx=["image","file"],tC=["before","after","replace"],tA=e=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(e))throw Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},tk=e=>{if(!/^[-a-z0-9]+$/i.test(e))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")},tP=e=>{if(-1===tx.indexOf(e))throw Error(`Invalid asset type: ${e}. Must be one of ${tx.join(", ")}`)},tT=(e,t)=>{if(null===t||"object"!=typeof t||Array.isArray(t))throw Error(`${e}() takes an object of properties`)},tR=(e,t)=>{if("string"!=typeof t||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(t)||t.includes(".."))throw Error(`${e}(): "${t}" is not a valid document ID`)},tj=(e,t)=>{if(!t._id)throw Error(`${e}() requires that the document contains an ID ("_id" property)`);tR(e,t._id)},tO=(e,t)=>{if("string"!=typeof t)throw Error(`\`${e}()\`: \`${t}\` is not a valid document type`)},t_=(e,t)=>{if(!t._type)throw Error(`\`${e}()\` requires that the document contains a type (\`_type\` property)`);tO(e,t._type)},tV=(e,t)=>{if(t._id&&t._id!==e)throw Error(`The provided document ID (\`${t._id}\`) does not match the generated version ID (\`${e}\`)`)},tD=(e,t,n)=>{let r="insert(at, selector, items)";if(-1===tC.indexOf(e)){let e=tC.map(e=>`"${e}"`).join(", ");throw Error(`${r} takes an "at"-argument which is one of: ${e}`)}if("string"!=typeof t)throw Error(`${r} takes a "selector"-argument which must be a string`);if(!Array.isArray(n))throw Error(`${r} takes an "items"-argument which must be an array`)},tI=e=>{if(e.dataset)return e.dataset;let t=e.resource;if(t&&"dataset"===t.type){let e=t.id.split(".");if(2!==e.length)throw Error('Dataset resource ID must be in the format "project.dataset"');return e[1]}throw Error("`dataset` must be provided to perform queries")},tF=e=>{if("string"!=typeof e||!/^[a-z0-9._-]{1,75}$/i.test(e))throw Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return e},tH=e=>{let t=e.resource;if(!t)throw Error("`resource` must be provided to perform resource queries");let{type:n,id:r}=t;switch(n){case"dataset":if(2!==r.split(".").length)throw Error('Dataset resource ID must be in the format "project.dataset"');return;case"dashboard":case"media-library":case"canvas":return;default:throw Error(`Unsupported resource type: ${n.toString()}`)}},tq=(e,t)=>{if(t.resource)throw Error(`\`${e}\` does not support resource-based operations`)},tU=e=>(function(e){let t=!1,n;return function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return t||(n=e(...i),t=!0),n}})(function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return console.warn(e.join(" "),...n)}),tN=tU(["Because you set `withCredentials` to true, we will override your `useCdn`","setting to be false since (cookie-based) credentials are never set on the CDN"]),t$=tU(["Since you haven't set a value for `useCdn`, we will deliver content using our","global, edge-cached API-CDN. If you wish to have content delivered faster, set","`useCdn: false` to use the Live API. Note: You may incur higher costs using the live API."]),tB=tU(["The Sanity client is configured with the `perspective` set to `drafts` or `previewDrafts`, which doesn't support the API-CDN.","The Live API will be used instead. Set `useCdn: false` in your configuration to hide this warning."]),tz=tU(["The `previewDrafts` perspective has been renamed to  `drafts` and will be removed in a future API version"]),tW=tU(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${tE("js-client-browser-token")} for more information and how to hide this warning.`]),tG=tU(["You have configured Sanity client to use a token, but also provided `withCredentials: true`.","This is no longer supported - only token will be used - remove `withCredentials: true`."]),tZ=tU(["Using the Sanity client without specifying an API version is deprecated.",`See ${tE("js-client-api-version")}`]),tK=(tU(["The default export of @sanity/client has been deprecated. Use the named export `createClient` instead."]),tU(["You have called `createVersion()` with a defined `document`. The recommended approach is to provide a `baseId` and `releaseId` instead."])),tQ=tU(["The `~experimental_resource` configuration property has been renamed to `resource`.","Please update your client configuration to use `resource` instead. Support for `~experimental_resource` will be removed in a future version."]),tY={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}},tX=["localhost","127.0.0.1","0.0.0.0"],tJ=e=>-1!==tX.indexOf(e);function t0(e){if(Array.isArray(e)&&e.length>1&&e.includes("raw"))throw TypeError('Invalid API perspective value: "raw". The raw-perspective can not be combined with other perspectives')}let t1=(e,t)=>{let n={...t,...e,stega:{..."boolean"==typeof t.stega?{enabled:t.stega}:t.stega||tY.stega,..."boolean"==typeof e.stega?{enabled:e.stega}:e.stega||{}}};n.apiVersion||tZ();let r={...tY,...n};r["~experimental_resource"]&&!r.resource&&(tQ(),r.resource=r["~experimental_resource"]);let i=r.resource,o=r.useProjectHostname&&!i;if(typeof Promise>"u"){let e=tE("js-client-promise-polyfill");throw Error(`No native Promise-implementation found, polyfill needed - see ${e}`)}if(o&&!r.projectId)throw Error("Configuration must contain `projectId`");if(i&&tH(r),"u">typeof r.perspective&&t0(r.perspective),"encodeSourceMap"in r)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMap' is not supported in '@sanity/client'. Did you mean 'stega.enabled'?");if("encodeSourceMapAtPath"in r)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMapAtPath' is not supported in '@sanity/client'. Did you mean 'stega.filter'?");
11if("boolean"!=typeof r.stega.enabled)throw Error(`stega.enabled must be a boolean, received ${r.stega.enabled}`);if(r.stega.enabled&&void 0===r.stega.studioUrl)throw Error("stega.studioUrl must be defined when stega.enabled is true");if(r.stega.enabled&&"string"!=typeof r.stega.studioUrl&&"function"!=typeof r.stega.studioUrl)throw Error(`stega.studioUrl must be a string or a function, received ${r.stega.studioUrl}`);let s=window.location&&window.location.hostname,a=s&&tJ(window.location.hostname),l=!!r.token;r.withCredentials&&l&&(tG(),r.withCredentials=!1),s&&a&&l&&!0!==r.ignoreBrowserTokenWarning?tW():typeof r.useCdn>"u"&&t$(),o&&tk(r.projectId),r.dataset&&tA(r.dataset),"requestTagPrefix"in r&&(r.requestTagPrefix=r.requestTagPrefix?tF(r.requestTagPrefix).replace(/\.+$/,""):void 0),r.apiVersion=`${r.apiVersion}`.replace(/^v/,""),r.isDefaultApi=r.apiHost===tY.apiHost,!0===r.useCdn&&r.withCredentials&&tN(),r.useCdn=!1!==r.useCdn&&!r.withCredentials,function(e){if("1"===e||"X"===e)return;let t=new Date(e);if(!(/^\d{4}-\d{2}-\d{2}$/.test(e)&&t instanceof Date&&t.getTime()>0))throw Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}(r.apiVersion);let u=r.apiHost.split("://",2),c=u[0],d=u[1],h=r.isDefaultApi?"apicdn.sanity.io":d;return o?(r.url=`${c}://${r.projectId}.${d}/v${r.apiVersion}`,r.cdnUrl=`${c}://${r.projectId}.${h}/v${r.apiVersion}`):(r.url=`${r.apiHost}/v${r.apiVersion}`,r.cdnUrl=r.url),r};class t2 extends Error{constructor(e,t={}){let{status:n,...r}=t;super(e,r),this.name="ConnectionFailedError",this.status=n}}class t5 extends Error{constructor(e,t,n={}){super(e,n),this.name="DisconnectError",this.reason=t}}class t8 extends Error{constructor(e,t){super(e),this.name="ChannelError",this.data=t}}class t6 extends Error{constructor(e,t,n={}){super(e,n),this.name="MessageError",this.data=t}}class t9 extends Error{constructor(...e){super(...e),this.name="MessageParseError"}}let t3=["channelError","disconnect"];function t4(e,t){return eE(()=>{let t=e();return t&&(t instanceof eh||H(t.lift)&&H(t.subscribe))?t:eV(t)}).pipe(eI(e=>new eh(n=>{let r=t.includes("open"),i=t.includes("reconnect");function o(t){if("data"in t){let[e,r]=t7(t);n.error(e?new t9("Unable to parse EventSource error message",{cause:r}):new t6((r?.data).message,r));return}let r=t.status,o="number"==typeof r?r:void 0;if(void 0!==o){n.error(new t2("EventSource connection failed",{status:o}));return}e.readyState===e.CLOSED?n.error(new t2("EventSource connection failed")):i&&n.next({type:"reconnect"})}function s(){n.next({type:"open"})}function a(t){let[r,i]=t7(t);if(r){n.error(new t9("Unable to parse EventSource message",{cause:r}));return}if("channelError"===t.type){let t=new URL(e.url).searchParams.get("tag");n.error(new t8(function(e,t){let n=e.error;return n?tm(n)?ty(n,t):n.description?n.description:"string"==typeof n?n:JSON.stringify(n,null,2):e.message||"Unknown listener error"}(i?.data,t),i.data));return}if("disconnect"===t.type){n.error(new t5(`Server disconnected client: ${i.data?.reason||"unknown error"}`));return}n.next({type:t.type,id:t.lastEventId,...i.data?{data:i.data}:{}})}e.addEventListener("error",o),r&&e.addEventListener("open",s);let l=[...new Set([...t3,...t])].filter(e=>"error"!==e&&"open"!==e&&"reconnect"!==e);return l.forEach(t=>e.addEventListener(t,a)),()=>{e.removeEventListener("error",o),r&&e.removeEventListener("open",s),l.forEach(t=>e.removeEventListener(t,a)),e.close()}})))}function t7(e){try{let t="string"==typeof e.data&&JSON.parse(e.data);return[null,{type:e.type,id:e.lastEventId,...!function(e){for(let t in e)return!1;return!0}(t)?{data:t}:{}}]}catch(e){return[e,null]}}function ne(e){if("string"==typeof e)return{id:e};if(Array.isArray(e))return{query:"*[_id in $ids]",params:{ids:e}};if("object"==typeof e&&null!==e&&"query"in e&&"string"==typeof e.query)return"params"in e&&"object"==typeof e.params&&null!==e.params?{query:e.query,params:e.params}:{query:e.query};let t=["* Document ID (<docId>)","* Array of document IDs","* Object containing `query`"].join(`
12`);throw Error(`Unknown selection - must be one of:
13
14${t}`)}class nt{constructor(e,t={}){this.selection=e,this.operations=t}set(e){return this._assign("set",e)}setIfMissing(e){return this._assign("setIfMissing",e)}diffMatchPatch(e){return tT("diffMatchPatch",e),this._assign("diffMatchPatch",e)}unset(e){if(!Array.isArray(e))throw Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=Object.assign({},this.operations,{unset:e}),this}inc(e){return this._assign("inc",e)}dec(e){return this._assign("dec",e)}insert(e,t,n){return tD(e,t,n),this._assign("insert",{[e]:t,items:n})}append(e,t){return this.insert("after",`${e}[-1]`,t)}prepend(e,t){return this.insert("before",`${e}[0]`,t)}splice(e,t,n,r){let i=t<0?t-1:t,o=typeof n>"u"||-1===n?-1:Math.max(0,t+n),s=`${e}[${i}:${i<0&&o>=0?"":o}]`;return this.insert("replace",s,r||[])}ifRevisionId(e){return this.operations.ifRevisionID=e,this}serialize(){return{...ne(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return tT(e,t),this.operations=Object.assign({},this.operations,{[e]:Object.assign({},n&&this.operations[e]||{},t)}),this}_set(e,t){return this._assign(e,t,!1)}}class nn extends nt{#a;constructor(e,t,n){super(e,t),this.#a=n}clone(){return new nn(this.selection,{...this.operations},this.#a)}commit(e){if(!this.#a)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let t=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},e);return this.#a.mutate({patch:this.serialize()},t)}}class nr extends nt{#a;constructor(e,t,n){super(e,t),this.#a=n}clone(){return new nr(this.selection,{...this.operations},this.#a)}commit(e){if(!this.#a)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let t=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},e);return this.#a.mutate({patch:this.serialize()},t)}}let ni={returnDocuments:!1};
14class no{constructor(e=[],t){this.operations=e,this.trxId=t}create(e){return tT("create",e),this._add({create:e})}createIfNotExists(e){let t="createIfNotExists";return tT(t,e),tj(t,e),this._add({[t]:e})}createOrReplace(e){let t="createOrReplace";return tT(t,e),tj(t,e),this._add({[t]:e})}delete(e){return tR("delete",e),this._add({delete:{id:e}})}transactionId(e){return e?(this.trxId=e,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(e){return this.operations.push(e),this}}class ns extends no{#a;constructor(e,t,n){super(e,n),this.#a=t}clone(){return new ns([...this.operations],this.#a,this.trxId)}commit(e){if(!this.#a)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#a.mutate(this.serialize(),Object.assign({transactionId:this.trxId},ni,e||{}))}patch(e,t){let n="function"==typeof t,r="string"!=typeof e&&e instanceof nr,i="object"==typeof e&&("query"in e||"id"in e);if(r)return this._add({patch:e.serialize()});if(n){let n=t(new nr(e,{},this.#a));if(!(n instanceof nr))throw Error("function passed to `patch()` must return the patch");return this._add({patch:n.serialize()})}if(i){let n=new nr(e,t||{},this.#a);return this._add({patch:n.serialize()})}return this._add({patch:{id:e,...t}})}}class na extends no{#a;constructor(e,t,n){super(e,n),this.#a=t}clone(){return new na([...this.operations],this.#a,this.trxId)}commit(e){if(!this.#a)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#a.mutate(this.serialize(),Object.assign({transactionId:this.trxId},ni,e||{}))}patch(e,t){let n="function"==typeof t;if("string"!=typeof e&&e instanceof nn)return this._add({patch:e.serialize()});if(n){let n=t(new nn(e,{},this.#a));if(!(n instanceof nn))throw Error("function passed to `patch()` must return the patch");return this._add({patch:n.serialize()})}return this._add({patch:{id:e,...t}})}}let nl=e=>{let{query:t,params:n={},options:r={}}=e,i=new URLSearchParams,{tag:o,includeMutations:s,returnQuery:a,...l}=r;for(let[e,r]of(o&&i.append("tag",o),i.append("query",t),Object.entries(n)))void 0!==r&&i.append(`$${e}`,JSON.stringify(r));for(let[e,t]of Object.entries(l))t&&i.append(e,`${t}`);return!1===a&&i.append("returnQuery","false"),!1===s&&i.append("includeMutations","false"),`?${i}`},nu=(e,t)=>!1===e?void 0:typeof e>"u"?t:e,nc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{dryRun:e.dryRun,returnIds:!0,returnDocuments:nu(e.returnDocuments,!0),visibility:e.visibility||"sync",autoGenerateArrayKeys:e.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:e.skipCrossDatasetReferenceValidation}},nd=e=>"response"===e.type,nh=e=>e.body,nf=(e,t)=>e.reduce((e,n)=>(e[t(n)]=n,e),Object.create(null));function np(e,t,r,i){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a="stega"in s?{...r||{},..."boolean"==typeof s.stega?{enabled:s.stega}:s.stega||{}}:r,l=a.enabled?(0,e8.Q)(o):o,u=!1===s.filterResponse?e=>e:e=>e.result,{cache:c,next:d,...h}={useAbortSignal:"u">typeof s.signal,resultSourceMap:a.enabled?"withKeyArraySelector":s.resultSourceMap,...s,returnQuery:!1===s.filterResponse&&!1!==s.returnQuery},f=nP(e,t,"query",{query:i,params:l},"u">typeof c||"u">typeof d?{...h,fetch:{cache:c,next:d}}:h);return a.enabled?f.pipe(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e3.apply(void 0,(0,F.__spreadArray)([],(0,F.__read)(e)))}(e_(n.e(6006).then(n.bind(n,46006)).then(function(e){return e.stegaEncodeSourceMap$1}).then(e=>{let{stegaEncodeSourceMap:t}=e;return t}))),eD(e=>{let[t,n]=e,r=n(t.result,t.resultSourceMap,a);return u({...t,result:r})})):f.pipe(eD(u))}function ng(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i={uri:nq(e,"doc",(()=>{if(!r.releaseId)return n;let e=ta(n);if(!e){if(tr(n))throw Error(`The document ID (\`${n}\`) is a draft, but \`options.releaseId\` is set as \`${r.releaseId}\``);return ts(n,r.releaseId)}if(e!==r.releaseId)throw Error(`The document ID (\`${n}
14\`) is already a version of \`${e}\` release, but this does not match the provided \`options.releaseId\` (\`${r.releaseId}\`)`);return n})()),json:!0,tag:r.tag,signal:r.signal,query:void 0!==r.includeAllVersions?{includeAllVersions:r.includeAllVersions}:void 0};return nF(e,t,i).pipe(e4(nd),eD(e=>{let t=e.body.documents;return t?r.includeAllVersions?t:t[0]:r.includeAllVersions?[]:void 0}))}function nm(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i={uri:nq(e,"doc",n.join(",")),json:!0,tag:r.tag,signal:r.signal};return nF(e,t,i).pipe(e4(nd),eD(e=>{let t=nf(e.body.documents||[],e=>e._id);return n.map(e=>t[e]||null)}))}function ny(e,t,n){var r,i;let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(0===n.length)return eV(new Set);let s=[];for(let e=0;e<n.length;e+=100)s.push(n.slice(e,e+100));return e_(s).pipe((r=n=>nF(e,t,{uri:nq(e,"doc",n.map(encodeURIComponent).join(",")),tag:o.tag,signal:o.signal,query:{excludeContent:!0}}).pipe(e4(nd),eD(e=>{let t=new Set;for(let n of e.body.omitted||[])"existence"===n.reason&&t.add(n.id);return new Set(n.filter(e=>!t.has(e)))})),H(void 0)?eI(r,i,1):eI(r,1)),function(e,t){var n;return ek((n=arguments.length>=2,function(r,i){var o=n,s=t,a=0;r.subscribe(eP(i,function(t){var n=a++;s=o?e(s,t,n):(o=!0,t)},function(){o&&i.next(s),i.complete()}))}))}((e,t)=>{for(let n of t)e.add(n);return e},new Set))}function nv(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return nP(e,t,"query",{query:"*[sanity::partOfRelease($releaseId)]",params:{releaseId:n}},r)}function nb(e,t,n,r){return tj("createIfNotExists",n),nT(e,t,n,"createIfNotExists",r)}function nw(e,t,n,r){return tj("createOrReplace",n),nT(e,t,n,"createOrReplace",r)}function nL(e,t,n,r,i){return tj("createVersion",n),t_("createVersion",n),tK(),nk(e,t,{actionType:"sanity.action.document.version.create",publishedId:r,document:n},i)}function nS(e,t,n,r,i,o,s){if(!r)throw Error("`createVersion()` requires `baseId` when no `document` is provided");if(!n)throw Error("`createVersion()` requires `publishedId` when `baseId` is provided");return tR("createVersion",r),tR("createVersion",n),nk(e,t,{actionType:"sanity.action.document.version.create",publishedId:n,baseId:r,versionId:i?ts(n,i):to(n),ifBaseRevisionId:o},s)}function nM(e,t,n,r){return nP(e,t,"mutate",{mutations:[{delete:ne(n)}]},r)}function nE(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;return nk(e,t,{actionType:"sanity.action.document.version.discard",versionId:n,purge:r},i)}function nx(e,t,n,r){return tj("replaceVersion",n),t_("replaceVersion",n),nk(e,t,{actionType:"sanity.action.document.version.replace",document:n},r)}function nC(e,t,n,r,i){return nk(e,t,{actionType:"sanity.action.document.version.unpublish",versionId:n,publishedId:r},i)}function nA(e,t,n,r){let i;return nP(e,t,"mutate",{mutations:Array.isArray(i=n instanceof nr||n instanceof nn?{patch:n.serialize()}:n instanceof ns||n instanceof na?n.serialize():n)?i:[i],transactionId:r&&r.transactionId||void 0},r)}function nk(e,t,n,r){let i=Array.isArray(n)?n:[n];return nP(e,t,"actions",{actions:i,transactionId:r&&r.transactionId||void 0,skipCrossDatasetReferenceValidation:r&&r.skipCrossDatasetReferenceValidation||void 0,dryRun:r&&r.dryRun||void 0},r)}function nP(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o="mutate"===n,s="actions"===n,a=o||s?"":nl(r),l=!o&&!s&&a.length<11264,u=l?a:"",c=i.returnFirst,{timeout:d,token:h,tag:f,headers:p,returnQuery:g,lastLiveEventId:m,cacheMode:y}=i,v={method:l?"GET":"POST",uri:nq(e,n,u),json:!0,body:l?void 0:r,query:o&&nc(i),timeout:d,headers:p,token:h,tag:f,returnQuery:g,perspective:i.perspective,variant:i.variant,resultSourceMap:i.resultSourceMap,lastLiveEventId:Array.isArray(m)?m[0]:m,cacheMode:y,canUseCdn:"query"===n,signal:i.signal,fetch:i.fetch,useAbortSignal:i.useAbortSignal,useCdn:i.useCdn};return nF(e,t,v).pipe(e4(nd),eD(nh),eD(e=>{if(!o)return e;let t=e.results||[];if(i.returnDocuments)return c?t[0]&&t[0].document:t.map(e=>e.document);let n=c?t[0]&&t[0].id:t.map(e=>e.id);return{transactionId:e.transactionId,results:t,[c?"documentId":"documentIds"]:n}}))}function nT(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return nP(e,t,"mutate",{mutations:[{[r]:n}]},Object.assign({returnFirst:!0,returnDocuments:!0},i))}let nR=e=>{let t=e.config();return void 0!==t.dataset&&void 0!==t.projectId||void 0!==t.resource},nj=(e,t)=>nR(e)&&t.startsWith(nq(e,"query")),nO=(e,t)=>
14nR(e)&&t.startsWith(nq(e,"mutate")),n_=(e,t)=>nR(e)&&t.startsWith(nq(e,"doc","")),nV=(e,t)=>nR(e)&&t.startsWith(nq(e,"listen")),nD=(e,t)=>nR(e)&&t.startsWith(nq(e,"history","")),nI=(e,t)=>t.startsWith("/data/")||nj(e,t)||nO(e,t)||n_(e,t)||nV(e,t)||nD(e,t);function nF(e,t,n){var r;let i=Error(),o=n.url||n.uri,s=e.config(),a=typeof n.canUseCdn>"u"?["GET","HEAD"].indexOf(n.method||"GET")>=0&&nI(e,o):n.canUseCdn,l=(n.useCdn??s.useCdn)&&a,u=n.tag&&s.requestTagPrefix?[s.requestTagPrefix,n.tag].join("."):n.tag||s.requestTagPrefix;if(u&&null!==n.tag&&(n.query={tag:tF(u),...n.query}),["GET","HEAD","POST"].indexOf(n.method||"GET")>=0&&nj(e,o)){let e=n.resultSourceMap??s.resultSourceMap;void 0!==e&&!1!==e&&(n.query={resultSourceMap:e,...n.query});let t=n.perspective||s.perspective;"u">typeof t&&("previewDrafts"===t&&tz(),t0(t),n.query={perspective:Array.isArray(t)?t.join(","):t,...n.query},(Array.isArray(t)&&t.length>0||"previewDrafts"===t||"drafts"===t)&&l&&(l=!1,tB()));let r=n.variant||s.variant;"string"==typeof r&&(n.query={variant:r,...n.query}),"object"==typeof r&&(n.query={variantCondition:Object.entries(r).map(e=>{let[t,n]=e;return`${t}:${n}`}).toSorted(),...n.query}),n.lastLiveEventId&&(n.query={...n.query,lastLiveEventId:n.lastLiveEventId}),!1===n.returnQuery&&(n.query={returnQuery:"false",...n.query}),l&&"noStale"==n.cacheMode&&(n.query={cacheMode:"noStale",...n.query})}let c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};e.headers&&Object.assign(n,e.headers);let r=t.token||e.token;r&&(n.Authorization=`Bearer ${r}`),t.useGlobalApi||e.useProjectHostname||!e.projectId||(n["X-Sanity-Project-ID"]=e.projectId);let i=!!(typeof t.withCredentials>"u"?e.withCredentials:t.withCredentials),o=typeof t.timeout>"u"?e.timeout:t.timeout;return Object.assign({},t,{headers:Object.assign({},n,t.headers||{}),timeout:typeof o>"u"?3e5:o,proxy:t.proxy||e.proxy,json:!0,withCredentials:i,fetch:"object"==typeof t.fetch&&"object"==typeof e.fetch?{...e.fetch,...t.fetch}:t.fetch||e.fetch})}(s,Object.assign({},n,{url:nU(e,o,l),callSiteStack:i})),d=new eh(e=>t(c,s.requester).subscribe(e));return n.signal?d.pipe((r=n.signal,e=>new eh(t=>{let n=()=>t.error(function(e){if(nN)return new DOMException(e?.reason??"The operation was aborted.","AbortError");let t=Error(e?.reason??"The operation was aborted.");return t.name="AbortError",t}(r));if(r&&r.aborted){n();return}let i=e.subscribe(t);return r.addEventListener("abort",n),()=>{r.removeEventListener("abort",n),i.unsubscribe()}}))):d}function nH(e,t,n){return nF(e,t,n).pipe(e4(e=>"response"===e.type),eD(e=>e.body))}function nq(e,t,n){let r=e.config();if(r.resource){tH(r);let e=n$(r),i=void 0!==n?`${t}/${n}`:t;return`${e}/${i}`.replace(/\/($|\?)/,"$1")}let i=tI(r),o=`/${t}/${i}`;return`/data${void 0!==n?`${o}/${n}`:o}`.replace(/\/($|\?)/,"$1")}function nU(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{url:r,cdnUrl:i}=e.config();return`${n?i:r}/${t.replace(/^\//,"")}`}let nN=!!globalThis.DOMException,n$=e=>{let t=e.resource;if(!t)throw Error("`resource` must be provided to perform resource queries");let{type:n,id:r}=t;switch(n){case"dataset":{let e=r.split(".");if(2!==e.length)throw Error('Dataset ID must be in the format "project.dataset"');return`/projects/${e[0]}/datasets/${e[1]}`}case"canvas":return`/canvases/${r}`;case"media-library":return`/media-libraries/${r}`;case"dashboard":return`/dashboards/${r}`;default:throw Error(`Unsupported resource type: ${n.toString()}`)}};function nB(e,t,n){let r=tI(e.config());return nH(e,t,{method:"POST",uri:`/agent/action/generate/${r}`,body:n})}function nz(e,t,n){let r=tI(e.config());return nH(e,t,{method:"POST",uri:`/agent/action/transform/${r}`,body:n})}function nW(e,t,n){let r=tI(e.config());return nH(e,t,{method:"POST",uri:`/agent/action/translate/${r}`,body:n})}class nG{#a;#l;constructor(e,t){this.#a=e,this.#l=t}generate(e){return nB(this.#a,this.#l,e)}transform(e){return nz(this.#a,this.#l,e)}translate(e){return nW(this.#a,this.#l,e)}}class nZ{#a;#l;constructor(e,t){this.#a=e,this.#l=t}generate(e){return eH(nB(this.#a,this.#l,e))}transform(e){return eH(nz(this.#a,this.#l,e))}translate(e){return eH(nW(this.#a,this.#l,e))}prompt(e){return eH(function(e,t,n){let r=tI(e.config());return nH(e,t,{method:"POST",uri:`/agent/action/prompt/${r}`,body:n})}(this.#a,this.#l,e))}patch(e){return eH(function(e,t,n){let r=tI(e.config());return nH(e,t,{method:"POST",uri:`/agent/action/patch/${r}`,body:n})}(this.#a,this.#l,e))}}class nK{#a;#l;constructor(e,t){this.#a=e,this.#l=t}upload(e,t,n){return nY(this.#a,this.#l,e,t,n)}}class nQ{#a;#l;constructor(e,t){this.#a=e,this.#l=t}upload(e,t,n){return eH(nY(this.#a,this.#l,e,t,n).pipe(e4(e=>"response"===e.type),eD(e=>e.body.document)))}}function nY(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};tP(n);let o=i.extract||void 0;o&&!o.length&&(o=["none"]);let s=e.config(),a=!(typeof File>"u")&&r instanceof File?Object.assign({filename:!1===i.preserveFilename?void 0:r.name,contentType:r.type},i):i,{tag:l,label:u,title:c,description:d,creditLine:h,filename:f,source:p}=a,g=s.resource?.type==="media-library",m=g?{title:c,filename:f}:{label:u,title:c,description:d,filename:f,meta:o,creditLine:h};return p&&!g&&(m.sourceId=p.id,m.sourceName=p.name,m.sourceUrl=p.url),nF(e,t,{tag:l,method:"POST",timeout:a.timeout||0,uri:function(e,t){let n="image"===t?"images":"files",r=e.resource;if(r){let{type:e,id:t}=r;switch(e){case"dataset":throw Error("Assets are not supported for dataset resources, yet. Configure the client with `{projectId: <projectId>, dataset: <datasetId>}` instead.");case"canvas":return`/canvases/${t}/assets/${n}`;case"media-library":return`/media-libraries/${t}/upload`;case"dashboard":return`/dashboards/${t}/assets/${n}`;default:throw Error(`Unsupported resource type: ${e.toString()}`)}}let i=tI(e);return`assets/${n}/${i}`}(s,n),headers:a.contentType?{"Content-Type":a.contentType}:{},query:m,body:r})}var nX=(e,t)=>Object.keys(t).concat(Object.keys(e)).reduce((n,r)=>(n[r]=typeof e[r]>"u"?t[r]:e[r],n),{});let nJ=(e,t)=>t.reduce((t,n)=>(typeof e[n]>"u"||(t[n]=e[n]),t),{}),n0=eE(()=>n.e(6423).then(n.bind(n,16423))).pipe(eD(e=>{let{default:t}=e;return t}),function(e,t,n){var r;return r=e,ez({connector:function(){return new eB(r,void 0,void 0)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:!1})}(1)),n1=new Set([408,429]);function n2(){return function(e){return e.pipe(eG((e,t)=>
14{var n;return e instanceof t2&&("number"!=typeof e.status||e.status<400||e.status>=500||n1.has(e.status))?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return eZ(1)(e_(e,eC(e)))}(eV({type:"reconnect"}),(void 0===n&&(n=eJ),new eh(function(e){var t=1e3,r=0;return n.schedule(function(){e.closed||(e.next(r++),e.complete())},t)})).pipe(eI(()=>t))):e0(()=>e)}))}}let n5=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","enableResume","tag"],n8={includeResult:!0};function n6(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{url:r,token:i,withCredentials:o,requestTagPrefix:s,headers:a}=this.config(),l=n.tag&&s?[s,n.tag].join("."):n.tag,u={...nX(n,n8),tag:l},c=nl({query:e,params:t,options:{tag:l,...nJ(u,n5)}}),d=`${r}${nq(this,"listen",c)}`;if(d.length>14800)return e0(()=>Error("Query too large for listener"));let h=u.events?u.events:["mutation"],f={};return o&&(f.withCredentials=!0),(i||a)&&(f.headers={},i&&(f.headers.Authorization=`Bearer ${i}`),a&&Object.assign(f.headers,a)),t4(()=>(typeof EventSource>"u"||f.headers?n0:eV(EventSource)).pipe(eD(e=>new e(d,f))),h).pipe(n2(),e4(e=>h.includes(e.type)),eD(e=>({type:e.type,..."data"in e?e.data:{}})))}let n9="2021-03-25";class n3{#a;constructor(e){this.#a=e}events(){var e,t,n,r;let{includeDrafts:i=!1,tag:o,waitFor:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{projectId:a,apiVersion:l,token:u,withCredentials:c,requestTagPrefix:d,headers:h}=this.#a.config(),f=l.replace(/^v/,"");if("X"!==f&&f<n9)throw Error(`The live events API requires API version ${n9} or later. The current API version is ${f}. Please update your API version to use this feature.`);if(i&&!u&&!c)throw Error("The live events API requires a token or withCredentials when 'includeDrafts: true'. Please update your client configuration. The token should have the lowest possible access role.");let p=nq(this.#a,"live/events"),g=new URL(this.#a.getUrl(p,!1)),m=o&&d?[d,o].join("."):o;m&&g.searchParams.set("tag",m),i&&g.searchParams.set("includeDrafts","true"),s&&g.searchParams.set("waitFor",s);let y={};i&&c&&(y.withCredentials=!0),(i&&u||h)&&(y.headers={},i&&u&&(y.headers.Authorization=`Bearer ${u}`),h&&Object.assign(y.headers,h));let v=`${g.href}::${JSON.stringify(y)}`,b=n4.get(v);if(b)return b;let w=t4(()=>(typeof EventSource>"u"||y.headers?n0:eV(EventSource)).pipe(eD(e=>new e(g.href,y))),["message","restart","welcome","reconnect","goaway"]),L=(t=new URL(this.#a.getUrl("/check/cors",!1)),n=!0===y.withCredentials,new eh(e=>{let r=new AbortController,{signal:i}=r;return fetch(t,{method:"GET",mode:"cors",credentials:"omit",signal:i}).then(e=>{if(!(i.aborted||!e.ok))return e.json()}).then(t=>{if(!i.aborted){if(n&&t?.result?.withCredentials===!1){e.error(new tw({projectId:a,credentials:!0}));return}if(t?.result?.allowed===!1){e.error(new tw({projectId:a,credentials:n}));return}e.next(),e.complete()}}).catch(()=>{i.aborted||e.closed||(e.next(),e.complete())}),()=>r.abort()})),S=w.pipe(n2(),eI(e=>"reconnect"===e.type?L.pipe(eI(()=>eV(e))):eV(e)),eG(e=>e instanceof tw?e0(()=>e):L.pipe(eI(()=>{throw e}))),eD(e=>{if("message"===e.type){let{data:t,...n}=e;return{...n,tags:t.tags}}return e})).pipe(e1(()=>n4.delete(v)),(r="function"==typeof(e={predicate:e=>"welcome"===e.type})?{predicate:e}:e,e=>{var t,n,i,o;let s,a=!1,{predicate:l,...u}=r;return function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=eC(t),i=(e=1/0,"number"==typeof ex(t)?t.pop():e);return t.length?1===t.length?eS(t[0]):eZ(i)(e_(t,r)):e2}(e.pipe((o=H(t=e=>{r.predicate(e)&&(a=!0,s=e)})?{next:t,error:n,complete:i}:t)?ek(function(e,t){null===(n=o.subscribe)||void 0===n||n.call(o);var n,r=!0;e.subscribe(eP(t,function(e){var n;null===(n=o.next)||void 0===n||n.call(o,e),t.next(e)},function(){var e;r=!1,null===(e=o.complete)||void 0===e||e.call(o),t.complete()},function(e){var n;r=!1,null===(n=o.error)||void 0===n||n.call(o,e),t.error(e)},function(){var e,t;r&&(null===(e=o.unsubscribe)||void 0===e||e.call(o)),null===(t=o.finalize)||void 0===t||t.call(o)}
14))}):ec,e1(()=>{a=!1,s=void 0}),ez(u)),new eh(e=>{a&&e.next(s),e.complete()}))}));return n4.set(v,S),S}}let n4=new Map;class n7{#a;#l;constructor(e,t){this.#a=e,this.#l=t}create(e,t){return rn(this.#a,this.#l,"PUT",e,t)}edit(e,t){return rn(this.#a,this.#l,"PATCH",e,t)}delete(e){return rn(this.#a,this.#l,"DELETE",e)}list(){tq("dataset",this.#a.config());let e=this.#a.config(),t=e.projectId,n="/datasets";return!1===e.useProjectHostname&&(n=`/projects/${t}/datasets`),nH(this.#a,this.#l,{uri:n,tag:null})}getEmbeddingsSettings(e){return tq("dataset",this.#a.config()),tA(e),nH(this.#a,this.#l,{uri:rt(this.#a,e),tag:null})}editEmbeddingsSettings(e,t){return tq("dataset",this.#a.config()),tA(e),nH(this.#a,this.#l,{method:"PUT",uri:rt(this.#a,e),body:t,tag:null})}}class re{#a;#l;constructor(e,t){this.#a=e,this.#l=t}create(e,t){return tq("dataset",this.#a.config()),eH(rn(this.#a,this.#l,"PUT",e,t))}edit(e,t){return tq("dataset",this.#a.config()),eH(rn(this.#a,this.#l,"PATCH",e,t))}delete(e){return tq("dataset",this.#a.config()),eH(rn(this.#a,this.#l,"DELETE",e))}list(){tq("dataset",this.#a.config());let e=this.#a.config(),t=e.projectId,n="/datasets";return!1===e.useProjectHostname&&(n=`/projects/${t}/datasets`),eH(nH(this.#a,this.#l,{uri:n,tag:null}))}getEmbeddingsSettings(e){return tq("dataset",this.#a.config()),tA(e),eH(nH(this.#a,this.#l,{uri:rt(this.#a,e),tag:null}))}editEmbeddingsSettings(e,t){return tq("dataset",this.#a.config()),tA(e),eH(nH(this.#a,this.#l,{method:"PUT",uri:rt(this.#a,e),body:t,tag:null}))}}function rt(e,t){let n=e.config();return!1===n.useProjectHostname?`/projects/${n.projectId}/datasets/${t}/settings/embeddings`:`/datasets/${t}/settings/embeddings`}function rn(e,t,n,r,i){return tq("dataset",e.config()),tA(r),nH(e,t,{method:n,uri:`/datasets/${r}`,body:i,tag:null})}class rr{#a;#l;constructor(e,t){this.#a=e,this.#l=t}getPlaybackInfo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.#a.config(),r=(n.resource||n["~experimental_resource"])?.id,{instanceId:i,libraryId:o}=function(e){let t="object"==typeof e&&"_ref"in e?e._ref:e,n=ro.exec(t);if(n){let[,e,t]=n;return{libraryId:e,instanceId:t}}if("string"==typeof e&&e.startsWith("video-"))return{instanceId:e};throw Error(`Invalid video asset instance identifier "${t}": must be a valid video instance id or a Global Dataset Reference (GDR) to the video asset in the Media Library`)}(e),s=o||r;if(!s)throw Error("Could not determine Media Library ID - you need to provide a valid Media Library ID in the client config or a Media Library GDR");let a=`/media-libraries/${s}/video/${i}/playback-info`,l=function(e){let t={};if(e.transformations){let{thumbnail:n,animated:r,storyboard:i}=e.transformations;n&&(n.width&&(t.thumbnailWidth=n.width),n.height&&(t.thumbnailHeight=n.height),void 0!==n.time&&(t.thumbnailTime=n.time),n.fit&&(t.thumbnailFit=n.fit),n.format&&(t.thumbnailFormat=n.format)),r&&(r.width&&(t.animatedWidth=r.width),r.height&&(t.animatedHeight=r.height),void 0!==r.start&&(t.animatedStart=r.start),void 0!==r.end&&(t.animatedEnd=r.end),r.fps&&(t.animatedFps=r.fps),r.format&&(t.animatedFormat=r.format)),i&&i.format&&(t.storyboardFormat=i.format)}return e.expiration&&(t.expiration=e.expiration),t}(t);return nH(this.#a,this.#l,{method:"GET",uri:a,query:l})}}class ri{#a;#l;constructor(e,t){this.#a=e,this.#l=t}getPlaybackInfo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return eH(new rr(this.#a.observable,this.#l).getPlaybackInfo(e,t))}}let ro=/^media-library:(ml[^:]+):([^:]+)$/;class rs{#a;#l;constructor(e,t){this.#a=e,this.#l=t}list(e){let t={};return e?.includeMembers===!1&&(t.includeMembers="false"),e?.includeFeatures===!1&&(t.includeFeatures="false"),e?.organizationId&&(t.organizationId=e.organizationId),e?.onlyExplicitMembership&&(t.onlyExplicitMembership="true"),nH(this.#a,this.#l,{uri:"/projects",query:t})}getById(e){return nH(this.#a,this.#l,{uri:`/projects/${e}`})}}class ra{#a;#l;constructor(e,t){this.#a=e,this.#l=t}list(e){let t={};return e?.includeMembers===!1&&(t.includeMembers="false"),e?.includeFeatures===!1&&(t.includeFeatures="false"),e?.organizationId&&(t.organizationId=e.organizationId),e?.onlyExplicitMembership&&(t.onlyExplicitMembership="true"),eH(nH(this.#a,this.#l,{uri:"/projects",query:t}))}getById(e){return eH(nH(this.#a,this.#l,{uri:`/projects/${e}`}))}}let rl=((e,t=21)=>tc(e,t,tu))("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",8),ru=(e,t)=>
14t?ts(e,t):to(e);function rc(e,t){let{releaseId:n,publishedId:r,document:i}=t;if(r&&i._id){let e=ru(r,n);return tV(e,i),e}if(i._id){let t=tr(i._id),r=ti(i._id);if(!t&&!r)throw Error(`\`${e}()\` requires a document with an \`_id\` that is a version or draft ID`);if(n){if(t)throw Error(`\`${e}()\` was called with a document ID (\`${i._id}\`) that is a draft ID, but a release ID (\`${n}\`) was also provided.`);let r=ta(i._id);if(r!==n)throw Error(`\`${e}()\` was called with a document ID (\`${i._id}\`) that is a version ID, but the release ID (\`${n}\`) does not match the document's version ID (\`${r}\`).`)}return i._id}if(r)return ru(r,n);throw Error(`\`${e}()\` requires either a publishedId or a document with an \`_id\``)}let rd=(e,t)=>{if("object"==typeof e&&null!==e&&("releaseId"in e||"metadata"in e)){let{releaseId:n=rl(),metadata:r={}}=e;return[n,r,t]}return[rl(),{},e]},rh=(e,t)=>{let[n,r,i]=rd(e,t);return{action:{actionType:"sanity.action.release.create",releaseId:n,metadata:{...r,releaseType:r.releaseType||"undecided"}},options:i}};class rf{#a;#l;constructor(e,t){this.#a=e,this.#l=t}get(e,t){let{releaseId:n}=e;return ng(this.#a,this.#l,`_.releases.${n}`,t)}create(e,t){let{action:n,options:r}=rh(e,t),{releaseId:i,metadata:o}=n;return nk(this.#a,this.#l,n,r).pipe(eD(e=>({...e,releaseId:i,metadata:o})))}edit(e,t){let{releaseId:n,patch:r}=e;return nk(this.#a,this.#l,{actionType:"sanity.action.release.edit",releaseId:n,patch:r},t)}publish(e,t){let{releaseId:n}=e;return nk(this.#a,this.#l,{actionType:"sanity.action.release.publish",releaseId:n},t)}archive(e,t){let{releaseId:n}=e;return nk(this.#a,this.#l,{actionType:"sanity.action.release.archive",releaseId:n},t)}unarchive(e,t){let{releaseId:n}=e;return nk(this.#a,this.#l,{actionType:"sanity.action.release.unarchive",releaseId:n},t)}schedule(e,t){let{releaseId:n,publishAt:r}=e;return nk(this.#a,this.#l,{actionType:"sanity.action.release.schedule",releaseId:n,publishAt:r},t)}unschedule(e,t){let{releaseId:n}=e;return nk(this.#a,this.#l,{actionType:"sanity.action.release.unschedule",releaseId:n},t)}delete(e,t){let{releaseId:n}=e;return nk(this.#a,this.#l,{actionType:"sanity.action.release.delete",releaseId:n},t)}fetchDocuments(e,t){let{releaseId:n}=e;return nv(this.#a,this.#l,n,t)}}class rp{#a;#l;constructor(e,t){this.#a=e,this.#l=t}get(e,t){let{releaseId:n}=e;return eH(ng(this.#a,this.#l,`_.releases.${n}`,t))}async create(e,t){let{action:n,options:r}=rh(e,t),{releaseId:i,metadata:o}=n;return{...await eH(nk(this.#a,this.#l,n,r)),releaseId:i,metadata:o}}edit(e,t){let{releaseId:n,patch:r}=e;return eH(nk(this.#a,this.#l,{actionType:"sanity.action.release.edit",releaseId:n,patch:r},t))}publish(e,t){let{releaseId:n}=e;return eH(nk(this.#a,this.#l,{actionType:"sanity.action.release.publish",releaseId:n},t))}archive(e,t){let{releaseId:n}=e;return eH(nk(this.#a,this.#l,{actionType:"sanity.action.release.archive",releaseId:n},t))}unarchive(e,t){let{releaseId:n}=e;return eH(nk(this.#a,this.#l,{actionType:"sanity.action.release.unarchive",releaseId:n},t))}schedule(e,t){let{releaseId:n,publishAt:r}=e;return eH(nk(this.#a,this.#l,{actionType:"sanity.action.release.schedule",releaseId:n,publishAt:r},t))}unschedule(e,t){let{releaseId:n}=e;return eH(nk(this.#a,this.#l,{actionType:"sanity.action.release.unschedule",releaseId:n},t))}delete(e,t){let{releaseId:n}=e;return eH(nk(this.#a,this.#l,{actionType:"sanity.action.release.delete",releaseId:n},t))}fetchDocuments(e,t){let{releaseId:n}=e;return eH(nv(this.#a,this.#l,n,t))}}class rg{#a;#l;constructor(e,t){this.#a=e,this.#l=t}getById(e){return nH(this.#a,this.#l,{uri:`/users/${e}`})}}class rm{#a;#l;constructor(e,t){this.#a=e,this.#l=t}getById(e){return eH(nH(this.#a,this.#l,{uri:`/users/${e}`}))}}class ry{#u;#c;#l;constructor(e,t=tY){this.listen=n6,this.config(t),this.#c=e;let n=t._requestHandler;this.#l=n?(()=>{let r;return(i,o)=>(r||(r=new rv(e,{...t,_requestHandler:void 0})),n(i,t=>e(t,o),r))})():e,this.assets=new nK(this,this.#l),this.datasets=new n7(this,this.#l),this.live=new n3(this),this.mediaLibrary={video:new rr(this,this.#l)},this.projects=new rs(this,this.#l),this.users=new rg(this,this.#l),this.agent={action:new nG(this,this.#l)},this.releases=new rf(this,this.#l)}clone(){return new ry(this.#c,this.config())}config(e){if(void 0===e)return{...this.#u};if(this.#u&&!1===this.#u.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.#u=t1(e,this.#u||{}),this}withConfig(e){let t=this.config();return new ry(this.#c,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}
14fetch(e,t,n){return np(this,this.#l,this.#u.stega,e,t,n)}getDocument(e,t){if(t?.includeAllVersions===!0)return ng(this,this.#l,e,{...t,includeAllVersions:!0});let n={signal:t?.signal,tag:t?.tag,releaseId:t?.releaseId,...t&&"includeAllVersions"in t?{includeAllVersions:!1}:{}};return ng(this,this.#l,e,n)}getDocuments(e,t){return nm(this,this.#l,e,t)}documentsExists(e,t){return ny(this,this.#l,e,t)}create(e,t){return nT(this,this.#l,e,"create",t)}createIfNotExists(e,t){return nb(this,this.#l,e,t)}createOrReplace(e,t){return nw(this,this.#l,e,t)}createVersion(e,t){let{document:n,publishedId:r,releaseId:i,baseId:o,ifBaseRevisionId:s}=e;if(!n)return nS(this,this.#l,r,o,i,s,t);let a=rc("createVersion",{document:n,publishedId:r,releaseId:i}),l={...n,_id:a},u=r||tl(n._id);return nL(this,this.#l,l,u,t)}delete(e,t){return nM(this,this.#l,e,t)}discardVersion(e,t,n){let{releaseId:r,publishedId:i}=e,o=ru(i,r);return nE(this,this.#l,o,t,n)}replaceVersion(e,t){let{document:n,publishedId:r,releaseId:i}=e,o=rc("replaceVersion",{document:n,publishedId:r,releaseId:i}),s={...n,_id:o};return nx(this,this.#l,s,t)}unpublishVersion(e,t){let{releaseId:n,publishedId:r}=e,i=ts(r,n);return nC(this,this.#l,i,r,t)}mutate(e,t){return nA(this,this.#l,e,t)}patch(e,t){return new nn(e,t,this)}transaction(e){return new na(e,this)}action(e,t){return nk(this,this.#l,e,t)}request(e){return nH(this,this.#l,e)}getUrl(e,t){return nU(this,e,t)}getDataUrl(e,t){return nq(this,e,t)}}class rv{#u;#c;#l;constructor(e,t=tY){this.listen=n6,this.config(t),this.#c=e;let n=t._requestHandler;this.#l=n?(()=>{let r;return(i,o)=>(r||(r=new rv(e,{...t,_requestHandler:void 0})),n(i,t=>e(t,o),r))})():e,this.assets=new nQ(this,this.#l),this.datasets=new re(this,this.#l),this.live=new n3(this),this.mediaLibrary={video:new ri(this,this.#l)},this.projects=new ra(this,this.#l),this.users=new rm(this,this.#l),this.agent={action:new nZ(this,this.#l)},this.releases=new rp(this,this.#l),this.observable=new ry(e,t)}clone(){return new rv(this.#c,this.config())}config(e){if(void 0===e)return{...this.#u};if(this.#u&&!1===this.#u.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.observable&&this.observable.config(e),this.#u=t1(e,this.#u||{}),this}withConfig(e){let t=this.config();return new rv(this.#c,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,n){return eH(np(this,this.#l,this.#u.stega,e,t,n))}getDocument(e,t){if(t?.includeAllVersions===!0)return eH(ng(this,this.#l,e,{...t,includeAllVersions:!0}));let n={signal:t?.signal,tag:t?.tag,releaseId:t?.releaseId,...t&&"includeAllVersions"in t?{includeAllVersions:!1}:{}};return eH(ng(this,this.#l,e,n))}getDocuments(e,t){return eH(nm(this,this.#l,e,t))}documentsExists(e,t){return eH(ny(this,this.#l,e,t))}create(e,t){return eH(nT(this,this.#l,e,"create",t))}createIfNotExists(e,t){return eH(nb(this,this.#l,e,t))}createOrReplace(e,t){return eH(nw(this,this.#l,e,t))}createVersion(e,t){let{document:n,publishedId:r,releaseId:i,baseId:o,ifBaseRevisionId:s}=e;if(!n)return e5(nS(this,this.#l,r,o,i,s,t));let a=rc("createVersion",{document:n,publishedId:r,releaseId:i}),l={...n,_id:a},u=r||tl(n._id);return e5(nL(this,this.#l,l,u,t))}delete(e,t){return eH(nM(this,this.#l,e,t))}discardVersion(e,t,n){let{releaseId:r,publishedId:i}=e,o=ru(i,r);return eH(nE(this,this.#l,o,t,n))}replaceVersion(e,t){let{document:n,publishedId:r,releaseId:i}=e,o=rc("replaceVersion",{document:n,publishedId:r,releaseId:i}),s={...n,_id:o};return e5(nx(this,this.#l,s,t))}unpublishVersion(e,t){let{releaseId:n,publishedId:r}=e,i=ts(r,n);return eH(nC(this,this.#l,i,r,t))}mutate(e,t){return eH(nA(this,this.#l,e,t))}patch(e,t){return new nr(e,t,this)}transaction(e){return new ns(e,this)}action(e,t){return eH(nk(this,this.#l,e,t))}request(e){return eH(nH(this,this.#l,e))}dataRequest(e,t,n){return eH(nP(this,this.#l,e,t,n))}getUrl(e,t){return nU(this,e,t)}getDataUrl(e,t){return nq(this,e,t)}}let rb=function(e,t){return{requester:tS(e),createClient:n=>{let r=tS(e,{ignoreWarnings:n.ignoreWarnings});return new t((e,t)=>
14(t||r)({maxRedirects:0,maxRetries:n.maxRetries,retryDelay:n.retryDelay,lineage:n.lineage,...e}),n)}}}([],rv),rw=(rb.requester,rb.createClient);var rL=n(28550),rS=n(65606);let{dataset:rM,projectId:rE,inProduction:rx}=rL.$W,rC={projectId:rE,dataset:rM,apiVersion:"2022-03-20",headers:{"Cache-Control":"preview"===rS.env.VERCEL_ENV?"no-cache, no-store, must-revalidate":"public, max-age=86400, stale-while-revalidate=43200"}},rA=rw({...rC,useCdn:!!rx&&"preview"!==rS.env.VERCEL_ENV});rw({...rC,token:"sk9Y5eGJa2rUfWg8fmSlxaSFaW2AsssHDVTPSW7ggRrgVTobKkyw35iE3P9Paq4up5QFdQllN0WoTc9HT8KxQh1IUwuvtS56Z6OcAMQEu2BtneEz5HQf95sdA4P9KlfqsPpezUaAFOA2qwck9NqVQlCzUaYDpTJ2PLpSC8oxJinYlh2Vwytz",useCdn:!1}),rw({...rC,useCdn:!1})},69442:(e,t,n)=>{"use strict";function r(){throw Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled.")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"forbidden",{enumerable:!0,get:function(){return r}}),n(72746).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99177:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DynamicServerError:function(){return r},isDynamicServerError:function(){return i}});let n="DYNAMIC_SERVER_USAGE";class r extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=n}}function i(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93597:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return l.ReadonlyURLSearchParams},RedirectType:function(){return l.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},forbidden:function(){return l.forbidden},notFound:function(){return l.notFound},permanentRedirect:function(){return l.permanentRedirect},redirect:function(){return l.redirect},unauthorized:function(){return l.unauthorized},unstable_rethrow:function(){return l.unstable_rethrow},useParams:function(){return p},usePathname:function(){return h},useRouter:function(){return f},useSearchParams:function(){return d},useSelectedLayoutSegment:function(){return m},useSelectedLayoutSegments:function(){return g},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});let r=n(96540),i=n(63489),o=n(84168),s=n(93236),a=n(80609),l=n(33774),u=n(88228),c=n(18422);function d(){let e=(0,r.useContext)(o.SearchParamsContext);return(0,r.useMemo)(()=>e?new l.ReadonlyURLSearchParams(e):null,[e])}function h(){return(0,u.useDynamicRouteParams)("usePathname()"),(0,r.useContext)(o.PathnameContext)}function f(){let e=(0,r.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function p(){return(0,u.useDynamicRouteParams)("useParams()"),(0,r.useContext)(o.PathParamsContext)}function g(e){void 0===e&&(e="children"),(0,u.useDynamicRouteParams)("useSelectedLayoutSegments()");let t=(0,r.useContext)(i.LayoutRouterContext);return t?function e(t,n,r,i){let o;if(void 0===r&&(r=!0),void 0===i&&(i=[]),r)o=t[1][n];else{var l;let e=t[1];o=null!=(l=e.children)?l:Object.values(e)[0]}if(!o)return i;let u=o[0],c=(0,s.getSegmentValue)(u);return!c||c.startsWith(a.PAGE_SEGMENT_KEY)?i:(i.push(c),e(o,n,!1,i))}(t.tree,e):null}function m(e){void 0===e&&(e="children"),(0,u.useDynamicRouteParams)("useSelectedLayoutSegment()");let t=g(e);if(!t||0===t.length)return null;let n="children"===e?t[0]:t[t.length-1];return n===a.DEFAULT_SEGMENT_KEY?null:n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
14dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},33774:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return c},RedirectType:function(){return i.RedirectType},forbidden:function(){return s.forbidden},notFound:function(){return o.notFound},permanentRedirect:function(){return r.permanentRedirect},redirect:function(){return r.redirect},unauthorized:function(){return a.unauthorized},unstable_rethrow:function(){return l.unstable_rethrow}});let r=n(8415),i=n(56700),o=n(50047),s=n(69442),a=n(85577),l=n(63301);class u extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class c extends URLSearchParams{append(){throw new u}delete(){throw new u}set(){throw new u}sort(){throw new u}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},50047:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"notFound",{enumerable:!0,get:function(){return i}});let r=""+n(72746).HTTP_ERROR_FALLBACK_ERROR_CODE+";404";function i(){let e=Error(r);throw e.digest=r,e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8415:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getRedirectError:function(){return s},getRedirectStatusCodeFromError:function(){return d},getRedirectTypeFromError:function(){return c},getURLFromRedirectError:function(){return u},permanentRedirect:function(){return l},redirect:function(){return a}});let r=n(4044),i=n(84618),o=n(56700);function s(e,t,n){void 0===n&&(n=i.RedirectStatusCode.TemporaryRedirect);let r=Error(o.REDIRECT_ERROR_CODE);return r.digest=o.REDIRECT_ERROR_CODE+";"+t+";"+e+";"+n+";",r}function a(e,t){let n=r.actionAsyncStorage.getStore();throw s(e,t||((null==n?void 0:n.isAction)?o.RedirectType.push:o.RedirectType.replace),i.RedirectStatusCode.TemporaryRedirect)}function l(e,t){throw void 0===t&&(t=o.RedirectType.replace),s(e,t,i.RedirectStatusCode.PermanentRedirect)}function u(e){return(0,o.isRedirectError)(e)?e.digest.split(";").slice(2,-2).join(";"):null}function c(e){if(!(0,o.isRedirectError)(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function d(e){if(!(0,o.isRedirectError)(e))throw Error("Not a redirect error");return Number(e.digest.split(";").at(-2))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93236:(e,t)=>{"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},97653:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{StaticGenBailoutError:function(){return r},isStaticGenBailoutError:function(){return i}});let n="NEXT_STATIC_GEN_BAILOUT";class r extends Error{constructor(...e){super(...e),this.code=n}}function i(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
14dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},85577:(e,t,n)=>{"use strict";function r(){throw Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled.")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unauthorized",{enumerable:!0,get:function(){return r}}),n(72746).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63301:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rethrow",{enumerable:!0,get:function(){return function e(t){if((0,s.isNextRouterError)(t)||(0,o.isBailoutToCSRError)(t)||(0,r.isDynamicUsageError)(t)||(0,i.isPostpone)(t))throw t;t instanceof Error&&"cause"in t&&e(t.cause)}}});let r=n(78837),i=n(89222),o=n(78216),s=n(97092);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},18422:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return o}});let r=n(32581)._(n(96540)),i=r.default.createContext(null);function o(e){let t=(0,r.useContext)(i);t&&t(e)}},5617:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ef});var r=n(74848);n(43842);var i=n(13368),o=n.n(i),s=n(86715),a=n(96540),l=n(6975),u=n(58168),c="undefined"==typeof window;function d(){}function h(e){return Array.isArray(e)?e:[e]}function f(e,t,n){return S(e)?"function"==typeof t?(0,u.A)({},n,{queryKey:e,queryFn:t}):(0,u.A)({},t,{queryKey:e}):e}function p(e,t,n){return S(e)?[(0,u.A)({},t,{queryKey:e}),n]:[e||{},t]}function g(e,t){var n=e.active,r=e.exact,i=e.fetching,o=e.inactive,s=e.predicate,a=e.queryKey,l=e.stale;if(S(a)){if(r){if(t.queryHash!==y(a,t.options))return!1}else if(!b(t.queryKey,a))return!1}var u=!0===n&&!0===o||null==n&&null==o?"all":!1===n&&!1===o?"none":(null!=n?n:!o)?"active":"inactive";if("none"===u)return!1;if("all"!==u){var c=t.isActive();if("active"===u&&!c||"inactive"===u&&c)return!1}return("boolean"!=typeof l||t.isStale()===l)&&("boolean"!=typeof i||t.isFetching()===i)&&(!s||!!s(t))}function m(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(S(o)){if(!t.options.mutationKey)return!1;if(n){if(v(t.options.mutationKey)!==v(o))return!1}else if(!b(t.options.mutationKey,o))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&(!i||!!i(t))}function y(e,t){return((null==t?void 0:t.queryKeyHashFn)||v)(e)}function v(e){return JSON.stringify(h(e),function(e,t){return w(t)?Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{}):t})}function b(e,t){return function e(t,n){return t===n||typeof t==typeof n&&!!t&&!!n&&"object"==typeof t&&"object"==typeof n&&!Object.keys(n).some(function(r){return!e(t[r],n[r])})}(h(e),h(t))}function w(e){if(!L(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!(L(n)&&n.hasOwnProperty("isPrototypeOf"))}function L(e){return"[object Object]"===Object.prototype.toString.call(e)}function S(e){return"string"==typeof e||Array.isArray(e)}function M(e){Promise.resolve().then(e).catch(function(e){return setTimeout(function(){throw e})})}function E(){if("function"==typeof AbortController)return new AbortController}var x=n(42892),C=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):M(function(){t.notifyFn(e)})},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];t.schedule(function(){e.apply(void 0,r)})}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&M(function(){e.batchNotifyFn(function(){t.forEach(function(t){e.notifyFn(t)})})})},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}()),A=console,k=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter(function(e){return e!==n}),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}(),P=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!c&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}(0,x.A)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(function(e){"boolean"==typeof e?n.setFocused(e):n.onFocus()})},n.setFocused=function(e){this.focused=e,e&&this.onFocus()}
14,n.onFocus=function(){this.listeners.forEach(function(e){e()})},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(k)),T=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!c&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},t}(0,x.A)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(function(e){"boolean"==typeof e?n.setOnline(e):n.onOnline()})},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(e){e()})},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(k));function R(e){return Math.min(1e3*Math.pow(2,e),3e4)}function j(e){return"function"==typeof(null==e?void 0:e.cancel)}var O=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function _(e){return e instanceof O}var V=function(e){var t,n,r,i,o=this,s=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){s=!0},this.continueRetry=function(){s=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(e,t){r=e,i=t});var a=function(t){o.isResolved||(o.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),r(t))},l=function(t){o.isResolved||(o.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),i(t))};!function r(){var i;if(!o.isResolved){try{i=e.fn()}catch(e){i=Promise.reject(e)}t=function(e){if(!o.isResolved&&(l(new O(e)),null==o.abort||o.abort(),j(i)))try{i.cancel()}catch(e){}},o.isTransportCancelable=j(i),Promise.resolve(i).then(a).catch(function(t){if(!o.isResolved){var i,a,u=null!=(i=e.retry)?i:3,c=null!=(a=e.retryDelay)?a:R,d="function"==typeof c?c(o.failureCount,t):c,h=!0===u||"number"==typeof u&&o.failureCount<u||"function"==typeof u&&u(o.failureCount,t);if(s||!h){l(t);return}o.failureCount++,null==e.onFail||e.onFail(o.failureCount,t),new Promise(function(e){setTimeout(e,d)}).then(function(){if(!P.isFocused()||!T.isOnline())return new Promise(function(t){n=t,o.isPaused=!0,null==e.onPause||e.onPause()}).then(function(){n=void 0,o.isPaused=!1,null==e.onContinue||e.onContinue()})}).then(function(){s?l(t):r()})}})}}()},D=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,u.A)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e,t=this;this.clearGcTimeout(),"number"==typeof(e=this.cacheTime)&&e>=0&&e!==1/0&&(this.gcTimeout=setTimeout(function(){t.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){!this.observers.length&&(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,r,i=this.state.data,o="function"==typeof e?e(i):e;return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,i,o))?o=i:!1!==this.options.structuralSharing&&(o=function e(t,n){if(t===n)return t;var r=Array.isArray(t)&&Array.isArray(n);if(r||w(t)&&w(n)){for(var i=r?t.length:Object.keys(t).length,o=r?n:Object.keys(n),s=o.length,a=r?[]:{},l=0,u=0;u<s;u++){var c=r?u:o[u];a[c]=e(t[c],n[c]),a[c]===t[c]&&l++}return i===s&&l===i?t:a}return n}(i,o)),this.dispatch({data:o,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),o},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(d).catch(d):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(e){return!1!==e.options.enabled})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(e){return e.getCurrentResult().isStale})},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!Math.max(this.state.dataUpdatedAt+(e||0)-Date.now(),0)},t.onFocus=function(){var e,t=this.observers.find(function(e){return e.shouldFetchOnWindowFocus()});t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find(function(e){return e.shouldFetchOnReconnect()});t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter(function(t){return t!==e}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abort
14SignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,r,i,o,s,a,l=this;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise)return null==(n=this.retryer)||n.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var u=this.observers.find(function(e){return e.options.queryFn});u&&this.setOptions(u.options)}var c=h(this.queryKey),d=E(),f={queryKey:c,pageParam:void 0,meta:this.meta};Object.defineProperty(f,"signal",{enumerable:!0,get:function(){if(d)return l.abortSignalConsumed=!0,d.signal}});var p={fetchOptions:t,options:this.options,queryKey:c,state:this.state,fetchFn:function(){return l.options.queryFn?(l.abortSignalConsumed=!1,l.options.queryFn(f)):Promise.reject("Missing queryFn")},meta:this.meta};return(null==(o=this.options.behavior)?void 0:o.onFetch)&&(null==(r=this.options.behavior)||r.onFetch(p)),this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(s=p.fetchOptions)?void 0:s.meta)||this.dispatch({type:"fetch",meta:null==(i=p.fetchOptions)?void 0:i.meta}),this.retryer=new V({fn:p.fetchFn,abort:null==d?void 0:null==(a=d.abort)?void 0:a.bind(d),onSuccess:function(e){l.setData(e),null==l.cache.config.onSuccess||l.cache.config.onSuccess(e,l),0===l.cacheTime&&l.optionalRemove()},onError:function(e){_(e)&&e.silent||l.dispatch({type:"error",error:e}),_(e)||(null==l.cache.config.onError||l.cache.config.onError(e,l),A.error(e)),0===l.cacheTime&&l.optionalRemove()},onFail:function(){l.dispatch({type:"failed"})},onPause:function(){l.dispatch({type:"pause"})},onContinue:function(){l.dispatch({type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),C.batch(function(){t.observers.forEach(function(t){t.onQueryUpdate(e)}),t.cache.notify({query:t,type:"queryUpdated",action:e})})},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},t.reducer=function(e,t){var n,r;switch(t.type){case"failed":return(0,u.A)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return(0,u.A)({},e,{isPaused:!0});case"continue":return(0,u.A)({},e,{isPaused:!1});case"fetch":return(0,u.A)({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,u.A)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(r=t.dataUpdatedAt)?r:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var i=t.error;if(_(i)&&i.revert&&this.revertState)return(0,u.A)({},this.revertState);return(0,u.A)({},e,{error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,u.A)({},e,{isInvalidated:!0});case"setState":return(0,u.A)({},e,t.state);default:return e}},e}(),I=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}(0,x.A)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r,i=t.queryKey,o=null!=(r=t.queryHash)?r:y(i,t),s=this.get(o);return s||(s=new D({cache:this,queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i),meta:t.meta}),this.add(s)),s},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(function(t){return t!==e}),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;
14C.batch(function(){e.queries.forEach(function(t){e.remove(t)})})},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=p(e,t)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find(function(e){return g(n,e)})},n.findAll=function(e,t){var n=p(e,t)[0];return Object.keys(n).length>0?this.queries.filter(function(e){return g(n,e)}):this.queries},n.notify=function(e){var t=this;C.batch(function(){t.listeners.forEach(function(t){t(e)})})},n.onFocus=function(){var e=this;C.batch(function(){e.queries.forEach(function(e){e.onFocus()})})},n.onOnline=function(){var e=this;C.batch(function(){e.queries.forEach(function(e){e.onOnline()})})},t}(k),F=function(){function e(e){this.options=(0,u.A)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0},this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter(function(t){return t!==e})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(d).catch(d)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then(function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)}).then(function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)}).then(function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})})),r.then(function(){return t.executeMutation()}).then(function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)}).then(function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)}).then(function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)}).then(function(){return t.dispatch({type:"success",data:e}),e}).catch(function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),A.error(e),Promise.resolve().then(function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)}).then(function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)}).then(function(){throw t.dispatch({type:"error",error:e}),e})})},t.executeMutation=function(){var e,t=this;return this.retryer=new V({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,u.A)({},e,{failureCount:e.failureCount+1});case"pause":return(0,u.A)({},e,{isPaused:!0});case"continue":return(0,u.A)({},e,{isPaused:!1});case"loading":return(0,u.A)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,u.A)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,u.A)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,u.A)({},e,t.state);default:return e}}(this.state,e),C.batch(function(){t.observers.forEach(function(t){t.onMutationUpdate(e)}),t.mutationCache.notify(t)})},e}(),H=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}(0,x.A)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new F({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter(function(t){return t!==e}),e.cancel(),this.notify(e)},n.clear=function(){var e=this;C.batch(function(){e.mutations.forEach(function(t){e.remove(t)})})},n.getAll=function(){return this.mutations},n.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(function(t){return m(e,t)})},n.findAll=function(e){return this.mutations.filter(function(t){return m(e,t)})},n.notify=function(e){var t=this;
14C.batch(function(){t.listeners.forEach(function(t){t(e)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter(function(e){return e.state.isPaused});return C.batch(function(){return e.reduce(function(e,t){return e.then(function(){return t.continue().catch(d)})},Promise.resolve())})},t}(k);function q(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}var U=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new I,this.mutationCache=e.mutationCache||new H,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=P.subscribe(function(){P.isFocused()&&T.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())}),this.unsubscribeOnline=T.subscribe(function(){P.isFocused()&&T.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())})},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=p(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll((0,u.A)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map(function(e){return[e.queryKey,e.state.data]})},t.setQueryData=function(e,t,n){var r=f(e),i=this.defaultQueryOptions(r);return this.queryCache.build(this,i).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return C.batch(function(){return r.getQueryCache().findAll(e).map(function(e){var i=e.queryKey;return[i,r.setQueryData(i,t,n)]})})},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=p(e,t)[0],r=this.queryCache;C.batch(function(){r.findAll(n).forEach(function(e){r.remove(e)})})},t.resetQueries=function(e,t,n){var r=this,i=p(e,t,n),o=i[0],s=i[1],a=this.queryCache,l=(0,u.A)({},o,{active:!0});return C.batch(function(){return a.findAll(o).forEach(function(e){e.reset()}),r.refetchQueries(l,s)})},t.cancelQueries=function(e,t,n){var r=this,i=p(e,t,n),o=i[0],s=i[1],a=void 0===s?{}:s;return void 0===a.revert&&(a.revert=!0),Promise.all(C.batch(function(){return r.queryCache.findAll(o).map(function(e){return e.cancel(a)})})).then(d).catch(d)},t.invalidateQueries=function(e,t,n){var r,i,o,s=this,a=p(e,t,n),l=a[0],c=a[1],d=(0,u.A)({},l,{active:null==(r=null!=(i=l.refetchActive)?i:l.active)||r,inactive:null!=(o=l.refetchInactive)&&o});return C.batch(function(){return s.queryCache.findAll(l).forEach(function(e){e.invalidate()}),s.refetchQueries(d,c)})},t.refetchQueries=function(e,t,n){var r=this,i=p(e,t,n),o=i[0],s=i[1],a=Promise.all(C.batch(function(){return r.queryCache.findAll(o).map(function(e){return e.fetch(void 0,(0,u.A)({},s,{meta:{refetchPage:null==o?void 0:o.refetchPage}}))})})).then(d);return(null==s?void 0:s.throwOnError)||(a=a.catch(d)),a},t.fetchQuery=function(e,t,n){var r=f(e,t,n),i=this.defaultQueryOptions(r);void 0===i.retry&&(i.retry=!1);var o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(d).catch(d)},t.fetchInfiniteQuery=function(e,t,n){var r=f(e,t,n);return r.behavior={onFetch:function(e){e.fetchFn=function(){var t,n,r,i,o,s,a,l=null==(t=e.fetchOptions)?void 0:null==(n=t.meta)?void 0:n.refetchPage,u=null==(r=e.fetchOptions)?void 0:null==(i=r.meta)?void 0:i.fetchMore,c=null==u?void 0:u.pageParam,d=(null==u?void 0:u.direction)==="forward",h=(null==u?void 0:u.direction)==="backward",f=(null==(o=e.state.data)?void 0:o.pages)||[],p=(null==(s=e.state.data)?void 0:s.pageParams)||[],g=E(),m=null==g?void 0:g.signal,y=p,v=!1,b=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},w=function(e,t,n,r){return y=r?[t].concat(y):[].concat(y,[t]),r?[n].concat(e):[].concat(e,[n])},L=function(t,n,r,i){if(v)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);var o=b({queryKey:e.queryKey,signal:m,pageParam:r,meta:e.meta}),s=Promise.resolve(o).then(function(e){return w(t,r,e,i)});return j(o)&&(s.cancel=o.cancel),s};if(f.length){if(d){var S=void 0!==c,M=S?c:q(e.options,f);a=L(f,S,M)}else if(h){var x,C=void 0!==c,A=C?c:null==(x=e.options).getPreviousPageParam?void 0:x.getPreviousPageParam(f[0],f);a=L(f,C,A,!0)}else!function(){y=[];var t=void 0===e.options.getNextPageParam;a=!l||!f[0]||l(f[0],0,f)?L([],t,p[0]):Promise.resolve(w([],p[0],f[0]));for(var n=function(n){a=a.then(function(r){if(!l||!f[n]||l(f[n],n,f)){var i=t?p[n]:q(e.options,r);return L(r,t,i)}return Promise.resolve(w(r,p[n],f[n]))})},r=1;r<f.length;r++)n(r)}()}else a=L([]);var k=a.then(function(e){return{pages:e,pageParams:y}});return k.cancel=function(){v=!0,null==g||g.abort(),j(a)&&a.cancel()},k}}},this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(d).catch(d)},t.cancelMutations=function(){var e=this;return Promise.all(C.batch(function(){return e.mutationCache.getAll().map(function(e){return e.cancel()})})).then(d).catch(d)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find(function(t){return v(e)===v(t.queryKey)});n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find(function(t){return b(e,t.queryKey)}))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find(function(t){return v(e)===v(t.mutationKey)});n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find(function(t){return b(e,t.mutationKey)}))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=(0,u.A)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=y(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:(0,u.A)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),N=n(40961).unstable_batchedUpdates;C.setBatchNotifyFunction(N),A=console;var $=n(98989),B=n(29113),z=n(13687);function W(e){let{isLoading:t}=e;return(0,r.jsx)($.N,{children:t&&(0,r.jsx)(B.P.div,{initial:{opacity:0,x:-20}
vendor: 4,452 bytes, line 14
14,animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{type:"tween"},className:"z-100 fixed bottom-6 right-6 bg-white p-3 shadow-lg",children:(0,r.jsx)(z.A,{icon:"Spinner"})})})}var G=n(28657),Z=n(24880),K=n(29658),Q=n(26261),Y=n(96035),X=n(66500),J=n(58904),ee=n(71692),et=class extends ee.k{#a;#d;#h;#f;constructor(e){super(),this.#a=e.client,this.mutationId=e.mutationId,this.#h=e.mutationCache,this.#d=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#d.includes(e)||(this.#d.push(e),this.clearGcTimeout(),this.#h.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#d=this.#d.filter(t=>t!==e),this.scheduleGc(),this.#h.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#d.length||("pending"===this.state.status?this.scheduleGc():this.#h.remove(this))}continue(){return this.#f?.continue()??("pending"===this.state.status?this.execute(this.state.variables):Promise.resolve())}async execute(e){let t=()=>{this.#p({type:"continue"})},n={client:this.#a,meta:this.options.meta,mutationKey:this.options.mutationKey},r=this.#f=(0,J.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#p({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#p({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#h.canRun(this)}),i="pending"===this.state.status,o=!r.canStart();try{if(i)t();else{this.#p({type:"pending",variables:e,isPaused:o}),this.#h.config.onMutate&&await this.#h.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#p({type:"pending",context:t,variables:e,isPaused:o})}let s=await r.start();return await this.#h.config.onSuccess?.(s,e,this.state.context,this,n),await this.options.onSuccess?.(s,e,this.state.context,n),await this.#h.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,e,this.state.context,n),this.#p({type:"success",data:s}),s}catch(t){try{await this.#h.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#h.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#p({type:"error",error:t}),t}finally{this.#f===r&&(this.#f=void 0),this.#h.runNext(this)}}#p(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),Q.jG.batch(()=>{this.#d.forEach(t=>{t.onMutationUpdate(e)}),this.#h.notify({mutation:this,type:"updated",action:e})})}},en=class extends X.Q{#g;#m;#y;constructor(e={}){super(),this.config=e,this.#g=new Set,this.#m=new Map,this.#y=0}build(e,t,n){let r=new et({client:e,mutationCache:this,mutationId:++this.#y,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#g.add(e);let t=er(e);if("string"==typeof t){let n=this.#m.get(t);n?n.push(e):this.#m.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#g.delete(e)){let t=er(e);if("string"==typeof t){let n=this.#m.get(t);if(n){if(n.length>1){let t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#m.delete(t)}}}this.notify({type:"removed",mutation:e})}canRun(e){let t=er(e);if("string"!=typeof t)return!0;{let n=this.#m.get(t)?.find(e=>"pending"===e.state.status);return!n||n===e}}runNext(e){let t=er(e);return"string"==typeof t?this.#m.get(t)?.find(t=>
14t!==e&&t.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Q.jG.batch(()=>{this.#g.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#g.clear(),this.#m.clear()})}getAll(){return Array.from(this.#g)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,Z.nJ)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,Z.nJ)(e,t))}notify(e){Q.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Q.jG.batch(()=>Promise.all(e.map(e=>e.continue().catch(Z.lQ))))}};function er(e){return e.options.scope?.id}var ei=n(79757),eo=class extends X.Q{#v;constructor(e={}){super(),this.config=e,this.#v=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??(0,Z.F$)(r,t),o=this.get(i);return o||(o=new ei.X({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){this.#v.has(e.queryHash)||(this.#v.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){this.#v.get(e.queryHash)===e&&(e.destroy(),this.#v.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Q.jG.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#v.get(e)}getAll(){return[...this.#v.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,Z.MK)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,Z.MK)(e,t)):t}notify(e){Q.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Q.jG.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Q.jG.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},es=class{#b;#h;#w;#L;#S;#M;#E;#x;constructor(e={}){this.#b=e.queryCache||new eo,this.#h=e.mutationCache||new en,this.#w=e.defaultOptions||{},this.#L=new Map,this.#S=new Map,this.#M=0}mount(){this.#M++,1===this.#M&&(this.#E=K.m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#b.onFocus())}),this.#x=Y.t.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#b.onOnline())}))}unmount(){this.#M--,0===this.#M&&(this.#E?.(),this.#E=void 0,this.#x?.(),this.#x=void 0)}isFetching(e){return this.#b.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#h.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#b.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#b.build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime((0,Z.GF)(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#b.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#b.get(r.queryHash)?.state.data,o=(0,Z.Zw)(t,i);if(void 0!==o)return this.#b.build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Q.jG.batch(()=>this.#b.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#b.get(t.queryHash)?.state}removeQueries(e){let t=this.#b;Q.jG.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#b;return Q.jG.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:"active",predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t};return Promise.all(Q.jG.batch(()=>this.#b.findAll(e).map(e=>e.cancel(n)))).then(Z.lQ).catch(Z.lQ)}invalidateQueries(e,t={}){return Q.jG.batch(()=>(this.#b.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(Q.jG.batch(()=>this.#b.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Z.lQ)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(Z.lQ)}async query(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#b.build(this,t),r=n.isStaleByTime((0,Z.GF)(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#b.build(this,t);return n.isStaleByTime((0,Z.GF)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Z.lQ).catch(Z.lQ)}infiniteQuery(e){return e._type="infinite",this.query(e)}
14fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Z.lQ).catch(Z.lQ)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Y.t.isOnline()?this.#h.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#b}getMutationCache(){return this.#h}getDefaultOptions(){return this.#w}setDefaultOptions(e){this.#w=e}setQueryDefaults(e,t){this.#L.set((0,Z.EN)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#L.values()],n={};return t.forEach(t=>{(0,Z.Cp)(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#S.set((0,Z.EN)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#S.values()],n={};return t.forEach(t=>{(0,Z.Cp)(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#w.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,Z.F$)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Z.hT&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#w.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#b.clear(),this.#h.clear()}},ea=n(97665);let el=e=>{let{children:t}=e,[n]=(0,a.useState)(()=>new es({defaultOptions:{queries:{staleTime:6e4}}}));return(0,r.jsx)(ea.Ht,{client:n,children:t})};var eu=n(64047),ec=n(4102);n(60134);let{adDfpNetworkId:ed}=n(28550).$W,eh=new U,ef=e=>{let{Component:t,pageProps:n}=e,i=(0,s.useRouter)(),u="/404"===i.route?404:null,c="/no/plan"===i.route,[d,h]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e={pagePath:i.asPath||i.pathname,statusCode:u,isPlanPage:c,...n};(0,ec.pe)(e)},[n]),(0,a.useEffect)(()=>{let e=()=>h(!0),t=()=>h(!1);return i.events.on("routeChangeStart",e),i.events.on("routeChangeComplete",t),()=>{i.events.off("routeChangeStart",e),i.events.off("routeChangeComplete",t)}},[]);let f=n.altRoutes||{no:"/no",en:"/en",de:"/de"};return(0,r.jsxs)("div",{className:"app",children:[(0,r.jsx)(eu.p,{altRoutes:f,children:(0,r.jsx)(G.DT,{children:(0,r.jsx)(l.Hy,{dfpNetworkId:ed,children:(0,r.jsxs)(el,{client:eh,children:[(0,r.jsxs)(o(),{children:[f.no&&(0,r.jsx)("link",{rel:"alternate",href:`https://www.fjordnorway.com${f.no}`,hrefLang:"no"}),f.en&&(0,r.jsx)("link",{rel:"alternate",href:`https://www.fjordnorway.com${f.en}`,hrefLang:"en"}),f.de&&(0,r.jsx)("link",{rel:"alternate",href:`https://www.fjordnorway.com${f.de}`,hrefLang:"de"})]}),(0,r.jsx)(t,{...n,altRoutes:f})]})})})}),(0,r.jsx)(W,{isLoading:d})]})}},77863:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(74848),i=n(46942),o=n.n(i),s=n(98989),a=n(29113);let l={black:"stroke-black",blue:"stroke-blue",blueDark:"stroke-blue-dark",white:"stroke-white",green:"stroke-green",grey:"stroke-grey",greyAa:"stroke-grey-aa"};function u(e){let{loading:t,strokeColor:n}=e;return(0,r.jsx)(s.N,{children:t&&(0,r.jsx)(a.P.div,{initial:{opacity:0}
14,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,easing:"ease-out"},children:(0,r.jsx)("svg",{className:o()("animate-spin",l[n]||n||"stroke-blue-dark"),width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M3.21765 6.5L4.4353 4.43529L8.56471 2H13.4353L17.5647 4.43529L20 8.56471C20 10.4668 20 11.5332 20 13.4353L17.5647 17.5647L13.4353 20H8.56471L4.4353 17.5647L3.21765 15.5",strokeWidth:"3",strokeMiterlimit:"10"})})})})}},13687:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(74848),i=n(46942),o=n.n(i);n(96540);var s=n(28550),a=n(77863);let l=[{name:"Activity",width:"24",height:"29",d:"M14.7059 1.5H9.29412L4.70588 4.20588L2 8.79412V14.2059L4.70588 18.7941L12 26.5L19.2941 18.7941L22 14.2059V8.79412L19.2941 4.20588L14.7059 1.5Z M13.0824 7.5H10.9176L9.08235 8.58235L8 10.4176V12.5824L9.08235 14.4176L10.9176 15.5H13.0824L14.9176 14.4176L16 12.5824V10.4176L14.9176 8.58235L13.0824 7.5Z"},{name:"ArrowLeft",d:"M11 18L2.99999 10L11 2 M3 10H21",width:"20",height:"19"},{name:"ArrowRight",d:"M10 18L18 10L10 2 M18 10H0",width:"20",height:"19"},{name:"ArrowDown",d:"M1.10504 10.4819L9.10504 18.4819L17.105 10.4819 M9.10504 18.4819L9.10504 0.481934",width:"19",height:"20"},{name:"ArrowUp",d:"M17.5 10.5181L9.5 2.51806L1.5 10.5181 M9.5 2.51807L9.5 20.5181",width:"19",height:"20"},{name:"ArrowUpRight",d:"M14.6569 13.1388V1.82507L3.34314 1.82508 M1.92896 14.553L14.6569 1.82507",width:"17",height:"16"},{name:"Calendar",width:"28",height:"28",d:"M26.5 17.5L15.5 26.5M26.5 17.5V10.5M26.5 17.5H15.5V26.5M26.5 17.5V26.5H15.5M1.5 10.5H26.5M26.5 10.5V3.5H23M15.5 26.5H1.5V3.5H5M16 3.5H12 M8.5 0V7M19.5 0V7"},{name:"CalendarSm",width:"20",height:"20",d:"M1.5 7.50238H18.5M1.5 13H18.5M7.16667 18.5V7.50238M12.8334 18.5V7.50238M12.83 4V0M7.17 4V0M18.5 2L18.5 18.5024L1.5 18.5V2"},{name:"CatAccommodation",width:"28",height:"28",d:"M15.5 26.5V7L8.5 2L1.5 7V26.5H15.5ZM15.5 26.5V14.5M6 13H11M6 19H11 M21 26.5V20.5M26.5 14.5V26.5L15.6028 26.5L15.6028 14.5L21 11.5L26.5 14.5Z M1 8H15"},{name:"CatCulture",width:"28",height:"28",d:"M1.5 1.5H26.5V6.5H23.5V11.5H26.5V16.5H23.5V21.5H26.5V26.5H1.5V21.5H4.5V16.5H1.5V11.5H4.5V6.5H1.5V1.5Z M10 10.5L14 8.5V21.5M18.0781 21.5H10"},{name:"CatFamily",width:"28",height:"28",d:"M14.5 26.5H26.5V13L26 11L24.5 10L25.5 8V6L23.5 3L20.5 2L17.5 3L15.5 6V8L16.5 10L15 11L14.5 13V17.75V26.5ZM14.5 26.5V20L13 18L11.5 17L12.5 15L11.5 12L8 10L4.5 12L3.5 15L4.5 17L3 18L1.5 20V26.5H14.5Z"},{name:"CatFoodDrink",width:"28",height:"28",d:"M7.5 28V15M7.5 15L1.5 13V0M7.5 15L13.5 13V0M7.5 15V0 M26.5 28V17.6691M26.5 17.6691V5.5L21 14.5L26.5 17.6691Z"},{name:"CatOutdoors",width:"28",height:"28",d:"M10 29L10 3 M-1.01328e-06 27.5H28 M2 23L10 17.75L18 23 M6 7.5L10 3L14 7.5 M4 15L10 11L16 15 M16.0931 4.12591L18.846 2.50238H22.0931L24.846 4.12591L26.4695 6.87885V10.1259L24.846 12.8789L22.0931 14.5024H18.846"},{name:"CatShopping",width:"28",height:"28",d:"M4.2 9.5H25.8L27.5 26.5H2.5L4.2 9.5Z M10.2 1.5H19.8V9.5H10.2V1.5Z"},{name:"CatSightseeing",width:"28",height:"28",d:"M26.5 26.5024V7.00238H20L18 1.50238H10L8 7.00238H1.5V26.5024H26.5Z M12.6471 11H15.3529L17.6471 12.3529L19 14.6471V17.3529L17.6471 19.6471L15.3529 21H12.6471L10.3529 19.6471L9 17.3529V14.6471L10.3529 12.3529L12.6471 11Z"},{name:"CatTransport",width:"28",height:"28",d:"M4 1.5L1.5 3.75V23.5H26.5V3.75L24 1.5H4Z M1.5 12.5H26.5 M5.5 18H10.5 M17.5 18H22.5 M3 23.5C3 25.2574 3 26.2426 3 28 M25 23.5C25 25.2574 25 26.2426 25 28"},{name:"CatWellness",width:"28",height:"28",d:"M26.5 26.4431V21.9431L22.75 20.2227L17 18.5024V16.5024L19.5 14.5024L20 11.5024V8.50238L18 5.00238L14 3.50238L10 5.00238L8 8.50238V11.5024L8.5 14.5024L11 16.5024V18.5024L5.25 20.2227L1.5 21.9431V26.4431H26.5Z M2.57455 12.6088V7.39603L6.0497 1.31451M25.4255 12.6088V7.39603L21.9503 1.31451"},{name:"ChevronDown",d:"M2 2.00001L12 12L22 2",width:"24",height:"15"},{name:"ChevronDownSm",d:"M1.56958 1.92384L8.56958 8.92384L15.5696 1.92383",width:"17",height:"12"},{name:"ChevronLeft",d:"M11 17.25L2.99999 9.25L11 1.25",width:"13",height:"18"},{name:"ChevronUp",d:"M22.5695 13.7814L12.5695 3.78137L2.56952 13.7814",width:"24",height:"15"},{name:"ChevronUpSm",d:"M15.5693 8.92382L8.56934 1.92382L1.56932 8.92383",width:"17",height:"12"},{name:"ChevronUpDown",d:"M2 15L9 22L16 15M2 10L9 3L16 10",width:"18",height:"25"},{name:"ChevronLeftLg",d:"M21.105 37.25L3.10503 19.25L21.105 1.25",width:"23",height:"39"},{name:"ChevronRight",d:"M2.00001 17.9819L10 9.98193L2 1.98193",width:"13",height:"20"},{name:"ChevronRightLg",d:"M1.10505 37.25L19.105 19.25L1.10504 1.25",width:"23",height:"39"},{name:"Description",d:"M6.11804 7.55835H14.118M6.11804 12.5583H11.118 M1.61804 1.55835H18.618V18.5583H10.118H1.61804V1.55835Z",width:"20",height:"20"},{name:"Difficulty",d:"M14 3.5L25 26.5H3L14 3.5Z",width:"28",height:"28"},{name:"DragHandle",d:"M0 2.5H20M0 8.5H20",width:"20",height:"11"},{name:"DragHandleChevrons",d:"M0.105042 14.4819H20.105M16.105 8.98193L10.105 2.98193L4.10504 8.98194M4.10504 25.9819L10.105 31.9819L16.105 25.9819M0.105042 20.4819H20.105",width:"20",height:"35"},{name:"DragHandle2",d:"M0 14.4819H20M16 8.98193L10 2.98193L4 8.98194M4 19.9819L10 25.9819L16 19.9819",width:"20",height:"29"},{name:"Envelope",width:"28",height:"28",d:"M2 9.5L14 17.5L26 9.5 M2 9.5V23.5H26V9.5 M2 9.5L14 3.5L26 9.5"},{name:"Edit",d:"M8.07107 19.3848L2 19.3848V13.3137L12.3137 3L18.3848 9.07107L8.07107 19.3848ZM8.07107 19.3848H18.3848M4.82842 10.4853
14L10.8995 16.5564",width:"21",height:"21"},{name:"Fullscreen",d:"M2 7.75V17.75L12 17.75 M18 11.75L18 1.75L8 1.75001 M18 1.75L2 17.7499",width:"20",height:"20"},{name:"FullscreenLg",d:"M2 10L2 30L22 30 M30 22L30 2L10 2.00001 M30 2L2 29.9999",width:"32",height:"32"},{name:"Language",d:"M2.40002 10.6073L21.4 10.6073M9.72695 1.55652L8.3698 9.31705V12.5283L9.72695 20.5564M14.3455 20.5565L15.7026 12.796V9.58473L14.3455 1.55659M14.4706 1.55652H9.32944L4.97061 4.09089L2.40002 8.38831V13.457L4.97061 17.7545L9.32944 20.2888H14.4706L18.8294 17.7545L21.4 13.457V8.38831L18.8294 4.09089L14.4706 1.55652Z",width:"23",height:"23"},{name:"Chat",d:"M11.3986 7.50238H6.39856M17.3986 7.50238H14.3986M21.3986 1.50238H2.39856V15.5024H5.39856V19.5024L12.3986 15.5024H21.3986V1.50238Z",width:"23",height:"23"},{name:"Luggage",d:"M37.5,29.5v-17l-4-4h-28l-4,4l0,17l4,4h28L37.5,29.5z M24.5,1.5h-10l0,7v-7H24.5l0,7L24.5,1.5z",width:"39",height:"36"},{name:"LuggageSmall",d:"M33.5,24.5v-14l-4-4h-24l-4,4v14l4,4h24L33.5,24.5z M22.5,1.5h-10v5v-5H22.5v5V1.5z",width:"36",height:"31"},{name:"LuggageNotSaved",d:"M15.2985 7.97559H12.2985H9.49854 M27.2986 7.97559H24.4986H21.3986 M34.3986 11.9756L30.3986 7.97559 M34.3986 19.9756V15.0756 M32.4985 27.8756L34.3985 25.9756V22.9756 M24.3986 29.9756H27.3986H30.3986 M15.3986 29.9756H18.3986H21.3986 M6.39856 29.9756H9.39856H12.3986 M2.39856 22.9756V25.9756L4.29856 27.8756 M2.39856 15.0756V19.9756 M6.39856 7.97559L2.39856 11.9756 M13.3986 4.47559V1.97559H23.3986V4.47559",width:"36",height:"32"},{name:"LuggageEmpty",d:"M33.6954 26.1653V12.1653L29.6954 8.16528H5.69543L1.69543 12.1653V26.1653L5.69543 30.1653H29.6954L33.6954 26.1653Z M12.6954 8.16528V2.16528H22.6954V8.16528",width:"36",height:"32"},{name:"LuggageSaving",d:"M33.6954 25.9819V11.9819L29.6954 7.98193H5.69543L1.69543 11.9819V25.9819L5.69543 29.9819H29.6954L33.6954 25.9819Z M12.6954 7.98193V1.98193H22.6954V7.98193 M9.89856 19.5H12.8986 M15.8986 19.5H18.8986 M21.8986 19.5H24.8986",width:"36",height:"32"},{name:"LuggageSaved",d:"M33.6954 25.9819V11.9819L29.6954 7.98193H5.69543L1.69543 11.9819V25.9819L5.69543 29.9819H29.6954L33.6954 25.9819Z M11.9944 17.9457L16.6825 22.6338L24.7979 14.5183 M12.6954 7.98193V1.98193H22.6954V7.98193",width:"36",height:"32"},{name:"Photo",d:"M10.3843 12.5583L18.5 1.5083M1.5 12.5583H18.5M1.5 7.39472H5.5L8.42674 4.46798V1.5083 M1.5 1.55835H18.5V18.5583H10H1.5V1.55835Z",width:"20",height:"20"},{name:"Link",d:"M19.7927 14.1982H25.7927L29.7927 8.19818L25.7927 2.19818H16.7927L12.7927 8.19818 M12.7927 2.19818H6.79272L2.79272 8.19818L6.79272 14.1982H15.7927L19.7927 8.19818",width:"32",height:"16"},{name:"Check",d:"M1.6264 7.79383L8.31448 14.4819L21.4299 1.36649",width:"23",height:"17"},{name:"Menu",d:"M0 18H20 M0 10H20 M0 2H20",width:"20",height:"20"},{name:"MapPin",width:"24",height:"30",d:"M19.2968 4.2L21.9968 8.8V14.2L19.2968 20.8L11.9968 28L4.69676 20.8L1.99677 14.2V8.8L4.69676 4.2L9.29677 1.5H14.6968L19.2968 4.2Z M13.0968 7.5H10.8968L9.09677 8.6L7.99677 10.4V12.6L9.09677 14.4L10.8968 15.5H13.0968L14.8968 14.4L15.9968 12.6V10.4L14.8968 8.6L13.0968 7.5Z"},{name:"Person",d:"M2 19.5618L4.70588 16.9736L9.29412 14.2677H14.7059L19.2941 16.9736L22 19.5618 M13.6235 2.2677H10.3765L7.62353 3.89123L6 6.64417V9.89123L7.62353 12.6442L10.3765 14.2677H13.6235L16.3765 12.6442L18 9.89123V6.64417L16.3765 3.89123L13.6235 2.2677Z",width:"24",height:"21"},{name:"LogOut",d:"M10.8986 18.7661L15.8986 13.7661L10.8986 8.76605 M15.8986 13.7661H0.89856 M7.02356 18.7661V24.7661H21.0236V2.76605H7.02356V8.76605",width:"23",height:"27"},{name:"Plus",d:"M20 10H0 M10 0L10 20",width:"20",height:"20"},{name:"PlusSmall",d:"M14 7H0M7 0L7 14",width:"14",height:"14"},{name:"Minus",d:"M20 1.5H0",width:"20",height:"20"},{name:"Service",width:"24",height:"29",d:"M14.7059 1.5H9.29412L4.70588 4.20588L2 8.79412V14.2059L4.70588 18.7941L12 26.5L19.2941 18.7941L22 14.2059V8.79412L19.2941 4.20588L14.7059 1.5Z M13.0824 7.5H10.9176L9.08235 8.58235L8 10.4176V12.5824L9.08235 14.4176L10.9176 15.5H13.0824L14.9176 14.4176L16 12.5824V10.4176L14.9176 8.58235L13.0824 7.5Z"},{name:"SubCatBus",width:"28",height:"28",d:"M4 1.5L1.5 3.75V23.5H26.5V3.75L24 1.5H4Z M1.5 12.5H26.5 M5.5 18H10.5 M17.5 18H22.5 M3 23.5C3 25.2574 3 26.2426 3 28 M25 23.5C25 25.2574 25 26.2426 25 28"},{name:"SubCatCar",width:"28",height:"28",d:"M6.27686 11.5024H22.2769M6.27686 11.5024L7.27686 2.50238L9.27686 1.50238H19.2769L21.2769 2.50238L22.2769 11.5024M6.27686 11.5024L4.02686 12.2524L1.77686 15.0024V23.5024H26.7769V15.0024L24.5269 12.2524L22.2769 11.5024M5.27686 17.5024H10.2769M18.2769 17.5024H23.2769M23.7769 28V23.5024M4.77686 23.5024V28 M6.27686 8.07892L1.27686 8.07892 M27.2769 8.07892L22.2769 8.07892"},{name:"SubCatFerry",width:"28",height:"28",d:"M4 22.5024L2 13.5024H26L24 22.5024L14 26.5024L4 22.5024Z M6 7.50238V13.5024H22V7.50238H6Z M11 1.50238V7.50238H17V1.50238H11Z"},{name:"SubCatPlane",width:"28",height:"28",d:"M10.5 7.5L11.25 4L14 2.5L16.75 4L17.5 7.5L17.75 12L26.5 14.9375V19.875L17.375 18.75L17 22.5L19.5 25.5V27.5H8.5V25.5L11 22.5L10.625 18.75L1.5 19.875V14.9375L10.25 12L10.5 7.5Z"},{name:"SubCatTrain",width:"28",height:"28",d:"M10 20.5L1 26.5M27 26.5L18 20.5M8 20.5H20L22 17V3.7
145L20 1.5H8L6 3.75V17L8 20.5Z M6 9.5H14M14 2.5V9.5M14 9.5H22"},{name:"Search",d:"M12.1647 2H7.83529L4.16471 4.16471L2 7.83529V12.1647L4.16471 15.8353L7.83529 18H12.1647L15.8353 15.8353L18 12.1647V7.83529L15.8353 4.16471L12.1647 2Z M16 16L20.5 20.5",width:"22",height:"22"},{name:"Share",d:"M12.8986 2.2677H2.89856V22.2677H22.8986V12.2677M15.3986 2.2677H22.8986V9.7677 M10.8986 14.2677L22.8986 2.2677",width:"25",height:"25"},{name:"Time",d:"M17.3824 1.5H10.6176L4.88235 4.88235L1.5 10.6176V17.3824L4.88235 23.1176L10.6176 26.5H17.3824L23.1176 23.1176L26.5 17.3824V10.6176L23.1176 4.88235L17.3824 1.5Z M14 6V14L18 17",width:"28",height:"28"},{name:"Trash",d:"M10.0001 9.48193L10.0001 18.5M10.0001 18.5H16.0001L18.0001 9.48193H2.00012L4.00012 18.5H10.0001ZM20 3.48193H10.0001M0 3.48193H10.0001M10.0001 3.48193V0",width:"20",height:"20"},{name:"X",d:"M18.6569 1.34315L1.34314 18.6569 M1.34314 1.34315L18.6569 18.6569",width:"20",height:"20"},{name:"PlanStart",d:"M2.00012 22.4819V2.48193H22.0001V22.4819M2.00012 10.4819H22.0001",width:"24",height:"23"},{name:"PlanEnd",d:"M8.35464 10.4901L12.0489 3.39417L17.8294 8.79513L23.0602 9.12678L19.366 16.2227L14.1351 15.8911L8.35464 10.4901ZM8.35464 10.4901L1.5072 23.6429",width:"26",height:"25"},{name:"Star",d:"M18 4.8541L20.6147 12.9012L20.9514 13.9377H22.0413H30.5025L23.6572 18.9111L22.7755 19.5517L23.1123 20.5881L25.727 28.6353L18.8817 23.6619L18 23.0213L17.1183 23.6619L10.273 28.6353L12.8877 20.5881L13.2245 19.5517L12.3428 18.9111L5.49751 13.9377H13.9587H15.0486L15.3853 12.9012L18 4.8541Z",width:"36",height:"33"},{name:"Map",d:"M1.5 21.5V3.00001L7.75 7L14 2.52789L20.25 7L26.4979 3.00001V21.5L20.25 26L14 21.5006L7.75 26L1.5 21.5Z M13.999 2.52789V21.5279 M20.25 7V26 M7.75 7V26",width:"28",height:"28"},{name:"List",d:"M6.03077 26.4999H28M0 26.4999H3.01538M6.03077 18.1666H28M0 18.1666H3.01538M6.03077 1.5H28M0 1.5H3.01538M6.03077 9.83331H28M0 9.83331H3.01538",width:"28",height:"28"},{name:"Info",d:"M14.706 2.48193H9.29424L4.706 5.18782L2.00012 9.77605V15.1878L4.706 19.7761L9.29424 22.4819H14.706L19.2942 19.7761L22.0001 15.1878V9.77605L19.2942 5.18782L14.706 2.48193Z M12.0001 18.4819V11.4819M12.0001 9.48193V6.48193",width:"24",height:"24"},{name:"Dodecagon",d:"M24.8706 1.5H15.1294L6.87059 6.37059L2 14.6294V24.3706L6.87059 32.6294L15.1294 37.5H24.8706L33.1294 32.6294L38 24.3706C38 20.5664 38 18.4336 38 14.6294L33.1294 6.37059L24.8706 1.5Z",width:"40",height:"40"},{name:"Distance",d:"M8.42 2.58238L9.5 4.42238V6.58238L8.42 8.42238L5.5 11.7024L2.58 8.42238L1.5 6.58238V4.42238L2.58 2.58238L4.42 1.50238H6.58L8.42 2.58238Z M25.42 7.08L26.5 8.92V11.08L25.42 12.92L22.5 16.2L19.58 12.92L18.5 11.08V8.92L19.58 7.08L21.42 6H23.58L25.42 7.08Z M22.5 20.5L20.2538 26.5H17.0077L13.7577 19.1663L7.25769 22.03L5.5 16",width:"28",height:"28"},{name:"GreenCertificate",d:"M2 26.92V12.5936L6.32941 5.25245L12.6706 1.92303H27V16.2524L23.6706 22.5936L16.3294 26.923L2 26.92ZM2 26.92L7.8275 21.0955M19.6256 9.29746L13.6706 15.2524M7.8275 12.5936V21.0955M7.8275 21.0955H16.3294M7.8275 21.0955L13.6706 15.2524M13.6706 9.29746V15.2524M13.6706 15.2524H19.6256",width:"29",height:"29"},{name:"Reset",d:"M7.89856 17.6614V7.49673L10.0633 3.82614L13.7339 1.66144H18.0633L21.7339 3.82614L23.8986 7.49673V11.8261L21.7339 15.4967L18.0633 17.6614H13.8986 M1.89856 11.6614L7.89856 17.6614L13.8986 11.6614",width:"26",height:"20"},{name:"VideoPlay",d:"M22.2999 13.9263L4.29993 24.9263L4.29993 2.92627L22.2999 13.9263Z",width:"28",height:"28"},{name:"VideoPause",d:"M5.5 4L5.5 24M22.5 4V24",width:"28",height:"28"},{name:"VideoFullScreen",d:"M4.5 14L4.5 24H14.5M23.5 14V4L13.5 4",width:"28",height:"28"},{name:"VideoMinimise",d:"M17 2L17 11L26 11 M11 26L11 17L2 17",width:"28",height:"28"},{name:"Warning",d:"M29 27.315L16 3.31497L3 27.315L29 27.315Z M15.9999 12.0869L16 19.0869 M15.9999 21.0869L16 24.0869",width:"32",height:"29"}],u={Activity:{width:"24",height:"29",d:"M14.7059 1.5H9.29412L4.70588 4.20588L2 8.79412V14.2059L4.70588 18.7941L12 26.5L19.2941 18.7941L22 14.2059V8.79412L19.2941 4.20588L14.7059 1.5Z M13.0824 7.5H10.9176L9.08235 8.58235L8 10.4176V12.5824L9.08235 14.4176L10.9176 15.5H13.0824L14.9176 14.4176L16 12.5824V10.4176L14.9176 8.58235L13.0824 7.5Z"},ArrowLeft:{d:"M11 18L2.99999 10L11 2 M3 10H21",width:"20",height:"19"},ArrowRight:{d:"M10 18L18 10L10 2 M18 10H0",width:"20",height:"19"},ArrowDown:{d:"M1.10504 10.4819L9.10504 18.4819L17.105 10.4819 M9.10504 18.4819L9.10504 0.481934",width:"19",height:"20"},ArrowUp:{d:"M17.5 10.5181L9.5 2.51806L1.5 10.5181 M9.5 2.51807L9.5 20.5181",width:"19",height:"20"},ArrowUpRight:{d:"M14.6569 13.1388V1.82507L3.34314 1.82508 M1.92896 14.553L14.6569 1.82507",width:"17",height:"16"},Calendar:{width:"28",height:"28",d:"M26.5 17.5L15.5 26.5M26.5 17.5V10.5M26.5 17.5H15.5V26.5M26.5 17.5V26.5H15.5M1.5 10.5H26.5M26.5 10.5V3.5H23M15.5 26.5H1.5V3.5H5M16 3.5H12 M8.5 0V7M19.5 0V7"},CalendarSm:{width:"20",height:"20",d:"M1.5 7.50238H18.5M1.5 13H18.5M7.16667 18.5V7.50238M12.8334 18.5V7.50238M12.83 4V0M7.17 4V0M18.5 2L18.5 18.5024L1.5 18.5V2"},CatAccommodation:{width:"28",height:"28",d:"M15.5 26.5V7L8.5 2L1.5 7V26.5H15.5ZM15.5 26.5V14.5M6 13H11M6 19H11 M21 26.5V20.5M26.5 14.5V26.5L15.6028 26.5L15.6028 14.5L21 11.5L26.5 14.5Z M1 8H15"},CatCulture:{width:"28",height:"28",d:"M1.5 1.5H26.5V6.5H23.5V11.5H26.5V16.5H23.5V21.5H26.5V26.5H1.5V21.5
14H4.5V16.5H1.5V11.5H4.5V6.5H1.5V1.5Z M10 10.5L14 8.5V21.5M18.0781 21.5H10"},CatFamily:{width:"28",height:"28",d:"M14.5 26.5H26.5V13L26 11L24.5 10L25.5 8V6L23.5 3L20.5 2L17.5 3L15.5 6V8L16.5 10L15 11L14.5 13V17.75V26.5ZM14.5 26.5V20L13 18L11.5 17L12.5 15L11.5 12L8 10L4.5 12L3.5 15L4.5 17L3 18L1.5 20V26.5H14.5Z"},CatFoodDrink:{width:"28",height:"28",d:"M7.5 28V15M7.5 15L1.5 13V0M7.5 15L13.5 13V0M7.5 15V0 M26.5 28V17.6691M26.5 17.6691V5.5L21 14.5L26.5 17.6691Z"},CatOutdoors:{width:"28",height:"28",d:"M10 29L10 3 M-1.01328e-06 27.5H28 M2 23L10 17.75L18 23 M6 7.5L10 3L14 7.5 M4 15L10 11L16 15 M16.0931 4.12591L18.846 2.50238H22.0931L24.846 4.12591L26.4695 6.87885V10.1259L24.846 12.8789L22.0931 14.5024H18.846"},CatShopping:{width:"28",height:"28",d:"M4.2 9.5H25.8L27.5 26.5H2.5L4.2 9.5Z M10.2 1.5H19.8V9.5H10.2V1.5Z"},CatSightseeing:{width:"28",height:"28",d:"M26.5 26.5024V7.00238H20L18 1.50238H10L8 7.00238H1.5V26.5024H26.5Z M12.6471 11H15.3529L17.6471 12.3529L19 14.6471V17.3529L17.6471 19.6471L15.3529 21H12.6471L10.3529 19.6471L9 17.3529V14.6471L10.3529 12.3529L12.6471 11Z"},CatTransport:{width:"28",height:"28",d:"M4 1.5L1.5 3.75V23.5H26.5V3.75L24 1.5H4Z M1.5 12.5H26.5 M5.5 18H10.5 M17.5 18H22.5 M3 23.5C3 25.2574 3 26.2426 3 28 M25 23.5C25 25.2574 25 26.2426 25 28"},CatWellness:{width:"28",height:"28",d:"M26.5 26.4431V21.9431L22.75 20.2227L17 18.5024V16.5024L19.5 14.5024L20 11.5024V8.50238L18 5.00238L14 3.50238L10 5.00238L8 8.50238V11.5024L8.5 14.5024L11 16.5024V18.5024L5.25 20.2227L1.5 21.9431V26.4431H26.5Z M2.57455 12.6088V7.39603L6.0497 1.31451M25.4255 12.6088V7.39603L21.9503 1.31451"},ChevronDown:{d:"M2 2.00001L12 12L22 2",width:"24",height:"15"},ChevronDownSm:{d:"M1.56958 1.92384L8.56958 8.92384L15.5696 1.92383",width:"17",height:"12"},ChevronLeft:{d:"M11 17.25L2.99999 9.25L11 1.25",width:"13",height:"18"},ChevronUp:{d:"M22.5695 13.7814L12.5695 3.78137L2.56952 13.7814",width:"24",height:"15"},ChevronUpSm:{d:"M15.5693 8.92382L8.56934 1.92382L1.56932 8.92383",width:"17",height:"12"},ChevronUpDown:{d:"M2 15L9 22L16 15M2 10L9 3L16 10",width:"18",height:"25"},ChevronLeftLg:{d:"M21.105 37.25L3.10503 19.25L21.105 1.25",width:"23",height:"39"},ChevronRight:{d:"M2.00001 17.9819L10 9.98193L2 1.98193",width:"13",height:"20"},ChevronRightLg:{d:"M1.10505 37.25L19.105 19.25L1.10504 1.25",width:"23",height:"39"},Description:{d:"M6.11804 7.55835H14.118M6.11804 12.5583H11.118 M1.61804 1.55835H18.618V18.5583H10.118H1.61804V1.55835Z",width:"20",height:"20"},Difficulty:{d:"M14 3.5L25 26.5H3L14 3.5Z",width:"28",height:"28"},Dots:{d:"M0 2H3M7 2H10M14 2H17",width:"17",height:"4"},DragHandle:{d:"M0 2.5H20M0 8.5H20",width:"20",height:"11"},DragHandleChevrons:{d:"M0.105042 14.4819H20.105M16.105 8.98193L10.105 2.98193L4.10504 8.98194M4.10504 25.9819L10.105 31.9819L16.105 25.9819M0.105042 20.4819H20.105",width:"20",height:"35"},DragHandle2:{d:"M0 14.4819H20M16 8.98193L10 2.98193L4 8.98194M4 19.9819L10 25.9819L16 19.9819",width:"20",height:"29"},Edit:{d:"M8.07107 19.3848L2 19.3848V13.3137L12.3137 3L18.3848 9.07107L8.07107 19.3848ZM8.07107 19.3848H18.3848M4.82842 10.4853L10.8995 16.5564",width:"21",height:"21"},Fullscreen:{d:"M2 7.75V17.75L12 17.75 M18 11.75L18 1.75L8 1.75001 M18 1.75L2 17.7499",width:"20",height:"20"},FullscreenLg:{d:"M2 10L2 30L22 30 M30 22L30 2L10 2.00001 M30 2L2 29.9999",width:"32",height:"32"},Language:{d:"M2.40002 10.6073L21.4 10.6073M9.72695 1.55652L8.3698 9.31705V12.5283L9.72695 20.5564M14.3455 20.5565L15.7026 12.796V9.58473L14.3455 1.55659M14.4706 1.55652H9.32944L4.97061 4.09089L2.40002 8.38831V13.457L4.97061 17.7545L9.32944 20.2888H14.4706L18.8294 17.7545L21.4 13.457V8.38831L18.8294 4.09089L14.4706 1.55652Z",width:"23",height:"23"},Chat:{d:"M11.3986 7.50238H6.39856M17.3986 7.50238H14.3986M21.3986 1.50238H2.39856V15.5024H5.39856V19.5024L12.3986 15.5024H21.3986V1.50238Z",width:"23",height:"23"},Luggage:{d:"M37.5,29.5v-17l-4-4h-28l-4,4l0,17l4,4h28L37.5,29.5z M24.5,1.5h-10l0,7v-7H24.5l0,7L24.5,1.5z",width:"39",height:"36"},LuggageSmall:{d:"M33.5,24.5v-14l-4-4h-24l-4,4v14l4,4h24L33.5,24.5z M22.5,1.5h-10v5v-5H22.5v5V1.5z",width:"36",height:"31"},LuggageNotSaved:{d:"M15.2985 7.97559H12.2985H9.49854 M27.2986 7.97559H24.4986H21.3986 M34.3986 11.9756L30.3986 7.97559 M34.3986 19.9756V15.0756 M32.4985 27.8756L34.3985 25.9756V22.9756 M24.3986 29.9756H27.3986H30.3986 M15.3986 29.9756H18.3986H21.3986 M6.39856 29.9756H9.39856H12.3986 M2.39856 22.9756V25.9756L4.29856 27.8756 M2.39856 15.0756V19.9756 M6.39856 7.97559L2.39856 11.9756 M13.3986 4.47559V1.97559H23.3986V4.47559",width:"36",height:"32"},LuggageEmpty:{d:"M33.6954 26.1653V12.1653L29.6954 8.16528H5.69543L1.69543 12.1653V26.1653L5.69543 30.1653H29.6954L33.6954 26.1653Z M12.6954 8.16528V2.16528H22.6954V8.16528",width:"36",height:"32"},LuggageSaving:{d:"M33.6954 25.9819V11.9819L29.6954 7.98193H5.69543L1.69543 11.9819V25.9819L5.69543 29.9819H29.6954L33.6954 25.9819Z M12.6954 7.98193V1.98193H22.6954V7.98193 M9.89856 19.5H12.8986 M15.8986 19.5H18.8986 M21.8986 19.5H24.8986",width:"36",height:"32"},LuggageSaved:{d:"M33.6954 25.9819V11.9819L29.6954 7.98193H5.69543L1.69543 11.9819V25.9819L5.69543 29.9819H29.6954L33.6954 25.9819Z M11.9944 17.9457L16.6825 22.6338L24.7979 14.5183 M12.6954 7.98193V1.98193H22.6954V7.98193",width:"36",height:"32"},Photo:{d:"M10.3843 12.5583L18.5 1.5083M1.5 12.5583H18.5M1.5 7.39472H5.5L8.42674 4.46798V1.5083 M1.5 1.55835H18.5V18.5583H10H1.5V1.55835Z",width:"20",height:"20"},Link:{d:"M19.7927 14.1982H25.7927L29.7927 8.19818L25.7927 2.19818H16.7927L12.7927 8.19818 M12.7927 2.19818H6.79272L2.79272 8.19818L6.79272 14.1982H15.7927L19.7927 8.19818",width:"32",height:"16"},Check:{d:"M1.6264 7.79383L8.31448 14.4819L21.4299 1.36649",width:"23",height:"17"},Menu:{d:"M0 18H20 M0 10H20 M0 2H20",width:"20",height:"20"},MapPin:{width:"24",height:"30",d:"M19.2968 4.2L21.9968 8.8V14.2L19.2968 20.8L11.9968 28L4.69676 20.8L1.99677 14.2V8.8L4.69676 4.2L9.29677 1.5H14.6968L19.2968 4.2Z M13.0968 7.5H10.8968L9.09677 8.6L7.99677 10.4V12.6L9.09677 14.4L10.8968 15.5H13.0968L14.8968 14.4L15.9968 12.6V10.4L14.8968 8.6L13.0968 7.5Z"},Person:{d:"M2 19.5618L4.70588 16.9736L9.29412 14.2677H14.7059L19.2941 16.9736L22 
1419.5618 M13.6235 2.2677H10.3765L7.62353 3.89123L6 6.64417V9.89123L7.62353 12.6442L10.3765 14.2677H13.6235L16.3765 12.6442L18 9.89123V6.64417L16.3765 3.89123L13.6235 2.2677Z",width:"24",height:"21"},LogOut:{d:"M10.8986 18.7661L15.8986 13.7661L10.8986 8.76605 M15.8986 13.7661H0.89856 M7.02356 18.7661V24.7661H21.0236V2.76605H7.02356V8.76605",width:"23",height:"27"},Plus:{d:"M20 10H0 M10 0L10 20",width:"20",height:"20"},PlusSmall:{d:"M14 7H0M7 0L7 14",width:"14",height:"14"},Minus:{d:"M20 1.5H0",width:"20",height:"20"},Service:{width:"24",height:"29",d:"M14.7059 1.5H9.29412L4.70588 4.20588L2 8.79412V14.2059L4.70588 18.7941L12 26.5L19.2941 18.7941L22 14.2059V8.79412L19.2941 4.20588L14.7059 1.5Z M13.0824 7.5H10.9176L9.08235 8.58235L8 10.4176V12.5824L9.08235 14.4176L10.9176 15.5H13.0824L14.9176 14.4176L16 12.5824V10.4176L14.9176 8.58235L13.0824 7.5Z"},SubCatBus:{width:"28",height:"28",d:"M4 1.5L1.5 3.75V23.5H26.5V3.75L24 1.5H4Z M1.5 12.5H26.5 M5.5 18H10.5 M17.5 18H22.5 M3 23.5C3 25.2574 3 26.2426 3 28 M25 23.5C25 25.2574 25 26.2426 25 28"},SubCatCar:{width:"28",height:"28",d:"M6.27686 11.5024H22.2769M6.27686 11.5024L7.27686 2.50238L9.27686 1.50238H19.2769L21.2769 2.50238L22.2769 11.5024M6.27686 11.5024L4.02686 12.2524L1.77686 15.0024V23.5024H26.7769V15.0024L24.5269 12.2524L22.2769 11.5024M5.27686 17.5024H10.2769M18.2769 17.5024H23.2769M23.7769 28V23.5024M4.77686 23.5024V28 M6.27686 8.07892L1.27686 8.07892 M27.2769 8.07892L22.2769 8.07892"},SubCatFerry:{width:"28",height:"28",d:"M4 22.5024L2 13.5024H26L24 22.5024L14 26.5024L4 22.5024Z M6 7.50238V13.5024H22V7.50238H6Z M11 1.50238V7.50238H17V1.50238H11Z"},SubCatPlane:{width:"28",height:"28",d:"M10.5 7.5L11.25 4L14 2.5L16.75 4L17.5 7.5L17.75 12L26.5 14.9375V19.875L17.375 18.75L17 22.5L19.5 25.5V27.5H8.5V25.5L11 22.5L10.625 18.75L1.5 19.875V14.9375L10.25 12L10.5 7.5Z"},SubCatTrain:{width:"28",height:"28",d:"M10 20.5L1 26.5M27 26.5L18 20.5M8 20.5H20L22 17V3.75L20 1.5H8L6 3.75V17L8 20.5Z M6 9.5H14M14 2.5V9.5M14 9.5H22"},Search:{d:"M12.1647 2H7.83529L4.16471 4.16471L2 7.83529V12.1647L4.16471 15.8353L7.83529 18H12.1647L15.8353 15.8353L18 12.1647V7.83529L15.8353 4.16471L12.1647 2Z M16 16L20.5 20.5",width:"22",height:"22"},Share:{d:"M12.8986 2.2677H2.89856V22.2677H22.8986V12.2677M15.3986 2.2677H22.8986V9.7677 M10.8986 14.2677L22.8986 2.2677",width:"25",height:"25"},Time:{d:"M17.3824 1.5H10.6176L4.88235 4.88235L1.5 10.6176V17.3824L4.88235 23.1176L10.6176 26.5H17.3824L23.1176 23.1176L26.5 17.3824V10.6176L23.1176 4.88235L17.3824 1.5Z M14 6V14L18 17",width:"28",height:"28"},Trash:{d:"M10.0001 9.48193L10.0001 18.5M10.0001 18.5H16.0001L18.0001 9.48193H2.00012L4.00012 18.5H10.0001ZM20 3.48193H10.0001M0 3.48193H10.0001M10.0001 3.48193V0",width:"20",height:"20"},X:{d:"M18.6569 1.34315L1.34314 18.6569 M1.34314 1.34315L18.6569 18.6569",width:"20",height:"20"},XSmall:{d:"M16.6568 3.34314L3.34314 16.6568M3.34316 3.34315L16.6569 16.6569",width:"20",height:"20"},PlanStart:{d:"M2.00012 22.4819V2.48193H22.0001V22.4819M2.00012 10.4819H22.0001",width:"24",height:"23"},PlanEnd:{d:"M8.35464 10.4901L12.0489 3.39417L17.8294 8.79513L23.0602 9.12678L19.366 16.2227L14.1351 15.8911L8.35464 10.4901ZM8.35464 10.4901L1.5072 23.6429",width:"26",height:"25"},Star:{d:"M18 4.8541L20.6147 12.9012L20.9514 13.9377H22.0413H30.5025L23.6572 18.9111L22.7755 19.5517L23.1123 20.5881L25.727 28.6353L18.8817 23.6619L18 23.0213L17.1183 23.6619L10.273 28.6353L12.8877 20.5881L13.2245 19.5517L12.3428 18.9111L5.49751 13.9377H13.9587H15.0486L15.3853 12.9012L18 4.8541Z",width:"36",height:"33"},Map:{d:"M1.5 21.5V3.00001L7.75 7L14 2.52789L20.25 7L26.4979 3.00001V21.5L20.25 26L14 21.5006L7.75 26L1.5 21.5Z M13.999 2.52789V21.5279 M20.25 7V26 M7.75 7V26",width:"28",height:"28"},List:{d:"M6.03077 26.4999H28M0 26.4999H3.01538M6.03077 18.1666H28M0 18.1666H3.01538M6.03077 1.5H28M0 1.5H3.01538M6.03077 9.83331H28M0 9.83331H3.01538",width:"28",height:"28"},Info:{d:"M14.706 2.48193H9.29424L4.706 5.18782L2.00012 9.77605V15.1878L4.706 19.7761L9.29424 22.4819H14.706L19.2942 19.7761L22.0001 15.1878V9.77605L19.2942 5.18782L14.706 2.48193Z M12.0001 18.4819V11.4819M12.0001 9.48193V6.48193",width:"24",height:"24"},Dodecagon:{d:"M24.8706 1.5H15.1294L6.87059 6.37059L2 14.6294V24.3706L6.87059 32.6294L15.1294 37.5H24.8706L33.1294 32.6294L38 24.3706C38 20.5664 38 18.4336 38 14.6294L33.1294 6.37059L24.8706 1.5Z",width:"40",height:"40"},Distance:{d:"M8.42 2.58238L9.5 4.42238V6.58238L8.42 8.42238L5.5 11.7024L2.58 8.42238L1.5 6.58238V4.42238L2.58 2.58238L4.42 1.50238H6.58L8.42 2.58238Z M25.42 7.08L26.5 8.92V11.08L25.42 12.92L22.5 16.2L19.58 12.92L18.5 11.08V8.92L19.58 7.08L21.42 6H23.58L25.42 7.08Z M22.5 20.5L20.2538 26.5H17.0077L13.7577 19.1663L7.25769 22.03L5.5 16",width:"28",height:"28"},GreenCertificate:{d:"M2 26.92V12.5936L6.32941 5.25245L12.6706 1.92303H27V16.2524L23.6706 22.5936L16.3294 26.923L2 26.92ZM2 26.92L7.8275 21.0955M19.6256 9.29746L13.6706 15.2524M7.8275 12.5936V21.0955M7.8275 21.0955H16.3294M7.8275 21.0955L13.6706 15.2524M13.6706 9.29746V15.2524M13.6706 15.2524H19.6256",width:"29",height:"29"},Reset:{d:"M7.89856 17.6614V7.49673L10.0633 3.82614L13.7339 1.66144H18.0633L21.7339 3.82614L23.8986 7.49673V11.8261L21.7339 15.4967L18.0633 17.6614H13.8986 M1.89856 11.6614L7.89856 17.6614L13.8986 11.6614",width:"26",height:"20"},VideoPlay:{d:"M22.2999 13.9263L4.29993 24.9263L4.29993 2.92627L22.2999 13.9263Z",width:"28",height:"28"},VideoPause:{d:"M5.5 4L5.5 24M22.5 4V24",width:"28",height:"28"},VideoFullScreen:{d:"M4.5 14L4.5 24H14.5M23.5 14V4L13.5 4",width:"28",height:"28"},VideoMinimise:{d:"M17 2L17 11L26 11 M11 26L11 17L2 17",width:"28",height:"28"},Warning:{d:"M29 27.315L16 3.31497L3 27.315L29 27.315Z M15.9999 12.0869L16 19.0869 M15.9999 21.0869L16 24.0869",width:"32",height:"29"},Offer:{d:"M11.6298 2.65324L12 2.74816L12.3701 2.65405L14.6593 2.07L16.3521 3.72032L16.6259 3.98766L16.9944 4.09114L19.2688 4.73131L19.9088 7.00649L20.0123 7.37405L20.2796 7.
1464718L21.9291 9.33945L21.3467 11.6297L21.2518 11.9999L21.3459 12.37L21.929 14.6594L20.2796 16.352L20.0123 16.6258L19.9088 16.9943L19.2677 19.2689L16.9935 19.9087L16.6259 20.0122L16.3528 20.2795L14.6605 21.929L12.3702 21.3466L12 21.2517L11.63 21.3458L9.33962 21.9292L7.64799 20.2795L7.37415 20.0122L7.00571 19.9087L4.73008 19.2679L4.09131 16.9934L3.98777 16.6258L3.72047 16.3527L2.07006 14.6607L2.65335 12.3701L2.74827 11.9999L2.65416 11.6298L2.06985 9.33976L3.72043 7.64788L3.98777 7.37404L4.09125 7.0056L4.73117 4.73022L7.0066 4.0912L7.37416 3.98766L7.64729 3.72036L9.33931 2.06995L11.6298 2.65324Z M15.0001 7L9.00012 17.3923 M16.5 14.1962L15 16.7942 M8.5 8.19617L7 10.7942",width:"24",height:"24"},OfferAlternative:{d:"M14.7059 2H9.29412L4.70588 4.70588L2 9.29412V14.7059L4.70588 19.2941L9.29412 22H14.7059L19.2941 19.2941L22 14.7059V9.29412L19.2941 4.70588L14.7059 2Z M15.0001 6.80383L9.00012 17.1961 M16.5 14L15 16.5981 M8.5 8L7 10.5981",width:"24",height:"24"}},c=e=>{let{className:t,icon:n,strokeColor:i,dashed:a,size:c,regionId:d}=e,h=u[n]||l.find(e=>e.name===n);if(!h)return null;let f=e=>{let{fitCSS:n={}}=e;return(0,r.jsx)("svg",{className:o()(!i&&"stroke-current","black"===i&&"stroke-black","blue"===i&&"stroke-blue","blueDark"===i&&"stroke-blue-dark","white"===i&&"stroke-white","green"===i&&"stroke-green",d===s.Ei.stavanger&&"stroke-grey-aa",t),fill:"none",viewBox:`0 0 ${h.width} ${h.height}`,width:`${h.width}px`,height:`${h.height}px`,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",strokeDasharray:a?"3 3":void 0,strokeLinejoin:"miter",style:n,preserveAspectRatio:"xMinYMin meet",children:(0,r.jsx)("path",{d:h.d,className:"lg:stroke-3 stroke-2"})})};return c?(0,r.jsx)("div",{className:"relative",style:{width:`${c}px`,height:`${c}px`,top:"1px"},children:(0,r.jsx)(f,{fitCSS:{position:"absolute",left:0,top:0,width:`${c}px`,height:`${c}px`}})}):(0,r.jsx)(f,{})},d=e=>{let{className:t="",dashed:n,fit:i,icon:o,size:s,strokeColor:l,regionId:u}=e;return(0,r.jsx)(r.Fragment,{children:"Spinner"===o?(0,r.jsx)(a.A,{loading:!0,strokeColor:l}):(0,r.jsx)(r.Fragment,{children:c({className:t,dashed:n,icon:o,size:s,strokeColor:l,regionId:u})})})}},94424:(e,t,n)=>{"use strict";n.d(t,{pS:()=>i,y6:()=>r});let r=500,i=1e3},49166:(e,t,n)=>{"use strict";n.d(t,{H:()=>a,Z:()=>l});var r=n(74848),i=n(5556),o=n.n(i),s=n(96540);let a=(0,s.createContext)({currentRegion:null,focusedRegion:null}),l=e=>{let{children:t}=e,[n,i]=(0,s.useState)(null),[o,l]=(0,s.useState)(null);return(0,r.jsx)(a.Provider,{value:{currentRegion:n,setCurrentRegion:i,focusedRegion:o,setFocusedRegion:l},children:t})};l.propTypes={children:o().node}},18477:(e,t,n)=>{"use strict";n.d(t,{q:()=>l,s:()=>u});var r=n(74848),i=n(76424),o=n(5556),s=n.n(o),a=n(96540);let l=(0,a.createContext)(),u=e=>{let{children:t}=e;return(0,r.jsx)(a.Suspense,{fallback:null,children:(0,r.jsx)(c,{children:t})})},c=e=>{let{children:t}=e,n=(0,i.useSearchParams)().get("viewPlan"),[o,s]=(0,a.useState)(!0),[u,c]=(0,a.useState)(n?1:0),[d,h]=(0,a.useState)({left:0}),[f,p]=(0,a.useState)(null),[g,m]=(0,a.useState)({}),[y,v]=(0,a.useState)({}),[b,w]=(0,a.useState)({});return(0,r.jsx)(l.Provider,{value:{showUi:o,setShowUi:s,selectedTabIndex:u,setSelectedTabIndex:c,mapPadding:d,setMapPadding:h,currentRoute:f,setCurrentRoute:p,scrollRestoration:g,setScrollRestoration:m,debouncedViewport:y,setDebouncedViewport:v,productFilters:b,setProductFilters:w},children:t})};u.propTypes={children:s().node}},28657:(e,t,n)=>{"use strict";n.d(t,{DT:()=>O,Ir:()=>u,sM:()=>g,C7:()=>b,Hg:()=>L.H,o7:()=>M,$o:()=>x,qZ:()=>P.q,dl:()=>A,kY:()=>T});var r=n(74848),i=n(5176),o=n(96540),s=n(46914),a=n(5556),l=n.n(a);let u=(0,o.createContext)({errors:[]}),c=e=>{let{children:t}=e,[n,i]=(0,o.useState)([]);return(0,r.jsx)(u.Provider,{value:{errors:n,setErrors:i},children:t})};c.propTypes={children:l().node};var d=n(76424);let h=(0,o.createContext)({history:[]}),f=e=>{let{children:t}=e,[n,i]=(0,o.useState)([]),s=(0,d.usePathname)();return(0,o.useEffect)(()=>{i([...n,s])},[s]),(0,r.jsx)(h.Provider,{value:{history:n,setHistory:i},children:t})};f.propTypes={children:l().node};var p=n(49802);let g=(0,o.createContext)({language:"no"}),m=e=>{let{children:t}=e;return(0,r.jsx)(o.Suspense,{fallback:null,children:(0,r.jsx)(y,{children:t})})},y=e=>{let{children:t}=e,n=(0,d.usePathname)(),i=(0,d.useSearchParams)(),s=i.size>0?`${n}?${i.toString()}`:n,a=(0,p.QN)(s),[l,u]=(0,o.useState)(a);return(0,r.jsx)(g.Provider,{value:{language:l,setLanguage:u},children:t})};m.propTypes={children:l().node};let{defaultMyPlan:v}=n(28550).$W,b=(0,o.createContext)({createOrSaveItinerary:!1,directions:{},directionsGeoJson:{},myPlan:v,myPlanIsCollaborative:!1,myPlanLastSaveOrLoad:{},myPlanSuccessfullyCreated:!1,plannerShowGetStarted:!0,plannerMapIsDraggable:!0,plannerSaveStatus:"saved",plannerSaveStatusSuccess:!1}),w=e=>{let{children:t}=e,[n,i]=(0,o.useState)(!1),[s,a]=(0,o.useState)({}),[l,u]=(0,o.useState)({}),[c,d]=(0,o.useState)(v),[h,f]=(0,o.useState)(!1),[p,g]=(0,o.useState)({}),[m,y]=(0,o.useState)(!1),[w,L]=(0,o.useState)("unsaved"),[S,M]=(0,o.useState)(!1),[E,x]=(0,o.useState)(!0),[C,A]=(0,o.useState)(!0);return(0,r.jsx)(b.Provider,{value:{createOrSaveItinerary:n,setCreateOrSaveItinerary:i,directions:s,setDirections:a,directionsGeoJson:l,setDirectionsGeoJson:u,myPlan:c,setMyPlan:d,myPlanIsCollaborative:h,setMyPlanIsCollaborative:f,myPlanLastSaveOrLoad:p,setMyPlanLastSaveOrLoad:g,myPlanSuccessfullyCreated:m,setMyPlanSuccessfullyCreated:y,plannerSaveStatus:w,setPlannerSaveStatus:L,plannerSaveStatusSuccess:S,setPlannerSaveStatusSuccess:M,plannerShowGetStarted:E,setPlannerShowGetStarted:x,plannerMapIsDraggable:C,setPlannerMapIsDraggable:A},children:t})};w.propTypes={children:l().node};var L=n(49166),S=n(94424);let M=(0,o.createContext)({searchData:{},autocompleteSearchString:"",autocompleteMatches:{},searchOverlay:!1,searchValueGlobal:"",searchResultLimit:S.pS}),E=e=>{let{children:t}=e,[n,i]=(0,o.useState)({}),[s,a]=(0,o.useState)(""),[l,u]=(0,o.useState)({}),[c,d]=(0,o.useState)(!1),[h,f]=(0,o.useState)(!1),[p,g]=(0,o.useState)(""),[m,y]=(0,o.useState)(S.pS);return(0,r.jsx)(M.Provider,{value:{searchData:n,setSearchData:i,autocompleteSearchString:s,setAutocompleteSearchString:a,autocompleteMatches:l,setAutocompleteMatches:u,isSearching:c,setIsSearching:d,searchOverlay:h,setSearchOverlay:f,searchValueGlobal:p,setSearchValueGlobal:g,searchResultLimit:m,setSearchResultLimit:y},children:t})};E.propTypes={children:l().node};let x=(0,o.createContext)({toastMessage:"",showToast:!1,setShowToast:()=>null,setToastMessage:()=>null}),C=e=>{let{children:t}=e,[n,i]=(0,o.useState)(""),[s,a]=(0,o.useState)(!1);return(0,r.jsx)(x.Provider,{value:{showToast:s,toastMessage:n,setShowToast:a,setToastMessage:i},children:t})},A=(0,o.createContext)({traveller:{}}),k=e=>{let{children:t}=e,[n,i]=(0,o.useState)({});return(0,r.jsx)(A.Provider,{value:{traveller:n,setTraveller:i},children:t})};k.propTypes={children:l().node};var P=n(18477);let T=(0,o.createContext)({uiDarkMode:!1,uiIsLoading:!1,uiIsAnimating:!1,uiVisitedUrls:[]}),R=e=>{let{children:t}=e,[n,i]=(0,o.useState)(!1),[s,a]=(0,o.useState)(!1),[l,u]=(0,o.useState)(!1),[c,d]=(0,o.useState)([]);return(0,r.jsx)(T.Provider,{value:{uiDarkMode:n,setUiDarkMode:i,uiIsLoading:s,setUiIsLoading:a,uiIsAnimating:l,setUiIsAnimating:u,uiVisitedUrls:c,setUiVisitedUrls:d},children:t})};R.propTypes={children:l().node};let j=e=>{let{contexts:t,children:n}=e;return t.reduceRight((e,t)=>o.cloneElement(t,{children:e}),n)},O=e=>{let{children:t}=e;return(0,r.jsx)(j,{contexts:[(0,r.jsx)(c,{},"error"),(0,r.jsx)(f,{},"history"),(0,r.jsx)(m,{}
14,"language"),(0,r.jsx)(s.KU,{},"map"),(0,r.jsx)(w,{},"planner"),(0,r.jsx)(L.Z,{},"regions-map"),(0,r.jsx)(E,{},"search"),(0,r.jsx)(C,{},"toast"),(0,r.jsx)(k,{},"traveller"),(0,r.jsx)(P.s,{},"travel-planner"),(0,r.jsx)(R,{},"ui"),(0,r.jsx)(i.vu,{skipInitialCheck:!0},"user")],children:t})}},64047:(e,t,n)=>{"use strict";n.d(t,{R:()=>l,p:()=>a});var r=n(74848),i=n(76424),o=n(96540);let s=(0,o.createContext)({});function a(e){let{children:t,altRoutes:n}=e;return(0,r.jsx)(s.Provider,{value:{altRoutes:n},children:t})}function l(){let{altRoutes:e}=(0,o.useContext)(s),t=(0,i.useRouter)();return{navigate:function(n){let r=new URLSearchParams(window.location.search).toString(),i=r?`?${r}`:"";if(!e?.[n]){t.push(`/${n}`);return}t.push(e[n]+i)},altRoutes:e}}},4102:(e,t,n)=>{"use strict";n.d(t,{rB:()=>d,Kd:()=>c,Qc:()=>g,_o:()=>p,re:()=>y,Ar:()=>m,pe:()=>h});var r=n(28203),i=n.n(r),o=n(56815);let s=e=>{let t=i()`*[
15    _id == $id
16  ]{
17    _id,
18    _type,
19    title,
20    locTitle,
21    category->{_id, title, locTitle},
22    subCategory->{_id, title, locTitle},
23    place->{
24      title,
25      locTitle,
26    },
27    region->{
28      title,
29      locTitle,
30    },
31    provider->{locTitle},
32  }`;return o.N1.fetch(t,{id:e}).then(e=>e)};var a=n(49802),l=n(21608);let u=e=>(window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:null}),window.dataLayer.push(e),null),c=e=>{let{trackingType:t}=e;u({event:`web.${t??"saveCalendar"}`})},d=e=>{let{trackingType:t,item:n}=e,r=(0,a.sC)({language:"no",translationObj:n?.locTitle,fallback:n?.title}),i=n?._type,o=n?.category?.locTitle?.no||n?.category?.title;u({event:`web.${t??"add"}`,productTitle:r,product_type:i,product_category:o,product_sub_category:n?.subCategory?.locTitle?.no||n?.subCategory?.title,destination:n?.region?.locTitle?.no||n?.region?.title,place:n?.place?.locTitle?.no||n?.place?.title})},h=e=>{let t,n,{pagePath:r,item:i,attraction:o,statusCode:s,isPlanPage:c,siteSettings:d,currentCategory:h,dataHome:f}=e,{inspirationLanding:p,allLandingPage:g,eventsPageData:m,landingPageData:y}=d||{},v=r.split("/")[1];g?t=g[0].locTitle:p?t=p[0].locTitle:m?t=m?.locTitle:h?t=h?.locTitle:f?t=f?.locTitle:y&&(t=y?.locTitle),t?n=(0,l.G)((0,a.sC)({language:v,translationObj:t})):404===s?n="404":c&&(n="Plan page");let b=i?.region?.locTitle?.no||o?.region?.locTitle?.no||i?.campaignRegion?.region?.locTitle?.no||"Fjord Norway",w=(0,l.G)((0,a.sC)({language:v,translationObj:i?.locTitle,fallback:i?.title}));u({statusCode:s,fn_destination:b,fn_provider:i?.provider?.locTitle?.no||"none",fn_campaign_region:i?.campaignRegion?.region?.locTitle?.no||"none",...i?.articleCategory?.locTitle?.en==="Tour suggestions"?{tf_content:i?.articleCategory?.locTitle?.en,tf_time:i?.metadata?.duration?.en,tf_distance:i?.metadata?.distance?.en,tf_transport:i?.metadata?.transport?.en,tf_period:i?.season?.en}:{},event:"virtual_pageview",page_title:w||n,page_path:r})},f=e=>({item_name:(0,a.sC)({language:"no",translationObj:e?.locTitle,fallback:e.title}),item_brand:e?.region?.locTitle?.no,item_campaign_region:e?.campaign?.locTitle.no||"none",item_category:e?._type||e?.type,item_category2:e?.category?.locTitle?.no,item_category3:e?.subCategory?.locTitle?.no||e?.subCategory?.title,item_place:e?.place?.locTitle?.no||e?.place?.title,item_provider:e?.provider?.locTitle?.no||"none"}),p=async e=>{let{trackingType:t,item:n}=e,r=n?._type||n?.type;if(r?.toLowerCase().includes("service")||r?.toLowerCase().includes("activity")||r?.toLowerCase().includes("event")){if(n?.isFullItem===!1){let e=n._id||n.id,[r]=await s(e);u({event:t,ecommerce:{items:[f(r)]}})}else u({event:t,ecommerce:{items:[f(n)]}})}},g=e=>{let{trackingType:t,transactionId:n,plan:r}=e,i=[];r.forEach(e=>{let t=e?.place?.region?.title;e?.products.forEach(e=>{let{activityx:n,servicex:r}=e;n&&i.push(f({...n,region:{title:t}})),r&&i.push(f({...r,region:{title:t}}))})}),u({event:t,currency:"NOK",transactionId:n,ecommerce:{items:i}})},m=e=>{let{trackingType:t,value:n,hitCount:r}=e;u({event:t??"search",searchTerm:n,hitCount:r??0,hasHits:!!r??!1})},y=e=>{let{trackingType:t,fromLanguage:n,toLanguage:r,position:i}=e;u({event:t??"languageSwitch",fromLanguage:n,toLanguage:r,position:i})}}
32,83612:(e,t,n)=>{"use strict";n.d(t,{RI:()=>i,VP:()=>s,oj:()=>o,uG:()=>a});let{inTest:r}=n(28550).$W;function i(e){if(e&&e.constructor===Object)return 0===Object.keys(e).length;r||console.error(`[isEmptyObject]: The object being verified is not an object: ${e}`)}function o(e){if(e&&e.constructor===Object)return Object.keys(e).length>0;r||console.error(`[isNotEmptyObject]: The object being verified is not an object: ${e}`)}function s(e){if(e&&Array.isArray(e))return 0===e.length;r||console.error(`[isEmptyArray]: The array being verified is not an array: ${e}`)}function a(e){if(e&&e.constructor===Array)return e.length>0}},49802:(e,t,n)=>{"use strict";n.d(t,{sC:()=>g,Zq:()=>m,QN:()=>b,vV:()=>h,pF:()=>f,gq:()=>p,nm:()=>v});var r=n(28550);let i=[[/Å/g,"A"],[/Æ/g,"AE"],[/Ø/g,"O"],[/Ä/g,"A"],[/Ë/g,"E"],[/Ï/g,"I"],[/Ö/g,"O"],[/Ü/g,"U"],[/Á/g,"A"],[/É/g,"E"],[/Í/g,"I"],[/Ó/g,"O"],[/Ú/g,"U"],[/å/g,"a"],[/æ/g,"ae"],[/ø/g,"o"],[/ä/g,"a"],[/ë/g,"e"],[/ï/g,"i"],[/ö/g,"o"],[/ü/g,"u"],[/á/g,"a"],[/é/g,"e"],[/í/g,"i"],[/ó/g,"o"],[/ú/g,"u"],[/ß/g,"ss"],[/'"/g,""],[/\s/g,"-"],[/&/g,"og"],[/,/g,""],[/:/g,""],[/\./g,""]],o=e=>{let t=e||"";return t&&i.map(e=>(t=t.replace(e[0],e[1]),null)),"string"!=typeof e&&console.error(`[replaceSpecialChars]: The string being passed is not a string: [${e}], type: (${typeof e})`),t},s=JSON.parse('{"language":{"\'s primary logo":{"en":"\'s primary logo","no":"s prim\xe6rlogo","de":" von Fjord Norwegen"},"A brand icon":{"en":"A brand icon","no":"Et merkeikon","de":"Ein Markenzeichen"},"About the event":{"en":"About the event","no":"Om arrangementet","de":"\xdcber die Veranstaltung"},"About":{"en":"About","no":"Om","de":"\xdcber"},"Activities and services":{"en":"Activities and services","no":"Aktiviteter og tjenester","de":"Aktivit\xe4ten & Dienstleistungen"},"Activities in":{"en":"Activities in","no":"Aktiviteter i","de":"Aktivit\xe4ten in"},"All activities related to {title}":{"en":"All activities related to {title}","no":"Alle aktiviteter tilknyttet {title}","de":"Alle mit {title} verkn\xfcpften Aktivit\xe4ten"},"Activities":{"en":"See and do","no":"Se og gj\xf8re","de":"Sehen und Erleben"},"Attraction":{"en":"Attraction","no":"Attraksjon","de":"Sehensw\xfcrdigkeit"},"Activities: from town life and culture to outdoors and adventure":{"en":"Activities: from town life and culture to outdoors and adventure","no":"Aktiviteter: fra byliv og kultur til friluftsliv og eventyr","de":"Aktivit\xe4ten: Von Stadtleben zu Kultur bis zu Outdoor und Abenteuern"},"Activity":{"en":"Activity","no":"Aktivitet","de":"Aktivit\xe4t"},"Activity level":{"en":"Activity level","no":"Aktivitetsniv\xe5","de":"Aktivit\xe4tslevel"},"Add a destination to your plan":{"en":"Add a destination to your plan","no":"Legg til en destinasjon","de":"F\xfcge deinem Plan ein Reiseziel hinzu"},"Add activity":{"en":"Add activity","no":"Legg til aktivitet","de":"Aktivit\xe4t hinzuf\xfcgen"},"Add again":{"en":"Add again","no":"Legg til igjen","de":"Erneut hinzuf\xfcgen"},"Add date":{"en":"Add date","no":"Legg til dato","de":"Datum hinzuf\xfcgen"},"Add images":{"en":"Add images","no":"Legg til bilder","de":"F\xfcge Bilder hinzu"},"Add new event":{"en":"Add new event","no":"Registrer et nytt arrangement","de":"Registrieren Sie eine neue Veranstaltung"},"Add service":{"en":"Add service","no":"Legg til mat eller overnatting","de":"Service hinzuf\xfcgen"},"Add time":{"en":"Add time","no":"Legg til klokkeslett","de":""},"Add to my plan again":{"en":"Add to my plan again","no":"Legg til reiseplanen min igjen","de":"Wieder zu meinem Reiseplan hinzuf\xfcgen"},"Add to my plan":{"en":"Add to my plan","no":"Legg til reiseplanen min","de":"Zu meinem Plan hinzuf\xfcgen"},"Add trip to my plan":{"en":"Add trip to my plan","no":"Legg turen til reiseplanen min","de":"Die Reise meinem Reiseplan hinzuf\xfcgen"},"Add":{"en":"Add","no":"Legg til","de":"Hinzuf\xfcgen"},"Address":{"en":"Address","no":"Adresse","de":"Adresse"},"Location":{"en":"Venue, arena, scene name, place name","no":"Sted, arena, scene, stedsnavn","de":"Veranstaltungsort, Arena, B\xfchne, Ortsname"},"All attractions":{"en":"All attractions","no":"Alle attraksjoner","de":"Alle Sehensw\xfcrdigkeiten"},"All categories":{"en":"All categories","no":"Alle kategorier","de":"Alle Kategorien"},"All images must have a copyright holder":{"en":"All images must have a copyright holder","no":"Alle bilder m\xe5 ha en rettighetshaver","de":"Alle Bilder m\xfcssen einen Urheber haben"},"All regions":{"en":"All regions","no":"Alle regioner","de":"Alle Reiseziele"}
32,"All":{"en":"All","no":"Alle","de":"Alle"},"An abstracted outline map of Norway":{"en":"An abstracted outline map of Norway","no":"Et abstrahert konturkart over Norge","de":"Eine abstrakte \xdcbersichtskarte von Norwegen"},"An icon of a bridge":{"en":"An icon of a bridge","no":"Et ikon av en bro","de":"Eine ikone einer br\xfccke"},"An icon of mountains":{"en":"An icon of mountains","no":"Et ikon av et fjell","de":"Weltber\xfchmte Berge"},"An icon of trees":{"en":"An icon of trees","no":"Et ikon av tr\xe6r","de":"B\xe4ume mit Kultstatus"},"An icon of waterfalls and historical artifacts":{"en":"An icon of waterfalls and historical artifacts","no":"Et ikon med fosser og historiske gjenstander","de":"Ein ikone von wasserf\xe4lle und historische artefakte"},"An image from Fjord Norway":{"en":"An image from Fjord Norway","no":"Et bilde fra Vestlandet","de":"Ein Bild von Fjord Norwegen"},"Article":{"en":"Article","no":"Artikkel","de":"Artikel"},"Articles":{"en":"Articles","no":"Artikler","de":"Artikel"},"Attractions":{"en":"Attractions","no":"Attraksjoner","de":"Sehensw\xfcrdigkeiten"},"Attraction or place":{"en":"Attraction or place","no":"Attraksjon eller sted","de":"Sehensw\xfcrdigkeit oder Ort"},"Authenticating...":{"en":"Authenticating...","no":"Autentisering...","de":"Authentifizieren..."},"List of regions":{"en":"List of regions","no":"Liste over fylker og regioner","de":"Liste der Regionen"},"Back to no.fjordnorway.com":{"en":"Back to no.fjordnorway.com","no":"Tilbake til no.fjordnorway.com","de":"Zur\xfcck zum no.fjordnorway.com"},"Back to edge of norway":{"en":"Back to Edge of Norway","no":"Tilbake til Edge of Norway","de":"Zur\xfcck zum Edge of Norway"},"Back to planner":{"en":"Back to planner","no":"Tilbake til planleggeren","de":"Zur\xfcck zum Reiseplaner"},"Back to the list":{"en":"Back to the list","no":"Tilbake til listen","de":"Zur\xfcck zur Liste"},"Back to travel planer":{"en":"Back to travel planner","no":"Tilbake til reiseplanen","de":"Zur\xfcck zum Reiseplaner"},"Back":{"en":"Back","no":"Tilbake","de":"Zur\xfcck"},"Beta":{"en":"Beta","no":"Beta","de":"Beta"},"Book":{"en":"Book","no":"Bestill","de":"Buchung"},"Book now":{"en":"Book now","no":"Bestill","de":"Jetzt buchen"},"Booking link":{"en":"Booking link","no":"Booking-link","de":"Buchungslink"},"Website link":{"no":"Nettside link","en":"Website-link","de":"Website-Link"},"Campaign":{"en":"Campaign","no":"Kampanje","de":"Kampagne"},"Cancel":{"en":"Cancel","no":"Avbryt","de":"Stornieren"},"Categories":{"en":"Categories","no":"Kategorier","de":"Kategorien"},"Category preferences":{"en":"Category preferences","no":"Kategori preferanser","de":"Kategoriepr\xe4ferenzen"},"Category":{"en":"Category","no":"Kategori","de":"Kategorie"},"Change plan":{"en":"Change plan","no":"Bytt reiseplan","de":"Reisepl\xe4ne \xe4ndern"},"Choices":{"en":"Choices","no":"Utvalg","de":"Auswahl"},"Choose a start date":{"en":"Choose a start date.","no":"Velg dato for avreise.","de":"W\xe4hle das Datum f\xfcr deine Abreise."},"Choose category":{"en":"Choose category","no":"Velg kategori","de":"Kategorie ausw\xe4hlen"},"Choose date":{"en":"Choose date","no":"Velg dato","de":"Datum w\xe4hlen"},"Choose language":{"en":"Choose language","no":"Velg spr\xe5k","de":"Sprache w\xe4hlen"},"Choose one of our trip recommendations":{"en":"Choose one of our tour suggestions","no":"Velg et av v\xe5re turforslag","de":"W\xe4hle eine unserer Reiseempfehlungen"},"Choose region":{"en":"Choose region","no":"Velg region","de":"Region ausw\xe4hlen"},"of":{"en":"of","no":"av","de":"aus"},"City":{"en":"City","no":"Poststed","de":"Stadt"},"Skip to main content":{"en":"Skip to main content","no":"Hopp til hovedinnhold","de":"Zum Hauptinhalt"},"Close":{"en":"Close","no":"Lukk","de":"Schlie\xdfen"},"Closed":{"en":"Closed","no":"Stengt","de":"Geschlossen"},"Closed for the season":{"en":"Closed for the season","no":"Stengt for sesongen","de":"Saison geschlossen"},"Confirm":{"en":"Confirm","no":"Bekreft","de":"Best\xe4tigen"},"Contact and booking":{"en":"Contact and booking","no":"Kontakt og booking","de":"Kontakt und Buchung"}
32,"Contact":{"en":"Contact","no":"Kontakt","de":"Kontakt"},"Content is loading":{"en":"Content is loading","no":"Innhold laster","de":"Inhalt wird geladen"},"Copied to clipboard":{"en":"Copied to clipboard","no":"Kopiert til utklippstavlen","de":"In die Zwischenablage kopiert"},"Copied!":{"en":"Copied!","no":"Kopiert!","de":"Kopiert!"},"Copy link to share":{"en":"Copy link to share","no":"Kopier lenken for \xe5 dele","de":"Link kopieren, um ihn zu teilen"},"Copyright holder":{"en":"Copyright holder","no":"Rettighetshaver","de":"Urheber"},"Corporate":{"en":"Corporate","no":"Bransje","de":"F\xfcr Unternehmen"},"Create a new travel plan":{"en":"Create a new travel plan","no":"Opprett en ny reiseplan","de":"Einen neuen Reiseplan erstellen"},"Create a travel plan":{"en":"Create a travel plan","no":"Opprett reiseplan","de":"Einen Reiseplan erstellen"},"Create your own itinerary":{"en":"Create your own itinerary","no":"Lag din egen reiseplan","de":"Erstellen deine eigene Reiseroute"},"Criteria":{"en":"Criteria","no":"Kriterier","de":"Kriterien"},"Tags":{"no":"Egenskaper","en":"Properties","de":"Filter"},"Turistinformasjon":{"no":"Turistinformasjon","en":"Tourist information","de":"Touristeninformation"},"Current":{"en":"Current","no":"Aktuell","de":"Aktuell"},"Date and time":{"en":"Date and time","no":"Dato og tid","de":"Datum und Uhrzeit"},"When does this event take place?":{"en":"When does this event take place?","no":"N\xe5r skjer dette arrangementet?","de":"Wann findet diese Veranstaltung statt?"},"Date":{"en":"Date","no":"Dato","de":"Datum"},"DayTrip":{"en":"Daytrip","de":"Tageswanderung","no":"Dagstur"},"Daytrips":{"en":"Daytrips","de":"Tageswanderung","no":"Dagsturer"},"Delete account":{"en":"Delete account","no":"Slett konto","de":"Konto l\xf6schen"},"Delete plan":{"en":"Delete plan","no":"Slett reiseplan","de":"Reiseplan l\xf6schen"},"Destinations":{"en":"Regions","no":"Destinasjoner","de":"Reiseziele"},"Offers":{"en":"Offers","no":"Tilbud","de":"Angebote"},"DestinationsDescription":{"en":"From the heights of mountains to the depths of majestic fjords, from breathtaking scenery to dynamic urban centres, Fjord Norway is the country\'s most diverse and spectacular region.","no":"Ubeskrivelige reiseopplevelser! Vil du ta en bytur i Bergen, b\xe5ttur p\xe5 Sognefjorden eller fjelltur til Preikestolen?","de":"Von der H\xf6he der Berge zu den Tiefen der majest\xe4tischen Fjorde, von atemberaubender Landschaft zu lebendigen St\xe4dtezentren, Fjord Norwegen ist Norwegens vielf\xe4ltigste und spektakul\xe4rste Region."},"Detailed description":{"en":"Detailed description","no":"Detaljert beskrivelse","de":"Detaillierte Beschreibung"},"Details":{"en":"Details","no":"Detaljer","de":"Details"},"Distance":{"en":"Distance","no":"Avstand","de":"Entfernung"},"Download the travel planner app!":{"en":"Download the travel planner app!","no":"Last ned reiseplanlegger-appen!","de":"Laste deine Reiseplaner-App hoch!"},"Duration":{"en":"Duration","no":"Varighet","de":"Dauer"},"Duration:":{"en":"Duration:","no":"Varighet:","de":"Dauer:"},"E-mail address":{"en":"E-mail address","no":"E-postadresse","de":"E-Mail-Adresse"},"Edit the travel plan\'s name":{"en":"Edit the travel plan\'s name","no":"Rediger navnet p\xe5 reiseplanen","de":"Titel des Reiseplans bearbeiten"},"Email":{"en":"Email","no":"E-post","de":"E-Mail"},"End":{"en":"End","no":"Slutt","de":"Ende"},"Environmental certification of private and public enterprises, also tourism.":{"en":"Environmental certification of private and public enterprises, also tourism.","no":"Milj\xf8sertifisering i privat og offentlig virksomhet, inkludert turisme.","de":"Umweltzertifizierung privater und \xf6ffentlicher Unternehmen einschlie\xdflich Tourismus."},"Error saving!":{"en":"Error saving!","no":"Feil ved lagring!","de":"Error saving!"},"Events in":{"en":"Events in","no":"Arrangementer i","de":"Veranstaltungen in"},"Events":{"en":"Events","no":"Arrangementer","de":"Veranstaltungen"},"Exceeded the maximum limit of five images":{"en":"Exceeded the maximum limit of five images","no":"Oversteget maksgrense p\xe5 fem bilder","de":"H\xf6chstgrenze von f\xfcnf Bildern \xfcberschritten"},"Expand map":{"en":"Expand map","no":"Utvid kartet","de":"Karte vergr\xf6\xdfern"},"Experiences in Western Norway":{"en":"Experiences in Fjord Norway","no":"Opplevelser p\xe5 Vestlandet","de":"Erlebnisse in Fjord Norwegen"},"Experiences":{"en":"Experiences","no":"Opplevelser","de":"Erlebnisse"},"Explore on the map":{"en":"Explore on the map","no":"Utforsk p\xe5 kartet","de":"Erkunde auf der Karte"},"Explore map":{"en":"Explore map","no":"Utforsk kart","de":"Karte erkunden"},"Explore":{"en":"Explore","no":"Utforsk","de":"Entdecken"},"Facilities":{"en":"Facilities","no":"Fasiliteter","de":"Einrichtungen"},"Facility":{"en":"Facility","no":"Facilitet","de":"Einrichtung"},"Facilityascentmeters":{"en":"Total ascent","no":"Total stigning","de"
32:"Gesamtsteigung"},"Facilitydifficultychallenging":{"en":"Challenging (red)","no":"Krevende (r\xf8d)","de":"Herausforderung (rot)"},"Facilitydifficultyeasy":{"en":"Easy (green)","no":"Lett (gr\xf8nn)","de":"Einfach (gr\xfcn)"},"Facilitydifficultyexpert":{"en":"Expert (black)","no":"Ekspert (svart)","de":"F\xfcr Experten (schwarz)"},"Facilitydifficultymedium":{"en":"Medium (blue)","no":"Middels (bl\xe5)","de":"Mittelschwer (blau)"},"Facilitydistancekilometers":{"en":"Distance","no":"Avstand","de":"Entfernung"},"Facilitydurationday":{"en":"Daytrip (4-12h)","no":"Dagstur (4-12t)","de":"Tageswanderung (4-12 Std.)"},"Facilitydurationmultiday":{"en":"Multi-day","no":"Flerdagstur","de":"Mehrtageswanderung"},"Facilitydurationshort":{"en":"Short (0.5-3h)","no":"Kort tur (0,5-3t)","de":"Kurze Wanderung (0,5-3 Std.)"},"Facilityfishingdeepsea":{"en":"Deep sea fishing","no":"Havfiske","de":"Meeresangeln"},"Facilityfishingfjord":{"en":"Fjord fishing","no":"Fjordfiske","de":"Fjordangeln"},"Facilityfishingfreshwater":{"en":"Freshwater fishing","no":"Ferskvannfiske","de":"S\xfc\xdfwasserangeln"},"Facilityfishingriver":{"en":"River fishing","no":"Elvefiske","de":"Flussangeln"},"Facilityseasonautumn":{"en":"Autumn","no":"H\xf8st","de":"Herbst"},"Facilityseasonspring":{"en":"Spring","no":"V\xe5r","de":"Fr\xfchlingszeit"},"Facilityseasonsummer":{"en":"Summer","no":"Sommer","de":"Sommer"},"Facilityseasonwinter":{"en":"Winter","no":"Vinter","de":"Winter"},"Facilityskicentre":{"en":"Ski centre","no":"Skisenter","de":"Alpinanlagen"},"Facilityskicrosscountry":{"en":"Cross-country","no":"Langrenn","de":"Skilanglauf"},"Facilityskitouring":{"en":"Ski touring","no":"Topptur","de":"Skitouren"},"Facilitysurfaceasphalt":{"en":"Asphalt","no":"Asfalt","de":"Asphalt"},"Facilitysurfacegravel":{"en":"Gravel","no":"Grus","de":"Schotter"},"Facilitysurfacepath":{"en":"Path","no":"Sti","de":"Pfad"},"Facilitysurfacescree":{"en":"Scree","no":"Steinur","de":"Ger\xf6ll"},"Facilityterraincave":{"en":"Cave","no":"Grotte/Heller","de":"Grotte"},"Facilityterraincoastalarea":{"en":"Coastal area","no":"Kystomr\xe5de","de":"Ufergel\xe4nde"},"Facilityterrainforestarea":{"en":"Forest area","no":"Skogsomr\xe5de","de":"bewaldet"},"Facilityterrainglacier":{"en":"Glacier","no":"Isbre","de":"Gletscher"},"Facilityterraingorge":{"en":"Gorge","no":"Juv","de":"Schlucht"},"Facilityterrainlake":{"en":"Lake","no":"Innsj\xf8","de":"Binnensee"},"Facilityterrainmountainarea":{"en":"Mountain area","no":"Fjellomr\xe5de","de":"Gebirgig"},"Facilityterrainnationalpark":{"en":"National Park","no":"Nasjonalpark","de":"Nationalpark"},"Facilityterrainriver":{"en":"River","no":"Elv","de":"Fluss"},"Facilityterrainwaterfall":{"en":"Waterfall","no":"Foss","de":"Wasserfall"},"Filter activities and services":{"en":"Filter activities and services","no":"Filtrer aktiviteter og tjenester","de":"Aktivit\xe4ten und Dienstleistungen filtern"},"Filter day trips":{"en":"Filter day trips","no":"Filtrer dagsturer","de":"Tagestouren filtern"},"Filter":{"en":"Filter","no":"Filtrer","de":"Filtern"},"Find out more":{"en":"Find out more","no":"Finn ut mer","de":"Finde mehr heraus"},"Find places, attractions and experiences":{"en":"Find places, attractions and experiences","no":"Finn steder, attraksjoner og opplevelser","de":"Finde Orte, Sehensw\xfcrdigkeiten und Erlebnisse"},"Found no results for these filters.":{"en":"Found no results for these filters.","no":"Fant ingen resultater med disse filtrene.","de":"Fanden keine Ergebnisse f\xfcr diese Filter."},"Fjord Norway map label":{"en":"Fjord Norway","no":"Vestlandet","de":"Fjord Norwegen"},"Fjord Norway\'s primary logo":{"en":"Fjord Norway\'s primary logo","no":"Fjord Norges prim\xe6rlogo","de":"Hauptlogo von Fjord Norwegen"},"Fjord Norway\'s secondary logo":{"en":"Fjord Norway\'s secondary logo","no":"Fjord Norways sekund\xe6rlogo","de":"sekund\xe4res Logo von Fjord Norwegen"},"Follow us:":{"en":"Follow us:","no":"F\xf8lg oss:","de":"Folge uns"},"For how long would you want the trip to last?":{"en":"For how long would you want the trip to last?","no":"Hvor lenge vil du at turen skal vare?","de"
32:"Wie lange soll die Reise dauern?"},"Free":{"en":"Free","no":"Gratis","de":"Frei"},"Friday":{"en":"Friday","no":"Fredag","de":"Freitag"},"From":{"en":"From","no":"Fra","de":"von"},"Frontpage":{"en":"Frontpage","no":"Forside","de":"Startseite"},"Get directions":{"en":"Get directions","no":"F\xe5 veibeskrivelse","de":"Wegbeschreibung aufrufen"},"Get inspired description":{"en":"Articles written by our team of local guides and experts to give you an insight into the range of experiences to explore in the Northwest region. Figure out what you would like to see on your trip and then add specific activities, accomodation, places to eat and transport in your custom trip planner.","no":"Her har vi samlet en rekke artikler skrevet av personer med god kjennskap til v\xe5r region. Bla deg gjennom sider med inspirasjon og sett sammen det perfekte opphold for deg. Kanskje oppdager du noen bortgjemte perler?","de":"Artikel, die von unserem Team lokaler guides und Fachleute geschrieben wurden, um dir einen Einblick in die Vielfalt an Erfahrungen zu geben, um den Nordwesten der Region zu erkunden. Finde heraus, was du auf deiner Reise sehen m\xf6chtest, und stelle so bestimmte Aktivit\xe4ten, Unterk\xfcnfte, Restaurants und Transportmittel in deinem individuellen Reiseplaner zusammen."},"Get inspired":{"en":"Inspire me","no":"Reiseinspirasjon","de":"Reiseinspiration"},"Inspired":{"no":"Bli inspirert","en":"Be inspired","de":"Lass dich inspirieren"},"Go to campaign":{"en":"Go to campaign","no":"G\xe5 til kampanje","de":"Zur Kampagne gehen"},"Go to frontpage":{"en":"Go to frontpage","no":"G\xe5 til forsiden","de":"Zur Startseite gehen"},"Green certifications":{"en":"Green certifications","no":"Gr\xf8nne sertifiseringer","de":"Gr\xfcne Zertifizierungen"},"Green certified":{"en":"Eco-label","no":"Milj\xf8merket","de":"Mit Umweltabzeichen"},"Have a nice trip!":{"en":"Have a nice trip!","no":"God tur!","de":"Gute reise!"},"Hi":{"en":"Hi","no":"Hei","de":"Hallo"},"Hide descriptions":{"en":"Hide descriptions","no":"Skjul beskrivelser","de":"Beschreibungen ausblenden"},"Hide search":{"en":"Hide search","no":"Lukk s\xf8k","de":"Suche schlie\xdfen"},"Homepage title meta":{"en":"Fjord Norway - Your guide to the west coast of Norway","no":"Fjord Norway - Din guide til vestlandet","de":"Fjord Norwegen - Dein Guide nach Westnorwegen"},"Homepage title":{"en":"Your guide to Fjord Norway","no":"Din guide til vestlandet","de":"Dein Guide nach Fjord Norwegen"},"Hour":{"en":"Hour","no":"Time","de":"Stunde"},"How to get there":{"en":"How to get there","no":"Slik kommer du deg hit","de":"So kommst du dorthin"},"Are you travelling by car or public transport? Wondering how to get there? We can help you!":{"en":"Are you travelling by car or public transport? Wondering how to get there? We can help you!","no":"Reiser du med egen bil eller med offentlig transport? Lurer du p\xe5 hvordan du kommer deg hit? Vi hjelper deg!","de":"Bist du mit dem eigenen Auto oder \xf6ffentlichen Verkehrsmitteln unterwegs? \xdcberlegst du, wie du an einen bestimmten Ort kommst? Wir helfen dir!"},"How active would you like the trip to be?":{"en":"How active would you like the trip to be?","no":"Hvor aktiv vil du at turen skal v\xe6re?","de":"Wie aktiv m\xf6chte die Reise?"},"Images of the event (max 5 images)":{"en":"Images of the event (max 5 images)","no":"Bilder av arrangementet (maks 5 bilder)","de":"Fotos der Veranstaltung (maximal 5 Fotos)"},"Images":{"en":"Images","no":"Bilder","de":"Bilder"},"Inspiration":{"en":"Inspiration","no":"Reiseinspirasjon","de":"Reiseinspiration"},"Invalid URL":{"en":"Invalid URL, url must start with https://","no":"Ugyldig URL, url m\xe5 starte med https://"},"Invalid e-mail address":{"en":"Invalid e-mail address","no":"Ugyldig e-postadresse","de":"Ung\xfcltige E-Mail-Adresse"},"Invalid latitude":{"en":"Invalid latitude","no":"Ugyldig breddegrad","de":"Ung\xfcltiger Breitengrad"},"Invalid longitude":{"en":"Invalid longitude","no":"Ugyldig lengdegrad","de":"Ung\xfcltiger L\xe4ngengrad"},"Invalid phone number":{"en":"Invalid phone number","no":"Ugyldig telefonnummer","de":"Ung\xfcltige Telefonnummer"},"Invalid postal code":{"en":"Invalid postal code","no":"Ugyldig postnummer","de":"Ung\xfcltige Postleitzahl"},"Language choice: English":{"en":"English","no":"Engelsk","de":"Englisch"},"Language choice: German":{"en":"German","no":"Tysk","de":"Deutsch"},"Language choice: Norwegian":{"en":"Norwegian","no":"Norsk","de":"Norwegisch"},"Last updated":{"en":"Last updated","no":"Sist oppdatert","de":"Zuletzt aktualisiert"},"Latitude":{"en":"Latitude","no":"Breddegrad","de":"Breitengrad"},"Level of difficulty":{"en":"Level of difficulty","no":"Vanskelighetsgrad","de":"Schwierigkeitsgrad"},"Load more articles":{"en":"Load more articles","no":"Last flere artikler","de":"Weitere Artikel laden,"},"Load more events":{"en":"Load more events","no":"Last flere arrangementer","de":"Laden Sie weitere Ereignisse"},"Loading":{"en":"Loading","no":"Laster","de":"L\xe4dt"},"Log in":{"en":"Log in","no":"Logg inn","de":"Einloggen"},"Log out":{"en":"Log out","no":"Logg ut","de":"Ausloggen"},"Login to save and share your travel plan":{"en":"Login to save and share your travel plan","no":"Logg inn for \xe5 lagre og dele reiseplanen din","de":"Anmelden, um deinen Reiseplan zu speichern und zu teilen"},"Login to save":{"en":"Login to save","no":"Logg inn for \xe5 lagre","de":"Anmelden um zu speichern"},"Longitude and latitude are used to place the event correctly on the map. You can find this by right-clicking on a place in Google Maps.":{"en":"Longitude and latitude are used to place the event correctly on the map. You can find this by right-clicking on a place in Google Maps.","no":"Lengde- og breddegrad brukes for plassere arrangementet riktig p\xe5 kartet. Du kan finne dette ved \xe5 h\xf8yreklikke p\xe5 et sted i Google Maps.","de":"L\xe4ngen- und Breitengrad werden verwendet, um das Ereignis korrekt auf der Karte zu platzieren. Diesen finden Sie, indem Sie mit der rechten Maustaste auf einen Ort in Google Maps klicken."},"Longitude":{"en":"Longitude","no":"Lengdegrad","de":"L\xe4ngengrad"},"Maximum":{"en":"Maximum","no":"Maks","de":"Maximal"},"Media & Press":{"en":"Media & Press","no":"Media & Presse","de":"Medien & Presse"},"Menu":{"en":"Menu","no":"Meny","de":"Men\xfc"}
32,"Minimum":{"en":"Minimum","no":"Minst","de":"Minimum"},"Minute":{"en":"Minute","no":"Minutt","de":"Minute"},"Monday":{"en":"Monday","no":"Mandag","de":"Montag"},"More":{"en":"More","no":"Mer","de":"Mehr"},"My plan minimised":{"en":"Plan","no":"Reiseplan","de":"Reiseplan"},"My plan":{"en":"My plan","no":"Min reiseplan","de":"Mein Reiseplan"},"My previously saved itineraries":{"en":"My previously saved itineraries","no":"Mine lagrede reiseplaner","de":"Meine geretteten Reisepl\xe4ne"},"My profile":{"en":"My profile","no":"Min profil","de":"Mein Profil"},"Modal heading":{"en":"Before proceeding","no":"F\xf8r du fortsetter","de":"Bevor du weitergehst"},"Modal description 1-2":{"en":"Choose which example of","no":"Velg i hvilken forekomst av","de":"W\xe4hle, in welcher bereits get\xe4tigten Wahl"},"Modal description 2-2":{"en":"you want to have your product. You can add, remove or move the product.","no":"du vil ha produktet ditt. Du kan legge til, fjerne eller flytte produktet.","de":"Du dein Produkt haben m\xf6chtest. Du kannst das Produkt hinzuf\xfcgen, entfernen oder verschieben."},"Name of event":{"en":"Name of event","no":"Navn p\xe5 arrangement","de":"Name der Veranstaltung"},"Next image":{"en":"Next image","no":"Neste bilde","de":"N\xe4chstes bild"},"No description for this attraction.":{"en":"No description for this attraction.","no":"Ingen beskrivelse for denne attraksjonen.","de":"Keine Beschreibung f\xfcr diese Sehensw\xfcrdigkeit."},"No description for this product.":{"en":"No description for this product.","no":"Ingen beskrivelse for dette produktet.","de":"Keine Beschreibung f\xfcr dieses Produkt."},"No hits for":{"en":"No hits for","no":"Ingen treff p\xe5","de":"Keine Treffer f\xfcr"},"No results for":{"en":"No results for","no":"Ingen resultater for","de":"Keine Ergebnisse f\xfcr"},"No results":{"en":"No results","no":"Ingen resultater","de":"Keine Ergebnisse"},"No information about showings available":{"en":"No information about showings available","no":"Ingen informasjon om forestillinger tilgjengelig","de":"Keine Informationen \xfcber Vorstellungen verf\xfcgbar"},"None of the images can exceed 2 megabyte":{"en":"None of the images can exceed 2 megabyte","no":"Ingen av bildene kan overstige 2 megabyte","de":"In keinem der Bilder kann gr\xf6\xdfer als 2 Megabyte sein"},"Northern Norway":{"en":"Northern Norway","no":"Nord-Norge","de":"Nordnorwegen"},"Norway":{"en":"Norway","no":"Norge","de":"Norwegen"},"Not quite sure where to start? Try one of our tour suggestions!":{"en":"Not quite sure where to start? Try one of our tour suggestions!","no":"Vet du ikke helt hvor du skal starte? Pr\xf8v ett av v\xe5re turforslag!","de":"Du bist dir nicht ganz sicher, wo du starten sollst? Probiere es mit einem unserer Tourenvorschl\xe4ge!"},"Nothing to show in this area":{"en":"Nothing to show in this area","no":"Ingenting \xe5 vise i dette omr\xe5det","de":"In diesem Bereich gibt es nichts zu zeigen"},"Nothing to show":{"en":"Nothing to show","no":"Ingenting \xe5 vise","de":"Nichts anzuzeigen"},"Opening hours":{"en":"Opening hours","no":"\xc5pningstider","de":"\xd6ffnungszeiten"},"Other recommended activities on this route":{"en":"Other recommended activities on this route","no":"Andre anbefalte aktiviteter p\xe5 denne ruten","de":"Andere empfohlene aktivit\xe4ten auf dieser route"},"Other recommended services on this route":{"en":"Other recommended services on this route","no":"Flere anbefalte produkter p\xe5 denne ruten,","de":"Andere empfohlene Produkte auf dieser Route"},"Other recommended trips":{"en":"Other recommended trips","no":"Andre turforslag","de":"Andere empfohlene fahrten"},"PS: Anyone with a link can now view and edit this plan.":{"en":"PS: Anyone with a link can now view and edit this plan.","no":"Obs! Alle med lenken kan redigere planen.","de":"PS: Jeder mit einem link kann jetzt diesen plan anzeigen und bearbeiten."},"Page not found":{"en":"Page not found","no":"Side ikke funnet","de":"Seite nicht gefunden"},"Gone":{"en":"Page not found","no":"Side ikke funnet","de":"Seite nicht gefunden"},"Page":{"en":"Page","no":"Side","de":"Seite"},"Pages":{"en":"Pages","no":"Sider","de":"Seiten"},"Personal details":{"en":"Personal details","no":"Personlige opplysninger","de":"Pers\xf6nliche Daten"},"Phone number":{"en":"Phone number","no":"Telefonnummer","de":"Telefonnummer"},"Phone":{"en":"Phone","no":"Telefon","de":"Telefon"},"Place":{"en":"Place","no":"Sted","de":"Ort"},"Placement on map":{"en":"Placement on map","no":"Plassering p\xe5 kart","de":"Platzierung auf der Karte"},"Places":{"en":"Places","no":"Steder","de":"Orte"},"Plan your trip":{"en":"Try our travel planner!","no":"Pr\xf8v v\xe5r reiseplanlegger!","de":"Probiere unseren Reiseplaner!"},"Please choose a date":{"en":"Please choose a date","no":"Velg dato","de":"Bitte ein Startdatum w\xe4hlen"},"Please choose a place":{"en":"Please choose a place","no":"Velg et sted","de":"Bitte Startort w\xe4hlen"},"Please choose a start date":{"en":"Please choose a start date","no":"Vennligst velg startdato","de":"Bitte ein Startdatum w\xe4hlen"},"Please choose a start place and start date":{"en":"Please choose a start place and start date","no":"Vennligst velg startsted og startdato","de":"Bitte Startort und Startdatum w\xe4hlen,"},"Please choose a start place":{"en":"Please choose a start place","no":"Vennligst velg startsted","de":"Bitte Startort w\xe4hlen"},"Please wait.":{"en":"Please wait.","no":"Vennligst vent.","de":"Bitte warten."},"Postal code":{"en":"Postal code","no":"Postnummer","de":"Postleitzahl"},"Previous image":{"en":"Previous image","no":"Forrige bilde","de":"Vorheriges bild"},"Price":{"en":"Price","no":"Pris","de":"Preis"}
32,"Prices":{"en":"Prices","no":"Priser","de":"Preise"},"Print out plan":{"en":"Print plan","no":"Skriv ut reiseplan","de":"Reiseplan drucken"},"Print preview for":{"en":"Print preview for","no":"Forh\xe5ndsvisning av utskrift for","de":"Druckvorschau f\xfcr"},"Print":{"en":"Print","no":"Skriv ut","de":"Drucken"},"Privacy":{"en":"Privacy","no":"Personvern","de":"Datenschutz"},"Profile intro":{"en":"This is your profile which","no":"Dette er din profil som","de":"Dies sind deine Profile, die"},"Profile":{"en":"Profile","no":"Profil","de":"Profil"},"Provider":{"en":"Provider","no":"Tilbyder","de":"Anbieter"},"Providers":{"en":"Providers","no":"Tilbydere","de":"Anbieter"},"Read more about what the regions of Vestlandet have to offer":{"en":"Read more about what the regions of Fjord Norway have to offer","no":"Les mer om hva regionene p\xe5 Vestlandet har \xe5 tilby","de":"Lies mehr dar\xfcber, was die Regionen in Fjord Norwegen zu bieten haben"},"Read more articles about":{"en":"Read more articles about","no":"Les flere artikler om","de":"Lies weitere Artikel \xfcber"},"Read more":{"en":"Read more","no":"Les mer","de":"Lies mehr"},"Region":{"en":"Region","no":"Region","de":"Region"},"Regions":{"en":"Regions","no":"Regioner","de":"Reiseziele"},"Register your event":{"en":"Register your event","no":"Registrer ditt arrangement","de":"Registrieren Sie Ihre Veranstaltung"},"Related aricles":{"en":"Related aricles","no":"Relaterte artikler","de":"Zum Thema passende Artikel"},"Remove from my plan":{"en":"Remove from my plan","no":"Fjern fra reiseplanen min","de":"Von meinem Reiseplan entfernen"},"Remove image":{"en":"Remove image","no":"Fjern bilde","de":"Entferne Bild"},"Remove":{"en":"Remove","no":"Fjern","de":"Entfernen"},"Reset search":{"en":"Reset search","no":"Tilbakestill s\xf8k","de":"Suche zur\xfccksetzen"},"Reset travel plan":{"en":"Reset travel plan","no":"Tilbakestill reiseplan","de":"Reiseplan zur\xfccksetzen"},"Reset":{"en":"Reset","no":"Nullstill","de":"Zur\xfccksetzen"},"Reviews":{"en":"Reviews","no":"Anmeldelser","de":"Rezensionen"},"Saturday":{"en":"Saturday","no":"L\xf8rdag","de":"Samstag"},"Save and share your travel plan":{"en":"Save and share your travel plan","no":"Lagre og del reiseplanen din","de":"Deinen Reiseplan speichern und teilen"},"Save":{"en":"Save","no":"Lagre","de":"Speichern"},"Saved":{"en":"Saved","no":"Lagret","de":"Gespeichert"},"Saving":{"en":"Saving","no":"Lagrer","de":"Speichern"},"Schedule":{"en":"Schedule","no":"Tider","de":"Plan"},"Search field":{"en":"Search field","no":"S\xf8kefelt","de":"Suchfeld"},"Search for regions, things to do, places to stay, etc.":{"en":"Search for regions, things to do, places to stay, etc.","no":"S\xf8k etter regioner, aktiviteter, mat og overnatting, osv.","de":"Suche nach Regionen, Aktivit\xe4ten, Sehensw\xfcrdigkeiten usw."},"Search for food and drink":{"en":"Search for food and drink","no":"S\xf8k etter mat og drikke","de":"Zoek naar eten en drinken"},"Search results":{"en":"Search results","no":"S\xf8keresultater","de":"Suchergebnisse"},"Search":{"en":"Search","no":"S\xf8k","de":"Suche"},"Season":{"en":"Season","no":"Sesong","de":"Jahreszeit"},"See all activities in":{"en":"See all activities in","no":"Se alle aktiviteter i","de":"Sehen alle Aktivit\xe4ten in"},"See all events in":{"en":"See all events in","no":"Se alle arrangementer i","de":"Sieh alle Veranstaltungen in"},"See all matches":{"en":"See all matches","no":"See alle resultater","de":"Alle Ergebnisse anzeigen"},"See all services in":{"en":"See all services in","no":"Se alle tjenester i","de":"Sieh alle Serviceleistungen in"},"See all accommodations in":{"no":"Alle overnattingssteder i","en":"All accommodations in","de":"Alle Unterk\xfcnfte in"},"See all tour suggestions":{"en":"See all tour suggestions","no":"Se alle turforslag","de":"Alle Tourenvorschl\xe4ge ansehen"},"See all":{"en":"See all","no":"Se alle","de":"Alles sehen"},"See everything in":{"en":"See everything in","no":"Se alt i","de":"Siehe alles in"},"See":{"en":"See","no":"Se","de":"Sehen"},"See more day trips nearby":{"en":"See more day trips nearby","no":"Se flere dagsturer i n\xe6rheten","de":"Weitere Tagesausfl\xfcge in der N\xe4he sehen"},"See the map":{"en":"See the map","no":"Se p\xe5 kartet","de":"Karte ansehen"},"Select a place":{"en":"Select a place","no":"Velg et sted","de":"Einen Ort ausw\xe4hlen"},"Select end date":{"en":"Select end date","no":"Velg sluttdato","de":"Enddatum w\xe4hlen"},"Select start date":{"en":"Select start date","no":"Velg startdato","de":"Startdatum w\xe4hlen"},"Sending …":{"en":"Sending …","no":"Sender …","de":"Senden …"}
32,"Service":{"en":"Service","no":"Tjeneste","de":"Servicleistung"},"All services in":{"en":"Services in","no":"Tjenester i","de":"Serviceleistungen in"},"All services related to {title}":{"en":"All services related to {title}","no":"Alle tjenester tilknyttet {title}","de":"Alle mit {title} verkn\xfcpften Dienstleistungen"},"All accommodations related to {title}":{"en":"All accommodations related to {title}","no":"Alle overnattingssteder tilknyttet {title}","de":"Alle mit {title} verkn\xfcpften Unterk\xfcnfte "},"See everything {title} has to offer":{"en":"See everything {title} has to offer","no":"Se alle tilbudene til {title}","de":"Siehe alle Angebote des {title}"},"Services":{"en":"Eat and sleep","no":"Mat og overnatting","de":"Essen, Trinken und \xdcbernachten"},"Services: plan for accommodation, dining and transportation":{"en":"Services: plan for accommodation, dining and transportation","no":"Tjenester: Planlegg overnatting, spising og transport","de":"Servicleistung: plan for accommodation, dining and transportation"},"Share plan":{"en":"Share plan","no":"Del reiseplan","de":"Reiseplan planen"},"Short description (max 160 characters)":{"en":"Short description (max 160 characters)","no":"Kort beskrivelse (maks 160 tegn)","de":"Kurzbeschreibung (max. 160 Zeichen)"},"Show descriptions":{"en":"Show region descriptions","no":"Vis regionbeskrivelser","de":"Regionsbeschreibungen anzeigen"},"Show details":{"en":"Show details","no":"Vis detaljer","de":"Zeige einzelheiten"},"Show filters":{"en":"Show filters","no":"Vis filter","de":"Filter anzeigen"},"Show images":{"en":"Show images","no":"Vis bilder","de":"Bilder anzeigen"},"Show less":{"en":"Show less","no":"Vis mindre","de":"Zeige weniger"},"Show map":{"en":"Show map","no":"Vis p\xe5 kart","de":"Auf der Karte anzeigen"},"Show more":{"en":"Show more","no":"Vis mer","de":"Zeig mehr"},"Show plan":{"en":"Show plan","no":"Vis reiseplanen","de":"Reiseplan anzeigen"},"Show results":{"en":"Show results","no":"Vis resultater","de":"Ergebnisse anzeigen"},"Show travel route":{"en":"Show travel route","no":"Vis reiserute","de":"Reiseroute anzeigen"},"Showing":{"en":"Showing","no":"Viser","de":"Zeigt"},"Showings":{"en":"Showings","no":"Visninger","de":"Vorstellungen"},"410 - heading":{"en":"Sorry, this product is no longer available.","no":"Beklager, dette produktet er ikke lenger tilgjengelig.","de":"Es tut uns leid, aber dieses Produkt ist nicht mehr verf\xfcgbar."},"410 - ingress":{"en":"But don\'t worry, there are plenty of other experiences in Fjord Norway! Use the search field or the links below to find an alternative.","no":"Men fortvil ikke, Vestlandet er fullt av andre opplevelser! Bruk gjerne s\xf8kefeltet eller lenkene nedenfor for \xe5 finne et alternativ.","de":"Verzweifle deshalb nicht, denn Fjord Norwegen ist voller weiterer Erlebnisse! Nutze gern das Suchfeld oder die Links unten, um Alternativen zu finden."},"404 - heading":{"en":"Sorry, we couldn\'t find the page you were looking for.","no":"Beklager, vi kunne ikke finne siden du lette etter.","de":"Es tut uns leid, aber wir konnten die von dir gesuchte Seite nicht finden."},"404 - ingress":{"en":"The page may been moved or deleted. Use the search field or the links below to find an alternative.","no":"Siden kan ha blitt flyttet eller fjernet. Bruk gjerne s\xf8kefeltet eller lenkene nedenfor for \xe5 finne et alternativ.","de":"Die Seite kann verlegt oder gel\xf6scht worden sein. Nutze gern das Suchfeld oder die Links unten, um Alternativen zu finden."},"500 - heading":{"en":"Oops! Something went wrong","no":"Uff da, noe gikk galt","de":"Obs! Hier ist etwas schief gelaufen."},"500 - ingress":{"en":"An error has arisen, which is not your fault. Please try again later.","no":"Det har oppst\xe5tt et problem, og det er ikke din feil. Vennligst pr\xf8v igjen p\xe5 et senere tidspunkt.","de":"Ein Problem ist aufgetreten, aber der Fehler liegt nicht bei dir. Versuche es bitte sp\xe4ter nochmal."},"500 - link":{"en":"Back to the home page","no":"Tilbake til forsiden","de":"Zur\xfcck zur Startseite."},"Error-page - search-label":{"en":"Search the entire website","no":"S\xf8k p\xe5 hele nettstedet","de":"Suche auf der gesamten Website"},"Error-page - Link heading":{"en":"Explore one of these pages","no":"Utforsk en av disse sidene","de":"Erkunde eine dieser Seiten"},"Source":{"en":"Source","no":"Kilde","de":"Quelle"},"Southern Norway":{"en":"Southern Norway","no":"S\xf8r-Norge","de":"S\xfcdnorwegen"},"Start by choosing a start place for your holiday":{"en":"Start by choosing a start place for your holiday.","no":"Start med \xe5 velge startsted for ferien din.","de":"Beginne damit, einen Startort f\xfcr deinen Urlaub zu w\xe4hlen."},"Start date":{"en":"Start date","no":"Startdato","de":"Startdatum"},"Start place":{"en":"Start place","no":"Startsted","de":"Startort"},"Start planning":{"en":"Start planning!","no":"Start \xe5 planlegge!","de":"Beginne mti deiner Ferienplanung!"},"Start":{"en":"Start","no":"Start","de":"Start"},"Submit form":{"en":"Submit form","no":"Send inn skjema","de":"Formular absenden"},"Contact info form":{"en":"","no":"E-postadressen til deg som registrerer eventet","de":""},"Contact info form label":{"en":"","no":"Dersom vi trenger \xe5 kontakte deg for endringer, sp\xf8rsm\xe5l, etc.","de"
32:""},"Submit":{"en":"Submit","no":"Send inn","de":"Einreichen"},"Sunday":{"en":"Sunday","no":"S\xf8ndag","de":"Sonntag"},"Surface":{"en":"Surface","no":"Underlag","de":"Boden"},"Terrain":{"en":"Terrain","no":"Terreng","de":"Gel\xe4nde"},"Thank you!":{"en":"Thank you!","no":"Tusen takk!","de":"Danke sch\xf6n!"},"This link should refer directly to the page where tickets can be bought":{"en":"This link should refer directly to the page where tickets can be bought","no":"Denne lenken b\xf8r v\xe6re direkte til siden der man kan kj\xf8pe billetter","de":"Dieser Link sollte direkt auf die Seite verweisen, auf der Tickets gekauft werden k\xf6nnen"},"The travel planner app description":{"en":"Fjord Norway has its own travel planner app! Start planning your trip here on our website and have your itinerary handy when you come.","no":"Vestlandet har sin egen reiseplanlegger-app! Start planleggingen her p\xe5 nettsiden, og ta med deg reiseplanen din i lommen n\xe5r du kommer hit.","de":"Fjord Norwegen hat seine eigene Reiseplaner-App! Beginn deine Urlaubsplanung hier auf der Website, und pack deinen Reiseplan in die Tasche, wenn du dich auf den Weg machst."},"The travel planner app":{"en":"The travel planner app","no":"Reiseplanlegger-appen","de":"Die Reiseplaner-App"},"The travel planner is in a beta version. A new and improved version will be available soon!":{"en":"The travel planner is in a beta version. A new and improved version will be available soon!","no":"Reiseplanleggeren er i betaversjon. Ny og forbedret versjon kommer snart!","de":"Der Reiseplaner liegt als Betaversion vor. Eine neue und verbesserte Version kommt demn\xe4chst!"},"There was an error when fetching the data":{"en":"There was an error retrieving the data","no":"Feil ved henting av data","de":"Fehler beim Aufrufen der Daten"},"Things to do in":{"en":"Things to do in","no":"Ting \xe5 gj\xf8re i","de":"Was man unternehmen kann in"},"Things to do":{"en":"Things to do","no":"Ting \xe5 gj\xf8re","de":"Dinge die zu tun sind"},"Thingstodo":{"en":"Things to do","no":"Ting \xe5 gj\xf8re","de":"Dinge die zu tun sind"},"ThingsToDoPage":{"en":"Things to do","no":"Ting \xe5 gj\xf8re","de":"Dinge die zu tun sind"},"This field can not exceed 160 characters":{"en":"This field can not exceed 160 characters","no":"Dette feltet kan ikke overstige 160 tegn","de":"Dieses Feld kann nicht mehr als 160 Zeichen haben"},"This field is required":{"en":"This field is required","no":"Dette feltet er p\xe5krevd","de":"Dieses Feld ist erforderlich"},"Thursday":{"en":"Thursday","no":"Torsdag","de":"Donnerstag"},"Time":{"en":"Time","no":"Klokkeslett","de":"Klokke"},"To":{"en":"To","no":"Til","de":"Bis"},"Toggle fullscreen":{"en":"Toggle fullscreen","no":"Bytt fullskjermmodus","de":"Vollbildschirme umschalten"},"Top menu - Destinations":{"en":"Destinations","no":"Reisem\xe5l","de":"Reiseziele"},"Top menu - Destinations - Regions":{"en":"Regions","no":"Destinasjoner","de":"Die Destinationen"},"Top menu - Destinations - Attractions and places":{"en":"Attractions and places","no":"Attraksjoner og steder","de":"Sehensw\xfcrdigkeiten und Orte"},"Top menu - Destinations - Cities and places":{"en":"Cities and places","no":"Byer og steder","de":"St\xe4dte und Orte"},"Transport in":{"en":"Transport in","no":"Transport i","de":"Transport in"},"Transport":{"en":"Transport","no":"Transport","de":"Transport"},"Travel companion":{"en":"Travel companion","no":"Reisef\xf8lge","de":"Reisegef\xe4hrte"},"Travel route":{"en":"Travel route","no":"Reiserute","de":"Reiseroute"},"Trip recommendations":{"en":"Trip recommendations","no":"Turforslag","de":"Tourenvorschl\xe4ge"},"Tuesday":{"en":"Tuesday","no":"Tirsdag","de":"Dienstag"},"Type of fishing":{"en":"Type of fishing","no":"Type fiske","de":"Art des Angelns"},"Type of skiing":{"en":"Type of skiing","no":"Type ski","de":"Art des Skis"},"Upcoming events":{"en":"Upcoming events","no":"Kommende arrangementer","de":"Kommende Veranstaltungen"},"Use filter":{"en":"Use filter","no":"Bruk filter","de":"Filter verwenden"},"Venue":{"en":"Venue","no":"Spillested","de":"Veranstaltungsort"},"Visit us at":{"en":"Visit us at","no":"Bes\xf8k oss p\xe5","de":"Besuch uns auf"},"Visit us here":{"en":"Visit us here","no":"Bes\xf8k oss her","de":"Besuche uns hier"},"We\'re fetching all activities in":{"en":"We\'re fetching all activities in","no":"Vi henter alle aktiviteter i","de":"Wir suchen alle Aktivit\xe4ten in"},"We\'re fetching all services in":{"en":"We\'re fetching all services in","no":"Vi henter alle produktene i kategorien","de":"Wir suchen alle Serviceleistungen in"},"Website":{"en":"Website","no":"Nettside","de":"Website"}
32,"Wednesday":{"en":"Wednesday","no":"Onsdag","de":"Mittwoch"},"Weekdays":{"en":"Weekdays","no":"Ukedager","de":"Wochentage"},"Welcome to the travel planner for Fjord Norway!":{"en":"Welcome to the travel planner for Fjord Norway!","no":"Velkommen til reiseplanleggeren for Vestlandet!","de":"Willkommen im Reiseplaner f\xfcr Fjord Norwegen!"},"What are you looking for?":{"en":"What are you looking for?","no":"Hva leter du etter?","de":"Wonach suchst du?"},"Where is":{"en":"Where is","no":"Hvor er","de":"Wo ist"},"Where to stay in":{"en":"Where to stay in","no":"Overnatting i","de":"WWo kann man wohnen in"},"Who are you traveling with?":{"en":"Who are you traveling with?","no":"Hvem reiser du med?","de":"Mit wem reist du?"},"Wondering where to start?":{"en":"Wondering where to start?","no":"Lurer du p\xe5 hvor du skal starte?","de":"Bist du unsicher, wo du anfangen sollst?"},"We were unable to load the map with your journey. Try again later":{"en":"We were unable to load the map with your journey. Try again later","no":"Vi kunne ikke laste inn kartet med reisen din. Pr\xf8v igjen senere.","de":"Wir konnten die Karte mit deiner Reise nicht herunterladen. Versuche es bitte sp\xe4ter noch einmal."},"You do not have any saved itineraries":{"en":"You do not have any saved itineraries","no":"Du har ingen lagrede reiseplaner","de":"Sie haben keine geretteten reiserouten"},"You must be logged in to view your profile.":{"en":"You must be logged in to view your profile.","no":"Du m\xe5 v\xe6re p\xe5logget for \xe5 se profilen din.","de":"Du musst eingeloggt sein, um dein Profil zu sehen."},"Your event is registered.":{"en":"Your event is registered.","no":"Ditt arrangement er registrert.","de":"Ihre Veranstaltung ist registriert."},"Your plan was saved successfully!":{"en":"Your plan was saved successfully!","no":"Din plan er n\xe5 lagret","de":"Ihr plan wird jetzt gespeichert"},"Your search for":{"en":"Your search for","no":"S\xf8ket ditt etter","de":"Deine Suche nach"},"activities":{"en":"see and do","no":"se og gj\xf8re","de":"sehen und erleben"},"activity":{"en":"see and do","no":"se og gj\xf8re","de":"sehen und erleben"},"advertisement":{"en":"advertisement","no":"annonse","de":"Anzeige"},"articles":{"en":"articles","no":"artikler","de":"artikel"},"attractions":{"en":"attractions","no":"attraksjoner","de":"sehenswurdigkeiten"},"campaign":{"en":"campaign","no":"kampanje","de":"kampagne"},"categories":{"en":"categories","no":"kategorier","de":"kategorien"},"destinations":{"en":"destinations","no":"destinasjoner","de":"reiseziele"},"events":{"en":"events","no":"arrangementer","de":"Veranstaltungen"},"has received certification for its environmental efforts from:":{"en":"has received certification for its environmental efforts from:","no":"har f\xe5tt sertifisering for sin milj\xf8innsats fra:","de":"F\xfcr den Einsatz f\xfcr die Umwelt zertifiziert von, die FRATHS-Zertifizierung f\xfcr seine umweltbem\xfchungen von erhielten:"},"highlighted places description":{"en":"Read more about these highlighted places and attractions in ","no":"Les mer om utvalgte sted og attraksjoner fra ","de":"Lies mehr \xfcber diese gekennzeichneten Orte und Attraktionen in"},"highlighted places title":{"en":"Highlights","no":"Attraksjoner","de":"Highlights"},"hours":{"en":"hours","no":"timer","de":"Stunden"},"in":{"en":"in","no":"i","de":"in"},"inspiration":{"en":"inspiration","no":"reiseinspirasjon","de":"reiseinspiration"},"inspire-me":{"en":"inspire-me","no":"reiseinspirasjon","de":"inspiriere mich"},"intro message part 1":{"en":"Find activities and accommodation and put together your itinerary. Use the map to navigate, find activities that match your interests, and view the route in the map. Download our app and carry your itinerary in your pocket, and find experiences along the way.","no":"Finn opplevelser og overnatting og sett sammen reiseruten din. Bruk kartet til \xe5 navigere, finn opplevelser som passer dine interesser, og se ruten i kartet. Last ned appen v\xe5r og ta med deg reiseplanen din i lommen, og finn opplevelser underveis p\xe5 reisen.","de"
32:"Finde Aktvit\xe4ten und \xdcbernachtungen und stelle deine Reiseroute zusammen. Navigiere mithilfe der Karte, finde Aktivit\xe4ten und Sehensw\xfcrdigkeiten, die zu deinen Interessen passen, und sieh dann deine Route auf der Karte. Lade unsere App herunter, so dass du deinen Reiseplan immer in der Tasche hast, und finde auch unterwegs noch Interessantes zu unternehmen."},"intro message part 2":{"en":"Would you prefer it on paper? Print out your itinerary, and you’ll have it handy at all times!","no":"Foretrekker du papirformat? Skriv ut reiseplanen din, s\xe5 har du den lett tilgjengelig!","de":"Zieht du das Papierformat vor? Druck deinen Reiseplan aus, dann ist er immer leicht verf\xfcgbar!"},"intro message part 3":{"en":"Not sure where to begin? If you need more inspiration and information about our region, you will find a link below. We have many excellent holiday tips and tour suggestions, and you can also read more about all the different destinations in Fjord Norway. Have a great trip!","no":"Ikke sikker p\xe5 hvor du skal begynne? Trenger du mer inspirasjon og informasjon om regionen v\xe5r finner du det under. Vi har mange gode reisetips og turforslag til deg, og du kan ogs\xe5 lese mer om alle de ulike reisem\xe5lene p\xe5 Vestlandet. God tur!","de":"Bist du dir noch nicht sicher, wo du beginnen sollst? Wenn du noch ein paar Inspirationen und Informationen \xfcber die Region ben\xf6tigst, findest du sie unter. Wir haben viele gute Reisetipps und Tourenvorschl\xe4ge f\xfcr dich, und du erf\xe4hrst auch noch ein bisschen mehr \xfcber die verschiedenen Reiseziele in Fjord Norwegen. Wir w\xfcnschen dir eine gute Reise!"},"languages":{"en":"en","no":"no","de":"de"},"matches":{"en":"matches","no":"resultater","de":"treffer"},"page":{"en":"page","no":"side","de":"seite"},"pages":{"en":"pages","no":"sider","de":"seiten"},"place":{"en":"place","no":"sted","de":"ort"},"places":{"en":"places","no":"steder","de":"orte"},"profile":{"en":"profile","no":"profil","de":"Profil"},"products":{"en":"products","no":"produkter","de":"produkte"},"provider":{"en":"provider","no":"tilbyder","de":"anbieter"},"providers":{"en":"providers","no":"tilbydere","de":"anbieter"},"recommended activities and services":{"en":"recommended activities and services","no":"anbefalte aktiviteter og overnatting","de":"empfohlene Aktivit\xe4ten und Unterk\xfcnfte"},"regions":{"en":"destinations","no":"destinasjoner","de":"reiseziele"},"register":{"en":"register","no":"registrer","de":"registrieren"},"results":{"en":"results","no":"resultater","de":"ergebnisse"},"returned":{"en":"returned","no":"returnert","de":"zur\xfcckgegeben"},"search":{"en":"search","no":"s\xf8k","de":"suche"},"service":{"en":"eat and sleep","no":"mat og overnatting","de":"essen, trinken und \xfcbernachten"},"sleep":{"en":"Accommodation","no":"Overnatting","de":"\xdcbernachten"},"services":{"en":"eat and sleep","no":"mat og overnatting","de":"essen, trinken und \xfcbernachten"},"transport":{"en":"transport","no":"transport","de":"transport"},"transport-uppercase":{"en":"Transport","no":"Transport","de":"Transport"},"trips":{"en":"trips","no":"turer","de":"Touren"},"":{"en":"","no":"","de":""},"activity-10":{"en":"Calm","no":"Rolig","de":"Ruhig"},"activity-20":{"en":"Slightly active","no":"Litt aktiv","de":"Etwas aktiv"},"activity-30":{"en":"Very active","no":"Veldig aktiv","de":"Sehr aktiv"},"companion-everyone":{"en":"Everyone","no":"Alle","de":"Alle"},"companion-couple":{"en":"Partner","no":"Partner","de":"Partner"},"companion-family":{"en":"Family","no":"Familie","de":"Familie"},"companion-friends":{"en":"Friends","no":"Venner","de":"Freundinnen"},"companion-alone":{"en":"Alone","no":"Alene","de":"Allein"},"season-winter":{"en":"Winter","no":"Vinter","de":"Winter"},"season-spring":{"en":"Spring","no":"V\xe5r","de":"Fr\xfchling"},"season-summer":{"en":"Summer","no":"Sommer","de":"Sommer"},"season-autumn":{"en":"Autumn","no":"H\xf8st","de":"Herbst"},"category-barAndPub":{"en":"Bar and pub","no":"Bar og pub","de":"Bar en caf\xe9"},"category-restaurant":{"en":"Restaurant","no":"Restaurant","de"
32:"Restaurant"},"category-cafe":{"en":"Cafe and bakery","no":"Kaf\xe9 og bakeri","de":"Caf\xe9 en bakkerij"},"category-fastFood":{"en":"Fast food","no":"Fast food og gatekj\xf8kken","de":"Fastfood en fastfood"},"category-partyAndEventRooms":{"en":"Company premises","no":"Selskapslokaler","de":"Bedrijfspand"},"category-activities":{"en":"Activities","no":"Aktiviteter","de":"Aktivit\xe4ten"},"category-trips":{"en":"Hiking","no":"Fotturer","de":"Wandern"},"category-culture":{"en":"Culture","no":"Kultur","de":"Kultur"},"category-shopping":{"en":"Shopping","no":"Shopping","de":"Das Einkaufen"},"category-foodAndDrinks":{"en":"Food and drinks","no":"Mat og drikke","de":"Essen und Trinken"},"category-sightseeing":{"en":"Sightseeing","no":"Sightseeing","de":"Besichtigung"},"category-wellbeing":{"en":"Wellbeing","no":"Velv\xe6re","de":"Wohlbefinden"},"Always open":{"en":"Always open","no":"Alltid \xe5pent","de":"Immer ge\xf6ffnet"},"Open all year":{"en":"Open all year","no":"\xc5pent hele \xe5ret","de":"Ganzj\xe4hrig ge\xf6ffnet"},"Open every day":{"en":"Open every day","no":"\xc5pent hver dag","de":"Jeden Tag ge\xf6ffnet"},"Open":{"en":"Open","no":"\xc5pent","de":"Ge\xf6ffnet"},"Open until {time}":{"en":"Open until {time}","no":"\xc5pent til kl {time}","de":"Ge\xf6ffnet bis {time} Uhr"},"Open at {timeRange}":{"en":"Open at {timeRange}","no":"\xc5pent {timeRange}","de":"Ge\xf6ffnet um {timeRange} Uhr"},"Opens at {time}":{"en":"Opens at {time}","no":"\xc5pner kl {time}","de":"\xd6ffnet um {time} Uhr"},"See all attractions in {title}":{"en":"See all attractions in {title}","no":"Se alle attraksjoner i {title}","de":"Alle Sehensw\xfcrdigkeiten in {title} ansehen"},"Trip {number} to":{"en":"Trip {number} to","no":"Tur nr. {number} til","de":"Tour Nr. {number} nach"},"Share your location to see travel times":{"en":"Share your location to see travel times","no":"Del posisjonen din for \xe5 se reisetid","de":"Teile deine Position, um die Reisezeit zu sehen"},"Share":{"en":"Share","no":"Del","de":"Teilen"},"Walk":{"en":"Walk","no":"G\xe5","de":"Gehen"},"Drive":{"en":"Drive","no":"Kj\xf8re","de":"Antrieb"},"minutes":{"en":"minutes","no":"minutter","de":"Minuten"},"Add the itinerary to my travel plan":{"en":"Add the itinerary to my travel plan","no":"Legg ruten til reiseplanen min","de":"Die Reiseroute meinem Reiseplan hinzuf\xfcgen"},"Useful links":{"en":"Useful links","no":"Nyttige lenker","de":"N\xfctzliche Links"}}}');var a=n(83612);let l=s?.language,{inDevelopment:u,pageTypesAll:c}=r.$W,d=e=>{let t=r.eo.filter(t=>t.lang===e)[0];return t?.fallback?t.fallback:"en"!==e&&e!==r.sd.lang?"en":r.sd.lang},h=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return n?.[e]?n[e][t]?n[e][t]:n[e][d(t)]:l[e]?l[e][t]?l[e][t]:l[e][d(t)]:(u&&console.warn(`[lang]: Missing translation for: ${e}`),e)},f=(e,t,n)=>{if(!l[e])return u&&console.warn(`[lang]: Missing translation for: ${e}`),e;let r=l[e][t]||l[e][d(t)];if(!n&&(0,a.RI)(n))return r;let i=r;return Object.entries(n).forEach(e=>{let[t,n]=e;i=i.replace(`{${t}}`,n)}),i},p=e=>{let{term:t,slugify:n}=e,i=[];return r.eo.map(e=>(h(t,e.lang)&&i.push(n?o(h(t,e.lang)):h(t,e.lang)),null)),i},g=e=>{let{language:t,translationObj:n,fallback:i,isRichText:o,noFallback:s}=e,a=n?.[`${t}Raw`]||n?.[t];return o&&a?a:n?.[t]?n[t]:s?"":n?.fallback?n.fallback:"en"!==t&&t!==r.sd.lang?o?n?.en||n?.[`${r.sd.lang}`]||n?.enRaw||n?.[`${r.sd.lang}Raw`]||i:n?.en||n?.[r.sd.lang]||i:o?n?.[`${r.sd.lang}`]||n?.[`${r.sd.lang}Raw`]||i:n?.[r.sd.lang]||i},m=e=>{let{language:t,obj:n,noFallback:r}=e,i=g({language:t,translationObj:n?.locSlug,fallback:r?"":n?.slug,noFallback:r});return i?.current||i||""},y=e=>{let{language:t,obj:n}=e;return n?.slug?.current||n?.locSlug?.[t]?.current||""},v=e=>{let{language:t,paramQuery:n="",pathType:r,article:i={},campaign:s={},category:l={},page:u={},place:d={},product:f={},region:g={},register:v={},search:b={},subCategory:w={}}=e,L="",S="activity"===r||"activities"===r?"see-and-do":"",M="service"===r||"services"===r?"eat-and-sleep":"",E="activity"===r?"activities":"service"===r?"services":"event"===r||"events"===r?"events":"region"===r||"regions"===r?"destinations":"place"===r||"places"===r||"attraction"===r||"attractions"===r?"attractions":"article"===r||"articles"===r?"inspiration":c&&(0,a.uG)(c)&&!c?.includes(r)?"page":r;if(t&&E){let e=`/${t}/`,r="home"===E?"":`${e}${o(h(E,t))}/`,c=p({term:"activities",slugify:!0}),x=p({term:"services",slugify:!0}),C=p({term:"search",slugify:!0}),A=p({term:"register",slugify:!0}),k=p({term:"campaign",slugify:!0}),P=p({term:"destinations",slugify:!0}),T=p({term:"attractions",slugify:!0}),R=p({term:"inspiration",slugify:!0}),j=p({term:"events",slugify:!0}),O=p({term:"profile",slugify:!0});(c?.includes(E)||c?.includes(S)||x?.includes(E)||x?.includes(M)||k?.includes(E)||C?.includes(E)||A?.includes(E)||j?.includes(E)||P?.includes(E)||T?.includes(E)||R?.includes(E)||O?.includes(E))&&(!i||i&&(0,a.RI)(i))&&(!s||s&&(0,a.RI)(s))&&(!b||b&&(0,a.RI)(b))&&(!v||v&&(0,a.RI)(v))&&(!l||l&&(0,a.RI)(l))&&(!u||u&&(0,a.RI)(u))&&(!d||d&&(0,a.RI)(d))&&(!f||f&&(0,a.RI)(f))&&(!g||g&&(0,a.RI)(g))&&(L=`${r}`),(c?.includes(E)||c?.includes(S)||x?.includes(E)||x?.includes(M)||j?.includes(E))&&(f&&(0,a.oj)(f)&&(L=`${r}${m({language:t,obj:f})}`),g&&(0,a.oj)(g)&&(L=`${r}${m({language:t,obj:g})}`),l&&(0,a.oj)(l)&&(L=w&&(0,a.oj)(w)?`${r}${m({language:t,obj:l})}/${m({language:t,obj:w})}`:`${r}${m({language:t,obj:l})}`)),P?.includes(E)&&g&&(0,a.oj)(g)&&(L=`${r}${m({language:t,obj:g})}`),T?.includes(E)&&d&&(0,a.oj)(d)&&(L=`${r}${y({language:t,obj:d})}`),k?.includes(E)&&s&&(0,a.oj)(s)&&(L=`${r}${m({language:t,obj:s.campaignRegion})}/${m({language:t,obj:s})}`),R?.includes(E)&&i&&(0,a.oj)(i)&&(L=`${r}${m({language:t,obj:i})}`),A?.includes(E)&&v&&(0,a.oj)(v)&&(L=`${r}${m({language:t,obj:v})}`),"profile"===E&&(L=`${e}${h("profile",t)}`),"search"===E&&(L=`${e}${o(h("search",t))}`),"page"===E&&u&&(0,a.oj)(u)&&(L=`${e}${m({language:t,obj:u})}
32`),"home"===E&&(L=e),L=L&&n&&!L.includes(n)?`${L}${n}`:L}return L},b=e=>{let t=r.eo.map(e=>e.lang),n=e.split("/")[1];return t.includes(n)||(n=r.sd.lang),n}},21608:(e,t,n)=>{"use strict";n.d(t,{G:()=>i});let{pageTitleAppend:r}=n(28550).$W,i=e=>{let t="";return e&&"string"==typeof e&&(t=`${e}${r}`),t}},2928:e=>{!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,o=l(e),s=o[0],a=o[1],u=new i((s+a)*3/4-a),c=0,d=a>0?s-4:s;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],s=0,a=r-i;s<a;s+=16383)o.push(function(e,t,r){for(var i,o=[],s=t;s<r;s+=3)o.push(n[(i=(e[s]<<16&0xff0000)+(e[s+1]<<8&65280)+(255&e[s+2]))>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,s,s+16383>a?a:s+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)n[s]=o[s],r[o.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(e,t,n){"use strict";var r=n(675),i=n(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!a.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|f(e,t),r=s(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(P(e,ArrayBuffer)||e&&P(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(P(e,SharedArrayBuffer)||e&&P(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),a.prototype),r}(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return a.from(r,t,n);var i=function(e){if(a.isBuffer(e)){var t,n=0|h(e.length),r=s(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?s(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),s(e<0?0:0|h(e))}function d(e){for(var t=e.length<0?0:0|h(e.length),n=s(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function h(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||P(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return x(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return A(e).length;default:if(i)return r?-1:x(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,n){var i,o,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=T[e[o]];return i}(this,t,n);case"utf8":case"utf-8":return v(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":return i=t,o=n,0===i&&o===this.length?r.fromByteArray(this):r.fromByteArray(this.slice(i,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}(this,t,n);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){var o;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>0x7fffffff?n=0x7fffffff:n<-0x80000000&&(n=-0x80000000),(o=n=+n)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,s=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;
vendor: 13,654 bytes, line 32
32s=2,a/=2,l/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=n;o<a;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*s}else -1!==c&&(o-=o-c),c=-1}else for(n+l>a&&(n=a-l),o=n;o>=0;o--){for(var d=!0,h=0;h<l;h++)if(u(e,o+h)!==u(t,h)){d=!1;break}if(d)return o}return -1}function v(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,s,a,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],s=e[i+2],(192&o)==128&&(192&s)==128&&(l=(15&u)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(l=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function b(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,i,o){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function L(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function S(e,t,n,r,o){return t=+t,n>>>=0,o||L(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function M(e,t,n,r,o){return t=+t,n>>>=0,o||L(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.Buffer=a,t.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,n){return(u(e),e<=0)?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(P(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),P(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=a.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(P(o,Uint8Array)&&(o=a.from(o)),!a.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},a.byteLength=f,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?v(this,0,e):p.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(e,t,n,r,i){if(P(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,s=n-t,l=Math.min(o,s),u=this.slice(r,i),c=e.slice(t,n),d=0;d<l;++d)if(u[d]!==c[d]){o=u[d],s=c[d];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},a.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},a.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,s,a,l,u,c,d,h,f,p,g,m=this.length-t;if((void 0===n||n>m)&&(n=m),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var y=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(a!=a)break;e[n+s]=a}return s}(this,e,t,n);case"utf8":case"utf-8":return l=t,u=n,k(x(e,this.length-l),this,l,u);case"ascii":return c=t,d=n,k(C(e),this,c,d);case"latin1":case"binary":return i=this,o=e,s=t,a=n,k(C(o),i,s,a);case"base64":return h=t,f=n,k(A(e),this,h,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p=t,g=n,k(function(e,t){for(var n,r,i=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i.push(n%256),i.push(r);return i}(e,this.length-p),this,p,g);default:if(y)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),y=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,a.prototype),r},a.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},a.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},a.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?0xffff0000|n:n},a.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?0xffff0000|n:n},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=1,s=0;for(this[t]=255&e;++s<n&&(o*=256);)this[t+s]=e/o&255;return t+n},a.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=n-1,s=1;for(this[t+o]=255&e;--o>=0&&(s*=256);)this[t+o]=e/s&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,n){return S(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return S(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return M(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return M(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;o>=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},a.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===r&&o<128||"latin1"===r)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=a.isBuffer(e)?e:a.from(e,r),l=s.length;
32if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=s[i%l]}return this};var E=/[^+/0-9A-Za-z-_]/g;function x(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319||s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function C(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function A(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(E,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function k(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function P(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var T=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},783:function(e,t){t.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,l=(1<<a)-1,u=l>>1,c=-7,d=n?i-1:0,h=n?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-c)-1,f>>=-c,c+=a;c>0;o=256*o+e[t+d],d+=h,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+e[t+d],d+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,r),o-=u}return(f?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,a,l,u=8*o-i-1,c=(1<<u)-1,d=c>>1,h=23===i?5960464477539062e-23:0,f=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(s++,l/=2),s+d>=c?(a=0,s=c):s+d>=1?(a=(t*l-1)*Math.pow(2,i),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[n+f]=255&a,f+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[n+f]=255&s,f+=p,s/=256,u-=8);e[n+f-p]|=128*g}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},s=!0;try{t[e](o,o.exports,r),s=!1}finally{s&&delete n[e]}return o.exports}r.ab="//";var i=r(72);e.exports=i}()},35766:e=>{!function(){"use strict";var t={864:function(e){var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(n,r){var i;function o(n){e.removeListener(t,s),r(n)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}g(e,t,s,{once:!0}),"error"!==t&&(i={once:!0},"function"==typeof e.on&&g(e,"error",o,i))})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){if(a(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=l(e))>0&&s.length>i&&!s.warned){s.warned=!0;var i,o,s,u=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=c.bind(r);return i.listener=n,r.wrapFn=i,i}function h(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):p(i,i.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=Array(t),r=0;r<t;++r)n[r]=e[r];return n}function g(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(o){r.once&&e.removeEventListener(t,i),n(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var s,a=Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else for(var u=l.length,c=p(l,u),n=0;n<u;++n)r(c[n],this,t);return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(a(t),void 0===(r=this._events)||void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit
32("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0==arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},s=!0;try{t[e](o,o.exports,r),s=!1}finally{s&&delete n[e]}return o.exports}r.ab="//";var i=r(864);e.exports=i}()},60134:()=>{},78837:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicUsageError",{enumerable:!0,get:function(){return a}});let r=n(99177),i=n(78216),o=n(97092),s=n(88228),a=e=>(0,r.isDynamicServerError)(e)||(0,i.isBailoutToCSRError)(e)||(0,o.isNextRouterError)(e)||(0,s.isDynamicPostpone)(e)},55745:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{METADATA_BOUNDARY_NAME:function(){return n},OUTLET_BOUNDARY_NAME:function(){return i},VIEWPORT_BOUNDARY_NAME:function(){return r}});let n="__next_metadata_boundary__",r="__next_viewport_boundary__",i="__next_outlet_boundary__"},88228:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Postpone:function(){return M},abortAndThrowOnSynchronousRequestDataAccess:function(){return L},abortOnSynchronousPlatformIOAccess:function(){return b},accessedDynamicData:function(){return R},annotateDynamicAccess:function(){return D},consumeDynamicAccess:function(){return j},createDynamicTrackingState:function(){return d},createDynamicValidationState:function(){return h},createPostponedAbortSignal:function(){return V},formatDynamicAPIAccesses:function(){return O},getFirstDynamicReason:function(){return f},isDynamicPostpone:function(){return C},isPrerenderInterruptedError:function(){return T},markCurrentScopeAsDynamic:function(){return p},postponeWithTracking:function(){return E},throwIfDisallowedDynamic:function(){return $},throwToInterruptStaticGeneration:function(){return m},trackAllowedDynamicAccess:function(){return N},trackDynamicDataInDynamicRender:function(){return y},trackFallbackParamAccessed:function(){return g},trackSynchronousPlatformIOAccessInDev:function(){return w},trackSynchronousRequestDataAccessInDev:function(){return S},useDynamicRouteParams:function(){return I}});let r=function(e){return e&&e.__esModule?e:{default:e}}(n(96540)),i=n(99177),o=n(97653),s=n(14740),a=n(80679),l=n(52249),u=n(55745),c="function"==typeof r.default.unstable_postpone;function d(e){return{isDebugDynamicAccesses:e,dynamicAccesses:[],syncDynamicExpression:void 0,syncDynamicErrorWithStack:null}}function h(){return{hasSuspendedDynamic:!1,hasDynamicMetadata:!1,hasDynamicViewport:!1,hasSyncDynamicErrors:!1,dynamicErrors:[]}}function f(e){var t;return null==(t=e.dynamicAccesses[0])?void 0:t.expression}function p(e,t,n){if((!t||"cache"!==t.type&&"unstable-cache"!==t.type)&&!e.forceDynamic&&!e.forceStatic){if(e.dynamicShouldError)throw new o.StaticGenBailoutError(`Route ${e.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${n}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(t){if("prerender-ppr"===t.type)E(e.route,n,t.dynamicTracking);else if("prerender-legacy"===t.type){t.revalidate=0;let r=new i.DynamicServerError(`Route ${e.route} couldn't be rendered statically because it used ${n}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=n,e.dynamicUsageStack=r.stack,r}}}}function g(e,t){let n=s.workUnitAsyncStorage.getStore();n&&"prerender-ppr"===n.type&&E(e.route,t,n.dynamicTracking)}function m(e,t,n){let r=new i.DynamicServerError(`Route ${t.route} couldn't be rendered statically because it used \`${e}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw n.revalidate=0,t.dynamicUsageDescription=e,t.dynamicUsageStack=r.stack,r}function y(e,t){t&&"cache"!==t.type&&"unstable-cache"!==t.type&&("prerender"===t.type||"prerender-legacy"===t.type)&&(t.revalidate=0)}function v(e,t,n){let r=P(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`);n.controller.abort(r);let i=n.dynamicTracking;i&&i.dynamicAccesses.push({stack:i.isDebugDynamicAccesses?Error().stack:void 0,expression:t})}function b(e,t,n,r){let i=r.dynamicTracking;return i&&null===i.syncDynamicErrorWithStack&&(i.syncDynamicExpression=t,i.syncDynamicErrorWithStack=n),v(e,t,r)}function w(e){e.prerenderPhase=!1}function L(e,t,n,r){let i=r.dynamicTracking;throw i&&null===i.syncDynamicErrorWithStack&&(i.syncDynamicExpression=t,i.syncDynamicErrorWithStack=n,!0===r.validating&&(i.syncDynamicLogged=!0)),v(e,t,r),P(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`)}let S=w;function M({reason:e,route:t}){let n=s.workUnitAsyncStorage.getStore();E(t,e,n&&"prerender-ppr"===n.type?n.dynamicTracking:null)}function E(e,t,n){_(),n&&n.dynamicAccesses.push({stack:n.isDebugDynamicAccesses?Error().stack:void 0,expression:t}),r.default.unstable_postpone(x(e,t))}function x(e,t){return`Route ${e} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`}function C(e){return"object"==typeof e&&null!==e&&"string"==typeof e.message&&A(e.message)}function A(e){return e.includes("needs to bail out of prerendering at this point because it used")&&e.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}if(!1===A(x("%%%","^^^")))throw Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js");let k="NEXT_PRERENDER_INTERRUPTED";function P(e){let t=Error(e);return t.digest=k,t}function T(e){return"object"==typeof e&&null!==e&&e.digest===k&&"name"in e&&"message"in e&&e instanceof Error}function R(e){return e.length>0}function j(e,t){return e.dynamicAccesses.push(...t.dynamicAccesses),e.dynamicAccesses}function O(e){return e.filter(e=>"string"==typeof e.stack&&e.stack.length>0).map(({expression:e,stack:t})=>(t=t.split("\n").slice(4).filter(e=>!(e.includes("node_modules/next/")||e.includes(" (<anonymous>)")||e.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${e}:
33${t}`))}function _(){if(!c)throw Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js")}function V(e){_();let t=new AbortController;try{r.default.unstable_postpone(e)}catch(e){t.abort(e)}return t.signal}function D(e,t){let n=t.dynamicTracking;n&&n.dynamicAccesses.push({stack:n.isDebugDynamicAccesses?Error().stack:void 0,expression:e})}function I(e){if("undefined"==typeof window){let t=a.workAsyncStorage.getStore();
33if(t&&t.isStaticGeneration&&t.fallbackRouteParams&&t.fallbackRouteParams.size>0){let n=s.workUnitAsyncStorage.getStore();n&&("prerender"===n.type?r.default.use((0,l.makeHangingPromise)(n.renderSignal,e)):"prerender-ppr"===n.type?E(t.route,e,n.dynamicTracking):"prerender-legacy"===n.type&&m(e,t,n))}}}let F=/\n\s+at Suspense \(<anonymous>\)/,H=RegExp(`\\n\\s+at ${u.METADATA_BOUNDARY_NAME}[\\n\\s]`),q=RegExp(`\\n\\s+at ${u.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`),U=RegExp(`\\n\\s+at ${u.OUTLET_BOUNDARY_NAME}[\\n\\s]`);function N(e,t,n,r,i){if(!U.test(t)){if(H.test(t)){n.hasDynamicMetadata=!0;return}if(q.test(t)){n.hasDynamicViewport=!0;return}if(F.test(t)){n.hasSuspendedDynamic=!0;return}if(r.syncDynamicErrorWithStack||i.syncDynamicErrorWithStack){n.hasSyncDynamicErrors=!0;return}else{let r=function(e,t){let n=Error(e);return n.stack="Error: "+e+t,n}(`Route "${e}": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. We don't have the exact line number added to error messages yet but you can see which component in the stack below. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense`,t);n.dynamicErrors.push(r);return}}}function $(e,t,n,r){let i,s,a;if(n.syncDynamicErrorWithStack?(i=n.syncDynamicErrorWithStack,s=n.syncDynamicExpression,a=!0===n.syncDynamicLogged):r.syncDynamicErrorWithStack?(i=r.syncDynamicErrorWithStack,s=r.syncDynamicExpression,a=!0===r.syncDynamicLogged):(i=null,s=void 0,a=!1),t.hasSyncDynamicErrors&&i)throw a||console.error(i),new o.StaticGenBailoutError;let l=t.dynamicErrors;if(l.length){for(let e=0;e<l.length;e++)console.error(l[e]);throw new o.StaticGenBailoutError}if(!t.hasSuspendedDynamic){if(t.hasDynamicMetadata){if(i)throw console.error(i),new o.StaticGenBailoutError(`Route "${e}" has a \`generateMetadata\` that could not finish rendering before ${s} was used. Follow the instructions in the error for this expression to resolve.`);throw new o.StaticGenBailoutError(`Route "${e}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or external data (\`fetch(...)\`, etc...) but the rest of the route was static or only used cached data (\`"use cache"\`). If you expected this route to be prerenderable update your \`generateMetadata\` to not use Request data and only use cached external data. Otherwise, add \`await connection()\` somewhere within this route to indicate explicitly it should not be prerendered.`)}if(t.hasDynamicViewport){if(i)throw console.error(i),new o.StaticGenBailoutError(`Route "${e}" has a \`generateViewport\` that could not finish rendering before ${s} was used. Follow the instructions in the error for this expression to resolve.`);throw new o.StaticGenBailoutError(`Route "${e}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or external data (\`fetch(...)\`, etc...) but the rest of the route was static or only used cached data (\`"use cache"\`). If you expected this route to be prerenderable update your \`generateViewport\` to not use Request data and only use cached external data. Otherwise, add \`await connection()\` somewhere within this route to indicate explicitly it should not be prerendered.`)}}}},52249:(e,t)=>{"use strict";function n(e,t){let n=new Promise((n,r)=>{e.addEventListener("abort",()=>{r(Error(`During prerendering, ${t} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${t} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context.`))},{once:!0})});return n.catch(r),n}function r(){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"makeHangingPromise",{enumerable:!0,get:function(){return n}})},89222:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isPostpone",{enumerable:!0,get:function(){return r}});let n=Symbol.for("react.postpone");function r(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}},13368:(e,t,n)=>{e.exports=n(23248)},76424:(e,t,n)=>{e.exports=n(93597)},86715:(e,t,n)=>{e.exports=n(74009)},2694:(e,t,n)=>{"use strict";var r=n(6925);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,s){if
33(s!==r){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},32278:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.AdSlot=void 0;var r=a(n(96540)),i=a(n(5556)),o=a(n(30392)),s=n(58077);function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){p(e,t,n[t])})}return e}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=0,m=function(e){var t;function n(e){var t,i;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),(t=(i=d(n).call(this,e))&&("object"===l(i)||"function"==typeof i)?i:f(this)).doRegisterSlot=t.doRegisterSlot.bind(f(f(t))),t.generateSlotId=t.generateSlotId.bind(f(f(t))),t.getSlotId=t.getSlotId.bind(f(f(t))),t.mapContextToAdSlotProps=t.mapContextToAdSlotProps.bind(f(f(t))),t.slotShouldRefresh=t.slotShouldRefresh.bind(f(f(t))),t.slotRenderEnded=t.slotRenderEnded.bind(f(f(t))),t.slotRegisterCallback=t.slotRegisterCallback.bind(f(f(t))),t.slotIsViewable=t.slotIsViewable.bind(f(f(t))),t.slotVisibilityChanged=t.slotVisibilityChanged.bind(f(f(t))),t.getClasses=t.getClasses.bind(f(f(t))),t.state={slotId:t.props.slotId||null,className:t.props.className||""},t.adElementRef=r.default.createRef?r.default.createRef():function(e){t.adElementRef=e},t}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(n,e),t=[{key:"componentDidMount",value:function(){void 0!==this.context&&this.context.newSlotCallback&&this.context.newSlotCallback(),this.registerSlot()}},{key:"componentWillUnmount",value:function(){this.unregisterSlot()}},{key:"getSlotId",value:function(){return this.props.slotId||this.state.slotId}},{key:"getClasses",value:function(){var e=this.state.className.split(" ");return e.push("adunitContainer"),e}},{key:"generateSlotId",value:function(){return"adSlot-".concat(g++)}},{key:"mapContextToAdSlotProps",value:function(){var e=this.context,t={};return void 0!==e.dfpNetworkId&&(t.dfpNetworkId=e.dfpNetworkId),void 0!==e.dfpAdUnit&&(t.adUnit=e.dfpAdUnit),void 0!==e.dfpSizeMapping&&(t.sizeMapping=e.dfpSizeMapping),void 0!==e.dfpTargetingArguments&&(t.targetingArguments=e.dfpTargetingArguments),t}},{key:"doRegisterSlot",value:function(){o.default.registerSlot(c({},this.mapContextToAdSlotProps(),this.props,this.state,{slotShouldRefresh:this.slotShouldRefresh})),!0===this.props.fetchNow&&o.default.load(this.getSlotId()),o.default.attachSlotRenderEnded(this.slotRenderEnded),o.default.attachSlotIsViewable(this.slotIsViewable),o.default.attachSlotVisibilityChanged(this.slotVisibilityChanged),this.slotRegisterCallback()}},{key:"registerSlot",value:function(){null===this.state.slotId?this.setState({slotId:this.generateSlotId()},this.doRegisterSlot):this.doRegisterSlot()}},{key:"unregisterSlot",value:function(){o.default.unregisterSlot(c({},this.mapContextToAdSlotProps(),this.props,this.state)),o.default.detachSlotRenderEnded(this.slotRenderEnded),o.default.detachSlotIsViewable(this.slotIsViewable),o.default.detachSlotVisibilityChanged(this.slotVisibilityChanged)}},{key:"slotRenderEnded",value:function(e){if(e.slotId===this.getSlotId()&&void 0!==this.props.onSlotRender){var t=c({},e,{adElementRef:this.adElementRef});this.props.onSlotRender(t)}}},{key:"slotRegisterCallback",value:function(){"function"==typeof this.props.onSlotRegister&&this.props.onSlotRegister({slotId:this.getSlotId(),sizes:this.props.sizes,slotCount:g,adElementRef:this.adElementRef})}},{key:"slotIsViewable",value:function(e){e.slotId===this.getSlotId()&&void 0!==this.props.onSlotIsViewable&&this.props.onSlotIsViewable(e)}},{key:"slotVisibilityChanged",value:function(e){e.slotId===this.getSlotId()&&void 0!==this.props.onSlotVisibilityChanged&&this.props.onSlotVisibilityChanged(e)}},{key:"slotShouldRefresh",value:function(){var e=!0;return void 0!==this.props.shouldRefresh&&(e=this.props.shouldRefresh(c({},this.mapContextToAdSlotProps(),this.props,{slotId:this.getSlotId()}))),e}},{key:"render",value:function(){var e=this.state.slotId,t={className:"adBox"};return null!==e&&(t.id=e),r.default.createElement("div",{className:this.getClasses().join(" ").trim()},r.default.createElement("div",u({ref:this.adElementRef},t)))}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(n.prototype,t),n}(r.default.Component);t.AdSlot=m,p(m,"propTypes",{dfpNetworkId:i.default.string,adUnit:i.default.string,sizes:i.default.arrayOf(i.default.oneOfType([i.default.arrayOf(i.default.number),i.default.string])),renderOutOfThePage:i.default.bool,sizeMapping:i.default.arrayOf(i.default.object),fetchNow:i.default.bool,adSenseAttributes:i.default.object,targetingArguments:i.default.object,onSlotRender:i.default.func,onSlotRegister:i.default.func,onSlotIsViewable:i.default.func,onSlotVisibilityChanged:i.default.func,shouldRefresh:i.default.func,slotId:i.default.string,className:i.default.string}),p(m,"defaultProps",{fetchNow:!1}),null===s.Context?m.contextTypes={dfpNetworkId:i.default.string,dfpAdUnit:i.default.string,dfpSizeMapping:i.default.arrayOf(i.default.object),dfpTargetingArguments:i.default.object,newSlotCallback:i.default.func}:m.contextType=s.Context,t.default=m},58077:(e,t,n)=>{"use strict";
33Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Context=void 0;var r=s(n(96540)),i=s(n(5556)),o=s(n(30392));function s(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=r.default.createContext?r.default.createContext({dfpNetworkId:null,dfpAdUnit:null,dfpSizeMapping:null,dfpTargetingArguments:null,newSlotCallback:null}):null;t.Context=h;var f=function(e){var t;function n(e){var t,r;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),(t=(r=l(n).call(this,e))&&("object"===a(r)||"function"==typeof r)?r:c(this)).loadAdsIfPossible=t.loadAdsIfPossible.bind(c(c(t))),t.newSlotCallback=t.newSlotCallback.bind(c(c(t))),t.applyConfigs=t.applyConfigs.bind(c(c(t))),t.shouldReloadConfig=t.shouldReloadConfig.bind(c(c(t))),t.attachLoadCallback=t.attachLoadCallback.bind(c(c(t))),t.getContextValue=t.getContextValue.bind(c(c(t))),t.loadAlreadyCalled=!1,t.loadCallbackAttached=!1,t.shouldReloadAds=!1,t.totalSlots=0,t.contextValue={},null===h&&(t.getChildContext=function(){return t.getContextValue()}),t}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(n,e),t=[{key:"componentDidMount",value:function(){this.applyConfigs(),this.props.autoLoad&&!this.loadAdsIfPossible()&&this.attachLoadCallback()}},{key:"shouldComponentUpdate",value:function(e){return this.shouldReloadAds=this.shouldReloadConfig(e),e.children!==this.props.children||!!e.autoLoad&&!this.props.autoLoad||this.shouldReloadAds}},{key:"componentDidUpdate",value:function(){this.applyConfigs(),this.props.autoLoad&&(this.loadAlreadyCalled?this.shouldReloadAds&&o.default.reload():this.loadAdsIfPossible()||this.attachLoadCallback()),this.shouldReloadAds=!1}},{key:"getContextValue",value:function(){var e=this.props,t=e.dfpNetworkId,n=e.adUnit,r=e.sizeMapping,i=e.targetingArguments,o=this.contextValue,s=o.dfpNetworkId,a=o.adUnit,l=o.sizeMapping,u=o.targetingArguments;return(t!==s||n!==a||r!==l||i!==u)&&(this.contextValue={dfpNetworkId:t,dfpAdUnit:n,dfpSizeMapping:r,dfpTargetingArguments:i,newSlotCallback:this.newSlotCallback}),this.contextValue}},{key:"applyConfigs",value:function(){o.default.configurePersonalizedAds(this.props.personalizedAds),o.default.configureCookieOption(this.props.cookieOption),o.default.configureSingleRequest(this.props.singleRequest),o.default.configureDisableInitialLoad(this.props.disableInitialLoad),o.default.configureLazyLoad(!!this.props.lazyLoad,"boolean"==typeof this.props.lazyLoad?null:this.props.lazyLoad),o.default.setAdSenseAttributes(this.props.adSenseAttributes),o.default.setCollapseEmptyDivs(this.props.collapseEmptyDivs),o.default.configureLimitedAds(this.props.limitedAds)}},{key:"attachLoadCallback",value:function(){return!1===this.loadCallbackAttached&&(o.default.on("slotRegistered",this.loadAdsIfPossible),this.loadCallbackAttached=!0,!0)}},{key:"newSlotCallback",value:function(){this.totalSlots++}},{key:"loadAdsIfPossible",value:function(){var e=!1;return Object.keys(o.default.getRegisteredSlots()).length>=this.totalSlots&&(o.default.removeListener("slotRegistered",this.loadAdsIfPossible),o.default.load(),this.loadAlreadyCalled=!0,this.loadCallbackAttached=!1,e=!0),e}},{key:"shouldReloadConfig",value:function(e){var t=e.autoReload||this.props.autoReload;if((this.props.autoLoad||e.autoLoad)&&"object"===a(t)){var n=Object.keys(t);for(var r in n){var i=n[r];if(!0===t[i]&&this.props[i]!==e[i])return!0}}return!1}},{key:"render",value:function(){var e=this.props.children;return null===h?e:r.default.createElement(h.Provider,{value:this.getContextValue()},e)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(n.prototype,t),n}(r.default.Component);t.default=f,d(f,"propTypes",{children:i.default.oneOfType([i.default.element,i.default.array]).isRequired,autoLoad:i.default.bool,autoReload:i.default.shape({dfpNetworkId:i.default.bool,personalizedAds:i.default.bool,cookieOption:i.default.bool,singleRequest:i.default.bool,disableInitialLoad:i.default.bool,adUnit:i.default.bool,sizeMapping:i.default.bool,adSenseAttributes:i.default.bool,targetingArguments:i.default.bool,collapseEmptyDivs:i.default.bool,lazyLoad:i.default.bool}),dfpNetworkId:i.default.string.isRequired,personalizedAds:i.default.bool,cookieOption:i.default.bool,singleRequest:i.default.bool,disableInitialLoad:i.default.bool,adUnit:i.default.string,sizeMapping:i.default.arrayOf(i.default.object),adSenseAttributes:i.default.object,targetingArguments:i.default.object,collapseEmptyDivs:i.default.oneOfType([i.default.bool,i.default.object]),adSenseAttrs:i.default.object,lazyLoad:i.default.oneOfType([i.default.bool,i.default.shape({fetchMarginPercent:i.default.number,renderMarginPercent:i.default.number,mobileScaling:i.default.number})]),limitedAds:i.default.bool}),d(f,"defaultProps",{autoLoad:!0,autoReload:{dfpNetworkId:!1,personalizedAds:!1,cookieOption:!1,singleRequest:!1,disableInitialLoad:!1,adUnit:!1,sizeMapping:!1,adSenseAttributes:!1,targetingArguments:!1,collapseEmptyDivs:!1,lazyLoad:!1},personalizedAds:!0,cookieOption:!0,singleRequest:!0,disableInitialLoad:!1,collapseEmptyDivs:null,lazyLoad:!1,limitedAds:!1}
33),null===h&&(f.childContextTypes={dfpNetworkId:i.default.string,dfpAdUnit:i.default.string,dfpSizeMapping:i.default.arrayOf(i.default.object),dfpTargetingArguments:i.default.object,newSlotCallback:i.default.func})},6975:(e,t,n)=>{"use strict";t.Hy=t.uS=t.eK=void 0;var r=s(n(30392)),i=s(n(32278)),o=s(n(58077));function s(e){return e&&e.__esModule?e:{default:e}}var a=r.default;t.eK=a;var l=i.default;t.uS=l;var u=o.default;t.Hy=u},30392:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(35766),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}}return t.default=e,t}(n(70650));function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){s(e,t,n[t])})}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l=null,u=null,c=!0,d=!1,h=!1,f=null,p=!0,g=!0,m={},y=!1,v={},b={},w=!1,L=Object.assign(new r.EventEmitter().setMaxListeners(0),{singleRequestIsEnabled:function(){return c},configureSingleRequest:function(e){c=!!e},disableInitialLoadIsEnabled:function(){return d},configureDisableInitialLoad:function(e){d=!!e},configureLazyLoad:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=null;null!==t&&"object"===a(t)&&(n=o({},t)),h=!!e,f=n},lazyLoadIsEnabled:function(){return h},limitedAdsIsEnabled:function(){return w},configureLimitedAds:function(e){w=!!e},getLazyLoadConfig:function(){return f},getAdSenseAttribute:function(e){return b[e]},configurePersonalizedAds:function(e){p=e},configureCookieOption:function(e){g=e},personalizedAdsEnabled:function(){return p},cookiesEnabled:function(){return g},setAdSenseAttribute:function(e,t){this.setAdSenseAttributes(s({},e,t))},getAdSenseAttributes:function(){return o({},b)},setAdSenseAttributes:function(e){Object.assign(b,e),!0===y&&this.getGoogletag().then(function(e){e.cmd.push(function(){var t=e.pubads();Object.keys(b).forEach(function(e){t.set(e,v[e])})})})},setTargetingArguments:function(e){Object.assign(v,e),Object.keys(m).forEach(function(t){m[t].targetingArguments=e}),!0===y&&this.getGoogletag().then(function(e){e.cmd.push(function(){var t=e.pubads();Object.keys(v).forEach(function(e){t&&t.setTargeting(e,v[e])})})})},getTargetingArguments:function(){return o({},v)},getSlotProperty:function(e,t){var n=this.getRegisteredSlots()[e],r=null;return void 0!==n&&(r=n[t]||r),r},getSlotTargetingArguments:function(e){var t=this.getSlotProperty(e,"targetingArguments");return t?o({},t):null},getSlotAdSenseAttributes:function(e){var t=this.getSlotProperty(e,"adSenseAttributes");return t?o({},t):null},init:function(){var e=this;!1===y&&(y=!0,this.getGoogletag().then(function(t){t.cmd.push(function(){var n=t.pubads();n.addEventListener("slotRenderEnded",function(t){var n=t.slot.getSlotElementId();e.emit("slotRenderEnded",{slotId:n,event:t})}),n.addEventListener("impressionViewable",function(t){var n=t.slot.getSlotElementId();e.emit("impressionViewable",{slotId:n,event:t})}),n.addEventListener("slotVisibilityChanged",function(t){var n=t.slot.getSlotElementId();e.emit("slotVisibilityChanged",{slotId:n,event:t})}),n.setRequestNonPersonalizedAds(e.personalizedAdsEnabled()?0:1),n.setCookieOptions(e.cookiesEnabled()?0:1)})}))},getGoogletag:function(){return null===u&&(u=i.loadGPTScript(w)),u},setCollapseEmptyDivs:function(e){this.collapseEmptyDivs=e},load:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];l=null===l?this.doLoad.apply(this,n):l.then(function(){return e.doLoad.apply(e,n)})},doLoad:function(){this.init();for(var e={},t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];
33return(e=(e=n.length>0?n.filter(function(e){return Object.prototype.hasOwnProperty.call(m,e)}):Object.keys(m)).filter(function(e){return!m[e].loading&&!m[e].gptSlot})).forEach(function(e){m[e].loading=!0}),this.gptLoadAds(e)},gptLoadAds:function(e){var t=this;return new Promise(function(n){t.getGoogletag().then(function(r){t.configureInitialOptions(r),e.forEach(function(e){m[e].loading=!1,r.cmd.push(function(){var n,i=m[e],o="".concat(i.dfpNetworkId,"/").concat(i.adUnit);if(null!==(n=!0===i.renderOutOfThePage?r.defineOutOfPageSlot(o,e):r.defineSlot(o,i.sizes,e))){i.gptSlot=n;var s=t.getSlotTargetingArguments(e);null!==s&&Object.keys(s).forEach(function(e){i&&i.gptSlot&&i.gptSlot.setTargeting(e,s[e])});var a=t.getSlotAdSenseAttributes(e);if(null!==a&&Object.keys(a).forEach(function(e){i.gptSlot.set(e,a[e])}),i.gptSlot.addService(r.pubads()),i.sizeMapping){var l=r.sizeMapping();i.sizeMapping.forEach(function(e){l=l.addSize(e.viewport,e.sizes)}),i.gptSlot.defineSizeMapping(l.build())}}})}),t.configureOptions(r),r.cmd.push(function(){r.enableServices(),e.forEach(function(e){r.display(e)}),n()})})})},configureInitialOptions:function(e){var t=this;e.cmd.push(function(){t.disableInitialLoadIsEnabled()&&e.pubads().disableInitialLoad()})},configureOptions:function(e){var t=this;e.cmd.push(function(){var n=e.pubads();n.setRequestNonPersonalizedAds(t.personalizedAdsEnabled()?0:1),n.setCookieOptions(t.cookiesEnabled()?0:1);var r=t.getTargetingArguments();Object.keys(r).forEach(function(e){n&&n.setTargeting(e,r[e])});var i=t.getAdSenseAttributes();
33if(Object.keys(i).forEach(function(e){n.set(e,i[e])}),t.lazyLoadIsEnabled()){var o=t.getLazyLoadConfig();o?n.enableLazyLoad(o):n.enableLazyLoad()}t.singleRequestIsEnabled()&&n.enableSingleRequest(),(!0===t.collapseEmptyDivs||!1===t.collapseEmptyDivs)&&n.collapseEmptyDivs(t.collapseEmptyDivs)})},getRefreshableSlots:function(){for(var e={},t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return 0===n.length?Object.keys(m).map(function(e){return m[e]}).reduce(function(t,n){return!0===n.slotShouldRefresh()&&(e[n.slotId]=n),e},e):n.reduce(function(t,n){var r=m[n];return void 0!==r&&(e[n]=r),e},e)},refresh:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];null===l?this.load():l.then(function(){e.gptRefreshAds(Object.keys(e.getRefreshableSlots.apply(e,n)))})},gptRefreshAds:function(e){var t=this;return this.getGoogletag().then(function(n){t.configureOptions(n),n.cmd.push(function(){var t=n.pubads(),r=e.map(function(e){return m[e].slotId});t.refresh(r)})})},reload:function(){var e=this;return this.destroyGPTSlots.apply(this,arguments).then(function(){return e.load()})},destroyGPTSlots:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return 0===n.length&&(n=Object.keys(m)),new Promise(function(t){var r=[];for(var i in n){var o=m[n[i]];r.push(o)}e.getGoogletag().then(function(e){e.cmd.push(function(){if(!0===y){if(n.length>0){for(var i in r){var o=r[i];r.push(o.gptSlot),delete o.gptSlot}e.destroySlots(r)}else e.destroySlots()}t(n)})})})},registerSlot:function(e){var t=this,n=e.slotId,r=e.dfpNetworkId,i=e.adUnit,o=e.sizes,s=e.renderOutOfThePage,a=e.sizeMapping,u=e.adSenseAttributes,c=e.targetingArguments,d=e.slotShouldRefresh,h=!(arguments.length>1)||void 0===arguments[1]||arguments[1];Object.prototype.hasOwnProperty.call(m,n)||(m[n]={slotId:n,sizes:o,renderOutOfThePage:s,dfpNetworkId:r,adUnit:i,adSenseAttributes:u,targetingArguments:c,sizeMapping:a,slotShouldRefresh:d,loading:!1},this.emit("slotRegistered",{slotId:n}),!0===h&&null!==l&&(l=l.catch().then(function(){var e=m[n];if(void 0!==e){var r=e.loading,i=e.gptSlot;!1!==r||i||t.load(n)}})))},unregisterSlot:function(e){var t=e.slotId;this.destroyGPTSlots(t),delete m[t]},getRegisteredSlots:function(){return m},attachSlotRenderEnded:function(e){this.on("slotRenderEnded",e)},detachSlotRenderEnded:function(e){this.removeListener("slotRenderEnded",e)},attachSlotVisibilityChanged:function(e){this.on("slotVisibilityChanged",e)},detachSlotVisibilityChanged:function(e){this.removeListener("slotVisibilityChanged",e)},attachSlotIsViewable:function(e){this.on("impressionViewable",e)},detachSlotIsViewable:function(e){this.removeListener("impressionViewable",e)}});t.default=L},70650:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadGPTScript=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise(function(t,r){var i;window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],(i=document.createElement("script")).src="".concat(document.location.protocol,"//").concat(e?n.limitedAds:n.standard,"/tag/js/gpt.js"),i.async=!0,i.type="text/javascript",i.onerror=function(e){r(e)},i.onload=function(){t(window.googletag)},document.getElementsByTagName("head")[0].appendChild(i)})};var n={standard:"securepubads.g.doubleclick.net",limitedAds:"pagead2.googlesyndication.com"}},46914:(e,t,n)=>{"use strict";n.d(t,{Wd:()=>H,T5:()=>D,KU:()=>o,pH:()=>I,ov:()=>F,kL:()=>q,Ay:()=>U,ko:()=>_});var r=n(96540);let i=r.createContext(null),o=e=>{let[t,n]=(0,r.useState)({}),o=(0,r.useCallback)((e,t="default")=>{n(n=>{if("current"===t)throw Error("'current' cannot be used as map id");if(n[t])throw Error(`Multiple maps with the same id: ${t}`);return{...n,[t]:e}})},[]),s=(0,r.useCallback)((e="default")=>{n(t=>{if(t[e]){let n={...t};return delete n[e],n}return t})},[]);return r.createElement(i.Provider,{value:{maps:t,onMapMount:o,onMapUnmount:s}},e.children)};function s(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!s(e[n],t[n]))return!1;return!0}if(Array.isArray(t))return!1;if("object"==typeof e&&"object"==typeof t){let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!t.hasOwnProperty(r)||!s(e[r],t[r]))return!1;return!0}return!1}function a(e,t){if(!e.getProjection)return;let n=e.getProjection();s(n,t.getProjection())||t.setProjection(n)}function l(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function u(e,t){let n=t.viewState||t,r=!1;if("zoom"in n){let t=e.zoom;e.zoom=n.zoom,r=r||t!==e.zoom}if("bearing"in n){let t=e.bearing;e.bearing=n.bearing,r=r||t!==e.bearing}if("pitch"in n){let t=e.pitch;e.pitch=n.pitch,r=r||t!==e.pitch}if(n.padding&&!e.isPaddingEqual(n.padding)&&(r=!0,e.padding=n.padding),"longitude"in n&&"latitude"in n){let t=e.center;e.center=new t.constructor(n.longitude,n.latitude),r=r||t!==e.center}return r}let c=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function d(e){if(!e)return null;
33if("string"==typeof e||("toJS"in e&&(e=e.toJS()),!e.layers))return e;let t={};for(let n of e.layers)t[n.id]=n;let n=e.layers.map(e=>{let n=null;"interactive"in e&&(n=Object.assign({},e),delete n.interactive);let r=t[e.ref];if(r)for(let t of(n=n||Object.assign({},e),delete n.ref,c))t in r&&(n[t]=r[t]);return n||e});return{...e,layers:n}}var h=n(65606);let f={version:8,sources:{},layers:[]},p={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},g={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},m={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},y=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],v=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class b{constructor(e,t,n){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=e=>{let t=this.props[m[e.type]];t?t(e):"error"===e.type&&console.error(e.error)},this._onPointerEvent=e=>{("mousemove"===e.type||"mouseout"===e.type)&&this._updateHover(e);let t=this.props[p[e.type]];t&&(this.props.interactiveLayerIds&&"mouseover"!==e.type&&"mouseout"!==e.type&&(e.features=this._hoveredFeatures||this._queryRenderedFeatures(e.point)),t(e),delete e.features)},this._onCameraEvent=e=>{if(!this._internalUpdate){let t=this.props[g[e.type]];t&&t(e)}e.type in this._deferredEvents&&(this._deferredEvents[e.type]=!1)},this._MapClass=e,this.props=t,this._initialize(n)}get map(){return this._map}get transform(){return this._renderTransform}setProps(e){let t=this.props;this.props=e;let n=this._updateSettings(e,t);n&&this._createShadowTransform(this._map);let r=this._updateSize(e),i=this._updateViewState(e,!0);this._updateStyle(e,t),this._updateStyleComponents(e,t),this._updateHandlers(e,t),(n||r||i&&!this._map.isMoving())&&this.redraw()}static reuse(e,t){let n=b.savedMaps.pop();if(!n)return null;let r=n.map,i=r.getContainer();for(t.className=i.className;i.childNodes.length>0;)t.appendChild(i.childNodes[0]);r._container=t;let o=r._resizeObserver;o&&(o.disconnect(),o.observe(t)),n.setProps({...e,styleDiffing:!1}),r.resize();let{initialViewState:s}=e;return s&&(s.bounds?r.fitBounds(s.bounds,{...s.fitBoundsOptions,duration:0}):n._updateViewState(s,!1)),r.isStyleLoaded()?r.fire("load"):r.once("styledata",()=>r.fire("load")),r._update(),n}_initialize(e){let{props:t}=this,{mapStyle:n=f}=t,r={...t,...t.initialViewState,accessToken:t.mapboxAccessToken||function(){let e=null;if("undefined"!=typeof location){let t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||h.env.MapboxAccessToken}catch(e){}try{e=e||h.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch(e){}return e}()||null,container:e,style:d(n)},i=r.initialViewState||r.viewState||r;if(Object.assign(r,{center:[i.longitude||0,i.latitude||0],zoom:i.zoom||0,pitch:i.pitch||0,bearing:i.bearing||0}),t.gl){let e=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=e,t.gl)}let o=new this._MapClass(r);i.padding&&o.setPadding(i.padding),t.cursor&&(o.getCanvas().style.cursor=t.cursor),this._createShadowTransform(o);let s=o._render;o._render=e=>{this._inRender=!0,s.call(o,e),this._inRender=!1};let l=o._renderTaskQueue.run;o._renderTaskQueue.run=e=>{l.call(o._renderTaskQueue,e),this._onBeforeRepaint()},o.on("render",()=>this._onAfterRepaint());let u=o.fire;
33for(let e in o.fire=this._fireEvent.bind(this,u),o.on("resize",()=>{this._renderTransform.resize(o.transform.width,o.transform.height)}),o.on("styledata",()=>{this._updateStyleComponents(this.props,{}),a(o.transform,this._renderTransform)}),o.on("sourcedata",()=>this._updateStyleComponents(this.props,{})),p)o.on(e,this._onPointerEvent);for(let e in g)o.on(e,this._onCameraEvent);for(let e in m)o.on(e,this._onEvent);this._map=o}recycle(){let e=this.map.getContainer().querySelector("[mapboxgl-children]");null==e||e.remove(),b.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){let e=this._map;!this._inRender&&e.style&&(e._frame&&(e._frame.cancel(),e._frame=null),e._render())}_createShadowTransform(e){let t=function(e){let t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}(e.transform);e.painter.transform=t,this._renderTransform=t}_updateSize(e){let{viewState:t}=e;if(t){let e=this._map;if(t.width!==e.transform.width||t.height!==e.transform.height)return e.resize(),!0}return!1}_updateViewState(e,t){if(this._internalUpdate)return!1;let n=this._map,r=this._renderTransform,{zoom:i,pitch:o,bearing:s}=r,a=n.isMoving();a&&(r.cameraElevationReference="sea");let c=u(r,{...l(n.transform),...e});if(a&&(r.cameraElevationReference="ground"),c&&t){let e=this._deferredEvents;e.move=!0,e.zoom||(e.zoom=i!==r.zoom),e.rotate||(e.rotate=s!==r.bearing),e.pitch||(e.pitch=o!==r.pitch)}return a||u(n.transform,e),c}_updateSettings(e,t){let n=this._map,r=!1;for(let i of y)if(i in e&&!s(e[i],t[i])){r=!0;let t=n[`set${i[0].toUpperCase()}${i.slice(1)}`];null==t||t.call(n,e[i])}return r}_updateStyle(e,t){if(e.cursor!==t.cursor&&(this._map.getCanvas().style.cursor=e.cursor||""),e.mapStyle!==t.mapStyle){let{mapStyle:t=f,styleDiffing:n=!0}=e,r={diff:n};return"localIdeographFontFamily"in e&&(r.localIdeographFontFamily=e.localIdeographFontFamily),this._map.setStyle(d(t),r),!0}return!1}_updateStyleComponents(e,t){let n=this._map,r=!1;return n.isStyleLoaded()&&("light"in e&&n.setLight&&!s(e.light,t.light)&&(r=!0,n.setLight(e.light)),"fog"in e&&n.setFog&&!s(e.fog,t.fog)&&(r=!0,n.setFog(e.fog)),"terrain"in e&&n.setTerrain&&!s(e.terrain,t.terrain)&&(!e.terrain||n.getSource(e.terrain.source))&&(r=!0,n.setTerrain(e.terrain))),r}_updateHandlers(e,t){var n,r;let i=this._map,o=!1;for(let a of v){let l=null===(n=e[a])||void 0===n||n;s(l,null===(r=t[a])||void 0===r||r)||(o=!0,l?i[a].enable(l):i[a].disable())}return o}_queryRenderedFeatures(e){let t=this._map,n=t.transform,{interactiveLayerIds:r=[]}=this.props;try{return t.transform=this._renderTransform,t.queryRenderedFeatures(e,{layers:r.filter(t.getLayer.bind(t))})}catch(e){return[]}finally{t.transform=n}}_updateHover(e){var t;let{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){let n=e.type,r=(null===(t=this._hoveredFeatures)||void 0===t?void 0:t.length)>0,i=this._queryRenderedFeatures(e.point),o=i.length>0;!o&&r&&(e.type="mouseleave",this._onPointerEvent(e)),this._hoveredFeatures=i,o&&!r&&(e.type="mouseenter",this._onPointerEvent(e)),e.type=n}else this._hoveredFeatures=null}_fireEvent(e,t,n){let r=this._map,i=r.transform,o="string"==typeof t?t:t.type;return("move"===o&&this._updateViewState(this.props,!1),o in g&&("object"==typeof t&&(t.viewState=l(i)),this._map.isMoving()))?(r.transform=this._renderTransform,e.call(r,t,n),r.transform=i):e.call(r,t,n),r}_onBeforeRepaint(){let e=this._map;for(let t in this._internalUpdate=!0,this._deferredEvents)this._deferredEvents[t]&&e.fire(t);this._internalUpdate=!1;let t=this._map.transform;e.transform=this._renderTransform,this._onAfterRepaint=()=>{a(this._renderTransform,t),e.transform=t}}}b.savedMaps=[];let w=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"],L="undefined"!=typeof document?r.useLayoutEffect:r.useEffect,S=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"],M=r.createContext(null);var E=n(40961);let x=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function C(e,t){if(!e||!t)return;let n=e.style;for(let e in t){let r=t[e];Number.isFinite(r)&&!x.test(e)?n[e]=`${r}px`:n[e]=r}}let A=(0,r.memo)((0,r.forwardRef)(function(e,t){let{map:n,mapLib:i}=(0,r.useContext)(M),o=(0,r.useRef)({props:e});o.current.props=e;let s=(0,r.useMemo)(()=>{let t=!1;
33r.Children.forEach(e.children,e=>{e&&(t=!0)});let n={...e,element:t?document.createElement("div"):null},a=new i.Marker(n);return a.setLngLat([e.longitude,e.latitude]),a.getElement().addEventListener("click",e=>{var t,n;null===(n=(t=o.current.props).onClick)||void 0===n||n.call(t,{type:"click",target:a,originalEvent:e})}),a.on("dragstart",e=>{var t,n;e.lngLat=s.getLngLat(),null===(n=(t=o.current.props).onDragStart)||void 0===n||n.call(t,e)}),a.on("drag",e=>{var t,n;e.lngLat=s.getLngLat(),null===(n=(t=o.current.props).onDrag)||void 0===n||n.call(t,e)}),a.on("dragend",e=>{var t,n;e.lngLat=s.getLngLat(),null===(n=(t=o.current.props).onDragEnd)||void 0===n||n.call(t,e)}),a},[]);(0,r.useEffect)(()=>(s.addTo(n.getMap()),()=>{s.remove()}),[]);let{longitude:a,latitude:l,offset:u,style:c,draggable:d=!1,popup:h=null,rotation:f=0,rotationAlignment:p="auto",pitchAlignment:g="auto"}=e;return(0,r.useEffect)(()=>{C(s.getElement(),c)},[c]),(0,r.useImperativeHandle)(t,()=>s,[]),(s.getLngLat().lng!==a||s.getLngLat().lat!==l)&&s.setLngLat([a,l]),u&&!function(e,t){let n=Array.isArray(e)?e[0]:e?e.x:0,r=Array.isArray(e)?e[1]:e?e.y:0,i=Array.isArray(t)?t[0]:t?t.x:0,o=Array.isArray(t)?t[1]:t?t.y:0;return n===i&&r===o}(s.getOffset(),u)&&s.setOffset(u),s.isDraggable()!==d&&s.setDraggable(d),s.getRotation()!==f&&s.setRotation(f),s.getRotationAlignment()!==p&&s.setRotationAlignment(p),s.getPitchAlignment()!==g&&s.setPitchAlignment(g),s.getPopup()!==h&&s.setPopup(h),(0,E.createPortal)(e.children,s.getElement())}));function k(e){return new Set(e?e.trim().split(/\s+/):[])}(0,r.memo)((0,r.forwardRef)(function(e,t){let{map:n,mapLib:i}=(0,r.useContext)(M),o=(0,r.useMemo)(()=>document.createElement("div"),[]),a=(0,r.useRef)({props:e});a.current.props=e;let l=(0,r.useMemo)(()=>{let t={...e},n=new i.Popup(t);return n.setLngLat([e.longitude,e.latitude]),n.once("open",e=>{var t,n;null===(n=(t=a.current.props).onOpen)||void 0===n||n.call(t,e)}),n},[]);if((0,r.useEffect)(()=>{let e=e=>{var t,n;null===(n=(t=a.current.props).onClose)||void 0===n||n.call(t,e)};return l.on("close",e),l.setDOMContent(o).addTo(n.getMap()),()=>{l.off("close",e),l.isOpen()&&l.remove()}},[]),(0,r.useEffect)(()=>{C(l.getElement(),e.style)},[e.style]),(0,r.useImperativeHandle)(t,()=>l,[]),l.isOpen()&&((l.getLngLat().lng!==e.longitude||l.getLngLat().lat!==e.latitude)&&l.setLngLat([e.longitude,e.latitude]),e.offset&&!s(l.options.offset,e.offset)&&l.setOffset(e.offset),(l.options.anchor!==e.anchor||l.options.maxWidth!==e.maxWidth)&&(l.options.anchor=e.anchor,l.setMaxWidth(e.maxWidth)),l.options.className!==e.className)){let t=k(l.options.className),n=k(e.className);for(let e of t)n.has(e)||l.removeClassName(e);for(let e of n)t.has(e)||l.addClassName(e);l.options.className=e.className}return(0,E.createPortal)(e.children,o)}));let P=function(e,t,n,i){let o=(0,r.useContext)(M),s=(0,r.useMemo)(()=>e(o),[]);return(0,r.useEffect)(()=>{let e=i||n||t,r="function"==typeof t&&"function"==typeof n?t:null,a="function"==typeof n?n:"function"==typeof t?t:null,{map:l}=o;return!l.hasControl(s)&&(l.addControl(s,null==e?void 0:e.position),r&&r(o)),()=>{a&&a(o),l.hasControl(s)&&l.removeControl(s)}},[]),s};(0,r.memo)(function(e){let t=P(({mapLib:t})=>new t.AttributionControl(e),{position:e.position});return(0,r.useEffect)(()=>{C(t._container,e.style)},[e.style]),null}),(0,r.memo)(function(e){let t=P(({mapLib:t})=>new t.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return(0,r.useEffect)(()=>{C(t._controlContainer,e.style)},[e.style]),null}),(0,r.memo)((0,r.forwardRef)(function(e,t){let n=(0,r.useRef)({props:e}),i=P(({mapLib:t})=>{let r=new t.GeolocateControl(e),i=r._setupUI;return r._setupUI=e=>{r._container.hasChildNodes()||i(e)},r.on("geolocate",e=>{var t,r;null===(r=(t=n.current.props).onGeolocate)||void 0===r||r.call(t,e)}),r.on("error",e=>{var t,r;null===(r=(t=n.current.props).onError)||void 0===r||r.call(t,e)}),r.on("outofmaxbounds",e=>{var t,r;null===(r=(t=n.current.props).onOutOfMaxBounds)||void 0===r||r.call(t,e)}),r.on("trackuserlocationstart",e=>{var t,r;null===(r=(t=n.current.props).onTrackUserLocationStart)||void 0===r||r.call(t,e)}),r.on("trackuserlocationend",e=>{var t,r;null===(r=(t=n.current.props).onTrackUserLocationEnd)||void 0===r||r.call(t,e)}),r},{position:e.position});return n.current.props=e,(0,r.useImperativeHandle)(t,()=>i,[]),(0,r.useEffect)(()=>{C(i._container,e.style)},[e.style]),null}));let T=(0,r.memo)(function(e){let t=P(({mapLib:t})=>new t.NavigationControl(e),{position:e.position});return(0,r.useEffect)(()=>{C(t._container,e.style)},[e.style]),null});function R(e,t){if(!e)throw Error(t)}(0,r.memo)(function(e){let t=P(({mapLib:t})=>new t.ScaleControl(e),{position:e.position}),n=(0,r.useRef)(e),i=n.current;n.current=e;let{style:o}=e;return void 0!==e.maxWidth&&e.maxWidth!==i.maxWidth&&(t.options.maxWidth=e.maxWidth),void 0!==e.unit&&e.unit!==i.unit&&t.setUnit(e.unit),(0,r.useEffect)(()=>{C(t._container,o)},[o]),null});let j=0,O=0;function _(){return function(){var e;let t=null===(e=(0,r.useContext)(i))||void 0===e?void 0:e.maps,n=(0,r.useContext)(M);return(0,r.useMemo)(()=>({...t,current:null==n?void 0:n.map}),[t,n])}()}let V=n.e(2266).then(n.t.bind(n,60842,23)),D=r.forwardRef(function(e,t){return function(e,t,n){let o=(0,r.useContext)(i),[s,a]=(0,r.useState)(null),l=(0,r.useRef)(),{current:u}=(0,r.useRef)({mapLib:null,map:null});(0,r.useEffect)(()=>{let t;let r=e.mapLib,i=!0;return Promise.resolve(r||n).then(n=>{if(!i)return;if(!n)throw Error("Invalid mapLib");let r="Map"in n?n:n.default;if(!r.Map)throw Error("Invalid mapLib");if(function(e,t){for(let n of S)n in t&&(e[n]=t[n]);
33let{RTLTextPlugin:n="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=t;n&&e.getRTLTextPluginStatus&&"unavailable"===e.getRTLTextPluginStatus()&&e.setRTLTextPlugin(n,e=>{e&&console.error(e)},!0)}(r,e),!r.supported||r.supported(e))e.reuseMaps&&(t=b.reuse(e,l.current)),t||(t=new b(r.Map,e,l.current)),u.map=function(e){if(!e)return null;let t=e.map,n={getMap:()=>t,getCenter:()=>e.transform.center,getZoom:()=>e.transform.zoom,getBearing:()=>e.transform.bearing,getPitch:()=>e.transform.pitch,getPadding:()=>e.transform.padding,getBounds:()=>e.transform.getBounds(),project:n=>{let r=t.transform;t.transform=e.transform;let i=t.project(n);return t.transform=r,i},unproject:n=>{let r=t.transform;t.transform=e.transform;let i=t.unproject(n);return t.transform=r,i},queryTerrainElevation:(n,r)=>{let i=t.transform;t.transform=e.transform;let o=t.queryTerrainElevation(n,r);return t.transform=i,o},queryRenderedFeatures:(n,r)=>{let i=t.transform;t.transform=e.transform;let o=t.queryRenderedFeatures(n,r);return t.transform=i,o}};for(let e of function(e){let t=new Set,n=e;for(;n;){for(let r of Object.getOwnPropertyNames(n))"_"!==r[0]&&"function"==typeof e[r]&&"fire"!==r&&"setEventedParent"!==r&&t.add(r);n=Object.getPrototypeOf(n)}return Array.from(t)}(t))e in n||w.includes(e)||(n[e]=t[e].bind(t));return n}(t),u.mapLib=r,a(t),null==o||o.onMapMount(u.map,e.id);else throw Error("Map is not supported by this browser")}).catch(t=>{let{onError:n}=e;n?n({type:"error",target:null,originalEvent:null,error:t}):console.error(t)}),()=>{i=!1,t&&(null==o||o.onMapUnmount(e.id),e.reuseMaps?t.recycle():t.destroy())}},[]),L(()=>{s&&s.setProps(e)}),(0,r.useImperativeHandle)(t,()=>u.map,[s]);let c=(0,r.useMemo)(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]);return r.createElement("div",{id:e.id,ref:l,style:c},s&&r.createElement(M.Provider,{value:u},r.createElement("div",{"mapboxgl-children":"",style:{height:"100%"}},e.children)))}(e,t,V)}),I=A,F=T,H=function(e){let t=(0,r.useContext)(M).map.getMap(),n=(0,r.useRef)(e),[,i]=(0,r.useState)(0),o=(0,r.useMemo)(()=>e.id||`jsx-layer-${j++}`,[]);if((0,r.useEffect)(()=>{if(t){let e=()=>i(e=>e+1);return t.on("styledata",e),e(),()=>{t.off("styledata",e),t.style&&t.style._loaded&&t.getLayer(o)&&t.removeLayer(o)}}},[t]),t&&t.style&&t.getLayer(o))try{!function(e,t,n,r){if(R(n.id===r.id,"layer id changed"),R(n.type===r.type,"layer type changed"),"custom"===n.type||"custom"===r.type)return;let{layout:i={},paint:o={},filter:a,minzoom:l,maxzoom:u,beforeId:c}=n;if(c!==r.beforeId&&e.moveLayer(t,c),i!==r.layout){let n=r.layout||{};for(let r in i)s(i[r],n[r])||e.setLayoutProperty(t,r,i[r]);for(let r in n)i.hasOwnProperty(r)||e.setLayoutProperty(t,r,void 0)}if(o!==r.paint){let n=r.paint||{};for(let r in o)s(o[r],n[r])||e.setPaintProperty(t,r,o[r]);for(let r in n)o.hasOwnProperty(r)||e.setPaintProperty(t,r,void 0)}s(a,r.filter)||e.setFilter(t,a),(l!==r.minzoom||u!==r.maxzoom)&&e.setLayerZoomRange(t,l,u)}(t,o,e,n.current)}catch(e){console.warn(e)}else!function(e,t,n){if(e.style&&e.style._loaded&&(!("source"in n)||e.getSource(n.source))){let r={...n,id:t};delete r.beforeId,e.addLayer(r,n.beforeId)}}(t,o,e);return n.current=e,null},q=function(e){let t=(0,r.useContext)(M).map.getMap(),n=(0,r.useRef)(e),[,i]=(0,r.useState)(0),o=(0,r.useMemo)(()=>e.id||`jsx-source-${O++}`,[]);(0,r.useEffect)(()=>{if(t){let e=()=>setTimeout(()=>i(e=>e+1),0);return t.on("styledata",e),e(),()=>{var n;if(t.off("styledata",e),t.style&&t.style._loaded&&t.getSource(o)){let e=null===(n=t.getStyle())||void 0===n?void 0:n.layers;if(e)for(let n of e)n.source===o&&t.removeLayer(n.id);t.removeSource(o)}}}},[t]);let a=t&&t.style&&t.getSource(o);return a?function(e,t,n){R(t.id===n.id,"source id changed"),R(t.type===n.type,"source type changed");let r="",i=0;for(let e in t)"children"!==e&&"id"!==e&&!s(n[e],t[e])&&(r=e,i++);if(!i)return;let o=t.type;"geojson"===o?e.setData(t.data):"image"===o?e.updateImage({url:t.url,coordinates:t.coordinates}):"setCoordinates"in e&&1===i&&"coordinates"===r?e.setCoordinates(t.coordinates):"setUrl"in e&&"url"===r?e.setUrl(t.url):"setTiles"in e&&"tiles"===r?e.setTiles(t.tiles):console.warn(`Unable to update <Source> prop: ${r}`)}(a,e,n.current):a=function(e,t,n){if(e.style&&e.style._loaded){let r={...n};return delete r.id,delete r.children,e.addSource(t,r),e.getSource(t)}return null}(t,o,e),n.current=e,a&&r.Children.map(e.children,e=>e&&(0,r.cloneElement)(e,{source:o}))||null},U=D},52075:(e,t,n)=>{"use strict";
33Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorageInstance",{enumerable:!0,get:function(){return r}});let r=(0,n(64054).createAsyncLocalStorage)()},4044:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r.actionAsyncStorageInstance}});let r=n(52075)},64054:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{bindSnapshot:function(){return s},createAsyncLocalStorage:function(){return o},createSnapshot:function(){return a}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}static bind(e){return e}}let i="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function o(){return i?new i:new r}function s(e){return i?i.bind(e):r.bind(e)}function a(){return i?i.snapshot():function(e,...t){return e(...t)}}},17828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return r}});let r=(0,n(64054).createAsyncLocalStorage)()},80679:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return r.workAsyncStorageInstance}});let r=n(17828)},74931:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workUnitAsyncStorageInstance",{enumerable:!0,get:function(){return r}});let r=(0,n(64054).createAsyncLocalStorage)()},14740:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getExpectedRequestStore:function(){return i},getPrerenderResumeDataCache:function(){return o},getRenderResumeDataCache:function(){return s},workUnitAsyncStorage:function(){return r.workUnitAsyncStorageInstance}});let r=n(74931);function i(e){let t=r.workUnitAsyncStorageInstance.getStore();if(t){if("request"===t.type)return t;if("prerender"===t.type||"prerender-ppr"===t.type||"prerender-legacy"===t.type)throw Error(`\`${e}\` cannot be called inside a prerender. This is a bug in Next.js.`);if("cache"===t.type)throw Error(`\`${e}\` cannot be called inside "use cache". Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/messages/next-request-in-use-cache`);if("unstable-cache"===t.type)throw Error(`\`${e}\` cannot be called inside unstable_cache. Call it outside and pass an argument instead. Read more: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`)}throw Error(`\`${e}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`)}function o(e){return"prerender"===e.type||"prerender-ppr"===e.type?e.prerenderResumeDataCache:null}function s(e){return"prerender-legacy"!==e.type&&"cache"!==e.type&&"unstable-cache"!==e.type?"request"===e.type?e.renderResumeDataCache:e.prerenderResumeDataCache:null}},46942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=o(t,n));return t}(n)))}return e}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0!==(n=(function(){return i}).apply(t,[]))&&(e.exports=n)}()},58168:(e,t,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,{A:()=>r})},42892:(e,t,n)=>{"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{A:()=>i})},11381:(e,t,n)=>{"use strict";n.d(t,{S:()=>o});var r=n(24880);let i=()=>r.S$,o=()=>i()},29658:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});var r=n(66500);let i=new class extends r.Q{#C;#A;#k;constructor(){super(),this.#k=e=>{if("undefined"!=typeof window&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#A||this.setEventListener(this.#k)}onUnsubscribe(){this.hasListeners()||(this.#A?.(),this.#A=void 0)}setEventListener(e){this.#k=e,this.#A?.(),this.#A=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#C!==e&&(this.#C=e,this.onFocus())}onFocus(){let e=this.isFocused();
33this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#C?this.#C:globalThis.document?.visibilityState!=="hidden"}}},58959:(e,t,n)=>{"use strict";n.d(t,{PL:()=>i,RQ:()=>l,rB:()=>a});var r=n(24880);function i(e){return{onFetch:(t,n)=>{let i=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,l=t.state.data?.pages||[],u=t.state.data?.pageParams||[],c={pages:[],pageParams:[]},d=0,h=async()=>{let n=!1,h=e=>{(0,r.ox)(e,()=>t.signal,()=>n=!0)},f=(0,r.ZM)(t.options,t.fetchOptions),p=async(e,i,o)=>{if(n)return Promise.reject(t.signal.reason);if(null==i&&e.pages.length)return Promise.resolve(e);let s=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:i,direction:o?"backward":"forward",meta:t.options.meta};return h(e),e})(),a=await f(s),{maxPages:l}=t.options,u=o?r.ZZ:r.y9;return{pages:u(e.pages,a,l),pageParams:u(e.pageParams,i,l)}};if(a&&l.length){let e="backward"===a,t=e?s:o,n={pages:l,pageParams:u};c=await p(n,t(i,n),e)}else{let t=e??l.length;do{let e=0===d?u[0]??i.initialPageParam:o(i,c);if(d>0&&null==e)break;c=await p(c,e),d++}while(d<t)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=h}}}function o(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function s(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function a(e,t){return!!t&&null!=o(e,t)}function l(e,t){return!!t&&!!e.getPreviousPageParam&&null!=s(e,t)}},26261:(e,t,n)=>{"use strict";n.d(t,{jG:()=>i});let r=n(52775).Zq,i=function(){let e=[],t=0,n=e=>{e()},i=e=>{e()},o=r,s=r=>{t?e.push(r):o(()=>{n(r)})},a=()=>{let t=e;e=[],t.length&&o(()=>{i(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{--t||a()}return n},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{o=e}}}()},96035:(e,t,n)=>{"use strict";n.d(t,{t:()=>i});var r=n(66500);let i=new class extends r.Q{#P=!0;#A;#k;constructor(){super(),this.#k=e=>{if("undefined"!=typeof window&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#A||this.setEventListener(this.#k)}onUnsubscribe(){this.hasListeners()||(this.#A?.(),this.#A=void 0)}setEventListener(e){this.#k=e,this.#A?.(),this.#A=e(this.setOnline.bind(this))}setOnline(e){this.#P!==e&&(this.#P=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#P}}},79757:(e,t,n)=>{"use strict";n.d(t,{X:()=>l,k:()=>u});var r=n(24880),i=n(26261),o=n(58904),s=n(71692),a=n(58959),l=class extends s.k{#T;#R;#j;#O;#a;#f;#w;#_;constructor(e){super(),this.#_=!1,this.#w=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#O=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#R=d(this.options),this.state=e.state??this.#R,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#T}get promise(){return this.#f?.promise}setOptions(e){if(this.options={...this.#w,...e},e?._type&&(this.#T=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=d(this.options);void 0!==e.data&&(this.setState(c(e.data,e.dataUpdatedAt)),this.#R=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#O.remove(this)}setData(e,t){let n=(0,r.pl)(this.state.data,e,this.options);return this.#p({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#p({type:"setState",state:e})}cancel(e){let t=this.#f?.promise;return this.#f?.cancel(e),t?t.then(r.lQ).catch(r.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#R}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==(0,r.GF)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===r.hT||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
33Count>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,r.GF)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,r.j3)(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#f?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#f?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#O.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){let t=this.observers.indexOf(e);-1!==t&&(this.observers.splice(t,1),this.observers.length||(this.#f&&(this.#_||"paused"===this.state.fetchStatus&&"pending"===this.state.status?this.#f.cancel({revert:!0}):this.#f.cancelRetry()),this.scheduleGc()),this.#O.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#p({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&this.#f?.status()!=="rejected"){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#f)return this.#f.continueRetry(),this.#f.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#_=!0,n.signal)})},s=()=>{let e=(0,r.ZM)(this.options,t),n=(()=>{let e={client:this.#a,queryKey:this.queryKey,meta:this.meta};return i(e),e})();return(this.#_=!1,this.options.persister)?this.options.persister(e,n,this):e(n)},l=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:s};return i(e),e})();("infinite"===this.#T?a.PL(this.options.pages):this.options.behavior)?.onFetch(l,this),this.#j=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#p({type:"fetch",meta:l.fetchOptions?.meta});let u=this.#f=(0,o.II)({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:e=>{e instanceof o.cc&&e.revert&&this.setState({...this.#j,fetchStatus:"idle"}),n.abort()},onFail:(e,t)=>{this.#p({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#p({type:"pause"})},onContinue:()=>{this.#p({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{let e=await u.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#O.config.onSuccess?.(e,this),this.#O.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof o.cc){if(e.silent)return this.#f.promise;if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#p({type:"error",error:e}),this.#O.config.onError?.(e,this),this.#O.config.onSettled?.(this.state.data,e,this),e}finally{this.#f===u&&(this.#f=void 0),this.scheduleGc()}}#p(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...u(t.data,this.options),fetchMeta:e.meta??null};case"success":let n={...t,...c(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#j=e.manual?n:void 0,n;case"error":let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),i.jG.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#O.notify({query:this,type:"updated",action:e})})}};function u(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,o.v_)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function c(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function d(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdate
33Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}},71692:(e,t,n)=>{"use strict";n.d(t,{k:()=>s});var r=n(52775),i=n(24880),o=n(11381),s=class{#V;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,i.gn)(this.gcTime)&&(this.#V=r.zs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??((0,o.S)()?1/0:3e5))}clearGcTimeout(){void 0!==this.#V&&(r.zs.clearTimeout(this.#V),this.#V=void 0)}}},58904:(e,t,n)=>{"use strict";n.d(t,{II:()=>c,cc:()=>u,v_:()=>l});var r=n(24880),i=n(11381),o=n(29658),s=n(96035);function a(e){return Math.min(1e3*2**e,3e4)}function l(e){return(e??"online")!=="online"||s.t.isOnline()}var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){let t,n,c,d=!1,h=0,f="pending",p=new Promise((e,t)=>{n=e,c=t});p.catch(r.lQ);let g=()=>"pending"!==f,m=()=>o.m.isFocused()&&("always"===e.networkMode||s.t.isOnline())&&e.canRun(),y=()=>l(e.networkMode)&&e.canRun(),v=e=>{g()||(t?.(),f="resolved",n(e))},b=e=>{g()||(t?.(),f="rejected",c(e))},w=()=>new Promise(n=>{t=e=>{(g()||m())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,g()||e.onContinue?.()}),L=()=>{let t;if(g())return;let n=0===h?e.initialPromise:void 0;try{t=n??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(v).catch(t=>{if(g())return;let n=e.retry??((0,i.S)()?0:3),o=e.retryDelay??a,s="function"==typeof o?o(h,t):o,l=!0===n||"number"==typeof n&&h<n||"function"==typeof n&&n(h,t);if(d||!l){b(t);return}h++,e.onFail?.(h,t),(0,r.yy)(s).then(()=>m()?void 0:w()).then(()=>{d?b(t):L()})})};return{promise:p,status:()=>f,cancel:t=>{if(!g()){let n=new u(t);b(n),e.onCancel?.(n)}},continue:()=>(t?.(),p),cancelRetry:()=>{d=!0},continueRetry:()=>{d=!1},canStart:y,start:()=>(y()?L():w().then(L),p)}}},66500:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});var r=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},52775:(e,t,n)=>{"use strict";n.d(t,{Zq:()=>o,zs:()=>i});let r={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},i=new class{#D=r;#I=!1;setTimeoutProvider(e){this.#D=e}setTimeout(e,t){return this.#D.setTimeout(e,t)}clearTimeout(e){this.#D.clearTimeout(e)}setInterval(e,t){return this.#D.setInterval(e,t)}clearInterval(e){this.#D.clearInterval(e)}};function o(e){setTimeout(e,0)}},24880:(e,t,n)=>{"use strict";n.d(t,{Cp:()=>p,EN:()=>f,F$:()=>h,GF:()=>u,GU:()=>C,MK:()=>c,S$:()=>i,ZM:()=>x,ZZ:()=>M,Zw:()=>s,f8:()=>m,gn:()=>a,hT:()=>E,j3:()=>l,lQ:()=>o,nJ:()=>d,ox:()=>A,pl:()=>L,y9:()=>S,yy:()=>w});var r=n(52775);let i="undefined"==typeof window||"Deno"in globalThis;function o(){}function s(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function l(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t){return"function"==typeof e?e(t):e}function c(e,t){let{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==h(s,t.options))return!1}else if(!p(t.queryKey,s))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&(!i||i===t.state.fetchStatus)&&(!o||!!o(t))}function d(e,t){let{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(f(t.options.mutationKey)!==f(o))return!1}else if(!p(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&(!i||!!i(t))}function h(e,t){return(t?.queryKeyHashFn||f)(e)}function f(e){return JSON.stringify(e,(e,t)=>v(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function p(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let n=0;n<t.length;n++)if(!p(e[n],t[n]))return!1;return!0}for(let n of Object.keys(t))if(!p(e[n],t[n]))return!1;return!0}return!1}let g=Object.prototype.hasOwnProperty;function m(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function y(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function v(e){if(!b(e))return!1;let t=Object.getPrototypeOf(e),n=t?.constructor;if(void 0===n)return!0;
33if("function"!=typeof n)return!1;let r=n.prototype;return!!(b(r)&&r.hasOwnProperty("isPrototypeOf"))&&t===Object.prototype}function b(e){return"[object Object]"===Object.prototype.toString.call(e)}function w(e){return new Promise(t=>{r.zs.setTimeout(t,e)})}function L(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n,r=0){if(t===n)return t;if(r>500)return n;let i=y(t)&&y(n);if(!i&&!(v(t)&&v(n)))return n;let o=(i?t:Object.keys(t)).length,s=i?n:Object.keys(n),a=s.length,l=i?Array(a):{},u=0;for(let c=0;c<a;c++){let a=i?c:s[c],d=t[a],h=n[a];if(d===h){l[a]=d,(i?c<o:g.call(t,a))&&u++;continue}if(null===d||null===h||"object"!=typeof d||"object"!=typeof h){l[a]=h;continue}let f=e(d,h,r+1);l[a]=f,f===d&&u++}return o===a&&u===o?t:l}(e,t):t}function S(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function M(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}let E=Symbol();function x(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==E?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}function C(e,t){return"function"==typeof e?e(...t):!!e}function A(e,t,n){let r,i=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(r??=t(),i||(i=!0,r.aborted?n():r.addEventListener("abort",n,{once:!0})),r)}),e}},97665:(e,t,n)=>{"use strict";n.d(t,{Ht:()=>a,jE:()=>s});var r=n(96540),i=n(74848);let o=r.createContext(void 0),s=e=>{let t=r.useContext(o);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},a=({client:e,children:t})=>(r.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,i.jsx)(o.Provider,{value:e,children:t}))},98989:(e,t,n)=>{"use strict";n.d(t,{N:()=>b});var r=n(74848),i=n(96540),o=n(29473),s=n(28601),a=n(97513),l=n(86719),u=n(76995),c=n(35446);function d(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class h extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,u.s)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=(0,u.s)(e)&&e.offsetWidth||0,r=(0,u.s)(e)&&e.offsetHeight||0,i=getComputedStyle(t),o=this.props.sizeRef.current;o.height=parseFloat(i.height),o.width=parseFloat(i.width),o.top=t.offsetTop,o.left=t.offsetLeft,o.right=n-o.width-o.left,o.bottom=r-o.height-o.top,o.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function f({children:e,isPresent:t,anchorX:n,anchorY:o,root:s,pop:a}){let l=(0,i.useId)(),u=(0,i.useRef)(null),f=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:p}=(0,i.useContext)(c.Q),g=function(...e){return i.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=d(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():d(e[t],null)}}}}(...e),e)}(u,!1!==a?e.props?.ref??e?.ref:void 0);return(0,i.useInsertionEffect)(()=>{let{width:e,height:r,top:i,left:c,right:d,bottom:h,direction:g}=f.current;if(t||!1===a||!u.current||!e||!r)return;let m="rtl"===g,y="left"===n?m?`right: ${d}`:`left: ${c}`:m?`left: ${c}`:`right: ${d}`,v="bottom"===o?`bottom: ${h}`:`top: ${i}`;u.current.dataset.motionPopId=l;let b=document.createElement("style");p&&(b.nonce=p);let w=s??document.head;return w.appendChild(b),b.sheet&&b.sheet.insertRule(`
34          [data-motion-pop-id="${l}"] {
35            position: absolute !important;
36            width: ${e}px !important;
37            height: ${r}px !important;
38            ${y}px !important;
39            ${v}px !important;
40          }
41        `),()=>{u.current?.removeAttribute("data-motion-pop-id"),w.contains(b)&&w.removeChild(b)}},[t]),(0,r.jsx)(h,{isPresent:t,childRef:u,sizeRef:f,pop:a,children:!1===a?e:i.cloneElement(e,{ref:g})})}let p=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:u,presenceAffectsLayout:c,mode:d,anchorX:h,anchorY:p,root:m})=>{let y=(0,s.M)(g),v=(0,i.useId)(),b=(0,i.useRef)(n),w=(0,i.useRef)(o);(0,a.E)(()=>{b.current=n,w.current=o});let L=!0,S=(0,i.useMemo)(()=>(L=!1,{id:v,initial:t,isPresent:n,custom:u,onExitComplete:e=>
41{for(let t of(y.set(e,!0),y.values()))if(!t)return;o&&o()},register:e=>(y.set(e,!1),()=>{y.delete(e),b.current||y.size||w.current?.()})}),[n,y,o]);return c&&L&&(S={...S}),(0,i.useMemo)(()=>{y.forEach((e,t)=>y.set(t,!1))},[n]),i.useEffect(()=>{n||y.size||!o||o()},[n]),e=(0,r.jsx)(f,{pop:"popLayout"===d,isPresent:n,anchorX:h,anchorY:p,root:m,children:e}),(0,r.jsx)(l.t.Provider,{value:S,children:e})};function g(){return new Map}var m=n(89120);let y=e=>e.key||"";function v(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let b=({children:e,custom:t,initial:n=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:c="sync",propagate:d=!1,anchorX:h="left",anchorY:f="top",root:g})=>{let[b,w]=(0,m.xQ)(d),L=(0,i.useMemo)(()=>v(e),[e]),S=d&&!b?[]:L.map(y),M=(0,i.useRef)(!0),E=(0,i.useRef)(L),x=(0,s.M)(()=>new Map),C=(0,i.useRef)(new Set),[A,k]=(0,i.useState)(L),[P,T]=(0,i.useState)(L);(0,a.E)(()=>{M.current=!1,E.current=L;for(let e=0;e<P.length;e++){let t=y(P[e]);S.includes(t)?(x.delete(t),C.current.delete(t)):!0!==x.get(t)&&x.set(t,!1)}},[P,S.length,S.join("-")]);let R=[];if(L!==A){let e=[...L];for(let t=0;t<P.length;t++){let n=P[t],r=y(n);S.includes(r)||(e.splice(t,0,n),R.push(n))}return"wait"===c&&R.length&&(e=R),T(v(e)),k(L),null}let{forceRender:j}=(0,i.useContext)(o.L);return(0,r.jsx)(r.Fragment,{children:P.map(e=>{let i=y(e),o=(!d||!!b)&&(L===P||S.includes(i));return(0,r.jsx)(p,{isPresent:o,initial:(!M.current||!!n)&&void 0,custom:t,presenceAffectsLayout:u,mode:c,root:g,onExitComplete:o?void 0:()=>{if(C.current.has(i)||!x.has(i))return;C.current.add(i),x.set(i,!0);let e=!0;x.forEach(t=>{t||(e=!1)}),e&&(j?.(),T(E.current),d&&w?.(),l&&l())},anchorX:h,anchorY:f,children:e},i)})})}},89120:(e,t,n)=>{"use strict";n.d(t,{xQ:()=>o});var r=n(96540),i=n(86719);function o(e=!0){let t=(0,r.useContext)(i.t);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:s,register:a}=t,l=(0,r.useId)();(0,r.useEffect)(()=>{if(e)return a(l)},[e]);let u=(0,r.useCallback)(()=>e&&s&&s(l),[l,s,e]);return!n&&s?[!1,u]:[!0]}},29473:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});let r=(0,n(96540).createContext)({})},35446:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});let r=(0,n(96540).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},86719:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});let r=(0,n(96540).createContext)(null)},29113:(e,t,n)=>{"use strict";let r,i,o;n.d(t,{P:()=>oX});let s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],a=new Set([...s,"pathRotation"]),l=(e,t,n)=>n>t?t:n<e?e:n,u={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},c={...u,transform:e=>l(0,1,e)},d={...u,default:1},h=e=>Math.round(1e5*e)/1e5,f=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,p=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,g=(e,t)=>n=>!!("string"==typeof n&&p.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),m=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[i,o,s,a]=r.match(f);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},y=e=>l(0,255,e),v={...u,transform:e=>Math.round(y(e))},b={test:g("rgb","red"),parse:m("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+v.transform(e)+", "+v.transform(t)+", "+v.transform(n)+", "+h(c.transform(r))+")"},w={test:g("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:b.transform},L=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),S=L("deg"),M=L("%"),E=L("px"),x=L("vh"),C=L("vw"),A={...M,parse:e=>M.parse(e)/100,transform:e=>M.transform(100*e)},k={test:g("hsl","hue"),parse:m("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+M.transform(h(t))+", "+M.transform(h(n))+", "+h(c.transform(r))+")"},P={test:e=>b.test(e)||w.test(e)||k.test(e),parse:e=>b.test(e)?b.parse(e):k.test(e)?k.parse(e):w.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?b.transform(e):k.transform(e),getAnimatableNone:e=>{let t=P.parse(e);return t.alpha=0,P.transform(t)}},T=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,R="number",j="color",O=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function _(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],o=0,s=t.replace(O,e=>(P.test(e)?(r.color.push(o),i.push(j),n.push(P.parse(e))):e.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(e)):(r.number.push(o),i.push(R),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:s,indexes:r,types:i}}function V({split:e,types:t}){let n=e.length;return r=>{let i="";for(let o=0;o<n;o++)if(i+=e[o],void 0!==r[o]){let e=t[o];e===R?i+=h(r[o]):e===j?i+=P.transform(r[o]):i+=r[o]}return i}}let D=e=>"number"==typeof e?0:P.test(e)?P.getAnimatableNone(e):e,I=(e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:D(e),F={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(f)?.length||0)+(e.match(T)?.length||0)>0},parse:function(e){return _(e).values},createTransformer:function(e){return V(_(e))},getAnimatableNone:function(e){let t=_(e);return V(t)(t.values.map((e,n)=>I(e,t.split[n])))}},H=new Set(["brightness","contrast","saturate","opacity"]);function q(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(f)||[];if(!r)return e;let i=n.replace(r,""),o=H.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}let U=/\b([a-z-]*)\(.*?\)/gu,N={...F,getAnimatableNone:e=>{let t=e.match(U);return t?t.map(q).join(" "):e}},$={...F,getAnimatableNone:e=>{let t=F.parse(e);return F.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},B={...u,transform:Math.round},z={borderWidth:E,borderTopWidth:E,borderRightWidth:E,borderBottomWidth:E,borderLeftWidth:E,borderRadius:E,borderTopLeftRadius:E,borderTopRightRadius:E,borderBottomRightRadius:E,borderBottomLeftRadius:E,width:E,maxWidth:E,height:E,maxHeight:E,top:E,right:E,bottom:E,left:E,inset:E,insetBlock:E,insetBlockStart:E,insetBlockEnd:E,insetInline:E,insetInlineStart:E,insetInlineEnd:E,padding:E,paddingTop:E,paddingRight:E,paddingBottom:E,paddingLeft:E,paddingBlock:E,paddingBlockStart:E,paddingBlockEnd:E,paddingInline:E,paddingInlineStart:E,paddingInlineEnd:E,margin:E,marginTop:E,marginRight:E,marginBottom:E,marginLeft:E,marginBlock:E,marginBlockStart:E,marginBlockEnd:E,marginInline:E,marginInlineStart:E,marginInlineEnd:E,fontSize:E,backgroundPositionX:E,backgroundPositionY:E,rotate:S,pathRotation:S,rotateX:S,rotateY:S,rotateZ:S,scale:d,scaleX:d,scaleY:d,scaleZ:d,skew:S,skewX:S,skewY:S,distance:E,translateX:E,translateY:E,translateZ:E,x:E,y:E,z:E,perspective:E,transformPerspective:E,opacity:c,originX:A,originY:A,originZ:E,zIndex:B,fillOpacity:c,strokeOpacity:c,numOctaves:B},W={...z,color:P,backgroundColor:P,outlineColor:P,fill:P,stroke:P,borderColor:P,borderTopColor:P,borderRightColor:P,borderBottomColor:P,borderLeftColor:P,filter:N,WebkitFilter:N,mask:$,WebkitMask:$},G=e=>W[e],Z=()=>({translate:0,scale:1,origin:0,originPoint:0}),K=()=>({x:Z(),y:Z()}),Q=()=>({min:0,max:0}),Y=()=>({x:Q(),y:Q()}),X=e=>!!(e&&e.getVelocity),J=new Set(["width","height","top","left","right","bottom",...s]),ee=e=>t=>t.test(e),et=[u,E,M,S,C,x,{test:e=>"auto"===e,parse:e=>e}],en=e=>et.find(ee(e));n(65606);let er=()=>{},ei=()=>{},eo=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),es=e=>t=>"string"==typeof t&&t.startsWith(e),ea=es("--"),el=es("var(--"),eu=e=>!!el(e)&&ec.test(e.split("/*")[0].trim()),ec=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ed(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let eh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ef=e=>180*e/Math.PI,ep=e=>em(ef(Math.atan2(e[1],e[0]))),eg={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ep,rotateZ:ep,skewX:e=>ef(Math.atan(e[1])),skewY:e=>ef(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},em=e=>((e%=360)<0&&(e+=360),e),ey=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ev=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),eb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ey,scaleY:ev,scale:e=>(ey(e)+ev(e))/2,rotateX:e=>em(ef(Math.atan2(e[6],e[5]))),rotateY:e=>em(ef(Math.atan2(-e[2],e[0]))),rotateZ:ep,rotate:ep,skewX:e=>ef(Math.atan(e[4])),skewY:e=>ef(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ew(e){return e.includes("scale")?1:0}function eL(e,t){let n,r;if(!e||"none"===e)return ew(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=eb,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=eg,r=t}if(!r)return ew(t);let o=n[t],s=r[1].split(",").map(eM);return"function"==typeof o?o(s):s[o]}let eS=(e,t)=>{let{transform:n="none"}=getComputedStyle(e);return eL(n,t)};function eM(e){return parseFloat(e.trim())}let eE=e=>e===u||e===E,ex=new Set(["x","y","z"]),eC=s.filter(e=>!ex.has(e)),eA={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{let i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{let i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>eL(t,"x"),y:(e,{transform:t})=>eL(t,"y")};eA.translateX=eA.x,eA.translateY=eA.y;let ek=e=>e,eP={},eT=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function eR(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=eT.reduce((e,t)=>
41(e[t]=function(e){let t=new Set,n=new Set,r=!1,i=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function a(t){o.has(t)&&(l.schedule(t),e()),t(s)}let l={schedule:(e,i=!1,s=!1)=>{let a=s&&r?t:n;return i&&o.add(e),a.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(s=e,r){i=!0;return}r=!0;let o=t;t=n,n=o,t.forEach(a),t.clear(),r=!1,i&&(i=!1,l.process(e))}};return l}(o),e),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:h,render:f,postRender:p}=s,g=()=>{let o=eP.useManualTiming,s=o?i.timestamp:performance.now();n=!1,o||(i.delta=r?1e3/60:Math.max(Math.min(s-i.timestamp,40),1)),i.timestamp=s,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),d.process(i),h.process(i),f.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},m=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:eT.reduce((e,t)=>{let r=s[t];return e[t]=(e,t=!1,i=!1)=>(n||m(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<eT.length;t++)s[eT[t]].cancel(e)},state:i,steps:s}}let{schedule:ej,cancel:eO,state:e_,steps:eV}=eR("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:ek,!0),eD=new Set,eI=!1,eF=!1,eH=!1;function eq(){if(eF){let e=Array.from(eD).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=function(e){let t=[];return eC.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eF=!1,eI=!1,eD.forEach(e=>e.complete(eH)),eD.clear()}function eU(){eD.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eF=!0)})}class eN{constructor(e,t,n,r,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(eD.add(this),eI||(eI=!0,ej.read(eU),ej.resolveKeyframes(eq))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}!function(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),eD.delete(this)}cancel(){"scheduled"===this.state&&(eD.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let e$=e=>/^0[^.\s]+$/u.test(e),eB=new Set([N,$]);function ez(e,t){let n=G(e);return eB.has(n)||(n=F),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let eW=new Set(["auto","none","0"]);class eG extends eN{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&eu(r=r.trim())){let i=function e(t,n,r=1){ei(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[i,o]=function(e){let t=eh.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}(t);if(!i)return;let s=window.getComputedStyle(n).getPropertyValue(i);if(s){let e=s.trim();return eo(e)?parseFloat(e):e}return eu(o)?e(o,n,r+1):o}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!J.has(n)||2!==e.length)return;let[r,i]=e,o=en(r),s=en(i);if(ed(r)!==ed(i)&&eA[n]){this.needsMeasurement=!0;return}if(o!==s){if(eE(o)&&eE(s))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else eA[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++){var r;(null===e[t]||("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||e$(r)))&&n.push(t)}n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!eW.has(t)&&_(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=ez(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eA[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,o=n[i];n[i]=eA[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
41h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let eZ=e=>1e3*e,eK=e=>e/1e3;function eQ(e,t){-1===e.indexOf(t)&&e.push(t)}function eY(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class eX{constructor(){this.subscriptions=[]}add(e){return eQ(this.subscriptions,e),()=>eY(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let eJ=e=>e.startsWith("--");function e0(e,t,n){eJ(t)?e.style.setProperty(t,n):e.style[t]=n}function e1(e){let t;return()=>(void 0===t&&(t=e()),t)}let e2={};function e5(e,t){let n=e1(e);return()=>e2[t]??n()}let e8=e5(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),e6=e=>null!==e;function e9(e,{repeat:t,repeatType:n="loop"},r,i=1){let o=e.filter(e6),s=i<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return s&&void 0!==r?r:o[s]}class e3{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let e4=e=>Array.isArray(e)&&"number"==typeof e[0],e7=e5(()=>{try{document.createElement("div").animate({opacity:0}
41,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),te=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},tt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,tn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tt([0,.65,.55,1]),circOut:tt([.55,0,1,.45]),backIn:tt([.31,.01,.66,-.59]),backOut:tt([.33,1.53,.69,.99])};function tr(e){return"function"==typeof e&&"applyToOptions"in e}class ti extends e3{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:s,onComplete:a}=e;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=e,ei("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:e,...t}){return tr(e)&&e7()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u){let c={[t]:n};l&&(c.offset=l);let d=function e(t,n){if(t)return"function"==typeof t?e7()?te(t,n):"ease-out":e4(t)?tt(t):Array.isArray(t)?t.map(t=>e(t,n)||tn.easeOut):tn[t]}(a,i);Array.isArray(d)&&(c.easing=d);let h={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"};return u&&(h.pseudoElement=u),e.animate(c,h)}(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=e9(r,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(e),e0(t,n,e),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return eK(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+eK(e)}get time(){return eK(Number(this.animation.currentTime)||0)}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=eZ(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&e8())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),ek):r(this)}}let to=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:ts}=eR(queueMicrotask,!1);function ta(){r=void 0}let tl={now:()=>(void 0===r&&tl.set(e_.isProcessing||eP.useManualTiming?e_.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(ta)}},tu=(e,t)=>t?1e3/t*e:0,tc=e=>!isNaN(parseFloat(e)),td={current:void 0};class th{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=tl.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=tl.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=tc(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new eX);let n=this.events[e].add(t);return"change"===e?()=>{n(),ej.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}
41setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return td.current&&td.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=tl.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tu(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tf(e,t){return new th(e,t)}let tp=[...et,P,F],tg=e=>tp.find(ee(e)),tm=new WeakMap;function ty(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tv(e){return"string"==typeof e||Array.isArray(e)}let tb=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tw=["initial",...tb];function tL(e){return ty(e.animate)||tw.some(t=>tv(e[t]))}function tS(e){return!!(tL(e)||e.variants)}let tM={current:null},tE={current:!1},tx="undefined"!=typeof window;function tC(e,t,n,r){if("function"==typeof t||("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t)){let[i,o]=function(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}(r);t=t(void 0!==n?n:e.custom,i,o)}return t}let tA=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tk={};class tP{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=eN,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=tl.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,ej.render(this.render,!1,!0))};let{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=tL(t),this.isVariantNode=tS(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];void 0!==l[e]&&X(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,tm.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
41h((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tE.current||function(){if(tE.current=!0,tx){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tM.current=e.matches;e.addEventListener("change",t),t()}else tM.current=!1}}(),this.shouldReduceMotion=tM.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),eO(this.notifyUpdate),eO(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&to.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:o,duration:s}=t.accelerate,a=new ti({element:this.current,name:e,keyframes:r,times:i,ease:o,duration:eZ(s)}),l=n(a);this.valueSubscriptions.set(e,()=>{l(),a.cancel()});return}let r=a.has(e);r&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&ej.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),n&&n()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tk){let t=tk[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Y()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tA.length;t++){let n=tA[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],o=n[r];if(X(i))e.addValue(r,i);else if(X(o))e.addValue(r,tf(i,{owner:e}));else if(o!==i){if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,tf(void 0!==t?t:i,{owner:e}))}}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=tf(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&(eo(n)||e$(n))?n=parseFloat(n):!tg(n)&&F.test(t)&&(n=ez(e,t)),this.setBaseTarget(e,X(n)?n.get():n)),X(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=tC(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||X(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new eX),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){ts.render(this.render)}}class tT extends tP{constructor(){super(...arguments),this.KeyframeResolver=eG}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;X(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function tR(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let tj=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tO={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},t_=s.length;
41function tV(e,t,n){let{style:r,vars:i,transformOrigin:o}=e,l=!1,u=!1;for(let e in t){let n=t[e];if(a.has(e)){l=!0;continue}if(ea(e)){i[e]=n;continue}{let t=tj(n,z[e]);e.startsWith("origin")?(u=!0,o[e]=t):r[e]=t}}if(!t.transform&&(l||n?r.transform=function(e,t,n){let r="",i=!0;for(let o=0;o<t_;o++){let a=s[o],l=e[a];if(void 0===l)continue;let u=!0;if("number"==typeof l)u=l===(a.startsWith("scale")?1:0);else{let e=parseFloat(l);u=a.startsWith("scale")?1===e:0===e}if(!u||n){let e=tj(l,z[a]);if(!u){i=!1;let t=tO[a]||a;r+=`${t}(${e}) `}n&&(t[a]=e)}}let o=e.pathRotation;return o&&(i=!1,r+=`rotate(${tj(o,z.pathRotation)}) `),r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),u){let{originX:e="50%",originY:t="50%",originZ:n=0}=o;r.transformOrigin=`${e} ${t} ${n}`}}let tD={offset:"stroke-dashoffset",array:"stroke-dasharray"},tI={offset:"strokeDashoffset",array:"strokeDasharray"},tF=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tH(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...a},l,u,c){if(tV(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:h}=e;for(let e of(d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=c?.transformBox??"fill-box",delete d.transformBox),tF))void 0!==d[e]&&(h[e]=d[e],delete d[e]);void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==i&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?tD:tI;e[o.offset]=`${-r}`,e[o.array]=`${t} ${n}`}(d,i,o,s,!1)}let tq=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),tU=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tN(e,{style:t,vars:n},r,i){let o;let s=e.style;for(o in t)s[o]=t[o];for(o in i?.applyProjectionStyles(s,r),n)s.setProperty(o,n[o])}let t$=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function tB(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let tz={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!E.test(e))return e;e=parseFloat(e)}let n=tB(e,t.target.x),r=tB(e,t.target.y);return`${n}% ${r}%`}},tW=(e,t,n)=>e+(t-e)*n,tG={borderRadius:{...tz,applyTo:[...t$]},borderTopLeftRadius:tz,borderTopRightRadius:tz,borderBottomLeftRadius:tz,borderBottomRightRadius:tz,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=F.parse(e);if(r.length>5)return e;let i=F.createTransformer(e),o="number"!=typeof r[0]?1:0,s=n.x.scale*t.x,a=n.y.scale*t.y;r[0+o]/=s,r[1+o]/=a;let l=tW(s,a,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),i(r)}}};function tZ(e,{layout:t,layoutId:n}){return a.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!tG[e]||"opacity"===e)}function tK(e,t,n){let r=e.style,i=t?.style,o={};if(!r)return o;for(let t in r)(X(r[t])||i&&X(i[t])||tZ(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(o[t]=r[t]);return o}function tQ(e,t,n){let r=tK(e,t,n);for(let n in e)(X(e[n])||X(t[n]))&&(r[-1!==s.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class tY extends tT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Y}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(a.has(t)){let e=G(t);return e&&e.default||0}return t=tq.has(t)?t:tR(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return tQ(e,t,n)}
41build(e,t,n){tH(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){!function(e,t,n,r){for(let n in tN(e,t,void 0,r),t.attrs)e.setAttribute(tq.has(n)?n:tR(n),t.attrs[n])}(e,t,0,r)}mount(e){this.isSVGTag=tU(e.tagName),super.mount(e)}}function tX({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function tJ(e){return void 0===e||1===e}function t0({scale:e,scaleX:t,scaleY:n}){return!tJ(e)||!tJ(t)||!tJ(n)}function t1(e){return t0(e)||t2(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function t2(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function t5(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function t8(e,t=0,n=1,r,i){e.min=t5(e.min,t,n,r,i),e.max=t5(e.max,t,n,r,i)}function t6(e,{x:t,y:n}){t8(e.x,t.translate,t.scale,t.originPoint),t8(e.y,n.translate,n.scale,n.originPoint)}function t9(e,t){e.min+=t,e.max+=t}function t3(e,t,n,r,i=.5){let o=tW(e.min,e.max,i);t8(e,t,n,o,r)}function t4(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function t7(e,t,n){let r=n??e;t3(e.x,t4(t.x,r.x),t.scaleX,t.scale,t.originX),t3(e.y,t4(t.y,r.y),t.scaleY,t.scale,t.originY)}function ne(e,t){return tX(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}class nt extends tT{constructor(){super(...arguments),this.type="html",this.renderInstance=tN}mount(e){ei(!!e.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(e)}readValueFromInstance(e,t){if(a.has(t))return this.projection?.isProjecting?ew(t):eS(e,t);{let n=window.getComputedStyle(e),r=(ea(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return ne(e,t)}build(e,t,n){tV(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return tK(e,t,n)}}var nn=n(96540);let nr=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ni(e){if("string"!=typeof e||e.includes("-"));else if(nr.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var no=n(74848),ns=n(29473);let na=(0,nn.createContext)({strict:!1});var nl=n(35446);let nu=(0,nn.createContext)({});function nc(e){return Array.isArray(e)?e.join(" "):e}let nd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function nh(e,t,n){for(let r in t)X(t[r])||tZ(r,n)||(e[r]=t[r])}let nf=()=>({...nd(),attrs:{}}),np=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ng(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||np.has(e)}let nm=e=>!ng(e);try{!function(e){"function"==typeof e&&(nm=t=>t.startsWith("on")?!ng(t):e(t))}(require("@emotion/is-prop-valid").default)}catch{}function ny(e){return X(e)?e.get():e}var nv=n(86719),nb=n(28601);let nw=e=>(t,n)=>{let r=(0,nn.useContext)(nu),i=(0,nn.useContext)(nv.t),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:function(e,t,n,r){let i={},o=r(e,{});for(let e in o)i[e]=ny(o[e]);let{initial:s,animate:a}=e,l=tL(e),u=tS(e);t&&u&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===s)?a:s;if(d&&"boolean"!=typeof d&&!ty(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=tC(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(n,r,i,e),renderState:t()}})(e,t,r,i);return n?o():(0,nb.M)(o)},nL=nw({scrapeMotionValuesFromProps:tK,createRenderState:nd}),nS=nw({scrapeMotionValuesFromProps:tQ,createRenderState:nf}),nM={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},nE=!1;function nx(){return!function(){if(nE)return;let e={};for(let t in nM)e[t]={isEnabled:e=>nM[t].some(t=>!!e[t])};tk=e,nE=!0}(),tk}let nC=Symbol.for("motionComponentSymbol"),nA="data-"+tR("framerAppearId"),nk=(0,nn.createContext)({});function nP(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}var nT=n(97513);function nR(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&function(e){let t=nx();for(let n in e)t[n]={...t[n],...e[n]};tk=t}(r);let o=n?"svg"===n:ni(e),s=o?nS:nL;function a(n,r){let a;let l={...(0,nn.useContext)(nl.Q),...n,layoutId:function({layoutId:e}){let t=(0,nn.useContext)(ns.L).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:u}=l,c=function(e){let{initial:t,animate:n}=function(e,t){if(tL(e)){let{initial:t,animate:n}=e;return{initial:!1===t||tv(t)?t:void 0,animate:tv(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,nn.useContext)(nu));return(0,nn.useMemo)(()=>({initial:t,animate:n}),[nc(t),nc(n)])}(n),d=s(n,u);if(!u&&"undefined"!=typeof window){(0,nn.useContext)(na).strict;let t=function(e){let{drag:t,layout:n}=nx();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}
41(l);a=t.MeasureLayout,c.visualElement=function(e,t,n,r,i,o){let{visualElement:s}=(0,nn.useContext)(nu),a=(0,nn.useContext)(na),l=(0,nn.useContext)(nv.t),u=(0,nn.useContext)(nl.Q),c=u.reducedMotion,d=u.skipAnimations,h=(0,nn.useRef)(null),f=(0,nn.useRef)(!1);r=r||a.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c,skipAnimations:d,isSVG:o}),f.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));let p=h.current,g=(0,nn.useContext)(nk);p&&!p.projection&&i&&("html"===p.type||"svg"===p.type)&&function(e,t,n,r){let{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&nP(a),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}(h.current,n,i,g);let m=(0,nn.useRef)(!1);(0,nn.useInsertionEffect)(()=>{p&&m.current&&p.update(n,l)});let y=n[nA],v=(0,nn.useRef)(!!y&&"undefined"!=typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return(0,nT.E)(()=>{f.current=!0,p&&(m.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),v.current&&p.animationState&&p.animationState.animateChanges())}),(0,nn.useEffect)(()=>{p&&(!v.current&&p.animationState&&p.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),v.current=!1),p.enteringChildren=void 0)}),p}(e,d,l,i,t.ProjectionNode,o)}return(0,no.jsxs)(nu.Provider,{value:c,children:[a&&c.visualElement?(0,no.jsx)(a,{visualElement:c.visualElement,...l}):null,function(e,t,n,{latestValues:r},i,o=!1,s){let a=(s??ni(e)?function(e,t,n,r){let i=(0,nn.useMemo)(()=>{let n=nf();return tH(n,t,tU(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};nh(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n={},r=function(e,t){let n=e.style||{},r={};return nh(r,n,e),Object.assign(r,function({transformTemplate:e},t){return(0,nn.useMemo)(()=>{let n=nd();return tV(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n})(t,r,i,e),l=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&!X(e[i])&&(nm(i)||!0===n&&ng(i)||!t&&!ng(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(t,"string"==typeof e,o),u=e!==nn.Fragment?{...l,...a,ref:n}:{},{children:c}=t,d=(0,nn.useMemo)(()=>X(c)?c.get():c,[c]);return(0,nn.createElement)(e,{...u,children:d})}(e,n,function(e,t,n){let r=(0,nn.useRef)(n);(0,nn.useInsertionEffect)(()=>{r.current=n});let i=(0,nn.useRef)(null);return(0,nn.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let o=r.current;if("function"==typeof o){if(n){let e=o(n);"function"==typeof e&&(i.current=e)}else i.current?(i.current(),i.current=null):o(n)}else o&&(o.current=n)},[t])}(d,c.visualElement,r),d,u,t,o)]})}a.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let l=(0,nn.forwardRef)(a);return l[nC]=e,l}class nj{constructor(e){this.isMounted=!1,this.node=e}update(){}}function nO(e,t,n){let r=e.getProps();return tC(r,t,void 0!==n?n:r.custom,e)}function n_(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function nV(e,t){let n=e?.[t]??e?.default??e;return n!==e?n_(n,e):n}let nD=e=>Array.isArray(e);function nI(e,t){let n=e.getValue("willChange");if(X(n)&&n.add)return n.add(t);if(!n&&eP.WillChange){let n=new eP.WillChange("auto");e.addValue("willChange",n),n.add(t)}}let nF=(...e)=>e.reduce((e,t)=>n=>t(e(n)));
41function nH(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nq(e,t){return n=>n>0?t:e}let nU=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},nN=[w,b,k],n$=e=>nN.find(t=>t.test(e));function nB(e){let t=n$(e);if(er(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===k&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,s=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;i=nH(a,r,e+1/3),o=nH(a,r,e),s=nH(a,r,e-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(n)),n}let nz=(e,t)=>{let n=nB(e),r=nB(t);if(!n||!r)return nq(e,t);let i={...n};return e=>(i.red=nU(n.red,r.red,e),i.green=nU(n.green,r.green,e),i.blue=nU(n.blue,r.blue,e),i.alpha=tW(n.alpha,r.alpha,e),b.transform(i))},nW=new Set(["none","hidden"]);function nG(e,t){return n=>tW(e,t,n)}function nZ(e){return"number"==typeof e?nG:"string"==typeof e?eu(e)?nq:P.test(e)?nz:nY:Array.isArray(e)?nK:"object"==typeof e?P.test(e)?nz:nQ:nq}function nK(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>nZ(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function nQ(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=nZ(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let nY=(e,t)=>{let n=F.createTransformer(t),r=_(e),i=_(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?nW.has(e)&&!i.values.length||nW.has(t)&&!r.values.length?function(e,t){return nW.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):nF(nK(function(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let o=t.types[i],s=e.indexes[o][r[o]],a=e.values[s]??0;n[i]=a,r[o]++}return n}(r,i),i.values),n):(er(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),nq(e,t))};function nX(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?tW(e,t,n):nZ(e)(e,t)}let nJ=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>ej.update(t,e),stop:()=>eO(t),now:()=>e_.isProcessing?e_.timestamp:tl.now()}};function n0(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}let n1={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function n2(e,t){return e*Math.sqrt(1-t*t)}let n5=["duration","bounce"],n8=["stiffness","damping","mass"];function n6(e,t){return t.some(t=>void 0!==e[t])}function n9(e=n1.visualDuration,t=n1.bounce){let n,r,i,o,s,a;let u="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:c,restDelta:d}=u,h=u.keyframes[0],f=u.keyframes[u.keyframes.length-1],p={done:!1,value:h},{stiffness:g,damping:m,mass:y,duration:v,velocity:b,isResolvedFromDuration:w}=function(e){let t={velocity:n1.velocity,stiffness:n1.stiffness,damping:n1.damping,mass:n1.mass,isResolvedFromDuration:!1,...e};if(!n6(e,n8)&&n6(e,n5)){if(t.velocity=0,e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*l(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:n1.mass,stiffness:r,damping:i}}else{let n=function({duration:e=n1.duration,bounce:t=n1.bounce,velocity:n=n1.velocity,mass:r=n1.mass}){let i,o;er(e<=eZ(n1.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=l(n1.minDamping,n1.maxDamping,s),e=l(n1.minDuration,n1.maxDuration,eK(e)),s<1?(i=t=>{let r=t*s,i=r*e;return .001-(r-n)/n2(t,s)*Math.exp(-i)},o=t=>{let r=t*s*e,o=Math.pow(s,2)*Math.pow(t,2)*e,a=Math.exp(-r),l=n2(Math.pow(t,2),s);return(r*n+n-o)*a*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let a=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=eZ(e),isNaN(a))return{stiffness:n1.stiffness,damping:n1.damping,duration:e};{let t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}({...e,velocity:0});(t={...t,...n,mass:n1.mass}).isResolvedFromDuration=!0}}return t}({...u,velocity:-eK(u.velocity||0)}),L=b||0,S=m/(2*Math.sqrt(g*y)),M=f-h,E=eK(Math.sqrt(g/y)),x=5>Math.abs(M);if(c||(c=x?n1.restSpeed.granular:n1.restSpeed.default),d||(d=x?n1.restDelta.granular:n1.restDelta.default),S<1)i=n2(E,S),o=(L+S*E*M)/i,n=e=>f-Math.exp(-S*E*e)*(o*Math.sin(i*e)+M*Math.cos(i*e)),s=S*E*o+M*i,a=S*E*M-o*i,r=e=>Math.exp(-S*E*e)*(s*Math.sin(i*e)+a*Math.cos(i*e));else if(1===S){n=e=>f-Math.exp(-E*e)*(M+(L+E*M)*e);let e=L+E*M;r=t=>Math.exp(-E*t)*(E*e*t-L)}else{let e=E*Math.sqrt(S*S-1);n=t=>{let n=Math.exp(-S*E*t),r=Math.min(e*t,300);return f-n*((L+S*E*M)*Math.sinh(r)+e*M*Math.cosh(r))/e};let t=(L+S*E*M)/e,i=S*E*t-M*e,o=S*E*M-t*e;r=t=>{let n=Math.exp(-S*E*t),r=Math.min(e*t,300);return n*(i*Math.sinh(r)+o*Math.cosh(r))}}let C={calculatedDuration:w&&v||null,velocity:e=>eZ(r(e)),next:e=>{if(!w&&S<1){let t=Math.exp(-S*E*e),n=Math.sin(i*e),r=Math.cos(i*e),l=f-t*(o
41*n+M*r),u=eZ(t*(s*n+a*r));return p.done=Math.abs(u)<=c&&Math.abs(f-l)<=d,p.value=p.done?f:l,p}let t=n(e);if(w)p.done=e>=v;else{let n=eZ(r(e));p.done=Math.abs(n)<=c&&Math.abs(f-t)<=d}return p.value=p.done?f:t,p},toString:()=>{let e=Math.min(n0(C),2e4),t=te(t=>C.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return C}function n3(e,t,n){let r=Math.max(t-5,0);return tu(n-e(r),t-r)}function n4({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let d,h;let f=e[0],p={done:!1,value:f},g=e=>void 0!==a&&e<a||void 0!==l&&e>l,m=e=>void 0===a?l:void 0===l?a:Math.abs(a-e)<Math.abs(l-e)?a:l,y=n*t,v=f+y,b=void 0===s?v:s(v);b!==v&&(y=b-f);let w=e=>-y*Math.exp(-e/r),L=e=>b+w(e),S=e=>{let t=w(e),n=L(e);p.done=Math.abs(t)<=u,p.value=p.done?b:n},M=e=>{g(p.value)&&(d=e,h=n9({keyframes:[p.value,m(p.value)],velocity:n3(L,e,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return M(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,S(e),M(e)),void 0!==d&&e>=d)?h.next(e-d):(t||S(e),p)}}}n9.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(n0(r),2e4);return{type:"keyframes",ease:e=>r.next(i*e).value/t,duration:eK(i)}}(e,100,n9);return e.ease=t.ease,e.duration=eZ(t.duration),e.type="keyframes",e};let n7=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function re(e,t,n,r){if(e===t&&n===r)return ek;let i=t=>(function(e,t,n,r,i){let o,s;let a=0;do(o=n7(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s;while(Math.abs(o)>1e-7&&++a<12);return s})(t,0,1,e,n);return e=>0===e||1===e?e:n7(i(e),t,r)}let rt=re(.42,0,1,1),rn=re(0,0,.58,1),rr=re(.42,0,.58,1),ri=e=>Array.isArray(e)&&"number"!=typeof e[0],ro=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,rs=e=>t=>1-e(1-t),ra=re(.33,1.53,.69,.99),rl=rs(ra),ru=ro(rl),rc=e=>e>=1?1:(e*=2)<1?.5*rl(e):.5*(2-Math.pow(2,-10*(e-1))),rd=e=>1-Math.sin(Math.acos(e)),rh=rs(rd),rf=ro(rd),rp={linear:ek,easeIn:rt,easeInOut:rr,easeOut:rn,circIn:rd,circInOut:rf,circOut:rh,backIn:rl,backInOut:ru,backOut:ra,anticipate:rc},rg=e=>"string"==typeof e,rm=e=>{if(e4(e)){ei(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,r,i]=e;return re(t,n,r,i)}return rg(e)?(ei(void 0!==rp[e],`Invalid easing type '${e}'`,"invalid-easing-type"),rp[e]):e},ry=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1};function rv({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){let i=ri(r)?r.map(rm):rm(r),o={done:!1,value:t[0]},s=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;if(ei(o===t.length,"Both input and output ranges must be the same length","range-length"),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,n){let r=[],i=n||eP.mix||nX,o=e.length-1;for(let n=0;n<o;n++){let o=i(e[n],e[n+1]);t&&(o=nF(Array.isArray(t)?t[n]||ek:t,o)),r.push(o)}return r}(t,r,i),u=a.length,c=n=>{if(s&&n<e[0])return t[0];let r=0;if(u>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=ry(e[r],e[r+1],n);return a[r](i)};return n?t=>c(l(e[0],e[o-1],t)):c}((n&&n.length===t.length?n:function(e){let t=[0];return function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=ry(0,t,r);e.push(tW(n,1,i))}}(t,e.length-1),t}(t)).map(t=>t*e),t,{ease:Array.isArray(i)?i:t.map(()=>i||rr).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}let rb={decay:n4,inertia:n4,tween:rv,keyframes:rv,spring:n9};function rw(e){"string"==typeof e.type&&(e.type=rb[e.type])}let rL=e=>e/100;class rS extends e3{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==tl.now()&&this.tick(tl.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;rw(e);let{type:t=rv,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=e,{keyframes:s}=e,a=t||rv;a!==rv&&"number"!=typeof s[0]&&(this.mixKeyframes=nF(rL,nX(s[0],s[1])),s=[0,100]);let l=a({...e,keyframes:s}
41);"mirror"===i&&(this.mirroredGenerator=a({...e,keyframes:[...s].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=n0(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let n;let{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:u}=this;if(null===this.startTime)return r.next(0);let{delay:c=0,keyframes:d,repeat:h,repeatType:f,repeatDelay:p,type:g,onUpdate:m,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let w=this.currentTime,L=r;if(h){let e=Math.min(this.currentTime,i)/a,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,h+1))%2&&("reverse"===f?(n=1-n,p&&(n-=p/a)):"mirror"===f&&(L=s)),w=l(0,1,n)*a}b?(this.delayState.value=d[0],n=this.delayState):n=L.next(w),o&&!b&&(n.value=o(n.value));let{done:S}=n;b||null===u||(S=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let M=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return M&&g!==n4&&(n.value=e9(d,this.options,y,this.speed)),m&&m(n.value),M&&this.finish(),n}then(e,t){return this.finished.then(e,t)}get duration(){return eK(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+eK(e)}get time(){return eK(this.currentTime)}set time(e){e=eZ(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return n3(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(tl.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=eK(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=nJ,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tl.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let rM={anticipate:rc,backInOut:ru,circInOut:rf};class rE extends ti{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in rM&&(e.ease=rM[e.ease])}(e),rw(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...o}=this.options;if(!t)return;if(void 0!==e){t.set(e);return}let s=new rS({...o,autoplay:!1}),a=Math.max(10,tl.now()-this.startTime),u=l(0,10,a-10),c=s.sample(a).value,{name:d}=this.options;i&&d&&e0(i,d,c),t.setWithVelocity(s.sample(Math.max(0,a-u)).value,c,u),s.stop()}}let rx=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(F.test(e)||"0"===e)&&!e.startsWith("url("));function rC(e){e.duration=0,e.type="keyframes"}let rA=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,rk=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),rP=e1(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));
41class rT extends e3{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",keyframes:s,name:a,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tl.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,name:a,motionValue:l,element:u,...c},h=u?.KeyframeResolver||eN;this.keyframeResolver=new h(s,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){let i;this.keyframeResolver=void 0;let{name:o,type:s,velocity:a,delay:l,isHandoff:u,onUpdate:c}=n;this.resolvedAt=tl.now();let d=!0;!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],s=rx(i,t),a=rx(o,t);return er(s===a,`You are trying to animate ${t} from "${i}" to "${o}". "${s?o:i}" is not an animatable value.`,"value-not-animatable"),!!s&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||tr(n))&&r)}(e,o,s,a)&&(d=!1,(eP.instantAnimations||!l)&&c?.(e9(e,n,t)),e[0]=e[e.length-1],rC(n),n.repeat=0);let h={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=d&&!u&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:s,keyframes:a}=e,l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:c}=t.owner.getProps();return rP()&&n&&(to.has(n)||rk.has(n)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&rA.test(e[t]))return!0;return!1}(a))&&("transform"!==n||!c)&&!u&&!r&&"mirror"!==i&&0!==o&&"inertia"!==s}(h),p=h.motionValue?.owner?.current;if(f)try{i=new rE({...h,element:p})}catch{i=new rS(h)}else i=new rS(h);i.finished.then(()=>{this.notifyFinished()}).catch(ek),this.pendingTimeline&&(this.stopTimeline=i.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=i}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eH=!0,eU(),eq(),eH=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let rR={type:"spring",stiffness:500,damping:25,restSpeed:10},rj=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),rO={type:"keyframes",duration:.8},r_={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rV=(e,{keyframes:t})=>t.length>2?rO:a.has(e)?e.startsWith("scale")?rj(t[1]):rR:r_,rD=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),rI=(e,t,n,r={},i,o)=>s=>{let a=nV(r,e)||{},l=a.delay||r.delay||0,{elapsed:u=0}=r;u-=eZ(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function(e){for(let t in e)if(!rD.has(t))return!0;return!1}(a)&&Object.assign(c,rV(e,c)),c.duration&&(c.duration=eZ(c.duration)),c.repeatDelay&&(c.repeatDelay=eZ(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(rC(c),0!==c.delay||(d=!0)),(eP.instantAnimations||eP.skipAnimations||i?.shouldSkipAnimations||a.skipAnimations)&&(d=!0,rC(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!o&&void 0!==t.get()){let e=e9(c.keyframes,a);if(void 0!==e){ej.update(()=>{c.onUpdate(e),c.onComplete()});return}}return a.isSync?new rS(c):new rT(c)};function rF(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o,transitionEnd:s,...a}=t,l=e.getDefaultTransition();o=o?n_(o,l):l;let u=o?.reduceMotion,c=o?.skipAnimations;r&&(o=r);let d=[],h=i&&e.animationState&&e.animationState.getState()[i],f=o?.path;for(let t in f&&f.animateVisualElement(e,a,o,n,d),a){let r=e.getValue(t,e.latestValues[t]??null),i=a[t];if(void 0===i||h&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(h,t))continue;let s={delay:n,...nV(o||{},t)};c&&(s.skipAnimations=!0);let l=r.get();if(void 0!==l&&!r.isAnimating()&&!Array.isArray(i)&&i===l&&!s.velocity){ej.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=e.props[nA];if(n){let e=window.MotionHandoffAnimation(n,t,ej);null!==e&&(s.startTime=e,f=!0)}}nI(e,t);let p=u??e.shouldReduceMotion;r.start(rI(t,r,i,p&&J.has(t)?{type:!1}:s,e,f));let g=r.animation;g&&d.push(g)}if(s){let t=()=>ej.update(()=>{s&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=nO(e,t)||{};for(let t in i={...i,...n}){var o;let n=nD(o=i[t])?o[o.length-1]||0:o;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,tf(n))}}(e,s)});d.length?Promise.all(d).then(t):t()}return d}function rH(e,t,n,r=0,i=1){let o=Array.from(e).sort((e,t)=>
41e.sortNodePosition(t)).indexOf(t),s=e.size,a=(s-1)*r;return"function"==typeof n?n(o,s):1===i?o*r:a-o*r}function rq(e,t,n={}){let r=nO(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let o=r?()=>Promise.all(rF(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(e,t,n=0,r=0,i=0,o=1,s){let a=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),a.push(rq(l,t,{...s,delay:n+("function"==typeof r?0:r)+rH(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}(e,t,r,o,s,a,n)}:()=>Promise.resolve(),{when:a}=i;if(!a)return Promise.all([o(),s(n.delay)]);{let[e,t]="beforeChildren"===a?[o,s]:[s,o];return e().then(()=>t())}}let rU=tw.length;function rN(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}let r$=[...tb].reverse(),rB=tb.length;function rz(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rW(){return{animate:rz(!0),whileInView:rz(),whileHover:rz(),whileTap:rz(),whileDrag:rz(),whileFocus:rz(),exit:rz()}}class rG extends nj{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>rq(e,t,n)));else if("string"==typeof t)r=rq(e,t,n);else{let i="function"==typeof t?nO(e,t,n.custom):t;r=Promise.all(rF(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=rW(),r=!0,i=!1,o=t=>(n,r)=>{let i=nO(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function s(s){let{props:a}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<rU;e++){let r=tw[e],i=t.props[r];(tv(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},u=[],c=new Set,d={},h=1/0;for(let t=0;t<rB;t++){var f;let p=r$[t],g=n[p],m=void 0!==a[p]?a[p]:l[p],y=tv(m),v=p===s?g.isActive:null;!1===v&&(h=t);let b=m===l[p]&&m!==a[p]&&y;if(b&&(r||i)&&e.manuallyAnimateOnMount&&(b=!1),g.protectedKeys={...d},!g.isActive&&null===v||!m&&!g.prevProp||ty(m)||"boolean"==typeof m)continue;if("exit"===p&&g.isActive&&!0!==v){g.prevResolvedValues&&(d={...d,...g.prevResolvedValues});continue}let w=(f=g.prevProp,"string"==typeof m?m!==f:!!Array.isArray(m)&&!rN(m,f)),L=w||p===s&&g.isActive&&!b&&y||t>h&&y,S=!1,M=Array.isArray(m)?m:[m],E=M.reduce(o(p),{});!1===v&&(E={});let{prevResolvedValues:x={}}=g,C={...x,...E},A=t=>{L=!0,c.has(t)&&(S=!0,c.delete(t)),g.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in C){let t=E[e],n=x[e];if(!d.hasOwnProperty(e))(nD(t)&&nD(n)?!rN(t,n)||w:t!==n)?null!=t?A(e):c.add(e):void 0!==t&&c.has(e)?A(e):g.protectedKeys[e]=!0}g.prevProp=m,g.prevResolvedValues=E,g.isActive&&(d={...d,...E}),(r||i)&&e.blockInitialAnimation&&(L=!1);let k=b&&w,P=!k||S;L&&P&&u.push(...M.map(t=>{let n={type:p};if("string"==typeof t&&(r||i)&&!k&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=nO(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=rH(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(c.size){let t={};if("boolean"!=typeof a.initial){let n=nO(e,Array.isArray(a.initial)?a.initial[0]:a.initial);n&&n.transition&&(t.transition=n.transition)}c.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),u.push({animation:t})}let p=!!u.length;return r&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(u):Promise.resolve()}return{animateChanges:s,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=rW(),i=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();ty(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let rZ=0;class rK extends nj{constructor(){super(...arguments),this.id=rZ++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let n=nO(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>
41{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let rQ={x:!1,y:!1};function rY(e){return[e("x"),e("y")]}function rX(e){return e.max-e.min}function rJ(e,t,n,r=.5){e.origin=r,e.originPoint=tW(t.min,t.max,e.origin),e.scale=rX(n)/rX(t),e.translate=tW(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function r0(e,t,n,r){rJ(e.x,t.x,n.x,r?r.originX:void 0),rJ(e.y,t.y,n.y,r?r.originY:void 0)}function r1(e,t,n,r=0){let i=r?tW(n.min,n.max,r):n.min;e.min=i+t.min,e.max=e.min+rX(t)}function r2(e,t,n,r=0){let i=r?tW(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+rX(t)}function r5(e,t,n,r){r2(e.x,t.x,n.x,r?.x),r2(e.y,t.y,n.y,r?.y)}let r8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),r6=new Set(["INPUT","SELECT","TEXTAREA"]);function r9(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var r3=n(59359);function r4(e){return(0,r3.G)(e)&&"ownerSVGElement"in e}function r7(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>null!=e)}let ie=new WeakMap,it=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:r4(r)&&"getBBox"in r?r.getBBox()[t]:r[n],ir=it("inline","width","offsetWidth"),ii=it("block","height","offsetHeight");function io({target:e,borderBoxSize:t}){ie.get(e)?.forEach(n=>{n(e,{get width(){return ir(e,t)},get height(){return ii(e,t)}})})}function is(e){e.forEach(io)}let ia=new Set;function il(e,t){return"function"==typeof e?(ia.add(e),o||(o=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ia.forEach(t=>t(e))},window.addEventListener("resize",o)),()=>{ia.delete(e),ia.size||"function"!=typeof o||(window.removeEventListener("resize",o),o=void 0)}):function(e,t){i||"undefined"==typeof ResizeObserver||(i=new ResizeObserver(is));let n=r7(e);return n.forEach(e=>{let n=ie.get(e);n||(n=new Set,ie.set(e,n)),n.add(t),i?.observe(e)}),()=>{n.forEach(e=>{let n=ie.get(e);n?.delete(t),n?.size||i?.unobserve(e)})}}(e,t)}let iu=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function ic(e){return{point:{x:e.pageX,y:e.pageY}}}let id=e=>t=>iu(t)&&e(t,ic(t));function ih(e,t,n,r){return r9(e,t,id(n),r)}let ip=({current:e})=>e?e.ownerDocument.defaultView:null,ig=(e,t)=>Math.abs(e-t),im=new Set(["auto","scroll"]);class iy{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=iv(this.lastRawMoveEventInfo,this.transformPagePoint));let e=iw(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){return Math.sqrt(ig(e.x,t.x)**2+ig(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=e_;this.history.push({...r,timestamp:i});let{onStart:o,onMove:s}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=iv(t,this.transformPagePoint),ej.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=iw("pointercancel"===e.type?this.lastMoveEventInfo:iv(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!iu(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=r||window;let a=iv(ic(e),this.transformPagePoint),{point:l}=a,{timestamp:u}=e_;this.history=[{...l,timestamp:u}];let{onSessionStart:c}=t;c&&c(e,iw(a,this.history));let d={passive:!0,capture:!0};this.removeListeners=nF(ih(this.contextWindow,"pointermove",this.handlePointerMove,d),ih(this.contextWindow,"pointerup",this.handlePointerUp,d),ih(this.contextWindow,"pointercancel",this.handlePointerUp,d)),s&&this.startScrollTracking(s)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(im.has(e.overflowX)||im.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(0!==i.x||0!==i.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),ej.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eO(this.updatePoint)}}function iv(e,t){return t?{point:t(e.point)}:e}function ib(e,t){return{x:e.x-t.x,y:e.y-t.y}}function iw({point:e},t){return{point:e,delta:ib(e,iL(t)),offset:ib(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=iL(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>eZ(.1)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>2*eZ(.1)&&(r=e[1]);let o=eK(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};let s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,.1)}}function iL(e){return e[e.length-1]}function iS(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function iM(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function iE(e,t,n){return{min:ix(e,t),max:ix(e,n)}}function ix(e,t){return"number"==typeof e?e:e[t]||0}let iC=new WeakMap;class iA{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Y(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let{dragSnapToOrigin:i}=this.getProps();this.panSession=new iy(e,{onSessionStart:e=>{t&&this.snapToCursor(ic(e).point),this.stopAnimation()},onStart:(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===n||"y"===n?rQ[n]?null:(rQ[n]=!0,()=>{rQ[n]=!1}):rQ.x||rQ.y?null:(rQ.x=rQ.y=!0,()=>{rQ.x=rQ.y=!1}),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rY(e=>{let t=this.getAxisMotionValue(e).get()||0;if(M.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=rX(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&ej.update(()=>i(e,t),!1,!0),nI(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>
41{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:s}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),o&&ej.update(()=>o(e,t),!1,!0)},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,distanceThreshold:n,contextWindow:ip(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:o}=r;this.startAnimation(o);let{onDragEnd:s}=this.getProps();s&&ej.postRender(()=>s(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!iP(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?tW(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?tW(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&nP(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:iS(e.x,n,i),y:iS(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:iE(e,"left","right"),y:iE(e,"top","bottom")}}(t),r!==this.constraints&&!nP(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&rY(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nP(t))return!1;let r=t.current;ei(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());let o=function(e,t,n){let r=ne(e,n),{scroll:i}=t;return i&&(t9(r.x,i.offset.x),t9(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),s={x:iM((e=i.layout.layoutBox).x,o.x),y:iM(e.y,o.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=tX(e))}return s}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(rY(s=>{if(!iP(s,t,this.currentDirection))return;let l=a&&a[s]||{};(!0===o||o===s)&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[s]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return nI(this.visualElement,e),n.start(rI(e,n,0,t,this.visualElement,!1))}stopAnimation(){rY(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){rY(t=>{let{drag:n}=this.getProps();if(!iP(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t],s=i.get()||0;i.set(e[t]-tW(n,o,.5)+s)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!nP(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rY(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();r[e]=function(e,t){let n=.5,r=rX(e),i=rX(t);return i>r?n=ry(t.min,t.max-r,e.min):r>i&&(n=ry(e.min,e.max-i,t.min)),l(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),rY(t=>
41{if(!iP(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(tW(i,o,r[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;iC.set(this.visualElement,this);let t=this.visualElement.current,n=ih(t,"pointerdown",e=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=e.target,o=i!==t&&(r6.has(i.tagName)||!0===i.isContentEditable);n&&r&&!o&&this.start(e)}),r=()=>{let{dragConstraints:n}=this.getProps();nP(n)&&n.current&&(this.constraints=this.resolveRefConstraints(),e||(e=function(e,t,n){let r=il(e,ik(n)),i=il(t,ik(n));return()=>{r(),i()}}(t,n.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ej.read(r);let s=r9(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rY(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function ik(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function iP(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class iT extends nj{constructor(e){super(e),this.removeGroupControls=ek,this.removeListeners=ek,this.controls=new iA(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ek}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let iR=e=>(t,n)=>{e&&ej.update(()=>e(t,n),!1,!0)};class ij extends nj{constructor(){super(...arguments),this.removePointerDownListener=ek}onPointerDown(e){this.session=new iy(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ip(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:iR(e),onStart:iR(t),onMove:iR(n),onEnd:(e,t)=>{delete this.session,r&&ej.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=ih(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let iO={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var i_=n(89120);let iV=!1;class iD extends nn.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),iV&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),iO.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:o}=n;return o&&(o.isPresent=i,e.layoutDependency!==t&&o.setOptions({...o.options,layoutDependency:t}),iV=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||ej.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),ts.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;iV=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function iI(e){let[t,n]=(0,i_.xQ)(),r=(0,nn.useContext)(ns.L);return(0,no.jsx)(iD,{...e,layoutGroup:r,switchLayoutGroup:(0,nn.useContext)(nk),isPresent:t,safeToRemove:n})}let iF={value:null,addProjectionMetrics:null},iH=t$.length,iq=e=>"string"==typeof e?parseFloat(e):e,iU=e=>"number"==typeof e||E.test(e);function iN(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let i$=iz(0,.5,rh),iB=iz(.5,.95,ek);function iz(e,t,n){return r=>r<e?0:r>t?1:n(ry(e,t,r))}function iW(e,t){e.min=t.min,e.max=t.max}function iG(e,t){iW(e.x,t.x),iW(e.y,t.y)}function iZ(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function iK(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function iQ(e,t,[n,r,i],o,s){!function(e,t=0,n=1,r=.5,i,o=e,s=e){if(M.test(t)&&(t=parseFloat(t),t=tW(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=tW(o.min,o.max,r);e===o&&(a-=t),e.min=iK(e.min,t,n,a,i),e.max=iK(e.max,t,n,a,i)}(e,t[n],t[r],t[i],t.scale,o,s)}let iY=["x","scaleX","originX"],iX=["y","scaleY","originY"];function iJ(e,t,n,r){iQ(e.x,t,iY,n?n.x:void 0,r?r.x:void 0),iQ(e.
41y,t,iX,n?n.y:void 0,r?r.y:void 0)}function i0(e){return 0===e.translate&&1===e.scale}function i1(e){return i0(e.x)&&i0(e.y)}function i2(e,t){return e.min===t.min&&e.max===t.max}function i5(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function i8(e,t){return i5(e.x,t.x)&&i5(e.y,t.y)}function i6(e){return rX(e.x)/rX(e.y)}function i9(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class i3{constructor(){this.members=[]}add(e){eQ(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&!1!==r.isConnected||n.snapshot||(eY(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(eY(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(void 0===r||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let i4=(e,t)=>e.depth-t.depth;class i7{constructor(){this.children=[],this.isDirty=!1}add(e){eQ(this.children,e),this.isDirty=!0}remove(e){eY(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(i4),this.isDirty=!1,this.children.forEach(e)}}let oe={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ot=["","X","Y","Z"],on=0;function or(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function oi({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=on++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,iF.value&&(oe.nodes=oe.calculatedTargetDeltas=oe.calculatedProjections=0),this.nodes.forEach(oa),this.nodes.forEach(om),this.nodes.forEach(oy),this.nodes.forEach(ol),iF.addProjectionMetrics&&iF.addProjectionMetrics(oe)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new i7)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new eX),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=r4(t)&&!(r4(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n;let r=0,i=()=>this.root.updateBlockedByResize=!1;ej.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=tl.now(),r=({timestamp:t})=>{let i=t-n;i>=250&&(eO(r),e(i-250))};return ej.setup(r,!0),()=>eO(r)}(i,250),iO.hasAnimatedSinceResize&&(iO.hasAnimatedSinceResize=!1,this.nodes.forEac
41h(og)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||i.getDefaultTransition()||oM,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=i.getProps(),l=!this.targetLayout||!i8(this.targetLayout,r),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...nV(o,"layout"),onPlay:s,onComplete:a};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u,t.path)}else t||og(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eO(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ov),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[nA];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",ej,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(od),this.nodes.forEach(oc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(oh);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(of),this.nodes.forEach(op),this.nodes.forEach(oo),this.nodes.forEach(os)):this.nodes.forEach(oh),this.clearAllSnapshots();let e=tl.now();e_.delta=l(0,1e3/60,e-e_.timestamp),e_.timestamp=e,e_.isProcessing=!0,eV.update.process(e_),eV.preRender.process(e_),eV.render.process(e_),e_.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ts.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ou),this.sharedNodes.forEach(ob)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ej.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ej.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||rX(this.snapshot.measuredBox.x)||rX(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Y()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!i1(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||t1(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),oC((t=r).x),oC(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Y();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ok))){let{scroll:e}=this.root;e&&(t9(t.x,e.offset.x),t9(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Y();if(iG(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;r!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&iG(t,e),t9(t.x,i.offset.x),t9(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||Y();iG(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(t9(r.x,-n.scroll.offset.x),t9(r.y,-n.scroll.offset.y)),t1(n.latestValues)&&t7(r,n.latestValues,n.layout?.layoutBox)}return t1(this.latestValues)&&t7(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=Y();iG(t,e);for(let e=0;e<this.path.length;e++){let n;let r=this.path[e];t1(r.latestValues)&&(r.instance&&(t0(r.latestValues)&&r.updateSnapshot(),iG(n=Y(),r.measurePageBox())),iJ(t,r.latestValues,r.snapshot?.layoutBox,n))}return t1(this.latestValues)&&iJ(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==e_.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
41isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=e_.timestamp;let o=this.getClosestProjectingParent();if(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=Y(),this.targetWithTransforms=Y()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,a,l,u;this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,r1(s.x,a.x,l.x,u?.x),r1(s.y,a.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):iG(this.target,this.layout.layoutBox),t6(this.target,this.targetDelta)):iG(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),iF.value&&oe.calculatedTargetDeltas++}}getClosestProjectingParent(){return!this.parent||t0(this.parent.latestValues)||t2(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y(),this.relativeTargetOrigin=Y(),r5(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),iG(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===e_.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;iG(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){let i,o;let s=n.length;if(s){t.x=t.y=1;for(let a=0;a<s;a++){o=(i=n[a]).projectionDelta;let{visualElement:s}=i.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(t9(e.x,-i.scroll.offset.x),t9(e.y,-i.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,t6(e,o)),r&&t1(i.latestValues)&&t7(e,i.latestValues,i.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Y());let{target:a}=e;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(iZ(this.prevProjectionDelta.x,this.projectionDelta.x),iZ(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),r0(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===s&&i9(this.projectionDelta.x,this.prevProjectionDelta.x)&&i9(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),iF.value&&oe.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=K(),this.projectionDelta=K(),this.projectionDeltaWithTransform=K()}setAnimationOrigin(e,t=!1,n){let r;let i=this.snapshot,o=i?i.latestValues:{},s={...this.latestValues},a=K();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=Y(),u=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),d=!c||c.members.length<=1,h=!!(u&&!d&&!0===this.options.crossfade&&!this.path.some(oS));this.animationProgress=0;let f=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,i=f?.(n);if(i?(a.x.translate=i.x,a.x.scale=tW(e.x.scale,1,n),a.x.origin=e.x.origin,a.x.originPoint=e.x.originPoint,a.y.translate=i.y,a.y.scale=tW(e.y.scale,1,n),a.y.origin=e.y.origin,a.y.originPoint=e.y.originPoint):(ow(a.x,e.x,n),ow(a.y,e.y,n)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,p,g,m;r5(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),g=this.relativeTarget,m=this.relativeTargetOrigin,oL(g.x,m.x,l.x,n),oL(g.y,m.y,l.y,n),r&&(c=this.relativeTarget,p=r,
41i2(c.x,p.x)&&i2(c.y,p.y))&&(this.isProjectionDirty=!1),r||(r=Y()),iG(r,this.relativeTarget)}u&&(this.animationValues=s,function(e,t,n,r,i,o){i?(e.opacity=tW(0,n.opacity??1,i$(r)),e.opacityExit=tW(t.opacity??1,0,iB(r))):o&&(e.opacity=tW(t.opacity??1,n.opacity??1,r));for(let i=0;i<iH;i++){let o=t$[i],s=iN(t,o),a=iN(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||iU(s)===iU(a)?(e[o]=Math.max(tW(iq(s),iq(a),r),0),(M.test(a)||M.test(s))&&(e[o]+="%")):e[o]=a)}(t.rotate||n.rotate)&&(e.rotate=tW(t.rotate||0,n.rotate||0,r))}(s,o,this.latestValues,n,h,d)),i&&void 0!==i.rotate&&(this.animationValues||(this.animationValues=s),this.animationValues.pathRotation=i.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eO(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ej.update(()=>{iO.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=tf(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(e,t,n){let r=X(e)?e:tf(e);return r.start(rI("",r,t,n)),r.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&oA(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Y();let t=rX(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=rX(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}iG(t,n),t7(t,i),r0(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new i3),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&or("z",e,r,this.animationValues);for(let t=0;t<ot.length;t++)or(`rotate${ot[t]}`,e,r,this.animationValues),or(`skew${ot[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=ny(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=ny(t?.pointerEvents)||""),this.hasProjected&&!t1(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();
41let o=function(e,t,n){let r="",i=e.x.translate/t.x,o=e.y.translate/t.y,s=n?.z||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:o,rotateY:s,skewX:a,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),o&&(r+=`rotateX(${o}deg) `),s&&(r+=`rotateY(${s}deg) `),a&&(r+=`skewX(${a}deg) `),l&&(r+=`skewY(${l}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);n&&(o=n(i,o)),e.transform=o;let{x:s,y:a}=this.projectionDelta;for(let t in e.transformOrigin=`${100*s.origin}% ${100*a.origin}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,tG){if(void 0===i[t])continue;let{correct:n,applyTo:s,isCSSVariable:a}=tG[t],l="none"===o?i[t]:n(i[t],r);if(s){let t=s.length;for(let n=0;n<t;n++)e[s[n]]=l}else a?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?ny(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(oc),this.root.sharedNodes.clear()}}}function oo(e){e.updateLayout()}function os(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;if("size"===i)rY(e=>{let r=o?t.measuredBox[e]:t.layoutBox[e],i=rX(r);r.min=n[e].min,r.max=r.min+i});else if("x"===i||"y"===i){let e="x"===i?"y":"x";iW(o?t.measuredBox[e]:t.layoutBox[e],n[e])}else oA(i,t.layoutBox,n)&&rY(r=>{let i=o?t.measuredBox[r]:t.layoutBox[r],s=rX(n[r]);i.max=i.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});let s=K();r0(s,n,t.layoutBox);let a=K();o?r0(a,e.applyTransform(r,!0),t.measuredBox):r0(a,n,t.layoutBox);let l=!i1(s),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let s=e.options.layoutAnchor||void 0,a=Y();r5(a,t.layoutBox,i.layoutBox,s);let l=Y();r5(l,n,o.layoutBox,s),i8(a,l)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function oa(e){iF.value&&oe.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ol(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ou(e){e.clearSnapshot()}function oc(e){e.clearMeasurements()}function od(e){e.isLayoutDirty=!0,e.updateLayout()}function oh(e){e.isLayoutDirty=!1}function of(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function op(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function og(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function om(e){e.resolveTargetDelta()}function oy(e){e.calcProjection()}function ov(e){e.resetSkewAndRotation()}function ob(e){e.removeLeadSnapshot()}function ow(e,t,n){e.translate=tW(t.translate,0,n),e.scale=tW(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function oL(e,t,n,r){e.min=tW(t.min,n.min,r),e.max=tW(t.max,n.max,r)}function oS(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let oM={duration:.45,ease:[.4,0,.1,1]},oE=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ox=oE("applewebkit/")&&!oE("chrome/")?Math.round:ek;function oC(e){e.min=ox(e.min),e.max=ox(e.max)}function oA(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(i6(t)-i6(n)))}function ok(e){return e!==e.root&&e.scroll?.wasRoot}let oP=oi({attachResizeListener:(e,t)=>r9(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),oT={current:void 0},oR=oi({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!oT.current){let e=new oP({});e.mount(window),e.setOptions({layoutScroll:!0}),oT.current=e}return oT.current},resetTransform:(e,t)=>
41{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function oj(e,t){let n=r7(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function oO(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&ej.postRender(()=>i(t,ic(t)))}class o_ extends nj{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=oj(e,n);return r.forEach(e=>{let n,r=!1,o=!1,s=()=>{e.removeEventListener("pointerleave",u)},a=e=>{n&&(n(e),n=void 0),s()},l=e=>{r=!1,window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",l),o&&(o=!1,a(e))},u=e=>{if("touch"!==e.pointerType){if(r){o=!0;return}a(e)}};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||rQ.x||rQ.y)return;o=!1;let s=t(e,r);"function"==typeof s&&(n=s,e.addEventListener("pointerleave",u,i))},i),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",l,i),window.addEventListener("pointercancel",l,i)},i)}),o}(e,(e,t)=>(oO(this.node,t,"Start"),e=>oO(this.node,e,"End"))))}unmount(){}}class oV extends nj{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=nF(r9(this.node.current,"focus",()=>this.onFocus()),r9(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var oD=n(76995);let oI=(e,t)=>!!t&&(e===t||oI(e,t.parentElement)),oF=new WeakSet;function oH(e){return t=>{"Enter"===t.key&&e(t)}}function oq(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}let oU=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=oH(()=>{if(oF.has(n))return;oq(n,"down");let e=oH(()=>{oq(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>oq(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function oN(e){return iu(e)&&!(rQ.x||rQ.y)}let o$=new WeakSet;function oB(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&ej.postRender(()=>i(t,ic(t)))}class oz extends nj{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=function(e,t,n={}){let[r,i,o]=oj(e,n),s=e=>{let r=e.currentTarget;if(!oN(e)||o$.has(e))return;oF.add(r),n.stopPropagation&&o$.add(e);let o=t(r,e),s={...i,capture:!0},a=(e,t)=>{window.removeEventListener("pointerup",l,s),window.removeEventListener("pointercancel",u,s),oF.has(r)&&oF.delete(r),oN(e)&&"function"==typeof o&&o(e,{success:t})},l=e=>{a(e,r===window||r===document||n.useGlobalTarget||oI(r,e.target))},u=e=>{a(e,!1)};window.addEventListener("pointerup",l,s),window.addEventListener("pointercancel",u,s)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener("pointerdown",s,i),(0,oD.s)(e)&&(e.addEventListener("focus",e=>oU(e,i)),r8.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(oB(this.node,t,"Start"),(e,{success:t})=>oB(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}let oW=new WeakMap,oG=new WeakMap,oZ=e=>{let t=oW.get(e.target);t&&t(e)},oK=e=>{e.forEach(oZ)},oQ={some:0,all:1};class oY extends nj{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:oQ[r]};this.stopObserver=function(e,t,n){let r=function({root:e,...t}){let n=e||document;oG.has(n)||oG.set(n,{});let r=oG.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(oK,{root:e,...t})),r[i]}(t);return oW.set(e,n),r.observe(e),()=>{oW.delete(e),r.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let oX=function(e,t){if("undefined"==typeof Proxy)return nR;let n=new Map,r=(n,r)=>nR(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,o)=>"create"===o?r:(n.has(o)||n.set(o,nR(o,void 0,e,t)),n.get(o))})}({animation:{Feature:rG},exit:{Feature:rK},inView:{Feature:oY},tap:{Feature:oz},focus:{Feature:oV},hover:{Feature:o_},pan:{Feature:ij},drag:{Feature:iT,ProjectionNode:oR,MeasureLayout:iI},layout:{ProjectionNode:oR,MeasureLayout:iI}},(e,t)=>t.isSVG??ni(e)?new tY(t):new nt(t,{allowProjection:e!==nn.Fragment}))},28601:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(96540);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},97513:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(96540);let i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},76995:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});var r=n(59359);function i(e){return(0,r.G)(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}},59359:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});let r=e=>"object"==typeof e&&null!==e},49200:(e,t,n)=>{"use strict";function r(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}n.d(t,{Q:()=>d,u4:()=>r,y:()=>l});var i={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},o={0:8203,1:8204,2:8205,3:65279},s={0:String.fromCodePoint(o[0]),1:String.fromCodePoint(o[1]),2:String.fromCodePoint(o[2]),3:String.fromCodePoint(o[3])},a=[,,,,].fill(String.fromCodePoint(o[0])).join("");function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"auto";return!0===n||"auto"===n&&(!(!Number.isNaN(Number(e))||/[a-z]/i.test(e)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(e))&&Date.parse(e)||function(e){try{new URL(e,e.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}(e))?e:`${e}${function(e){let t=JSON.stringify(e),n=new TextEncoder().encode(t),r="";for(let e=0;e<n.length;e++){let t=n[e];r+=s[t>>6&3]+s[t>>4&3]+s[t>>2&3]+s[3&t]}return a+r}(t)}`}Object.fromEntries(Object.entries(s).map(e=>[e[1],+e[0]])),Object.fromEntries(Object.entries(i).map(e=>e.reverse()));var u=`${Object.values(i).map(e=>`\\u{${e.toString(16)}}`).join("")}`,c=RegExp(`[${u}]{4,}`,"gu");function d(e){var t,n;return e&&JSON.parse({cleaned:(t=JSON.stringify(e)).replace(c,""),encoded:(null==(n=t.match(c))?void 0:n[0])||""}.cleaned)}},31635:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__addDisposableResource:()=>V,__assign:()=>o,__asyncDelegator:()=>x,__asyncGenerator:()=>E,__asyncValues:()=>C,__await:()=>M,__awaiter:()=>p,__classPrivateFieldGet:()=>j,__classPrivateFieldIn:()=>_,__classPrivateFieldSet:()=>O,__createBinding:()=>m,__decorate:()=>a,__disposeResources:()=>I,__esDecorate:()=>u,__exportStar:()=>y,__extends:()=>i,__generator:()=>g,__importDefault:()=>R,__importStar:()=>
41T,__makeTemplateObject:()=>A,__metadata:()=>f,__param:()=>l,__propKey:()=>d,__read:()=>b,__rest:()=>s,__rewriteRelativeImportExtension:()=>F,__runInitializers:()=>c,__setFunctionName:()=>h,__spread:()=>w,__spreadArray:()=>S,__spreadArrays:()=>L,__values:()=>v,default:()=>H});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function l(e,t){return function(n,r){t(n,r,e)}}function u(e,t,n,r,i,o){function s(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var a,l=r.kind,u="getter"===l?"get":"setter"===l?"set":"value",c=!t&&e?r.static?e:e.prototype:null,d=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),h=!1,f=n.length-1;f>=0;f--){var p={};for(var g in r)p[g]="access"===g?{}:r[g];for(var g in r.access)p.access[g]=r.access[g];p.addInitializer=function(e){if(h)throw TypeError("Cannot add initializers after decoration has completed");o.push(s(e||null))};var m=(0,n[f])("accessor"===l?{get:d.get,set:d.set}:d[u],p);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(a=s(m.get))&&(d.get=a),(a=s(m.set))&&(d.set=a),(a=s(m.init))&&i.unshift(a)}else(a=s(m))&&("field"===l?i.unshift(a):d[u]=a)}c&&Object.defineProperty(c,r.name,d),h=!0}function c(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function h(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})}function g(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}var m=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);
vendor: 4,156 bytes, line 41
41(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||m(t,e,n)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function L(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function S(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function M(e){return this instanceof M?(this.v=e,this):new M(e)}function E(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),r[Symbol.asyncIterator]=function(){return this},r;function s(e,t){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||a(e,t)})},t&&(r[e]=t(r[e])))}function a(e,t){try{var n;(n=i[e](t)).value instanceof M?Promise.resolve(n.value.v).then(l,u):c(o[0][2],n)}catch(e){c(o[0][3],e)}}function l(e){a("next",e)}function u(e){a("throw",e)}function c(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function x(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:M(e[r](t)),done:!1}:i?i(t):t}:i}}function C(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=v(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function A(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var k=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},P=function(e){return(P=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)};function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=P(e),r=0;r<n.length;r++)"default"!==n[r]&&m(t,e,n[r]);return k(t,e),t}function R(e){return e&&e.__esModule?e:{default:e}}function j(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function O(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function _(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}
41function V(e,t,n){if(null!=t){var r,i;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");if(n){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var D="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function I(e){function t(t){e.error=e.hasError?new D(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function i(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(o).then(i,function(e){return t(e),i()})}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function F(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,n,r,i,o){return n?t?".jsx":".js":!r||i&&o?r+i+"."+o.toLowerCase()+"js":e}):e}let H={__extends:i,__assign:o,__rest:s,__decorate:a,__param:l,__esDecorate:u,__runInitializers:c,__propKey:d,__setFunctionName:h,__metadata:f,__awaiter:p,__generator:g,__createBinding:m,__exportStar:y,__values:v,__read:b,__spread:w,__spreadArrays:L,__spreadArray:S,__await:M,__asyncGenerator:E,__asyncDelegator:x,__asyncValues:C,__makeTemplateOb
41ject:A,__importStar:T,__importDefault:R,__classPrivateFieldGet:j,__classPrivateFieldSet:O,__classPrivateFieldIn:_,__addDisposableResource:V,__disposeResources:I,__rewriteRelativeImportExtension:F}}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(86170),t(74009))),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.