@unchainedshop/admin-ui 4.0.32 → 4.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -0
- package/dist/express.js +5 -1
- package/dist/fastify.js +12 -7
- package/dist/generateImageHandler.d.ts +1 -7
- package/dist/generateImageHandler.js +21 -19
- package/dist/utils.d.ts +1 -1
- package/out/403/index.html +2 -2
- package/out/404/index.html +2 -2
- package/out/404.html +2 -2
- package/out/423/index.html +2 -2
- package/out/500/index.html +2 -2
- package/out/_next/static/chunks/1513-deb1d149ebbf1899.js +1 -0
- package/out/_next/static/chunks/3767-56c6d0e6fd9efc0a.js +1 -0
- package/out/_next/static/chunks/4497-621e0a3654954056.js +1 -0
- package/out/_next/static/chunks/801-acea05bbe0f6689f.js +1 -0
- package/out/_next/static/chunks/9386-b68c2e0323faa464.js +1 -0
- package/out/_next/static/chunks/pages/_app-b9d32e939f08e52c.js +49 -0
- package/out/_next/static/chunks/pages/enrollments/EnrollmentDetailPage-6b53bfeea2e08a41.js +1 -0
- package/out/_next/static/chunks/pages/enrollments-8b3d1a71b3c4cbc2.js +1 -0
- package/out/_next/static/chunks/pages/events/EventDetailPage-4fdfc5ab602544d9.js +1 -0
- package/out/_next/static/chunks/pages/events-b0a4065ba4b17fe1.js +1 -0
- package/out/_next/static/chunks/pages/orders/OrderDetailPage-3fb637f26d3c695e.js +1 -0
- package/out/_next/static/chunks/pages/orders-b256d0de44978dc4.js +1 -0
- package/out/_next/static/chunks/pages/works/WorkDetailPage-22691911c6a10625.js +1 -0
- package/out/_next/static/chunks/pages/works-2ac76f87ad37da65.js +1 -0
- package/out/_next/static/{piNR22oQ1hsQ6PBMehzcM → s-5cpM1Agoud9ipZa4F1a}/_buildManifest.js +1 -1
- package/out/_offline/index.html +2 -2
- package/out/account/forgot-password/index.html +2 -2
- package/out/account/index.html +2 -2
- package/out/assortments/AssortmentDetailPage/index.html +2 -2
- package/out/assortments/index.html +2 -2
- package/out/assortments/new/index.html +2 -2
- package/out/copilot/index.html +2 -2
- package/out/country/CountryDetailPage/index.html +2 -2
- package/out/country/index.html +2 -2
- package/out/country/new/index.html +2 -2
- package/out/currency/CurrencyDetailPage/index.html +2 -2
- package/out/currency/index.html +2 -2
- package/out/currency/new/index.html +2 -2
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
- package/out/delivery-provider/index.html +2 -2
- package/out/delivery-provider/new/index.html +2 -2
- package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
- package/out/enrollments/index.html +2 -2
- package/out/events/EventDetailPage/index.html +2 -2
- package/out/events/index.html +2 -2
- package/out/external/index.html +2 -2
- package/out/filters/FilterDetailPage/index.html +2 -2
- package/out/filters/index.html +2 -2
- package/out/filters/new/index.html +2 -2
- package/out/index.html +2 -2
- package/out/install/index.html +2 -2
- package/out/language/LanguageDetailPage/index.html +2 -2
- package/out/language/index.html +2 -2
- package/out/language/new/index.html +2 -2
- package/out/log-in/index.html +2 -2
- package/out/orders/OrderDetailPage/index.html +2 -2
- package/out/orders/index.html +2 -2
- package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
- package/out/payment-provider/index.html +2 -2
- package/out/payment-provider/new/index.html +2 -2
- package/out/products/ProductDetailPage/index.html +2 -2
- package/out/products/index.html +2 -2
- package/out/products/new/index.html +2 -2
- package/out/quotations/QuotationDetailPage/index.html +2 -2
- package/out/quotations/index.html +2 -2
- package/out/reset-password/index.html +2 -2
- package/out/sign-up/index.html +2 -2
- package/out/styleguide/index.html +2 -2
- package/out/tokens/TokenDetailPage/index.html +2 -2
- package/out/tokens/index.html +2 -2
- package/out/users/UserDetailPage/index.html +2 -2
- package/out/users/index.html +2 -2
- package/out/users/new/index.html +2 -2
- package/out/verify-email/index.html +2 -2
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
- package/out/warehousing-provider/index.html +2 -2
- package/out/warehousing-provider/new/index.html +2 -2
- package/out/works/WorkDetailPage/index.html +2 -2
- package/out/works/index.html +2 -2
- package/out/works/management/index.html +2 -2
- package/package.json +7 -11
- package/out/_next/static/chunks/1513-e2f5c44e59609425.js +0 -1
- package/out/_next/static/chunks/3767-831c3cebeacddbbc.js +0 -1
- package/out/_next/static/chunks/4497-9cc5436a013736f2.js +0 -1
- package/out/_next/static/chunks/5160-01a133d6adce9be6.js +0 -1
- package/out/_next/static/chunks/7496-2dcf0668c03734c1.js +0 -1
- package/out/_next/static/chunks/pages/_app-c412c8d01885c5c2.js +0 -41
- package/out/_next/static/chunks/pages/enrollments/EnrollmentDetailPage-ea63ff9354c0b6ce.js +0 -1
- package/out/_next/static/chunks/pages/enrollments-eecae8c24df8707f.js +0 -1
- package/out/_next/static/chunks/pages/events/EventDetailPage-a010717ce569bbf2.js +0 -1
- package/out/_next/static/chunks/pages/events-31a7a601aa215cc0.js +0 -1
- package/out/_next/static/chunks/pages/orders/OrderDetailPage-fd1fb561ded2da1f.js +0 -1
- package/out/_next/static/chunks/pages/orders-a6dfb8a603a10b29.js +0 -1
- package/out/_next/static/chunks/pages/works/WorkDetailPage-2c5e05a7a0ce6591.js +0 -1
- package/out/_next/static/chunks/pages/works-64219c7e68fb724a.js +0 -1
- /package/out/_next/static/{piNR22oQ1hsQ6PBMehzcM → s-5cpM1Agoud9ipZa4F1a}/_ssgManifest.js +0 -0
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{92:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(90151)}])},1042:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14232);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...a}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},a),r?n.createElement("title",{id:i},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 0 1 1.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.559.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.894.149c-.424.07-.764.383-.929.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 0 1-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.398.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 0 1-.12-1.45l.527-.737c.25-.35.272-.806.108-1.204-.165-.397-.506-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.108-1.204l-.526-.738a1.125 1.125 0 0 1 .12-1.45l.773-.773a1.125 1.125 0 0 1 1.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894Z"}),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))})},1300:(e,t,r)=>{"use strict";r.d(t,{g:()=>n});let n=!1},2815:(e,t,r)=>{"use strict";r.d(t,{l:()=>i});var n=r(60364);function i(e){let t=e.parentElement,r=null;for(;t&&!n.Er(t);)n.Jb(t)&&(r=t),t=t.parentElement;let i=(null==t?void 0:t.getAttribute("disabled"))==="";return!(i&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(n.Jb(t))return!1;t=t.previousElementSibling}return!0}(r))&&i}},3363:(e,t,r)=>{"use strict";r.d(t,{_:()=>s});var n=Object.defineProperty,i=(e,t,r)=>(((e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),r);class a{set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){i(this,"current",this.detect()),i(this,"handoffState","pending"),i(this,"currentId",0)}}let s=new a},4007:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportedLocales=void 0,t.supportedLocales=["af","af-NA","agq","ak","am","ar","ar-AE","ar-BH","ar-DJ","ar-DZ","ar-EG","ar-EH","ar-ER","ar-IL","ar-IQ","ar-JO","ar-KM","ar-KW","ar-LB","ar-LY","ar-MA","ar-MR","ar-OM","ar-PS","ar-QA","ar-SA","ar-SD","ar-SO","ar-SS","ar-SY","ar-TD","ar-TN","ar-YE","as","asa","ast","az","az-Cyrl","az-Latn","bas","be","be-tarask","bem","bez","bg","bm","bn","bn-IN","bo","bo-IN","br","brx","bs","bs-Cyrl","bs-Latn","ca","ca-AD","ca-ES-valencia","ca-FR","ca-IT","ccp","ccp-IN","ce","ceb","cgg","chr","ckb","ckb-IR","cs","cy","da","da-GL","dav","de","de-AT","de-BE","de-CH","de-IT","de-LI","de-LU","dje","doi","dsb","dua","dyo","dz","ebu","ee","ee-TG","el","el-CY","en","en-001","en-150","en-AE","en-AG","en-AI","en-AS","en-AT","en-AU","en-BB","en-BE","en-BI","en-BM","en-BS","en-BW","en-BZ","en-CA","en-CC","en-CH","en-CK","en-CM","en-CX","en-CY","en-DE","en-DG","en-DK","en-DM","en-ER","en-FI","en-FJ","en-FK","en-FM","en-GB","en-GD","en-GG","en-GH","en-GI","en-GM","en-GU","en-GY","en-HK","en-IE","en-IL","en-IM","en-IN","en-IO","en-JE","en-JM","en-KE","en-KI","en-KN","en-KY","en-LC","en-LR","en-LS","en-MG","en-MH","en-MO","en-MP","en-MS","en-MT","en-MU","en-MW","en-MY","en-NA","en-NF","en-NG","en-NL","en-NR","en-NU","en-NZ","en-PG","en-PH","en-PK","en-PN","en-PR","en-PW","en-RW","en-SB","en-SC","en-SD","en-SE","en-SG","en-SH","en-SI","en-SL","en-SS","en-SX","en-SZ","en-TC","en-TK","en-TO","en-TT","en-TV","en-TZ","en-UG","en-UM","en-VC","en-VG","en-VI","en-VU","en-WS","en-ZA","en-ZM","en-ZW","eo","es","es-419","es-AR","es-BO","es-BR","es-BZ","es-CL","es-CO","es-CR","es-CU","es-DO","es-EA","es-EC","es-GQ","es-GT","es-HN","es-IC","es-MX","es-NI","es-PA","es-PE","es-PH","es-PR","es-PY","es-SV","es-US","es-UY","es-VE","et","eu","ewo","fa","fa-AF","ff","ff-Adlm","ff-Adlm-BF","ff-Adlm-CM","ff-Adlm-GH","ff-Adlm-GM","ff-Adlm-GW","ff-Adlm-LR","ff-Adlm-MR","ff-Adlm-NE","ff-Adlm-NG","ff-Adlm-SL","ff-Adlm-SN","ff-Latn","ff-Latn-BF","ff-Latn-CM","ff-Latn-GH","ff-Latn-GM","ff-Latn-GN","ff-Latn-GW","ff-Latn-LR","ff-Latn-MR","ff-Latn-NE","ff-Latn-NG","ff-Latn-SL","fi","fil","fo","fo-DK","fr","fr-BE","fr-BF","fr-BI","fr-BJ","fr-BL","fr-CA","fr-CD","fr-CF","fr-CG","fr-CH","fr-CI","fr-CM","fr-DJ","fr-DZ","fr-GA","fr-GF","fr-GN","fr-GP","fr-GQ","fr-HT","fr-KM","fr-LU","fr-MA","fr-MC","fr-MF","fr-MG","fr-ML","fr-MQ","fr-MR","fr-MU","fr-NC","fr-NE","fr-PF","fr-PM","fr-RE","fr-RW","fr-SC","fr-SN","fr-SY","fr-TD","fr-TG","fr-TN","fr-VU","fr-WF","fr-YT","fur","fy","ga","ga-GB","gd","gl","gsw","gsw-FR","gsw-LI","gu","guz","gv","ha","ha-GH","ha-NE","haw","he","hi","hr","hr-BA","hsb","hu","hy","ia","id","ig","ii","is","it","it-CH","it-SM","it-VA","ja","jgo","jmc","jv","ka","kab","kam","kde","kea","kgp","khq","ki","kk","kkj","kl","kln","km","kn","ko","ko-KP","kok","ks","ks-Arab","ksb","ksf","ksh","ku","kw","ky","lag","lb","lg","lkt","ln","ln-AO","ln-CF","ln-CG","lo","lrc","lrc-IQ","lt","lu","luo","luy","lv","mai","mas","mas-TZ","mer","mfe","mg","mgh","mgo","mi","mk","ml","mn","mni","mni-Beng","mr","ms","ms-BN","ms-ID","ms-SG","mt","mua","my","mzn","naq","nb","nb-SJ","nd","nds","nds-NL","ne","ne-IN","nl","nl-AW","nl-BE","nl-BQ","nl-CW","nl-SR","nl-SX","nmg","nn","nnh","no","nus","nyn","om","om-KE","or","os","os-RU","pa","pa-Arab","pa-Guru","pcm","pl","ps","ps-PK","pt","pt-AO","pt-CH","pt-CV","pt-GQ","pt-GW","pt-LU","pt-MO","pt-MZ","pt-PT","pt-ST","pt-TL","qu","qu-BO","qu-EC","rm","rn","ro","ro-MD","rof","ru","ru-BY","ru-KG","ru-KZ","ru-MD","ru-UA","rw","rwk","sa","sah","saq","sat","sat-Olck","sbp","sc","sd","sd-Arab","sd-Deva","se","se-FI","se-SE","seh","ses","sg","shi","shi-Latn","shi-Tfng","si","sk","sl","smn","sn","so","so-DJ","so-ET","so-KE","sq","sq-MK","sq-XK","sr","sr-Cyrl","sr-Cyrl-BA","sr-Cyrl-ME","sr-Cyrl-XK","sr-Latn","sr-Latn-BA","sr-Latn-ME","sr-Latn-XK","su","su-Latn","sv","sv-AX","sv-FI","sw","sw-CD","sw-KE","sw-UG","ta","ta-LK","ta-MY","ta-SG","te","teo","teo-KE","tg","th","ti","ti-ER","tk","to","tr","tr-CY","tt","twq","tzm","ug","uk","und","ur","ur-IN","uz","uz-Arab","uz-Cyrl","uz-Latn","vai","vai-Latn","vai-Vaii","vi","vun","wae","wo","xh","xog","yav","yi","yo","yo-BJ","yrl","yrl-CO","yrl-VE","yue","yue-Hans","yue-Hant","zgh","zh","zh-Hans","zh-Hans-HK","zh-Hans-MO","zh-Hans-SG","zh-Hant","zh-Hant-HK","zh-Hant-MO","zu"]},4361:(e,t,r)=>{e.exports=r(45139)},4902:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__addDisposableResource:()=>L,__assign:()=>a,__asyncDelegator:()=>S,__asyncGenerator:()=>x,__asyncValues:()=>T,__await:()=>E,__awaiter:()=>p,__classPrivateFieldGet:()=>P,__classPrivateFieldIn:()=>M,__classPrivateFieldSet:()=>D,__createBinding:()=>g,__decorate:()=>o,__disposeResources:()=>F,__esDecorate:()=>u,__exportStar:()=>_,__extends:()=>i,__generator:()=>m,__importDefault:()=>O,__importStar:()=>C,__makeTemplateObject:()=>A,__metadata:()=>f,__param:()=>l,__propKey:()=>d,__read:()=>v,__rest:()=>s,__rewriteRelativeImportExtension:()=>j,__runInitializers:()=>c,__setFunctionName:()=>h,__spread:()=>b,__spreadArray:()=>k,__spreadArrays:()=>w,__values:()=>y,default:()=>z});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(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 r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function o(e,t,r,n){var i,a=arguments.length,s=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(s=(a<3?i(s):a>3?i(t,r,s):i(t,r))||s);return a>3&&s&&Object.defineProperty(t,r,s),s}function l(e,t){return function(r,n){t(r,n,e)}}function u(e,t,r,n,i,a){function s(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var o,l=n.kind,u="getter"===l?"get":"setter"===l?"set":"value",c=!t&&e?n.static?e:e.prototype:null,d=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),h=!1,f=r.length-1;f>=0;f--){var p={};for(var m in n)p[m]="access"===m?{}:n[m];for(var m in n.access)p.access[m]=n.access[m];p.addInitializer=function(e){if(h)throw TypeError("Cannot add initializers after decoration has completed");a.push(s(e||null))};var g=(0,r[f])("accessor"===l?{get:d.get,set:d.set}:d[u],p);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw TypeError("Object expected");(o=s(g.get))&&(d.get=o),(o=s(g.set))&&(d.set=o),(o=s(g.init))&&i.unshift(o)}else(o=s(g))&&("field"===l?i.unshift(o):d[u]=o)}c&&Object.defineProperty(c,n.name,d),h=!0}function c(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function h(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,r,n){return new(r||(r=Promise))(function(i,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}l((n=n.apply(e,t||[])).next())})}function m(e,t){var r,n,i,a={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=o(0),s.throw=o(1),s.return=o(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(o){return function(l){var u=[o,l];if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var g=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function _(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||g(t,e,r)}function y(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return s}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function w(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var a=arguments[t],s=0,o=a.length;s<o;s++,i++)n[i]=a[s];return n}function k(e,t,r){if(r||2==arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function E(e){return this instanceof E?(this.v=e,this):new E(e)}function x(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),a=[];return n=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)}}),n[Symbol.asyncIterator]=function(){return this},n;function s(e,t){i[e]&&(n[e]=function(t){return new Promise(function(r,n){a.push([e,t,r,n])>1||o(e,t)})},t&&(n[e]=t(n[e])))}function o(e,t){try{var r;(r=i[e](t)).value instanceof E?Promise.resolve(r.value.v).then(l,u):c(a[0][2],r)}catch(e){c(a[0][3],e)}}function l(e){o("next",e)}function u(e){o("throw",e)}function c(e,t){e(t),a.shift(),a.length&&o(a[0][0],a[0][1])}}function S(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:E(e[n](t)),done:!1}:i?i(t):t}:i}}function T(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=y(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){var a,s,o;a=n,s=i,o=(t=e[r](t)).done,Promise.resolve(t.value).then(function(e){a({value:e,done:o})},s)})}}}function A(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var I=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},N=function(e){return(N=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)};function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=N(e),n=0;n<r.length;n++)"default"!==r[n]&&g(t,e,r[n]);return I(t,e),t}function O(e){return e&&e.__esModule?e:{default:e}}function P(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function D(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!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"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function M(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)}function L(e,t,r){if(null!=t){var n,i;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");if(r){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if("function"!=typeof n)throw TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var R="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function F(e){function t(t){e.error=e.hasError?new R(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function i(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var a=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(a).then(i,function(e){return t(e),i()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function j(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,n,i,a){return r?t?".jsx":".js":!n||i&&a?n+i+"."+a.toLowerCase()+"js":e}):e}let z={__extends:i,__assign:a,__rest:s,__decorate:o,__param:l,__esDecorate:u,__runInitializers:c,__propKey:d,__setFunctionName:h,__metadata:f,__awaiter:p,__generator:m,__createBinding:g,__exportStar:_,__values:y,__read:v,__spread:b,__spreadArrays:w,__spreadArray:k,__await:E,__asyncGenerator:x,__asyncDelegator:S,__asyncValues:T,__makeTemplateObject:A,__importStar:C,__importDefault:O,__classPrivateFieldGet:P,__classPrivateFieldSet:D,__classPrivateFieldIn:M,__addDisposableResource:L,__disposeResources:F,__rewriteRelativeImportExtension:j}},7672:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>h,Kq:()=>c,ob:()=>d});var n=r(4902),i=r(23520),a=r.n(i),s=r(14232),o=r(37154),l="undefined"==typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?s.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=s.createContext(null)),u=l.Consumer,c=l.Provider,d=l;function h(e,t){var r=t||{},i=r.intlPropName,l=void 0===i?"intl":i,c=r.forwardRef,d=void 0!==c&&c,h=r.enforceContext,f=void 0===h||h,p=function(t){return s.createElement(u,null,function(r){f&&(0,o.HM)(r);var i,a=((i={})[l]=r,i);return s.createElement(e,(0,n.__assign)({},t,a,{ref:d?t.forwardedRef:null}))})};return(p.displayName="injectIntl(".concat(e.displayName||e.name||"Component",")"),p.WrappedComponent=e,d)?a()(s.forwardRef(function(e,t){return s.createElement(p,(0,n.__assign)({},e,{forwardedRef:t}))}),e):a()(p,e)}},7743:(e,t,r)=>{"use strict";function n(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function a(e){return e>=97&&e<=122||e>=65&&e<=90}function s(e){return a(e)||95===e}function o(e){return a(e)||i(e)||95===e}r.d(t,{i0:()=>n,un:()=>s,xr:()=>o,yp:()=>i})},8665:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MakePartsList=function(e,t,r){for(var i=(0,n.PartitionPattern)(e),a=[],s=0;s<i.length;s++){var o=i[s];if("literal"===o.type)a.push({type:"literal",value:o.value});else{(0,n.invariant)("0"===o.type,"Malformed pattern ".concat(e));for(var l=0;l<r.length;l++){var u=r[l];a.push({type:u.type,value:u.value,unit:t})}}}return a};var n=r(77262)},9186:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(37876),i=r(14232),a=r(77742),s=r(58647),o=r(63963);let l=e=>{let{narrowNav:t=!1}=e,{locale:r,formatMessage:l}=(0,a.A)(),[u,c]=(0,i.useState)(!1),d=["en","de"],h=d.find(e=>e===r)||"en",[,f]=(0,o.A)("preferred-language",h),p=async e=>{try{f(e),window.location.reload(),c(!1)}catch(e){console.error("Failed to change language:",e)}};return(0,i.useEffect)(()=>{let e=e=>{e.target.closest("[data-language-toggle]")||c(!1)};if(u)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[u]),(0,n.jsxs)("div",{className:"relative","data-language-toggle":!0,children:[(0,n.jsx)("button",{onClick:()=>c(!u),className:"flex items-center space-x-1 p-2 text-slate-600 dark:text-sky-400 hover:text-slate-900 dark:hover:text-slate-200 rounded-md hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors focus:outline-hidden focus:ring-2 focus:ring-slate-800",title:l({id:"change_language",defaultMessage:"Change language"}),children:(0,n.jsx)(s.A,{className:"h-6 w-6"})}),u&&(0,n.jsx)("div",{className:"absolute w-48 rounded-md shadow-lg bg-white dark:bg-slate-800 ring-1 ring-black ring-opacity-5 z-[9999] ".concat(t?"left-full ml-2 bottom-0":"right-0 md:left-full md:ml-2 md:bottom-full md:mb-2 mt-2 md:mt-0"),children:(0,n.jsxs)("div",{className:"py-1",role:"menu",children:[(0,n.jsx)("div",{className:"px-4 py-2 text-xs font-semibold text-slate-500 dark:text-slate-400 uppercase tracking-wide border-b border-slate-200 dark:border-slate-700",children:l({id:"select_language",defaultMessage:"Select Language"})}),d.map(e=>(0,n.jsx)("button",{onClick:()=>p(e),className:"w-full text-left px-4 py-2 text-sm hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors ".concat(h===e?"bg-slate-50 dark:bg-slate-700 text-slate-900 dark:text-slate-100 font-medium":"text-slate-700 dark:text-slate-300"),role:"menuitem",children:(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{children:(e=>({en:"English",de:"Deutsch"})[e]||e.toUpperCase())(e)}),h===e&&(0,n.jsx)("div",{className:"h-2 w-2 rounded-full bg-slate-800"})]})},e))]})})]})}},9382:(e,t,r)=>{"use strict";function n(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}r.d(t,{_:()=>n})},10118:(e,t,r)=>{"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(54968),("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)},10143:(e,t,r)=>{"use strict";r.d(t,{RK:()=>s,TT:()=>n,hN:()=>function e(t,r,o,l,u,c,d){if(1===t.length&&(0,i.eW)(t[0]))return[{type:n.literal,value:t[0].value}];for(var h=[],f=0;f<t.length;f++){var p=t[f];if((0,i.eW)(p)){h.push({type:n.literal,value:p.value});continue}if((0,i.jA)(p)){"number"==typeof c&&h.push({type:n.literal,value:o.getNumberFormat(r).format(c)});continue}var m=p.value;if(!(u&&m in u))throw new a.Ei(m,d);var g=u[m];if((0,i.Im)(p)){g&&"string"!=typeof g&&"number"!=typeof g||(g="string"==typeof g||"number"==typeof g?String(g):""),h.push({type:"string"==typeof g?n.literal:n.object,value:g});continue}if((0,i.tv)(p)){var _="string"==typeof p.style?l.date[p.style]:(0,i.Tu)(p.style)?p.style.parsedOptions:void 0;h.push({type:n.literal,value:o.getDateTimeFormat(r,_).format(g)});continue}if((0,i.Qh)(p)){var _="string"==typeof p.style?l.time[p.style]:(0,i.Tu)(p.style)?p.style.parsedOptions:l.time.medium;h.push({type:n.literal,value:o.getDateTimeFormat(r,_).format(g)});continue}if((0,i.oF)(p)){var _="string"==typeof p.style?l.number[p.style]:(0,i.N1)(p.style)?p.style.parsedOptions:void 0;_&&_.scale&&(g*=_.scale||1),h.push({type:n.literal,value:o.getNumberFormat(r,_).format(g)});continue}if((0,i.xm)(p)){var y=p.children,v=p.value,b=u[v];if(!s(b))throw new a.Zo(v,"function",d);var w=b(e(y,r,o,l,u,c).map(function(e){return e.value}));Array.isArray(w)||(w=[w]),h.push.apply(h,w.map(function(e){return{type:"string"==typeof e?n.literal:n.object,value:e}}))}if((0,i.Jp)(p)){var k=p.options[g]||p.options.other;if(!k)throw new a.$x(p.value,g,Object.keys(p.options),d);h.push.apply(h,e(k.value,r,o,l,u));continue}if((0,i.N6)(p)){var k=p.options["=".concat(g)];if(!k){if(!Intl.PluralRules)throw new a.IF('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',a.O4.MISSING_INTL_API,d);var E=o.getPluralRules(r,{type:p.pluralType}).select(g-(p.offset||0));k=p.options[E]||p.options.other}if(!k)throw new a.$x(p.value,g,Object.keys(p.options),d);h.push.apply(h,e(k.value,r,o,l,u,g-(p.offset||0)));continue}}return h.length<2?h:h.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===n.literal&&t.type===n.literal?r.value+=t.value:e.push(t),e},[])}});var n,i=r(74769),a=r(26382);function s(e){return"function"==typeof e}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(n||(n={}))},10451:(e,t,r)=>{"use strict";r.d(t,{e:()=>function e(){let t=[],r={addEventListener:(e,t,n,i)=>(e.addEventListener(t,n,i),r.add(()=>e.removeEventListener(t,n,i))),requestAnimationFrame(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let i=requestAnimationFrame(...t);return r.add(()=>cancelAnimationFrame(i))},nextFrame(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.requestAnimationFrame(()=>r.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let i=setTimeout(...t);return r.add(()=>clearTimeout(i))},microTask(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];let a={current:!0};return(0,n._)(()=>{a.current&&t[0]()}),r.add(()=>{a.current=!1})},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:n})})},group(t){let r=e();return t(r),this.add(()=>r.dispose())},add:e=>(t.includes(e)||t.push(e),()=>{let r=t.indexOf(e);if(r>=0)for(let e of t.splice(r,1))e()}),dispose(){for(let e of t.splice(0))e()}};return r}});var n=r(9382)},10510:(e,t)=>{"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:a,objectFit:s}=e,o=n?40*n:t,l=i?40*i:r,u=o&&l?"viewBox='0 0 "+o+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+a+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},10776:(e,t,r)=>{"use strict";function n(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var a=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(a),!i)return a}r.d(t,{N:()=>n})},11357:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(4902);function i(e,t,r,n,i){return new a(e,t,r,n,i)}var a=function(e){function t(t,r,n,i,a,s){var o=e.call(this,t)||this;return o.onFinalize=a,o.shouldUnsubscribe=s,o._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,o._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,o._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,o}return(0,n.__extends)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null==(t=this.onFinalize)||t.call(this)}},t}(r(11771).vU)},11771:(e,t,r)=>{"use strict";r.d(t,{Ms:()=>_,vU:()=>f});var n=r(4902),i=r(65402),a=r(52249),s=r(18003),o=r(27279);function l(){}var u=c("C",void 0,void 0);function c(e,t,r){return{kind:e,value:t,error:r}}var d=r(50543),h=r(54283),f=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,(0,a.Uv)(t)&&t.add(r)):r.destination=b,r}return(0,n.__extends)(t,e),t.create=function(e,t,r){return new _(e,t,r)},t.prototype.next=function(e){this.isStopped?v(c("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?v(c("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?v(u,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}(a.yU),p=Function.prototype.bind;function m(e,t){return p.call(e,t)}var g=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){y(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){y(e)}else y(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){y(e)}},e}(),_=function(e){function t(t,r,n){var a,o,l=e.call(this)||this;return(0,i.T)(t)||!t?a={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:l&&s.$.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return l.unsubscribe()},a={next:t.next&&m(t.next,o),error:t.error&&m(t.error,o),complete:t.complete&&m(t.complete,o)}):a=t,l.destination=new g(a),l}return(0,n.__extends)(t,e),t}(f);function y(e){s.$.useDeprecatedSynchronousErrorHandling?(0,h.l)(e):(0,o.m)(e)}function v(e,t){var r=s.$.onStoppedNotification;r&&d.f.setTimeout(function(){return r(e,t)})}var b={closed:!0,next:l,error:function(e){throw e},complete:l}},12264:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(14232),i=r(87016);let a=()=>{let e=(0,n.useContext)(i.D);if(void 0===e)throw Error("Theme Context was used outside of its Provider");let[t,r]=e;return{theme:t,setTheme:r}}},12473:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14232);function i(){let e=(0,n.useRef)(new Map),t=(0,n.useCallback)((t,r,n,i)=>{let a=(null==i?void 0:i.once)?(...t)=>{e.current.delete(n),n(...t)}:n;e.current.set(n,{type:r,eventTarget:t,fn:a,options:i}),t.addEventListener(r,a,i)},[]),r=(0,n.useCallback)((t,r,n,i)=>{var a;let s=(null==(a=e.current.get(n))?void 0:a.fn)||n;t.removeEventListener(r,s,i),e.current.delete(n)},[]),i=(0,n.useCallback)(()=>{e.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]);return(0,n.useEffect)(()=>i,[i]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:i}}},13279:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(96427),i=r(79350),a=r(18885);function s(){let e=(0,n._)(["\n query ShopInfo {\n shopInfo {\n _id\n version\n language {\n _id\n isoCode\n name\n }\n country {\n _id\n isoCode\n flagEmoji\n name\n defaultCurrency {\n _id\n isoCode\n }\n }\n adminUiConfig {\n singleSignOnURL\n externalLinks {\n href\n title\n target\n }\n customProperties {\n entityName\n inlineFragment\n }\n }\n }\n }\n"]);return s=function(){return e},e}let o=(0,i.J1)(s()),l=()=>{let{data:e,loading:t,error:r}=(0,a.I)(o,{fetchPolicy:"cache-first"});return{shopInfo:null==e?void 0:e.shopInfo,loading:t,error:r}}},14600:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(96427);function i(){let e=(0,n._)(["\n fragment LanguageFragment on Language {\n _id\n isoCode\n isActive\n isBase\n name\n }\n"]);return i=function(){return e},e}let a=(0,r(79350).J1)(i())},15039:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(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 r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}(r)))}return e}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=(function(){return i}).apply(t,[]))||(e.exports=r)}()},15489:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=e=>{let{src:t,width:r,quality:n=75}=e;return t?"".concat(t,"?w=").concat(r,"&q=").concat(n):"/no-image.jpg"}},17059:(e,t,r)=>{"use strict";let n;r.d(t,{b:()=>sE});var i,a,s,o,l,u,c,d,h,f,p,m,g,_,y,v,b,w,k,E=r(14232),x="vercel.ai.error",S=Symbol.for(x),T=class e extends Error{constructor({name:e,message:t,cause:r}){super(t),this[i]=!0,this.name=e,this.cause=r}static isInstance(t){return e.hasMarker(t,x)}static hasMarker(e,t){let r=Symbol.for(t);return null!=e&&"object"==typeof e&&r in e&&"boolean"==typeof e[r]&&!0===e[r]}};i=S;var A=T;function I(e){return null==e?"unknown error":"string"==typeof e?e:e instanceof Error?e.message:JSON.stringify(e)}Symbol.for("vercel.ai.error.AI_APICallError"),Symbol.for("vercel.ai.error.AI_EmptyResponseBodyError");var N="AI_InvalidArgumentError",C=`vercel.ai.error.${N}`,O=Symbol.for(C),P=class extends A{constructor({message:e,cause:t,argument:r}){super({name:N,message:e,cause:t}),this[a]=!0,this.argument=r}static isInstance(e){return A.hasMarker(e,C)}};a=O,Symbol.for("vercel.ai.error.AI_InvalidPromptError"),Symbol.for("vercel.ai.error.AI_InvalidResponseDataError");var D="AI_JSONParseError",M=`vercel.ai.error.${D}`,L=Symbol.for(M),R=class extends A{constructor({text:e,cause:t}){super({name:D,message:`JSON parsing failed: Text: ${e}.
|
|
2
|
-
Error message: ${I(t)}`,cause:t}),this[s]=!0,this.text=e}static isInstance(e){return A.hasMarker(e,M)}};s=L,Symbol.for("vercel.ai.error.AI_LoadAPIKeyError"),Symbol.for("vercel.ai.error.AI_LoadSettingError"),Symbol.for("vercel.ai.error.AI_NoContentGeneratedError"),Symbol.for("vercel.ai.error.AI_NoSuchModelError"),Symbol.for("vercel.ai.error.AI_TooManyEmbeddingValuesForCallError");var F="AI_TypeValidationError",j=`vercel.ai.error.${F}`,z=Symbol.for(j),B=class e extends A{constructor({value:e,cause:t}){super({name:F,message:`Type validation failed: Value: ${JSON.stringify(e)}.
|
|
3
|
-
Error message: ${I(t)}`,cause:t}),this[o]=!0,this.value=e}static isInstance(e){return A.hasMarker(e,j)}static wrap({value:t,cause:r}){return e.isInstance(r)&&r.value===t?r:new e({value:t,cause:r})}};o=z;Symbol.for("vercel.ai.error.AI_UnsupportedFunctionalityError");class U extends Error{constructor(e,t){super(e),this.name="ParseError",this.type=t.type,this.field=t.field,this.value=t.value,this.line=t.line}}function V(e){}class q extends TransformStream{constructor({onError:e,onRetry:t,onComment:r}={}){let n;super({start(i){n=function(e){if("function"==typeof e)throw TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:t=V,onError:r=V,onRetry:n=V,onComment:i}=e,a="",s=!0,o,l="",u="";function c(e){if(""===e)return void(l.length>0&&t({id:o,event:u||void 0,data:l.endsWith(`
|
|
4
|
-
`)?l.slice(0,-1):l}),o=void 0,l="",u="");if(e.startsWith(":")){i&&i(e.slice(e.startsWith(": ")?2:1));return}let r=e.indexOf(":");if(-1!==r){let t=e.slice(0,r),n=" "===e[r+1]?2:1;d(t,e.slice(r+n),e);return}d(e,"",e)}function d(e,t,i){switch(e){case"event":u=t;break;case"data":l=`${l}${t}
|
|
5
|
-
`;break;case"id":o=t.includes("\0")?void 0:t;break;case"retry":/^\d+$/.test(t)?n(parseInt(t,10)):r(new U(`Invalid \`retry\` value: "${t}"`,{type:"invalid-retry",value:t,line:i}));break;default:r(new U(`Unknown field "${e.length>20?`${e.slice(0,20)}\u2026`:e}"`,{type:"unknown-field",field:e,value:t,line:i}))}}return{feed:function(e){let t=s?e.replace(/^\xEF\xBB\xBF/,""):e,[r,n]=function(e){let t=[],r="",n=0;for(;n<e.length;){let i=e.indexOf("\r",n),a=e.indexOf(`
|
|
6
|
-
`,n),s=-1;if(-1!==i&&-1!==a?s=Math.min(i,a):-1!==i?s=i===e.length-1?-1:i:-1!==a&&(s=a),-1===s){r=e.slice(n);break}{let r=e.slice(n,s);t.push(r),"\r"===e[(n=s+1)-1]&&e[n]===`
|
|
7
|
-
`&&n++}}return[t,r]}(`${a}${t}`);for(let e of r)c(e);a=n,s=!1},reset:function(e={}){a&&e.consume&&c(a),s=!0,o=void 0,l="",u="",a=""}}}({onEvent:e=>{i.enqueue(e)},onError(t){"terminate"===e?i.error(t):"function"==typeof e&&e(t)},onRetry:t,onComment:r})},transform(e){n.feed(e)}})}}Symbol("ZodOutput"),Symbol("ZodInput");class Z{constructor(){this._map=new Map,this._idmap=new Map}add(e,...t){let r=t[0];if(this._map.set(e,r),r&&"object"==typeof r&&"id"in r){if(this._idmap.has(r.id))throw Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let r={...this.get(t)??{}};delete r.id;let n={...r,...this._map.get(e)};return Object.keys(n).length?n:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}let H=new Z;function $(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,r])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function G(e,t){return"bigint"==typeof t?t.toString():t}function W(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function K(e){let t=+!!e.startsWith("^"),r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}let Q=Symbol("evaluating");function J(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==Q)return void 0===n&&(n=Q,n=r()),n},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function Y(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function X(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function ee(...e){let t={};for(let r of e)Object.assign(t,Object.getOwnPropertyDescriptors(r));return Object.defineProperties({},t)}function et(e){return JSON.stringify(e)}let er="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function en(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let ei=W(()=>{if("undefined"!=typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function ea(e){if(!1===en(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!1!==en(r)&&!1!==Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")}function es(e){return ea(e)?{...e}:e}let eo=new Set(["string","number","symbol"]);function el(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function eu(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function ec(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}let ed={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function eh(e,t=0){if(!0===e.aborted)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function ef(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function ep(e){return"string"==typeof e?e:e?.message}function em(e,t,r){let n={...e,path:e.path??[]};return e.message||(n.message=ep(e.inst?._zod.def?.error?.(e))??ep(t?.error?.(e))??ep(r.customError?.(e))??ep(r.localeError?.(e))??"Invalid input"),delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function eg(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function e_(...e){let[t,r,n]=e;return"string"==typeof t?{message:t,code:"custom",input:r,inst:n}:{...t}}class ey{constructor(e){this.counter=0,this.metadataRegistry=e?.metadata??H,this.target=e?.target??"draft-2020-12",this.unrepresentable=e?.unrepresentable??"throw",this.override=e?.override??(()=>{}),this.io=e?.io??"output",this.seen=new Map}process(e,t={path:[],schemaPath:[]}){var r;let n=e._zod.def,i=this.seen.get(e);if(i)return i.count++,t.schemaPath.includes(e)&&(i.cycle=t.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:t.path};this.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let r={...t,schemaPath:[...t.schemaPath,e],path:t.path},i=e._zod.parent;if(i)a.ref=i,this.process(i,r),this.seen.get(i).isParent=!0;else{let t=a.schema;switch(n.type){case"string":{t.type="string";let{minimum:r,maximum:n,format:i,patterns:s,contentEncoding:o}=e._zod.bag;if("number"==typeof r&&(t.minLength=r),"number"==typeof n&&(t.maxLength=n),i&&(t.format=({guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""})[i]??i,""===t.format&&delete t.format),o&&(t.contentEncoding=o),s&&s.size>0){let e=[...s];1===e.length?t.pattern=e[0].source:e.length>1&&(a.schema.allOf=[...e.map(e=>({..."draft-7"===this.target||"draft-4"===this.target||"openapi-3.0"===this.target?{type:"string"}:{},pattern:e.source}))])}break}case"number":{let{minimum:r,maximum:n,format:i,multipleOf:a,exclusiveMaximum:s,exclusiveMinimum:o}=e._zod.bag;"string"==typeof i&&i.includes("int")?t.type="integer":t.type="number","number"==typeof o&&("draft-4"===this.target||"openapi-3.0"===this.target?(t.minimum=o,t.exclusiveMinimum=!0):t.exclusiveMinimum=o),"number"==typeof r&&(t.minimum=r,"number"==typeof o&&"draft-4"!==this.target&&(o>=r?delete t.minimum:delete t.exclusiveMinimum)),"number"==typeof s&&("draft-4"===this.target||"openapi-3.0"===this.target?(t.maximum=s,t.exclusiveMaximum=!0):t.exclusiveMaximum=s),"number"==typeof n&&(t.maximum=n,"number"==typeof s&&"draft-4"!==this.target&&(s<=n?delete t.maximum:delete t.exclusiveMaximum)),"number"==typeof a&&(t.multipleOf=a);break}case"boolean":case"success":t.type="boolean";break;case"bigint":if("throw"===this.unrepresentable)throw Error("BigInt cannot be represented in JSON Schema");break;case"symbol":if("throw"===this.unrepresentable)throw Error("Symbols cannot be represented in JSON Schema");break;case"null":"openapi-3.0"===this.target?(t.type="string",t.nullable=!0,t.enum=[null]):t.type="null";break;case"any":case"unknown":break;case"undefined":if("throw"===this.unrepresentable)throw Error("Undefined cannot be represented in JSON Schema");break;case"void":if("throw"===this.unrepresentable)throw Error("Void cannot be represented in JSON Schema");break;case"never":t.not={};break;case"date":if("throw"===this.unrepresentable)throw Error("Date cannot be represented in JSON Schema");break;case"array":{let{minimum:i,maximum:a}=e._zod.bag;"number"==typeof i&&(t.minItems=i),"number"==typeof a&&(t.maxItems=a),t.type="array",t.items=this.process(n.element,{...r,path:[...r.path,"items"]});break}case"object":{t.type="object",t.properties={};let e=n.shape;for(let n in e)t.properties[n]=this.process(e[n],{...r,path:[...r.path,"properties",n]});let i=new Set([...new Set(Object.keys(e))].filter(e=>{let t=n.shape[e]._zod;return"input"===this.io?void 0===t.optin:void 0===t.optout}));i.size>0&&(t.required=Array.from(i)),n.catchall?._zod.def.type==="never"?t.additionalProperties=!1:n.catchall?n.catchall&&(t.additionalProperties=this.process(n.catchall,{...r,path:[...r.path,"additionalProperties"]})):"output"===this.io&&(t.additionalProperties=!1);break}case"union":t.anyOf=n.options.map((e,t)=>this.process(e,{...r,path:[...r.path,"anyOf",t]}));break;case"intersection":{let e=this.process(n.left,{...r,path:[...r.path,"allOf",0]}),i=this.process(n.right,{...r,path:[...r.path,"allOf",1]}),a=e=>"allOf"in e&&1===Object.keys(e).length;t.allOf=[...a(e)?e.allOf:[e],...a(i)?i.allOf:[i]];break}case"tuple":{t.type="array";let i="draft-2020-12"===this.target?"prefixItems":"items",a="draft-2020-12"===this.target||"openapi-3.0"===this.target?"items":"additionalItems",s=n.items.map((e,t)=>this.process(e,{...r,path:[...r.path,i,t]})),o=n.rest?this.process(n.rest,{...r,path:[...r.path,a,..."openapi-3.0"===this.target?[n.items.length]:[]]}):null;"draft-2020-12"===this.target?(t.prefixItems=s,o&&(t.items=o)):"openapi-3.0"===this.target?(t.items={anyOf:s},o&&t.items.anyOf.push(o),t.minItems=s.length,o||(t.maxItems=s.length)):(t.items=s,o&&(t.additionalItems=o));let{minimum:l,maximum:u}=e._zod.bag;"number"==typeof l&&(t.minItems=l),"number"==typeof u&&(t.maxItems=u);break}case"record":t.type="object",("draft-7"===this.target||"draft-2020-12"===this.target)&&(t.propertyNames=this.process(n.keyType,{...r,path:[...r.path,"propertyNames"]})),t.additionalProperties=this.process(n.valueType,{...r,path:[...r.path,"additionalProperties"]});break;case"map":if("throw"===this.unrepresentable)throw Error("Map cannot be represented in JSON Schema");break;case"set":if("throw"===this.unrepresentable)throw Error("Set cannot be represented in JSON Schema");break;case"enum":{let e=$(n.entries);e.every(e=>"number"==typeof e)&&(t.type="number"),e.every(e=>"string"==typeof e)&&(t.type="string"),t.enum=e;break}case"literal":{let e=[];for(let t of n.values)if(void 0===t){if("throw"===this.unrepresentable)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof t)if("throw"===this.unrepresentable)throw Error("BigInt literals cannot be represented in JSON Schema");else e.push(Number(t));else e.push(t);if(0===e.length);else if(1===e.length){let r=e[0];t.type=null===r?"null":typeof r,"draft-4"===this.target||"openapi-3.0"===this.target?t.enum=[r]:t.const=r}else e.every(e=>"number"==typeof e)&&(t.type="number"),e.every(e=>"string"==typeof e)&&(t.type="string"),e.every(e=>"boolean"==typeof e)&&(t.type="string"),e.every(e=>null===e)&&(t.type="null"),t.enum=e;break}case"file":{let r={type:"string",format:"binary",contentEncoding:"binary"},{minimum:n,maximum:i,mime:a}=e._zod.bag;void 0!==n&&(r.minLength=n),void 0!==i&&(r.maxLength=i),a?1===a.length?(r.contentMediaType=a[0],Object.assign(t,r)):t.anyOf=a.map(e=>({...r,contentMediaType:e})):Object.assign(t,r);break}case"transform":if("throw"===this.unrepresentable)throw Error("Transforms cannot be represented in JSON Schema");break;case"nullable":{let e=this.process(n.innerType,r);"openapi-3.0"===this.target?(a.ref=n.innerType,t.nullable=!0):t.anyOf=[e,{type:"null"}];break}case"nonoptional":case"promise":case"optional":this.process(n.innerType,r),a.ref=n.innerType;break;case"default":this.process(n.innerType,r),a.ref=n.innerType,t.default=JSON.parse(JSON.stringify(n.defaultValue));break;case"prefault":this.process(n.innerType,r),a.ref=n.innerType,"input"===this.io&&(t._prefault=JSON.parse(JSON.stringify(n.defaultValue)));break;case"catch":{let e;this.process(n.innerType,r),a.ref=n.innerType;try{e=n.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}t.default=e;break}case"nan":if("throw"===this.unrepresentable)throw Error("NaN cannot be represented in JSON Schema");break;case"template_literal":{let r=e._zod.pattern;if(!r)throw Error("Pattern not found in template literal");t.type="string",t.pattern=r.source;break}case"pipe":{let e="input"===this.io?"transform"===n.in._zod.def.type?n.out:n.in:n.out;this.process(e,r),a.ref=e;break}case"readonly":this.process(n.innerType,r),a.ref=n.innerType,t.readOnly=!0;break;case"lazy":{let t=e._zod.innerType;this.process(t,r),a.ref=t;break}case"custom":if("throw"===this.unrepresentable)throw Error("Custom types cannot be represented in JSON Schema");break;case"function":if("throw"===this.unrepresentable)throw Error("Function types cannot be represented in JSON Schema")}}}let o=this.metadataRegistry.get(e);return o&&Object.assign(a.schema,o),"input"===this.io&&function e(t,r){let n=r??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);let i=t._zod.def;switch(i.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":case"custom":case"success":case"catch":case"function":return!1;case"array":return e(i.element,n);case"object":for(let t in i.shape)if(e(i.shape[t],n))return!0;return!1;case"union":for(let t of i.options)if(e(t,n))return!0;return!1;case"intersection":return e(i.left,n)||e(i.right,n);case"tuple":for(let t of i.items)if(e(t,n))return!0;if(i.rest&&e(i.rest,n))return!0;return!1;case"record":case"map":return e(i.keyType,n)||e(i.valueType,n);case"set":return e(i.valueType,n);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":case"default":case"prefault":return e(i.innerType,n);case"lazy":return e(i.getter(),n);case"transform":return!0;case"pipe":return e(i.in,n)||e(i.out,n)}throw Error(`Unknown schema type: ${i.type}`)}(e)&&(delete a.schema.examples,delete a.schema.default),"input"===this.io&&a.schema._prefault&&((r=a.schema).default??(r.default=a.schema._prefault)),delete a.schema._prefault,this.seen.get(e).schema}emit(e,t){let r={cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0},n=this.seen.get(e);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");let i=e=>{let t="draft-2020-12"===this.target?"$defs":"definitions";if(r.external){let n=r.external.registry.get(e[0])?.id,i=r.external.uri??(e=>e);if(n)return{ref:i(n)};let a=e[1].defId??e[1].schema.id??`schema${this.counter++}`;return e[1].defId=a,{defId:a,ref:`${i("__shared")}#/${t}/${a}`}}if(e[1]===n)return{ref:"#"};let i=`#/${t}/`,a=e[1].schema.id??`__schema${this.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:r,defId:n}=i(e);t.def={...t.schema},n&&(t.defId=n);let a=t.schema;for(let e in a)delete a[e];a.$ref=r};if("throw"===r.cycles)for(let e of this.seen.entries()){let t=e[1];if(t.cycle)throw Error(`Cycle detected: #/${t.cycle?.join("/")}/<root>
|
|
8
|
-
|
|
9
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let t of this.seen.entries()){let n=t[1];if(e===t[0]){a(t);continue}if(r.external){let n=r.external.registry.get(t[0])?.id;if(e!==t[0]&&n){a(t);continue}}if(this.metadataRegistry.get(t[0])?.id||n.cycle||n.count>1&&"ref"===r.reused){a(t);continue}}let s=(e,t)=>{let r=this.seen.get(e),n=r.def??r.schema,i={...n};if(null===r.ref)return;let a=r.ref;if(r.ref=null,a){s(a,t);let e=this.seen.get(a).schema;e.$ref&&("draft-7"===t.target||"draft-4"===t.target||"openapi-3.0"===t.target)?(n.allOf=n.allOf??[],n.allOf.push(e)):(Object.assign(n,e),Object.assign(n,i))}r.isParent||this.override({zodSchema:e,jsonSchema:n,path:r.path??[]})};for(let e of[...this.seen.entries()].reverse())s(e[0],{target:this.target});let o={};if("draft-2020-12"===this.target?o.$schema="https://json-schema.org/draft/2020-12/schema":"draft-7"===this.target?o.$schema="http://json-schema.org/draft-07/schema#":"draft-4"===this.target?o.$schema="http://json-schema.org/draft-04/schema#":"openapi-3.0"===this.target||console.warn(`Invalid target: ${this.target}`),r.external?.uri){let t=r.external.registry.get(e)?.id;if(!t)throw Error("Schema is missing an `id` property");o.$id=r.external.uri(t)}Object.assign(o,n.def);let l=r.external?.defs??{};for(let e of this.seen.entries()){let t=e[1];t.def&&t.defId&&(l[t.defId]=t.def)}r.external||Object.keys(l).length>0&&("draft-2020-12"===this.target?o.$defs=l:o.definitions=l);try{return JSON.parse(JSON.stringify(o))}catch(e){throw Error("Error converting schema to JSON.")}}}function ev(e,t,r){function n(r,n){var i;for(let a in Object.defineProperty(r,"_zod",{value:r._zod??{},enumerable:!1}),(i=r._zod).traits??(i.traits=new Set),r._zod.traits.add(e),t(r,n),s.prototype)a in r||Object.defineProperty(r,a,{value:s.prototype[a].bind(r)});r._zod.constr=s,r._zod.def=n}let i=r?.Parent??Object;class a extends i{}function s(e){var t;let i=r?.Parent?new a:this;for(let r of(n(i,e),(t=i._zod).deferred??(t.deferred=[]),i._zod.deferred))r();return i}return Object.defineProperty(a,"name",{value:e}),Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:t=>!!r?.Parent&&t instanceof r.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}Object.freeze({status:"aborted"}),Symbol("zod_brand");class eb extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ew extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}let ek={};function eE(e){return e&&Object.assign(ek,e),ek}let ex=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,G,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},eS=ev("$ZodError",ex),eT=ev("$ZodError",ex,{Parent:Error}),eA=e=>(t,r,n,i)=>{let a=n?Object.assign(n,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},a);if(s instanceof Promise)throw new eb;if(s.issues.length){let t=new(i?.Err??e)(s.issues.map(e=>em(e,a,eE())));throw er(t,i?.callee),t}return s.value},eI=e=>async(t,r,n,i)=>{let a=n?Object.assign(n,{async:!0}):{async:!0},s=t._zod.run({value:r,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){let t=new(i?.Err??e)(s.issues.map(e=>em(e,a,eE())));throw er(t,i?.callee),t}return s.value},eN=e=>(t,r,n)=>{let i=n?{...n,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new eb;return a.issues.length?{success:!1,error:new(e??eS)(a.issues.map(e=>em(e,i,eE())))}:{success:!0,data:a.value}},eC=eN(eT),eO=e=>async(t,r,n)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>em(e,i,eE())))}:{success:!0,data:a.value}},eP=eO(eT),eD=(e,t)=>{eS.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>(function(e,t){let r=t||function(e){return e.message},n={_errors:[]},i=e=>{for(let t of e.issues)if("invalid_union"===t.code&&t.errors.length)t.errors.map(e=>i({issues:e}));else if("invalid_key"===t.code)i({issues:t.issues});else if("invalid_element"===t.code)i({issues:t.issues});else if(0===t.path.length)n._errors.push(r(t));else{let e=n,i=0;for(;i<t.path.length;){let n=t.path[i];i===t.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(r(t))):e[n]=e[n]||{_errors:[]},e=e[n],i++}}};return i(e),n})(e,t)},flatten:{value:t=>(function(e,t=e=>e.message){let r={},n=[];for(let i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}})(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,G,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,G,2)}},isEmpty:{get:()=>0===e.issues.length}})};ev("ZodError",eD);let eM=ev("ZodError",eD,{Parent:Error}),eL=eA(eM),eR=eI(eM),eF=eN(eM),ej=eO(eM),ez=(e,t,r)=>{let n=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return eA(eM)(e,t,n)},eB=(e,t,r)=>eA(eM)(e,t,r),eU=async(e,t,r)=>{let n=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return eI(eM)(e,t,n)},eV=async(e,t,r)=>eI(eM)(e,t,r),eq=(e,t,r)=>{let n=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return eN(eM)(e,t,n)},eZ=(e,t,r)=>eN(eM)(e,t,r),eH=async(e,t,r)=>{let n=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return eO(eM)(e,t,n)},e$=async(e,t,r)=>eO(eM)(e,t,r);!function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},e.getValidEnumValues=t=>{let r=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),n={};for(let e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(let r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(l||(l={})),(u||(u={})).mergeShapes=(e,t)=>({...e,...t});let eG=l.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),eW=e=>{switch(typeof e){case"undefined":return eG.undefined;case"string":return eG.string;case"number":return Number.isNaN(e)?eG.nan:eG.number;case"boolean":return eG.boolean;case"function":return eG.function;case"bigint":return eG.bigint;case"symbol":return eG.symbol;case"object":if(Array.isArray(e))return eG.array;if(null===e)return eG.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return eG.promise;if("undefined"!=typeof Map&&e instanceof Map)return eG.map;if("undefined"!=typeof Set&&e instanceof Set)return eG.set;if("undefined"!=typeof Date&&e instanceof Date)return eG.date;return eG.object;default:return eG.unknown}},eK=l.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class eQ extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof eQ))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,l.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)if(n.path.length>0){let r=n.path[0];t[r]=t[r]||[],t[r].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}eQ.create=e=>new eQ(e);let eJ=(e,t)=>{let r;switch(e.code){case eK.invalid_type:r=e.received===eG.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case eK.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,l.jsonStringifyReplacer)}`;break;case eK.unrecognized_keys:r=`Unrecognized key(s) in object: ${l.joinValues(e.keys,", ")}`;break;case eK.invalid_union:r="Invalid input";break;case eK.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${l.joinValues(e.options)}`;break;case eK.invalid_enum_value:r=`Invalid enum value. Expected ${l.joinValues(e.options)}, received '${e.received}'`;break;case eK.invalid_arguments:r="Invalid function arguments";break;case eK.invalid_return_type:r="Invalid function return type";break;case eK.invalid_date:r="Invalid date";break;case eK.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:l.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case eK.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case eK.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case eK.custom:r="Invalid input";break;case eK.invalid_intersection_types:r="Intersection results could not be merged";break;case eK.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case eK.not_finite:r="Number must be finite";break;default:r=t.defaultError,l.assertNever(e)}return{message:r}};!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(c||(c={}));let eY=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,a=[...r,...i.path||[]],s={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let o="";for(let e of n.filter(e=>!!e).slice().reverse())o=e(s,{data:t,defaultError:o}).message;return{...i,path:a,message:o}};function eX(e,t){let r=eY({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,eJ,void 0].filter(e=>!!e)});e.common.issues.push(r)}class e0{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return e1;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return e0.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return e1;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let e1=Object.freeze({status:"aborted"}),e2=e=>({status:"dirty",value:e}),e5=e=>({status:"valid",value:e}),e3=e=>"undefined"!=typeof Promise&&e instanceof Promise;class e4{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let e9=(e,t)=>{if("valid"===t.status)return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new eQ(e.common.issues);return this._error=t,this._error}}};function e6(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return"invalid_enum_value"===t.code?{message:a??i.defaultError}:void 0===i.data?{message:a??n??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:a??r??i.defaultError}},description:i}}class e7{get description(){return this._def.description}_getType(e){return eW(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:eW(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new e0,ctx:{common:e.parent.common,data:e.data,parsedType:eW(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(e3(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:eW(e)},n=this._parseSync({data:e,path:r.path,parent:r});return e9(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:eW(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return"valid"===r.status?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>"valid"===e.status?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:eW(e)},n=this._parse({data:e,path:r.path,parent:r});return e9(r,await (e3(n)?n:Promise.resolve(n)))}refine(e,t){return this._refinement((r,n)=>{let i=e(r),a=()=>n.addIssue({code:eK.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(r):t});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new tH({schema:this,typeName:d.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return t$.create(this,this._def)}nullable(){return tG.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return tI.create(this)}promise(){return tZ.create(this,this._def)}or(e){return tC.create([this,e],this._def)}and(e){return tD.create(this,e,this._def)}transform(e){return new tH({...e6(this._def),schema:this,typeName:d.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new tW({...e6(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:d.ZodDefault})}brand(){return new tJ({typeName:d.ZodBranded,type:this,...e6(this._def)})}catch(e){return new tK({...e6(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:d.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return tY.create(this,e)}readonly(){return tX.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let e8=/^c[^\s-]{8,}$/i,te=/^[0-9a-z]+$/,tt=/^[0-9A-HJKMNP-TV-Z]{26}$/i,tr=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,tn=/^[a-z0-9_-]{21}$/i,ti=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ta=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ts=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,to=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,tl=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,tu=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,tc=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,td=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,th=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,tf="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",tp=RegExp(`^${tf}$`);function tm(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}class tg extends e7{_parse(e){var t,r,i,a;let s;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==eG.string){let t=this._getOrReturnCtx(e);return eX(t,{code:eK.invalid_type,expected:eG.string,received:t.parsedType}),e1}let o=new e0;for(let u of this._def.checks)if("min"===u.kind)e.data.length<u.value&&(eX(s=this._getOrReturnCtx(e,s),{code:eK.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),o.dirty());else if("max"===u.kind)e.data.length>u.value&&(eX(s=this._getOrReturnCtx(e,s),{code:eK.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),o.dirty());else if("length"===u.kind){let t=e.data.length>u.value,r=e.data.length<u.value;(t||r)&&(s=this._getOrReturnCtx(e,s),t?eX(s,{code:eK.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}):r&&eX(s,{code:eK.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}),o.dirty())}else if("email"===u.kind)ts.test(e.data)||(eX(s=this._getOrReturnCtx(e,s),{validation:"email",code:eK.invalid_string,message:u.message}),o.dirty());else if("emoji"===u.kind)n||(n=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),n.test(e.data)||(eX(s=this._getOrReturnCtx(e,s),{validation:"emoji",code:eK.invalid_string,message:u.message}),o.dirty());else if("uuid"===u.kind)tr.test(e.data)||(eX(s=this._getOrReturnCtx(e,s),{validation:"uuid",code:eK.invalid_string,message:u.message}),o.dirty());else if("nanoid"===u.kind)tn.test(e.data)||(eX(s=this._getOrReturnCtx(e,s),{validation:"nanoid",code:eK.invalid_string,message:u.message}),o.dirty());else if("cuid"===u.kind)e8.test(e.data)||(eX(s=this._getOrReturnCtx(e,s),{validation:"cuid",code:eK.invalid_string,message:u.message}),o.dirty());else if("cuid2"===u.kind)te.test(e.data)||(eX(s=this._getOrReturnCtx(e,s),{validation:"cuid2",code:eK.invalid_string,message:u.message}),o.dirty());else if("ulid"===u.kind)tt.test(e.data)||(eX(s=this._getOrReturnCtx(e,s),{validation:"ulid",code:eK.invalid_string,message:u.message}),o.dirty());else if("url"===u.kind)try{new URL(e.data)}catch{eX(s=this._getOrReturnCtx(e,s),{validation:"url",code:eK.invalid_string,message:u.message}),o.dirty()}else"regex"===u.kind?(u.regex.lastIndex=0,u.regex.test(e.data)||(eX(s=this._getOrReturnCtx(e,s),{validation:"regex",code:eK.invalid_string,message:u.message}),o.dirty())):"trim"===u.kind?e.data=e.data.trim():"includes"===u.kind?e.data.includes(u.value,u.position)||(eX(s=this._getOrReturnCtx(e,s),{code:eK.invalid_string,validation:{includes:u.value,position:u.position},message:u.message}),o.dirty()):"toLowerCase"===u.kind?e.data=e.data.toLowerCase():"toUpperCase"===u.kind?e.data=e.data.toUpperCase():"startsWith"===u.kind?e.data.startsWith(u.value)||(eX(s=this._getOrReturnCtx(e,s),{code:eK.invalid_string,validation:{startsWith:u.value},message:u.message}),o.dirty()):"endsWith"===u.kind?e.data.endsWith(u.value)||(eX(s=this._getOrReturnCtx(e,s),{code:eK.invalid_string,validation:{endsWith:u.value},message:u.message}),o.dirty()):"datetime"===u.kind?(function(e){let t=`${tf}T${tm(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)})(u).test(e.data)||(eX(s=this._getOrReturnCtx(e,s),{code:eK.invalid_string,validation:"datetime",message:u.message}),o.dirty()):"date"===u.kind?tp.test(e.data)||(eX(s=this._getOrReturnCtx(e,s),{code:eK.invalid_string,validation:"date",message:u.message}),o.dirty()):"time"===u.kind?RegExp(`^${tm(u)}$`).test(e.data)||(eX(s=this._getOrReturnCtx(e,s),{code:eK.invalid_string,validation:"time",message:u.message}),o.dirty()):"duration"===u.kind?ta.test(e.data)||(eX(s=this._getOrReturnCtx(e,s),{validation:"duration",code:eK.invalid_string,message:u.message}),o.dirty()):"ip"===u.kind?(t=e.data,!(("v4"===(r=u.version)||!r)&&to.test(t)||("v6"===r||!r)&&tu.test(t))&&1&&(eX(s=this._getOrReturnCtx(e,s),{validation:"ip",code:eK.invalid_string,message:u.message}),o.dirty())):"jwt"===u.kind?!function(e,t){if(!ti.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}(e.data,u.alg)&&(eX(s=this._getOrReturnCtx(e,s),{validation:"jwt",code:eK.invalid_string,message:u.message}),o.dirty()):"cidr"===u.kind?(i=e.data,!(("v4"===(a=u.version)||!a)&&tl.test(i)||("v6"===a||!a)&&tc.test(i))&&1&&(eX(s=this._getOrReturnCtx(e,s),{validation:"cidr",code:eK.invalid_string,message:u.message}),o.dirty())):"base64"===u.kind?td.test(e.data)||(eX(s=this._getOrReturnCtx(e,s),{validation:"base64",code:eK.invalid_string,message:u.message}),o.dirty()):"base64url"===u.kind?th.test(e.data)||(eX(s=this._getOrReturnCtx(e,s),{validation:"base64url",code:eK.invalid_string,message:u.message}),o.dirty()):l.assertNever(u);return{status:o.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:eK.invalid_string,...c.errToObj(r)})}_addCheck(e){return new tg({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...c.errToObj(e)})}url(e){return this._addCheck({kind:"url",...c.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...c.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...c.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...c.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...c.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...c.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...c.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...c.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...c.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...c.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...c.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...c.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...c.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...c.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...c.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...c.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...c.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...c.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...c.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...c.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...c.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...c.errToObj(t)})}nonempty(e){return this.min(1,c.errToObj(e))}trim(){return new tg({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new tg({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new tg({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}tg.create=e=>new tg({checks:[],typeName:d.ZodString,coerce:e?.coerce??!1,...e6(e)});class t_ extends e7{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==eG.number){let t=this._getOrReturnCtx(e);return eX(t,{code:eK.invalid_type,expected:eG.number,received:t.parsedType}),e1}let r=new e0;for(let n of this._def.checks)"int"===n.kind?l.isInteger(e.data)||(eX(t=this._getOrReturnCtx(e,t),{code:eK.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(eX(t=this._getOrReturnCtx(e,t),{code:eK.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(eX(t=this._getOrReturnCtx(e,t),{code:eK.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(e.data,n.value)&&(eX(t=this._getOrReturnCtx(e,t),{code:eK.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(eX(t=this._getOrReturnCtx(e,t),{code:eK.not_finite,message:n.message}),r.dirty()):l.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,c.toString(t))}gt(e,t){return this.setLimit("min",e,!1,c.toString(t))}lte(e,t){return this.setLimit("max",e,!0,c.toString(t))}lt(e,t){return this.setLimit("max",e,!1,c.toString(t))}setLimit(e,t,r,n){return new t_({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:c.toString(n)}]})}_addCheck(e){return new t_({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:c.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:c.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:c.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:c.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:c.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:c.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:c.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:c.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:c.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&l.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}t_.create=e=>new t_({checks:[],typeName:d.ZodNumber,coerce:e?.coerce||!1,...e6(e)});class ty extends e7{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==eG.bigint)return this._getInvalidInput(e);let r=new e0;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(eX(t=this._getOrReturnCtx(e,t),{code:eK.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(eX(t=this._getOrReturnCtx(e,t),{code:eK.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(eX(t=this._getOrReturnCtx(e,t),{code:eK.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):l.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return eX(t,{code:eK.invalid_type,expected:eG.bigint,received:t.parsedType}),e1}gte(e,t){return this.setLimit("min",e,!0,c.toString(t))}gt(e,t){return this.setLimit("min",e,!1,c.toString(t))}lte(e,t){return this.setLimit("max",e,!0,c.toString(t))}lt(e,t){return this.setLimit("max",e,!1,c.toString(t))}setLimit(e,t,r,n){return new ty({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:c.toString(n)}]})}_addCheck(e){return new ty({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:c.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:c.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:c.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:c.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:c.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}ty.create=e=>new ty({checks:[],typeName:d.ZodBigInt,coerce:e?.coerce??!1,...e6(e)});class tv extends e7{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==eG.boolean){let t=this._getOrReturnCtx(e);return eX(t,{code:eK.invalid_type,expected:eG.boolean,received:t.parsedType}),e1}return e5(e.data)}}tv.create=e=>new tv({typeName:d.ZodBoolean,coerce:e?.coerce||!1,...e6(e)});class tb extends e7{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==eG.date){let t=this._getOrReturnCtx(e);return eX(t,{code:eK.invalid_type,expected:eG.date,received:t.parsedType}),e1}if(Number.isNaN(e.data.getTime()))return eX(this._getOrReturnCtx(e),{code:eK.invalid_date}),e1;let r=new e0;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(eX(t=this._getOrReturnCtx(e,t),{code:eK.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(eX(t=this._getOrReturnCtx(e,t),{code:eK.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):l.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new tb({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:c.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:c.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}tb.create=e=>new tb({checks:[],coerce:e?.coerce||!1,typeName:d.ZodDate,...e6(e)});class tw extends e7{_parse(e){if(this._getType(e)!==eG.symbol){let t=this._getOrReturnCtx(e);return eX(t,{code:eK.invalid_type,expected:eG.symbol,received:t.parsedType}),e1}return e5(e.data)}}tw.create=e=>new tw({typeName:d.ZodSymbol,...e6(e)});class tk extends e7{_parse(e){if(this._getType(e)!==eG.undefined){let t=this._getOrReturnCtx(e);return eX(t,{code:eK.invalid_type,expected:eG.undefined,received:t.parsedType}),e1}return e5(e.data)}}tk.create=e=>new tk({typeName:d.ZodUndefined,...e6(e)});class tE extends e7{_parse(e){if(this._getType(e)!==eG.null){let t=this._getOrReturnCtx(e);return eX(t,{code:eK.invalid_type,expected:eG.null,received:t.parsedType}),e1}return e5(e.data)}}tE.create=e=>new tE({typeName:d.ZodNull,...e6(e)});class tx extends e7{constructor(){super(...arguments),this._any=!0}_parse(e){return e5(e.data)}}tx.create=e=>new tx({typeName:d.ZodAny,...e6(e)});class tS extends e7{constructor(){super(...arguments),this._unknown=!0}_parse(e){return e5(e.data)}}tS.create=e=>new tS({typeName:d.ZodUnknown,...e6(e)});class tT extends e7{_parse(e){let t=this._getOrReturnCtx(e);return eX(t,{code:eK.invalid_type,expected:eG.never,received:t.parsedType}),e1}}tT.create=e=>new tT({typeName:d.ZodNever,...e6(e)});class tA extends e7{_parse(e){if(this._getType(e)!==eG.undefined){let t=this._getOrReturnCtx(e);return eX(t,{code:eK.invalid_type,expected:eG.void,received:t.parsedType}),e1}return e5(e.data)}}tA.create=e=>new tA({typeName:d.ZodVoid,...e6(e)});class tI extends e7{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==eG.array)return eX(t,{code:eK.invalid_type,expected:eG.array,received:t.parsedType}),e1;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(eX(t,{code:e?eK.too_big:eK.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(eX(t,{code:eK.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(eX(t,{code:eK.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new e4(t,e,t.path,r)))).then(e=>e0.mergeArray(r,e));let i=[...t.data].map((e,r)=>n.type._parseSync(new e4(t,e,t.path,r)));return e0.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new tI({...this._def,minLength:{value:e,message:c.toString(t)}})}max(e,t){return new tI({...this._def,maxLength:{value:e,message:c.toString(t)}})}length(e,t){return new tI({...this._def,exactLength:{value:e,message:c.toString(t)}})}nonempty(e){return this.min(1,e)}}tI.create=(e,t)=>new tI({type:e,minLength:null,maxLength:null,exactLength:null,typeName:d.ZodArray,...e6(t)});class tN extends e7{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=l.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==eG.object){let t=this._getOrReturnCtx(e);return eX(t,{code:eK.invalid_type,expected:eG.object,received:t.parsedType}),e1}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof tT&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||a.push(e);let s=[];for(let e of i){let t=n[e],i=r.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new e4(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof tT){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of a)s.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)a.length>0&&(eX(r,{code:eK.unrecognized_keys,keys:a}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of a){let n=r.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new e4(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of s){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>e0.mergeObjectSync(t,e)):e0.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return c.errToObj,new tN({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:c.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new tN({...this._def,unknownKeys:"strip"})}passthrough(){return new tN({...this._def,unknownKeys:"passthrough"})}extend(e){return new tN({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new tN({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:d.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new tN({...this._def,catchall:e})}pick(e){let t={};for(let r of l.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new tN({...this._def,shape:()=>t})}omit(e){let t={};for(let r of l.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new tN({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof tN){let r={};for(let n in t.shape){let i=t.shape[n];r[n]=t$.create(e(i))}return new tN({...t._def,shape:()=>r})}if(t instanceof tI)return new tI({...t._def,type:e(t.element)});if(t instanceof t$)return t$.create(e(t.unwrap()));if(t instanceof tG)return tG.create(e(t.unwrap()));if(t instanceof tM)return tM.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let r of l.objectKeys(this.shape)){let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new tN({...this._def,shape:()=>t})}required(e){let t={};for(let r of l.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof t$;)e=e._def.innerType;t[r]=e}return new tN({...this._def,shape:()=>t})}keyof(){return tU(l.objectKeys(this.shape))}}tN.create=(e,t)=>new tN({shape:()=>e,unknownKeys:"strip",catchall:tT.create(),typeName:d.ZodObject,...e6(t)}),tN.strictCreate=(e,t)=>new tN({shape:()=>e,unknownKeys:"strict",catchall:tT.create(),typeName:d.ZodObject,...e6(t)}),tN.lazycreate=(e,t)=>new tN({shape:e,unknownKeys:"strip",catchall:tT.create(),typeName:d.ZodObject,...e6(t)});class tC extends e7{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new eQ(e.ctx.common.issues));return eX(t,{code:eK.invalid_union,unionErrors:r}),e1});{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new eQ(e));return eX(t,{code:eK.invalid_union,unionErrors:i}),e1}}get options(){return this._def.options}}tC.create=(e,t)=>new tC({options:e,typeName:d.ZodUnion,...e6(t)});let tO=e=>{if(e instanceof tz)return tO(e.schema);if(e instanceof tH)return tO(e.innerType());if(e instanceof tB)return[e.value];if(e instanceof tV)return e.options;if(e instanceof tq)return l.objectValues(e.enum);else if(e instanceof tW)return tO(e._def.innerType);else if(e instanceof tk)return[void 0];else if(e instanceof tE)return[null];else if(e instanceof t$)return[void 0,...tO(e.unwrap())];else if(e instanceof tG)return[null,...tO(e.unwrap())];else if(e instanceof tJ)return tO(e.unwrap());else if(e instanceof tX)return tO(e.unwrap());else if(e instanceof tK)return tO(e._def.innerType);else return[]};class tP extends e7{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==eG.object)return eX(t,{code:eK.invalid_type,expected:eG.object,received:t.parsedType}),e1;let r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(eX(t,{code:eK.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),e1)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=tO(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new tP({typeName:d.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...e6(r)})}}class tD extends e7{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if("aborted"===e.status||"aborted"===n.status)return e1;let i=function e(t,r){let n=eW(t),i=eW(r);if(t===r)return{valid:!0,data:t};if(n===eG.object&&i===eG.object){let n=l.objectKeys(r),i=l.objectKeys(t).filter(e=>-1!==n.indexOf(e)),a={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1};a[n]=i.data}return{valid:!0,data:a}}if(n===eG.array&&i===eG.array){if(t.length!==r.length)return{valid:!1};let n=[];for(let i=0;i<t.length;i++){let a=e(t[i],r[i]);if(!a.valid)return{valid:!1};n.push(a.data)}return{valid:!0,data:n}}if(n===eG.date&&i===eG.date&&+t==+r)return{valid:!0,data:t};return{valid:!1}}(e.value,n.value);return i.valid?(("dirty"===e.status||"dirty"===n.status)&&t.dirty(),{status:t.value,value:i.data}):(eX(r,{code:eK.invalid_intersection_types}),e1)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}tD.create=(e,t,r)=>new tD({left:e,right:t,typeName:d.ZodIntersection,...e6(r)});class tM extends e7{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==eG.array)return eX(r,{code:eK.invalid_type,expected:eG.array,received:r.parsedType}),e1;if(r.data.length<this._def.items.length)return eX(r,{code:eK.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),e1;!this._def.rest&&r.data.length>this._def.items.length&&(eX(r,{code:eK.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new e4(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>e0.mergeArray(t,e)):e0.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new tM({...this._def,rest:e})}}tM.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new tM({items:e,typeName:d.ZodTuple,rest:null,...e6(t)})};class tL extends e7{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==eG.object)return eX(r,{code:eK.invalid_type,expected:eG.object,received:r.parsedType}),e1;let n=[],i=this._def.keyType,a=this._def.valueType;for(let e in r.data)n.push({key:i._parse(new e4(r,e,r.path,e)),value:a._parse(new e4(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?e0.mergeObjectAsync(t,n):e0.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new tL(t instanceof e7?{keyType:e,valueType:t,typeName:d.ZodRecord,...e6(r)}:{keyType:tg.create(),valueType:e,typeName:d.ZodRecord,...e6(t)})}}class tR extends e7{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==eG.map)return eX(r,{code:eK.invalid_type,expected:eG.map,received:r.parsedType}),e1;let n=this._def.keyType,i=this._def.valueType,a=[...r.data.entries()].map(([e,t],a)=>({key:n._parse(new e4(r,e,r.path,[a,"key"])),value:i._parse(new e4(r,t,r.path,[a,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of a){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return e1;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of a){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return e1;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}tR.create=(e,t,r)=>new tR({valueType:t,keyType:e,typeName:d.ZodMap,...e6(r)});class tF extends e7{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==eG.set)return eX(r,{code:eK.invalid_type,expected:eG.set,received:r.parsedType}),e1;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(eX(r,{code:eK.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(eX(r,{code:eK.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let r=new Set;for(let n of e){if("aborted"===n.status)return e1;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let s=[...r.data.values()].map((e,t)=>i._parse(new e4(r,e,r.path,t)));return r.common.async?Promise.all(s).then(e=>a(e)):a(s)}min(e,t){return new tF({...this._def,minSize:{value:e,message:c.toString(t)}})}max(e,t){return new tF({...this._def,maxSize:{value:e,message:c.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}tF.create=(e,t)=>new tF({valueType:e,minSize:null,maxSize:null,typeName:d.ZodSet,...e6(t)});class tj extends e7{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==eG.function)return eX(t,{code:eK.invalid_type,expected:eG.function,received:t.parsedType}),e1;function r(e,r){return eY({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,eJ,eJ].filter(e=>!!e),issueData:{code:eK.invalid_arguments,argumentsError:r}})}function n(e,r){return eY({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,eJ,eJ].filter(e=>!!e),issueData:{code:eK.invalid_return_type,returnTypeError:r}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof tZ){let e=this;return e5(async function(...t){let s=new eQ([]),o=await e._def.args.parseAsync(t,i).catch(e=>{throw s.addIssue(r(t,e)),s}),l=await Reflect.apply(a,this,o);return await e._def.returns._def.type.parseAsync(l,i).catch(e=>{throw s.addIssue(n(l,e)),s})})}{let e=this;return e5(function(...t){let s=e._def.args.safeParse(t,i);if(!s.success)throw new eQ([r(t,s.error)]);let o=Reflect.apply(a,this,s.data),l=e._def.returns.safeParse(o,i);if(!l.success)throw new eQ([n(o,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new tj({...this._def,args:tM.create(e).rest(tS.create())})}returns(e){return new tj({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new tj({args:e||tM.create([]).rest(tS.create()),returns:t||tS.create(),typeName:d.ZodFunction,...e6(r)})}}class tz extends e7{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}tz.create=(e,t)=>new tz({getter:e,typeName:d.ZodLazy,...e6(t)});class tB extends e7{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return eX(t,{received:t.data,code:eK.invalid_literal,expected:this._def.value}),e1}return{status:"valid",value:e.data}}get value(){return this._def.value}}function tU(e,t){return new tV({values:e,typeName:d.ZodEnum,...e6(t)})}tB.create=(e,t)=>new tB({value:e,typeName:d.ZodLiteral,...e6(t)});class tV extends e7{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return eX(t,{expected:l.joinValues(r),received:t.parsedType,code:eK.invalid_type}),e1}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return eX(t,{received:t.data,code:eK.invalid_enum_value,options:r}),e1}return e5(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return tV.create(e,{...this._def,...t})}exclude(e,t=this._def){return tV.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}tV.create=tU;class tq extends e7{_parse(e){let t=l.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==eG.string&&r.parsedType!==eG.number){let e=l.objectValues(t);return eX(r,{expected:l.joinValues(e),received:r.parsedType,code:eK.invalid_type}),e1}if(this._cache||(this._cache=new Set(l.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=l.objectValues(t);return eX(r,{received:r.data,code:eK.invalid_enum_value,options:e}),e1}return e5(e.data)}get enum(){return this._def.values}}tq.create=(e,t)=>new tq({values:e,typeName:d.ZodNativeEnum,...e6(t)});class tZ extends e7{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==eG.promise&&!1===t.common.async?(eX(t,{code:eK.invalid_type,expected:eG.promise,received:t.parsedType}),e1):e5((t.parsedType===eG.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}tZ.create=(e,t)=>new tZ({type:e,typeName:d.ZodPromise,...e6(t)});class tH extends e7{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===d.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{eX(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return e1;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?e1:"dirty"===n.status||"dirty"===t.value?e2(n.value):n});{if("aborted"===t.value)return e1;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?e1:"dirty"===n.status||"dirty"===t.value?e2(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?e1:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?e1:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>"valid"!==e.status?e1:Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})));else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if("valid"!==e.status)return e1;let a=n.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}l.assertNever(n)}}tH.create=(e,t,r)=>new tH({schema:e,typeName:d.ZodEffects,effect:t,...e6(r)}),tH.createWithPreprocess=(e,t,r)=>new tH({schema:t,effect:{type:"preprocess",transform:e},typeName:d.ZodEffects,...e6(r)});class t$ extends e7{_parse(e){return this._getType(e)===eG.undefined?e5(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}t$.create=(e,t)=>new t$({innerType:e,typeName:d.ZodOptional,...e6(t)});class tG extends e7{_parse(e){return this._getType(e)===eG.null?e5(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}tG.create=(e,t)=>new tG({innerType:e,typeName:d.ZodNullable,...e6(t)});class tW extends e7{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===eG.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}tW.create=(e,t)=>new tW({innerType:e,typeName:d.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...e6(t)});class tK extends e7{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return e3(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new eQ(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new eQ(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}tK.create=(e,t)=>new tK({innerType:e,typeName:d.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...e6(t)});class tQ extends e7{_parse(e){if(this._getType(e)!==eG.nan){let t=this._getOrReturnCtx(e);return eX(t,{code:eK.invalid_type,expected:eG.nan,received:t.parsedType}),e1}return{status:"valid",value:e.data}}}tQ.create=e=>new tQ({typeName:d.ZodNaN,...e6(e)}),Symbol("zod_brand");class tJ extends e7{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class tY extends e7{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?e1:"dirty"===e.status?(t.dirty(),e2(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?e1:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new tY({in:e,out:t,typeName:d.ZodPipeline})}}class tX extends e7{_parse(e){let t=this._def.innerType._parse(e),r=e=>("valid"===e.status&&(e.value=Object.freeze(e.value)),e);return e3(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}tX.create=(e,t)=>new tX({innerType:e,typeName:d.ZodReadonly,...e6(t)}),tN.lazycreate,function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(d||(d={})),tg.create,t_.create,tQ.create,ty.create,tv.create,tb.create,tw.create,tk.create,tE.create,tx.create,tS.create,tT.create,tA.create,tI.create,tN.create,tN.strictCreate,tC.create,tP.create,tD.create,tM.create,tL.create,tR.create,tF.create,tj.create,tz.create,tB.create,tV.create,tq.create,tZ.create,tH.create,t$.create,tG.create,tH.createWithPreprocess,tY.create,r(99742);var t0=({prefix:e,size:t=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:n="-"}={})=>{let i=()=>{let e=r.length,n=Array(t);for(let i=0;i<t;i++)n[i]=r[Math.random()*e|0];return n.join("")};if(null==e)return i;if(r.includes(n))throw new P({argument:"separator",message:`The separator "${n}" must not be part of the alphabet "${r}".`});return()=>`${e}${n}${i()}`},t1=t0(),t2=/"__proto__"\s*:/,t5=/"constructor"\s*:/,t3=Symbol.for("vercel.ai.validator");async function t4({value:e,schema:t}){let r=await t9({value:e,schema:t});if(!r.success)throw B.wrap({value:e,cause:r.error});return r.value}async function t9({value:e,schema:t}){var r;let n="object"==typeof t&&null!==t&&t3 in t&&!0===t[t3]&&"validate"in t?t:(r=t,{[t3]:!0,validate:async e=>{let t=await r["~standard"].validate(e);return null==t.issues?{success:!0,value:t.value}:{success:!1,error:new B({value:e,cause:t.issues})}}});try{if(null==n.validate)return{success:!0,value:e,rawValue:e};let t=await n.validate(e);if(t.success)return{success:!0,value:t.value,rawValue:e};return{success:!1,error:B.wrap({value:e,cause:t.error}),rawValue:e}}catch(t){return{success:!1,error:B.wrap({value:e,cause:t}),rawValue:e}}}async function t6({text:e,schema:t}){try{let r=function(e){let{stackTraceLimit:t}=Error;Error.stackTraceLimit=0;try{let t=JSON.parse(e);return null===t||"object"!=typeof t||!1===t2.test(e)&&!1===t5.test(e)?t:function(e){let t=[e];for(;t.length;){let e=t;for(let r of(t=[],e)){if(Object.prototype.hasOwnProperty.call(r,"__proto__")||Object.prototype.hasOwnProperty.call(r,"constructor")&&Object.prototype.hasOwnProperty.call(r.constructor,"prototype"))throw SyntaxError("Object contains forbidden prototype property");for(let e in r){let n=r[e];n&&"object"==typeof n&&t.push(n)}}}return e}(t)}finally{Error.stackTraceLimit=t}}(e);if(null==t)return{success:!0,value:r,rawValue:r};return await t9({value:r,schema:t})}catch(t){return{success:!1,error:R.isInstance(t)?t:new R({text:e,cause:t}),rawValue:void 0}}}async function t7(e){return"function"==typeof e&&(e=e()),Promise.resolve(e)}var t8=Symbol("Let zodToJsonSchema decide on which parser to use"),re={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"};function rt(e,t){return rh(e.type._def,t)}var rr=void 0,rn={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(void 0===rr&&(rr=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),rr),ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function ri(e,t){let r={type:"string"};if(e.checks)for(let n of e.checks)switch(n.kind){case"min":r.minLength="number"==typeof r.minLength?Math.max(r.minLength,n.value):n.value;break;case"max":r.maxLength="number"==typeof r.maxLength?Math.min(r.maxLength,n.value):n.value;break;case"email":switch(t.emailStrategy){case"format:email":ro(r,"email",n.message,t);break;case"format:idn-email":ro(r,"idn-email",n.message,t);break;case"pattern:zod":rl(r,rn.email,n.message,t)}break;case"url":ro(r,"uri",n.message,t);break;case"uuid":ro(r,"uuid",n.message,t);break;case"regex":rl(r,n.regex,n.message,t);break;case"cuid":rl(r,rn.cuid,n.message,t);break;case"cuid2":rl(r,rn.cuid2,n.message,t);break;case"startsWith":rl(r,RegExp(`^${ra(n.value,t)}`),n.message,t);break;case"endsWith":rl(r,RegExp(`${ra(n.value,t)}$`),n.message,t);break;case"datetime":ro(r,"date-time",n.message,t);break;case"date":ro(r,"date",n.message,t);break;case"time":ro(r,"time",n.message,t);break;case"duration":ro(r,"duration",n.message,t);break;case"length":r.minLength="number"==typeof r.minLength?Math.max(r.minLength,n.value):n.value,r.maxLength="number"==typeof r.maxLength?Math.min(r.maxLength,n.value):n.value;break;case"includes":rl(r,RegExp(ra(n.value,t)),n.message,t);break;case"ip":"v6"!==n.version&&ro(r,"ipv4",n.message,t),"v4"!==n.version&&ro(r,"ipv6",n.message,t);break;case"base64url":rl(r,rn.base64url,n.message,t);break;case"jwt":rl(r,rn.jwt,n.message,t);break;case"cidr":"v6"!==n.version&&rl(r,rn.ipv4Cidr,n.message,t),"v4"!==n.version&&rl(r,rn.ipv6Cidr,n.message,t);break;case"emoji":rl(r,rn.emoji(),n.message,t);break;case"ulid":rl(r,rn.ulid,n.message,t);break;case"base64":switch(t.base64Strategy){case"format:binary":ro(r,"binary",n.message,t);break;case"contentEncoding:base64":r.contentEncoding="base64";break;case"pattern:zod":rl(r,rn.base64,n.message,t)}break;case"nanoid":rl(r,rn.nanoid,n.message,t)}return r}function ra(e,t){return"escape"===t.patternStrategy?function(e){let t="";for(let r=0;r<e.length;r++)rs.has(e[r])||(t+="\\"),t+=e[r];return t}(e):e}var rs=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function ro(e,t,r,n){var i;e.format||(null==(i=e.anyOf)?void 0:i.some(e=>e.format))?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...r&&n.errorMessages&&{errorMessage:{format:r}}})):e.format=t}function rl(e,t,r,n){var i;e.pattern||(null==(i=e.allOf)?void 0:i.some(e=>e.pattern))?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:ru(t,n),...r&&n.errorMessages&&{errorMessage:{pattern:r}}})):e.pattern=ru(t,n)}function ru(e,t){var r;if(!t.applyRegexFlags||!e.flags)return e.source;let n={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},i=n.i?e.source.toLowerCase():e.source,a="",s=!1,o=!1,l=!1;for(let e=0;e<i.length;e++){if(s){a+=i[e],s=!1;continue}if(n.i){if(o){if(i[e].match(/[a-z]/)){l?(a+=i[e],a+=`${i[e-2]}-${i[e]}`.toUpperCase(),l=!1):"-"===i[e+1]&&(null==(r=i[e+2])?void 0:r.match(/[a-z]/))?(a+=i[e],l=!0):a+=`${i[e]}${i[e].toUpperCase()}`;continue}}else if(i[e].match(/[a-z]/)){a+=`[${i[e]}${i[e].toUpperCase()}]`;continue}}if(n.m){if("^"===i[e]){a+=`(^|(?<=[\r
|
|
10
|
-
]))`;continue}else if("$"===i[e]){a+=`($|(?=[\r
|
|
11
|
-
]))`;continue}}if(n.s&&"."===i[e]){a+=o?`${i[e]}\r
|
|
12
|
-
`:`[${i[e]}\r
|
|
13
|
-
]`;continue}a+=i[e],"\\"===i[e]?s=!0:o&&"]"===i[e]?o=!1:o||"["!==i[e]||(o=!0)}try{new RegExp(a)}catch(r){return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return a}function rc(e,t){var r,n,i,a,s,o;let l={type:"object",additionalProperties:null!=(r=rh(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))?r:t.allowedAdditionalProperties};if((null==(n=e.keyType)?void 0:n._def.typeName)===d.ZodString&&(null==(i=e.keyType._def.checks)?void 0:i.length)){let{type:r,...n}=ri(e.keyType._def,t);return{...l,propertyNames:n}}if((null==(a=e.keyType)?void 0:a._def.typeName)===d.ZodEnum)return{...l,propertyNames:{enum:e.keyType._def.values}};if((null==(s=e.keyType)?void 0:s._def.typeName)===d.ZodBranded&&e.keyType._def.type._def.typeName===d.ZodString&&(null==(o=e.keyType._def.type._def.checks)?void 0:o.length)){let{type:r,...n}=rt(e.keyType._def,t);return{...l,propertyNames:n}}return l}var rd={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function rh(e,t,r=!1){var n;let i=t.seen.get(e);if(t.override){let a=null==(n=t.override)?void 0:n.call(t,e,t,i,r);if(a!==t8)return a}if(i&&!r){let e=rf(i,t);if(void 0!==e)return e}let a={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,a);let s=((e,t,r)=>{switch(t){case d.ZodString:return ri(e,r);case d.ZodNumber:var n,i,a,s,o,l,u=e;let c={type:"number"};if(!u.checks)return c;for(let e of u.checks)switch(e.kind){case"int":c.type="integer";break;case"min":e.inclusive?c.minimum=e.value:c.exclusiveMinimum=e.value;break;case"max":e.inclusive?c.maximum=e.value:c.exclusiveMaximum=e.value;break;case"multipleOf":c.multipleOf=e.value}return c;case d.ZodObject:return function(e,t){let r={type:"object",properties:{}},n=[],i=e.shape();for(let e in i){let a=i[e];if(void 0===a||void 0===a._def)continue;let s=function(e){try{return e.isOptional()}catch(e){return!0}}(a),o=rh(a._def,{...t,currentPath:[...t.currentPath,"properties",e],propertyPath:[...t.currentPath,"properties",e]});void 0!==o&&(r.properties[e]=o,s||n.push(e))}n.length&&(r.required=n);let a=function(e,t){if("ZodNever"!==e.catchall._def.typeName)return rh(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return"strict"===t.removeAdditionalStrategy?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}(e,t);return void 0!==a&&(r.additionalProperties=a),r}(e,r);case d.ZodBigInt:var h=e;let f={type:"integer",format:"int64"};if(!h.checks)return f;for(let e of h.checks)switch(e.kind){case"min":e.inclusive?f.minimum=e.value:f.exclusiveMinimum=e.value;break;case"max":e.inclusive?f.maximum=e.value:f.exclusiveMaximum=e.value;break;case"multipleOf":f.multipleOf=e.value}return f;case d.ZodBoolean:return{type:"boolean"};case d.ZodDate:return function e(t,r,n){let i=null!=n?n:r.dateStrategy;if(Array.isArray(i))return{anyOf:i.map((n,i)=>e(t,r,n))};switch(i){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":var a=t;let s={type:"integer",format:"unix-time"};for(let e of a.checks)switch(e.kind){case"min":s.minimum=e.value;break;case"max":s.maximum=e.value}return s}}(e,r);case d.ZodUndefined:return{not:{}};case d.ZodNull:return{type:"null"};case d.ZodArray:var p,m,g,_=e,y=r;let v={type:"array"};return(null==(p=_.type)?void 0:p._def)&&(null==(g=null==(m=_.type)?void 0:m._def)?void 0:g.typeName)!==d.ZodAny&&(v.items=rh(_.type._def,{...y,currentPath:[...y.currentPath,"items"]})),_.minLength&&(v.minItems=_.minLength.value),_.maxLength&&(v.maxItems=_.maxLength.value),_.exactLength&&(v.minItems=_.exactLength.value,v.maxItems=_.exactLength.value),v;case d.ZodUnion:case d.ZodDiscriminatedUnion:return function(e,t){let r=e.options instanceof Map?Array.from(e.options.values()):e.options;if(r.every(e=>e._def.typeName in rd&&(!e._def.checks||!e._def.checks.length))){let e=r.reduce((e,t)=>{let r=rd[t._def.typeName];return r&&!e.includes(r)?[...e,r]:e},[]);return{type:e.length>1?e:e[0]}}if(r.every(e=>"ZodLiteral"===e._def.typeName&&!e.description)){let e=r.reduce((e,t)=>{let r=typeof t._def.value;switch(r){case"string":case"number":case"boolean":return[...e,r];case"bigint":return[...e,"integer"];case"object":if(null===t._def.value)return[...e,"null"];default:return e}},[]);if(e.length===r.length){let t=e.filter((e,t,r)=>r.indexOf(e)===t);return{type:t.length>1?t:t[0],enum:r.reduce((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value],[])}}}else if(r.every(e=>"ZodEnum"===e._def.typeName))return{type:"string",enum:r.reduce((e,t)=>[...e,...t._def.values.filter(t=>!e.includes(t))],[])};var n=e,i=t;let a=(n.options instanceof Map?Array.from(n.options.values()):n.options).map((e,t)=>rh(e._def,{...i,currentPath:[...i.currentPath,"anyOf",`${t}`]})).filter(e=>!!e&&(!i.strictUnions||"object"==typeof e&&Object.keys(e).length>0));return a.length?{anyOf:a}:void 0}(e,r);case d.ZodIntersection:var b=e,w=r;let k=[rh(b.left._def,{...w,currentPath:[...w.currentPath,"allOf","0"]}),rh(b.right._def,{...w,currentPath:[...w.currentPath,"allOf","1"]})].filter(e=>!!e),E=[];return k.forEach(e=>{if((!("type"in e)||"string"!==e.type)&&"allOf"in e)E.push(...e.allOf);else{let t=e;if("additionalProperties"in e&&!1===e.additionalProperties){let{additionalProperties:r,...n}=e;t=n}E.push(t)}}),E.length?{allOf:E}:void 0;case d.ZodTuple:return D=e,M=r,D.rest?{type:"array",minItems:D.items.length,items:D.items.map((e,t)=>rh(e._def,{...M,currentPath:[...M.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[]),additionalItems:rh(D.rest._def,{...M,currentPath:[...M.currentPath,"additionalItems"]})}:{type:"array",minItems:D.items.length,maxItems:D.items.length,items:D.items.map((e,t)=>rh(e._def,{...M,currentPath:[...M.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[])};case d.ZodRecord:return rc(e,r);case d.ZodLiteral:var x=e;let S=typeof x.value;return"bigint"!==S&&"number"!==S&&"boolean"!==S&&"string"!==S?{type:Array.isArray(x.value)?"array":"object"}:{type:"bigint"===S?"integer":S,const:x.value};case d.ZodEnum:return{type:"string",enum:Array.from(e.values)};case d.ZodNativeEnum:var T=e;let A=T.values,I=Object.keys(T.values).filter(e=>"number"!=typeof A[A[e]]).map(e=>A[e]),N=Array.from(new Set(I.map(e=>typeof e)));return{type:1===N.length?"string"===N[0]?"string":"number":["string","number"],enum:I};case d.ZodNullable:var C=e,O=r;if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(C.innerType._def.typeName)&&(!C.innerType._def.checks||!C.innerType._def.checks.length))return{type:[rd[C.innerType._def.typeName],"null"]};let P=rh(C.innerType._def,{...O,currentPath:[...O.currentPath,"anyOf","0"]});return P&&{anyOf:[P,{type:"null"}]};case d.ZodOptional:var D,M,L,R=e,F=r;if(F.currentPath.toString()===(null==(L=F.propertyPath)?void 0:L.toString()))return rh(R.innerType._def,F);let j=rh(R.innerType._def,{...F,currentPath:[...F.currentPath,"anyOf","1"]});return j?{anyOf:[{not:{}},j]}:{};case d.ZodMap:return n=e,"record"===(i=r).mapStrategy?rc(n,i):{type:"array",maxItems:125,items:{type:"array",items:[rh(n.keyType._def,{...i,currentPath:[...i.currentPath,"items","items","0"]})||{},rh(n.valueType._def,{...i,currentPath:[...i.currentPath,"items","items","1"]})||{}],minItems:2,maxItems:2}};case d.ZodSet:var z=e,B=r;let U={type:"array",uniqueItems:!0,items:rh(z.valueType._def,{...B,currentPath:[...B.currentPath,"items"]})};return z.minSize&&(U.minItems=z.minSize.value),z.maxSize&&(U.maxItems=z.maxSize.value),U;case d.ZodLazy:return()=>e.getter()._def;case d.ZodPromise:return rh(e.type._def,r);case d.ZodNaN:case d.ZodNever:return{not:{}};case d.ZodEffects:return a=e,"input"===(s=r).effectStrategy?rh(a.schema._def,s):{};case d.ZodAny:case d.ZodUnknown:return{};case d.ZodDefault:return o=e,l=r,{...rh(o.innerType._def,l),default:o.defaultValue()};case d.ZodBranded:return rt(e,r);case d.ZodReadonly:case d.ZodCatch:return rh(e.innerType._def,r);case d.ZodPipeline:var V=e,q=r;if("input"===q.pipeStrategy)return rh(V.in._def,q);if("output"===q.pipeStrategy)return rh(V.out._def,q);let Z=rh(V.in._def,{...q,currentPath:[...q.currentPath,"allOf","0"]}),H=rh(V.out._def,{...q,currentPath:[...q.currentPath,"allOf",Z?"1":"0"]});return{allOf:[Z,H].filter(e=>void 0!==e)};case d.ZodFunction:case d.ZodVoid:case d.ZodSymbol:default:return}})(e,e.typeName,t),o="function"==typeof s?rh(s(),t):s;if(o&&rp(e,t,o),t.postProcess){let r=t.postProcess(o,e,t);return a.jsonSchema=o,r}return a.jsonSchema=o,o}var rf=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:((e,t)=>{let r=0;for(;r<e.length&&r<t.length&&e[r]===t[r];r++);return[(e.length-r).toString(),...t.slice(r)].join("/")})(t.currentPath,e.path)};case"none":case"seen":if(e.path.length<t.currentPath.length&&e.path.every((e,r)=>t.currentPath[r]===e))return console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),{};return"seen"===t.$refStrategy?{}:void 0}},rp=(e,t,r)=>(e.description&&(r.description=e.description),r),rm=Symbol.for("vercel.ai.schema");function rg(e,{validate:t}={}){return{[rm]:!0,_type:void 0,[t3]:!0,jsonSchema:e,validate:t}}var{btoa:r_,atob:ry}=globalThis;let rv=/^[cC][^\s-]{8,}$/,rb=/^[0-9a-z]+$/,rw=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,rk=/^[0-9a-vA-V]{20}$/,rE=/^[A-Za-z0-9]{27}$/,rx=/^[a-zA-Z0-9_-]{21}$/,rS=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,rT=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,rA=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,rI=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,rN=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,rC=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,rO=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,rP=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,rD=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,rM=/^[A-Za-z0-9_-]*$/,rL=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,rR=/^\+(?:[0-9]){6,14}[0-9]$/,rF="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",rj=RegExp(`^${rF}$`);function rz(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}let rB=/^\d+$/,rU=/^-?\d+(?:\.\d+)?/i,rV=/true|false/i,rq=/null/i,rZ=/^[^A-Z]*$/,rH=/^[^a-z]*$/,r$=ev("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),rG={number:"number",bigint:"bigint",object:"date"},rW=ev("$ZodCheckLessThan",(e,t)=>{r$.init(e,t);let r=rG[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,n=(t.inclusive?r.maximum:r.exclusiveMaximum)??1/0;t.value<n&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),rK=ev("$ZodCheckGreaterThan",(e,t)=>{r$.init(e,t);let r=rG[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,n=(t.inclusive?r.minimum:r.exclusiveMinimum)??-1/0;t.value>n&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),rQ=ev("$ZodCheckMultipleOf",(e,t)=>{r$.init(e,t),e._zod.onattach.push(e=>{var r;(r=e._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof r.value?r.value%t.value===BigInt(0):0===function(e,t){let r=(e.toString().split(".")[1]||"").length,n=t.toString(),i=(n.split(".")[1]||"").length;if(0===i&&/\d?e-\d?/.test(n)){let e=n.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let a=r>i?r:i;return Number.parseInt(e.toFixed(a).replace(".",""))%Number.parseInt(t.toFixed(a).replace(".",""))/10**a}(r.value,t.value))||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),rJ=ev("$ZodCheckNumberFormat",(e,t)=>{r$.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[i,a]=ed[t.format];e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,n.minimum=i,n.maximum=a,r&&(n.pattern=rB)}),e._zod.check=s=>{let o=s.value;if(r){if(!Number.isInteger(o))return void s.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:o,inst:e});if(!Number.isSafeInteger(o))return void(o>0?s.issues.push({input:o,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort}):s.issues.push({input:o,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort}))}o<i&&s.issues.push({origin:"number",input:o,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),o>a&&s.issues.push({origin:"number",input:o,code:"too_big",maximum:a,inst:e})}}),rY=ev("$ZodCheckMaxLength",(e,t)=>{var r;r$.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return null!=t&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.maximum??1/0;t.maximum<r&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let n=r.value;if(n.length<=t.maximum)return;let i=eg(n);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),rX=ev("$ZodCheckMinLength",(e,t)=>{var r;r$.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return null!=t&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.minimum??-1/0;t.minimum>r&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let n=r.value;if(n.length>=t.minimum)return;let i=eg(n);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),r0=ev("$ZodCheckLengthEquals",(e,t)=>{var r;r$.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return null!=t&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=r=>{let n=r.value,i=n.length;if(i===t.length)return;let a=eg(n),s=i>t.length;r.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),r1=ev("$ZodCheckStringFormat",(e,t)=>{var r,n;r$.init(e,t),e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),r2=ev("$ZodCheckRegex",(e,t)=>{r1.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),r5=ev("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=rZ),r1.init(e,t)}),r3=ev("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=rH),r1.init(e,t)}),r4=ev("$ZodCheckIncludes",(e,t)=>{r$.init(e,t);let r=el(t.includes),n=new RegExp("number"==typeof t.position?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),r9=ev("$ZodCheckStartsWith",(e,t)=>{r$.init(e,t);let r=RegExp(`^${el(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),r6=ev("$ZodCheckEndsWith",(e,t)=>{r$.init(e,t);let r=RegExp(`.*${el(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),r7=ev("$ZodCheckOverwrite",(e,t)=>{r$.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class r8{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),r=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(r)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}let ne={major:4,minor:1,patch:5},nt=ev("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ne;let n=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&n.unshift(e),n))for(let r of t._zod.onattach)r(e);if(0===n.length)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,r)=>{let n,i=eh(e);for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(i)continue;let t=e.issues.length,s=a._zod.check(e);if(s instanceof Promise&&r?.async===!1)throw new eb;if(n||s instanceof Promise)n=(n??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(i||(i=eh(e,t)))});else{if(e.issues.length===t)continue;i||(i=eh(e,t))}}return n?n.then(()=>e):e},r=(r,i,a)=>{if(eh(r))return r.aborted=!0,r;let s=t(i,n,a);if(s instanceof Promise){if(!1===a.async)throw new eb;return s.then(t=>e._zod.parse(t,a))}return e._zod.parse(s,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if("backward"===a.direction){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>r(e,i,a)):r(t,i,a)}let s=e._zod.parse(i,a);if(s instanceof Promise){if(!1===a.async)throw new eb;return s.then(e=>t(e,n,a))}return t(s,n,a)}}e["~standard"]={validate:t=>{try{let r=eC(e,t);return r.success?{value:r.data}:{issues:r.error?.issues}}catch(r){return eP(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}}),nr=ev("$ZodString",(e,t)=>{nt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)})(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch(e){}return"string"==typeof r.value||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),nn=ev("$ZodStringFormat",(e,t)=>{r1.init(e,t),nr.init(e,t)}),ni=ev("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=rT),nn.init(e,t)}),na=ev("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=rA(e))}else t.pattern??(t.pattern=rA());nn.init(e,t)}),ns=ev("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=rI),nn.init(e,t)}),no=ev("$ZodURL",(e,t)=>{nn.init(e,t),e._zod.check=r=>{try{let n=r.value.trim(),i=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:rL.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=i.href:r.value=n;return}catch(n){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),nl=ev("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),nn.init(e,t)}),nu=ev("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=rx),nn.init(e,t)}),nc=ev("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=rv),nn.init(e,t)}),nd=ev("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=rb),nn.init(e,t)}),nh=ev("$ZodULID",(e,t)=>{t.pattern??(t.pattern=rw),nn.init(e,t)}),nf=ev("$ZodXID",(e,t)=>{t.pattern??(t.pattern=rk),nn.init(e,t)}),np=ev("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=rE),nn.init(e,t)}),nm=ev("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=function(e){let t=rz({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${t}(?:${r.join("|")})`;return RegExp(`^${rF}T(?:${n})$`)}(t)),nn.init(e,t)}),ng=ev("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=rj),nn.init(e,t)}),n_=ev("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=RegExp(`^${rz(t)}$`)),nn.init(e,t)}),ny=ev("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=rS),nn.init(e,t)}),nv=ev("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=rN),nn.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.format="ipv4"})}),nb=ev("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=rC),nn.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.format="ipv6"}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),nw=ev("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=rO),nn.init(e,t)}),nk=ev("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=rP),nn.init(e,t),e._zod.check=r=>{let[n,i]=r.value.split("/");try{if(!i)throw Error();let e=Number(i);if(`${e}`!==i||e<0||e>128)throw Error();new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function nE(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let nx=ev("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=rD),nn.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding="base64"}),e._zod.check=r=>{nE(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}}),nS=ev("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=rM),nn.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding="base64url"}),e._zod.check=r=>{!function(e){if(!rM.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return nE(t.padEnd(4*Math.ceil(t.length/4),"="))}(r.value)&&r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),nT=ev("$ZodE164",(e,t)=>{t.pattern??(t.pattern=rR),nn.init(e,t)}),nA=ev("$ZodJWT",(e,t)=>{nn.init(e,t),e._zod.check=r=>{!function(e,t=null){try{let r=e.split(".");if(3!==r.length)return!1;let[n]=r;if(!n)return!1;let i=JSON.parse(atob(n));if("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))return!1;return!0}catch{return!1}}(r.value,t.alg)&&r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),nI=ev("$ZodNumber",(e,t)=>{nt.init(e,t),e._zod.pattern=e._zod.bag.pattern??rU,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch(e){}let i=r.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return r;let a="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...a?{received:a}:{}}),r}}),nN=ev("$ZodNumber",(e,t)=>{rJ.init(e,t),nI.init(e,t)}),nC=ev("$ZodBoolean",(e,t)=>{nt.init(e,t),e._zod.pattern=rV,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch(e){}let i=r.value;return"boolean"==typeof i||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}}),nO=ev("$ZodNull",(e,t)=>{nt.init(e,t),e._zod.pattern=rq,e._zod.values=new Set([null]),e._zod.parse=(t,r)=>{let n=t.value;return null===n||t.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),t}}),nP=ev("$ZodUnknown",(e,t)=>{nt.init(e,t),e._zod.parse=e=>e}),nD=ev("$ZodNever",(e,t)=>{nt.init(e,t),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)});function nM(e,t,r){e.issues.length&&t.issues.push(...ef(r,e.issues)),t.value[r]=e.value}let nL=ev("$ZodArray",(e,t)=>{nt.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let s=i[e],o=t.element._zod.run({value:s,issues:[]},n);o instanceof Promise?a.push(o.then(t=>nM(t,r,e))):nM(o,r,e)}return a.length?Promise.all(a).then(()=>r):r}});function nR(e,t,r,n){e.issues.length&&t.issues.push(...ef(r,e.issues)),void 0===e.value?r in n&&(t.value[r]=void 0):t.value[r]=e.value}function nF(e){var t;let r=Object.keys(e.shape);for(let t of r)if(!e.shape[t]._zod.traits.has("$ZodType"))throw Error(`Invalid element at key "${t}": expected a Zod schema`);let n=Object.keys(t=e.shape).filter(e=>"optional"===t[e]._zod.optin&&"optional"===t[e]._zod.optout);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(n)}}function nj(e,t,r,n,i,a){let s=[],o=i.keySet,l=i.catchall._zod,u=l.def.type;for(let i of Object.keys(t)){if(o.has(i))continue;if("never"===u){s.push(i);continue}let a=l.run({value:t[i],issues:[]},n);a instanceof Promise?e.push(a.then(e=>nR(e,r,i,t))):nR(a,r,i,t)}return(s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:a}),e.length)?Promise.all(e).then(()=>r):r}let nz=ev("$ZodObject",(e,t)=>{let r;nt.init(e,t);let n=W(()=>nF(t));J(e._zod,"propValues",()=>{let e=t.shape,r={};for(let t in e){let n=e[t]._zod;if(n.values)for(let e of(r[t]??(r[t]=new Set),n.values))r[t].add(e)}return r});let i=t.catchall;e._zod.parse=(t,a)=>{r??(r=n.value);let s=t.value;if(!en(s))return t.issues.push({expected:"object",code:"invalid_type",input:s,inst:e}),t;t.value={};let o=[],l=r.shape;for(let e of r.keys){let r=l[e]._zod.run({value:s[e],issues:[]},a);r instanceof Promise?o.push(r.then(r=>nR(r,t,e,s))):nR(r,t,e,s)}return i?nj(o,s,t,a,n.value,e):o.length?Promise.all(o).then(()=>t):t}}),nB=ev("$ZodObjectJIT",(e,t)=>{let r,n;nz.init(e,t);let i=e._zod.parse,a=W(()=>nF(t)),s=!ek.jitless,o=s&&ei.value,l=t.catchall;e._zod.parse=(u,c)=>{n??(n=a.value);let d=u.value;return en(d)?s&&o&&c?.async===!1&&!0!==c.jitless?(r||(r=(e=>{let t=new r8(["shape","payload","ctx"]),r=a.value,n=e=>{let t=et(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let i=Object.create(null),s=0;for(let e of r.keys)i[e]=`key_${s++}`;for(let e of(t.write("const newResult = {}"),r.keys)){let r=i[e],a=et(e);t.write(`const ${r} = ${n(e)};`),t.write(`
|
|
14
|
-
if (${r}.issues.length) {
|
|
15
|
-
payload.issues = payload.issues.concat(${r}.issues.map(iss => ({
|
|
16
|
-
...iss,
|
|
17
|
-
path: iss.path ? [${a}, ...iss.path] : [${a}]
|
|
18
|
-
})));
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
if (${r}.value === undefined) {
|
|
22
|
-
if (${a} in input) {
|
|
23
|
-
newResult[${a}] = undefined;
|
|
24
|
-
}
|
|
25
|
-
} else {
|
|
26
|
-
newResult[${a}] = ${r}.value;
|
|
27
|
-
}
|
|
28
|
-
`)}t.write("payload.value = newResult;"),t.write("return payload;");let o=t.compile();return(t,r)=>o(e,t,r)})(t.shape)),u=r(u,c),l)?nj([],d,u,c,n,e):u:i(u,c):(u.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),u)}});function nU(e,t,r,n){for(let r of e)if(0===r.issues.length)return t.value=r.value,t;let i=e.filter(e=>!eh(e));return 1===i.length?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(e=>e.issues.map(e=>em(e,n,eE())))}),t)}let nV=ev("$ZodUnion",(e,t)=>{nt.init(e,t),J(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),J(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),J(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),J(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>K(e.source)).join("|")})$`)}});let r=1===t.options.length,n=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(r)return n(i,a);let s=!1,o=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)o.push(t),s=!0;else{if(0===t.issues.length)return t;o.push(t)}}return s?Promise.all(o).then(t=>nU(t,i,e,a)):nU(o,i,e,a)}}),nq=ev("$ZodDiscriminatedUnion",(e,t)=>{nV.init(e,t);let r=e._zod.parse;J(e._zod,"propValues",()=>{let e={};for(let r of t.options){let n=r._zod.propValues;if(!n||0===Object.keys(n).length)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let[t,r]of Object.entries(n))for(let n of(e[t]||(e[t]=new Set),r))e[t].add(n)}return e});let n=W(()=>{let e=t.options,r=new Map;for(let n of e){let e=n._zod.propValues?.[t.discriminator];if(!e||0===e.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let t of e){if(r.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);r.set(t,n)}}return r});e._zod.parse=(i,a)=>{let s=i.value;if(!en(s))return i.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),i;let o=n.value.get(s?.[t.discriminator]);return o?o._zod.run(i,a):t.unionFallback?r(i,a):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:s,path:[t.discriminator],inst:e}),i)}}),nZ=ev("$ZodIntersection",(e,t)=>{nt.init(e,t),e._zod.parse=(e,r)=>{let n=e.value,i=t.left._zod.run({value:n,issues:[]},r),a=t.right._zod.run({value:n,issues:[]},r);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,r])=>nH(e,t,r)):nH(e,i,a)}});function nH(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),eh(e))return e;let n=function e(t,r){if(t===r||t instanceof Date&&r instanceof Date&&+t==+r)return{valid:!0,data:t};if(ea(t)&&ea(r)){let n=Object.keys(r),i=Object.keys(t).filter(e=>-1!==n.indexOf(e)),a={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};a[n]=i.data}return{valid:!0,data:a}}if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<t.length;i++){let a=e(t[i],r[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}(t.value,r.value);if(!n.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}let n$=ev("$ZodRecord",(e,t)=>{nt.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!ea(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let a=[];if(t.keyType._zod.values){let s,o=t.keyType._zod.values;for(let e of(r.value={},o))if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){let s=t.valueType._zod.run({value:i[e],issues:[]},n);s instanceof Promise?a.push(s.then(t=>{t.issues.length&&r.issues.push(...ef(e,t.issues)),r.value[e]=t.value})):(s.issues.length&&r.issues.push(...ef(e,s.issues)),r.value[e]=s.value)}for(let e in i)o.has(e)||(s=s??[]).push(e);s&&s.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:s})}else for(let s of(r.value={},Reflect.ownKeys(i))){if("__proto__"===s)continue;let o=t.keyType._zod.run({value:s,issues:[]},n);if(o instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(o.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:o.issues.map(e=>em(e,n,eE())),input:s,path:[s],inst:e}),r.value[o.value]=o.value;continue}let l=t.valueType._zod.run({value:i[s],issues:[]},n);l instanceof Promise?a.push(l.then(e=>{e.issues.length&&r.issues.push(...ef(s,e.issues)),r.value[o.value]=e.value})):(l.issues.length&&r.issues.push(...ef(s,l.issues)),r.value[o.value]=l.value)}return a.length?Promise.all(a).then(()=>r):r}}),nG=ev("$ZodEnum",(e,t)=>{nt.init(e,t);let r=$(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=RegExp(`^(${r.filter(e=>eo.has(typeof e)).map(e=>"string"==typeof e?el(e):e.toString()).join("|")})$`),e._zod.parse=(t,i)=>{let a=t.value;return n.has(a)||t.issues.push({code:"invalid_value",values:r,input:a,inst:e}),t}}),nW=ev("$ZodLiteral",(e,t)=>{if(nt.init(e,t),0===t.values.length)throw Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?el(e):e?el(e.toString()):String(e)).join("|")})$`),e._zod.parse=(r,n)=>{let i=r.value;return e._zod.values.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),nK=ev("$ZodTransform",(e,t)=>{nt.init(e,t),e._zod.parse=(r,n)=>{if("backward"===n.direction)throw new ew(e.constructor.name);let i=t.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(r.value=e,r));if(i instanceof Promise)throw new eb;return r.value=i,r}});function nQ(e,t){return e.issues.length&&void 0===t?{issues:[],value:void 0}:e}let nJ=ev("$ZodOptional",(e,t)=>{nt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",J(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),J(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${K(e.source)})?$`):void 0}),e._zod.parse=(e,r)=>{if("optional"===t.innerType._zod.optin){let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(t=>nQ(t,e.value)):nQ(n,e.value)}return void 0===e.value?e:t.innerType._zod.run(e,r)}}),nY=ev("$ZodNullable",(e,t)=>{nt.init(e,t),J(e._zod,"optin",()=>t.innerType._zod.optin),J(e._zod,"optout",()=>t.innerType._zod.optout),J(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${K(e.source)}|null)$`):void 0}),J(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,r)=>null===e.value?e:t.innerType._zod.run(e,r)}),nX=ev("$ZodDefault",(e,t)=>{nt.init(e,t),e._zod.optin="optional",J(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);if(void 0===e.value)return e.value=t.defaultValue,e;let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(e=>n0(e,t)):n0(n,t)}});function n0(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let n1=ev("$ZodPrefault",(e,t)=>{nt.init(e,t),e._zod.optin="optional",J(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>("backward"===r.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,r))}),n2=ev("$ZodNonOptional",(e,t)=>{nt.init(e,t),J(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(r,n)=>{let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(t=>n5(t,e)):n5(i,e)}});function n5(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let n3=ev("$ZodCatch",(e,t)=>{nt.init(e,t),J(e._zod,"optin",()=>t.innerType._zod.optin),J(e._zod,"optout",()=>t.innerType._zod.optout),J(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(n=>(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>em(e,r,eE()))},input:e.value}),e.issues=[]),e)):(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>em(e,r,eE()))},input:e.value}),e.issues=[]),e)}}),n4=ev("$ZodPipe",(e,t)=>{nt.init(e,t),J(e._zod,"values",()=>t.in._zod.values),J(e._zod,"optin",()=>t.in._zod.optin),J(e._zod,"optout",()=>t.out._zod.optout),J(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,r)=>{if("backward"===r.direction){let n=t.out._zod.run(e,r);return n instanceof Promise?n.then(e=>n9(e,t.in,r)):n9(n,t.in,r)}let n=t.in._zod.run(e,r);return n instanceof Promise?n.then(e=>n9(e,t.out,r)):n9(n,t.out,r)}});function n9(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}let n6=ev("$ZodReadonly",(e,t)=>{nt.init(e,t),J(e._zod,"propValues",()=>t.innerType._zod.propValues),J(e._zod,"values",()=>t.innerType._zod.values),J(e._zod,"optin",()=>t.innerType._zod.optin),J(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(n7):n7(n)}});function n7(e){return e.value=Object.freeze(e.value),e}let n8=ev("$ZodLazy",(e,t)=>{nt.init(e,t),J(e._zod,"innerType",()=>t.getter()),J(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),J(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),J(e._zod,"optin",()=>e._zod.innerType._zod.optin??void 0),J(e._zod,"optout",()=>e._zod.innerType._zod.optout??void 0),e._zod.parse=(t,r)=>e._zod.innerType._zod.run(t,r)}),ie=ev("$ZodCustom",(e,t)=>{r$.init(e,t),nt.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=r=>{let n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(t=>it(t,r,n,e));it(i,r,n,e)}});function it(e,t,r,n){if(!e){let e={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(e.params=n._zod.def.params),t.issues.push(e_(e))}}function ir(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ec(t)})}function ii(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ec(t)})}function ia(e,t){return new rW({check:"less_than",...ec(t),value:e,inclusive:!1})}function is(e,t){return new rW({check:"less_than",...ec(t),value:e,inclusive:!0})}function io(e,t){return new rK({check:"greater_than",...ec(t),value:e,inclusive:!1})}function il(e,t){return new rK({check:"greater_than",...ec(t),value:e,inclusive:!0})}function iu(e,t){return new rQ({check:"multiple_of",...ec(t),value:e})}function ic(e,t){return new rY({check:"max_length",...ec(t),maximum:e})}function id(e,t){return new rX({check:"min_length",...ec(t),minimum:e})}function ih(e,t){return new r0({check:"length_equals",...ec(t),length:e})}function ip(e){return new r7({check:"overwrite",tx:e})}let im=ev("ZodISODateTime",(e,t)=>{nm.init(e,t),iE.init(e,t)}),ig=ev("ZodISODate",(e,t)=>{ng.init(e,t),iE.init(e,t)}),i_=ev("ZodISOTime",(e,t)=>{n_.init(e,t),iE.init(e,t)}),iy=ev("ZodISODuration",(e,t)=>{ny.init(e,t),iE.init(e,t)}),iv=ev("ZodType",(e,t)=>(nt.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),e.clone=(t,r)=>eu(e,t,r),e.brand=()=>e,e.register=(t,r)=>(t.add(e,r),e),e.parse=(t,r)=>eL(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>eF(e,t,r),e.parseAsync=async(t,r)=>eR(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>ej(e,t,r),e.spa=e.safeParseAsync,e.encode=(t,r)=>ez(e,t,r),e.decode=(t,r)=>eB(e,t,r),e.encodeAsync=async(t,r)=>eU(e,t,r),e.decodeAsync=async(t,r)=>eV(e,t,r),e.safeEncode=(t,r)=>eq(e,t,r),e.safeDecode=(t,r)=>eZ(e,t,r),e.safeEncodeAsync=async(t,r)=>eH(e,t,r),e.safeDecodeAsync=async(t,r)=>e$(e,t,r),e.refine=(t,r)=>e.check(function(e,t={}){return new av({type:"custom",check:"custom",fn:e,...ec(t)})}(t,r)),e.superRefine=t=>e.check(function(e){let t=function(e,t){let r=new r$({check:"custom",...ec(void 0)});return r._zod.check=e,r}(r=>(r.addIssue=e=>{"string"==typeof e?r.issues.push(e_(e,r.value,t._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=r.value),e.inst??(e.inst=t),e.continue??(e.continue=!t._zod.def.abort),r.issues.push(e_(e)))},e(r.value,r)));return t}(t)),e.overwrite=t=>e.check(ip(t)),e.optional=()=>al(e),e.nullable=()=>ac(e),e.nullish=()=>al(ac(e)),e.nonoptional=t=>new af({type:"nonoptional",innerType:e,...ec(t)}),e.array=()=>i1(e),e.or=t=>i6([e,t]),e.and=t=>new i8({type:"intersection",left:e,right:t}),e.transform=t=>ag(e,new as({type:"transform",transform:t})),e.default=t=>(function(e,t){return new ad({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():es(t)}})})(e,t),e.prefault=t=>(function(e,t){return new ah({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():es(t)}})})(e,t),e.catch=t=>(function(e,t){return new ap({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})})(e,t),e.pipe=t=>ag(e,t),e.readonly=()=>new a_({type:"readonly",innerType:e}),e.describe=t=>{let r=e.clone();return H.add(r,{description:t}),r},Object.defineProperty(e,"description",{get:()=>H.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return H.get(e);let r=e.clone();return H.add(r,t[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),ib=ev("_ZodString",(e,t)=>{nr.init(e,t),iv.init(e,t);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...t)=>e.check(function(e,t){return new r2({check:"string_format",format:"regex",...ec(t),pattern:e})}(...t)),e.includes=(...t)=>e.check(function(e,t){return new r4({check:"string_format",format:"includes",...ec(t),includes:e})}(...t)),e.startsWith=(...t)=>e.check(function(e,t){return new r9({check:"string_format",format:"starts_with",...ec(t),prefix:e})}(...t)),e.endsWith=(...t)=>e.check(function(e,t){return new r6({check:"string_format",format:"ends_with",...ec(t),suffix:e})}(...t)),e.min=(...t)=>e.check(id(...t)),e.max=(...t)=>e.check(ic(...t)),e.length=(...t)=>e.check(ih(...t)),e.nonempty=(...t)=>e.check(id(1,...t)),e.lowercase=t=>e.check(new r5({check:"string_format",format:"lowercase",...ec(t)})),e.uppercase=t=>e.check(new r3({check:"string_format",format:"uppercase",...ec(t)})),e.trim=()=>e.check(ip(e=>e.trim())),e.normalize=(...t)=>e.check(function(e){return ip(t=>t.normalize(e))}(...t)),e.toLowerCase=()=>e.check(ip(e=>e.toLowerCase())),e.toUpperCase=()=>e.check(ip(e=>e.toUpperCase()))}),iw=ev("ZodString",(e,t)=>{nr.init(e,t),ib.init(e,t),e.email=t=>e.check(new ix({type:"string",format:"email",check:"string_format",abort:!1,...ec(t)})),e.url=t=>e.check(new iA({type:"string",format:"url",check:"string_format",abort:!1,...ec(t)})),e.jwt=t=>e.check(new iV({type:"string",format:"jwt",check:"string_format",abort:!1,...ec(t)})),e.emoji=t=>e.check(new iI({type:"string",format:"emoji",check:"string_format",abort:!1,...ec(t)})),e.guid=t=>e.check(ir(iS,t)),e.uuid=t=>e.check(new iT({type:"string",format:"uuid",check:"string_format",abort:!1,...ec(t)})),e.uuidv4=t=>e.check(new iT({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ec(t)})),e.uuidv6=t=>e.check(new iT({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ec(t)})),e.uuidv7=t=>e.check(new iT({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ec(t)})),e.nanoid=t=>e.check(new iN({type:"string",format:"nanoid",check:"string_format",abort:!1,...ec(t)})),e.guid=t=>e.check(ir(iS,t)),e.cuid=t=>e.check(new iC({type:"string",format:"cuid",check:"string_format",abort:!1,...ec(t)})),e.cuid2=t=>e.check(new iO({type:"string",format:"cuid2",check:"string_format",abort:!1,...ec(t)})),e.ulid=t=>e.check(new iP({type:"string",format:"ulid",check:"string_format",abort:!1,...ec(t)})),e.base64=t=>e.check(ii(iz,t)),e.base64url=t=>e.check(new iB({type:"string",format:"base64url",check:"string_format",abort:!1,...ec(t)})),e.xid=t=>e.check(new iD({type:"string",format:"xid",check:"string_format",abort:!1,...ec(t)})),e.ksuid=t=>e.check(new iM({type:"string",format:"ksuid",check:"string_format",abort:!1,...ec(t)})),e.ipv4=t=>e.check(new iL({type:"string",format:"ipv4",check:"string_format",abort:!1,...ec(t)})),e.ipv6=t=>e.check(new iR({type:"string",format:"ipv6",check:"string_format",abort:!1,...ec(t)})),e.cidrv4=t=>e.check(new iF({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ec(t)})),e.cidrv6=t=>e.check(new ij({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ec(t)})),e.e164=t=>e.check(new iU({type:"string",format:"e164",check:"string_format",abort:!1,...ec(t)})),e.datetime=t=>e.check(new im({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ec(t)})),e.date=t=>e.check(new ig({type:"string",format:"date",check:"string_format",...ec(t)})),e.time=t=>e.check(new i_({type:"string",format:"time",check:"string_format",precision:null,...ec(t)})),e.duration=t=>e.check(new iy({type:"string",format:"duration",check:"string_format",...ec(t)}))});function ik(e){return new iw({type:"string",...ec(e)})}let iE=ev("ZodStringFormat",(e,t)=>{nn.init(e,t),ib.init(e,t)}),ix=ev("ZodEmail",(e,t)=>{ns.init(e,t),iE.init(e,t)}),iS=ev("ZodGUID",(e,t)=>{ni.init(e,t),iE.init(e,t)}),iT=ev("ZodUUID",(e,t)=>{na.init(e,t),iE.init(e,t)}),iA=ev("ZodURL",(e,t)=>{no.init(e,t),iE.init(e,t)}),iI=ev("ZodEmoji",(e,t)=>{nl.init(e,t),iE.init(e,t)}),iN=ev("ZodNanoID",(e,t)=>{nu.init(e,t),iE.init(e,t)}),iC=ev("ZodCUID",(e,t)=>{nc.init(e,t),iE.init(e,t)}),iO=ev("ZodCUID2",(e,t)=>{nd.init(e,t),iE.init(e,t)}),iP=ev("ZodULID",(e,t)=>{nh.init(e,t),iE.init(e,t)}),iD=ev("ZodXID",(e,t)=>{nf.init(e,t),iE.init(e,t)}),iM=ev("ZodKSUID",(e,t)=>{np.init(e,t),iE.init(e,t)}),iL=ev("ZodIPv4",(e,t)=>{nv.init(e,t),iE.init(e,t)}),iR=ev("ZodIPv6",(e,t)=>{nb.init(e,t),iE.init(e,t)}),iF=ev("ZodCIDRv4",(e,t)=>{nw.init(e,t),iE.init(e,t)}),ij=ev("ZodCIDRv6",(e,t)=>{nk.init(e,t),iE.init(e,t)}),iz=ev("ZodBase64",(e,t)=>{nx.init(e,t),iE.init(e,t)}),iB=ev("ZodBase64URL",(e,t)=>{nS.init(e,t),iE.init(e,t)}),iU=ev("ZodE164",(e,t)=>{nT.init(e,t),iE.init(e,t)}),iV=ev("ZodJWT",(e,t)=>{nA.init(e,t),iE.init(e,t)}),iq=ev("ZodNumber",(e,t)=>{nI.init(e,t),iv.init(e,t),e.gt=(t,r)=>e.check(io(t,r)),e.gte=(t,r)=>e.check(il(t,r)),e.min=(t,r)=>e.check(il(t,r)),e.lt=(t,r)=>e.check(ia(t,r)),e.lte=(t,r)=>e.check(is(t,r)),e.max=(t,r)=>e.check(is(t,r)),e.int=t=>e.check(i$(t)),e.safe=t=>e.check(i$(t)),e.positive=t=>e.check(io(0,t)),e.nonnegative=t=>e.check(il(0,t)),e.negative=t=>e.check(ia(0,t)),e.nonpositive=t=>e.check(is(0,t)),e.multipleOf=(t,r)=>e.check(iu(t,r)),e.step=(t,r)=>e.check(iu(t,r)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??-1/0,r.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(r.maximum??1/0,r.exclusiveMaximum??1/0)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function iZ(e){return new iq({type:"number",checks:[],...ec(e)})}let iH=ev("ZodNumberFormat",(e,t)=>{nN.init(e,t),iq.init(e,t)});function i$(e){return new iH({type:"number",check:"number_format",abort:!1,format:"safeint",...ec(e)})}let iG=ev("ZodBoolean",(e,t)=>{nC.init(e,t),iv.init(e,t)});function iW(e){return new iG({type:"boolean",...ec(e)})}let iK=ev("ZodNull",(e,t)=>{nO.init(e,t),iv.init(e,t)}),iQ=ev("ZodUnknown",(e,t)=>{nP.init(e,t),iv.init(e,t)});function iJ(){return new iQ({type:"unknown"})}let iY=ev("ZodNever",(e,t)=>{nD.init(e,t),iv.init(e,t)});function iX(e){return new iY({type:"never",...ec(e)})}let i0=ev("ZodArray",(e,t)=>{nL.init(e,t),iv.init(e,t),e.element=t.element,e.min=(t,r)=>e.check(id(t,r)),e.nonempty=t=>e.check(id(1,t)),e.max=(t,r)=>e.check(ic(t,r)),e.length=(t,r)=>e.check(ih(t,r)),e.unwrap=()=>e.element});function i1(e,t){return new i0({type:"array",element:e,...ec(t)})}let i2=ev("ZodObject",(e,t)=>{nB.init(e,t),iv.init(e,t),J(e,"shape",()=>t.shape),e.keyof=()=>an(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:iJ()}),e.loose=()=>e.clone({...e._zod.def,catchall:iJ()}),e.strict=()=>e.clone({...e._zod.def,catchall:iX()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>(function(e,t){if(!ea(t))throw Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0)throw Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");let n=ee(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return X(this,"shape",r),r},checks:[]});return eu(e,n)})(e,t),e.safeExtend=t=>(function(e,t){if(!ea(t))throw Error("Invalid input to safeExtend: expected a plain object");let r={...e._zod.def,get shape(){let r={...e._zod.def.shape,...t};return X(this,"shape",r),r},checks:e._zod.def.checks};return eu(e,r)})(e,t),e.merge=t=>(function(e,t){let r=ee(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return X(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return eu(e,r)})(e,t),e.pick=t=>(function(e,t){let r=e._zod.def,n=ee(e._zod.def,{get shape(){let e={};for(let n in t){if(!(n in r.shape))throw Error(`Unrecognized key: "${n}"`);t[n]&&(e[n]=r.shape[n])}return X(this,"shape",e),e},checks:[]});return eu(e,n)})(e,t),e.omit=t=>(function(e,t){let r=e._zod.def,n=ee(e._zod.def,{get shape(){let n={...e._zod.def.shape};for(let e in t){if(!(e in r.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete n[e]}return X(this,"shape",n),n},checks:[]});return eu(e,n)})(e,t),e.partial=(...t)=>(function(e,t,r){let n=ee(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let t in r){if(!(t in n))throw Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=e?new e({type:"optional",innerType:n[t]}):n[t])}else for(let t in n)i[t]=e?new e({type:"optional",innerType:n[t]}):n[t];return X(this,"shape",i),i},checks:[]});return eu(t,n)})(ao,e,t[0]),e.required=(...t)=>(function(e,t,r){let n=ee(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let t in r){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=new e({type:"nonoptional",innerType:n[t]}))}else for(let t in n)i[t]=new e({type:"nonoptional",innerType:n[t]});return X(this,"shape",i),i},checks:[]});return eu(t,n)})(af,e,t[0])});function i5(e,t){return new i2({type:"object",get shape(){return X(this,"shape",e?Y(e):{}),this.shape},...ec(t)})}function i3(e,t){return new i2({type:"object",get shape(){return X(this,"shape",Y(e)),this.shape},catchall:iX(),...ec(t)})}function i4(e,t){return new i2({type:"object",get shape(){return X(this,"shape",Y(e)),this.shape},catchall:iJ(),...ec(t)})}let i9=ev("ZodUnion",(e,t)=>{nV.init(e,t),iv.init(e,t),e.options=t.options});function i6(e,t){return new i9({type:"union",options:e,...ec(t)})}let i7=ev("ZodDiscriminatedUnion",(e,t)=>{i9.init(e,t),nq.init(e,t)}),i8=ev("ZodIntersection",(e,t)=>{nZ.init(e,t),iv.init(e,t)}),ae=ev("ZodRecord",(e,t)=>{n$.init(e,t),iv.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function at(e,t,r){return new ae({type:"record",keyType:e,valueType:t,...ec(r)})}let ar=ev("ZodEnum",(e,t)=>{nG.init(e,t),iv.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(e,n)=>{let i={};for(let n of e)if(r.has(n))i[n]=t.entries[n];else throw Error(`Key ${n} not found in enum`);return new ar({...t,checks:[],...ec(n),entries:i})},e.exclude=(e,n)=>{let i={...t.entries};for(let t of e)if(r.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new ar({...t,checks:[],...ec(n),entries:i})}});function an(e,t){return new ar({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...ec(t)})}let ai=ev("ZodLiteral",(e,t)=>{nW.init(e,t),iv.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function aa(e,t){return new ai({type:"literal",values:Array.isArray(e)?e:[e],...ec(t)})}let as=ev("ZodTransform",(e,t)=>{nK.init(e,t),iv.init(e,t),e._zod.parse=(r,n)=>{if("backward"===n.direction)throw new ew(e.constructor.name);r.addIssue=n=>{"string"==typeof n?r.issues.push(e_(n,r.value,t)):(n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=e),r.issues.push(e_(n)))};let i=t.transform(r.value,r);return i instanceof Promise?i.then(e=>(r.value=e,r)):(r.value=i,r)}}),ao=ev("ZodOptional",(e,t)=>{nJ.init(e,t),iv.init(e,t),e.unwrap=()=>e._zod.def.innerType});function al(e){return new ao({type:"optional",innerType:e})}let au=ev("ZodNullable",(e,t)=>{nY.init(e,t),iv.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ac(e){return new au({type:"nullable",innerType:e})}let ad=ev("ZodDefault",(e,t)=>{nX.init(e,t),iv.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),ah=ev("ZodPrefault",(e,t)=>{n1.init(e,t),iv.init(e,t),e.unwrap=()=>e._zod.def.innerType}),af=ev("ZodNonOptional",(e,t)=>{n2.init(e,t),iv.init(e,t),e.unwrap=()=>e._zod.def.innerType}),ap=ev("ZodCatch",(e,t)=>{n3.init(e,t),iv.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),am=ev("ZodPipe",(e,t)=>{n4.init(e,t),iv.init(e,t),e.in=t.in,e.out=t.out});function ag(e,t){return new am({type:"pipe",in:e,out:t})}let a_=ev("ZodReadonly",(e,t)=>{n6.init(e,t),iv.init(e,t),e.unwrap=()=>e._zod.def.innerType}),ay=ev("ZodLazy",(e,t)=>{n8.init(e,t),iv.init(e,t),e.unwrap=()=>e._zod.def.getter()}),av=ev("ZodCustom",(e,t)=>{ie.init(e,t),iv.init(e,t)});function ab(e,t={error:`Input not instance of ${e.name}`}){let r=new av({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...ec(t)});return r._zod.bag.Class=e,r}var aw=Object.defineProperty,ak=(Symbol.for("vercel.ai.error.AI_NoOutputSpecifiedError"),Symbol.for("vercel.ai.error.AI_InvalidArgumentError"),Symbol.for("vercel.ai.error.AI_InvalidStreamPartError"),Symbol.for("vercel.ai.error.AI_InvalidToolInputError"),Symbol.for("vercel.ai.error.AI_MCPClientError"),Symbol.for("vercel.ai.error.AI_NoImageGeneratedError"),"AI_NoObjectGeneratedError"),aE=`vercel.ai.error.${ak}`,ax=Symbol.for(aE),aS=class extends A{constructor({message:e="No object generated.",cause:t,text:r,response:n,usage:i,finishReason:a}){super({name:ak,message:e,cause:t}),this[h]=!0,this.text=r,this.response=n,this.usage=i,this.finishReason=a}static isInstance(e){return A.hasMarker(e,aE)}};h=ax,Symbol.for("vercel.ai.error.AI_NoOutputGeneratedError"),Symbol.for("vercel.ai.error.AI_NoSuchToolError"),Symbol.for("vercel.ai.error.AI_ToolCallRepairError"),Symbol.for("vercel.ai.error.AI_InvalidDataContentError"),Symbol.for("vercel.ai.error.AI_InvalidMessageRoleError"),Symbol.for("vercel.ai.error.AI_MessageConversionError"),Symbol.for("vercel.ai.error.AI_DownloadError"),Symbol.for("vercel.ai.error.AI_RetryError");var aT=i6([ik(),ab(Uint8Array),ab(ArrayBuffer),function(e,t){let r=ec(t);return r.abort??(r.abort=!0),new av({type:"custom",check:"custom",fn:e??(()=>!0),...r})}(e=>{var t,r;return null!=(r=null==(t=globalThis.Buffer)?void 0:t.isBuffer(e))&&r},{message:"Must be a Buffer"})]),aA=new ay({type:"lazy",getter:()=>i6([new iK({type:"null",...ec(void 0)}),ik(),iZ(),iW(),at(ik(),aA),i1(aA)])}),aI=at(ik(),at(ik(),aA)),aN=i5({type:aa("text"),text:ik(),providerOptions:aI.optional()}),aC=i5({type:aa("image"),image:i6([aT,ab(URL)]),mediaType:ik().optional(),providerOptions:aI.optional()}),aO=i5({type:aa("file"),data:i6([aT,ab(URL)]),filename:ik().optional(),mediaType:ik(),providerOptions:aI.optional()}),aP=i5({type:aa("reasoning"),text:ik(),providerOptions:aI.optional()}),aD=i5({type:aa("tool-call"),toolCallId:ik(),toolName:ik(),input:iJ(),providerOptions:aI.optional(),providerExecuted:iW().optional()}),aM=new i7({type:"union",options:[i5({type:aa("text"),value:ik()}),i5({type:aa("json"),value:aA}),i5({type:aa("error-text"),value:ik()}),i5({type:aa("error-json"),value:aA}),i5({type:aa("content"),value:i1(i6([i5({type:aa("text"),text:ik()}),i5({type:aa("media"),data:ik(),mediaType:ik()})]))})],discriminator:"type",...ec(void 0)}),aL=i5({type:aa("tool-result"),toolCallId:ik(),toolName:ik(),output:aM,providerOptions:aI.optional()}),aR=i5({role:aa("system"),content:ik(),providerOptions:aI.optional()}),aF=i5({role:aa("user"),content:i6([ik(),i1(i6([aN,aC,aO]))]),providerOptions:aI.optional()}),aj=i5({role:aa("assistant"),content:i6([ik(),i1(i6([aN,aO,aP,aD,aL]))]),providerOptions:aI.optional()});i6([aR,aF,aj,i5({role:aa("tool"),content:i1(aL),providerOptions:aI.optional()})]),t0({prefix:"aitxt",size:24}),TransformStream;var az=i6([i3({type:aa("text-start"),id:ik(),providerMetadata:aI.optional()}),i3({type:aa("text-delta"),id:ik(),delta:ik(),providerMetadata:aI.optional()}),i3({type:aa("text-end"),id:ik(),providerMetadata:aI.optional()}),i3({type:aa("error"),errorText:ik()}),i3({type:aa("tool-input-start"),toolCallId:ik(),toolName:ik(),providerExecuted:iW().optional(),dynamic:iW().optional()}),i3({type:aa("tool-input-delta"),toolCallId:ik(),inputTextDelta:ik()}),i3({type:aa("tool-input-available"),toolCallId:ik(),toolName:ik(),input:iJ(),providerExecuted:iW().optional(),providerMetadata:aI.optional(),dynamic:iW().optional()}),i3({type:aa("tool-input-error"),toolCallId:ik(),toolName:ik(),input:iJ(),providerExecuted:iW().optional(),providerMetadata:aI.optional(),dynamic:iW().optional(),errorText:ik()}),i3({type:aa("tool-output-available"),toolCallId:ik(),output:iJ(),providerExecuted:iW().optional(),dynamic:iW().optional(),preliminary:iW().optional()}),i3({type:aa("tool-output-error"),toolCallId:ik(),errorText:ik(),providerExecuted:iW().optional(),dynamic:iW().optional()}),i3({type:aa("reasoning"),text:ik(),providerMetadata:aI.optional()}),i3({type:aa("reasoning-start"),id:ik(),providerMetadata:aI.optional()}),i3({type:aa("reasoning-delta"),id:ik(),delta:ik(),providerMetadata:aI.optional()}),i3({type:aa("reasoning-end"),id:ik(),providerMetadata:aI.optional()}),i3({type:aa("reasoning-part-finish")}),i3({type:aa("source-url"),sourceId:ik(),url:ik(),title:ik().optional(),providerMetadata:aI.optional()}),i3({type:aa("source-document"),sourceId:ik(),mediaType:ik(),title:ik(),filename:ik().optional(),providerMetadata:aI.optional()}),i3({type:aa("file"),url:ik(),mediaType:ik(),providerMetadata:aI.optional()}),i3({type:ik().startsWith("data-"),id:ik().optional(),data:iJ(),transient:iW().optional()}),i3({type:aa("start-step")}),i3({type:aa("finish-step")}),i3({type:aa("start"),messageId:ik().optional(),messageMetadata:iJ().optional()}),i3({type:aa("finish"),messageMetadata:iJ().optional()}),i3({type:aa("abort")}),i3({type:aa("message-metadata"),messageMetadata:iJ()})]);async function aB(e){if(void 0===e)return{value:void 0,state:"undefined-input"};let t=await t6({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await t6({text:function(e){let t=["ROOT"],r=-1,n=null;function i(e,i,a){switch(e){case'"':r=i,t.pop(),t.push(a),t.push("INSIDE_STRING");break;case"f":case"t":case"n":r=i,n=i,t.pop(),t.push(a),t.push("INSIDE_LITERAL");break;case"-":t.pop(),t.push(a),t.push("INSIDE_NUMBER");break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r=i,t.pop(),t.push(a),t.push("INSIDE_NUMBER");break;case"{":r=i,t.pop(),t.push(a),t.push("INSIDE_OBJECT_START");break;case"[":r=i,t.pop(),t.push(a),t.push("INSIDE_ARRAY_START")}}function a(e,n){switch(e){case",":t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break;case"}":r=n,t.pop()}}function s(e,n){switch(e){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":r=n,t.pop()}}for(let o=0;o<e.length;o++){let l=e[o];switch(t[t.length-1]){case"ROOT":i(l,o,"FINISH");break;case"INSIDE_OBJECT_START":switch(l){case'"':t.pop(),t.push("INSIDE_OBJECT_KEY");break;case"}":r=o,t.pop()}break;case"INSIDE_OBJECT_AFTER_COMMA":'"'===l&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break;case"INSIDE_OBJECT_KEY":'"'===l&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break;case"INSIDE_OBJECT_AFTER_KEY":":"===l&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break;case"INSIDE_OBJECT_BEFORE_VALUE":i(l,o,"INSIDE_OBJECT_AFTER_VALUE");break;case"INSIDE_OBJECT_AFTER_VALUE":a(l,o);break;case"INSIDE_STRING":switch(l){case'"':t.pop(),r=o;break;case"\\":t.push("INSIDE_STRING_ESCAPE");break;default:r=o}break;case"INSIDE_ARRAY_START":"]"===l?(r=o,t.pop()):(r=o,i(l,o,"INSIDE_ARRAY_AFTER_VALUE"));break;case"INSIDE_ARRAY_AFTER_VALUE":switch(l){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":r=o,t.pop();break;default:r=o}break;case"INSIDE_ARRAY_AFTER_COMMA":i(l,o,"INSIDE_ARRAY_AFTER_VALUE");break;case"INSIDE_STRING_ESCAPE":t.pop(),r=o;break;case"INSIDE_NUMBER":switch(l){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r=o;break;case"e":case"E":case"-":case".":break;case",":t.pop(),"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&s(l,o),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]&&a(l,o);break;case"}":t.pop(),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]&&a(l,o);break;case"]":t.pop(),"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&s(l,o);break;default:t.pop()}break;case"INSIDE_LITERAL":{let i=e.substring(n,o+1);"false".startsWith(i)||"true".startsWith(i)||"null".startsWith(i)?r=o:(t.pop(),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]?a(l,o):"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&s(l,o))}}}let o=e.slice(0,r+1);for(let r=t.length-1;r>=0;r--)switch(t[r]){case"INSIDE_STRING":o+='"';break;case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":o+="}";break;case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":o+="]";break;case"INSIDE_LITERAL":{let t=e.substring(n,e.length);"true".startsWith(t)?o+="true".slice(t.length):"false".startsWith(t)?o+="false".slice(t.length):"null".startsWith(t)&&(o+="null".slice(t.length))}}return o}(e)})).success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"}}function aU(e){return e.type.startsWith("tool-")}function aV(e){return aU(e)||"dynamic-tool"===e.type}function aq(e){return e.type.split("-").slice(1).join("-")}async function aZ({stream:e,onError:t}){let r=e.getReader();try{for(;;){let{done:e}=await r.read();if(e)break}}catch(e){null==t||t(e)}finally{r.releaseLock()}}t0({prefix:"aitxt",size:24}),t0({prefix:"aiobj",size:24});var aH=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(!this.isProcessing){for(this.isProcessing=!0;this.queue.length>0;)await this.queue[0](),this.queue.shift();this.isProcessing=!1}}async run(e){return new Promise((t,r)=>{this.queue.push(async()=>{try{await e(),t()}catch(e){r(e)}}),this.processQueue()})}};t0({prefix:"aiobj",size:24}),((e,t)=>{for(var r in t)aw(e,r,{get:t[r],enumerable:!0})})({},{object:()=>aG,text:()=>a$});var a$=()=>({type:"text",responseFormat:{type:"text"},parsePartial:async({text:e})=>({partial:e}),parseOutput:async({text:e})=>e}),aG=({schema:e})=>{let t=function(e){return null==e?rg({properties:{},additionalProperties:!1}):"object"==typeof e&&null!==e&&rm in e&&!0===e[rm]&&"jsonSchema"in e&&"validate"in e?e:function(e,t){var r;return"_zod"in e?rg(function(e,t){if(e instanceof Z){let r=new ey(t),n={};for(let t of e._idmap.entries()){let[e,n]=t;r.process(n)}let i={},a={registry:e,uri:t?.uri,defs:n};for(let n of e._idmap.entries()){let[e,s]=n;i[e]=r.emit(s,{...t,external:a})}return Object.keys(n).length>0&&(i.__shared={["draft-2020-12"===r.target?"$defs":"definitions"]:n}),{schemas:i}}let r=new ey(t);return r.process(e),r.emit(e,t)}(e,{target:"draft-7",io:"output",reused:"inline"}),{validate:async t=>{let r=await ej(e,t);return r.success?{success:!0,value:r.data}:{success:!1,error:r.error}}}):rg(((e,t)=>{var r;let n=(e=>{let t,r="string"==typeof(t=e)?{...re,name:t}:{...re,...t},n=void 0!==r.name?[...r.basePath,r.definitionPath,r.name]:r.basePath;return{...r,currentPath:n,propertyPath:void 0,seen:new Map(Object.entries(r.definitions).map(([e,t])=>[t._def,{def:t._def,path:[...r.basePath,r.definitionPath,e],jsonSchema:void 0}]))}})(t),i="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce((e,[t,r])=>{var i;return{...e,[t]:null!=(i=rh(r._def,{...n,currentPath:[...n.basePath,n.definitionPath,t]},!0))?i:{}}},{}):void 0,a="string"==typeof t?t:(null==t?void 0:t.nameStrategy)==="title"||null==t?void 0:t.name,s=null!=(r=rh(e._def,void 0===a?n:{...n,currentPath:[...n.basePath,n.definitionPath,a]},!1))?r:{},o="object"==typeof t&&void 0!==t.name&&"title"===t.nameStrategy?t.name:void 0;void 0!==o&&(s.title=o);let l=void 0===a?i?{...s,[n.definitionPath]:i}:s:{$ref:[..."relative"===n.$refStrategy?[]:n.basePath,n.definitionPath,a].join("/"),[n.definitionPath]:{...i,[a]:s}};return l.$schema="http://json-schema.org/draft-07/schema#",l})(e,{$refStrategy:(r=void 0,"none")}),{validate:async t=>{let r=await e.safeParseAsync(t);return r.success?{success:!0,value:r.data}:{success:!1,error:r.error}}})}(e)}(e);return{type:"object",responseFormat:{type:"json",schema:t.jsonSchema},async parsePartial({text:e}){let t=await aB(e);switch(t.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:t.value};default:{let e=t.state;throw Error(`Unsupported parse state: ${e}`)}}},async parseOutput({text:e},r){let n=await t6({text:e});if(!n.success)throw new aS({message:"No object generated: could not parse the response.",cause:n.error,text:e,response:r.response,usage:r.usage,finishReason:r.finishReason});let i=await t9({value:n.value,schema:t});if(!i.success)throw new aS({message:"No object generated: response did not match schema.",cause:i.error,text:e,response:r.response,usage:r.usage,finishReason:r.finishReason});return i.value}}},aW=(Symbol.for("vercel.ai.error.AI_NoSuchProviderError"),i4({name:ik(),version:ik()})),aK=i4({_meta:al(i5({}).loose())}),aQ=i5({method:ik(),params:al(aK)}),aJ=i4({experimental:al(i5({}).loose()),logging:al(i5({}).loose()),prompts:al(i4({listChanged:al(iW())})),resources:al(i4({subscribe:al(iW()),listChanged:al(iW())})),tools:al(i4({listChanged:al(iW())}))});aK.extend({protocolVersion:ik(),capabilities:aJ,serverInfo:aW,instructions:al(ik())});var aY=aK.extend({nextCursor:al(ik())}),aX=i5({name:ik(),description:al(ik()),inputSchema:i5({type:aa("object"),properties:al(i5({}).loose())}).loose()}).loose();aY.extend({tools:i1(aX)});var a0=i5({type:aa("text"),text:ik()}).loose(),a1=i5({type:aa("image"),data:ii(iz,void 0),mimeType:ik()}).loose(),a2=i5({uri:ik(),mimeType:al(ik())}).loose(),a5=a2.extend({text:ik()}),a3=a2.extend({blob:ii(iz,void 0)}),a4=i5({type:aa("resource"),resource:i6([a5,a3])}).loose();aK.extend({content:i1(i6([a0,a1,a4])),isError:iW().default(!1).optional()}).or(aK.extend({toolResult:iJ()}));var a9=i5({jsonrpc:aa("2.0"),id:i6([ik(),iZ().int()])}).merge(aQ).strict(),a6=i5({jsonrpc:aa("2.0"),id:i6([ik(),iZ().int()]),result:aK}).strict(),a7=i5({jsonrpc:aa("2.0"),id:i6([ik(),iZ().int()]),error:i5({code:iZ().int(),message:ik(),data:al(iJ())})}).strict();async function a8(e){if(null==e)return[];if(!globalThis.FileList||!(e instanceof globalThis.FileList))throw Error("FileList is not supported in the current environment");return Promise.all(Array.from(e).map(async e=>{let{name:t,type:r}=e;return{type:"file",mediaType:r,filename:t,url:await new Promise((t,r)=>{let n=new FileReader;n.onload=e=>{var r;t(null==(r=e.target)?void 0:r.result)},n.onerror=e=>r(e),n.readAsDataURL(e)})}}))}i6([a9,i5({jsonrpc:aa("2.0")}).merge(i5({method:ik(),params:al(aK)})).strict(),a6,a7]);var se=class{constructor({api:e="/api/chat",credentials:t,headers:r,body:n,fetch:i,prepareSendMessagesRequest:a,prepareReconnectToStreamRequest:s}){this.api=e,this.credentials=t,this.headers=r,this.body=n,this.fetch=i,this.prepareSendMessagesRequest=a,this.prepareReconnectToStreamRequest=s}async sendMessages({abortSignal:e,...t}){var r,n,i,a,s;let o=await t7(this.body),l=await t7(this.headers),u=await t7(this.credentials),c=await (null==(r=this.prepareSendMessagesRequest)?void 0:r.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...o,...t.body},headers:{...l,...t.headers},credentials:u,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),d=null!=(n=null==c?void 0:c.api)?n:this.api,h=(null==c?void 0:c.headers)!==void 0?c.headers:{...l,...t.headers},f=(null==c?void 0:c.body)!==void 0?c.body:{...o,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},p=null!=(i=null==c?void 0:c.credentials)?i:u,m=null!=(a=this.fetch)?a:globalThis.fetch,g=await m(d,{method:"POST",headers:{"Content-Type":"application/json",...h},body:JSON.stringify(f),credentials:p,signal:e});if(!g.ok)throw Error(null!=(s=await g.text())?s:"Failed to fetch the chat response.");if(!g.body)throw Error("The response body is empty.");return this.processResponseStream(g.body)}async reconnectToStream(e){var t,r,n,i,a;let s=await t7(this.body),o=await t7(this.headers),l=await t7(this.credentials),u=await (null==(t=this.prepareReconnectToStreamRequest)?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...s,...e.body},headers:{...o,...e.headers},credentials:l,requestMetadata:e.metadata})),c=null!=(r=null==u?void 0:u.api)?r:`${this.api}/${e.chatId}/stream`,d=(null==u?void 0:u.headers)!==void 0?u.headers:{...o,...e.headers},h=null!=(n=null==u?void 0:u.credentials)?n:l,f=null!=(i=this.fetch)?i:globalThis.fetch,p=await f(c,{method:"GET",headers:d,credentials:h});if(204===p.status)return null;if(!p.ok)throw Error(null!=(a=await p.text())?a:"Failed to fetch the chat response.");if(!p.body)throw Error("The response body is empty.");return this.processResponseStream(p.body)}},st=class extends se{constructor(e={}){super(e)}processResponseStream(e){return(function({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new q).pipeThrough(new TransformStream({async transform({data:e},r){"[DONE]"!==e&&r.enqueue(await t6({text:e,schema:t}))}}))})({stream:e,schema:az}).pipeThrough(new TransformStream({async transform(e,t){if(!e.success)throw e.error;t.enqueue(e.value)}}))}},sr=class{constructor({generateId:e=t1,id:t=e(),transport:r=new st,messageMetadataSchema:n,dataPartSchemas:i,state:a,onError:s,onToolCall:o,onFinish:l,onData:u,sendAutomaticallyWhen:c}){this.activeResponse=void 0,this.jobExecutor=new aH,this.sendMessage=async(e,t)=>{var r,n,i,a;let s;if(null==e)return void await this.makeRequest({trigger:"submit-message",messageId:null==(r=this.lastMessage)?void 0:r.id,...t});if(s="text"in e||"files"in e?{parts:[...Array.isArray(e.files)?e.files:await a8(e.files),..."text"in e&&null!=e.text?[{type:"text",text:e.text}]:[]]}:e,null!=e.messageId){let t=this.state.messages.findIndex(t=>t.id===e.messageId);if(-1===t)throw Error(`message with id ${e.messageId} not found`);if("user"!==this.state.messages[t].role)throw Error(`message with id ${e.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,t+1),this.state.replaceMessage(t,{...s,id:e.messageId,role:null!=(n=s.role)?n:"user",metadata:e.metadata})}else this.state.pushMessage({...s,id:null!=(i=s.id)?i:this.generateId(),role:null!=(a=s.role)?a:"user",metadata:e.metadata});await this.makeRequest({trigger:"submit-message",messageId:e.messageId,...t})},this.regenerate=async({messageId:e,...t}={})=>{let r=null==e?this.state.messages.length-1:this.state.messages.findIndex(t=>t.id===e);if(-1===r)throw Error(`message ${e} not found`);this.state.messages=this.state.messages.slice(0,"assistant"===this.messages[r].role?r:r+1),await this.makeRequest({trigger:"regenerate-message",messageId:e,...t})},this.resumeStream=async(e={})=>{await this.makeRequest({trigger:"resume-stream",...e})},this.clearError=()=>{"error"===this.status&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolResult=async({tool:e,toolCallId:t,output:r})=>this.jobExecutor.run(async()=>{var e,n;let i=this.state.messages,a=i[i.length-1];this.state.replaceMessage(i.length-1,{...a,parts:a.parts.map(e=>aV(e)&&e.toolCallId===t?{...e,state:"output-available",output:r}:e)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(e=>aV(e)&&e.toolCallId===t?{...e,state:"output-available",output:r,errorText:void 0}:e)),"streaming"!==this.status&&"submitted"!==this.status&&(null==(e=this.sendAutomaticallyWhen)?void 0:e.call(this,{messages:this.state.messages}))&&this.makeRequest({trigger:"submit-message",messageId:null==(n=this.lastMessage)?void 0:n.id})}),this.stop=async()=>{var e;("streaming"===this.status||"submitted"===this.status)&&(null==(e=this.activeResponse)?void 0:e.abortController)&&this.activeResponse.abortController.abort()},this.id=t,this.transport=r,this.generateId=e,this.messageMetadataSchema=n,this.dataPartSchemas=i,this.state=a,this.onError=s,this.onToolCall=o,this.onFinish=l,this.onData=u,this.sendAutomaticallyWhen=c}get status(){return this.state.status}setStatus({status:e,error:t}){this.status!==e&&(this.state.status=e,this.state.error=t)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(e){this.state.messages=e}async makeRequest({trigger:e,metadata:t,headers:r,body:n,messageId:i}){var a,s,o;this.setStatus({status:"submitted",error:void 0});let l=this.lastMessage,u=!1,c=!1,d=!1;try{let a,s={state:function({lastMessage:e,messageId:t}){return{message:(null==e?void 0:e.role)==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}({lastMessage:this.state.snapshot(l),messageId:this.generateId()}),abortController:new AbortController};if(s.abortController.signal.addEventListener("abort",()=>{u=!0}),this.activeResponse=s,"resume-stream"===e){let e=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:r,body:n});if(null==e)return void this.setStatus({status:"ready"});a=e}else a=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:s.abortController.signal,metadata:t,headers:r,body:n,trigger:e,messageId:i});let o=e=>this.jobExecutor.run(()=>e({state:s.state,write:()=>{var e;this.setStatus({status:"streaming"}),s.state.message.id===(null==(e=this.lastMessage)?void 0:e.id)?this.state.replaceMessage(this.state.messages.length-1,s.state.message):this.state.pushMessage(s.state.message)}}));await aZ({stream:function({stream:e,messageMetadataSchema:t,dataPartSchemas:r,runUpdateMessageJob:n,onError:i,onToolCall:a,onData:s}){return e.pipeThrough(new TransformStream({async transform(e,o){await n(async({state:n,write:l})=>{var u,c,d,h;function f(e){let t=n.message.parts.filter(aU).find(t=>t.toolCallId===e);if(null==t)throw Error("tool-output-error must be preceded by a tool-input-available");return t}function p(e){let t=n.message.parts.filter(e=>"dynamic-tool"===e.type).find(t=>t.toolCallId===e);if(null==t)throw Error("tool-output-error must be preceded by a tool-input-available");return t}function m(e){var t;let r=n.message.parts.find(t=>aU(t)&&t.toolCallId===e.toolCallId);null!=r?(r.state=e.state,r.input=e.input,r.output=e.output,r.errorText=e.errorText,r.rawInput=e.rawInput,r.preliminary=e.preliminary,r.providerExecuted=null!=(t=e.providerExecuted)?t:r.providerExecuted,null!=e.providerMetadata&&"input-available"===r.state&&(r.callProviderMetadata=e.providerMetadata)):n.message.parts.push({type:`tool-${e.toolName}`,toolCallId:e.toolCallId,state:e.state,input:e.input,output:e.output,rawInput:e.rawInput,errorText:e.errorText,providerExecuted:e.providerExecuted,preliminary:e.preliminary,...null!=e.providerMetadata?{callProviderMetadata:e.providerMetadata}:{}})}function g(e){var t;let r=n.message.parts.find(t=>"dynamic-tool"===t.type&&t.toolCallId===e.toolCallId);null!=r?(r.state=e.state,r.toolName=e.toolName,r.input=e.input,r.output=e.output,r.errorText=e.errorText,r.rawInput=null!=(t=e.rawInput)?t:r.rawInput,r.preliminary=e.preliminary,null!=e.providerMetadata&&"input-available"===r.state&&(r.callProviderMetadata=e.providerMetadata)):n.message.parts.push({type:"dynamic-tool",toolName:e.toolName,toolCallId:e.toolCallId,state:e.state,input:e.input,output:e.output,errorText:e.errorText,preliminary:e.preliminary,...null!=e.providerMetadata?{callProviderMetadata:e.providerMetadata}:{}})}async function _(e){if(null!=e){let r=null!=n.message.metadata?function e(t,r){if(void 0===t&&void 0===r)return;if(void 0===t)return r;if(void 0===r)return t;let n={...t};for(let i in r)if(Object.prototype.hasOwnProperty.call(r,i)){let a=r[i];if(void 0===a)continue;let s=i in t?t[i]:void 0,o=null!==a&&"object"==typeof a&&!Array.isArray(a)&&!(a instanceof Date)&&!(a instanceof RegExp),l=null!=s&&"object"==typeof s&&!Array.isArray(s)&&!(s instanceof Date)&&!(s instanceof RegExp);o&&l?n[i]=e(s,a):n[i]=a}return n}(n.message.metadata,e):e;null!=t&&await t4({value:r,schema:t}),n.message.metadata=r}}switch(e.type){case"text-start":{let t={type:"text",text:"",providerMetadata:e.providerMetadata,state:"streaming"};n.activeTextParts[e.id]=t,n.message.parts.push(t),l();break}case"text-delta":{let t=n.activeTextParts[e.id];t.text+=e.delta,t.providerMetadata=null!=(u=e.providerMetadata)?u:t.providerMetadata,l();break}case"text-end":{let t=n.activeTextParts[e.id];t.state="done",t.providerMetadata=null!=(c=e.providerMetadata)?c:t.providerMetadata,delete n.activeTextParts[e.id],l();break}case"reasoning-start":{let t={type:"reasoning",text:"",providerMetadata:e.providerMetadata,state:"streaming"};n.activeReasoningParts[e.id]=t,n.message.parts.push(t),l();break}case"reasoning-delta":{let t=n.activeReasoningParts[e.id];t.text+=e.delta,t.providerMetadata=null!=(d=e.providerMetadata)?d:t.providerMetadata,l();break}case"reasoning-end":{let t=n.activeReasoningParts[e.id];t.providerMetadata=null!=(h=e.providerMetadata)?h:t.providerMetadata,t.state="done",delete n.activeReasoningParts[e.id],l();break}case"file":n.message.parts.push({type:"file",mediaType:e.mediaType,url:e.url}),l();break;case"source-url":n.message.parts.push({type:"source-url",sourceId:e.sourceId,url:e.url,title:e.title,providerMetadata:e.providerMetadata}),l();break;case"source-document":n.message.parts.push({type:"source-document",sourceId:e.sourceId,mediaType:e.mediaType,title:e.title,filename:e.filename,providerMetadata:e.providerMetadata}),l();break;case"tool-input-start":{let t=n.message.parts.filter(aU);n.partialToolCalls[e.toolCallId]={text:"",toolName:e.toolName,index:t.length,dynamic:e.dynamic},e.dynamic?g({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-streaming",input:void 0}):m({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-streaming",input:void 0,providerExecuted:e.providerExecuted}),l();break}case"tool-input-delta":{let t=n.partialToolCalls[e.toolCallId];t.text+=e.inputTextDelta;let{value:r}=await aB(t.text);t.dynamic?g({toolCallId:e.toolCallId,toolName:t.toolName,state:"input-streaming",input:r}):m({toolCallId:e.toolCallId,toolName:t.toolName,state:"input-streaming",input:r}),l();break}case"tool-input-available":e.dynamic?g({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-available",input:e.input,providerMetadata:e.providerMetadata}):m({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-available",input:e.input,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata}),l(),a&&!e.providerExecuted&&await a({toolCall:e});break;case"tool-input-error":e.dynamic?g({toolCallId:e.toolCallId,toolName:e.toolName,state:"output-error",input:e.input,errorText:e.errorText,providerMetadata:e.providerMetadata}):m({toolCallId:e.toolCallId,toolName:e.toolName,state:"output-error",input:void 0,rawInput:e.input,errorText:e.errorText,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata}),l();break;case"tool-output-available":if(e.dynamic){let t=p(e.toolCallId);g({toolCallId:e.toolCallId,toolName:t.toolName,state:"output-available",input:t.input,output:e.output,preliminary:e.preliminary})}else{let t=f(e.toolCallId);m({toolCallId:e.toolCallId,toolName:aq(t),state:"output-available",input:t.input,output:e.output,providerExecuted:e.providerExecuted,preliminary:e.preliminary})}l();break;case"tool-output-error":if(e.dynamic){let t=p(e.toolCallId);g({toolCallId:e.toolCallId,toolName:t.toolName,state:"output-error",input:t.input,errorText:e.errorText})}else{let t=f(e.toolCallId);m({toolCallId:e.toolCallId,toolName:aq(t),state:"output-error",input:t.input,rawInput:t.rawInput,errorText:e.errorText})}l();break;case"start-step":n.message.parts.push({type:"step-start"});break;case"finish-step":n.activeTextParts={},n.activeReasoningParts={};break;case"start":null!=e.messageId&&(n.message.id=e.messageId),await _(e.messageMetadata),(null!=e.messageId||null!=e.messageMetadata)&&l();break;case"finish":case"message-metadata":await _(e.messageMetadata),null!=e.messageMetadata&&l();break;case"error":null==i||i(Error(e.errorText));break;default:if(e.type.startsWith("data-")){if((null==r?void 0:r[e.type])!=null&&await t4({value:e.data,schema:r[e.type]}),e.transient){null==s||s(e);break}let t=null!=e.id?n.message.parts.find(t=>e.type===t.type&&e.id===t.id):void 0;null!=t?t.data=e.data:n.message.parts.push(e),null==s||s(e),l()}}o.enqueue(e)})}}))}({stream:a,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:o,onError:e=>{throw e}}),onError:e=>{throw e}}),this.setStatus({status:"ready"})}catch(e){if(u||"AbortError"===e.name)return u=!0,this.setStatus({status:"ready"}),null;d=!0,e instanceof TypeError&&(e.message.toLowerCase().includes("fetch")||e.message.toLowerCase().includes("network"))&&(c=!0),this.onError&&e instanceof Error&&this.onError(e),this.setStatus({status:"error",error:e})}finally{try{null==(a=this.onFinish)||a.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:u,isDisconnect:c,isError:d})}catch(e){console.error(e)}this.activeResponse=void 0}(null==(s=this.sendAutomaticallyWhen)?void 0:s.call(this,{messages:this.state.messages}))&&await this.makeRequest({trigger:"submit-message",messageId:null==(o=this.lastMessage)?void 0:o.id,metadata:t,headers:r,body:n})}},sn=i5({type:aa("text"),text:ik(),state:an(["streaming","done"]).optional(),providerMetadata:aI.optional()}),si=i5({type:aa("reasoning"),text:ik(),state:an(["streaming","done"]).optional(),providerMetadata:aI.optional()}),sa=i5({type:aa("source-url"),sourceId:ik(),url:ik(),title:ik().optional(),providerMetadata:aI.optional()}),ss=i5({type:aa("source-document"),sourceId:ik(),mediaType:ik(),title:ik(),filename:ik().optional(),providerMetadata:aI.optional()}),so=i5({type:aa("file"),mediaType:ik(),filename:ik().optional(),url:ik(),providerMetadata:aI.optional()}),sl=i5({type:aa("step-start")}),su=i5({type:ik().startsWith("data-"),id:ik().optional(),data:iJ()}),sc=[i5({type:aa("dynamic-tool"),toolName:ik(),toolCallId:ik(),state:aa("input-streaming"),input:iJ().optional(),output:iX().optional(),errorText:iX().optional()}),i5({type:aa("dynamic-tool"),toolName:ik(),toolCallId:ik(),state:aa("input-available"),input:iJ(),output:iX().optional(),errorText:iX().optional(),callProviderMetadata:aI.optional()}),i5({type:aa("dynamic-tool"),toolName:ik(),toolCallId:ik(),state:aa("output-available"),input:iJ(),output:iJ(),errorText:iX().optional(),callProviderMetadata:aI.optional(),preliminary:iW().optional()}),i5({type:aa("dynamic-tool"),toolName:ik(),toolCallId:ik(),state:aa("output-error"),input:iJ(),output:iX().optional(),errorText:ik(),callProviderMetadata:aI.optional()})],sd=[i5({type:ik().startsWith("tool-"),toolCallId:ik(),state:aa("input-streaming"),input:iJ().optional(),output:iX().optional(),errorText:iX().optional()}),i5({type:ik().startsWith("tool-"),toolCallId:ik(),state:aa("input-available"),input:iJ(),output:iX().optional(),errorText:iX().optional(),callProviderMetadata:aI.optional()}),i5({type:ik().startsWith("tool-"),toolCallId:ik(),state:aa("output-available"),input:iJ(),output:iJ(),errorText:iX().optional(),callProviderMetadata:aI.optional(),preliminary:iW().optional()}),i5({type:ik().startsWith("tool-"),toolCallId:ik(),state:aa("output-error"),input:iJ(),output:iX().optional(),errorText:ik(),callProviderMetadata:aI.optional()})];i5({id:ik(),role:an(["system","user","assistant"]),metadata:iJ().optional(),parts:i1(i6([sn,si,sa,ss,so,sl,su,...sc,...sd]))});var sh=r(38878),sf=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},sp=(e,t,r)=>(sf(e,t,"read from private field"),r?r.call(e):t.get(e)),sm=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},sg=(e,t,r,n)=>(sf(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),s_=class{constructor(e=[]){sm(this,f,void 0),sm(this,p,"ready"),sm(this,m,void 0),sm(this,g,new Set),sm(this,_,new Set),sm(this,y,new Set),this.pushMessage=e=>{sg(this,f,sp(this,f).concat(e)),sp(this,v).call(this)},this.popMessage=()=>{sg(this,f,sp(this,f).slice(0,-1)),sp(this,v).call(this)},this.replaceMessage=(e,t)=>{sg(this,f,[...sp(this,f).slice(0,e),this.snapshot(t),...sp(this,f).slice(e+1)]),sp(this,v).call(this)},this.snapshot=e=>structuredClone(e),this["~registerMessagesCallback"]=(e,t)=>{let r=t?function(e,t){return null!=t?sh(e,t):e}(e,t):e;return sp(this,g).add(r),()=>{sp(this,g).delete(r)}},this["~registerStatusCallback"]=e=>(sp(this,_).add(e),()=>{sp(this,_).delete(e)}),this["~registerErrorCallback"]=e=>(sp(this,y).add(e),()=>{sp(this,y).delete(e)}),sm(this,v,()=>{sp(this,g).forEach(e=>e())}),sm(this,b,()=>{sp(this,_).forEach(e=>e())}),sm(this,w,()=>{sp(this,y).forEach(e=>e())}),sg(this,f,e)}get status(){return sp(this,p)}set status(e){sg(this,p,e),sp(this,b).call(this)}get error(){return sp(this,m)}set error(e){sg(this,m,e),sp(this,w).call(this)}get messages(){return sp(this,f)}set messages(e){sg(this,f,[...e]),sp(this,v).call(this)}};f=new WeakMap,p=new WeakMap,m=new WeakMap,g=new WeakMap,_=new WeakMap,y=new WeakMap,v=new WeakMap,b=new WeakMap,w=new WeakMap;var sy=class extends sr{constructor({messages:e,...t}){let r=new s_(e);super({...t,state:r}),sm(this,k,void 0),this["~registerMessagesCallback"]=(e,t)=>sp(this,k)["~registerMessagesCallback"](e,t),this["~registerStatusCallback"]=e=>sp(this,k)["~registerStatusCallback"](e),this["~registerErrorCallback"]=e=>sp(this,k)["~registerErrorCallback"](e),sg(this,k,r)}};k=new WeakMap;var sv=r(77742),sb=r(22641),sw=r(63963);function sk(e){var t;return["png","jpg","jpeg","gif","webp","bmp","svg"].includes((null==(t=e.split(".").pop())?void 0:t.toLowerCase().split("?")[0])||"")?""):"[".concat(e.split("/").pop()||"file","](").concat(e,")")}let sE=()=>{let e=(0,sv.A)(),[t,r]=(0,sw.A)("copilot-chat-history",[]),n=(0,E.useRef)(!1),{messages:i,error:a,resumeStream:s,status:o,setMessages:l,stop:u,regenerate:c,sendMessage:d}=function({experimental_throttle:e,resume:t=!1,...r}={}){let n=(0,E.useRef)("chat"in r?r.chat:new sy(r));("chat"in r&&r.chat!==n.current||"id"in r&&n.current.id!==r.id)&&(n.current="chat"in r?r.chat:new sy(r));let i="id"in r?r.id:null,a=(0,E.useCallback)(t=>n.current["~registerMessagesCallback"](t,e),[e,i]),s=(0,E.useSyncExternalStore)(a,()=>n.current.messages,()=>n.current.messages),o=(0,E.useSyncExternalStore)(n.current["~registerStatusCallback"],()=>n.current.status,()=>n.current.status),l=(0,E.useSyncExternalStore)(n.current["~registerErrorCallback"],()=>n.current.error,()=>n.current.error),u=(0,E.useCallback)(e=>{"function"==typeof e&&(e=e(n.current.messages)),n.current.messages=e},[n]);return(0,E.useEffect)(()=>{t&&n.current.resumeStream()},[t,n]),{id:n.current.id,messages:s,setMessages:u,sendMessage:n.current.sendMessage,regenerate:n.current.regenerate,clearError:n.current.clearError,stop:n.current.stop,error:l,resumeStream:n.current.resumeStream,status:o,addToolResult:n.current.addToolResult}}({transport:new st({api:"/chat",credentials:"include"}),messages:t,onError:t=>{var r,n,i,a,s,o,u,c;let d="";d=(null==(r=t.message)?void 0:r.includes("401"))||(null==(n=t.message)?void 0:n.includes("invalid_token"))||(null==(i=t.message)?void 0:i.includes("Unauthorized"))?e.formatMessage({id:"chat.error.auth",defaultMessage:"\uD83D\uDD10 **Authentication Error**\n\nYour session has expired or the authentication token is invalid.\n\n**To fix this:**\n1. Refresh the page (Ctrl+R / Cmd+R)\n2. Log out and log back in\n3. Check your permissions\n\n*This happens when your session expires after being idle too long.*"}):(null==(a=t.message)?void 0:a.includes("fetch"))||(null==(s=t.message)?void 0:s.includes("Failed to fetch"))||(null==(o=t.message)?void 0:o.includes("NetworkError"))?e.formatMessage({id:"chat.error.connection",defaultMessage:"\uD83D\uDEAB **Connection Error**\n\nCannot connect to the chat API server at {chatUrl}.\n\n**To enable chat:**\n1. Start the backend\n2. Ensure chat/MCP endpoint is configured\n3. Check NEXT_PUBLIC_CHAT_URL\n\n**Current configuration:**\n- Chat URL: {chatUrl}\n\n*Please start the backend.*"},{chatUrl:"/chat"}):(null==(u=t.message)?void 0:u.includes("stream"))||(null==(c=t.message)?void 0:c.includes("process"))?e.formatMessage({id:"chat.error.stream",defaultMessage:"⚠️ **Stream Processing Error**\n\nThere was an error processing the AI response stream.\n\n**Possible causes:**\n1. Backend not running\n2. MCP server not responding\n3. Missing/invalid API keys\n4. Network issues\n\n**Error details:** {details}"},{details:t.message}):e.formatMessage({id:"chat.error.unexpected",defaultMessage:"❌ **Chat Error**\n\nAn unexpected error occurred: {details}\n\n*Please try again or check the console for details.*"},{details:t.message});let h={id:"error-".concat(Date.now()),role:"assistant",parts:[{type:"text",text:d}]};l(e=>[...e,h])}});return(0,E.useEffect)(()=>{r(i.filter(e=>{var t;return"assistant"!==e.role||!!(null==e||null==(t=e.parts)?void 0:t.every(e=>"dynamic-tool"!==e.type||!!e.input&&!!e.output))}))},[i]),{messages:i,handleSubmit:async(t,r)=>{try{var n;let e=null!=(n=null==r?void 0:r.map(sk).join("\n"))?n:"",i=[t,e].filter(Boolean).join("\n");t&&d({text:i})}catch(i){console.error("Error in handleSubmit:",i);let t=i instanceof Error?i.message:"Unknown error",r=t.includes("401")||t.includes("Unauthorized")?e.formatMessage({id:"chat.error.auth",defaultMessage:"\uD83D\uDD10 **Authentication Error**\n\nYour session has expired or the authentication token is invalid.\n\n*Please refresh or log in again.*"}):e.formatMessage({id:"chat.error.submission",defaultMessage:"❌ **Submission Error**\n\nFailed to send your message.\n\n**Error:** {details}\n\n*Please ensure the backend is running.*"},{details:t}),n={id:"error-".concat(Date.now()),role:"assistant",parts:[{type:"text",text:r}]};l(e=>[...e,n])}},error:a,status:o,clearHistory:()=>{l([]),r([]),n.current=!1},stop:u,addInterruptionMessage:e=>{let t=sb.W.createInterruptionMessage(e);l(e=>[...e,t])},sendMessage:d,reload:c,resumeStream:s}}},18003:(e,t,r)=>{"use strict";r.d(t,{$:()=>n});var n={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},18737:(e,t,r)=>{"use strict";function n(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}r.d(t,{o:()=>n})},18885:(e,t,r)=>{"use strict";r.d(t,{I:()=>q});var n,i=r(20996),a=r(14232),s=r.t(a,2),o=r(80644),l=r(4902),u=function(e){function t(t,r){return e.call(this)||this}return(0,l.__extends)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(r(52249).yU),c={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=c.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,(0,l.__spreadArray)([e,t],(0,l.__read)(r))):setInterval.apply(void 0,(0,l.__spreadArray)([e,t],(0,l.__read)(r)))},clearInterval:function(e){var t=c.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},d=r(18737),h=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return(0,l.__extends)(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r,n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=null!=(r=this.id)?r:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),c.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&c.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,d.o)(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(u),f=1,p={};function m(e){return e in p&&(delete p[e],!0)}var g={setImmediate:function(e){var t=f++;return p[t]=!0,n||(n=Promise.resolve()),n.then(function(){return m(t)&&e()}),t},clearImmediate:function(e){m(e)}},_=g.setImmediate,y=g.clearImmediate,v={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=v.delegate;return((null==r?void 0:r.setImmediate)||_).apply(void 0,(0,l.__spreadArray)([],(0,l.__read)(e)))},clearImmediate:function(e){var t=v.delegate;return((null==t?void 0:t.clearImmediate)||y)(e)},delegate:void 0},b=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return(0,l.__extends)(t,e),t.prototype.requestAsyncId=function(t,r,n){return(void 0===n&&(n=0),null!==n&&n>0)?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=v.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!=n?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);var i,a=t.actions;null!=r&&(null==(i=a[a.length-1])?void 0:i.id)!==r&&(v.clearImmediate(r),t._scheduled===r&&(t._scheduled=void 0))},t}(h),w=r(82688),k=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=w.U.now,e}(),E=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.__extends)(t,e),t.prototype.flush=function(e){this._active=!0;var t,r=this._scheduled;this._scheduled=void 0;var n=this.actions;e=e||n.shift();do if(t=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===r&&n.shift());if(this._active=!1,t){for(;(e=n[0])&&e.id===r&&n.shift();)e.unsubscribe();throw t}},t}(function(e){function t(t,r){void 0===r&&(r=k.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return(0,l.__extends)(t,e),t.prototype.flush=function(e){var t,r=this.actions;if(this._active)return void r.push(e);this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}},t}(k)))(b),x=r(66434),S=r(25977),T=r(73902);let A=Symbol.for("apollo.skipToken"),I=Symbol.for("apollo.hook.wrappers");var N=r(94852),C=r(67994),O=r(1300),P=r(46494),D=r(68906),M=r(19650);let L=!1,R=s.useSyncExternalStore,F="ReactNative"==(0,D.n)(()=>navigator.product),j=(0,D.n)(()=>navigator.userAgent.indexOf("jsdom")>=0)||!1,z=(P.S||F)&&!j,B=R||((e,t,r)=>{let n=t();O.g&&!L&&n!==t()&&(L=!0,M.V1.error(34));let[{inst:i},s]=a.useState({inst:{value:n,getSnapshot:t}});return z?a.useLayoutEffect(()=>{Object.assign(i,{value:n,getSnapshot:t}),U(i)&&s({inst:i})},[e,n,t]):Object.assign(i,{value:n,getSnapshot:t}),a.useEffect(()=>(U(i)&&s({inst:i}),e(function(){U(i)&&s({inst:i})})),[e]),n});function U({value:e,getSnapshot:t}){try{return e!==t()}catch{return!0}}let V=Symbol();function q(e,...[t]){return(function(e,t,r){let n=[r.queryManager,e.startsWith("use")?a.useContext((0,N.l)()):void 0],i=t;for(let t of n){let r=t?.[I]?.[e];r&&(i=r(i))}return i})("useQuery",Z,(0,C.m)("object"==typeof t?t.client:void 0))(e,t)}function Z(e,t={}){var r,n,s,l,u,c,d,h;let f=(0,C.m)("object"==typeof t?t.client:void 0),{ssr:p}="object"==typeof t?t:{},m=function(e,t){let r=a.useRef(void 0);return r.current&&(0,i.L)(r.current.deps,t)||(r.current={value:e(),deps:t}),r.current.value}(()=>{if(n===A){let e=(0,S.l)(s,{query:r,fetchPolicy:"standby"});return e[H]=!0,e}let e=(0,S.l)(s,{...n,query:r});return n.skip&&(e.initialFetchPolicy=n.initialFetchPolicy||n.fetchPolicy,e.fetchPolicy="standby"),e},[r=e,n=t,s=f.defaultOptions.watchQuery]);function g(t){let r=f.watchQuery(m);return{client:f,query:e,observable:r,resultData:{current:r.getCurrentResult(),previousData:t?.resultData.current.data,variables:r.variables}}}let[_,y]=a.useState(g);(f!==_.client||e!==_.query)&&y(_=g(_));let{observable:v,resultData:b}=_;l=m,u=v,l.fetchPolicy||(l.fetchPolicy=u.options.initialFetchPolicy),function(e,t,r){if(t[V]&&!(0,i.L)(t[V],r)){var n,a;t[V][H]&&!r.initialFetchPolicy&&(r.initialFetchPolicy=r.fetchPolicy),(n=t[V],a=r,n.query===a.query&&(0,i.L)(n.variables,a.variables)&&(n.fetchPolicy===a.fetchPolicy||"standby"!==a.fetchPolicy&&"standby"!==n.fetchPolicy))?t.applyOptions(r):t.reobserve(r);let s=t.getCurrentResult();(0,i.L)(s.data,e.current.data)||(e.previousData=e.current.data||e.previousData),e.current=s,e.variables=t.variables}t[V]=r}(b,v,m);let w=(c=v,d=b,h=p,B(a.useCallback(e=>{let t=c.pipe((0,o.Q)(E)).subscribe(t=>{let r=d.current;(0,i.L)(r,t)&&(0,i.L)(d.variables,c.variables)||(d.variables=c.variables,r.data&&!(0,i.L)(r.data,t.data)&&(d.previousData=r.data),d.current=t,e())});return()=>{setTimeout(()=>t.unsubscribe())}},[c,d]),()=>d.current,()=>!1===h?q.ssrDisabledResult:d.current)),k=a.useMemo(()=>({refetch:v.refetch.bind(v),fetchMore:v.fetchMore.bind(v),updateQuery:v.updateQuery.bind(v),startPolling:v.startPolling.bind(v),stopPolling:v.stopPolling.bind(v),subscribeToMore:v.subscribeToMore.bind(v)}),[v]),x=b.previousData;return a.useMemo(()=>{let{partial:e,...t}=w;return{...t,client:f,observable:v,variables:v.variables,previousData:x,...k}},[w,f,v,x,k])}let H=Symbol();q.ssrDisabledResult=(0,T.G)({loading:!0,data:void 0,dataState:"empty",error:void 0,networkStatus:x.p.loading,partial:!0})},19124:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4902),i=r(77262),a=r(20583),s=r(87560),o=n.__importDefault(r(31774)),l=function(){function e(t,r){if(!(this&&this instanceof e?this.constructor:void 0))throw TypeError("Intl.RelativeTimeFormat must be called with 'new'");return(0,a.InitializeRelativeTimeFormat)(this,t,r,{getInternalSlots:o.default,availableLocales:e.availableLocales,relevantExtensionKeys:e.relevantExtensionKeys,localeData:e.localeData,getDefaultLocale:e.getDefaultLocale})}return e.prototype.format=function(e,t){if("object"!=typeof this)throw TypeError("format was called on a non-object");if(!(0,o.default)(this).initializedRelativeTimeFormat)throw TypeError("format was called on a invalid context");return(0,s.PartitionRelativeTimePattern)(this,Number(e),(0,i.ToString)(t),{getInternalSlots:o.default}).map(function(e){return e.value}).join("")},e.prototype.formatToParts=function(e,t){if("object"!=typeof this)throw TypeError("formatToParts was called on a non-object");if(!(0,o.default)(this).initializedRelativeTimeFormat)throw TypeError("formatToParts was called on a invalid context");return(0,s.PartitionRelativeTimePattern)(this,Number(e),(0,i.ToString)(t),{getInternalSlots:o.default})},e.prototype.resolvedOptions=function(){if("object"!=typeof this)throw TypeError("resolvedOptions was called on a non-object");var e=(0,o.default)(this);if(!e.initializedRelativeTimeFormat)throw TypeError("resolvedOptions was called on a invalid context");return{locale:e.locale,style:e.style,numeric:e.numeric,numberingSystem:e.numberingSystem}},e.supportedLocalesOf=function(t,r){return(0,i.SupportedLocales)(e.availableLocales,(0,i.CanonicalizeLocaleList)(t),r)},e.__addLocaleData=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=0;n<t.length;n++){var i=t[n],a=i.data,s=i.locale,o=new Intl.Locale(s).minimize().toString();e.localeData[s]=e.localeData[o]=a,e.availableLocales.add(o),e.availableLocales.add(s),e.__defaultLocale||(e.__defaultLocale=o)}},e.getDefaultLocale=function(){return e.__defaultLocale},e.localeData={},e.availableLocales=new Set,e.__defaultLocale="",e.relevantExtensionKeys=["nu"],e.polyfilled=!0,e}();t.default=l;try{"undefined"!=typeof Symbol&&Object.defineProperty(l.prototype,Symbol.toStringTag,{value:"Intl.RelativeTimeFormat",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype.constructor,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(l.supportedLocalesOf,"length",{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(e){}},19650:(e,t,r)=>{"use strict";r.d(t,{V1:()=>d,vA:()=>f});var n=r(1300),i=r(63605),a=r(84918),s=r(29503);let o="Invariant Violation";class l extends Error{constructor(e=o){super(e),this.name=o,Object.setPrototypeOf(this,l.prototype)}}let u=["debug","log","warn","error","silent"],c=u.indexOf(n.g?"log":"silent");function d(e,...t){if(!e)throw f(...t)}function h(e){return function(t,...r){if(u.indexOf(e)>=c){let n=console[e]||console.log;if("number"==typeof t){let e=t;(t=g(e))||(t=_(e,r),r=[])}n(t,...r)}}}function f(e,...t){return new l(g(e,t)||_(e,t))}d.debug=h("debug"),d.log=h("log"),d.warn=h("warn"),d.error=h("error");let p=Symbol.for("ApolloErrorMessageHandler_"+a.r);function m(e){if("string"==typeof e)return e;try{return(0,s.p)(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function g(e,t=[]){if(e)return i.A[p]&&i.A[p](e,t.map(m))}function _(e,t=[]){if(e)return"string"==typeof e?t.reduce((e,t)=>e.replace(/%[sdfo]/,m(t)),e):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:a.r,message:e,args:t.map(m)}))}`}},20583:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InitializeRelativeTimeFormat=function(e,t,r,s){var o=s.getInternalSlots,l=s.availableLocales,u=s.relevantExtensionKeys,c=s.localeData,d=s.getDefaultLocale,h=o(e);h.initializedRelativeTimeFormat=!0;var f=(0,n.CanonicalizeLocaleList)(t),p=Object.create(null),m=(0,n.CoerceOptionsToObject)(r);p.localeMatcher=(0,n.GetOption)(m,"localeMatcher","string",["best fit","lookup"],"best fit");var g=(0,n.GetOption)(m,"numberingSystem","string",void 0,void 0);if(void 0!==g&&!a.test(g))throw RangeError("Invalid numbering system ".concat(g));p.nu=g;var _=(0,i.ResolveLocale)(l,f,p,u,c,d),y=_.locale,v=_.nu;h.locale=y,h.style=(0,n.GetOption)(m,"style","string",["long","narrow","short"],"long"),h.numeric=(0,n.GetOption)(m,"numeric","string",["always","auto"],"always");var b=c[_.dataLocale];return(0,n.invariant)(!!b,"Missing locale data for ".concat(_.dataLocale)),h.fields=b,h.numberFormat=(0,n.createMemoizedNumberFormat)(t),h.pluralRules=(0,n.createMemoizedPluralRules)(t),h.numberingSystem=v,e};var n=r(77262),i=r(83792),a=/^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i},20996:(e,t,r)=>{"use strict";r.d(t,{L:()=>o});let{toString:n,hasOwnProperty:i}=Object.prototype,a=Function.prototype.toString,s=new Map;function o(e,t){try{return function e(t,r){if(t===r)return!0;let s=n.call(t);if(s!==n.call(r))return!1;switch(s){case"[object Array]":if(t.length!==r.length)break;case"[object Object]":{if(d(t,r))return!0;let n=l(t),a=l(r),s=n.length;if(s!==a.length)return!1;for(let e=0;e<s;++e)if(!i.call(r,n[e]))return!1;for(let i=0;i<s;++i){let a=n[i];if(!e(t[a],r[a]))return!1}return!0}case"[object Error]":return t.name===r.name&&t.message===r.message;case"[object Number]":if(t!=t)return r!=r;case"[object Boolean]":case"[object Date]":return+t==+r;case"[object RegExp]":case"[object String]":return t==`${r}`;case"[object Map]":case"[object Set]":{if(t.size!==r.size)return!1;if(d(t,r))return!0;let n=t.entries(),i="[object Map]"===s;for(;;){let t=n.next();if(t.done)break;let[a,s]=t.value;if(!r.has(a)||i&&!e(s,r.get(a)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),r=new Uint8Array(r);case"[object DataView]":{let e=t.byteLength;if(e===r.byteLength)for(;e--&&t[e]===r[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let e=a.call(t);if(e!==a.call(r))return!1;return!function(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(e,c)}}return!1}(e,t)}finally{s.clear()}}function l(e){return Object.keys(e).filter(u,e)}function u(e){return void 0!==this[e]}let c="{ [native code] }";function d(e,t){let r=s.get(e);if(r){if(r.has(t))return!0}else s.set(e,r=new Set);return r.add(t),!1}},21429:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14232);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...a}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},a),r?n.createElement("title",{id:i},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5"}))})},22249:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingularRelativeTimeUnit=function(e){if((0,n.invariant)("String"===(0,n.Type)(e),"unit must be a string"),"seconds"===e)return"second";if("minutes"===e)return"minute";if("hours"===e)return"hour";if("days"===e)return"day";if("weeks"===e)return"week";if("months"===e)return"month";if("quarters"===e)return"quarter";if("years"===e)return"year";if("second"!==e&&"minute"!==e&&"hour"!==e&&"day"!==e&&"week"!==e&&"month"!==e&&"quarter"!==e&&"year"!==e)throw RangeError("invalid unit");return e};var n=r(77262)},22641:(e,t,r)=>{"use strict";r.d(t,{W:()=>n});let n={createInterruptionMessage:e=>({id:"interruption-".concat(Date.now()),role:"assistant",content:"⚠️ **Operation Interrupted**\n\nThe current operation was stopped by user request.\n\n**Status at interruption:**\n- Current phase: ".concat({submitted:"request processing",streaming:"response generation",error:"error handling",ready:"idle state"}[e]||e,"\n- Remaining tasks may not have been completed\n- You can start a new request at any time\n\n*The system is ready for your next command.*")}),hasIncompleteToolInvocations:e=>"assistant"===e.role&&!!e.parts&&e.parts.some(e=>"tool-invocation"===e.type&&e.toolInvocation&&(!e.toolInvocation.result||"call"===e.toolInvocation.state)),filterCompleteMessages(e){return e.filter(e=>!this.hasIncompleteToolInvocations(e))}}},23045:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InitializePluralRules=function(e,t,r,a){var s=a.availableLocales,o=a.relevantExtensionKeys,l=a.localeData,u=a.getDefaultLocale,c=a.getInternalSlots,d=(0,n.CanonicalizeLocaleList)(t),h=Object.create(null),f=(0,n.CoerceOptionsToObject)(r),p=c(e);return p.initializedPluralRules=!0,h.localeMatcher=(0,n.GetOption)(f,"localeMatcher","string",["best fit","lookup"],"best fit"),p.locale=(0,i.ResolveLocale)(s,d,h,o,l,u).locale,p.type=(0,n.GetOption)(f,"type","string",["cardinal","ordinal"],"cardinal"),(0,n.SetNumberFormatDigitOptions)(p,f,0,3,"standard"),e};var n=r(77262),i=r(83792)},23356:(e,t,r)=>{"use strict";function n(e){return null!==e&&"object"==typeof e}r.d(t,{U:()=>n})},23520:(e,t,r)=>{"use strict";var n=r(68128),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function l(e){return n.isMemo(e)?s:o[e.$$typeof]||i}o[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[n.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=f(r);i&&i!==p&&e(t,i,n)}var s=c(r);d&&(s=s.concat(d(r)));for(var o=l(t),m=l(r),g=0;g<s.length;++g){var _=s[g];if(!a[_]&&!(n&&n[_])&&!(m&&m[_])&&!(o&&o[_])){var y=h(r,_);try{u(t,_,y)}catch(e){}}}}return t}},25977:(e,t,r)=>{"use strict";r.d(t,{l:()=>i});var n=r(36956);function i(e,t){return(0,n.o)(e,t,t.variables&&{variables:(0,n.o)({...e&&e.variables,...t.variables})})}},26382:(e,t,r)=>{"use strict";r.d(t,{$x:()=>s,Ei:()=>l,IF:()=>a,O4:()=>n,Zo:()=>o});var n,i=r(4902);!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(n||(n={}));var a=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return(0,i.__extends)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),s=function(e){function t(t,r,i,a){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),n.INVALID_VALUE,a)||this}return(0,i.__extends)(t,e),t}(a),o=function(e){function t(t,r,i){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),n.INVALID_VALUE,i)||this}return(0,i.__extends)(t,e),t}(a),l=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),n.MISSING_VALUE,r)||this}return(0,i.__extends)(t,e),t}(a)},27279:(e,t,r)=>{"use strict";r.d(t,{m:()=>a});var n=r(18003),i=r(50543);function a(e){i.f.setTimeout(function(){var t=n.$.onUnhandledError;if(t)t(e);else throw e})}},27451:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(96427),i=r(14232),a=r(79350),s=r(18885),o=r(77742);function l(){let e=(0,n._)(["\n query ShopStatus {\n countriesCount\n currenciesCount\n languagesCount\n productsCount\n assortmentsCount\n filtersCount\n deliveryProvidersCount\n paymentProvidersCount\n }\n"]);return l=function(){return e},e}let u=(0,a.J1)(l()),c=()=>{let{formatMessage:e}=(0,o.A)(),{data:t,loading:r,error:n}=(0,s.I)(u);return{configuration:(0,i.useMemo)(()=>{let r={...(e=>({currenciesCount:{id:"currencies",title:e({id:"currencies",defaultMessage:"Currencies"}),description:e({id:"currency_config_description",defaultMessage:"Set up currencies for pricing and payments"}),isRequired:!0,setupUrl:"/currency/new",category:"essential",estimatedTime:"2 min",icon:"currency",isComplete:!1},countriesCount:{id:"countries",title:e({id:"countries",defaultMessage:"Countries"}),description:e({id:"countries_config_description",defaultMessage:"Configure countries and assign default currencies"}),isRequired:!0,setupUrl:"/country/new",category:"essential",estimatedTime:"2 min",icon:"globe",isComplete:!1},languagesCount:{id:"languages",title:e({id:"languages",defaultMessage:"Languages"}),description:e({id:"language_config_description",defaultMessage:"Configure languages for content localization"}),isRequired:!0,setupUrl:"/language/new",category:"essential",estimatedTime:"2 min",icon:"language",isComplete:!1},paymentProvidersCount:{id:"payment",title:e({id:"payment_processing",defaultMessage:"Payment Processing"}),description:e({id:"payment_processing_config_description",defaultMessage:"Invoice payment provider is already configured"}),isRequired:!0,setupUrl:"/payment-provider/new",category:"commerce",estimatedTime:"10 min",icon:"credit-card",isComplete:!1},deliveryProvidersCount:{id:"delivery",title:e({id:"delivery_processing",defaultMessage:"Shipping & Delivery"}),description:e({id:"delivery_processing_config_description",defaultMessage:"Delivery methods are already configured"}),isRequired:!0,setupUrl:"/delivery-provider/new",category:"commerce",estimatedTime:"10 min",icon:"truck",isComplete:!1},productsCount:{id:"products",title:e({id:"products",defaultMessage:"Products"}),description:e({id:"products_config_description",defaultMessage:"Create your first products"}),isRequired:!0,setupUrl:"/products/new",category:"content",estimatedTime:"5 min",icon:"cube",isComplete:!1},assortmentsCount:{id:"assortments",title:e({id:"assortments",defaultMessage:"Assortments"}),description:e({id:"assortment_config_description",defaultMessage:"Organize products into categories"}),isRequired:!1,setupUrl:"/assortments/new",category:"content",estimatedTime:"3 min",icon:"folder",isComplete:!1}}))(e)};if(t)for(let e of Object.keys(r))r[e]={...r[e],isComplete:(null==t?void 0:t[e])>0};return(e=>{let t=Object.values(e),r=t.filter(e=>e.isComplete),n=t.filter(e=>e.isRequired),i=n.filter(e=>e.isComplete),a=t.filter(e=>"essential"===e.category),s=t.filter(e=>"commerce"===e.category),o=t.filter(e=>"content"===e.category);return{steps:e,completedSteps:r,overallProgress:Math.round(r.length/t.length*100),isFullyConfigured:i.length===n.length,essentialStepsComplete:a.every(e=>e.isComplete),commerceStepsComplete:s.filter(e=>e.isRequired).every(e=>e.isComplete),contentStepsComplete:o.every(e=>e.isComplete),essentialSteps:a,commerceSteps:s,contentSteps:o}})(r)},[t]),loading:r,error:n}}},27639:(e,t,r)=>{"use strict";let n,i,a,s;r.d(t,{L:()=>nW});var o,l=r(14232),u=r(94410),c=r.n(u),d=r(69964),h=r.n(d),f=r(11771),p=r(52249),m="function"==typeof Symbol&&Symbol.observable||"@@observable";function g(e){return e}var _=r(18003),y=r(65402),v=r(54283),b=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n=this,i=!function(e){return e&&e instanceof f.vU||e&&(0,y.T)(e.next)&&(0,y.T)(e.error)&&(0,y.T)(e.complete)&&(0,p.Uv)(e)}(e)?new f.Ms(e,t,r):e;return(0,v.Y)(function(){var e=n.operator,t=n.source;i.add(e?e.call(i,t):t?n._subscribe(i):n._trySubscribe(i))}),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=w(t))(function(t,n){var i=new f.Ms({next:function(t){try{e(t)}catch(e){n(e),i.unsubscribe()}},error:n,complete:t});r.subscribe(i)})},e.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},e.prototype[m]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?g:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=w(e))(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}();function w(e){var t;return null!=(t=null!=e?e:_.$.Promise)?t:Promise}var k=new b(function(e){return e.complete()});function E(e,t){return e.definitions.find(e=>"OperationDefinition"===e.kind&&!!e.name)?.name.value??t}function x(){}let S="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},T="undefined"!=typeof WeakMap?WeakMap:Map,A="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:x,unregister:x}};class I{constructor(e=1/0,t=x){this.max=e,this.dispose=t,this.map=new T,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){let t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);let r=t.key;delete t.key,t.keyRef=new S(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new A(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;let t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){let t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var N=r(58287),C=r(77016),O=r(86158),P=r(94587);let D=Object.freeze({});function M(e,t,r=O.aD){let n,i,a,s=new Map;for(let e of Object.values(P.b))s.set(e,function(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let o=Array.isArray(e),l=[e],u=-1,c=[],d=e,h=[],f=[];do{var p,m,g;let e,_=++u===l.length,y=_&&0!==c.length;if(_){if(i=0===f.length?void 0:h[h.length-1],d=a,a=f.pop(),y)if(o){d=d.slice();let e=0;for(let[t,r]of c){let n=t-e;null===r?(d.splice(n,1),e++):d[n]=r}}else for(let[e,t]of(d={...d},c))d[e]=t;u=n.index,l=n.keys,c=n.edits,o=n.inArray,n=n.prev}else if(a){if(null==(d=a[i=o?u:l[u]]))continue;h.push(i)}if(!Array.isArray(d)){(0,O.Ll)(d)||(0,N.U)(!1,`Invalid AST Node: ${(0,C.N)(d)}.`);let r=_?null==(p=s.get(d.kind))?void 0:p.leave:null==(m=s.get(d.kind))?void 0:m.enter;if((e=null==r?void 0:r.call(t,d,i,a,h,f))===D)break;if(!1===e){if(!_){h.pop();continue}}else if(void 0!==e&&(c.push([i,e]),!_))if((0,O.Ll)(e))d=e;else{h.pop();continue}}void 0===e&&y&&c.push([i,d]),_?h.pop():(n={inArray:o,index:u,keys:l,edits:c,prev:n},l=(o=Array.isArray(d))?d:null!=(g=r[d.kind])?g:[],u=-1,c=[],a&&f.push(a),a=d)}while(void 0!==n);return 0!==c.length?c[c.length-1][1]:e}let L=()=>Object.create(null),{forEach:R,slice:F}=Array.prototype,{hasOwnProperty:j}=Object.prototype;class z{constructor(e=!0,t=L){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return R.call(e,e=>t=t.getChildTrie(e)),j.call(t,"data")?t.data:t.data=this.makeData(F.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){let n=t.mapFor(e[r],!1);t=n&&n.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let r=e[0],n=this.mapFor(r,!1),i=n&&n.get(r);i&&(t=i.removeArray(F.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||n.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),r=t.get(e);return r||t.set(e,r=new z(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}function B(){}class U{constructor(e=1/0,t=B){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}let V=null,q={},Z=1;function H(e){try{return e()}catch(e){}}let $="@wry/context:Slot",G=H(()=>globalThis)||H(()=>global)||Object.create(null),W=G[$]||Array[$]||function(e){try{Object.defineProperty(G,$,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",Z++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=V;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===q)break;return e!==V&&(V.slots[this.id]=t),!0}return V&&(V.slots[this.id]=q),!1}getValue(){if(this.hasValue())return V.slots[this.id]}withValue(e,t,r,n){let i={__proto__:null,[this.id]:e},a=V;V={parent:a,slots:i};try{return t.apply(n,r)}finally{V=a}}static bind(e){let t=V;return function(){let r=V;try{return V=t,e.apply(this,arguments)}finally{V=r}}}static noContext(e,t,r){if(!V)return e.apply(r,t);{let n=V;try{return V=null,e.apply(r,t)}finally{V=n}}}}),{bind:K,noContext:Q}=W,J=new W,{hasOwnProperty:Y}=Object.prototype,X=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function ee(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let et=[];function er(e,t){if(!e)throw Error(t||"assertion failure")}function en(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function ei(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class ea{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++ea.count}peek(){if(1===this.value.length&&!el(this))return es(this),this.value[0]}recompute(e){var t,r,n;return er(!this.recomputing,"already recomputing"),es(this),el(this)?(t=this,r=e,ef(t),J.withValue(t,eo,[t,r]),function(e,t){if("function"==typeof e.subscribe)try{ee(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(t,r)&&((n=t).dirty=!1,el(n)||function(e){eu(e,ed)}(n)),ei(t.value)):ei(this.value)}setDirty(){var e;this.dirty||(this.dirty=!0,e=this,eu(e,ec),ee(this))}dispose(){this.setDirty(),ef(this),eu(this,(e,t)=>{e.setDirty(),ep(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=et.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(X(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),et.push(this.deps),this.deps=null)}}function es(e){let t=J.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),el(e)?ec(t,e):ed(t,e),t}function eo(e,t){let r;e.recomputing=!0;let{normalizeResult:n}=e;n&&1===e.value.length&&(r=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!en(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function el(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}ea.count=0;function eu(e,t){let r=e.parents.size;if(r){let n=X(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function ec(e,t){er(e.childValues.has(t)),er(el(t));let r=!el(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=et.pop()||new Set;e.dirtyChildren.add(t),r&&eu(e,ec)}function ed(e,t){er(e.childValues.has(t)),er(!el(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):en(r,t.value)||e.setDirty(),eh(e,t),el(e)||eu(e,ed)}function eh(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(et.length<100&&et.push(r),e.dirtyChildren=null))}function ef(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{ep(e,r)}),e.forgetDeps(),er(null===e.dirtyChildren)}function ep(e,t){t.parents.delete(e),e.childValues.delete(t),eh(e,t)}let em={setDirty:!0,dispose:!0,forget:!0};function eg(e){let t=new Map,r=e&&e.subscribe;function n(e){let n=J.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(ee(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){let n=t.get(e);if(n){let i=r&&Y.call(em,r)?r:"setDirty";X(n).forEach(e=>e[i]()),t.delete(e),ee(n)}},n}function e_(...e){return(n||(n=new z("function"==typeof WeakMap))).lookupArray(e)}let ey=new Set;function ev(e,{max:t=65536,keyArgs:r,makeCacheKey:n=e_,normalizeResult:i,subscribe:a,cache:s=U}=Object.create(null)){let o="function"==typeof s?new s(t,e=>e.dispose()):s,l=function(){let t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let s=o.get(t);s||(o.set(t,s=new ea(e)),s.normalizeResult=i,s.subscribe=a,s.forget=()=>o.delete(t));let l=s.recompute(Array.prototype.slice.call(arguments));return o.set(t,s),ey.add(o),J.hasValue()||(ey.forEach(e=>e.clean()),ey.clear()),l};function u(e){let t=e&&o.get(e);t&&t.setDirty()}function c(e){let t=e&&o.get(e);if(t)return t.peek()}function d(e){return!!e&&o.delete(e)}return Object.defineProperty(l,"size",{get:()=>o.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:a,cache:o}),l.dirtyKey=u,l.dirty=function(){u(n.apply(null,arguments))},l.peekKey=c,l.peek=function(){return c(n.apply(null,arguments))},l.forgetKey=d,l.forget=function(){return d(n.apply(null,arguments))},l.makeCacheKey=n,l.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(l)}var eb=r(1300),ew=r(19650),ek=r(63605);let eE=Symbol.for("apollo.cacheSize"),ex={...ek.A[eE]},eS=ev((e,t)=>{(0,ew.V1)(e&&"Document"===e.kind,1);let r=e.definitions.filter(e=>"OperationDefinition"===e.kind);eb.g&&(e.definitions.forEach(e=>{if("OperationDefinition"!==e.kind&&"FragmentDefinition"!==e.kind)throw(0,ew.vA)(2,e.kind)}),(0,ew.V1)(r.length<=1,3,r.length)),t&&(0,ew.V1)(1==r.length&&r[0].operation===t,4,t,t,r[0].operation),M(e,{Field(t,n,i,a){if(t.alias&&("__typename"===t.alias.value||t.alias.value.startsWith("__ac_"))&&t.alias.value!==t.name.value){let n=e,i=[];for(let e of a)(n=n[e]).kind===P.b.FIELD&&i.push(n.alias?.value||n.name.value);throw i.splice(-1,1,t.name.value),(0,ew.vA)(5,t.alias.value,i.join("."),r[0].operation,E(e,"(anonymous)"))}}})},{max:ex.checkDocument||2e3,cache:I});function eT(e){return eS(e),e.definitions.filter(e=>"OperationDefinition"===e.kind)[0]}class eA{static empty(){return new eA(()=>k)}static from(e){if(0===e.length)return eA.empty();let[t,...r]=e;return t.concat(...r)}static split(e,t,r=new eA((e,t)=>t(e))){return Object.assign(new eA((n,i)=>{let a=e(n);return eb.g&&"boolean"!=typeof a&&eb.g&&ew.V1.warn(61,a),a?t.request(n,i):r.request(n,i)}),{left:t,right:r})}static execute(e,t,r){return e.request(function(e,{client:t}){let r={query:e.query,variables:e.variables||{},extensions:e.extensions||{},operationName:E(e.query),operationType:eT(e.query).operation},n={...e.context},i=()=>Object.freeze({...n});return Object.defineProperty(r,"setContext",{enumerable:!1,value:e=>{n="function"==typeof e?{...n,...e(i())}:{...n,...e}}}),Object.defineProperty(r,"getContext",{enumerable:!1,value:i}),Object.defineProperty(r,"client",{enumerable:!1,value:t}),r}(t,r),()=>(eb.g&&eb.g&&ew.V1.warn(62),k))}static concat(...e){return eA.from(e)}constructor(e){e&&(this.request=e)}split(e,t,r){return this.concat(eA.split(e,t,r))}concat(...e){return 0===e.length?this:e.reduce(this.combine.bind(this),this)}combine(e,t){return Object.assign(new eA((r,n)=>e.request(r,e=>t.request(e,n))),{left:e,right:t})}request(e,t){throw(0,ew.vA)(63)}left;right}var eI=r(36956);class eN extends eA{constructor(e={}){super((t,r)=>{let n=t.client,i=n.queryManager.clientOptions,a=t.getContext();{let{name:r,version:n,transport:s="headers"}=(0,eI.o)({},i.clientAwareness,e.clientAwareness,a.clientAwareness);"headers"===s&&t.setContext(({headers:e,extensions:t})=>({headers:(0,eI.o)({"apollographql-client-name":r,"apollographql-client-version":n},e)}))}{let{transport:r="extensions"}=(0,eI.o)({},i.enhancedClientAwareness,e.enhancedClientAwareness);"extensions"===r&&(t.extensions=(0,eI.o)({clientLibrary:{name:"@apollo/client",version:n.version}},t.extensions))}return r(t)})}}function eC(e,t){return eT(e)?.operation===t}var eO=r(68906);function eP(e,t){return"object"==typeof e&&null!==e&&e[Symbol.for("apollo.error")]===t}function eD(e){Object.defineProperty(e,Symbol.for("apollo.error"),{value:e.name,enumerable:!1,writable:!1,configurable:!1})}function eM(e){return e.map(e=>e.message||"Error message not found.").join("\n")}class eL extends Error{static is(e){return eP(e,"CombinedProtocolErrors")}static formatMessage=eM;errors;constructor(e){super(eL.formatMessage(e,{defaultFormatMessage:eM})),this.name="CombinedProtocolErrors",this.errors=e,eD(this),Object.setPrototypeOf(this,eL.prototype)}}class eR extends Error{static is(e){return eP(e,"UnconventionalError")}constructor(e){super("An error of unexpected shape occurred.",{cause:e}),this.name="UnconventionalError",eD(this),Object.setPrototypeOf(this,eR.prototype)}}let eF=Symbol();function ej(e){return"extensions"in e&&eL.is(e.extensions[eF])}function ez(e){return null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name&&("string"==typeof e.stack||void 0===e.stack)?e:"string"==typeof e?Error(e,{cause:e}):new eR(e)}class eB extends Error{static is(e){return eP(e,"ServerError")}response;statusCode;bodyText;constructor(e,t){super(e),this.name="ServerError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,eD(this),Object.setPrototypeOf(this,eB.prototype)}}class eU extends Error{static is(e){return eP(e,"ServerParseError")}response;statusCode;bodyText;constructor(e,t){super(e instanceof Error?e.message:"Could not parse server response",{cause:e}),this.name="ServerParseError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,eD(this),Object.setPrototypeOf(this,eU.prototype)}}var eV=r(23356);let{hasOwnProperty:eq}=Object.prototype;async function*eZ(e){let t,r=new TextDecoder("utf-8"),n=e.headers?.get("content-type"),i=n?.match(/;\s*boundary=(?:'([^']+)'|"([^"]+)"|([^"'].+?))\s*(?:;|$)/i),a="\r\n--"+(i?.findLast(e=>!!e)||"-"),s="";(0,ew.V1)(e.body&&"function"==typeof e.body.getReader,60);let o=e.body.getReader(),l=!1,u=!1,c=()=>u&&"-"==s[0]&&"-"==s[1];try{for(;!l;){({value:t,done:l}=await o.read());let e="string"==typeof t?t:r.decode(t),n=s.length-a.length+1,i=(s+=e).indexOf(a,n);for(;i>-1&&!c();){let e;u=!0,[e,s]=[s.slice(0,i),s.slice(i+a.length)];let t=e.indexOf("\r\n\r\n"),r=function(e){let t={};return e.split("\n").forEach(e=>{let r=e.indexOf(":");if(r>-1){let n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(e.slice(0,t))["content-type"];if(r&&-1===r.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");let n=e.slice(t);n&&(yield n),i=s.indexOf(a)}if(c())return}throw Error("premature end of multipart body")}finally{o.cancel()}}async function eH(e,t){for await(let r of eZ(e)){let n=e$(e,r);if(0!=Object.keys(n).length)if((0,eV.U)(n)&&"payload"in n){if(1===Object.keys(n).length&&null===n.payload)return;let e={...n.payload};"errors"in n&&(e.extensions={...e.extensions,[eF]:new eL(n.errors??[])}),t(e)}else t(n)}}function e$(e,t){if(e.status>=300)throw new eB(`Response not successful: Received status code ${e.status}`,{response:e,bodyText:t});try{return JSON.parse(t)}catch(r){throw new eU(r,{response:e,bodyText:t})}}var eG=r(47518);let eW=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function eK(e){return eQ[e.charCodeAt(0)]}let eQ=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],eJ={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>eY(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=e0("(",eY(e.variableDefinitions,", "),")"),r=eY([e.operation,eY([e.name,t]),eY(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+e0(" = ",r)+e0(" ",eY(n," "))},SelectionSet:{leave:({selections:e})=>eX(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let a=e0("",e,": ")+t,s=a+e0("(",eY(r,", "),")");return s.length>80&&(s=a+e0("(\n",e1(eY(r,"\n")),"\n)")),eY([s,eY(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+e0(" ",eY(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>eY(["...",e0("on ",e),eY(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${e0("(",eY(r,", "),")")} on ${t} ${e0("",eY(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,eG.yo)(e):`"${e.replace(eW,eK)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+eY(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+eY(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+e0("(",eY(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>e0("",e,"\n")+eY(["schema",eY(t," "),eX(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>e0("",e,"\n")+eY(["scalar",t,eY(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>e0("",e,"\n")+eY(["type",t,e0("implements ",eY(r," & ")),eY(n," "),eX(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>e0("",e,"\n")+t+(e2(r)?e0("(\n",e1(eY(r,"\n")),"\n)"):e0("(",eY(r,", "),")"))+": "+n+e0(" ",eY(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>e0("",e,"\n")+eY([t+": "+r,e0("= ",n),eY(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>e0("",e,"\n")+eY(["interface",t,e0("implements ",eY(r," & ")),eY(n," "),eX(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>e0("",e,"\n")+eY(["union",t,eY(r," "),e0("= ",eY(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>e0("",e,"\n")+eY(["enum",t,eY(r," "),eX(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>e0("",e,"\n")+eY([t,eY(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>e0("",e,"\n")+eY(["input",t,eY(r," "),eX(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>e0("",e,"\n")+"directive @"+t+(e2(r)?e0("(\n",e1(eY(r,"\n")),"\n)"):e0("(",eY(r,", "),")"))+(n?" repeatable":"")+" on "+eY(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>eY(["extend schema",eY(e," "),eX(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>eY(["extend scalar",e,eY(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>eY(["extend type",e,e0("implements ",eY(t," & ")),eY(r," "),eX(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>eY(["extend interface",e,e0("implements ",eY(t," & ")),eY(r," "),eX(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>eY(["extend union",e,eY(t," "),e0("= ",eY(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>eY(["extend enum",e,eY(t," "),eX(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>eY(["extend input",e,eY(t," "),eX(r)]," ")}};function eY(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function eX(e){return e0("{\n",e1(eY(e,"\n")),"\n}")}function e0(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function e1(e){return e0(" ",e.replace(/\n/g,"\n "))}function e2(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}let e5=new WeakSet;function e3(e){!(e.size<=(e.max||-1))&&(e5.has(e)||(e5.add(e),setTimeout(()=>{e.clean(),e5.delete(e)},100)))}let e4=function(e,t){let r=new I(e,t);return r.set=function(e,t){let r=I.prototype.set.call(this,e,t);return e3(this),r},r},e9=function(e,t){let r=new U(e,t);return r.set=function(e,t){let r=U.prototype.set.call(this,e,t);return e3(this),r},r},e6={},e7=Object.assign(e=>{let t=i.get(e);return t||(t=M(e,eJ),i.set(e,t)),t},{reset(){i=new e4(ex.print||2e3)}});e7.reset(),eb.g&&(e6.print=()=>i?i.size:0);let e8={http:{includeQuery:!0,includeExtensions:!0,preserveHeaderCase:!1},headers:{accept:"application/graphql-response+json,application/json;q=0.9","content-type":"application/json"},options:{method:"POST"}},te=(e,t)=>t(e),tt=(0,eO.n)(()=>fetch);function tr(){}class tn extends eA{constructor(e={}){let{uri:t="/graphql",fetch:r,print:n=te,includeExtensions:i,preserveHeaderCase:a,useGETForQueries:s,includeUnusedVariables:o=!1,...l}=e;eb.g&&(0,ew.V1)(r||tt||"undefined"!=typeof fetch,59);let u={http:(0,eI.o)({includeExtensions:i,preserveHeaderCase:a}),options:l.fetchOptions,credentials:l.credentials,headers:l.headers};super(e=>{let i=((e,t)=>{let r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")})(e,t),a=e.getContext(),l={...a.http};eC(e.query,"subscription")&&(l.accept=["multipart/mixed;boundary=graphql;subscriptionSpec=1.0",...l.accept||[]]);let{options:c,body:d}=function(e,t,...r){let n={},i={};r.forEach(e=>{n={...n,...e.options,headers:{...n.headers,...e.headers}},e.credentials&&(n.credentials=e.credentials),n.headers.accept=(e.http?.accept||[]).concat(n.headers.accept).join(","),i={...i,...e.http}}),n.headers=function(e,t){if(!t){let t={};return Object.keys(Object(e)).forEach(r=>{t[r.toLowerCase()]=e[r]}),t}let r={};Object.keys(Object(e)).forEach(t=>{r[t.toLowerCase()]={originalName:t,value:e[t]}});let n={};return Object.keys(r).forEach(e=>{n[r[e].originalName]=r[e].value}),n}(n.headers,i.preserveHeaderCase);let{operationName:a,extensions:s,variables:o,query:l}=e,u={operationName:a,variables:o};return i.includeExtensions&&Object.keys(s||{}).length&&(u.extensions=s),i.includeQuery&&(u.query=t(l,e7)),{options:n,body:u}}(e,n,e8,u,{http:l,options:a.fetchOptions,credentials:a.credentials,headers:a.headers});d.variables&&!o&&(d.variables=function(e,t){let r={...e},n=new Set(Object.keys(e));return M(t,{Variable(e,t,r){r&&"VariableDefinition"!==r.kind&&n.delete(e.name.value)}}),n.forEach(e=>{delete r[e]}),r}(d.variables,e.query));let h=new AbortController,f=()=>{h=void 0};if(c.signal){let e=c.signal,t=()=>{h?.abort(e.reason)};e.addEventListener("abort",t,{once:!0}),f=()=>{h?.signal.removeEventListener("abort",f),h=void 0,e.removeEventListener("abort",t),f=tr},h.signal.addEventListener("abort",f,{once:!0})}return c.signal=h.signal,s&&!eC(e.query,"mutation")&&(c.method="GET"),new b(t=>{if("GET"===c.method){let{newURI:e,parseError:t}=function(e,t){let r=[],n=(e,t)=>{r.push(`${e}=${encodeURIComponent(t)}`)};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){let e;try{e=JSON.stringify(t.variables)}catch(e){return{parseError:e}}n("variables",e)}if(t.extensions){let e;try{e=JSON.stringify(t.extensions)}catch(e){return{parseError:e}}n("extensions",e)}let i="",a=e,s=e.indexOf("#");-1!==s&&(i=e.substr(s),a=e.substr(0,s));let o=-1===a.indexOf("?")?"?":"&";return{newURI:a+o+r.join("&")+i}}(i,d);if(t)throw t;i=e}else c.body=JSON.stringify(d);let n=r||(0,eO.n)(()=>fetch)||tt,a=t.next.bind(t);return n(i,c).then(t=>{e.setContext({response:t});let r=t.headers?.get("content-type");return null!==r&&/^multipart\/mixed/i.test(r)?eH(t,a):(function(e){return t=>t.text().then(r=>{let n=function(e,t){let r=e.headers.get("content-type");if(r?.includes("application/graphql-response+json"))try{return JSON.parse(t)}catch(r){throw new eU(r,{response:e,bodyText:t})}return e$(e,t)}(t,r);if(!Array.isArray(n)&&!eq.call(n,"data")&&!eq.call(n,"errors"))throw new eB(`Server response was malformed for query '${Array.isArray(e)?e.map(e=>e.operationName):e.operationName}'.`,{response:t,bodyText:r});return n})})(e)(t).then(a)}).then(()=>{f(),t.complete()}).catch(e=>{f(),t.error(e)}),()=>{h&&h.abort()}})})}}class ti extends eA{constructor(e={}){let{left:t,right:r,request:n}=eA.from([new eN(e),new tn(e)]);super(n),Object.assign(this,{left:t,right:r})}}var ta=r(65023),ts=r(11357);function to(e,t){return(0,ta.N)(function(r,n){var i=0;r.subscribe((0,ts._)(n,function(r){n.next(e.call(t,r,i++))}))})}function tl(e,t,r){let n=new Set(e),i=n.size;return M(t,{Directive(e){if(n.delete(e.name.value)&&(!r||!n.size))return D}}),r?!n.size:n.size<i}class tu{isIncrementalResult(e){return!1}prepareRequest(e){return(0,ew.V1)(!tl(["defer"],e.query),64),e}extractErrors(){}startRequest=void 0}let tc=eA.execute;function td(e){return e}class th{transform;cached;resultCache=new WeakSet;getCacheKey(e){return[e]}static identity(){return new th(td,{cache:!1})}static split(e,t,r=th.identity()){return Object.assign(new th(n=>(e(n)?t:r).transformDocument(n),{cache:!1}),{left:t,right:r})}constructor(e,t={}){this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}resetCache(){if(this.cached){let e=new z;this.performWork=ev(th.prototype.performWork.bind(this),{makeCacheKey:t=>{let r=this.getCacheKey(t);if(r)return(0,ew.V1)(Array.isArray(r),20),e.lookupArray(r)},max:ex["documentTransform.cache"],cache:I})}}performWork(e){return eS(e),this.transform(e)}transformDocument(e){if(this.resultCache.has(e))return e;let t=this.performWork(e);return this.resultCache.add(t),t}concat(e){return Object.assign(new th(t=>e.transformDocument(this.transformDocument(t)),{cache:!1}),{left:this,right:e})}left;right}var tf=r(25977);function tp(e){return M(e,{FragmentSpread(e){if(!e.directives?.some(({name:e})=>"unmask"===e.value))return null}})}function tm(){throw Error("only supported in development mode")}var tg=r(84918);function t_(e,t){var r=(0,y.T)(e)?e:function(){return e},n=function(e){return e.error(r())};return new b(t?function(e){return t.schedule(n,0,e)}:n)}var ty=r(4902),tv=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function tb(e){return(0,y.T)(null==e?void 0:e.then)}function tw(e){return Symbol.asyncIterator&&(0,y.T)(null==e?void 0:e[Symbol.asyncIterator])}function tk(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 tE="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function tx(e){return(0,y.T)(null==e?void 0:e[tE])}function tS(e){return(0,ty.__asyncGenerator)(this,arguments,function(){var t,r,n;return(0,ty.__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,ty.__await)(t.read())];case 3:if(n=(r=i.sent()).value,!r.done)return[3,5];return[4,(0,ty.__await)(void 0)];case 4:return[2,i.sent()];case 5:return[4,(0,ty.__await)(n)];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 tT(e){return(0,y.T)(null==e?void 0:e.getReader)}var tA=r(27279);function tI(e){if(e instanceof b)return e;if(null!=e){var t,r,n,i;if((0,y.T)(e[m])){return t=e,new b(function(e){var r=t[m]();if((0,y.T)(r.subscribe))return r.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if(tv(e)){return r=e,new b(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()})}if(tb(e)){return n=e,new b(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,tA.m)})}if(tw(e))return tN(e);if(tx(e)){return i=e,new b(function(e){var t,r;try{for(var n=(0,ty.__values)(i),a=n.next();!a.done;a=n.next()){var s=a.value;if(e.next(s),e.closed)return}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}e.complete()})}if(tT(e))return tN(tS(e))}throw tk(e)}function tN(e){return new b(function(t){(function(e,t){var r,n,i,a;return(0,ty.__awaiter)(this,void 0,void 0,function(){var s;return(0,ty.__generator)(this,function(o){switch(o.label){case 0:o.trys.push([0,5,6,11]),r=(0,ty.__asyncValues)(e),o.label=1;case 1:return[4,r.next()];case 2:if((n=o.sent()).done)return[3,4];if(s=n.value,t.next(s),t.closed)return[2];o.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:o.sent()},[3,11];case 6:if(o.trys.push([6,,9,10]),!(n&&!n.done&&(a=r.return)))return[3,8];return[4,a.call(r)];case 7:o.sent(),o.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)})})}var tC=r(10776);function tO(e,t,r){return(void 0===r&&(r=1/0),(0,y.T)(t))?tO(function(r,n){return to(function(e,i){return t(r,e,n,i)})(tI(e(r,n)))},r):("number"==typeof t&&(r=t),(0,ta.N)(function(t,n){var i,a,s,o,l,u,c,d,h;return i=r,s=[],o=0,l=0,u=!1,c=function(){!u||s.length||o||n.complete()},d=function(e){return o<i?h(e):s.push(e)},h=function(t){o++;var r=!1;tI(e(t,l++)).subscribe((0,ts._)(n,function(e){a?d(e):n.next(e)},function(){r=!0},void 0,function(){if(r)try{for(o--;s.length&&o<i;)!function(){var e=s.shift();h(e)}();c()}catch(e){n.error(e)}}))},t.subscribe((0,ts._)(n,d,function(){u=!0,c()})),function(){}}))}var tP=r(80644);function tD(e,t){return void 0===t&&(t=0),(0,ta.N)(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function tM(e,t){if(!e)throw Error("Iterable cannot be null");return new b(function(r){(0,tC.N)(r,t,function(){var n=e[Symbol.asyncIterator]();(0,tC.N)(r,t,function(){n.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}function tL(e,t){return t?function(e,t){if(null!=e){if((0,y.T)(e[m]))return tI(e).pipe(tD(t),(0,tP.Q)(t));if(tv(e))return new b(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})});if(tb(e))return tI(e).pipe(tD(t),(0,tP.Q)(t));if(tw(e))return tM(e,t);if(tx(e))return new b(function(r){var n;return(0,tC.N)(r,t,function(){n=e[tE](),(0,tC.N)(r,t,function(){var e,t,i;try{t=(e=n.next()).value,i=e.done}catch(e){r.error(e);return}i?r.complete():r.next(t)},0,!0)}),function(){return(0,y.T)(null==n?void 0:n.return)&&n.return()}});if(tT(e))return tM(tS(e),t)}throw tk(e)}(e,t):tI(e)}var tR=r(74020),tF=(0,tR.L)(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function tj(e){var t;return(t=e[e.length-1])&&(0,y.T)(t.schedule)?e.pop():void 0}function tz(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=tj(e);return tL(e,r)}function tB(e){return(0,ta.N)(function(t,r){var n,i=null,a=!1;i=t.subscribe((0,ts._)(r,void 0,void 0,function(s){n=tI(e(s,tB(e)(t))),i?(i.unsubscribe(),i=null,n.subscribe(r)):a=!0})),a&&(i.unsubscribe(),i=null,n.subscribe(r))})}var tU=(0,tR.L)(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),tV=r(18737),tq=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,ty.__extends)(t,e),t.prototype.lift=function(e){var t=new tZ(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new tU},t.prototype.next=function(e){var t=this;(0,v.Y)(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=(0,ty.__values)(t.currentObservers),a=i.next();!a.done;a=i.next())a.value.next(e)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;(0,v.Y)(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;(0,v.Y)(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.length)>0},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,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?p.Kn:(this.currentObservers=null,i.push(e),new p.yU(function(){t.currentObservers=null,(0,tV.o)(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},t.prototype.asObservable=function(){var e=new b;return e.source=this,e},t.create=function(e,t){return new tZ(e,t)},t}(b),tZ=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return(0,ty.__extends)(t,e),t.prototype.next=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.next)||r.call(t,e)},t.prototype.error=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.error)||r.call(t,e)},t.prototype.complete=function(){var e,t;null==(t=null==(e=this.destination)?void 0:e.complete)||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!=(r=null==(t=this.source)?void 0:t.subscribe(e))?r:p.Kn},t}(tq);function tH(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new tq}:t,n=e.resetOnError,i=void 0===n||n,a=e.resetOnComplete,s=void 0===a||a,o=e.resetOnRefCountZero,l=void 0===o||o;return function(e){var t,n,a,o=0,u=!1,c=!1,d=function(){null==n||n.unsubscribe(),n=void 0},h=function(){d(),t=a=void 0,u=c=!1},p=function(){var e=t;h(),null==e||e.unsubscribe()};return(0,ta.N)(function(e,m){o++,c||u||d();var g=a=null!=a?a:r();m.add(function(){0!=--o||c||u||(n=t$(p,l))}),g.subscribe(m),!t&&o>0&&(t=new f.Ms({next:function(e){return g.next(e)},error:function(e){c=!0,d(),n=t$(h,i,e),g.error(e)},complete:function(){u=!0,d(),n=t$(h,s),g.complete()}}),tI(e).subscribe(t))})(e)}}function t$(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(!0===t)return void e();if(!1!==t){var i=new f.Ms({next:function(){i.unsubscribe(),e()}});return tI(t.apply(void 0,(0,ty.__spreadArray)([],(0,ty.__read)(r)))).subscribe(i)}}var tG=r(82688),tW=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=tG.U);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return(0,ty.__extends)(t,e),t.prototype.next=function(t){var r=this.isStopped,n=this._buffer,i=this._infiniteTimeWindow,a=this._timestampProvider,s=this._windowTime;!r&&(n.push(t),i||n.push(a.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),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var a=t.now(),s=0,o=1;o<r.length&&r[o]<=a;o+=2)s=o;s&&r.splice(0,s+1)}},t}(tq);!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(o||(o={}));var tK=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return function(e,t){var r,n,i,a=e.kind,s=e.value,o=e.error;if("string"!=typeof a)throw TypeError('Invalid notification, missing "kind"');"N"===a?null==(r=t.next)||r.call(t,s):"E"===a?null==(n=t.error)||n.call(t,o):null==(i=t.complete)||i.call(t)}(this,e)},e.prototype.do=function(e,t,r){var n=this.kind,i=this.value,a=this.error;return"N"===n?null==e?void 0:e(i):"E"===n?null==t?void 0:t(a):null==r?void 0:r()},e.prototype.accept=function(e,t,r){return(0,y.T)(null==e?void 0:e.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this.kind,t=this.value,r=this.error,n="N"===e?tz(t):"E"===e?t_(function(){return r}):"C"===e?k:0;if(!n)throw TypeError("Unexpected notification kind "+e);return n},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function tQ(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return tO(g,1)(tL(e,tj(e)))}function tJ(e,t,r){var n=(0,y.T)(e)||t||r?{next:e,error:t,complete:r}:e;return n?(0,ta.N)(function(e,t){null==(r=n.subscribe)||r.call(n);var r,i=!0;e.subscribe((0,ts._)(t,function(e){var r;null==(r=n.next)||r.call(n,e),t.next(e)},function(){var e;i=!1,null==(e=n.complete)||e.call(n),t.complete()},function(e){var r;i=!1,null==(r=n.error)||r.call(n,e),t.error(e)},function(){var e,t;i&&(null==(e=n.unsubscribe)||e.call(n)),null==(t=n.finalize)||t.call(n)}))}):g}let tY=Object.assign(function(e){return JSON.stringify(e,tX)},{reset(){a=new e9(ex.canonicalStringify||1e3)}});function tX(e,t){if(t&&"object"==typeof t){let e=Object.getPrototypeOf(t);if(e===Object.prototype||null===e){let r=Object.keys(t);if(r.every(t0))return t;let n=JSON.stringify(r),i=a.get(n);if(!i){r.sort();let e=JSON.stringify(r);i=a.get(e)||r,a.set(n,i),a.set(e,i)}let s=Object.create(e);return i.forEach(e=>{s[e]=t[e]}),s}}return t}function t0(e,t,r){return 0===t||r[t-1]<=e}function t1(e){return e.filter(e=>e).map(e=>e.message||"Error message not found.").join("\n")}eb.g&&(e6.canonicalStringify=()=>a.size),tY.reset();class t2 extends Error{static is(e){return eP(e,"CombinedGraphQLErrors")}static formatMessage=t1;errors;data;extensions;constructor(e,t=e.errors||[]){super(t2.formatMessage(t,{result:e,defaultFormatMessage:t1})),this.errors=t,this.data=e.data,this.extensions=e.extensions,this.name="CombinedGraphQLErrors",eD(this),Object.setPrototypeOf(this,t2.prototype)}}let t5=new WeakSet;function t3(e=[]){let t={};return e.forEach(e=>{t[e.name.value]=e}),t}function t4(e){return e.definitions.filter(e=>"FragmentDefinition"===e.kind)}var t9=r(73902);function t6(e){return e.alias?e.alias.value:e.name.value}let t7=new W;function t8(e,t,r){return t7.withValue(!0,()=>{let n=function e(t,r,n,i,a){let{knownChanged:s}=n,o=function(e,t){if(t.has(e))return t.get(e);let r=Array.isArray(e)?[]:{};return t.set(e,r),r}(t,n.mutableTargets);if(Array.isArray(t)){for(let[l,u]of Array.from(t.entries())){if(null===u){o[l]=null;continue}let t=e(u,r,n,i,eb.g?`${a||""}[${l}]`:void 0);s.has(t)&&s.add(o),o[l]=t}return s.has(o)?o:t}for(let l of r.selections){let r;if(i&&s.add(o),l.kind===P.b.FIELD){let u=t6(l),c=l.selectionSet;if(void 0===(r=o[u]||t[u]))continue;if(c&&null!==r){let o=e(t[u],c,n,i,eb.g?`${a||""}.${u}`:void 0);s.has(o)&&(r=o)}eb.g||(o[u]=r),eb.g&&(i&&"__typename"!==u&&!Object.getOwnPropertyDescriptor(o,u)?.value?Object.defineProperty(o,u,function(e,t,r,n,i){let a=()=>(t7.getValue()||(eb.g&&ew.V1.warn(40,n?`${i} '${n}'`:`anonymous ${i}`,`${r}.${e}`.replace(/^\./,"")),a=()=>t),t);return{get:()=>a(),set(e){a=()=>e},enumerable:!0,configurable:!0}}(u,r,a||"",n.operationName,n.operationType)):(delete o[u],o[u]=r))}if(l.kind===P.b.INLINE_FRAGMENT&&(!l.typeCondition||n.cache.fragmentMatches(l,t.__typename))&&(r=e(t,l.selectionSet,n,i,a)),l.kind===P.b.FRAGMENT_SPREAD){let i=l.name.value,s=n.fragmentMap[i]||(n.fragmentMap[i]=n.cache.lookupFragment(i));(0,ew.V1)(s,39,i);let o=function(e){let t=e.directives?.find(({name:e})=>"unmask"===e.value);if(!t)return"mask";let r=t.arguments?.find(({name:e})=>"mode"===e.value);return(eb.g&&r&&(r.value.kind===P.b.VARIABLE?eb.g&&ew.V1.warn(44):r.value.kind!==P.b.STRING?eb.g&&ew.V1.warn(45):"migrate"!==r.value.value&&eb.g&&ew.V1.warn(46,r.value.value)),r&&"value"in r.value&&"migrate"===r.value.value)?"migrate":"unmask"}(l);"mask"!==o&&(r=e(t,s.selectionSet,n,"migrate"===o,a))}s.has(r)&&s.add(o)}return"__typename"in t&&!("__typename"in o)&&(o.__typename=t.__typename),Object.keys(o).length!==Object.keys(t).length&&s.add(o),s.has(o)?o:t}(e,t,r,!1);return Object.isFrozen(e)&&(0,t9.G)(n),n})}var re=r(20996);function rt(e){return 7!==e&&8!==e}function rr(e){return!!e.errors?.length}function rn(e,t=()=>void 0){return r=>new b(n=>{let i=t();return r.subscribe({next(t){let r;try{r=e(t,i)}catch(e){n.error(e)}void 0!==r&&n.next(r)},error(e){n.error(e)},complete(){n.complete()}})})}function ri(e){let t={data:e.data};return e.error&&(t.error=e.error),t}function ra(e){(0,ew.V1)("Document"===e.kind,6),(0,ew.V1)(e.definitions.length<=1,7);let t=e.definitions[0];return(0,ew.V1)("FragmentDefinition"===t.kind,8),t}let rs=Array.isArray;function ro(e){return Array.isArray(e)&&e.length>0}function rl(e){let t=new Map;return function(r=e){let n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function ru(e,t,r,n){if(r.kind===P.b.INT||r.kind===P.b.FLOAT)e[t.value]=Number(r.value);else if(r.kind===P.b.BOOLEAN||r.kind===P.b.STRING)e[t.value]=r.value;else if(r.kind===P.b.OBJECT){let i={};r.fields.map(e=>ru(i,e.name,e.value,n)),e[t.value]=i}else if(r.kind===P.b.VARIABLE){let i=(n||{})[r.name.value];e[t.value]=i}else if(r.kind===P.b.LIST)e[t.value]=r.values.map(e=>{let r={};return ru(r,t,e,n),r[t.value]});else if(r.kind===P.b.ENUM)e[t.value]=r.value;else if(r.kind===P.b.NULL)e[t.value]=null;else throw(0,ew.vA)(19,t.value,r.kind)}function rc(e){let t={},r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(e=>{e.defaultValue&&ru(t,e.variable.name,e.defaultValue)}),t}var rd=r(56631),rh=r(66434),rf=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return(0,ty.__extends)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return r.closed||t.next(this._value),r},t.prototype.getValue=function(){var e=this.hasError,t=this.thrownError,r=this._value;if(e)throw t;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(tq);function rp(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{let r=e.name.value;if("function"==typeof t)return t(r);let n=t&&t[r];return(0,ew.V1)(n,9,r),n||null}default:return null}}function rm(e){let t;for(let r of(eS(e),e.definitions)){if("OperationDefinition"===r.kind)return r;"FragmentDefinition"!==r.kind||t||(t=r)}if(t)return t;throw(0,ew.vA)(12)}function rg(e){return"Field"===e.kind}function r_({directives:e},t){return!e||!e.length||(function(e){let t=[];return e&&e.length&&e.forEach(e=>{if(!function({name:{value:e}}){return"skip"===e||"include"===e}(e))return;let r=e.arguments,n=e.name.value;(0,ew.V1)(r&&1===r.length,16,n);let i=r[0];(0,ew.V1)(i.name&&"if"===i.name.value,17,n);let a=i.value;(0,ew.V1)(a&&("Variable"===a.kind||"BooleanValue"===a.kind),18,n),t.push({directive:e,ifArgument:i})}),t})(e).every(({directive:e,ifArgument:r})=>{let n=!1;return"Variable"===r.value.kind?(n=t&&t[r.value.name.value],(0,ew.V1)(void 0!==n,15,e.name.value)):n=r.value.value,"skip"===e.name.value?!n:n})}function ry(e,{data:t,...r},{data:n,...i},a){return(0,re.L)(r,i)&&function e(t,r,n,i){if(r===n)return!0;let a=new Set;return t.selections.every(t=>{if(a.has(t)||(a.add(t),!r_(t,i.variables)||rv(t)))return!0;if(rg(t)){let a=t6(t),s=r&&r[a],o=n&&n[a],l=t.selectionSet;if(!l)return(0,re.L)(s,o);let u=Array.isArray(s),c=Array.isArray(o);if(u!==c)return!1;if(u&&c){let t=s.length;if(o.length!==t)return!1;for(let r=0;r<t;++r)if(!e(l,s[r],o[r],i))return!1;return!0}return e(l,s,o,i)}{let a=rp(t,i.fragmentMap);if(a)return!!rv(a)||e(a.selectionSet,r,n,i)}})}(rm(e).selectionSet,t,n,{fragmentMap:t3(t4(e)),variables:a})}function rv(e){return!!e.directives&&e.directives.some(rb)}function rb(e){return"nonreactive"===e.name.value}function rw(e){let t=eT(e);return(0,ew.V1)(t&&"query"===t.operation,13),t}var rk=r(53469);let{assign:rE,hasOwnProperty:rx}=Object,rS={loading:!0,networkStatus:rh.p.loading,data:void 0,dataState:"empty",partial:!0},rT={loading:!1,networkStatus:rh.p.ready,data:void 0,dataState:"empty",partial:!0};class rA{options;queryName;_lastWrite;get query(){return this.lastQuery}get variables(){return this.options.variables}unsubscribeFromCache;input;subject;isTornDown;queryManager;subscriptions=new Set;waitForNetworkResult;lastQuery;linkSubscription;pollingInfo;get networkStatus(){return this.subject.getValue().result.networkStatus}constructor({queryManager:e,options:t,transformedQuery:r=e.transform(t.query)}){this.queryManager=e,this.waitForNetworkResult="network-only"===t.fetchPolicy,this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);let{watchQuery:{fetchPolicy:n="cache-first"}={}}=e.defaultOptions,{fetchPolicy:i=n,initialFetchPolicy:a="standby"===i?n:i}=t;this.lastQuery=r,this.options={...t,initialFetchPolicy:a,fetchPolicy:i,variables:this.getVariablesWithDefaults(t.variables)},this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);let s=eT(this.query);this.queryName=s&&s.name&&s.name.value}initializeObservablesQueue(){this.subject=new rf({query:this.query,variables:this.variables,result:rS,meta:{}});let e=this.subject.pipe(tJ({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),rn(({query:e,variables:t,result:r,meta:n},i)=>{let{shouldEmit:a}=n;if(r===rS&&(i.previous=void 0,i.previousVariables=void 0),"standby"===this.options.fetchPolicy||2===a)return;if(1===a)return l();let{previous:s,previousVariables:o}=i;if(s){let n=this.queryManager.getDocumentInfo(e),i=this.queryManager.dataMasking,a=i?n.nonReactiveQuery:e;if((i||n.hasNonreactiveDirective?ry(a,s,r,t):(0,re.L)(s,r))&&(0,re.L)(o,t))return}if(!(3===a&&(!this.options.notifyOnNetworkStatusChange||(0,re.L)(s,r))))return l();function l(){return i.previous=r,i.previousVariables=t,r}},()=>({})));this.pipe=e.pipe.bind(e),this.subscribe=e.subscribe.bind(e),this.input=new tq,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:e=!0}={}){return this.queryManager.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:e})}getInitialResult(e){let t=this.queryManager.prioritizeCacheValues?"cache-first":e||this.options.fetchPolicy,r=()=>{let e=this.getCacheDiff(),t=this.options.returnPartialData||e.complete?e.result??void 0:void 0;return this.maskResult({data:t,dataState:e.complete?"complete":void 0===t?"empty":"partial",loading:!e.complete,networkStatus:e.complete?rh.p.ready:rh.p.loading,partial:!e.complete})};switch(t){case"cache-only":return{...r(),loading:!1,networkStatus:rh.p.ready};case"cache-first":return r();case"cache-and-network":return{...r(),loading:!0,networkStatus:rh.p.loading};case"standby":return rT;default:return rS}}resubscribeCache(){let{variables:e,fetchPolicy:t}=this.options,r=this.query,n="standby"===t||"no-cache"===t||this.waitForNetworkResult,i=!rI({query:r,variables:e},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((n||i)&&this.unsubscribeFromCache?.(),n||!i)return;let a={query:r,variables:e,optimistic:!0,watcher:this,callback:e=>{let t=this.queryManager.getDocumentInfo(r);if((t.hasClientExports||t.hasForcedResolvers)&&(a.lastDiff=void 0),a.lastOwnDiff===e)return;let{result:n}=this.subject.getValue();(e.complete||!n.error&&n!==rS&&n!==rT)&&((0,re.L)(n.data,e.result)||this.scheduleNotify())}},s=this.queryManager.cache.watch(a);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,s()},{query:r,variables:e})}stableLastResult;getCurrentResult(){let{result:e}=this.subject.getValue(),t=e.networkStatus===rh.p.error||this.hasObservers()||"no-cache"===this.options.fetchPolicy?e:this.getInitialResult();return t===rS&&(t=this.getInitialResult()),(0,re.L)(this.stableLastResult,t)||(this.stableLastResult=t),this.stableLastResult}refetch(e){let{fetchPolicy:t}=this.options,r={pollInterval:0};if("no-cache"===t?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",eb.g&&e&&rx.call(e,"variables")){let t=rw(this.query),r=t.variableDefinitions;r&&r.some(e=>"variables"===e.variable.name.value)||!eb.g||ew.V1.warn(77,e,t.name?.value||t)}return e&&!(0,re.L)(this.variables,e)&&(r.variables=this.options.variables=this.getVariablesWithDefaults({...this.variables,...e})),this._lastWrite=void 0,this._reobserve(r,{newNetworkStatus:rh.p.refetch})}fetchMore({query:e,variables:t,context:r,errorPolicy:n,updateQuery:i}){(0,ew.V1)("cache-only"!==this.options.fetchPolicy,78,E(this.query,"(anonymous)"));let a={...(0,eI.o)(this.options,{errorPolicy:"none"},{query:e,context:r,errorPolicy:n}),variables:e?t:{...this.variables,...t},fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange};a.query=this.transformDocument(a.query),this.lastQuery=e?this.transformDocument(this.options.query):a.query;let s=!1,o="no-cache"!==this.options.fetchPolicy;o||(0,ew.V1)(i,79);let{finalize:l,pushNotification:u}=this.pushOperation(rh.p.fetchMore);return u({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3}),this.queryManager.fetchQuery(a,rh.p.fetchMore).then(e=>{if(l(),o)this.queryManager.cache.batch({update:t=>{i?t.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1},t=>i(t,{fetchMoreResult:e.data,variables:a.variables})):t.writeQuery({query:a.query,variables:a.variables,data:e.data})},onWatchUpdated:e=>{e.watcher===this&&(s=!0)}});else{let t=this.getCurrentResult(),r=i(t.data,{fetchMoreResult:e.data,variables:a.variables});u({kind:"N",value:{...t,networkStatus:rh.p.ready,loading:!1,data:r,dataState:"streaming"===t.dataState?"streaming":"complete"},source:"network"})}return this.maskResult(e)}).finally(()=>{l(),o&&!s&&u({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})})}subscribeToMore(e){let t=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:t=>{let{updateQuery:r,onError:n}=e,{error:i}=t;if(i)return void(n?n(i):ew.V1.error(80,i));r&&this.updateQuery((e,n)=>r(e,{subscriptionData:t,...n}))}});return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)&&t.unsubscribe()}}applyOptions(e){let t=(0,eI.o)(this.options,e||{});rE(this.options,t),this.updatePolling()}async setVariables(e){return(e=this.getVariablesWithDefaults(e),(0,re.L)(this.variables,e))?ri(this.getCurrentResult()):(this.options.variables=e,this.hasObservers())?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},{newNetworkStatus:rh.p.setVariables}):ri(this.getCurrentResult())}updateQuery(e){let{queryManager:t}=this,{result:r,complete:n}=this.getCacheDiff({optimistic:!1}),i=e(r,{variables:this.variables,complete:!!n,previousData:r});i&&(t.cache.writeQuery({query:this.options.query,data:i,variables:this.variables}),t.broadcastQueries())}startPolling(e){this.options.pollInterval=e,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(e,t){if(t.nextFetchPolicy){let{fetchPolicy:r="cache-first",initialFetchPolicy:n=r}=t;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy.call(t,r,{reason:e,options:t,observable:this,initialFetchPolicy:n}):"variables-changed"===e?t.fetchPolicy=n:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy}fetch(e,t,r,n){let i=this.options.fetchPolicy;e.context??={};let a=!1,s=e=>new b(r=>{try{return e.subscribe({next(e){a=!0,r.next(e)},error:e=>r.error(e),complete:()=>r.complete()})}finally{a||(d.override=t,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:u,variables:c,meta:{shouldEmit:3,fetchPolicy:i}}))}}),{observable:o,fromLink:l}=this.queryManager.fetchObservableWithInfo(e,{networkStatus:t,query:r,onCacheHit:()=>{a=!0},fetchQueryOperator:s,observableQuery:this}),{query:u,variables:c}=this,d={abort:()=>{f.unsubscribe()},query:u,variables:c};this.activeOperations.add(d);let h=t==rh.p.refetch||t==rh.p.setVariables,f=(o=o.pipe(n,tH())).pipe(tJ({next:e=>{"newNetworkStatus"===e.source||"N"===e.kind&&e.value.loading?d.override=t:delete d.override},finalize:()=>this.activeOperations.delete(d)})).subscribe({next:e=>{let t={};h&&"N"===e.kind&&"loading"in e.value&&!e.value.loading&&(h=!1,t.shouldEmit=1),this.input.next({...e,query:u,variables:c,meta:t})}});return{fromLink:l,subscription:f,observable:o}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;let{pollingInfo:e,options:{fetchPolicy:t,pollInterval:r}}=this;if(!r||!this.hasObservers()||"cache-only"===t){eb.g&&!this.didWarnCacheOnlyPolling&&r&&"cache-only"===t&&(eb.g&&ew.V1.warn(81,E(this.query,"(anonymous)")),this.didWarnCacheOnlyPolling=!0),this.cancelPolling();return}if(e?.interval===r)return;(e||(this.pollingInfo={})).interval=r;let n=()=>{this.pollingInfo&&(rt(this.networkStatus)||this.options.skipPollAttempt?.()?i():this._reobserve({fetchPolicy:"no-cache"===this.options.initialFetchPolicy?"no-cache":"network-only"},{newNetworkStatus:rh.p.poll}).then(i,i))},i=()=>{let e=this.pollingInfo;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(n,e.interval))};i()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(e){return this._reobserve(e)}_reobserve(e,t){var r;let n,i,a;this.isTornDown=!1;let{newNetworkStatus:s}=t||{};this.queryManager.obsQueries.add(this);let o=s===rh.p.refetch||s===rh.p.poll,l=this.variables,u=this.options.fetchPolicy,c=(0,eI.o)(this.options,e||{}),d=o?c:rE(this.options,c),h=this.transformDocument(d.query);this.lastQuery=h,e&&"variables"in e&&(d.variables=this.getVariablesWithDefaults(e.variables)),!o&&(this.updatePolling(),e&&e.variables&&!(0,re.L)(e.variables,l)&&"standby"!==d.fetchPolicy&&(d.fetchPolicy===u||"function"==typeof d.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",d),void 0===s&&(s=rh.p.setVariables)));let f=this.networkStatus;s||(s=rh.p.loading,f!==rh.p.loading&&e?.variables&&!(0,re.L)(e.variables,l)&&(s=rh.p.setVariables),"standby"===d.fetchPolicy&&(s=rh.p.ready)),"standby"===d.fetchPolicy&&this.cancelPolling(),this.resubscribeCache();let{promise:p,operator:m}=(r=e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source&&!e.value.loading)return e.value}},n="standby"===d.fetchPolicy?{data:void 0}:void 0,{promise:new Promise((e,t)=>{i=e,a=t}),operator:tJ({next(e){try{let t=r(e);void 0!==t&&(n=t)}catch(e){a(e)}},finalize:()=>{if(n)i(n);else{let e="The operation was aborted.",t="AbortError";a("undefined"!=typeof DOMException?new DOMException(e,t):Object.assign(Error(e),{name:t}))}}})}),{subscription:g,observable:_,fromLink:y}=this.fetch(d,s,h,m);o||!y&&this.linkSubscription||(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=g);let v=Object.assign((0,rk.X)(p.then(e=>ri(this.maskResult(e))).finally(()=>{this.hasObservers()||0!==this.activeOperations.size||this.tearDownQuery()})),{retain:()=>{let e=_.subscribe({}),t=()=>e.unsubscribe();return p.then(t,t),v}});return v}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){this.isTornDown||(this.resetNotifications(),this.unsubscribeFromCache?.(),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(e){return this.queryManager.transform(e)}maskResult(e){let t=this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,cause:this});return t===e.data?e:{...e,data:t}}dirty=!1;notifyTimeout;resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){!this.dirty&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(e=!1){if(!e){let e=this.queryManager.getDocumentInfo(this.query);if(e.hasClientExports||e.hasForcedResolvers)return}let{dirty:t}=this;if(this.resetNotifications(),t&&("cache-only"==this.options.fetchPolicy||"cache-and-network"==this.options.fetchPolicy||!this.activeOperations.size)){let e=this.getCacheDiff();(0,re.L)(e.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:e.result,dataState:e.complete?"complete":e.result?"partial":"empty",networkStatus:rh.p.ready,loading:!1,error:void 0,partial:!e.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}activeOperations=new Set;pushOperation(e){let t=!1,{query:r,variables:n}=this,i=()=>{this.activeOperations.delete(a)},a={override:e,abort:()=>{t=!0,i()},query:r,variables:n};return this.activeOperations.add(a),{finalize:i,pushNotification:(e,i)=>{t||this.input.next({...e,query:r,variables:n,meta:{...i}})}}}calculateNetworkStatus(e){if(e===rh.p.streaming)return e;let t=Array.from(this.activeOperations.values()).findLast(e=>rI(e,this)&&void 0!==e.override);return t?.override??e}abortActiveOperations(){this.activeOperations.forEach(e=>e.abort())}reset(){let e="cache-only"===this.options.fetchPolicy;this.setResult(e?rT:rS,{shouldEmit:e?1:2}),this.abortActiveOperations()}setResult(e,t){this.input.next({source:"setResult",kind:"N",value:e,query:this.query,variables:this.variables,meta:{...t}})}operator=rn(e=>{let t,{query:r,variables:n,meta:i}=e;if("setResult"===e.source)return{query:r,variables:n,result:e.value,meta:i};if("C"===e.kind||!rI(e,this))return;let a=this.subject.getValue();if("cache"===e.source){if((t=e.value).networkStatus===rh.p.ready&&t.partial&&(!this.options.returnPartialData||a.result.networkStatus===rh.p.error)&&"cache-only"!==this.options.fetchPolicy)return}else if("network"===e.source)this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),t="E"===e.kind?{...rI(a,e)?a.result:{data:void 0,dataState:"empty",partial:!0},error:e.error,networkStatus:rh.p.error,loading:!1}:e.value,"E"===e.kind&&"streaming"===t.dataState&&(t.dataState="complete"),t.error&&(i.shouldEmit=1);else if("newNetworkStatus"===e.source){let r=rI(a,e)?a.result:this.getInitialResult(i.fetchPolicy),{resetError:n}=e.value,s=n?void 0:r.error,o=s?rh.p.error:rh.p.ready;t={...r,error:s,networkStatus:o}}return(0,ew.V1)(t),t.error||delete t.error,t.networkStatus=this.calculateNetworkStatus(t.networkStatus),t.loading=rt(t.networkStatus),{query:r,variables:n,result:t=this.maskResult(t),meta:i}});reobserveCacheFirst(){let{fetchPolicy:e,nextFetchPolicy:t}=this.options;"cache-and-network"===e||"network-only"===e?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(r,n){return(this.nextFetchPolicy=t,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(r,n):e}}):this.reobserve()}getVariablesWithDefaults(e){return this.queryManager.getVariables(this.query,e)}}function rI(e,t){return!!(e&&t&&e.query===t.query&&(0,re.L)(e.variables,t.variables))}let rN={},rC=new WeakMap;function rO(e,t){let r=e[t];"function"==typeof r&&(e[t]=function(){return rC.set(e,(rC.get(e)+1)%1e15),r.apply(this,arguments)})}let rP=new WeakMap;class rD{lastRequestId=1;cache;queryManager;id;observableQuery;incremental;constructor(e,t){let r=this.cache=e.cache,n=(rP.get(e)||0)+1;rP.set(e,n),this.id=n+"",this.observableQuery=t,this.queryManager=e,rC.has(r)||(rC.set(r,0),rO(r,"evict"),rO(r,"modify"),rO(r,"reset"))}_lastWrite;get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(e){(this.observableQuery||this)._lastWrite=e}resetLastWrite(){this.lastWrite=void 0}shouldWrite(e,t){let{lastWrite:r}=this;return!(r&&r.dmCount===rC.get(this.cache)&&(0,re.L)(t,r.variables)&&(0,re.L)(e.data,r.result.data))}get hasNext(){return!!this.incremental&&this.incremental.hasNext}maybeHandleIncrementalResult(e,t,r){let{incrementalHandler:n}=this.queryManager;return n.isIncrementalResult(t)?(this.incremental||=n.startRequest({query:r}),this.incremental.handle(e,t)):t}markQueryResult(e,{document:t,variables:r,errorPolicy:n,cacheWriteBehavior:i}){let a={query:t,variables:r,returnPartialData:!0,optimistic:!0};this.observableQuery?.resetNotifications();let s=0===i,o=s?void 0:this.cache.diff(a),l=this.maybeHandleIncrementalResult(o?.result,e,t);return s||(rM(l,n)?this.cache.batch({onWatchUpdated:(e,t)=>{e.watcher===this.observableQuery&&(e.lastOwnDiff=t)},update:e=>{if(this.shouldWrite(l,r))e.writeQuery({query:t,data:l.data,variables:r,overwrite:1===i}),this.lastWrite={result:l,variables:r,dmCount:rC.get(this.cache)};else if(o&&o.complete){l={...l,data:o.result};return}let n=e.diff(a);n.complete&&(l={...l,data:n.result})}}):this.lastWrite=void 0),l}markMutationResult(e,t,r=this.cache){let n=[],i=0===t.cacheWriteBehavior,a=this.maybeHandleIncrementalResult(i?void 0:r.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}).result,e,t.document);if("ignore"===t.errorPolicy&&(a={...a,errors:[]}),rr(a)&&"none"===t.errorPolicy)return Promise.resolve(a);let s=()=>({...a,dataState:this.hasNext?"streaming":"complete"});if(!i&&rM(a,t.errorPolicy)){n.push({result:a.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables});let{updateQueries:e}=t;e&&this.queryManager.getObservableQueries("all").forEach(t=>{let r=t&&t.queryName;if(!r||!Object.hasOwnProperty.call(e,r))return;let i=e[r],{query:a,variables:o}=t,{result:l,complete:u}=t.getCacheDiff({optimistic:!1});if(u&&l){let e=i(l,{mutationResult:s(),queryName:a&&E(a)||void 0,queryVariables:o});e&&n.push({result:e,dataId:"ROOT_QUERY",query:a,variables:o})}})}let o=t.refetchQueries;if("function"==typeof o&&(o=o(s())),n.length>0||(o||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){let e=[];if(this.queryManager.refetchQueries({updateCache:e=>{i||n.forEach(t=>e.write(t));let{update:r}=t;if(r){if(!i){let r=e.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});r.complete&&(a={...a,data:r.result})}this.hasNext||r(e,a,{context:t.context,variables:t.variables})}i||t.keepRootFields||this.hasNext||e.modify({id:"ROOT_MUTATION",fields:(e,{fieldName:t,DELETE:r})=>"__typename"===t?e:r})},include:o,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(t=>e.push(t)),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(e).then(()=>a)}return Promise.resolve(a)}markMutationOptimistic(e,t){let r="function"==typeof e?e(t.variables,{IGNORE:rN}):e;return r!==rN&&(this.cache.recordOptimisticTransaction(e=>{try{this.markMutationResult({data:r},t,e)}catch(e){ew.V1.error(e)}},this.id),!0)}markSubscriptionResult(e,{document:t,variables:r,errorPolicy:n,cacheWriteBehavior:i}){0!==i&&(rM(e,n)&&this.cache.write({query:t,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:r}),this.queryManager.broadcastQueries())}}function rM(e,t="none"){let r=!rr(e);return!r&&("ignore"===t||"all"===t)&&e.data&&(r=!0),r}class rL{defaultOptions;client;clientOptions;assumeImmutableResults;documentTransform;ssrMode;defaultContext;dataMasking;incrementalHandler;localState;queryDeduplication;prioritizeCacheValues=!1;onBroadcast;mutationStore;obsQueries=new Set;fetchCancelFns=new Map;constructor(e){let t=new th(e=>this.cache.transformDocument(e),{cache:!1});this.client=e.client,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientOptions=e.clientOptions,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking,this.localState=e.localState,this.incrementalHandler=e.incrementalHandler;let r=e.documentTransform;this.documentTransform=r?t.concat(r).concat(t):t,this.defaultContext=e.defaultContext||{},(this.onBroadcast=e.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(e=>e.stop()),this.cancelPendingFetches((0,ew.vA)(83))}cancelPendingFetches(e){this.fetchCancelFns.forEach(t=>t(e)),this.fetchCancelFns.clear()}async mutate({mutation:e,variables:t,optimisticResponse:r,updateQueries:n,refetchQueries:i=[],awaitRefetchQueries:a=!1,update:s,onQueryUpdated:o,fetchPolicy:l,errorPolicy:u,keepRootFields:c,context:d}){let h=new rD(this);e=this.cache.transformForLink(this.transform(e));let{hasClientExports:f}=this.getDocumentInfo(e);t=this.getVariables(e,t),f&&(eb.g&&(0,ew.V1)(this.localState,84,E(e,"(anonymous)")),t=await this.localState.getExportedVariables({client:this.client,document:e,variables:t,context:d}));let p=this.mutationStore&&(this.mutationStore[h.id]={mutation:e,variables:t,loading:!0,error:null}),m=r&&h.markMutationOptimistic(r,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==l),errorPolicy:u,context:d,updateQueries:n,update:s,keepRootFields:c});return this.broadcastQueries(),new Promise((f,g)=>{let _={};return this.getObservableFromLink(e,{...d,optimisticResponse:m?r:void 0},t,{},!1).observable.pipe(rR(),tO(r=>{let f={...r};return tL(h.markMutationResult(f,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==l),errorPolicy:u,context:d,update:s,updateQueries:n,awaitRefetchQueries:a,refetchQueries:i,removeOptimistic:m?h.id:void 0,onQueryUpdated:o,keepRootFields:c}))})).pipe(to(e=>{if(rr(e)&&"none"===u)throw new t2(e);return p&&(p.loading=!1,p.error=null),e})).subscribe({next:t=>{if(this.broadcastQueries(),!h.hasNext){let r={data:this.maskOperation({document:e,data:t.data,fetchPolicy:l,cause:_})};rr(t)&&(r.error=new t2(t)),Object.keys(t.extensions||{}).length&&(r.extensions=t.extensions),f(r)}},error:e=>(p&&(p.loading=!1,p.error=e),m&&this.cache.removeOptimistic(h.id),this.broadcastQueries(),"ignore"===u)?f({data:void 0}):"all"===u?f({data:void 0,error:e}):void g(e)})})}fetchQuery(e,t){return eS(e.query,O.cE.QUERY),(async()=>{var r,n,i;return r=this.fetchObservableWithInfo(e,{networkStatus:t}).observable.pipe(rn(e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source)return ri(e.value)}})),i="object"==typeof(n={defaultValue:{data:void 0}}),new Promise(function(e,t){var a,s=!1;r.subscribe({next:function(e){a=e,s=!0},error:t,complete:function(){s?e(a):i?e(n.defaultValue):t(new tF)}})})})()}transform(e){return this.documentTransform.transformDocument(e)}transformCache=new e4(ex["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(e){let{transformCache:t}=this;if(!t.has(e)){let r,n=eT(e),i={hasClientExports:tl(["client","export"],e,!0),hasForcedResolvers:(r=!1,M(e,{Directive:{enter(e){if("client"===e.name.value&&e.arguments&&(r=e.arguments.some(e=>"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value)))return D}}}),r),hasNonreactiveDirective:tl(["nonreactive"],e),hasIncrementalDirective:tl(["defer"],e),nonReactiveQuery:M(e,{FragmentSpread:e=>{if(!e.directives?.some(e=>"unmask"===e.name.value))return{...e,directives:[...e.directives||[],{kind:P.b.DIRECTIVE,name:{kind:P.b.NAME,value:"nonreactive"}}]}}}),clientQuery:tl(["client"],e)?e:null,serverQuery:function(e,t){var r;eS(t);let n=rl(""),i=rl(""),a=e=>{for(let t=0,r;t<e.length&&(r=e[t]);++t)if(!rs(r)){if(r.kind===P.b.OPERATION_DEFINITION)return n(r.name&&r.name.value);if(r.kind===P.b.FRAGMENT_DEFINITION)return i(r.name.value)}return ew.V1.error(14),null},s=0;for(let e=t.definitions.length-1;e>=0;--e)t.definitions[e].kind===P.b.OPERATION_DEFINITION&&++s;let o=function(e){let t=new Map,r=new Map;return e.forEach(e=>{e&&(e.name?t.set(e.name,e):e.test&&r.set(e.test,e))}),e=>{let n=t.get(e.name.value);return!n&&r.size&&r.forEach((t,r)=>{r(e)&&(n=t)}),n}}(e),l=e=>ro(e)&&e.map(o).some(e=>e&&e.remove),u=new Map,c=!1,d={enter(e){if(l(e.directives))return c=!0,null}},h=M(t,{Field:d,InlineFragment:d,VariableDefinition:{enter:()=>!1},Variable:{enter(e,t,r,n,i){let s=a(i);s&&s.variables.add(e.name.value)}},FragmentSpread:{enter(e,t,r,n,i){if(l(e.directives))return c=!0,null;let s=a(i);s&&s.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter(e,t,r,n){u.set(JSON.stringify(n),e)},leave:(e,t,r,n)=>e===u.get(JSON.stringify(n))?e:s>0&&e.selectionSet.selections.every(e=>e.kind===P.b.FIELD&&"__typename"===e.name.value)?(i(e.name.value).removed=!0,c=!0,null):void 0},Directive:{leave(e){if(o(e))return c=!0,null}}});if(!c)return t;let f=e=>(!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(t=>{f(i(t)).transitiveVars.forEach(t=>{e.transitiveVars.add(t)})})),e),p=new Set;h.definitions.forEach(e=>{e.kind===P.b.OPERATION_DEFINITION?f(n(e.name&&e.name.value)).fragmentSpreads.forEach(e=>{p.add(e)}):e.kind!==P.b.FRAGMENT_DEFINITION||0!==s||i(e.name.value).removed||p.add(e.name.value)}),p.forEach(e=>{f(i(e)).fragmentSpreads.forEach(e=>{p.add(e)})});let m={enter(e){let t;if(t=e.name.value,!p.has(t)||i(t).removed)return null}};return!function e(t,r){return!t||t.selectionSet.selections.every(t=>t.kind===P.b.FRAGMENT_SPREAD&&e(r[t.name.value],r))}(eT(r=M(h,{FragmentSpread:m,FragmentDefinition:m,OperationDefinition:{leave(e){if(e.variableDefinitions){let t=f(n(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return{...e,variableDefinitions:e.variableDefinitions.filter(e=>t.has(e.variable.name.value))}}}}}))||ra(r),t3(t4(r)))?r:null}([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),operationType:n?.operation,defaultVars:rc(n),asQuery:{...e,definitions:e.definitions.map(e=>"OperationDefinition"===e.kind&&"query"!==e.operation?{...e,operation:"query"}:e)}};t.set(e,i)}let r=t.get(e);if(r.violation)throw r.violation;return r}getVariables(e,t){let r=this.getDocumentInfo(e).defaultVars,n=Object.entries(t??{}).map(([e,t])=>[e,void 0===t?r[e]:t]);return{...r,...Object.fromEntries(n)}}watchQuery(e){eS(e.query,O.cE.QUERY);let t=this.transform(e.query);return void 0===(e={...e,variables:this.getVariables(t,e.variables)}).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!0),new rA({queryManager:this,options:e,transformedQuery:t})}query(e){let t=this.transform(e.query);return this.fetchQuery({...e,query:t}).then(r=>({...r,data:this.maskOperation({document:t,data:r?.data,fetchPolicy:e.fetchPolicy})}))}requestIdCounter=1;generateRequestId(){return this.requestIdCounter++}clearStore(e={discardWatches:!0}){return this.cancelPendingFetches((0,ew.vA)(85)),this.obsQueries.forEach(e=>{e.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(e)}getObservableQueries(e="active"){let t=new Set,r=new Map,n=new Map,i=new Set;return Array.isArray(e)&&e.forEach(e=>{if("string"==typeof e)r.set(e,e),n.set(e,!1);else if((0,eV.U)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)){let t=e7(this.transform(e));r.set(t,E(e)),n.set(t,!1)}else(0,eV.U)(e)&&e.query&&i.add(e)}),this.obsQueries.forEach(r=>{let i=e7(this.transform(r.options.query));if("all"===e)return void t.add(r);let{queryName:a,options:{fetchPolicy:s}}=r;("active"!==e||"standby"!==s)&&("active"===e||a&&n.has(a)||i&&n.has(i))&&(t.add(r),a&&n.set(a,!0),i&&n.set(i,!0))}),i.size&&i.forEach(e=>{let r=new rA({queryManager:this,options:{...e,fetchPolicy:"network-only"}});t.add(r)}),eb.g&&n.size&&n.forEach((e,t)=>{if(!e){let e=r.get(t);e?eb.g&&ew.V1.warn(86,e):eb.g&&ew.V1.warn(87)}}),t}refetchObservableQueries(e=!1){let t=[];return this.getObservableQueries(e?"all":"active").forEach(r=>{let{fetchPolicy:n}=r.options;(e||"standby"!==n)&&"cache-only"!==n&&t.push(r.refetch())}),this.broadcastQueries(),Promise.all(t)}startGraphQLSubscription(e){let t,{query:r,variables:n}=e,{fetchPolicy:i,errorPolicy:a="none",context:s={},extensions:o={}}=e;return eS(r,O.cE.SUBSCRIPTION),r=this.transform(r),n=this.getVariables(r,n),eb.g&&(0,ew.V1)(!this.getDocumentInfo(r).hasClientExports||this.localState,88,E(r,"(anonymous)")),Object.assign((this.getDocumentInfo(r).hasClientExports?tL(this.localState.getExportedVariables({client:this.client,document:r,variables:n,context:s})):tz(n)).pipe(tO(e=>{var n;let{observable:l,restart:u}=this.getObservableFromLink(r,s,e,o),c=new rD(this);return t=u,l.pipe(to(t=>{c.markSubscriptionResult(t,{document:r,variables:e,errorPolicy:a,cacheWriteBehavior:2*("no-cache"!==i)});let n={data:t.data??void 0};return rr(t)?n.error=new t2(t):ej(t)&&(n.error=t.extensions[eF],delete t.extensions[eF]),t.extensions&&Object.keys(t.extensions).length&&(n.extensions=t.extensions),n.error&&"none"===a&&(n.data=void 0),"ignore"===a&&delete n.error,n}),tB(e=>"ignore"===a?tz({data:void 0}):tz({data:void 0,error:e})),(n=e=>!!(e.data||e.error),(0,ta.N)(function(e,t){var r=0;e.subscribe((0,ts._)(t,function(e){return n.call(void 0,e,r++)&&t.next(e)}))})))})),{restart:()=>t?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(e=>e.notify())}inFlightLinkObservables=new z(!1);getObservableFromLink(e,t,r,n,i=t?.queryDeduplication??this.queryDeduplication){let a={},{serverQuery:s,clientQuery:o,operationType:l,hasIncrementalDirective:u}=this.getDocumentInfo(e),c=E(e),d={client:this.client};if(s){let{inFlightLinkObservables:e,link:o}=this;try{let u=this.incrementalHandler.prepareRequest({query:s,variables:r,context:{...this.defaultContext,...t,queryDeduplication:i},extensions:n});function h(e){return new b(t=>{function r(){return e.subscribe({next:t.next.bind(t),complete:t.complete.bind(t),error:t.error.bind(t)})}let n=r();return a.restart||=()=>{n.unsubscribe(),n=r()},()=>{n.unsubscribe(),a.restart=void 0}})}if(t=u.context,i){var f,p,m,g,_,y,v,w,k;let t=e7(s),n=tY(r);(a=e.lookup(t,n)).observable||(a.observable=tc(o,u,d).pipe(h,(f=()=>{e.peek(t,n)===a&&e.remove(t,n)},(0,ta.N)(function(e,t){try{e.subscribe(t)}finally{t.add(f)}})),l===O.cE.SUBSCRIPTION?tH():(p={refCount:!0},k=!1,p&&!0?(w=void 0===(_=p.bufferSize)?1/0:_,m=void 0===(y=p.windowTime)?1/0:y,k=void 0!==(v=p.refCount)&&v,g=p.scheduler):w=null!=p?p:1/0,tH({connector:function(){return new tW(w,m,g)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:k}))))}else a.observable=tc(o,u,d).pipe(h)}catch(e){a.observable=t_(()=>e)}}else a.observable=tz({data:{}});if(o){let{operation:n}=eT(e);eb.g&&(0,ew.V1)(this.localState,89,n[0].toUpperCase()+n.slice(1),c??"(anonymous)"),(0,ew.V1)(!u,90,n[0].toUpperCase()+n.slice(1),c??"(anonymous)"),a.observable=a.observable.pipe(tO(e=>tL(this.localState.execute({client:this.client,document:o,remoteResult:e,context:t,variables:r}))))}return{restart:()=>a.restart?.(),observable:a.observable.pipe(tB(e=>{var t;throw t=e=ez(e),t5.add(t),e}))}}getResultsFromLink(e,{queryInfo:t,cacheWriteBehavior:r,observableQuery:n}){let i=t.lastRequestId=this.generateRequestId(),{errorPolicy:a}=e,s=this.cache.transformForLink(e.query);return this.getObservableFromLink(s,e.context,e.variables).observable.pipe(to(i=>{let o=t.markQueryResult(i,{...e,document:s,cacheWriteBehavior:r}),l=rr(o);if(l&&"none"===a)throw t.resetLastWrite(),n?.resetNotifications(),new t2(o);let u={data:o.data,...t.hasNext?{loading:!0,networkStatus:rh.p.streaming,dataState:"streaming",partial:!0}:{dataState:o.data?"complete":"empty",loading:!1,networkStatus:rh.p.ready,partial:!o.data}};return l&&("none"===a&&(u.data=void 0,u.dataState="empty"),"ignore"!==a&&(u.error=new t2(o),"streaming"!==u.dataState&&(u.networkStatus=rh.p.error))),u}),tB(e=>{if(i>=t.lastRequestId&&"none"===a)throw t.resetLastWrite(),n?.resetNotifications(),e;let r={data:void 0,dataState:"empty",loading:!1,networkStatus:rh.p.ready,partial:!0};return"ignore"!==a&&(r.error=e,r.networkStatus=rh.p.error),tz(r)}))}fetchObservableWithInfo(e,{networkStatus:t=rh.p.loading,query:r=e.query,fetchQueryOperator:n=e=>e,onCacheHit:i=()=>{},observableQuery:a}){let s,o,l=this.getVariables(r,e.variables),u=this.defaultOptions.watchQuery,{fetchPolicy:c=u&&u.fetchPolicy||"cache-first",errorPolicy:d=u&&u.errorPolicy||"none",returnPartialData:h=!1,notifyOnNetworkStatusChange:f=!0,context:p={}}=e;this.prioritizeCacheValues&&("network-only"===c||"cache-and-network"===c)&&(c="cache-first");let m=Object.assign({},e,{query:r,variables:l,fetchPolicy:c,errorPolicy:d,returnPartialData:h,notifyOnNetworkStatusChange:f,context:p}),g=new rD(this,a),_=r=>{m.variables=r;let s="no-cache"===c?0:t===rh.p.refetch&&"merge"!==m.refetchWritePolicy?1:2,o=this.fetchQueryByPolicy(m,{queryInfo:g,cacheWriteBehavior:s,onCacheHit:i,observableQuery:a});return o.observable=o.observable.pipe(n),"standby"!==m.fetchPolicy&&a?.applyNextFetchPolicy("after-fetch",e),o},y=()=>{this.fetchCancelFns.delete(g.id)};this.fetchCancelFns.set(g.id,e=>{v.next({kind:"E",error:e,source:"network"})});let v=new tq;if(this.getDocumentInfo(m.query).hasClientExports)eb.g&&(0,ew.V1)(this.localState,91,E(m.query,"(anonymous)")),s=tL(this.localState.getExportedVariables({client:this.client,document:m.query,variables:m.variables,context:m.context})).pipe(tO(e=>_(e).observable)),o=!0;else{let e=_(m.variables);o=e.fromLink,s=e.observable}return{observable:new b(e=>{e.add(y),s.subscribe(e),v.subscribe(e)}).pipe(tH()),fromLink:o}}refetchQueries({updateCache:e,include:t,optimistic:r=!1,removeOptimistic:n=r?(0,rd.v)("refetchQueries"):void 0,onQueryUpdated:i}){let a=new Map;t&&this.getObservableQueries(t).forEach(e=>{if("cache-only"===e.options.fetchPolicy)return;let t=e.getCurrentResult();a.set(e,{oq:e,lastDiff:{result:t?.data,complete:!t?.partial}})});let s=new Map;if(e){let t=new Set;this.cache.batch({update:e,optimistic:r&&n||!1,removeOptimistic:n,onWatchUpdated(e,r,n){let o=e.watcher;if(o instanceof rA&&!t.has(o)){if(t.add(o),i){a.delete(o);let e=i(o,r,n);return!0===e&&(e=o.refetch().retain()),!1!==e&&s.set(o,e),e}null!==i&&"cache-only"!==o.options.fetchPolicy&&a.set(o,{oq:o,lastDiff:n,diff:r})}}})}return a.size&&a.forEach(({oq:e,lastDiff:t,diff:r})=>{let n;i&&(r||(r=e.getCacheDiff()),n=i(e,r,t)),i&&!0!==n||(n=e.refetch().retain()),!1!==n&&s.set(e,n)}),n&&this.cache.removeOptimistic(n),s}noCacheWarningsByCause=new WeakSet;maskOperation(e){let{document:t,data:r}=e;if(eb.g){let r,{fetchPolicy:n,cause:i={}}=e,a=eT(t)?.operation;this.dataMasking&&"no-cache"===n&&(r=!0,M(t,{FragmentSpread:e=>{if(!(r=!!e.directives&&e.directives.some(e=>"unmask"===e.name.value)))return D}}),!r)&&!this.noCacheWarningsByCause.has(i)&&(this.noCacheWarningsByCause.add(i),eb.g&&ew.V1.warn(92,E(t,`Unnamed ${a??"operation"}`)))}return this.dataMasking?function(e,t,r){let n=eT(t);return((0,ew.V1)(n,43),null==e)?e:t8(e,n.selectionSet,{operationType:n.operation,operationName:n.name?.value,fragmentMap:t3(t4(t)),cache:r,mutableTargets:new WeakMap,knownChanged:new WeakSet})}(r,t,this.cache):r}maskFragment(e){let{data:t,fragment:r,fragmentName:n}=e;return this.dataMasking?function(e,t,r,n){let i=t.definitions.filter(e=>e.kind===P.b.FRAGMENT_DEFINITION);void 0===n&&((0,ew.V1)(1===i.length,41,i.length),n=i[0].name.value);let a=i.find(e=>e.name.value===n);return((0,ew.V1)(!!a,42,n),null==e||(0,re.L)(e,{}))?e:t8(e,a.selectionSet,{operationType:"fragment",operationName:a.name.value,fragmentMap:t3(t4(t)),cache:r,mutableTargets:new WeakMap,knownChanged:new WeakSet})}(t,r,this.cache,n):t}fetchQueryByPolicy({query:e,variables:t,fetchPolicy:r,errorPolicy:n,returnPartialData:i,context:a},{cacheWriteBehavior:s,onCacheHit:o,queryInfo:l,observableQuery:u}){let c=()=>this.cache.diff({query:e,variables:t,returnPartialData:!0,optimistic:!0}),d=(r,s)=>{var l;let u=r.result;eb.g&&!i&&null!==u&&(l=r.missing,eb.g&&l&&eb.g&&ew.V1.debug(82,l));let c=e=>(r.complete||i||(e=void 0),{data:e,dataState:r.complete?"complete":e?"partial":"empty",loading:rt(s),networkStatus:s,partial:!r.complete}),d=e=>tz({kind:"N",value:c(e),source:"cache"});return(r.complete||i)&&this.getDocumentInfo(e).hasForcedResolvers?(eb.g&&(0,ew.V1)(this.localState,93,E(e,"(anonymous)")),o(),tL(this.localState.execute({client:this.client,document:e,remoteResult:u?{data:u}:void 0,context:a,variables:t,onlyRunForcedResolvers:!0,returnPartialData:!0}).then(e=>({kind:"N",value:c(e.data||void 0),source:"cache"})))):d("none"===n&&s===rh.p.refetch&&r.missing?void 0:u||void 0)},h=()=>this.getResultsFromLink({query:e,variables:t,context:a,fetchPolicy:r,errorPolicy:n},{cacheWriteBehavior:s,queryInfo:l,observableQuery:u}).pipe(rR(),(0,ta.N)(function(e,t){e.subscribe((0,ts._)(t,function(e){t.next(tK.createNext(e))},function(){t.next(tK.createComplete()),t.complete()},function(e){t.next(tK.createError(e)),t.complete()}))}),to(e=>({...e,source:"network"})));switch(r){default:case"cache-first":{let e=c();if(e.complete)return{fromLink:!1,observable:d(e,rh.p.ready)};if(i)return{fromLink:!0,observable:tQ(d(e,rh.p.loading),h())};return{fromLink:!0,observable:h()}}case"cache-and-network":{let e=c();if(e.complete||i)return{fromLink:!0,observable:tQ(d(e,rh.p.loading),h())};return{fromLink:!0,observable:h()}}case"cache-only":return{fromLink:!1,observable:tQ(d(c(),rh.p.ready))};case"network-only":case"no-cache":return{fromLink:!0,observable:h()};case"standby":return{fromLink:!1,observable:k}}}}function rR(){let e=!1;return tJ({next(){e=!0},complete(){(0,ew.V1)(e,94)}})}let rF=!1;class rj{link;cache;disableNetworkFetches;set prioritizeCacheValues(e){this.queryManager.prioritizeCacheValues=e}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}version;queryDeduplication;defaultOptions;devtoolsConfig;queryManager;devToolsHookCb;resetStoreCallbacks=[];clearStoreCallbacks=[];constructor(e){eb.g&&((0,ew.V1)(e.cache,65),(0,ew.V1)(e.link,66));let{cache:t,documentTransform:r,ssrMode:n=!1,ssrForceFetchDelay:i=0,queryDeduplication:a=!0,defaultOptions:s,defaultContext:o,assumeImmutableResults:l=t.assumeImmutableResults,localState:u,devtools:c,dataMasking:d,link:h,incrementalHandler:f=new tu}=e;this.link=h,this.cache=t,this.queryDeduplication=a,this.defaultOptions=s||{},this.devtoolsConfig={...c,enabled:c?.enabled??eb.g},this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.refetchObservableQueries=this.refetchObservableQueries.bind(this),this.version=tg.r,this.queryManager=new rL({client:this,defaultOptions:this.defaultOptions,defaultContext:o,documentTransform:r,queryDeduplication:a,ssrMode:n,dataMasking:!!d,clientOptions:e,incrementalHandler:f,assumeImmutableResults:l,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:u}),this.prioritizeCacheValues=n||i>0,i&&setTimeout(()=>{this.prioritizeCacheValues=!1},i),this.devtoolsConfig.enabled&&this.connectToDevTools()}connectToDevTools(){if("undefined"==typeof window)return;let e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!rF&&eb.g&&(rF=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(()=>{if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){let e,t=window.navigator,r=t&&t.userAgent;"string"==typeof r&&(r.indexOf("Chrome/")>-1?e="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":r.indexOf("Firefox/")>-1&&(e="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),e&&eb.g&&ew.V1.log("Download the Apollo DevTools for a better development experience: %s",e)}},1e4))}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(e){this.queryManager.localState=e}stop(){this.queryManager.stop()}watchQuery(e){return this.defaultOptions.watchQuery&&(e=(0,tf.l)(this.defaultOptions.watchQuery,e)),this.queryManager.watchQuery(e)}query(e){return this.defaultOptions.query&&(e=(0,tf.l)(this.defaultOptions.query,e)),eb.g&&((0,ew.V1)("cache-and-network"!==e.fetchPolicy,67),(0,ew.V1)("standby"!==e.fetchPolicy,68),(0,ew.V1)(e.query,69),(0,ew.V1)("Document"===e.query.kind,70),(0,ew.V1)(!e.returnPartialData,71),(0,ew.V1)(!e.pollInterval,72),(0,ew.V1)(!e.notifyOnNetworkStatusChange,73)),this.queryManager.query(e)}mutate(e){let t=(0,tf.l)((0,eI.o)({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),e);return eb.g&&((0,ew.V1)(t.mutation,74),(0,ew.V1)("network-only"===t.fetchPolicy||"no-cache"===t.fetchPolicy,75)),eS(t.mutation,O.cE.MUTATION),this.queryManager.mutate(t)}subscribe(e){let t={},r=this.queryManager.startGraphQLSubscription(e);return Object.assign(r.pipe(to(r=>({...r,data:this.queryManager.maskOperation({document:e.query,data:r.data,fetchPolicy:e.fetchPolicy,cause:t})}))),{restart:r.restart})}readQuery(e,t=!1){return this.cache.readQuery({...e,query:this.transform(e.query)},t)}watchFragment(e){let t=this.queryManager.dataMasking;return this.cache.watchFragment({...e,fragment:this.transform(e.fragment,t)}).pipe(to(r=>{if(eb.g&&t){let t=this.queryManager.maskFragment({...e,data:r.data});return{...r,data:t}}return r}))}readFragment(e,t=!1){return this.cache.readFragment({...e,fragment:this.transform(e.fragment)},t)}writeQuery(e){let t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}writeFragment(e){let t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}__actionHookForDevTools(e){this.devToolsHookCb=e}__requestRaw(e){return tc(this.link,e,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(e=>e()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(e=>e())))}onResetStore(e){return this.resetStoreCallbacks.push(e),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(t=>t!==e)}}onClearStore(e){return this.clearStoreCallbacks.push(e),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(t=>t!==e)}}reFetchObservableQueries;refetchObservableQueries(e){return this.queryManager.refetchObservableQueries(e)}refetchQueries(e){let t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach((e,t)=>{r.push(t),n.push(e)});let i=Promise.all(n);return i.queries=r,i.results=n,i.catch(e=>{eb.g&&ew.V1.debug(76,e)}),i}getObservableQueries(e="active"){return this.queryManager.getObservableQueries(e)}extract(e){return this.cache.extract(e)}restore(e){return this.cache.restore(e)}setLink(e){this.link=e}get defaultContext(){return this.queryManager.defaultContext}maskedFragmentTransform=new th(tp);transform(e,t=!1){let r=this.queryManager.transform(e);return t?this.maskedFragmentTransform.transformDocument(r):r}}eb.g&&(rj.prototype.getMemoryInternals=tm);class rz extends eA{constructor(e){super((t,r)=>{let{...n}=t;return Object.defineProperty(n,"client",{enumerable:!1,value:t.client}),new b(i=>{let a=!1;return Promise.resolve(n).then(r=>e(t.getContext(),r)).then(t.setContext).then(()=>{a||r(t).subscribe(i)}).catch(i.error.bind(i)),()=>{a=!0}})})}}class rB extends eA{constructor(e){super((t,r)=>new b(n=>{let i,a,s;try{i=r(t).subscribe({next:i=>{let o=t.client.queryManager.incrementalHandler,l=o.isIncrementalResult(i)?o.extractErrors(i):i.errors;l?s=e({error:new t2(i,l),result:i,operation:t,forward:r}):ej(i)&&(s=e({error:i.extensions[eF],result:i,operation:t,forward:r})),(a=s?.subscribe(n))||n.next(i)},error:i=>{s=e({operation:t,error:ez(i),forward:r}),(a=s?.subscribe(n))||n.error(i)},complete:()=>{s||n.complete()}})}catch(i){e({error:ez(i),operation:t,forward:r}),n.error(i)}return()=>{i&&i.unsubscribe(),a&&a.unsubscribe()}}))}}let rU={kind:P.b.FIELD,name:{kind:P.b.NAME,value:"__typename"}},rV=Object.assign(function(e){return M(e,{SelectionSet:{enter(e,t,r){if(r&&r.kind===P.b.OPERATION_DEFINITION)return;let{selections:n}=e;if(!(!n||n.some(e=>e.kind===P.b.FIELD&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))))&&!(r.kind===P.b.FIELD&&r.directives&&r.directives.some(e=>"export"===e.name.value)))return{...e,selections:[...n,rU]}}}})},{added:e=>e===rU});function rq(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function rZ(e,t){let r=t,n=[];return e.definitions.forEach(e=>{if("OperationDefinition"===e.kind)throw(0,ew.vA)(10,e.operation,e.name?` named '${e.name.value}'`:"");"FragmentDefinition"===e.kind&&n.push(e)}),void 0===r&&((0,ew.V1)(1===n.length,11,n.length),r=n[0].name.value),{...e,definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}},...e.definitions]}}class rH{assumeImmutableResults=!1;lookupFragment(e){return null}batch(e){let t,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(()=>t=e.update(this),r),t}recordOptimisticTransaction(e,t){this.performTransaction(e,t)}transformDocument(e){return e}transformForLink(e){return e}identify(e){}gc(){return[]}modify(e){return!1}readQuery(e,t=!!e.optimistic){return this.read({...e,rootId:e.id||"ROOT_QUERY",optimistic:t})}watchFragment(e){let t,{fragment:r,fragmentName:n,from:i,optimistic:a=!0,...s}=e,o=this.getFragmentDoc(r,n),l=void 0===i||"string"==typeof i?i:this.identify(i);if(eb.g){let e=n||ra(r).name.value;!l&&eb.g&&ew.V1.warn(109,e)}let u={...s,returnPartialData:!0,id:l,query:o,optimistic:a};return new b(r=>this.watch({...u,immediate:!0,callback:n=>{let i=n.result;if(null===i&&(i={}),t&&ry(o,{data:t.result},{data:i},e.variables))return;let a={data:i,dataState:n.complete?"complete":"partial",complete:!!n.complete};n.missing&&(a.missing=n.missing.missing),t={...n,result:i},r.next(a)}}))}getFragmentDoc=ev(rZ,{max:ex["cache.fragmentQueryDocuments"]||1e3,cache:I});readFragment(e,t=!!e.optimistic){return this.read({...e,query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t})}writeQuery({id:e,data:t,...r}){return this.write(Object.assign(r,{dataId:e||"ROOT_QUERY",result:t}))}writeFragment({id:e,data:t,fragment:r,fragmentName:n,...i}){return this.write(Object.assign(i,{query:this.getFragmentDoc(r,n),dataId:e,result:t}))}updateQuery(e,t){return this.batch({update(r){let n=r.readQuery(e),i=t(n);return null==i?n:(r.writeQuery({...e,data:i}),i)}})}updateFragment(e,t){return this.batch({update(r){let n=r.readFragment(e),i=t(n);return null==i?n:(r.writeFragment({...e,data:i}),i)}})}}eb.g&&(rH.prototype.getMemoryInternals=tm);let{hasOwnProperty:r$}=Object.prototype,rG=function(e,t,r){return this.merge(e[r],t[r])};class rW{reconciler;constructor(e=rG){this.reconciler=e}merge(e,t,...r){return(0,eV.U)(t)&&(0,eV.U)(e)?(Object.keys(t).forEach(n=>{if(r$.call(e,n)){let i=e[n];if(t[n]!==i){let a=this.reconciler(e,t,n,...r);a!==i&&((e=this.shallowCopyForMerge(e))[n]=a)}}else(e=this.shallowCopyForMerge(e))[n]=t[n]}),e):t}isObject=eV.U;pastCopies=new Set;shallowCopyForMerge(e){return(0,eV.U)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):{__proto__:Object.getPrototypeOf(e),...e},this.pastCopies.add(e)),e}}function rK(e){return{__ref:String(e)}}let{hasOwnProperty:rQ}=Object.prototype;function rJ({__typename:e,id:t,_id:r},n){if("string"==typeof e&&(n&&(n.keyObject=null!=t?{id:t}:null!=r?{_id:r}:void 0),null==t&&null!=r&&(t=r),null!=t))return`${e}:${"number"==typeof t||"string"==typeof t?t:JSON.stringify(t)}`}let rY={dataIdFromObject:rJ,resultCaching:!0},rX=/^[_a-z][_0-9a-z]*/i;function r0(e){let t=e.match(rX);return t?t[0]:e}function r1(e){return(0,eV.U)(e)&&!rq(e)&&!rs(e)}function r2(e,t){let r=t3(t4(e));return{fragmentMap:r,lookupFragment(e){let n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}let r5={},r3=()=>r5,r4={};class r9{policies;group;data={};constructor(e,t){this.policies=e,this.group=t}toObject(){return{...this.data}}has(e){return void 0!==this.lookup(e,!0)}get(e,t){if(this.group.depend(e,t),rQ.call(this.data,e)){let r=this.data[e];if(r&&rQ.call(r,t))return r[t]}return"__typename"===t&&rQ.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof ne?this.parent.get(e,t):void 0}lookup(e,t){return(t&&this.group.depend(e,"__exists"),rQ.call(this.data,e))?this.data[e]:this instanceof ne?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?{}:void 0}merge(e,t){let r;rq(e)&&(e=e.__ref),rq(t)&&(t=t.__ref);let n="string"==typeof e?this.lookup(r=e):e,i="string"==typeof t?this.lookup(r=t):t;if(!i)return;(0,ew.V1)("string"==typeof r,95);let a=new rW(nr).merge(n,i);if(this.data[r]=a,a!==n&&(delete this.refs[r],this.group.caching)){let e={};n||(e.__exists=1),Object.keys(i).forEach(t=>{if(!n||n[t]!==a[t]){e[t]=1;let r=r0(t);r===t||this.policies.hasKeyArgs(a.__typename,r)||(e[r]=1),void 0!==a[t]||this instanceof ne||delete a[t]}}),e.__typename&&!(n&&n.__typename)&&this.policies.rootTypenamesById[r]===a.__typename&&delete e.__typename,Object.keys(e).forEach(e=>this.group.dirty(r,e))}}modify(e,t,r){let n=this.lookup(e);if(n){let i={},a=!1,s=!0,o={DELETE:r5,INVALIDATE:r4,isReference:rq,toReference:this.toReference,canRead:this.canRead,readField:(t,r)=>this.policies.readField("string"==typeof t?{fieldName:t,from:r||rK(e)}:t,{store:this})};if(Object.keys(n).forEach(l=>{let u=r0(l),c=n[l];if(void 0===c)return;let d="function"==typeof t?t:t[l]||(r?void 0:t[u]);if(d){let t=d===r3?r5:d((0,t9.G)(c),{...o,fieldName:u,storeFieldName:l,storage:this.getStorage(e,l)});if(t===r4)this.group.dirty(e,l);else if(t===r5&&(t=void 0),t!==c&&(i[l]=t,a=!0,c=t,eb.g)){let e=e=>{if(void 0===this.lookup(e.__ref))return eb.g&&ew.V1.warn(96,e),!0};if(rq(t))e(t);else if(Array.isArray(t)){let r,n=!1;for(let i of t){if(rq(i)){if(n=!0,e(i))break}else if("object"==typeof i&&i){let[e]=this.policies.identify(i);e&&(r=i)}if(n&&void 0!==r){eb.g&&ew.V1.warn(97,r);break}}}}}void 0!==c&&(s=!1)}),a)return this.merge(e,i),s&&(this instanceof ne?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1}delete(e,t,r){let n=this.lookup(e);if(n){let i=this.getFieldValue(n,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:i,fieldName:t,args:r}):t;return this.modify(e,a?{[a]:r3}:r3,!!r)}return!1}evict(e,t){let r=!1;return e.id&&(rQ.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof ne&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r}clear(){this.replace(null)}extract(){let e=this.toObject(),t=[];return this.getRootIdSet().forEach(e=>{rQ.call(this.policies.rootTypenamesById,e)||t.push(e)}),t.length&&(e.__META={extraRootIds:t.sort()}),e}replace(e){if(Object.keys(this.data).forEach(t=>{e&&rQ.call(e,t)||this.delete(t)}),e){let{__META:t,...r}=e;Object.keys(r).forEach(e=>{this.merge(e,r[e])}),t&&t.extraRootIds.forEach(this.retain,this)}}rootIds={};retain(e){return this.rootIds[e]=(this.rootIds[e]||0)+1}release(e){if(this.rootIds[e]>0){let t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0}getRootIdSet(e=new Set){return Object.keys(this.rootIds).forEach(e.add,e),this instanceof ne?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e}gc(){let e=this.getRootIdSet(),t=this.toObject();e.forEach(r=>{rQ.call(t,r)&&(Object.keys(this.findChildRefIds(r)).forEach(e.add,e),delete t[r])});let r=Object.keys(t);if(r.length){let e=this;for(;e instanceof ne;)e=e.parent;r.forEach(t=>e.delete(t))}return r}refs={};findChildRefIds(e){if(!rQ.call(this.refs,e)){let t=this.refs[e]={},r=this.data[e];if(!r)return t;let n=new Set([r]);n.forEach(e=>{rq(e)&&(t[e.__ref]=!0),(0,eV.U)(e)&&Object.keys(e).forEach(t=>{let r=e[t];(0,eV.U)(r)&&n.add(r)})})}return this.refs[e]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(e,t)=>(0,t9.G)(rq(e)?this.get(e.__ref,t):e&&e[t]);canRead=e=>rq(e)?this.has(e.__ref):"object"==typeof e;toReference=(e,t)=>{if("string"==typeof e)return rK(e);if(rq(e))return e;let[r]=this.policies.identify(e);if(r){let n=rK(r);return t&&this.merge(r,e),n}};get supportsResultCaching(){return this.group.caching}}class r6{caching;parent;d=null;keyMaker;constructor(e,t=null){this.caching=e,this.parent=t,this.resetCaching()}resetCaching(){this.d=this.caching?eg():null,this.keyMaker=new z}depend(e,t){if(this.d){this.d(t+"#"+e);let r=r0(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}}dirty(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")}}function r7(e,t){nn(e)&&e.group.depend(t,"__exists")}class r8 extends r9{constructor({policies:e,resultCaching:t=!0,seed:r}){super(e,new r6(t)),r&&this.replace(r)}stump=new nt(this);addLayer(e,t){return this.stump.addLayer(e,t)}removeLayer(){return this}storageTrie=new z;getStorage(){return this.storageTrie.lookupArray(arguments)}}r9.Root=r8;class ne extends r9{id;parent;replay;group;constructor(e,t,r,n){super(t.policies,n),this.id=e,this.parent=t,this.replay=r,this.group=n,r(this)}addLayer(e,t){return new ne(e,this,t,this.group)}removeLayer(e){let t=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(e=>{let r=this.data[e],n=t.lookup(e);n?r?r!==n&&Object.keys(r).forEach(t=>{(0,re.L)(r[t],n[t])||this.group.dirty(e,t)}):(this.group.dirty(e,"__exists"),Object.keys(n).forEach(t=>{this.group.dirty(e,t)})):this.delete(e)}),t):t===this.parent?this:t.addLayer(this.id,this.replay)}toObject(){return{...this.parent.toObject(),...this.data}}findChildRefIds(e){let t=this.parent.findChildRefIds(e);return rQ.call(this.data,e)?{...t,...super.findChildRefIds(e)}:t}getStorage(...e){let t=this.parent;for(;t.parent;)t=t.parent;return t.getStorage(...e)}}class nt extends ne{constructor(e){super("EntityStore.Stump",e,()=>{},new r6(e.group.caching,e.group))}removeLayer(){return this}merge(e,t){return this.parent.merge(e,t)}}function nr(e,t,r){let n=e[r],i=t[r];return(0,re.L)(n,i)?n:i}function nn(e){return!!(e&&e.supportsResultCaching)}function ni(e,t){if(e.arguments&&e.arguments.length){let r={};return e.arguments.forEach(({name:e,value:n})=>ru(r,e,n,t)),r}return null}let na=["connection","include","skip","client","rest","export","nonreactive"],ns=tY,no=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){let e=r.connection.filter?r.connection.filter:[];e.sort();let n={};e.forEach(e=>{n[e]=t[e]});let i=ns(n);if("{}"!==i)return`${r.connection.key}(${i})`}return r.connection.key}let n=e;if(t){let e=ns(t);"{}"!==e&&(n+=`(${e})`)}return r&&Object.keys(r).forEach(e=>{-1===na.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?n+=`@${e}(${ns(r[e])})`:n+=`@${e}`)}),n},{setStringify(e){let t=ns;return ns=e,t}});var nl=r(29503);let nu={};function nc(e){let t=JSON.stringify(e);return nu[t]||(nu[t]={})}function nd(e){let t=nc(e);return t.keyFieldsFn||(t.keyFieldsFn=(t,r)=>{let n=(e,t)=>r.readField(t,e),i=r.keyObject=nf(e,e=>{let i=nm(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&rQ.call(t,e[0])&&(i=nm(t,e,np)),(0,ew.V1)(void 0!==i,98,e.join("."),t),i});return`${r.typename}:${JSON.stringify(i)}`})}function nh(e){let t=nc(e);return t.keyArgsFn||(t.keyArgsFn=(t,{field:r,variables:n,fieldName:i})=>{let a=JSON.stringify(nf(e,e=>{let i=e[0],a=i.charAt(0);if("@"===a){if(r&&ro(r.directives)){let t=i.slice(1),a=r.directives.find(e=>e.name.value===t),s=a&&ni(a,n);return s&&nm(s,e.slice(1))}return}if("$"===a){let t=i.slice(1);if(n&&rQ.call(n,t)){let r=e.slice(0);return r[0]=t,nm(n,r)}return}if(t)return nm(t,e)}));return(t||"{}"!==a)&&(i+=":"+a),i})}function nf(e,t){let r=new rW;return(function e(t){let r=nc(t);if(!r.paths){let n=r.paths=[],i=[];t.forEach((r,a)=>{rs(r)?(e(r).forEach(e=>n.push(i.concat(e))),i.length=0):(i.push(r),rs(t[a+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce((e,n)=>{let i=t(n);if(void 0!==i){for(let e=n.length-1;e>=0;--e)i={[n[e]]:i};e=r.merge(e,i)}return e},{})}function np(e,t){return e[t]}function nm(e,t,r){return r=r||np,function e(t){return(0,eV.U)(t)?rs(t)?t.map(e):nf(Object.keys(t).sort(),e=>nm(t,e)):t}(t.reduce(function e(t,n){return rs(t)?t.map(t=>e(t,n)):t&&r(t,n)},e))}let ng=new W,n_=new WeakMap;function ny(e){let t=n_.get(e);return t||n_.set(e,t={vars:new Set,dep:eg()}),t}function nv(e){ny(e).vars.forEach(t=>t.forgetCache(e))}function nb(e){let t=new Set,r=new Set,n=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(e=>{var t;ny(e).dep.dirty(n),(t=e).broadcastWatches&&t.broadcastWatches()});let i=Array.from(r);r.clear(),i.forEach(t=>t(e))}}else{let e=ng.getValue();e&&(i(e),ny(e).dep(n))}return e};n.onNextChange=e=>(r.add(e),()=>{r.delete(e)});let i=n.attachCache=e=>(t.add(e),ny(e).vars.add(n),n);return n.forgetCache=e=>t.delete(e),n}function nw(e){return void 0!==e.args?e.args:e.field?ni(e.field,e.variables):null}let nk=()=>void 0,nE=(e,t)=>t.fieldName,nx=(e,t,{mergeObjects:r})=>r(e,t),nS=(e,t)=>t;class nT{config;typePolicies={};toBeAdded={};supertypeMap=new Map;fuzzySubtypes=new Map;cache;rootIdsByTypename={};rootTypenamesById={};usingPossibleTypes=!1;constructor(e){this.config=e,this.config={dataIdFromObject:rJ,...e},this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}identify(e,t){let r,n=this,i=t&&(t.typename||t.storeObject?.__typename)||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];let a=t&&t.storeObject||e,s={...t,typename:i,storeObject:a,readField:t&&t.readField||((...e)=>{let t=nI(e,a);return n.readField(t,{store:n.cache.data,variables:t.variables})})},o=i&&this.getTypePolicy(i),l=o&&o.keyFn||this.config.dataIdFromObject;return t7.withValue(!0,()=>{for(;l;){let t=l({...e,...a},s);if(rs(t))l=nd(t);else{r=t;break}}}),r=r?String(r):void 0,s.keyObject?[r,s.keyObject]:[r]}addTypePolicies(e){Object.keys(e).forEach(t=>{let{queryType:r,mutationType:n,subscriptionType:i,...a}=e[t];r&&this.setRootTypename("Query",t),n&&this.setRootTypename("Mutation",t),i&&this.setRootTypename("Subscription",t),rQ.call(this.toBeAdded,t)?this.toBeAdded[t].push(a):this.toBeAdded[t]=[a]})}updateTypePolicy(e,t,r){let n=this.getTypePolicy(e),{keyFields:i,fields:a}=t;function s(e,t){e.merge="function"==typeof t?t:!0===t?nx:!1===t?nS:e.merge}s(n,t.merge),n.keyFn=!1===i?nk:rs(i)?nd(i):"function"==typeof i?i:n.keyFn,a&&Object.keys(a).forEach(t=>{let n=r[t];n&&n?.typename===e||(n=r[t]={typename:e});let i=a[t];if("function"==typeof i)n.read=i;else{let{keyArgs:e,read:t,merge:r}=i;n.keyFn=!1===e?nE:rs(e)?nh(e):"function"==typeof e?e:n.keyFn,"function"==typeof t&&(n.read=t),s(n,r)}n.read&&n.merge&&(n.keyFn=n.keyFn||nE)})}setRootTypename(e,t=e){let r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,ew.V1)(!n||n===e,99,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)}addPossibleTypes(e){this.usingPossibleTypes=!0,Object.keys(e).forEach(t=>{this.getSupertypeSet(t,!0),e[t].forEach(e=>{this.getSupertypeSet(e,!0).add(t);let r=e.match(rX);r&&r[0]===e||this.fuzzySubtypes.set(e,new RegExp(e))})})}getTypePolicy(e){if(!rQ.call(this.typePolicies,e)){let t=this.typePolicies[e]={};t.fields={};let r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((t,n)=>{if(t.test(e)){let e=this.supertypeMap.get(n);e&&e.forEach(e=>r.add(e))}})),r&&r.size&&r.forEach(e=>{let{fields:r,...n}=this.getTypePolicy(e);Object.assign(t,n),Object.assign(t.fields,r)})}let t=this.toBeAdded[e];return t&&t.length&&t.splice(0).forEach(t=>{this.updateTypePolicy(e,t,this.typePolicies[e].fields)}),this.typePolicies[e]}getFieldPolicy(e,t){if(e)return this.getTypePolicy(e).fields[t]}getSupertypeSet(e,t){let r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r}fragmentMatches(e,t,r,n){if(!e.typeCondition)return!0;if(!t)return!1;let i=e.typeCondition.name.value;if(t===i)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(i)){let a=this.getSupertypeSet(t,!0),s=[a],o=e=>{let t=this.getSupertypeSet(e,!1);t&&t.size&&0>s.indexOf(t)&&s.push(t)},l=!!(r&&this.fuzzySubtypes.size),u=!1;for(let c=0;c<s.length;++c){let d=s[c];if(d.has(i))return a.has(i)||(u&&eb.g&&ew.V1.warn(100,t,i),a.add(i)),!0;d.forEach(o),l&&c===s.length-1&&function e(t,r,n){return!!(0,eV.U)(r)&&(rs(r)?r.every(r=>e(t,r,n)):t.selections.every(t=>{if(rg(t)&&r_(t,n)){let i=t6(t);return rQ.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))}(e.selectionSet,r,n)&&(l=!1,u=!0,this.fuzzySubtypes.forEach((e,r)=>{let n=t.match(e);n&&n[0]===t&&o(r)}))}}return!1}hasKeyArgs(e,t){let r=this.getFieldPolicy(e,t);return!!(r&&r.keyFn)}getStoreFieldName(e){var t,r;let n,i,a,{typename:s,fieldName:o}=e,l=this.getFieldPolicy(s,o),u=l&&l.keyFn;if(u&&s){let t={typename:s,fieldName:o,field:e.field||null,variables:e.variables},r=nw(e);for(;u;){let e=u(r,t);if(rs(e))u=nh(e);else{n=e||o;break}}}return(void 0===n&&(n=e.field?(t=e.field,r=e.variables,i=null,t.directives&&(i={},t.directives.forEach(e=>{i[e.name.value]={},e.arguments&&e.arguments.forEach(({name:t,value:n})=>ru(i[e.name.value],t,n,r))})),a=null,t.arguments&&t.arguments.length&&(a={},t.arguments.forEach(({name:e,value:t})=>ru(a,e,t,r))),no(t.name.value,a,i)):no(o,nw(e))),!1===n)?o:o===r0(n)?n:o+":"+n}readField(e,t){let r=e.from;if(!r||!(e.field||e.fieldName))return;if(void 0===e.typename){let n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}let n=this.getStoreFieldName(e),i=r0(n),a=t.store.getFieldValue(r,n),s=this.getFieldPolicy(e.typename,i),o=s&&s.read;if(o){let i=nA(this,r,e,t,t.store.getStorage(rq(r)?r.__ref:r,n));return ng.withValue(this.cache,o,[a,i])}return a}getReadFunction(e,t){let r=this.getFieldPolicy(e,t);return r&&r.read}getMergeFunction(e,t,r){let n=this.getFieldPolicy(e,t),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i}runMergeFunction(e,t,{field:r,typename:n,merge:i},a,s){return i===nx?nN(a.store)(e,t):i===nS?t:(a.overwrite&&(e=void 0),i(e,t,nA(this,void 0,{typename:n,fieldName:r.name.value,field:r,variables:a.variables},a,s||{})))}}function nA(e,t,r,n,i){let a=e.getStoreFieldName(r),s=r0(a),o=r.variables||n.variables,{toReference:l,canRead:u}=n.store;return{args:nw(r),field:r.field||null,fieldName:s,storeFieldName:a,variables:o,isReference:rq,toReference:l,storage:i,cache:e.cache,canRead:u,readField:(...r)=>e.readField(nI(r,t,o),n),mergeObjects:nN(n.store)}}function nI(e,t,r){let n,{0:i,1:a,length:s}=e;return"string"==typeof i?n={fieldName:i,from:s>1?a:t}:(n={...i},rQ.call(n,"from")||(n.from=t)),eb.g&&void 0===n.from&&eb.g&&ew.V1.warn(101,(0,nl.p)(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function nN(e){return function(t,r){if(rs(t)||rs(r))throw(0,ew.vA)(102);if((0,eV.U)(t)&&(0,eV.U)(r)){let n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if(rq(t)&&r1(r))return e.merge(t.__ref,r),t;if(r1(t)&&rq(r))return e.merge(t,r.__ref),r;if(r1(t)&&r1(r))return{...t,...r}}return r}}class nC extends Error{message;path;query;variables;constructor(e,t,r,n){if(super(e),this.message=e,this.path=t,this.query=r,this.variables=n,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let e=this.path.length-1;e>=0;--e)this.missing={[this.path[e]]:this.missing}}else this.missing=this.path;this.__proto__=nC.prototype}missing}function nO(e){return[e.selectionSet,e.objectOrReference,e.context]}class nP{executeSelectionSet;executeSubSelectedArray;config;knownResults=new WeakMap;constructor(e){this.config=e,this.executeSelectionSet=ev(e=>{let t=nO(e),r=this.executeSelectionSet.peek(...t);return r||(r7(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))},{max:ex["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:nO,makeCacheKey(e,t,r){if(nn(r.store))return r.store.makeCacheKey(e,rq(t)?t.__ref:t,r.varString)}}),this.executeSubSelectedArray=ev(e=>(r7(e.context.store,e.enclosingRef.__ref),this.execSubSelectedArrayImpl(e)),{max:ex["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:e,array:t,context:r}){if(nn(r.store))return r.store.makeCacheKey(e,t,r.varString)}})}diffQueryAgainstStore({store:e,query:t,rootId:r="ROOT_QUERY",variables:n,returnPartialData:i=!0}){let a,s=this.config.cache.policies;n={...rc(rw(t)),...n};let o=rK(r),l=this.executeSelectionSet({selectionSet:rm(t).selectionSet,objectOrReference:o,enclosingRef:o,context:{store:e,query:t,policies:s,variables:n,varString:tY(n),...r2(t,this.config.fragments)}});l.missing&&(a=new nC(function(e){try{JSON.stringify(e,(e,t)=>{if("string"==typeof t)throw t;return t})}catch(e){return e}}(l.missing),l.missing,t,n));let u=!a,{result:c}=l;return{result:u||i?0===Object.keys(c).length?null:c:null,complete:u,missing:a}}isFresh(e,t,r,n){if(nn(n.store)&&this.knownResults.get(e)===r){let i=this.executeSelectionSet.peek(r,t,n);if(i&&e===i.result)return!0}return!1}execSelectionSetImpl({selectionSet:e,objectOrReference:t,enclosingRef:r,context:n}){let i;if(rq(t)&&!n.policies.rootTypenamesById[t.__ref]&&!n.store.has(t.__ref))return{result:{},missing:`Dangling reference to missing ${t.__ref} object`};let{variables:a,policies:s,store:o}=n,l=o.getFieldValue(t,"__typename"),u=[],c=new rW;function d(e,t){return e.missing&&(i=c.merge(i,{[t]:e.missing})),e.result}"string"!=typeof l||s.rootIdsByTypename[l]||u.push({__typename:l});let h=new Set(e.selections);h.forEach(e=>{if(r_(e,a))if(rg(e)){let a=s.readField({fieldName:e.name.value,field:e,variables:n.variables,from:t},n),o=t6(e);void 0===a?rV.added(e)||(i=c.merge(i,{[o]:`Can't find field '${e.name.value}' on ${rq(t)?t.__ref+" object":"object "+JSON.stringify(t,null,2)}`})):rs(a)?a.length>0&&(a=d(this.executeSubSelectedArray({field:e,array:a,enclosingRef:r,context:n}),o)):e.selectionSet&&null!=a&&(a=d(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:a,enclosingRef:rq(a)?a:r,context:n}),o)),void 0!==a&&u.push({[o]:a})}else{let t=rp(e,n.lookupFragment);if(!t&&e.kind===P.b.FRAGMENT_SPREAD)throw(0,ew.vA)(103,e.name.value);t&&s.fragmentMatches(t,l)&&t.selectionSet.selections.forEach(h.add,h)}});let f={result:function(e){let t=e[0]||{},r=e.length;if(r>1){let n=new rW;for(let i=1;i<r;++i)t=n.merge(t,e[i])}return t}(u),missing:i},p=(0,t9.G)(f);return p.result&&this.knownResults.set(p.result,e),p}execSubSelectedArrayImpl({field:e,array:t,enclosingRef:r,context:n}){let i,a=new rW;function s(e,t){return e.missing&&(i=a.merge(i,{[t]:e.missing})),e.result}return e.selectionSet&&(t=t.filter(n.store.canRead)),{result:t=t.map((t,i)=>null===t?null:rs(t)?s(this.executeSubSelectedArray({field:e,array:t,enclosingRef:r,context:n}),i):e.selectionSet?s(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:t,enclosingRef:rq(t)?t:r,context:n}),i):(eb.g&&function(e,t,r){if(!t.selectionSet){let n=new Set([r]);n.forEach(r=>{(0,eV.U)(r)&&((0,ew.V1)(!rq(r),104,rq(r)?e.get(r.__ref,"__typename"):r&&r.__typename,t.name.value),Object.values(r).forEach(n.add,n))})}}(n.store,e,t),t)),missing:i}}}let{toString:nD}=Object.prototype;function nM(e,t,r){let n=`${t}${r}`,i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:{...e,clientOnly:t,deferred:r}),i}class nL{cache;reader;fragments;constructor(e,t,r){this.cache=e,this.reader=t,this.fragments=r}writeToStore(e,{query:t,result:r,dataId:n,variables:i,overwrite:a}){let s=eT(t),o=new rW,l={store:e,written:{},merge:(e,t)=>o.merge(e,t),variables:i={...rc(s),...i},varString:tY(i),...r2(t,this.fragments),overwrite:!!a,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},u=this.processSelectionSet({result:r||{},dataId:n,selectionSet:s.selectionSet,mergeTree:{map:new Map},context:l});if(!rq(u))throw(0,ew.vA)(105,r);return l.incomingById.forEach(({storeObject:t,mergeTree:r,fieldNodeSet:n},i)=>{let a=rK(i);if(r&&r.map.size){let e=this.applyMerges(r,a,t,l);if(rq(e))return;t=e}if(eb.g&&!l.overwrite){let e={};n.forEach(t=>{t.selectionSet&&(e[t.name.value]=!0)}),Object.keys(t).forEach(n=>{!0!==e[r0(n)]||(e=>{let t=r&&r.map.get(e);return!!(t&&t.info&&t.info.merge)})(n)||function(e,t,r,n){let i=e=>{let t=n.getFieldValue(e,r);return"object"==typeof t&&t},a=i(e);if(!a)return;let s=i(t);if(!s||rq(a)||(0,re.L)(a,s)||Object.keys(a).every(e=>void 0!==n.getFieldValue(s,e)))return;let o=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),l=r0(r),u=`${o}.${l}`;if(nB.has(u))return;nB.add(u);let c=[];rs(a)||rs(s)||[a,s].forEach(e=>{let t=n.getFieldValue(e,"__typename");"string"!=typeof t||c.includes(t)||c.push(t)}),eb.g&&ew.V1.warn(108,l,o,c.length?"either ensure all objects of type "+c.join(" and ")+" have an ID or a custom merge function, or ":"",u,{...a},{...s})}(a,t,n,l.store)})}e.merge(i,t)}),e.retain(u.__ref),u}processSelectionSet({dataId:e,result:t,selectionSet:r,context:n,mergeTree:i}){let{policies:a}=this.cache,s={},o=e&&a.rootTypenamesById[e]||nU(t,r,n.fragmentMap)||e&&n.store.get(e,"__typename");"string"==typeof o&&(s.__typename=o);let l=(...e)=>{let t=nI(e,s,n.variables);if(rq(t.from)){let e=n.incomingById.get(t.from.__ref);if(e){let r=a.readField({...t,from:e.storeObject},n);if(void 0!==r)return r}}return a.readField(t,n)},u=new Set;this.flattenFields(r,t,n,o).forEach((e,r)=>{let n=t[t6(r)];if(u.add(r),void 0!==n){let t,u=a.getStoreFieldName({typename:o,fieldName:r.name.value,field:r,variables:e.variables}),c=nF(i,u),d=this.processFieldValue(n,r,r.selectionSet?nM(e,!1,!1):e,c);r.selectionSet&&(rq(d)||r1(d))&&(t=l("__typename",d));let h=a.getMergeFunction(o,r.name.value,t);h?c.info={field:r,typename:o,merge:h}:nz(i,u),s=e.merge(s,{[u]:d})}else!eb.g||e.clientOnly||e.deferred||rV.added(r)||a.getReadFunction(o,r.name.value)||ew.V1.error(106,t6(r),t)});try{let[i,u]=a.identify(t,{typename:o,selectionSet:r,fragmentMap:n.fragmentMap,storeObject:s,readField:l});e=e||i,u&&(s=n.merge(s,u))}catch(t){if(!e)throw t}if("string"==typeof e){let a=rK(e),o=n.written[e]||(n.written[e]=[]);if(o.indexOf(r)>=0||(o.push(r),this.reader&&this.reader.isFresh(t,a,r,n)))return a;let l=n.incomingById.get(e);return l?(l.storeObject=n.merge(l.storeObject,s),l.mergeTree=function e(t,r){if(t===r||!r||nj(r))return t;if(!t||nj(t))return r;let n=t.info&&r.info?{...t.info,...r.info}:t.info||r.info,i=t.map.size&&r.map.size,a={info:n,map:i?new Map:t.map.size?t.map:r.map};if(i){let n=new Set(r.map.keys());t.map.forEach((t,i)=>{a.map.set(i,e(t,r.map.get(i))),n.delete(i)}),n.forEach(n=>{a.map.set(n,e(r.map.get(n),t.map.get(n)))})}return a}(l.mergeTree,i),u.forEach(e=>l.fieldNodeSet.add(e))):n.incomingById.set(e,{storeObject:s,mergeTree:nj(i)?void 0:i,fieldNodeSet:u}),a}return s}processFieldValue(e,t,r,n){return t.selectionSet&&null!==e?rs(e)?e.map((e,i)=>{let a=this.processFieldValue(e,t,r,nF(n,i));return nz(n,i),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):eb.g?function e(t,r){switch(nD.call(t)){case"[object Array]":{if((r=r||new Map).has(t))return r.get(t);let n=t.slice(0);return r.set(t,n),n.forEach(function(t,i){n[i]=e(t,r)}),n}case"[object Object]":{if((r=r||new Map).has(t))return r.get(t);let n=Object.create(Object.getPrototypeOf(t));return r.set(t,n),Object.keys(t).forEach(i=>{n[i]=e(t[i],r)}),n}default:return t}}(e):e}flattenFields(e,t,r,n=nU(t,e,r.fragmentMap)){let i=new Map,{policies:a}=this.cache,s=new z(!1);return!function e(o,l){let u=s.lookup(o,l.clientOnly,l.deferred);u.visited||(u.visited=!0,o.selections.forEach(s=>{if(!r_(s,r.variables))return;let{clientOnly:o,deferred:u}=l;if(!(o&&u)&&ro(s.directives)&&s.directives.forEach(e=>{let t=e.name.value;if("client"===t&&(o=!0),"defer"===t){let t=ni(e,r.variables);t&&!1===t.if||(u=!0)}}),rg(s)){let e=i.get(s);e&&(o=o&&e.clientOnly,u=u&&e.deferred),i.set(s,nM(r,o,u))}else{let i=rp(s,r.lookupFragment);if(!i&&s.kind===P.b.FRAGMENT_SPREAD)throw(0,ew.vA)(107,s.name.value);i&&a.fragmentMatches(i,n,t,r.variables)&&e(i.selectionSet,nM(r,o,u))}}))}(e,r),i}applyMerges(e,t,r,n,i){if(e.map.size&&!rq(r)){let a,s=!rs(r)&&(rq(t)||r1(t))?t:void 0,o=r;s&&!i&&(i=[rq(s)?s.__ref:s]);let l=(e,t)=>rs(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t));e.map.forEach((e,t)=>{let r=l(s,t),u=l(o,t);if(void 0===u)return;i&&i.push(t);let c=this.applyMerges(e,r,u,n,i);c!==u&&(a=a||new Map).set(t,c),i&&(0,ew.V1)(i.pop()===t)}),a&&(r=rs(o)?o.slice(0):{...o},a.forEach((e,t)=>{r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&n.store.getStorage(...i)):r}}let nR=[];function nF({map:e},t){return e.has(t)||e.set(t,nR.pop()||{map:new Map}),e.get(t)}function nj(e){return!e||!(e.info||e.map.size)}function nz({map:e},t){let r=e.get(t);r&&nj(r)&&(nR.push(r),e.delete(t))}let nB=new Set;function nU(e,t,r){let n;for(let r of t.selections)if(rg(r)){if("__typename"===r.name.value)return e[t6(r)]}else n?n.push(r):n=[r];if("string"==typeof e.__typename)return e.__typename;if(n)for(let t of n){let n=nU(e,rp(t,r).selectionSet,r);if("string"==typeof n)return n}}class nV extends rH{data;optimisticData;config;watches=new Set;storeReader;storeWriter;addTypenameTransform=new th(rV);maybeBroadcastWatch;assumeImmutableResults=!0;policies;makeVar=nb;constructor(e={}){super(),this.config=(0,eI.o)(rY,e),this.policies=new nT({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){let e=this.data=new r9.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()}resetResultCache(){let{fragments:e}=this.config;this.addTypenameTransform.resetCache(),e?.resetCaches(),this.storeWriter=new nL(this,this.storeReader=new nP({cache:this,fragments:e}),e),this.maybeBroadcastWatch=ev((e,t)=>this.broadcastWatch(e,t),{max:ex["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:e=>{let t=e.optimistic?this.optimisticData:this.data;if(nn(t)){let{optimistic:r,id:n,variables:i}=e;return t.makeCacheKey(e.query,e.callback,tY({optimistic:r,id:n,variables:i}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(e=>e.resetCaching())}restore(e){return this.init(),e&&this.data.replace(e),this}extract(e=!1){return(e?this.optimisticData:this.data).extract()}read(e){let{returnPartialData:t=!1}=e;return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:t}).result}write(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}modify(e){if(rQ.call(e,"id")&&!e.id)return!1;let t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields,!1)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}diff(e){return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config})}watch(e){var t;return this.watches.size||(t=this,ny(t).vars.forEach(e=>e.attachCache(t))),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),()=>{this.watches.delete(e)&&!this.watches.size&&nv(this),this.maybeBroadcastWatch.forget(e)}}gc(e){tY.reset(),e7.reset();let t=this.optimisticData.gc();return e&&!this.txCount&&e.resetResultCache&&this.resetResultCache(),t}retain(e,t){return(t?this.optimisticData:this.data).retain(e)}release(e,t){return(t?this.optimisticData:this.data).release(e)}identify(e){if(rq(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){eb.g&&ew.V1.warn(e)}}evict(e){if(!e.id){if(rQ.call(e,"id"))return!1;e={...e,id:"ROOT_QUERY"}}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}reset(e){return this.init(),tY.reset(),e&&e.discardWatches?(this.watches.forEach(e=>this.maybeBroadcastWatch.forget(e)),this.watches.clear(),nv(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(e){let t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())}txCount=0;batch(e){let t,{update:r,optimistic:n=!0,removeOptimistic:i,onWatchUpdated:a}=e,s=e=>{let{data:n,optimisticData:i}=this;++this.txCount,e&&(this.data=this.optimisticData=e);try{return t=r(this)}finally{--this.txCount,this.data=n,this.optimisticData=i}},o=new Set;return a&&!this.txCount&&this.broadcastWatches({...e,onWatchUpdated:e=>(o.add(e),!1)}),"string"==typeof n?this.optimisticData=this.optimisticData.addLayer(n,s):!1===n?s(this.data):s(),"string"==typeof i&&(this.optimisticData=this.optimisticData.removeLayer(i)),a&&o.size?(this.broadcastWatches({...e,onWatchUpdated(e,t){let r=a.call(this,e,t);return!1!==r&&o.delete(e),r}}),o.size&&o.forEach(e=>this.maybeBroadcastWatch.dirty(e))):this.broadcastWatches(e),t}performTransaction(e,t){return this.batch({update:e,optimistic:t||null!==t})}transformDocument(e){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(e))}fragmentMatches(e,t){return this.policies.fragmentMatches(e,t)}lookupFragment(e){return this.config.fragments?.lookup(e)||null}broadcastWatches(e){this.txCount||this.watches.forEach(t=>this.maybeBroadcastWatch(t,e))}addFragmentsToDocument(e){let{fragments:t}=this.config;return t?t.transform(e):e}broadcastWatch(e,t){let{lastDiff:r}=e,n=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,n,r)))&&(r&&(0,re.L)(r.result,n.result)||e.callback(e.lastDiff=n,r))}}eb.g&&(nV.prototype.getMemoryInternals=tm);let nq=JSON.parse('{"Product":["ConfigurableProduct","SimpleProduct","BundleProduct","PlanProduct","TokenizedProduct"],"ConfigurableOrBundleProduct":["BundleProduct","ConfigurableProduct"],"OrderDiscountable":["OrderGlobalDiscount","OrderPaymentDiscount","OrderDeliveryDiscount","OrderItemDiscount"],"OrderDelivery":["OrderDeliveryPickUp","OrderDeliveryShipping"],"OrderPayment":["OrderPaymentInvoice","OrderPaymentCard","OrderPaymentGeneric"]}');function nZ(e=!1){return{keyArgs:e,merge(e,t,{args:r}){let n=e?e.slice(0):[];if(t)if(r){let{offset:e=0}=r;for(let r=0;r<t.length;++r)n[e+r]=t[r]}else n.push(...t);return n}}}let nH={...{Query:{fields:{assortments:{...nZ(["includeLeaves","includeInactive","tags","queryString","slugs","limit"])},products:{...nZ(["includeDrafts","tags","queryString","sort","limit"])},product:{keyArgs:["productId","slug"],fields:{reviews:nZ()}},user:{keyArgs:["userId"],fields:{reviews:nZ()}},countries:{...nZ(["includeInactive","queryString","sort","limit"])},currencies:{...nZ(["includeInactive","queryString","sort","limit"])},enrollments:{...nZ(["queryString","status","sort","limit"])},quotations:{...nZ(["queryString","sort","limit"])},workQueue:{...nZ(["status","types","created","queryString","limit"])},languages:{...nZ(["includeInactive","queryString","sort","limit"])},events:{...nZ(["types","queryString","sort","limit"])},users:{...nZ(["includeGuests","queryString","emailVerified","lastLogin","limit"])},filters:{...nZ(["queryString","includeInactive","sort","limit"])},orders:{...nZ(["includeCarts","queryString","sort","limit","dateRange","status","deliveryProviderIds","paymentProviderIds"])}}}},keyFields:e=>(null==e?void 0:e._id)&&(null==e?void 0:e.__typename)?"".concat(null==e?void 0:e.__typename,":").concat(null==e?void 0:e._id):(null==e?void 0:e.id)&&(null==e?void 0:e.__typename)?"".concat(e.__typename,":").concat(e.id):null},n$=["accept-language","pragma","user-agent","x-forwarded-for","x-forwarded-host","x-forwarded-port","x-forwarded-proto","x-forwarded-server","x-mapihttpcapability","x-real-ip","x-user-identity","host","cookie","authorization"],nG=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,{headers:t={},locale:r=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null!=s?s:(e=>{let{headers:t={},locale:r}=e,n=new rz(e=>{let n,i;return n={...t,...e.headers},i=r,{headers:{...Object.fromEntries(Object.entries(n).filter(e=>{let[t]=e;return n$.includes(null==t?void 0:t.toLowerCase())})),"accept-language":(null==n?void 0:n.forceLocale)||i}}}),i=new ti({uri:"".concat(window.location.origin,"/graphql"),credentials:"include",includeExtensions:!0}),a=new rB(e=>{let{error:t,operation:r}=e;t2.is(t)&&t.errors.forEach(e=>{let{message:t,locations:n,path:i,extensions:a}=e;console.error("[GraphQL error]: Message: ".concat(t,", Location: ").concat(JSON.stringify(n),", Path: ").concat(i,", Extensions: ").concat(JSON.stringify(a),", Operation: ").concat(r.operationName))}),t&&console.error("[Network error]: ".concat(t.message,", ").concat(t.name," Operation: ").concat(r.operationName))}),s=new nV({typePolicies:nH,possibleTypes:nq});return new rj({defaultOptions:{watchQuery:{fetchPolicy:"cache-and-network",errorPolicy:"all"},mutate:{errorPolicy:"all"}},ssrMode:!1,link:eA.from([a,n,i].filter(Boolean)),cache:s,devtools:{enabled:!1}})})({headers:t,locale:r});if(e){let t=n.extract(),r=c()(e,t,{arrayMerge:(e,t)=>[...t,...e.filter(e=>t.every(t=>!h()(e,t)))]});n.cache.restore(r)}return s=n,n};function nW(e){let{endpoint:t=null,...r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null==e?void 0:e.__APOLLO_STATE__;return(0,l.useMemo)(()=>nG(n,{...r}),[n,t])}},29044:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,o=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,_=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case a:case o:case s:case f:return e;default:switch(e=e&&e.$$typeof){case u:case h:case g:case m:case l:return e;default:return t}}case i:return t}}}function k(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=h,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=o,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return k(e)||w(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===h},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===o},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===o||e===s||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===y||e.$$typeof===v||e.$$typeof===b||e.$$typeof===_)},t.typeOf=w},29195:(e,t,r)=>{"use strict";r.d(t,{P:()=>o,a:()=>s});var n=r(14232),i=r(30775);let a=Symbol();function s(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[a]:t})}function o(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let s=(0,n.useRef)(t);(0,n.useEffect)(()=>{s.current=t},[t]);let o=(0,i._)(e=>{for(let t of s.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[a]))?void 0:o}},29503:(e,t,r)=>{"use strict";r.d(t,{p:()=>i});var n=r(56631);function i(e,t=0){let r=(0,n.v)("stringifyForDisplay");return JSON.stringify(e,(e,t)=>void 0===t?r:t,t).split(JSON.stringify(r)).join("<undefined>")}},29521:(e,t,r)=>{"use strict";r.d(t,{s:()=>a});var n=r(14232),i=r(3363);let a=(e,t)=>{i._.isServer?(0,n.useEffect)(e,t):(0,n.useLayoutEffect)(e,t)}},29789:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(14232),i=r(39419),a=r(98615),s=r(30775);function o(){let{disabled:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,n.useRef)(null),[r,o]=(0,n.useState)(!1),l=(0,a.L)(),u=(0,s._)(()=>{t.current=null,o(!1),l.dispose()}),c=(0,s._)(e=>{if(l.dispose(),null===t.current){t.current=e.currentTarget,o(!0);{let r=(0,i.T)(e.currentTarget);l.addEventListener(r,"pointerup",u,!1),l.addEventListener(r,"pointermove",e=>{if(t.current){var r,n;let i,a;o((i=e.width/2,a=e.height/2,r={top:e.clientY-a,right:e.clientX+i,bottom:e.clientY+a,left:e.clientX-i},n=t.current.getBoundingClientRect(),!(!r||!n||r.right<n.left||r.left>n.right||r.bottom<n.top||r.top>n.bottom)))}},!1),l.addEventListener(r,"pointercancel",u,!1)}}});return{pressed:r,pressProps:e?{}:{onPointerDown:c,onPointerUp:u,onClick:u}}}},30245:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return Array.from(new Set(t.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}r.d(t,{x:()=>n})},30775:(e,t,r)=>{"use strict";r.d(t,{_:()=>a});var n=r(14232),i=r(34554);let a=function(e){let t=(0,i.Y)(e);return n.useCallback(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current(...r)},[t])}},30893:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(14232),i=r(34201);let a=()=>(0,n.useContext)(i.A)},31774:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=r.get(e);return t||(t=Object.create(null),r.set(e,t)),t};var r=new WeakMap},32982:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(14232),i=r(84190);let a=()=>{let e=(0,n.useContext)(i.A);if(!e)throw Error("useLocale must be used within a LocaleProvider");return e}},34201:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(14232).createContext({isAdmin:()=>!1,hasRole:()=>!1})},34554:(e,t,r)=>{"use strict";r.d(t,{Y:()=>a});var n=r(14232),i=r(29521);function a(e){let t=(0,n.useRef)(e);return(0,i.s)(()=>{t.current=e},[e]),t}},35937:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(14232),i=r(82074);let a=()=>(0,n.useContext)(i.A)},36607:(e,t,r)=>{"use strict";r.d(t,{M:()=>d});var n=r(12473),i=r(82505),a=r(86962),s=r(14232);let o=!1,l=0;function u(e){"touch"===e.pointerType&&(o=!0,setTimeout(()=>{o=!1},50))}function c(){if("undefined"!=typeof document)return 0===l&&"undefined"!=typeof PointerEvent&&document.addEventListener("pointerup",u),l++,()=>{--l>0||"undefined"!=typeof PointerEvent&&document.removeEventListener("pointerup",u)}}function d(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:l,isDisabled:u}=e,[d,h]=(0,s.useState)(!1),f=(0,s.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,s.useEffect)(c,[]);let{addGlobalListener:p,removeAllGlobalListeners:m}=(0,n.A)(),{hoverProps:g,triggerHoverEnd:_}=(0,s.useMemo)(()=>{let e=(e,t)=>{let n=f.target;f.pointerType="",f.target=null,"touch"!==t&&f.isHovered&&n&&(f.isHovered=!1,m(),l&&l({type:"hoverend",target:n,pointerType:t}),r&&r(!1),h(!1))},n={};return"undefined"!=typeof PointerEvent&&(n.onPointerEnter=n=>{o&&"mouse"===n.pointerType||((n,s)=>{if(f.pointerType=s,u||"touch"===s||f.isHovered||!n.currentTarget.contains(n.target))return;f.isHovered=!0;let o=n.currentTarget;f.target=o,p((0,i.TW)(n.target),"pointerover",t=>{f.isHovered&&f.target&&!(0,a.sD)(f.target,t.target)&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:o,pointerType:s}),r&&r(!0),h(!0)})(n,n.pointerType)},n.onPointerLeave=t=>{!u&&t.currentTarget.contains(t.target)&&e(t,t.pointerType)}),{hoverProps:n,triggerHoverEnd:e}},[t,r,l,u,f,p,m]);return(0,s.useEffect)(()=>{u&&_({currentTarget:f.target},f.pointerType)},[u]),{hoverProps:g,isHovered:d}}},36956:(e,t,r)=>{"use strict";function n(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(r=>{let n=e[r];void 0!==n&&(t[r]=n)})}),t}r.d(t,{o:()=>n})},37154:(e,t,r)=>{"use strict";r.d(t,{HM:()=>s,JF:()=>o,SP:()=>c,bN:()=>h,yU:()=>d});var n=r(4902),i=r(14232),a=r(83933);function s(e){var t;if(void 0===t&&(t=Error),!e)throw new t("[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var o=(0,n.__assign)((0,n.__assign)({},a.JF),{textComponent:i.Fragment}),l={key:42},u=function(e){return i.isValidElement(e)?i.createElement(i.Fragment,l,e):e},c=function(e){var t;return null!=(t=i.Children.map(e,u))?t:[]};function d(e){return function(t){return e(i.Children.toArray(t))}}function h(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(var a=0;a<i;a++){var s=r[a];if(e[s]!==t[s]||!Object.prototype.hasOwnProperty.call(t,s))return!1}return!0}},38878:e=>{e.exports=function(e,t){let r;if("function"!=typeof e)throw TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let n=0;return function(...i){clearTimeout(r);let a=Date.now(),s=t-(a-n);s<=0?(n=a,e.apply(this,i)):r=setTimeout(()=>{n=Date.now(),e.apply(this,i)},s)}}},39247:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return o}});let n=r(72687),i=r(95197),a=r(94989),s=n._(r(49411));function o(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=a.Image},39419:(e,t,r)=>{"use strict";r.d(t,{T:()=>i});var n=r(3363);function i(e){var t,r;return n._.isServer?null:e?"ownerDocument"in e?e.ownerDocument:"current"in e?null!=(r=null==(t=e.current)?void 0:t.ownerDocument)?r:document:null:document}},42422:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(96427);function i(){let e=(0,n._)(["\n fragment CountryFragment on Country {\n _id\n isoCode\n isActive\n isBase\n\n defaultCurrency {\n _id\n isoCode\n }\n }\n"]);return i=function(){return e},e}let a=(0,r(79350).J1)(i())},44963:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(96427),i=r(79350),a=r(18885),s=r(14600);function o(){let e=(0,n._)(["\n query Languages(\n $queryString: String\n $offset: Int\n $limit: Int\n $includeInactive: Boolean\n $sort: [SortOptionInput!]\n ) {\n languages(\n queryString: $queryString\n offset: $offset\n limit: $limit\n includeInactive: $includeInactive\n sort: $sort\n ) {\n ...LanguageFragment\n }\n languagesCount(includeInactive: $includeInactive, queryString: $queryString)\n }\n ","\n"]);return o=function(){return e},e}let l=(0,i.J1)(o(),s.A),u=function(){let{queryString:e="",limit:t=20,offset:r=0,includeInactive:n=!0,sort:i=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{data:s,loading:o,error:u,fetchMore:c}=(0,a.I)(l,{variables:{queryString:e,limit:t,offset:r,includeInactive:n,sort:i}}),d=(null==s?void 0:s.languages)||[],h=null==s?void 0:s.languagesCount,f=(null==d?void 0:d.length)<h;return{languages:d,languagesCount:h,hasMore:f,loading:o,error:u,loadMore:()=>{c({variables:{offset:null==d?void 0:d.length}})}}}},45105:(e,t,r)=>{r(87665)},45662:()=>{},46494:(e,t,r)=>{"use strict";r.d(t,{S:()=>n});let n="function"==typeof(0,r(68906).n)(()=>window.document.createElement)},47340:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(37876),i=r(77742);let a=()=>{let{formatMessage:e}=(0,i.A)();return(0,n.jsx)("div",{className:"my-5 flex h-full w-full items-center justify-center bg-slate-50 dark:bg-slate-950 py-5",children:(0,n.jsxs)("div",{className:"flex items-center justify-center space-x-1 text-sm text-slate-700 dark:text-slate-200",children:[(0,n.jsx)("svg",{fill:"none",className:"h-6 w-6 animate-spin",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M15.165 8.53a.5.5 0 01-.404.58A7 7 0 1023 16a.5.5 0 011 0 8 8 0 11-9.416-7.874.5.5 0 01.58.404z",fill:"currentColor",fillRule:"evenodd"})}),(0,n.jsx)("div",{children:e({id:"loading",defaultMessage:"Loading ..."})})]})})}},47518:(e,t,r)=>{"use strict";r.d(t,{OC:()=>i,yo:()=>a});var n=r(7743);function i(e){var t,r;let i=Number.MAX_SAFE_INTEGER,a=null,s=-1;for(let t=0;t<e.length;++t){let o=e[t],l=function(e){let t=0;for(;t<e.length&&(0,n.i0)(e.charCodeAt(t));)++t;return t}(o);l!==o.length&&(a=null!=(r=a)?r:t,s=t,0!==t&&l<i&&(i=l))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!=(t=a)?t:0,s+1)}function a(e,t){let r=e.replace(/"""/g,'\\"""'),i=r.split(/\r\n|[\n\r]/g),a=1===i.length,s=i.length>1&&i.slice(1).every(e=>0===e.length||(0,n.i0)(e.charCodeAt(0))),o=r.endsWith('\\"""'),l=e.endsWith('"')&&!o,u=e.endsWith("\\"),c=l||u,d=!(null!=t&&t.minimize)&&(!a||e.length>70||c||s||o),h="",f=a&&(0,n.i0)(e.charCodeAt(0));return(d&&!f||s)&&(h+="\n"),h+=r,(d||c)&&(h+="\n"),'"""'+h+'"""'}},48230:(e,t,r)=>{e.exports=r(56358)},49411:(e,t)=>{"use strict";function r(e){var t;let{config:r,src:n,width:i,quality:a}=e,s=a||(null==(t=r.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return r.path+"?url="+encodeURIComponent(n)+"&w="+i+"&q="+s+(n.startsWith("/_next/static/media/"),"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},50272:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(37876),i=r(14232),a=r(99416);class s extends i.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error({error:e,errorInfo:t})}render(){return this.state.hasError?(0,n.jsx)(a.A,{error:this.state.error,resetError:()=>this.setState({hasError:!1,error:null})}):this.props.children}constructor(e){super(e),this.state={hasError:!1,error:null}}}let o=s},50455:(e,t,r)=>{"use strict";r.d(t,{$x:()=>l,El:()=>o,O_:()=>s,Uw:()=>a});var n=r(14232);let i=(0,n.createContext)(null);i.displayName="OpenClosedContext";var a=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(a||{});function s(){return(0,n.useContext)(i)}function o(e){let{value:t,children:r}=e;return n.createElement(i.Provider,{value:t},r)}function l(e){let{children:t}=e;return n.createElement(i.Provider,{value:null},t)}},50543:(e,t,r)=>{"use strict";r.d(t,{f:()=>i});var n=r(4902),i={setTimeout:function(e,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];var s=i.delegate;return(null==s?void 0:s.setTimeout)?s.setTimeout.apply(s,(0,n.__spreadArray)([e,t],(0,n.__read)(r))):setTimeout.apply(void 0,(0,n.__spreadArray)([e,t],(0,n.__read)(r)))},clearTimeout:function(e){var t=i.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0}},51112:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(14232);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=a(e,n)),t&&(i.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("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)},51482:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},52249:(e,t,r)=>{"use strict";r.d(t,{Kn:()=>l,yU:()=>o,Uv:()=>u});var n=r(4902),i=r(65402),a=(0,r(74020).L)(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}}),s=r(18737),o=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,r,s,o,l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var u=(0,n.__values)(l),d=u.next();!d.done;d=u.next())d.value.remove(this)}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}else l.remove(this);var h=this.initialTeardown;if((0,i.T)(h))try{h()}catch(e){o=e instanceof a?e.errors:[e]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var p=(0,n.__values)(f),m=p.next();!m.done;m=p.next()){var g=m.value;try{c(g)}catch(e){o=null!=o?o:[],e instanceof a?o=(0,n.__spreadArray)((0,n.__spreadArray)([],(0,n.__read)(o)),(0,n.__read)(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{m&&!m.done&&(s=p.return)&&s.call(p)}finally{if(r)throw r.error}}}if(o)throw new a(o)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)c(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(r=this._finalizers)?r:[]).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)&&(0,s.o)(t,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&(0,s.o)(r,e),e instanceof t&&e._removeParent(this)},(e=new t).closed=!0,t.EMPTY=e,t}(),l=o.EMPTY;function u(e){return e instanceof o||e&&"closed"in e&&(0,i.T)(e.remove)&&(0,i.T)(e.add)&&(0,i.T)(e.unsubscribe)}function c(e){(0,i.T)(e)?e():e.unsubscribe()}},53279:(e,t,r)=>{"use strict";r.d(t,{S:()=>l});var n=r(4902),i=r(98149),a=r(74769),s=r(10143);function o(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}var l=function(){function e(t,r,a,l){void 0===r&&(r=e.defaultLocale);var u,c,d=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=d.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce(function(e,t){return e.length&&t.type===s.TT.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return(0,s.hN)(d.ast,d.locales,d.formatters,d.formats,e,void 0,d.message)},this.resolvedOptions=function(){var e;return{locale:(null==(e=d.resolvedLocale)?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(d.locales)[0]}},this.getAst=function(){return d.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var h=l||{},f=(h.formatters,(0,n.__rest)(h,["formatters"]));this.ast=e.__parse(t,(0,n.__assign)((0,n.__assign)({},f),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=(u=e.formats,a?Object.keys(u).reduce(function(e,t){var r,i;return e[t]=(r=u[t],(i=a[t])?(0,n.__assign)((0,n.__assign)((0,n.__assign)({},r||{}),i||{}),Object.keys(r).reduce(function(e,t){return e[t]=(0,n.__assign)((0,n.__assign)({},r[t]),i[t]||{}),e},{})):r),e},(0,n.__assign)({},u)):u),this.formatters=l&&l.formatters||(void 0===(c=this.formatterCache)&&(c={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,i.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,(0,n.__spreadArray)([void 0],t,!1)))},{cache:o(c.number),strategy:i.W.variadic}),getDateTimeFormat:(0,i.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,n.__spreadArray)([void 0],t,!1)))},{cache:o(c.dateTime),strategy:i.W.variadic}),getPluralRules:(0,i.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,(0,n.__spreadArray)([void 0],t,!1)))},{cache:o(c.pluralRules),strategy:i.W.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return new Intl.Locale(t.length>0?t[0]:"string"==typeof e?e:e[0])}},e.__parse=a.qg,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}()},53469:(e,t,r)=>{"use strict";function n(e){return e.catch(()=>{}),e}r.d(t,{X:()=>n})},53757:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PluralRules=void 0;var n=r(4902),i=r(77262),a=r(23045),s=r(56392),o=n.__importDefault(r(57929));function l(e,t){if(!(e instanceof c))throw TypeError("Method Intl.PluralRules.prototype.".concat(t," called on incompatible receiver ").concat(String(e)))}function u(e,t,r,n){var i=n.IntegerDigits,a=n.NumberOfFractionDigits,s=n.FractionDigits;return c.localeData[e].fn(a?"".concat(i,".").concat(s):i,"ordinal"===t)}var c=function(){function e(t,r){if(!(this&&this instanceof e?this.constructor:void 0))throw TypeError("Intl.PluralRules must be called with 'new'");return(0,a.InitializePluralRules)(this,t,r,{availableLocales:e.availableLocales,relevantExtensionKeys:e.relevantExtensionKeys,localeData:e.localeData,getDefaultLocale:e.getDefaultLocale,getInternalSlots:o.default})}return e.prototype.resolvedOptions=function(){l(this,"resolvedOptions");var t=Object.create(null),r=(0,o.default)(this);return t.locale=r.locale,t.type=r.type,["minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"].forEach(function(e){var n=r[e];void 0!==n&&(t[e]=n)}),t.pluralCategories=n.__spreadArray([],e.localeData[t.locale].categories[t.type],!0),t},e.prototype.select=function(e){l(this,"select");var t=(0,i.ToNumber)(e);return(0,s.ResolvePlural)(this,t,{getInternalSlots:o.default,PluralRuleSelect:u})},e.prototype.toString=function(){return"[object Intl.PluralRules]"},e.supportedLocalesOf=function(t,r){return(0,i.SupportedLocales)(e.availableLocales,(0,i.CanonicalizeLocaleList)(t),r)},e.__addLocaleData=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=0;n<t.length;n++){var i=t[n],a=i.data,s=i.locale;e.localeData[s]=a,e.availableLocales.add(s),e.__defaultLocale||(e.__defaultLocale=s)}},e.getDefaultLocale=function(){return e.__defaultLocale},e.localeData={},e.availableLocales=new Set,e.__defaultLocale="",e.relevantExtensionKeys=[],e.polyfilled=!0,e}();t.PluralRules=c;try{"undefined"!=typeof Symbol&&Object.defineProperty(c.prototype,Symbol.toStringTag,{value:"Intl.PluralRules",writable:!1,enumerable:!1,configurable:!0});try{Object.defineProperty(c,"length",{value:0,writable:!1,enumerable:!1,configurable:!0})}catch(e){}Object.defineProperty(c.prototype.constructor,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(c.supportedLocalesOf,"length",{value:1,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(c,"name",{value:"PluralRules",writable:!1,enumerable:!1,configurable:!0})}catch(e){}},54283:(e,t,r)=>{"use strict";r.d(t,{Y:()=>a,l:()=>s});var n=r(18003),i=null;function a(e){if(n.$.useDeprecatedSynchronousErrorHandling){var t=!i;if(t&&(i={errorThrown:!1,error:null}),e(),t){var r=i,a=r.errorThrown,s=r.error;if(i=null,a)throw s}}else e()}function s(e){n.$.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=e)}},54587:(e,t,r)=>{e.exports=r(39247)},55332:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(96427),i=r(79350),a=r(18885),s=r(35937),o=r(98748);function l(){let e=(0,n._)(["\n query CurrentUser {\n me {\n ...UserFragment\n ","\n }\n }\n ","\n"]);return l=function(){return e},e}let u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,i.J1)(l(),e,o.A)},c=e=>{let{customProperties:t,hydrateFragment:r}=(0,s.A)(),{data:n,loading:i,error:o}=(0,a.I)(u(null==t?void 0:t.User)),l=null==n?void 0:n.me,c=r(null==t?void 0:t.User,l||null);return{currentUser:l,loading:i,error:o,extendedData:c}}},55445:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(14232),i=r(21112),a="function"==typeof IntersectionObserver,s=new Map,o=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,u=l||!a,[c,d]=(0,n.useState)(!1),h=(0,n.useRef)(null),f=(0,n.useCallback)(e=>{h.current=e},[]);return(0,n.useEffect)(()=>{if(a){if(u||c)return;let e=h.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:i,elements:a}=function(e){let t,r={root:e.root||null,margin:e.rootMargin||""},n=o.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=s.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},o.push(r),s.set(r,t),t}(r);return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),s.delete(n);let e=o.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&o.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,r,t,c,h.current]),[f,c,(0,n.useCallback)(()=>{d(!1)},[])]}("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)},56186:(e,t,r)=>{"use strict";r.d(t,{Ho:()=>c,OC:()=>s,hr:()=>l,pg:()=>u,sb:()=>d,uo:()=>o});var n,i=r(4902);!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(n||(n={}));var a=function(e){function t(r,n,i){var a=this,s=i?i instanceof Error?i:Error(String(i)):void 0;return(a=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,"\n").concat(s?"\n".concat(s.message,"\n").concat(s.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return(0,i.__extends)(t,e),t}(Error),s=function(e){function t(t,r){return e.call(this,n.UNSUPPORTED_FORMATTER,t,r)||this}return(0,i.__extends)(t,e),t}(a),o=function(e){function t(t,r){return e.call(this,n.INVALID_CONFIG,t,r)||this}return(0,i.__extends)(t,e),t}(a),l=function(e){function t(t,r){return e.call(this,n.MISSING_DATA,t,r)||this}return(0,i.__extends)(t,e),t}(a),u=function(e){function t(t,r,i){var a=e.call(this,n.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(r,"\n"),i)||this;return a.locale=r,a}return(0,i.__extends)(t,e),t}(a),c=function(e){function t(t,r,n,i){var a=e.call(this,"".concat(t,"\nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description,"\n"),r,i)||this;return a.descriptor=n,a.locale=r,a}return(0,i.__extends)(t,e),t}(u),d=function(e){function t(t,r){var i=e.call(this,n.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map(function(e){var t;return null!=(t=e.value)?t:JSON.stringify(e)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=t,i}return(0,i.__extends)(t,e),t}(a)},56358:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return k},useLinkStatus:function(){return w}});let n=r(63732),i=r(37876),a=n._(r(14232)),s=r(58004),o=r(65790),l=r(359),u=r(1033),c=r(89266),d=r(54387),h=r(55445),f=r(10118),p=r(69011),m=r(51112);r(51482);let g=new Set;function _(e,t,r,n){if((0,o.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let i=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(g.has(i))return;g.add(i)}e.prefetch(t,r,n).catch(e=>{})}}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let v=a.default.forwardRef(function(e,t){let r,n,{href:l,as:g,children:v,prefetch:b=null,passHref:w,replace:k,shallow:E,scroll:x,locale:S,onClick:T,onNavigate:A,onMouseEnter:I,onTouchStart:N,legacyBehavior:C=!1,...O}=e;r=v,C&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let P=a.default.useContext(d.RouterContext),D=!1!==b,{href:M,as:L}=a.default.useMemo(()=>{if(!P){let e=y(l);return{href:e,as:g?y(g):e}}let[e,t]=(0,s.resolveHref)(P,l,!0);return{href:e,as:g?(0,s.resolveHref)(P,g):t||e}},[P,l,g]),R=a.default.useRef(M),F=a.default.useRef(L);C&&(n=a.default.Children.only(r));let j=C?n&&"object"==typeof n&&n.ref:t,[z,B,U]=(0,h.useIntersection)({rootMargin:"200px"}),V=a.default.useCallback(e=>{(F.current!==L||R.current!==M)&&(U(),F.current=L,R.current=M),z(e)},[L,M,U,z]),q=(0,m.useMergedRef)(V,j);a.default.useEffect(()=>{P&&B&&D&&_(P,M,L,{locale:S})},[L,M,B,S,D,null==P?void 0:P.locale,P]);let Z={ref:q,onClick(e){C||"function"!=typeof T||T(e),C&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),P&&(e.defaultPrevented||function(e,t,r,n,i,a,s,l,u){let{nodeName:c}=e.currentTarget;if(!("A"===c.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,o.isLocalURL)(r)){i&&(e.preventDefault(),location.replace(r));return}e.preventDefault(),(()=>{if(u){let e=!1;if(u({preventDefault:()=>{e=!0}}),e)return}let e=null==s||s;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:a,locale:l,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})})()}}(e,P,M,L,k,E,x,S,A))},onMouseEnter(e){C||"function"!=typeof I||I(e),C&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),P&&_(P,M,L,{locale:S,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){C||"function"!=typeof N||N(e),C&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),P&&_(P,M,L,{locale:S,priority:!0,bypassPrefetchedCheck:!0})}};if((0,u.isAbsoluteUrl)(L))Z.href=L;else if(!C||w||"a"===n.type&&!("href"in n.props)){let e=void 0!==S?S:null==P?void 0:P.locale;Z.href=(null==P?void 0:P.isLocaleDomain)&&(0,f.getDomainLocale)(L,e,null==P?void 0:P.locales,null==P?void 0:P.domainLocales)||(0,p.addBasePath)((0,c.addLocale)(L,e,null==P?void 0:P.defaultLocale))}return C?a.default.cloneElement(n,Z):(0,i.jsx)("a",{...O,...Z,children:r})}),b=(0,a.createContext)({pending:!1}),w=()=>(0,a.useContext)(b),k=v;("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)},56392:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResolvePlural=function(e,t,r){var a=r.getInternalSlots,s=r.PluralRuleSelect,o=a(e);if((0,n.invariant)("Object"===(0,n.Type)(o),"pl has to be an object"),(0,n.invariant)("initializedPluralRules"in o,"pluralrules must be initialized"),!t.isFinite())return"other";var l=o.locale,u=o.type,c=(0,n.FormatNumericToString)(o,t).formattedString;return s(l,u,t,(0,i.GetOperands)(c))};var n=r(77262),i=r(89356)},56557:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(14232).createContext({setModal:()=>{throw Error("No ModalContext/ModalWrapper ancestor found.")}})},56631:(e,t,r)=>{"use strict";r.d(t,{v:()=>i});let n=new Map;function i(e){let t=n.get(e)||1;return n.set(e,t+1),`${e}:${t}:${Math.random().toString(36).slice(2)}`}},56740:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=e=>{var t,r,n,i,a,s,o,l,u,c,d,h,f;return e?(null==e?void 0:e.username)?e.username:(null==e||null==(t=e.profile)?void 0:t.displayName)?null==e||null==(r=e.profile)?void 0:r.displayName:(null==e||null==(i=e.profile)||null==(n=i.address)?void 0:n.firstName)||(null==e||null==(s=e.profile)||null==(a=s.address)?void 0:a.lastName)?"".concat(null==e||null==(l=e.profile)||null==(o=l.address)?void 0:o.firstName," ").concat(null==e||null==(c=e.profile)||null==(u=c.address)?void 0:u.lastName):(null==e?void 0:e.name)?e.name:e.isGuest?null==e||null==(f=e.primaryEmail)||null==(h=f.address)||null==(d=h.split("."))?void 0:d[0]:null:null}},57929:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=r.get(e);return t||(t=Object.create(null),r.set(e,t)),t};var r=new WeakMap},58287:(e,t,r)=>{"use strict";function n(e,t){if(!e)throw Error(t)}r.d(t,{U:()=>n})},58647:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14232);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...a}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},a),r?n.createElement("title",{id:i},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))})},58973:(e,t,r)=>{"use strict";r.d(t,{k:()=>l,v:()=>o});var n=r(37876),i=r(14232),a=r(17059);let s=(0,i.createContext)(void 0),o=()=>{let e=(0,i.useContext)(s);if(!e)throw Error("useChatContext must be used within a ChatProvider");return e},l=e=>{let{children:t}=e,r=(0,a.b)(),o=(0,i.useMemo)(()=>({messages:r.messages,handleSubmit:r.handleSubmit,error:r.error,clearHistory:r.clearHistory,stop:r.stop,addInterruptionMessage:r.addInterruptionMessage,status:r.status,reload:r.reload,sendMessage:r.sendMessage,resumeStream:r.resumeStream}),[r.messages,r.handleSubmit,r.error,r.clearHistory,r.stop,r.addInterruptionMessage,r.status,r.reload,r.sendMessage,r.resumeStream]);return(0,n.jsx)(s.Provider,{value:o,children:t})}},60364:(e,t,r)=>{"use strict";function n(e){return"object"==typeof e&&null!==e&&"nodeType"in e}function i(e){return n(e)&&"tagName"in e}function a(e){return i(e)&&"accessKey"in e}function s(e){return i(e)&&"tabIndex"in e}function o(e){return i(e)&&"style"in e}function l(e){return a(e)&&"IFRAME"===e.nodeName}function u(e){return a(e)&&"INPUT"===e.nodeName}function c(e){return a(e)&&"LABEL"===e.nodeName}function d(e){return a(e)&&"FIELDSET"===e.nodeName}function h(e){return a(e)&&"LEGEND"===e.nodeName}function f(e){return!!i(e)&&e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]')}r.d(t,{A3:()=>u,Er:()=>d,Gu:()=>l,H5:()=>f,Jb:()=>h,Lk:()=>s,Ll:()=>n,kS:()=>c,pv:()=>o,sb:()=>a})},63605:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(68906);let i=(0,n.n)(()=>globalThis)||(0,n.n)(()=>window)||(0,n.n)(()=>self)||(0,n.n)(()=>global)||(0,n.n)(function(){return n.n.constructor("return this")()})},63963:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14232);let i=(e,t)=>{let[r,i]=(0,n.useState)(()=>{try{if(window.localStorage){let r=window.localStorage.getItem(e);return r?JSON.parse(r):t}return t}catch(e){return t}});return[r,t=>{try{if(window.localStorage){let n=t instanceof Function?t(r):t;i(n),window.localStorage.setItem(e,JSON.stringify(n))}else console.error("localStorage is not available")}catch(e){console.error(e)}}]}},64241:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(37876),i=r(54587),a=r.n(i),s=r(14232),o=r(77742),l=r(15489);let u=e=>{let{className:t="w-full h-full",width:r=200,height:i=200}=e;return(0,n.jsxs)("svg",{width:r,height:i,viewBox:"0 0 200 200",fill:"none",className:t,xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("rect",{x:"10",y:"10",width:"180",height:"180",rx:"8",stroke:"currentColor",strokeWidth:"3",strokeDasharray:"8 4",fill:"transparent",className:"text-slate-800 dark:text-slate-400"}),(0,n.jsx)("rect",{x:"40",y:"40",width:"120",height:"80",rx:"4",stroke:"currentColor",strokeWidth:"3",fill:"transparent"}),(0,n.jsx)("path",{d:"M50 100 L70 80 L90 95 L110 75 L130 90 L150 70",stroke:"currentColor",strokeWidth:"3",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("circle",{cx:"130",cy:"55",r:"8",stroke:"currentColor",strokeWidth:"3",fill:"transparent"}),(0,n.jsx)("text",{x:"100",y:"145",textAnchor:"middle",className:"text-slate-800 dark:text-slate-300 text-sm font-semibold",fill:"currentColor",children:"No Image"})]})},c=e=>{let{fallbackSrc:t="",src:r,...i}=e,[c,d]=(0,s.useState)(r),[h,f]=(0,s.useState)(!1),{formatMessage:p}=(0,o.A)();return h||!c?(0,n.jsx)("div",{className:i.className||"w-full h-full flex items-center justify-center bg-slate-50 dark:bg-slate-800",children:(0,n.jsx)(u,{width:i.width||200,height:i.height||200,className:"max-w-full max-h-full"})}):(0,n.jsx)(a(),{src:c,loader:l.A,alt:p({id:"image-not-found",defaultMessage:"Image not found"}),...i,onError:()=>{t&&c!==t?d(t):f(!0)}})}},65023:(e,t,r)=>{"use strict";r.d(t,{N:()=>i});var n=r(65402);function i(e){return function(t){if((0,n.T)(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")}}},65402:(e,t,r)=>{"use strict";function n(e){return"function"==typeof e}r.d(t,{T:()=>n})},65484:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(96427);function i(){let e=(0,n._)(["\n fragment MD5MetaDataFragment on WebAuthnMDSv3Metadata {\n legalHeader\n description\n authenticatorVersion\n protocolFamily\n schema\n authenticationAlgorithms\n publicKeyAlgAndEncodings\n attestationTypes\n keyProtection\n upv\n tcDisplay\n authenticationAlgorithms\n publicKeyAlgAndEncodings\n icon\n authenticatorGetInfo\n }\n"]);return i=function(){return e},e}let a=(0,r(79350).J1)(i())},65585:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(96427),i=r(79350),a=r(18885);function s(){let e=(0,n._)(["\n query UsersCount(\n $includeGuests: Boolean\n $queryString: String\n $lastLogin: DateFilterInput\n $emailVerified: Boolean\n ) {\n usersCount(\n includeGuests: $includeGuests\n queryString: $queryString\n lastLogin: $lastLogin\n emailVerified: $emailVerified\n )\n }\n"]);return s=function(){return e},e}let o=(0,i.J1)(s()),l=function(){let{includeGuests:e=!1,queryString:t=null,lastLogin:r=null,emailVerified:n=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{data:i,loading:s,error:l}=(0,a.I)(o,{variables:{includeGuests:e,queryString:t,lastLogin:r,emailVerified:n}});return{usersCount:(null==i?void 0:i.usersCount)||0,loading:s,error:l}}},66434:(e,t,r)=>{"use strict";var n;r.d(t,{p:()=>n}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error",e[e.streaming=9]="streaming"}(n||(n={}))},67994:(e,t,r)=>{"use strict";r.d(t,{m:()=>s});var n=r(14232),i=r(19650),a=r(94852);function s(e){let t=n.useContext((0,a.l)()),r=e||t.client;return(0,i.V1)(!!r,28),r}},68128:(e,t,r)=>{"use strict";e.exports=r(29044)},68260:(e,t,r)=>{"use strict";r.d(t,{Ac:()=>s,Ci:()=>l,FX:()=>f,mK:()=>o,oE:()=>p,v6:()=>h});var n=r(14232),i=r(30245),a=r(81105),s=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(s||{}),o=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(o||{});function l(){let e,t,r=(e=(0,n.useRef)([]),t=(0,n.useCallback)(t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)},[]),function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];if(!n.every(e=>null==e))return e.current=n,t});return(0,n.useCallback)(e=>(function(e){let{ourProps:t,theirProps:r,slot:n,defaultTag:i,features:s,visible:o=!0,name:l,mergeRefs:h}=e;h=null!=h?h:c;let f=d(r,t);if(o)return u(f,n,i,l,h);let p=null!=s?s:0;if(2&p){let{static:e=!1,...t}=f;if(e)return u(t,n,i,l,h)}if(1&p){let{unmount:e=!0,...t}=f;return(0,a.Y)(+!e,{0:()=>null,1:()=>u({...t,hidden:!0,style:{display:"none"}},n,i,l,h)})}return u(f,n,i,l,h)})({mergeRefs:r,...e}),[r])}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,{as:o=r,children:l,refName:u="ref",...c}=m(e,["unmount","static"]),h=void 0!==e.ref?{[u]:e.ref}:{},f="function"==typeof l?l(t):l;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let g={};if(t){let e=!1,r=[];for(let[n,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&r.push(n.replace(/([A-Z])/g,e=>"-".concat(e.toLowerCase())));if(e)for(let e of(g["data-headlessui-state"]=r.join(" "),r))g["data-".concat(e)]=""}if(o===n.Fragment&&(Object.keys(p(c)).length>0||Object.keys(p(g)).length>0))if(!(0,n.isValidElement)(f)||Array.isArray(f)&&f.length>1){if(Object.keys(p(c)).length>0)throw Error(['Passing props on "Fragment"!\n',"The current component <".concat(a,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(p(c)).concat(Object.keys(p(g))).map(e=>" - ".concat(e)).join("\n"),"\nYou can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>" - ".concat(e)).join("\n")].join("\n"))}else{var _;let e=f.props,t=null==e?void 0:e.className,r="function"==typeof t?function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return(0,i.x)(t(...r),c.className)}:(0,i.x)(t,c.className),a=d(f.props,p(m(c,["ref"])));for(let e in g)e in a&&delete g[e];return(0,n.cloneElement)(f,Object.assign({},a,g,h,{ref:s((_=f,n.version.split(".")[0]>="19"?_.props.ref:_.ref),h.ref)},r?{className:r}:{}))}return(0,n.createElement)(o,Object.assign({},m(c,["ref"]),o!==n.Fragment&&h,o!==n.Fragment&&g),f)}function c(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.every(e=>null==e)?void 0:e=>{for(let r of t)null!=r&&("function"==typeof r?r(e):r.current=e)}}function d(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0===t.length)return{};if(1===t.length)return t[0];let n={},i={};for(let e of t)for(let t in e)t.startsWith("on")&&"function"==typeof e[t]?(null!=i[t]||(i[t]=[]),i[t].push(e[t])):n[t]=e[t];if(n.disabled||n["aria-disabled"])for(let e in i)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(i[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in i)Object.assign(n,{[e](t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];for(let r of i[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;r(t,...n)}}});return n}function h(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0===t.length)return{};if(1===t.length)return t[0];let n={},i={};for(let e of t)for(let t in e)t.startsWith("on")&&"function"==typeof e[t]?(null!=i[t]||(i[t]=[]),i[t].push(e[t])):n[t]=e[t];for(let e in i)Object.assign(n,{[e](){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];for(let t of i[e])null==t||t(...r)}});return n}function f(e){var t;return Object.assign((0,n.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function p(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}},68906:(e,t,r)=>{"use strict";function n(e){try{return e()}catch{}}r.d(t,{n:()=>n})},69241:(e,t,r)=>{"use strict";function n(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(r=0;r<a;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{$:()=>n,A:()=>i});let i=n},69368:(e,t,r)=>{"use strict";var n=r(53757);(0,r(90600).shouldPolyfill)()&&Object.defineProperty(Intl,"PluralRules",{value:n.PluralRules,writable:!0,enumerable:!1,configurable:!0})},69964:(e,t,r)=>{e=r.nmd(e);var n,i,a="__lodash_hash_undefined__",s="[object Arguments]",o="[object Array]",l="[object Boolean]",u="[object Date]",c="[object Error]",d="[object Function]",h="[object Map]",f="[object Number]",p="[object Object]",m="[object Promise]",g="[object RegExp]",_="[object Set]",y="[object String]",v="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",k=/^\[object .+?Constructor\]$/,E=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[s]=x[o]=x[b]=x[l]=x[w]=x[u]=x[c]=x[d]=x[h]=x[f]=x[p]=x[g]=x[_]=x[y]=x[v]=!1;var S="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,T="object"==typeof self&&self&&self.Object===Object&&self,A=S||T||Function("return this")(),I=t&&!t.nodeType&&t,N=I&&e&&!e.nodeType&&e,C=N&&N.exports===I,O=C&&S.process,P=function(){try{return O&&O.binding&&O.binding("util")}catch(e){}}(),D=P&&P.isTypedArray;function M(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function L(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var R=Array.prototype,F=Function.prototype,j=Object.prototype,z=A["__core-js_shared__"],B=F.toString,U=j.hasOwnProperty,V=function(){var e=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),q=j.toString,Z=RegExp("^"+B.call(U).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),H=C?A.Buffer:void 0,$=A.Symbol,G=A.Uint8Array,W=j.propertyIsEnumerable,K=R.splice,Q=$?$.toStringTag:void 0,J=Object.getOwnPropertySymbols,Y=H?H.isBuffer:void 0,X=(n=Object.keys,i=Object,function(e){return n(i(e))}),ee=ex(A,"DataView"),et=ex(A,"Map"),er=ex(A,"Promise"),en=ex(A,"Set"),ei=ex(A,"WeakMap"),ea=ex(Object,"create"),es=eA(ee),eo=eA(et),el=eA(er),eu=eA(en),ec=eA(ei),ed=$?$.prototype:void 0,eh=ed?ed.valueOf:void 0;function ef(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ep(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function em(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eg(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new em;++t<r;)this.add(e[t])}function e_(e){var t=this.__data__=new ep(e);this.size=t.size}function ey(e,t){for(var r=e.length;r--;)if(eI(e[r][0],t))return r;return -1}function ev(e){var t;return null==e?void 0===e?"[object Undefined]":"[object Null]":Q&&Q in Object(e)?function(e){var t=U.call(e,Q),r=e[Q];try{e[Q]=void 0;var n=!0}catch(e){}var i=q.call(e);return n&&(t?e[Q]=r:delete e[Q]),i}(e):(t=e,q.call(t))}function eb(e){return eL(e)&&ev(e)==s}function ew(e,t,r,n,i,a){var s=1&r,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var u=a.get(e);if(u&&a.get(t))return u==t;var c=-1,d=!0,h=2&r?new eg:void 0;for(a.set(e,t),a.set(t,e);++c<o;){var f=e[c],p=t[c];if(n)var m=s?n(p,f,c,t,e,a):n(f,p,c,e,t,a);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}(t,function(e,t){if(!h.has(t)&&(f===e||i(f,e,r,n,a)))return h.push(t)})){d=!1;break}}else if(!(f===p||i(f,p,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function ek(e){var t;return t=eF(e),eC(e)?t:function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}(t,eS(e))}function eE(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function ex(e,t){var r,n=null==e?void 0:e[t];return!(!eM(n)||(r=n,V&&V in r))&&(eP(n)?Z:k).test(eA(n))?n:void 0}ef.prototype.clear=function(){this.__data__=ea?ea(null):{},this.size=0},ef.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},ef.prototype.get=function(e){var t=this.__data__;if(ea){var r=t[e];return r===a?void 0:r}return U.call(t,e)?t[e]:void 0},ef.prototype.has=function(e){var t=this.__data__;return ea?void 0!==t[e]:U.call(t,e)},ef.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=ea&&void 0===t?a:t,this},ep.prototype.clear=function(){this.__data__=[],this.size=0},ep.prototype.delete=function(e){var t=this.__data__,r=ey(t,e);return!(r<0)&&(r==t.length-1?t.pop():K.call(t,r,1),--this.size,!0)},ep.prototype.get=function(e){var t=this.__data__,r=ey(t,e);return r<0?void 0:t[r][1]},ep.prototype.has=function(e){return ey(this.__data__,e)>-1},ep.prototype.set=function(e,t){var r=this.__data__,n=ey(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},em.prototype.clear=function(){this.size=0,this.__data__={hash:new ef,map:new(et||ep),string:new ef}},em.prototype.delete=function(e){var t=eE(this,e).delete(e);return this.size-=!!t,t},em.prototype.get=function(e){return eE(this,e).get(e)},em.prototype.has=function(e){return eE(this,e).has(e)},em.prototype.set=function(e,t){var r=eE(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this},eg.prototype.add=eg.prototype.push=function(e){return this.__data__.set(e,a),this},eg.prototype.has=function(e){return this.__data__.has(e)},e_.prototype.clear=function(){this.__data__=new ep,this.size=0},e_.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},e_.prototype.get=function(e){return this.__data__.get(e)},e_.prototype.has=function(e){return this.__data__.has(e)},e_.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ep){var n=r.__data__;if(!et||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new em(n)}return r.set(e,t),this.size=r.size,this};var eS=J?function(e){return null==e?[]:function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,a=[];++r<n;){var s=e[r];t(s,r,e)&&(a[i++]=s)}return a}(J(e=Object(e)),function(t){return W.call(e,t)})}:function(){return[]},eT=ev;function eA(e){if(null!=e){try{return B.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eI(e,t){return e===t||e!=e&&t!=t}(ee&&eT(new ee(new ArrayBuffer(1)))!=w||et&&eT(new et)!=h||er&&eT(er.resolve())!=m||en&&eT(new en)!=_||ei&&eT(new ei)!=v)&&(eT=function(e){var t=ev(e),r=t==p?e.constructor:void 0,n=r?eA(r):"";if(n)switch(n){case es:return w;case eo:return h;case el:return m;case eu:return _;case ec:return v}return t});var eN=eb(function(){return arguments}())?eb:function(e){return eL(e)&&U.call(e,"callee")&&!W.call(e,"callee")},eC=Array.isArray,eO=Y||function(){return!1};function eP(e){if(!eM(e))return!1;var t=ev(e);return t==d||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eD(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function eM(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eL(e){return null!=e&&"object"==typeof e}var eR=D?function(e){return D(e)}:function(e){return eL(e)&&eD(e.length)&&!!x[ev(e)]};function eF(e){return null!=e&&eD(e.length)&&!eP(e)?function(e,t){var r,n,i=eC(e),a=!i&&eN(e),s=!i&&!a&&eO(e),o=!i&&!a&&!s&&eR(e),l=i||a||s||o,u=l?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=u.length;for(var d in e){U.call(e,d)&&!(l&&("length"==d||s&&("offset"==d||"parent"==d)||o&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||(r=d,(n=null==(n=c)?0x1fffffffffffff:n)&&("number"==typeof r||E.test(r))&&r>-1&&r%1==0&&r<n)))&&u.push(d)}return u}(e):function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||j))return X(e);var t,r,n=[];for(var i in Object(e))U.call(e,i)&&"constructor"!=i&&n.push(i);return n}(e)}e.exports=function(e,t){return function e(t,r,n,i,a){return t===r||(null!=t&&null!=r&&(eL(t)||eL(r))?function(e,t,r,n,i,a){var d=eC(e),m=eC(t),v=d?o:eT(e),k=m?o:eT(t);v=v==s?p:v,k=k==s?p:k;var E=v==p,x=k==p,S=v==k;if(S&&eO(e)){if(!eO(t))return!1;d=!0,E=!1}if(S&&!E)return a||(a=new e_),d||eR(e)?ew(e,t,r,n,i,a):function(e,t,r,n,i,a,s){switch(r){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case b:if(e.byteLength!=t.byteLength||!a(new G(e),new G(t)))break;return!0;case l:case u:case f:return eI(+e,+t);case c:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case h:var o=M;case _:var d=1&n;if(o||(o=L),e.size!=t.size&&!d)break;var p=s.get(e);if(p)return p==t;n|=2,s.set(e,t);var m=ew(o(e),o(t),n,i,a,s);return s.delete(e),m;case"[object Symbol]":if(eh)return eh.call(e)==eh.call(t)}return!1}(e,t,v,r,n,i,a);if(!(1&r)){var T=E&&U.call(e,"__wrapped__"),A=x&&U.call(t,"__wrapped__");if(T||A){var I=T?e.value():e,N=A?t.value():t;return a||(a=new e_),i(I,N,r,n,a)}}return!!S&&(a||(a=new e_),function(e,t,r,n,i,a){var s=1&r,o=ek(e),l=o.length;if(l!=ek(t).length&&!s)return!1;for(var u=l;u--;){var c=o[u];if(!(s?c in t:U.call(t,c)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var h=!0;a.set(e,t),a.set(t,e);for(var f=s;++u<l;){var p=e[c=o[u]],m=t[c];if(n)var g=s?n(m,p,c,t,e,a):n(p,m,c,e,t,a);if(!(void 0===g?p===m||i(p,m,r,n,a):g)){h=!1;break}f||(f="constructor"==c)}if(h&&!f){var _=e.constructor,y=t.constructor;_!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof y&&y instanceof y)&&(h=!1)}return a.delete(e),a.delete(t),h}(e,t,r,n,i,a))}(t,r,n,i,e,a):t!=t&&r!=r)}(e,t)}},72522:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14232);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...a}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},a),r?n.createElement("title",{id:i},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 7.5-9-5.25L3 7.5m18 0-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"}))})},72539:(e,t,r)=>{"use strict";var n=r(4902).__importDefault(r(19124));(0,r(94745).shouldPolyfill)()&&Object.defineProperty(Intl,"RelativeTimeFormat",{value:n.default,writable:!0,enumerable:!1,configurable:!0})},72836:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(96427),i=r(79350),a=r(18885),s=r(42422);function o(){let e=(0,n._)(["\n query Countries(\n $queryString: String\n $limit: Int\n $offset: Int\n $includeInactive: Boolean\n $sort: [SortOptionInput!]\n ) {\n countries(\n queryString: $queryString\n limit: $limit\n offset: $offset\n includeInactive: $includeInactive\n sort: $sort\n ) {\n ...CountryFragment\n }\n countriesCount(includeInactive: $includeInactive, queryString: $queryString)\n }\n\n ","\n"]);return o=function(){return e},e}let l=(0,i.J1)(o(),s.A),u=function(){let{queryString:e="",limit:t=20,offset:r=0,includeInactive:n=!0,sort:i=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{data:s,loading:o,error:u,fetchMore:c}=(0,a.I)(l,{variables:{queryString:e,limit:t,offset:r,includeInactive:n,sort:i}}),d=(null==s?void 0:s.countries)||[],h=null==s?void 0:s.countriesCount,f=(null==d?void 0:d.length)<h;return{countries:d,countriesCount:h,hasMore:f,loading:o,error:u,loadMore:()=>{c({variables:{offset:null==d?void 0:d.length}})}}}},73535:(e,t,r)=>{"use strict";r.d(t,{B:()=>d,p:()=>h});var n,i,a=r(14232),s=r(10451),o=r(98615),l=r(29521),u=r(99742);void 0!==u&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&(null==(n=null==u?void 0:u.env)?void 0:n.NODE_ENV)==="test"&&void 0===(null==(i=null==Element?void 0:Element.prototype)?void 0:i.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn("Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.\nPlease install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.\n\nExample usage:\n```js\nimport { mockAnimationsApi } from 'jsdom-testing-mocks'\nmockAnimationsApi()\n```"),[]});var c=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(c||{});function d(e){let t={};for(let r in e)!0===e[r]&&(t["data-".concat(r)]="");return t}function h(e,t,r,n){let[i,u]=(0,a.useState)(r),{hasFlag:c,addFlag:d,removeFlag:h}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,r]=(0,a.useState)(e),n=(0,a.useCallback)(e=>r(e),[t]),i=(0,a.useCallback)(e=>r(t=>t|e),[t]),s=(0,a.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:n,addFlag:i,hasFlag:s,removeFlag:(0,a.useCallback)(e=>r(t=>t&~e),[r]),toggleFlag:(0,a.useCallback)(e=>r(t=>t^e),[r])}}(e&&i?3:0),f=(0,a.useRef)(!1),p=(0,a.useRef)(!1),m=(0,o.L)();return(0,l.s)(()=>{var i;if(e){if(r&&u(!0),!t){r&&d(3);return}return null==(i=null==n?void 0:n.start)||i.call(n,r),function(e,t){let{prepare:r,run:n,done:i,inFlight:a}=t,o=(0,s.e)();return function(e,t){let{inFlight:r,prepare:n}=t;if(null!=r&&r.current)return n();let i=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=i}(e,{prepare:r,inFlight:a}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(function(e,t){var r,n;let i=(0,s.e)();if(!e)return i.dispose;let a=!1;i.add(()=>{a=!0});let o=null!=(n=null==(r=e.getAnimations)?void 0:r.call(e).filter(e=>e instanceof CSSTransition))?n:[];return 0===o.length?t():Promise.allSettled(o.map(e=>e.finished)).then(()=>{a||t()}),i.dispose}(e,i))})}),o.dispose}(t,{inFlight:f,prepare(){p.current?p.current=!1:p.current=f.current,f.current=!0,p.current||(r?(d(3),h(4)):(d(4),h(2)))},run(){p.current?r?(h(3),d(4)):(h(4),d(3)):r?h(1):d(1)},done(){var e;p.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(f.current=!1,h(7),r||u(!1),null==(e=null==n?void 0:n.end)||e.call(n,r))}})}},[e,r,t,m]),e?[i,{closed:c(1),enter:c(2),leave:c(4),transition:c(2)||c(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}},73902:(e,t,r)=>{"use strict";r.d(t,{G:()=>a});var n=r(1300),i=r(23356);function a(e){return n.g&&function(e){let t=new Set([e]);t.forEach(e=>{(0,i.U)(e)&&function(e){if(n.g&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(r=>{(0,i.U)(e[r])&&t.add(e[r])})})}(e),e}},74020:(e,t,r)=>{"use strict";function n(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}r.d(t,{L:()=>n})},74714:(e,t,r)=>{"use strict";r.d(t,{D:()=>n});var n=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(n||{})},74769:(e,t,r)=>{"use strict";r.d(t,{ZE:()=>i,Im:()=>c,tv:()=>h,Tu:()=>v,eW:()=>u,oF:()=>d,N1:()=>y,N6:()=>m,jA:()=>g,Jp:()=>p,xm:()=>_,Qh:()=>f,qg:()=>X});var n,i,a,s,o,l=r(4902);function u(e){return e.type===i.literal}function c(e){return e.type===i.argument}function d(e){return e.type===i.number}function h(e){return e.type===i.date}function f(e){return e.type===i.time}function p(e){return e.type===i.select}function m(e){return e.type===i.plural}function g(e){return e.type===i.pound}function _(e){return e.type===i.tag}function y(e){return!!(e&&"object"==typeof e&&e.type===a.number)}function v(e){return!!(e&&"object"==typeof e&&e.type===a.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(n||(n={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(i||(i={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(a||(a={}));var b=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,w=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,k=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,E=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,x=/^(@+)?(\+|#+)?[rs]?$/g,S=/(\*)(0+)|(#+)(0+)|(0+)/g,T=/^(0+)$/;function A(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(x,function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),t}function I(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function N(e){var t=I(e);return t||{}}var C={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},O=new RegExp("^".concat(b.source,"*")),P=new RegExp("".concat(b.source,"*$"));function D(e,t){return{start:e,end:t}}var M=!!String.prototype.startsWith&&"_a".startsWith("a",1),L=!!String.fromCodePoint,R=!!Object.fromEntries,F=!!String.prototype.codePointAt,j=!!String.prototype.trimStart,z=!!String.prototype.trimEnd,B=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&0x1fffffffffffff>=Math.abs(e)},U=!0;try{U=(null==(s=W("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:s[0])==="a"}catch(e){U=!1}var V=M?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},q=L?String.fromCodePoint:function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,a=0;i>a;){if((e=t[a++])>1114111)throw RangeError(e+" is not a valid code point");n+=e<65536?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,e%1024+56320)}return n},Z=R?Object.fromEntries:function(e){for(var t={},r=0;r<e.length;r++){var n=e[r],i=n[0],a=n[1];t[i]=a}return t},H=F?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0)&&!(t>=n)){var i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:(i-55296<<10)+(r-56320)+65536}},$=j?function(e){return e.trimStart()}:function(e){return e.replace(O,"")},G=z?function(e){return e.trimEnd()}:function(e){return e.replace(P,"")};function W(e,t){return new RegExp(e,t)}if(U){var K=W("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");o=function(e,t){var r;return K.lastIndex=t,null!=(r=K.exec(e)[1])?r:""}}else o=function(e,t){for(var r=[];;){var n,i=H(e,t);if(void 0===i||Y(i)||(n=i)>=33&&n<=35||36===n||n>=37&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||n>=46&&n<=47||n>=58&&n<=59||n>=60&&n<=62||n>=63&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||n>=162&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||n>=8208&&n<=8213||n>=8214&&n<=8215||8216===n||8217===n||8218===n||n>=8219&&n<=8220||8221===n||8222===n||8223===n||n>=8224&&n<=8231||n>=8240&&n<=8248||8249===n||8250===n||n>=8251&&n<=8254||n>=8257&&n<=8259||8260===n||8261===n||8262===n||n>=8263&&n<=8273||8274===n||8275===n||n>=8277&&n<=8286||n>=8592&&n<=8596||n>=8597&&n<=8601||n>=8602&&n<=8603||n>=8604&&n<=8607||8608===n||n>=8609&&n<=8610||8611===n||n>=8612&&n<=8613||8614===n||n>=8615&&n<=8621||8622===n||n>=8623&&n<=8653||n>=8654&&n<=8655||n>=8656&&n<=8657||8658===n||8659===n||8660===n||n>=8661&&n<=8691||n>=8692&&n<=8959||n>=8960&&n<=8967||8968===n||8969===n||8970===n||8971===n||n>=8972&&n<=8991||n>=8992&&n<=8993||n>=8994&&n<=9e3||9001===n||9002===n||n>=9003&&n<=9083||9084===n||n>=9085&&n<=9114||n>=9115&&n<=9139||n>=9140&&n<=9179||n>=9180&&n<=9185||n>=9186&&n<=9254||n>=9255&&n<=9279||n>=9280&&n<=9290||n>=9291&&n<=9311||n>=9472&&n<=9654||9655===n||n>=9656&&n<=9664||9665===n||n>=9666&&n<=9719||n>=9720&&n<=9727||n>=9728&&n<=9838||9839===n||n>=9840&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||n>=10132&&n<=10175||n>=10176&&n<=10180||10181===n||10182===n||n>=10183&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||n>=10224&&n<=10239||n>=10240&&n<=10495||n>=10496&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||n>=10649&&n<=10711||10712===n||10713===n||10714===n||10715===n||n>=10716&&n<=10747||10748===n||10749===n||n>=10750&&n<=11007||n>=11008&&n<=11055||n>=11056&&n<=11076||n>=11077&&n<=11078||n>=11079&&n<=11084||n>=11085&&n<=11123||n>=11124&&n<=11125||n>=11126&&n<=11157||11158===n||n>=11159&&n<=11263||n>=11776&&n<=11777||11778===n||11779===n||11780===n||11781===n||n>=11782&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||n>=11790&&n<=11798||11799===n||n>=11800&&n<=11801||11802===n||11803===n||11804===n||11805===n||n>=11806&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||n>=11818&&n<=11822||11823===n||n>=11824&&n<=11833||n>=11834&&n<=11835||n>=11836&&n<=11839||11840===n||11841===n||11842===n||n>=11843&&n<=11855||n>=11856&&n<=11857||11858===n||n>=11859&&n<=11903||n>=12289&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||n>=12306&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||n>=12318&&n<=12319||12320===n||12336===n||64830===n||64831===n||n>=65093&&n<=65094)break;r.push(i),t+=i>=65536?2:1}return q.apply(void 0,r)};var Q=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var a=[];!this.isEOF();){var s=this.char();if(123===s){var o=this.parseArgument(e,r);if(o.err)return o;a.push(o.val)}else if(125===s&&e>0)break;else if(35===s&&("plural"===t||"selectordinal"===t)){var l=this.clonePosition();this.bump(),a.push({type:i.pound,location:D(l,this.clonePosition())})}else if(60!==s||this.ignoreTag||47!==this.peek())if(60===s&&!this.ignoreTag&&J(this.peek()||0)){var o=this.parseTag(e,t);if(o.err)return o;a.push(o.val)}else{var o=this.parseLiteral(e,t);if(o.err)return o;a.push(o.val)}else if(!r)return this.error(n.UNMATCHED_CLOSING_TAG,D(this.clonePosition(),this.clonePosition()));else break}return{val:a,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:i.literal,value:"<".concat(a,"/>"),location:D(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(n.INVALID_TAG,D(r,this.clonePosition()));var s=this.parseMessage(e+1,t,!0);if(s.err)return s;var o=s.val,l=this.clonePosition();if(!this.bumpIf("</"))return this.error(n.UNCLOSED_TAG,D(r,this.clonePosition()));if(this.isEOF()||!J(this.char()))return this.error(n.INVALID_TAG,D(l,this.clonePosition()));var u=this.clonePosition();return a!==this.parseTagName()?this.error(n.UNMATCHED_CLOSING_TAG,D(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:i.tag,value:a,children:o,location:D(r,this.clonePosition())},err:null}:this.error(n.INVALID_TAG,D(l,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var a=this.tryParseQuote(t);if(a){n+=a;continue}var s=this.tryParseUnquoted(e,t);if(s){n+=s;continue}var o=this.tryParseLeftAngleBracket();if(o){n+=o;continue}break}var l=D(r,this.clonePosition());return{val:{type:i.literal,value:n,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(J(e=this.peek()||0)||47===e)?null:(this.bump(),"<")},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r)if(39===this.peek())t.push(39),this.bump();else{this.bump();break}else t.push(r);this.bump()}return q.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),q(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,D(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(n.EMPTY_ARGUMENT,D(r,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(n.MALFORMED_ARGUMENT,D(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,D(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:i.argument,value:a,location:D(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,D(r,this.clonePosition()));return this.parseArgumentOptions(e,t,a,r);default:return this.error(n.MALFORMED_ARGUMENT,D(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=o(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:D(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,s){var o,u=this.clonePosition(),c=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(c){case"":return this.error(n.EXPECT_ARGUMENT_TYPE,D(u,d));case"number":case"date":case"time":this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),p=this.parseSimpleArgStyleIfPossible();if(p.err)return p;var m=G(p.val);if(0===m.length)return this.error(n.EXPECT_ARGUMENT_STYLE,D(this.clonePosition(),this.clonePosition()));h={style:m,styleLocation:D(f,this.clonePosition())}}var g=this.tryParseArgumentClose(s);if(g.err)return g;var _=D(s,this.clonePosition());if(h&&V(null==h?void 0:h.style,"::",0)){var y=$(h.style.slice(2));if("number"===c){var p=this.parseNumberSkeletonFromString(y,h.styleLocation);if(p.err)return p;return{val:{type:i.number,value:r,location:_,style:p.val},err:null}}if(0===y.length)return this.error(n.EXPECT_DATE_TIME_SKELETON,_);var v,b=y;this.locale&&(b=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var a=0;n+1<e.length&&e.charAt(n+1)===i;)a++,n++;var s=1+(1&a),o=a<2?1:3+(a>>1),l=function(e){var t,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var n=e.language;return"root"!==n&&(t=e.maximize().region),(C[t||""]||C[n||""]||C["".concat(n,"-001")]||C["001"])[0]}(t);for(("H"==l||"k"==l)&&(o=0);o-- >0;)r+="a";for(;s-- >0;)r=l+r}else"J"===i?r+="H":r+=i}return r}(y,this.locale));var m={type:a.dateTime,pattern:b,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?(v={},b.replace(w,function(e){var t=e.length;switch(e[0]){case"G":v.era=4===t?"long":5===t?"narrow":"short";break;case"y":v.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":v.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":v.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":v.weekday=4===t?"long":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");v.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");v.weekday=["short","long","narrow","short"][t-4];break;case"a":v.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":v.hourCycle="h12",v.hour=["numeric","2-digit"][t-1];break;case"H":v.hourCycle="h23",v.hour=["numeric","2-digit"][t-1];break;case"K":v.hourCycle="h11",v.hour=["numeric","2-digit"][t-1];break;case"k":v.hourCycle="h24",v.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":v.minute=["numeric","2-digit"][t-1];break;case"s":v.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":v.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),v):{}};return{val:{type:"date"===c?i.date:i.time,value:r,location:_,style:m},err:null}}return{val:{type:"number"===c?i.number:"date"===c?i.date:i.time,value:r,location:_,style:null!=(o=null==h?void 0:h.style)?o:null},err:null};case"plural":case"selectordinal":case"select":var k=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(n.EXPECT_SELECT_ARGUMENT_OPTIONS,D(k,(0,l.__assign)({},k)));this.bumpSpace();var E=this.parseIdentifierIfPossible(),x=0;if("select"!==c&&"offset"===E.value){if(!this.bumpIf(":"))return this.error(n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,D(this.clonePosition(),this.clonePosition()));this.bumpSpace();var p=this.tryParseDecimalInteger(n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(p.err)return p;this.bumpSpace(),E=this.parseIdentifierIfPossible(),x=p.val}var S=this.tryParsePluralOrSelectOptions(e,c,t,E);if(S.err)return S;var g=this.tryParseArgumentClose(s);if(g.err)return g;var T=D(s,this.clonePosition());if("select"===c)return{val:{type:i.select,value:r,options:Z(S.val),location:T},err:null};return{val:{type:i.plural,value:r,options:Z(S.val),offset:x,pluralType:"plural"===c?"cardinal":"ordinal",location:T},err:null};default:return this.error(n.INVALID_ARGUMENT_TYPE,D(u,d))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,D(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,D(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split(k).filter(function(e){return e.length>0}),r=[],n=0;n<t.length;n++){var i=t[n].split("/");if(0===i.length)throw Error("Invalid number skeleton");for(var a=i[0],s=i.slice(1),o=0;o<s.length;o++)if(0===s[o].length)throw Error("Invalid number skeleton");r.push({stem:a,options:s})}return r}(e)}catch(e){return this.error(n.INVALID_NUMBER_SKELETON,t)}return{val:{type:a.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?function(e){for(var t={},r=0;r<e.length;r++){var n=e[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=(0,l.__assign)((0,l.__assign)((0,l.__assign)({},t),{notation:"scientific"}),n.options.reduce(function(e,t){return(0,l.__assign)((0,l.__assign)({},e),N(t))},{}));continue;case"engineering":t=(0,l.__assign)((0,l.__assign)((0,l.__assign)({},t),{notation:"engineering"}),n.options.reduce(function(e,t){return(0,l.__assign)((0,l.__assign)({},e),N(t))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw RangeError("integer-width stems only accept a single optional option");n.options[0].replace(S,function(e,r,n,i,a,s){if(r)t.minimumIntegerDigits=n.length;else if(i&&a)throw Error("We currently do not support maximum integer digits");else if(s)throw Error("We currently do not support exact integer digits");return""});continue}if(T.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(E.test(n.stem)){if(n.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(E,function(e,r,n,i,a,s){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:a&&s?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+s.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var i=n.options[0];"w"===i?t=(0,l.__assign)((0,l.__assign)({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=(0,l.__assign)((0,l.__assign)({},t),A(i)));continue}if(x.test(n.stem)){t=(0,l.__assign)((0,l.__assign)({},t),A(n.stem));continue}var a=I(n.stem);a&&(t=(0,l.__assign)((0,l.__assign)({},t),a));var s=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!T.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem);s&&(t=(0,l.__assign)((0,l.__assign)({},t),s))}return t}(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,i){for(var a,s=!1,o=[],l=new Set,u=i.value,c=i.location;;){if(0===u.length){var d=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(n.EXPECT_PLURAL_ARGUMENT_SELECTOR,n.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=D(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error("select"===t?n.DUPLICATE_SELECT_ARGUMENT_SELECTOR:n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,D(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;o.push([u,{value:p.val,location:D(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),u=(a=this.parseIdentifierIfPossible()).value,c=a.location}return 0===o.length?this.error("select"===t?n.EXPECT_SELECT_ARGUMENT_SELECTOR:n.EXPECT_PLURAL_ARGUMENT_SELECTOR,D(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(n.MISSING_OTHER_CLAUSE,D(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,a=10*a+(s-48),this.bump();else break}var o=D(n,this.clonePosition());return i?B(a*=r)?{val:a,err:null}:this.error(t,o):this.error(e,o)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=H(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(V(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Y(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function J(e){return e>=97&&e<=122||e>=65&&e<=90}function Y(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function X(e,t){void 0===t&&(t={});var r=new Q(e,t=(0,l.__assign)({shouldParseSkeletons:!0,requiresOtherClause:!0},t)).parse();if(r.err){var i=SyntaxError(n[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach(function(t){if(delete t.location,p(t)||m(t))for(var r in t.options)delete t.options[r].location,e(t.options[r].value);else d(t)&&y(t.style)||(h(t)||f(t))&&v(t.style)?delete t.style.location:_(t)&&e(t.children)})}(r.val),r.val}},74877:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(96427),i=r(79350);function a(){let e=(0,n._)(["\n mutation Logout {\n logout {\n success\n }\n }\n "]);return a=function(){return e},e}let s=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;await e.mutate({mutation:(0,i.J1)(a())}),await e.resetStore(),t?t.push("/log-in"):window.location.href="/log-in"}},77016:(e,t,r)=>{"use strict";function n(e){return function e(t,r){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,r){if(null===t)return"null";if(r.includes(t))return"[Circular]";let n=[...r,t];if("function"==typeof t.toJSON){let r=t.toJSON();if(r!==t)return"string"==typeof r?r:e(r,n)}else if(Array.isArray(t)){var i=t,a=n;if(0===i.length)return"[]";if(a.length>2)return"[Array]";let r=Math.min(10,i.length),s=i.length-r,o=[];for(let t=0;t<r;++t)o.push(e(i[t],a));return 1===s?o.push("... 1 more item"):s>1&&o.push(`... ${s} more items`),"["+o.join(", ")+"]"}var s=t,o=n;let l=Object.entries(s);return 0===l.length?"{}":o.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(s)+"]":"{ "+l.map(([t,r])=>t+": "+e(r,o)).join(", ")+" }"}(t,r);default:return String(t)}}(e,[])}r.d(t,{N:()=>n})},77262:(e,t,r)=>{"use strict";function n(e){return Intl.getCanonicalLocales(e)}function i(e,t){var r=t.zoneNames,n=t.uppercaseLinks,i=e.toUpperCase(),a=r.reduce(function(e,t){return e[t.toUpperCase()]=t,e},{}),s=n[i]||a[i];return"Etc/UTC"===s||"Etc/GMT"===s?"UTC":s}r.r(t),r.d(t,{ApplyUnsignedRoundingMode:()=>tP,ArrayCreate:()=>e6,CanonicalizeLocaleList:()=>n,CanonicalizeTimeZoneName:()=>i,CoerceOptionsToObject:()=>ty,CollapseNumberRange:()=>tM,ComputeExponent:()=>tq,ComputeExponentForMagnitude:()=>tL,CurrencyDigits:()=>tZ,DateFromTime:()=>tc,Day:()=>tt,DayFromYear:()=>tn,DayWithinYear:()=>to,DaysInYear:()=>ts,FormatApproximately:()=>tX,FormatNumeric:()=>t1,FormatNumericRange:()=>t5,FormatNumericRangeToParts:()=>t3,FormatNumericToParts:()=>t4,FormatNumericToString:()=>tV,GetNumberOption:()=>tb,GetOption:()=>tw,GetOptionsObject:()=>tk,GetStringOrBooleanOption:()=>tE,GetUnsignedRoundingMode:()=>tj,HasOwnProperty:()=>e7,HourFromTime:()=>td,InLeapYear:()=>tl,InitializeNumberFormat:()=>re,IsSanctionedSimpleUnitIdentifier:()=>tA,IsValidTimeZoneName:()=>tI,IsWellFormedCurrencyCode:()=>tC,IsWellFormedUnitIdentifier:()=>tO,MinFromTime:()=>th,MonthFromTime:()=>tu,OrdinaryHasInstance:()=>tm,PartitionNumberPattern:()=>t0,PartitionNumberRangePattern:()=>t2,PartitionPattern:()=>rt,RangePatternType:()=>a,SANCTIONED_UNITS:()=>tx,SIMPLE_UNITS:()=>tT,SameValue:()=>e9,SecFromTime:()=>tf,SetNumberFormatDigitOptions:()=>t7,SetNumberFormatUnitOptions:()=>t8,SupportedLocales:()=>rr,TimeClip:()=>e3,TimeFromYear:()=>ti,ToIntlMathematicalValue:()=>ri,ToNumber:()=>e5,ToObject:()=>e4,ToPrimitive:()=>t_,ToRawFixed:()=>tB,ToRawPrecision:()=>tU,ToString:()=>e2,Type:()=>e8,WeekDay:()=>tr,YearFromTime:()=>ta,ZERO:()=>ej,_formatToParts:()=>tQ,createDataProperty:()=>eK,createMemoizedDateTimeFormat:()=>eY,createMemoizedListFormat:()=>e1,createMemoizedLocale:()=>e0,createMemoizedNumberFormat:()=>eJ,createMemoizedPluralRules:()=>eX,defineProperty:()=>eW,getInternalSlot:()=>eH,getMultiInternalSlots:()=>e$,invariant:()=>eQ,isLiteralPart:()=>eG,isMissingLocaleDataError:()=>rn,msFromTime:()=>tg,removeUnitNamespace:()=>tS,setInternalSlot:()=>eq,setMultiInternalSlots:()=>eZ});var a,s,o,l="0123456789abcdef",u="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",c="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",d={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-9e15,maxE:9e15,crypto:!1},h=!0,f="[DecimalError] ",p=f+"Invalid argument: ",m=f+"Precision limit exceeded",g=f+"crypto unavailable",_="[object Decimal]",y=Math.floor,v=Math.pow,b=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,w=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,k=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,E=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,x=u.length-1,S=c.length-1,T={toStringTag:_};function A(e){var t,r,n,i=e.length-1,a="",s=e[0];if(i>0){for(a+=s,t=1;t<i;t++)(r=7-(n=e[t]+"").length)&&(a+=j(r)),a+=n;(r=7-(n=(s=e[t])+"").length)&&(a+=j(r))}else if(0===s)return"0";for(;s%10==0;)s/=10;return a+s}function I(e,t,r){if(e!==~~e||e<t||e>r)throw Error(p+e)}function N(e,t,r,n){var i,a,s,o;for(a=e[0];a>=10;a/=10)--t;return--t<0?(t+=7,i=0):(i=Math.ceil((t+1)/7),t%=7),a=v(10,7-t),o=e[i]%a|0,null==n?t<3?(0==t?o=o/100|0:1==t&&(o=o/10|0),s=r<4&&99999==o||r>3&&49999==o||5e4==o||0==o):s=(r<4&&o+1==a||r>3&&o+1==a/2)&&(e[i+1]/a/100|0)==v(10,t-2)-1||(o==a/2||0==o)&&(e[i+1]/a/100|0)==0:t<4?(0==t?o=o/1e3|0:1==t?o=o/100|0:2==t&&(o=o/10|0),s=(n||r<4)&&9999==o||!n&&r>3&&4999==o):s=((n||r<4)&&o+1==a||!n&&r>3&&o+1==a/2)&&(e[i+1]/a/1e3|0)==v(10,t-3)-1,s}function C(e,t,r){for(var n,i,a=[0],s=0,o=e.length;s<o;){for(i=a.length;i--;)a[i]*=t;for(a[0]+=l.indexOf(e.charAt(s++)),n=0;n<a.length;n++)a[n]>r-1&&(void 0===a[n+1]&&(a[n+1]=0),a[n+1]+=a[n]/r|0,a[n]%=r)}return a.reverse()}T.absoluteValue=T.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),P(e)},T.ceil=function(){return P(new this.constructor(this),this.e+1,2)},T.clampedTo=T.clamp=function(e,t){var r=this.constructor;if(e=new r(e),t=new r(t),!e.s||!t.s)return new r(NaN);if(e.gt(t))throw Error(p+t);return 0>this.cmp(e)?e:this.cmp(t)>0?t:new r(this)},T.comparedTo=T.cmp=function(e){var t,r,n,i,a=this.d,s=(e=new this.constructor(e)).d,o=this.s,l=e.s;if(!a||!s)return o&&l?o!==l?o:a===s?0:!a^o<0?1:-1:NaN;if(!a[0]||!s[0])return a[0]?o:s[0]?-l:0;if(o!==l)return o;if(this.e!==e.e)return this.e>e.e^o<0?1:-1;for(t=0,r=(n=a.length)<(i=s.length)?n:i;t<r;++t)if(a[t]!==s[t])return a[t]>s[t]^o<0?1:-1;return n===i?0:n>i^o<0?1:-1},T.cosine=T.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(e,t){var r,n,i;if(t.isZero())return t;(n=t.d.length)<32?i=(1/G(4,r=Math.ceil(n/3))).toString():(r=16,i="2.3283064365386962890625e-10"),e.precision+=r,t=$(e,1,t.times(i),new e(1));for(var a=r;a--;){var s=t.times(t);t=s.times(s).minus(s).times(8).plus(1)}return e.precision-=r,t}(n,W(n,r)),n.precision=e,n.rounding=t,P(2==o||3==o?r.neg():r,e,t,!0)):new n(1):new n(NaN)},T.cubeRoot=T.cbrt=function(){var e,t,r,n,i,a,s,o,l,u,c=this.constructor;if(!this.isFinite()||this.isZero())return new c(this);for(h=!1,(a=this.s*v(this.s*this,1/3))&&Math.abs(a)!=1/0?n=new c(a.toString()):(r=A(this.d),(a=((e=this.e)-r.length+1)%3)&&(r+=1==a||-2==a?"0":"00"),a=v(r,1/3),e=y((e+1)/3)-(e%3==(e<0?-1:2)),(n=new c(r=a==1/0?"5e"+e:(r=a.toExponential()).slice(0,r.indexOf("e")+1)+e)).s=this.s),s=(e=c.precision)+3;;)if(n=O((u=(l=(o=n).times(o).times(o)).plus(this)).plus(this).times(o),u.plus(l),s+2,1),A(o.d).slice(0,s)===(r=A(n.d)).slice(0,s)){if("9999"!=(r=r.slice(s-3,s+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(P(n,e+1,1),t=!n.times(n).times(n).eq(this));break}if(!i&&(P(o,e+1,0),o.times(o).times(o).eq(this))){n=o;break}s+=4,i=1}return h=!0,P(n,e,c.rounding,t)},T.decimalPlaces=T.dp=function(){var e,t=this.d,r=NaN;if(t){if(r=((e=t.length-1)-y(this.e/7))*7,e=t[e])for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r},T.dividedBy=T.div=function(e){return O(this,new this.constructor(e))},T.dividedToIntegerBy=T.divToInt=function(e){var t=this.constructor;return P(O(this,new t(e),0,1,1),t.precision,t.rounding)},T.equals=T.eq=function(e){return 0===this.cmp(e)},T.floor=function(){return P(new this.constructor(this),this.e+1,3)},T.greaterThan=T.gt=function(e){return this.cmp(e)>0},T.greaterThanOrEqualTo=T.gte=function(e){var t=this.cmp(e);return 1==t||0===t},T.hyperbolicCosine=T.cosh=function(){var e,t,r,n,i,a=this,s=a.constructor,o=new s(1);if(!a.isFinite())return new s(a.s?1/0:NaN);if(a.isZero())return o;r=s.precision,n=s.rounding,s.precision=r+Math.max(a.e,a.sd())+4,s.rounding=1,(i=a.d.length)<32?t=(1/G(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),a=$(s,1,a.times(t),new s(1),!0);for(var l,u=e,c=new s(8);u--;)l=a.times(a),a=o.minus(l.times(c.minus(l.times(c))));return P(a,s.precision=r,s.rounding=n,!0)},T.hyperbolicSine=T.sinh=function(){var e,t,r,n,i=this,a=i.constructor;if(!i.isFinite()||i.isZero())return new a(i);if(t=a.precision,r=a.rounding,a.precision=t+Math.max(i.e,i.sd())+4,a.rounding=1,(n=i.d.length)<3)i=$(a,2,i,i,!0);else{e=(e=1.4*Math.sqrt(n))>16?16:0|e,i=$(a,2,i=i.times(1/G(5,e)),i,!0);for(var s,o=new a(5),l=new a(16),u=new a(20);e--;)s=i.times(i),i=i.times(o.plus(s.times(l.times(s).plus(u))))}return a.precision=t,a.rounding=r,P(i,t,r,!0)},T.hyperbolicTangent=T.tanh=function(){var e,t,r=this.constructor;return this.isFinite()?this.isZero()?new r(this):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,O(this.sinh(),this.cosh(),r.precision=e,r.rounding=t)):new r(this.s)},T.inverseCosine=T.acos=function(){var e=this,t=e.constructor,r=e.abs().cmp(1),n=t.precision,i=t.rounding;return -1!==r?0===r?e.isNeg()?R(t,n,i):new t(0):new t(NaN):e.isZero()?R(t,n+4,i).times(.5):(t.precision=n+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=n,t.rounding=i,e.times(2))},T.inverseHyperbolicCosine=T.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,h=!1,r=r.times(r).minus(1).sqrt().plus(r),h=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)},T.inverseHyperbolicSine=T.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,h=!1,r=r.times(r).plus(1).sqrt().plus(r),h=!0,n.precision=e,n.rounding=t,r.ln())},T.inverseHyperbolicTangent=T.atanh=function(){var e,t,r,n,i=this,a=i.constructor;return i.isFinite()?i.e>=0?new a(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=a.precision,t=a.rounding,Math.max(n=i.sd(),e)<-(2*i.e)-1)?P(new a(i),e,t,!0):(a.precision=r=n-i.e,i=O(i.plus(1),new a(1).minus(i),r+e,1),a.precision=e+4,a.rounding=1,i=i.ln(),a.precision=e,a.rounding=t,i.times(.5)):new a(NaN)},T.inverseSine=T.asin=function(){var e,t,r,n,i=this,a=i.constructor;return i.isZero()?new a(i):(t=i.abs().cmp(1),r=a.precision,n=a.rounding,-1!==t)?0===t?((e=R(a,r+4,n).times(.5)).s=i.s,e):new a(NaN):(a.precision=r+6,a.rounding=1,i=i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(),a.precision=r,a.rounding=n,i.times(2))},T.inverseTangent=T.atan=function(){var e,t,r,n,i,a,s,o,l,u=this,c=u.constructor,d=c.precision,f=c.rounding;if(u.isFinite()){if(u.isZero())return new c(u);else if(u.abs().eq(1)&&d+4<=S)return(s=R(c,d+4,f).times(.25)).s=u.s,s}else{if(!u.s)return new c(NaN);if(d+4<=S)return(s=R(c,d+4,f).times(.5)).s=u.s,s}for(c.precision=o=d+10,c.rounding=1,e=r=Math.min(28,o/7+2|0);e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(h=!1,t=Math.ceil(o/7),n=1,l=u.times(u),s=new c(u),i=u;-1!==e;)if(i=i.times(l),a=s.minus(i.div(n+=2)),i=i.times(l),void 0!==(s=a.plus(i.div(n+=2))).d[t])for(e=t;s.d[e]===a.d[e]&&e--;);return r&&(s=s.times(2<<r-1)),h=!0,P(s,c.precision=d,c.rounding=f,!0)},T.isFinite=function(){return!!this.d},T.isInteger=T.isInt=function(){return!!this.d&&y(this.e/7)>this.d.length-2},T.isNaN=function(){return!this.s},T.isNegative=T.isNeg=function(){return this.s<0},T.isPositive=T.isPos=function(){return this.s>0},T.isZero=function(){return!!this.d&&0===this.d[0]},T.lessThan=T.lt=function(e){return 0>this.cmp(e)},T.lessThanOrEqualTo=T.lte=function(e){return 1>this.cmp(e)},T.logarithm=T.log=function(e){var t,r,n,i,a,s,o,l=this.constructor,u=l.precision,c=l.rounding;if(null==e)e=new l(10),t=!0;else{if(r=(e=new l(e)).d,e.s<0||!r||!r[0]||e.eq(1))return new l(NaN);t=e.eq(10)}if(r=this.d,this.s<0||!r||!r[0]||this.eq(1))return new l(r&&!r[0]?-1/0:1!=this.s?NaN:r?0:1/0);if(t)if(r.length>1)i=!0;else{for(n=r[0];n%10==0;)n/=10;i=1!==n}if(h=!1,N((o=O(a=q(this,s=u+5),t?L(l,s+10):q(e,s),s,1)).d,n=u,c))do if(s+=10,o=O(a=q(this,s),t?L(l,s+10):q(e,s),s,1),!i){+A(o.d).slice(n+1,n+15)+1==1e14&&(o=P(o,u+1,0));break}while(N(o.d,n+=10,c));return h=!0,P(o,u,c)},T.minus=T.sub=function(e){var t,r,n,i,a,s,o,l,u,c,d,f,p=this.constructor;if(e=new p(e),!this.d||!e.d)return this.s&&e.s?this.d?e.s=-e.s:e=new p(e.d||this.s!==e.s?this:NaN):e=new p(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.plus(e);if(u=this.d,f=e.d,o=p.precision,l=p.rounding,!u[0]||!f[0]){if(f[0])e.s=-e.s;else{if(!u[0])return new p(3===l?-0:0);e=new p(this)}return h?P(e,o,l):e}if(r=y(e.e/7),c=y(this.e/7),u=u.slice(),a=c-r){for((d=a<0)?(t=u,a=-a,s=f.length):(t=f,r=c,s=u.length),a>(n=Math.max(Math.ceil(o/7),s)+2)&&(a=n,t.length=1),t.reverse(),n=a;n--;)t.push(0);t.reverse()}else{for((d=(n=u.length)<(s=f.length))&&(s=n),n=0;n<s;n++)if(u[n]!=f[n]){d=u[n]<f[n];break}a=0}for(d&&(t=u,u=f,f=t,e.s=-e.s),s=u.length,n=f.length-s;n>0;--n)u[s++]=0;for(n=f.length;n>a;){if(u[--n]<f[n]){for(i=n;i&&0===u[--i];)u[i]=1e7-1;--u[i],u[n]+=1e7}u[n]-=f[n]}for(;0===u[--s];)u.pop();for(;0===u[0];u.shift())--r;return u[0]?(e.d=u,e.e=M(u,r),h?P(e,o,l):e):new p(3===l?-0:0)},T.modulo=T.mod=function(e){var t,r=this.constructor;return(e=new r(e),this.d&&e.s&&(!e.d||e.d[0]))?e.d&&(!this.d||this.d[0])?(h=!1,9==r.modulo?(t=O(this,e.abs(),0,3,1),t.s*=e.s):t=O(this,e,0,r.modulo,1),t=t.times(e),h=!0,this.minus(t)):P(new r(this),r.precision,r.rounding):new r(NaN)},T.naturalExponential=T.exp=function(){return V(this)},T.naturalLogarithm=T.ln=function(){return q(this)},T.negated=T.neg=function(){var e=new this.constructor(this);return e.s=-e.s,P(e)},T.plus=T.add=function(e){var t,r,n,i,a,s,o,l,u,c,d=this.constructor;if(e=new d(e),!this.d||!e.d)return this.s&&e.s?this.d||(e=new d(e.d||this.s===e.s?this:NaN)):e=new d(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.minus(e);if(u=this.d,c=e.d,o=d.precision,l=d.rounding,!u[0]||!c[0])return c[0]||(e=new d(this)),h?P(e,o,l):e;if(a=y(this.e/7),n=y(e.e/7),u=u.slice(),i=a-n){for(i<0?(r=u,i=-i,s=c.length):(r=c,n=a,s=u.length),i>(s=(a=Math.ceil(o/7))>s?a+1:s+1)&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((s=u.length)-(i=c.length)<0&&(i=s,r=c,c=u,u=r),t=0;i;)t=(u[--i]=u[i]+c[i]+t)/1e7|0,u[i]%=1e7;for(t&&(u.unshift(t),++n),s=u.length;0==u[--s];)u.pop();return e.d=u,e.e=M(u,n),h?P(e,o,l):e},T.precision=T.sd=function(e){var t;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(p+e);return this.d?(t=F(this.d),e&&this.e+1>t&&(t=this.e+1)):t=NaN,t},T.round=function(){var e=this.constructor;return P(new e(this),this.e+1,e.rounding)},T.sine=T.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:$(e,2,t,t);r=(r=1.4*Math.sqrt(n))>16?16:0|r,t=$(e,2,t=t.times(1/G(5,r)),t);for(var i,a=new e(5),s=new e(16),o=new e(20);r--;)i=t.times(t),t=t.times(a.plus(i.times(s.times(i).minus(o))));return t}(n,W(n,r)),n.precision=e,n.rounding=t,P(o>2?r.neg():r,e,t,!0)):new n(NaN)},T.squareRoot=T.sqrt=function(){var e,t,r,n,i,a,s=this.d,o=this.e,l=this.s,u=this.constructor;if(1!==l||!s||!s[0])return new u(!l||l<0&&(!s||s[0])?NaN:s?this:1/0);for(h=!1,0==(l=Math.sqrt(+this))||l==1/0?(((t=A(s)).length+o)%2==0&&(t+="0"),l=Math.sqrt(t),o=y((o+1)/2)-(o<0||o%2),n=new u(t=l==1/0?"5e"+o:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+o)):n=new u(l.toString()),r=(o=u.precision)+3;;)if(n=(a=n).plus(O(this,a,r+2,1)).times(.5),A(a.d).slice(0,r)===(t=A(n.d)).slice(0,r)){if("9999"!=(t=t.slice(r-3,r+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(P(n,o+1,1),e=!n.times(n).eq(this));break}if(!i&&(P(a,o+1,0),a.times(a).eq(this))){n=a;break}r+=4,i=1}return h=!0,P(n,o,u.rounding,e)},T.tangent=T.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,(r=r.sin()).s=1,r=O(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,P(2==o||4==o?r.neg():r,e,t,!0)):new n(NaN)},T.times=T.mul=function(e){var t,r,n,i,a,s,o,l,u,c=this.constructor,d=this.d,f=(e=new c(e)).d;if(e.s*=this.s,!d||!d[0]||!f||!f[0])return new c(!e.s||d&&!d[0]&&!f||f&&!f[0]&&!d?NaN:!d||!f?e.s/0:0*e.s);for(r=y(this.e/7)+y(e.e/7),(l=d.length)<(u=f.length)&&(a=d,d=f,f=a,s=l,l=u,u=s),a=[],n=s=l+u;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=l+n;i>n;)o=a[i]+f[n]*d[i-n-1]+t,a[i--]=o%1e7|0,t=o/1e7|0;a[i]=(a[i]+t)%1e7|0}for(;!a[--s];)a.pop();return t?++r:a.shift(),e.d=a,e.e=M(a,r),h?P(e,c.precision,c.rounding):e},T.toBinary=function(e,t){return K(this,2,e,t)},T.toDecimalPlaces=T.toDP=function(e,t){var r=this,n=r.constructor;return(r=new n(r),void 0===e)?r:(I(e,0,1e9),void 0===t?t=n.rounding:I(t,0,8),P(r,e+r.e+1,t))},T.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=D(n,!0):(I(e,0,1e9),void 0===t?t=i.rounding:I(t,0,8),r=D(n=P(new i(n),e+1,t),!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r},T.toFixed=function(e,t){var r,n,i=this.constructor;return void 0===e?r=D(this):(I(e,0,1e9),void 0===t?t=i.rounding:I(t,0,8),r=D(n=P(new i(this),e+this.e+1,t),!1,e+n.e+1)),this.isNeg()&&!this.isZero()?"-"+r:r},T.toFraction=function(e){var t,r,n,i,a,s,o,l,u,c,d,f,m=this.d,g=this.constructor;if(!m)return new g(this);if(u=r=new g(1),n=l=new g(0),s=(a=(t=new g(n)).e=F(m)-this.e-1)%7,t.d[0]=v(10,s<0?7+s:s),null==e)e=a>0?t:u;else{if(!(o=new g(e)).isInt()||o.lt(u))throw Error(p+o);e=o.gt(t)?a>0?t:u:o}for(h=!1,o=new g(A(m)),c=g.precision,g.precision=a=7*m.length*2;d=O(o,t,0,1,1),1!=(i=r.plus(d.times(n))).cmp(e);)r=n,n=i,i=u,u=l.plus(d.times(i)),l=i,i=t,t=o.minus(d.times(i)),o=i;return i=O(e.minus(r),n,0,1,1),l=l.plus(i.times(u)),r=r.plus(i.times(n)),l.s=u.s=this.s,f=1>O(u,n,a,1).minus(this).abs().cmp(O(l,r,a,1).minus(this).abs())?[u,n]:[l,r],g.precision=c,h=!0,f},T.toHexadecimal=T.toHex=function(e,t){return K(this,16,e,t)},T.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),null==e){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),void 0===t?t=n.rounding:I(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(h=!1,r=O(r,e,0,t,1).times(e),h=!0,P(r)):(e.s=r.s,r=e),r},T.toNumber=function(){return+this},T.toOctal=function(e,t){return K(this,8,e,t)},T.toPower=T.pow=function(e){var t,r,n,i,a,s,o=this,l=o.constructor,u=+(e=new l(e));if(!o.d||!e.d||!o.d[0]||!e.d[0])return new l(v(+o,u));if((o=new l(o)).eq(1))return o;if(n=l.precision,a=l.rounding,e.eq(1))return P(o,n,a);if((t=y(e.e/7))>=e.d.length-1&&(r=u<0?-u:u)<=0x1fffffffffffff)return i=z(l,o,r,n),e.s<0?new l(1).div(i):P(i,n,a);if((s=o.s)<0){if(t<e.d.length-1)return new l(NaN);if((1&e.d[t])==0&&(s=1),0==o.e&&1==o.d[0]&&1==o.d.length)return o.s=s,o}return(t=0!=(r=v(+o,u))&&isFinite(r)?new l(r+"").e:y(u*(Math.log("0."+A(o.d))/Math.LN10+o.e+1)))>l.maxE+1||t<l.minE-1?new l(t>0?s/0:0):(h=!1,l.rounding=o.s=1,r=Math.min(12,(t+"").length),(i=V(e.times(q(o,n+r)),n)).d&&N((i=P(i,n+5,1)).d,n,a)&&(t=n+10,+A((i=P(V(e.times(q(o,t+r)),t),t+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=P(i,n+1,0))),i.s=s,h=!0,l.rounding=a,P(i,n,a))},T.toPrecision=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=D(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(I(e,1,1e9),void 0===t?t=i.rounding:I(t,0,8),r=D(n=P(new i(n),e,t),e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r},T.toSignificantDigits=T.toSD=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(I(e,1,1e9),void 0===t?t=r.rounding:I(t,0,8)),P(new r(this),e,t)},T.toString=function(){var e=this.constructor,t=D(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()&&!this.isZero()?"-"+t:t},T.truncated=T.trunc=function(){return P(new this.constructor(this),this.e+1,1)},T.valueOf=T.toJSON=function(){var e=this.constructor,t=D(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()?"-"+t:t};var O=function(){function e(e,t,r){var n,i=0,a=e.length;for(e=e.slice();a--;)n=e[a]*t+i,e[a]=n%r|0,i=n/r|0;return i&&e.unshift(i),e}function t(e,t,r,n){var i,a;if(r!=n)a=r>n?1:-1;else for(i=a=0;i<r;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=+(e[r]<t[r]),e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(n,i,a,o,l,u){var c,d,h,f,p,m,g,_,v,b,w,k,E,x,S,T,A,I,N,C,O=n.constructor,D=n.s==i.s?1:-1,M=n.d,L=i.d;if(!M||!M[0]||!L||!L[0])return new O(!n.s||!i.s||(M?L&&M[0]==L[0]:!L)?NaN:M&&0==M[0]||!L?0*D:D/0);for(u?(p=1,d=n.e-i.e):(u=1e7,p=7,d=y(n.e/p)-y(i.e/p)),N=L.length,A=M.length,b=(v=new O(D)).d=[],h=0;L[h]==(M[h]||0);h++);if(L[h]>(M[h]||0)&&d--,null==a?(x=a=O.precision,o=O.rounding):x=l?a+(n.e-i.e)+1:a,x<0)b.push(1),m=!0;else{if(x=x/p+2|0,h=0,1==N){for(f=0,L=L[0],x++;(h<A||f)&&x--;h++)S=f*u+(M[h]||0),b[h]=S/L|0,f=S%L|0;m=f||h<A}else{for((f=u/(L[0]+1)|0)>1&&(L=e(L,f,u),M=e(M,f,u),N=L.length,A=M.length),T=N,k=(w=M.slice(0,N)).length;k<N;)w[k++]=0;(C=L.slice()).unshift(0),I=L[0],L[1]>=u/2&&++I;do f=0,(c=t(L,w,N,k))<0?(E=w[0],N!=k&&(E=E*u+(w[1]||0)),(f=E/I|0)>1?(f>=u&&(f=u-1),_=(g=e(L,f,u)).length,k=w.length,1==(c=t(g,w,_,k))&&(f--,r(g,N<_?C:L,_,u))):(0==f&&(c=f=1),g=L.slice()),(_=g.length)<k&&g.unshift(0),r(w,g,k,u),-1==c&&(k=w.length,(c=t(L,w,N,k))<1&&(f++,r(w,N<k?C:L,k,u))),k=w.length):0===c&&(f++,w=[0]),b[h++]=f,c&&w[0]?w[k++]=M[T]||0:(w=[M[T]],k=1);while((T++<A||void 0!==w[0])&&x--);m=void 0!==w[0]}b[0]||b.shift()}if(1==p)v.e=d,s=m;else{for(h=1,f=b[0];f>=10;f/=10)h++;v.e=h+d*p-1,P(v,l?a+v.e+1:a,o,m)}return v}}();function P(e,t,r,n){var i,a,s,o,l,u,c,d,f,p=e.constructor;e:if(null!=t){if(!(d=e.d))return e;for(i=1,o=d[0];o>=10;o/=10)i++;if((a=t-i)<0)a+=7,s=t,l=(c=d[f=0])/v(10,i-s-1)%10|0;else if((f=Math.ceil((a+1)/7))>=(o=d.length))if(n){for(;o++<=f;)d.push(0);c=l=0,i=1,a%=7,s=a-7+1}else break e;else{for(i=1,c=o=d[f];o>=10;o/=10)i++;a%=7,l=(s=a-7+i)<0?0:c/v(10,i-s-1)%10|0}if(n=n||t<0||void 0!==d[f+1]||(s<0?c:c%v(10,i-s-1)),u=r<4?(l||n)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||n||6==r&&(a>0?s>0?c/v(10,i-s):0:d[f-1])%10&1||r==(e.s<0?8:7)),t<1||!d[0])return d.length=0,u?(t-=e.e+1,d[0]=v(10,(7-t%7)%7),e.e=-t||0):d[0]=e.e=0,e;if(0==a?(d.length=f,o=1,f--):(d.length=f+1,o=v(10,7-a),d[f]=s>0?(c/v(10,i-s)%v(10,s)|0)*o:0),u)for(;;)if(0==f){for(a=1,s=d[0];s>=10;s/=10)a++;for(s=d[0]+=o,o=1;s>=10;s/=10)o++;a!=o&&(e.e++,1e7==d[0]&&(d[0]=1));break}else{if(d[f]+=o,1e7!=d[f])break;d[f--]=0,o=1}for(a=d.length;0===d[--a];)d.pop()}return h&&(e.e>p.maxE?(e.d=null,e.e=NaN):e.e<p.minE&&(e.e=0,e.d=[0])),e}function D(e,t,r){if(!e.isFinite())return Z(e);var n,i=e.e,a=A(e.d),s=a.length;return t?(r&&(n=r-s)>0?a=a.charAt(0)+"."+a.slice(1)+j(n):s>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(e.e<0?"e":"e+")+e.e):i<0?(a="0."+j(-i-1)+a,r&&(n=r-s)>0&&(a+=j(n))):i>=s?(a+=j(i+1-s),r&&(n=r-i-1)>0&&(a=a+"."+j(n))):((n=i+1)<s&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-s)>0&&(i+1===s&&(a+="."),a+=j(n))),a}function M(e,t){var r=e[0];for(t*=7;r>=10;r/=10)t++;return t}function L(e,t,r){if(t>x)throw h=!0,r&&(e.precision=r),Error(m);return P(new e(u),t,1,!0)}function R(e,t,r){if(t>S)throw Error(m);return P(new e(c),t,r,!0)}function F(e){var t=e.length-1,r=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function j(e){for(var t="";e--;)t+="0";return t}function z(e,t,r,n){var i,a=new e(1),s=Math.ceil(n/7+4);for(h=!1;;){if(r%2&&Q((a=a.times(t)).d,s)&&(i=!0),0===(r=y(r/2))){r=a.d.length-1,i&&0===a.d[r]&&++a.d[r];break}Q((t=t.times(t)).d,s)}return h=!0,a}function B(e){return 1&e.d[e.d.length-1]}function U(e,t,r){for(var n,i,a=new e(t[0]),s=0;++s<t.length;){if(!(i=new e(t[s])).s){a=i;break}((n=a.cmp(i))===r||0===n&&a.s===r)&&(a=i)}return a}function V(e,t){var r,n,i,a,s,o,l,u=0,c=0,d=0,f=e.constructor,p=f.rounding,m=f.precision;if(!e.d||!e.d[0]||e.e>17)return new f(e.d?!e.d[0]?1:e.s<0?0:1/0:e.s?e.s<0?0:e:0/0);for(null==t?(h=!1,l=m):l=t,o=new f(.03125);e.e>-2;)e=e.times(o),d+=5;for(l+=n=Math.log(v(2,d))/Math.LN10*2+5|0,r=a=s=new f(1),f.precision=l;;){if(a=P(a.times(e),l,1),r=r.times(++c),A((o=s.plus(O(a,r,l,1))).d).slice(0,l)===A(s.d).slice(0,l)){for(i=d;i--;)s=P(s.times(s),l,1);if(null!=t)return f.precision=m,s;if(!(u<3&&N(s.d,l-n,p,u)))return P(s,f.precision=m,p,h=!0);f.precision=l+=10,r=a=o=new f(1),c=0,u++}s=o}}function q(e,t){var r,n,i,a,s,o,l,u,c,d,f,p=1,m=e,g=m.d,_=m.constructor,y=_.rounding,v=_.precision;if(m.s<0||!g||!g[0]||!m.e&&1==g[0]&&1==g.length)return new _(g&&!g[0]?-1/0:1!=m.s?NaN:g?0:m);if(null==t?(h=!1,c=v):c=t,_.precision=c+=10,n=(r=A(g)).charAt(0),!(15e14>Math.abs(a=m.e)))return u=L(_,c+2,v).times(a+""),m=q(new _(n+"."+r.slice(1)),c-10).plus(u),_.precision=v,null==t?P(m,v,y,h=!0):m;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=A((m=m.times(e)).d)).charAt(0),p++;for(a=m.e,n>1?(m=new _("0."+r),a++):m=new _(n+"."+r.slice(1)),d=m,l=s=m=O(m.minus(1),m.plus(1),c,1),f=P(m.times(m),c,1),i=3;;){if(s=P(s.times(f),c,1),A((u=l.plus(O(s,new _(i),c,1))).d).slice(0,c)===A(l.d).slice(0,c)){if(l=l.times(2),0!==a&&(l=l.plus(L(_,c+2,v).times(a+""))),l=O(l,new _(p),c,1),null!=t)return _.precision=v,l;if(!N(l.d,c-10,y,o))return P(l,_.precision=v,y,h=!0);_.precision=c+=10,u=s=m=O(d.minus(1),d.plus(1),c,1),f=P(m.times(m),c,1),i=o=1}l=u,i+=2}}function Z(e){return String(e.s*e.s/0)}function H(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);n++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(n,i)){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=7;n<i;)e.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=i;for(;n--;)t+="0";e.d.push(+t),h&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function $(e,t,r,n,i){var a,s,o,l,u=e.precision,c=Math.ceil(u/7);for(h=!1,l=r.times(r),o=new e(n);;){if(s=O(o.times(l),new e(t++*t++),u,1),o=i?n.plus(s):n.minus(s),n=O(s.times(l),new e(t++*t++),u,1),void 0!==(s=o.plus(n)).d[c]){for(a=c;s.d[a]===o.d[a]&&a--;);if(-1==a)break}a=o,o=n,n=s,s=a}return h=!0,s.d.length=c+1,s}function G(e,t){for(var r=e;--t;)r*=e;return r}function W(e,t){var r,n=t.s<0,i=R(e,e.precision,1),a=i.times(.5);if((t=t.abs()).lte(a))return o=n?4:1,t;if((r=t.divToInt(i)).isZero())o=n?3:2;else{if((t=t.minus(r.times(i))).lte(a))return o=B(r)?n?2:3:n?4:1,t;o=B(r)?n?1:4:n?3:2}return t.minus(i).abs()}function K(e,t,r,n){var i,a,o,u,c,d,h,f,p,m=e.constructor,g=void 0!==r;if(g?(I(r,1,1e9),void 0===n?n=m.rounding:I(n,0,8)):(r=m.precision,n=m.rounding),e.isFinite()){for(o=(h=D(e)).indexOf("."),g?(i=2,16==t?r=4*r-3:8==t&&(r=3*r-2)):i=t,o>=0&&(h=h.replace(".",""),(p=new m(1)).e=h.length-o,p.d=C(D(p),10,i),p.e=p.d.length),a=c=(f=C(h,10,i)).length;0==f[--c];)f.pop();if(f[0]){if(o<0?a--:((e=new m(e)).d=f,e.e=a,f=(e=O(e,p,r,n,0,i)).d,a=e.e,d=s),o=f[r],u=i/2,d=d||void 0!==f[r+1],d=n<4?(void 0!==o||d)&&(0===n||n===(e.s<0?3:2)):o>u||o===u&&(4===n||d||6===n&&1&f[r-1]||n===(e.s<0?8:7)),f.length=r,d)for(;++f[--r]>i-1;)f[r]=0,r||(++a,f.unshift(1));for(c=f.length;!f[c-1];--c);for(o=0,h="";o<c;o++)h+=l.charAt(f[o]);if(g){if(c>1)if(16==t||8==t){for(o=16==t?4:3,--c;c%o;c++)h+="0";for(c=(f=C(h,i,t)).length;!f[c-1];--c);for(o=1,h="1.";o<c;o++)h+=l.charAt(f[o])}else h=h.charAt(0)+"."+h.slice(1);h=h+(a<0?"p":"p+")+a}else if(a<0){for(;++a;)h="0"+h;h="0."+h}else if(++a>c)for(a-=c;a--;)h+="0";else a<c&&(h=h.slice(0,a)+"."+h.slice(a))}else h=g?"0p+0":"0";h=(16==t?"0x":2==t?"0b":8==t?"0o":"")+h}else h=Z(e);return e.s<0?"-"+h:h}function Q(e,t){if(e.length>t)return e.length=t,!0}function J(e){return new this(e).abs()}function Y(e){return new this(e).acos()}function X(e){return new this(e).acosh()}function ee(e,t){return new this(e).plus(t)}function et(e){return new this(e).asin()}function er(e){return new this(e).asinh()}function en(e){return new this(e).atan()}function ei(e){return new this(e).atanh()}function ea(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,a=n+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(r=t.s<0?R(this,n,i):new this(0)).s=e.s:!e.d||t.isZero()?(r=R(this,a,1).times(.5)).s=e.s:t.s<0?(this.precision=a,this.rounding=1,r=this.atan(O(e,t,a,1)),t=R(this,a,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(O(e,t,a,1)):(r=R(this,a,1).times(t.s>0?.25:.75)).s=e.s:r=new this(NaN),r}function es(e){return new this(e).cbrt()}function eo(e){return P(e=new this(e),e.e+1,2)}function el(e,t,r){return new this(e).clamp(t,r)}function eu(e){if(!e||"object"!=typeof e)throw Error(f+"Object expected");var t,r,n,i=!0===e.defaults,a=["precision",1,1e9,"rounding",0,8,"toExpNeg",-9e15,0,"toExpPos",0,9e15,"maxE",0,9e15,"minE",-9e15,0,"modulo",0,9];for(t=0;t<a.length;t+=3)if(r=a[t],i&&(this[r]=d[r]),void 0!==(n=e[r]))if(y(n)===n&&n>=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(p+r+": "+n);if(r="crypto",i&&(this[r]=d[r]),void 0!==(n=e[r]))if(!0===n||!1===n||0===n||1===n)if(n)if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(g);else this[r]=!1;else throw Error(p+r+": "+n);return this}function ec(e){return new this(e).cos()}function ed(e){return new this(e).cosh()}function eh(e,t){return new this(e).div(t)}function ef(e){return new this(e).exp()}function ep(e){return P(e=new this(e),e.e+1,3)}function em(){var e,t,r=new this(0);for(e=0,h=!1;e<arguments.length;)if(t=new this(arguments[e++]),t.d)r.d&&(r=r.plus(t.times(t)));else{if(t.s)return h=!0,new this(1/0);r=t}return h=!0,r.sqrt()}function eg(e){return e instanceof eF||e&&e.toStringTag===_||!1}function e_(e){return new this(e).ln()}function ey(e,t){return new this(e).log(t)}function ev(e){return new this(e).log(2)}function eb(e){return new this(e).log(10)}function ew(){return U(this,arguments,-1)}function ek(){return U(this,arguments,1)}function eE(e,t){return new this(e).mod(t)}function ex(e,t){return new this(e).mul(t)}function eS(e,t){return new this(e).pow(t)}function eT(e){var t,r,n,i,a=0,s=new this(1),o=[];if(void 0===e?e=this.precision:I(e,1,1e9),n=Math.ceil(e/7),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(n));a<n;)(i=t[a])>=429e7?t[a]=crypto.getRandomValues(new Uint32Array(1))[0]:o[a++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(n*=4);a<n;)(i=t[a]+(t[a+1]<<8)+(t[a+2]<<16)+((127&t[a+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,a):(o.push(i%1e7),a+=4);a=n/4}else throw Error(g);else for(;a<n;)o[a++]=1e7*Math.random()|0;for(n=o[--a],e%=7,n&&e&&(i=v(10,7-e),o[a]=(n/i|0)*i);0===o[a];a--)o.pop();if(a<0)r=0,o=[0];else{for(r=-1;0===o[0];r-=7)o.shift();for(n=1,i=o[0];i>=10;i/=10)n++;n<7&&(r-=7-n)}return s.e=r,s.d=o,s}function eA(e){return P(e=new this(e),e.e+1,this.rounding)}function eI(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function eN(e){return new this(e).sin()}function eC(e){return new this(e).sinh()}function eO(e){return new this(e).sqrt()}function eP(e,t){return new this(e).sub(t)}function eD(){var e=0,t=arguments,r=new this(t[0]);for(h=!1;r.s&&++e<t.length;)r=r.plus(t[e]);return h=!0,P(r,this.precision,this.rounding)}function eM(e){return new this(e).tan()}function eL(e){return new this(e).tanh()}function eR(e){return P(e=new this(e),e.e+1,1)}T[Symbol.for("nodejs.util.inspect.custom")]=T.toString,T[Symbol.toStringTag]="Decimal";var eF=T.constructor=function e(t){var r,n,i;function a(e){var t,r,n;if(!(this instanceof a))return new a(e);if(this.constructor=a,eg(e)){this.s=e.s,h?!e.d||e.e>a.maxE?(this.e=NaN,this.d=null):e.e<a.minE?(this.e=0,this.d=[0]):(this.e=e.e,this.d=e.d.slice()):(this.e=e.e,this.d=e.d?e.d.slice():e.d);return}if("number"==(n=typeof e)){if(0===e){this.s=1/e<0?-1:1,this.e=0,this.d=[0];return}if(e<0?(e=-e,this.s=-1):this.s=1,e===~~e&&e<1e7){for(t=0,r=e;r>=10;r/=10)t++;h?t>a.maxE?(this.e=NaN,this.d=null):t<a.minE?(this.e=0,this.d=[0]):(this.e=t,this.d=[e]):(this.e=t,this.d=[e]);return}if(0*e!=0){e||(this.s=NaN),this.e=NaN,this.d=null;return}return H(this,e.toString())}if("string"===n)return 45===(r=e.charCodeAt(0))?(e=e.slice(1),this.s=-1):(43===r&&(e=e.slice(1)),this.s=1),E.test(e)?H(this,e):function(e,t){var r,n,i,a,s,o,l,u,c;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),E.test(t))return H(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(w.test(t))r=16,t=t.toLowerCase();else if(b.test(t))r=2;else if(k.test(t))r=8;else throw Error(p+t);for((a=t.search(/p/i))>0?(l=+t.slice(a+1),t=t.substring(2,a)):t=t.slice(2),s=(a=t.indexOf("."))>=0,n=e.constructor,s&&(a=(o=(t=t.replace(".","")).length)-a,i=z(n,new n(r),a,2*a)),a=c=(u=C(t,r,1e7)).length-1;0===u[a];--a)u.pop();return a<0?new n(0*e.s):(e.e=M(u,c),e.d=u,h=!1,s&&(e=O(e,i,4*o)),l&&(e=e.times(54>Math.abs(l)?v(2,l):eF.pow(2,l))),h=!0,e)}(this,e);if("bigint"===n)return e<0?(e=-e,this.s=-1):this.s=1,H(this,e.toString());throw Error(p+e)}if(a.prototype=T,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.EUCLID=9,a.config=a.set=eu,a.clone=e,a.isDecimal=eg,a.abs=J,a.acos=Y,a.acosh=X,a.add=ee,a.asin=et,a.asinh=er,a.atan=en,a.atanh=ei,a.atan2=ea,a.cbrt=es,a.ceil=eo,a.clamp=el,a.cos=ec,a.cosh=ed,a.div=eh,a.exp=ef,a.floor=ep,a.hypot=em,a.ln=e_,a.log=ey,a.log10=eb,a.log2=ev,a.max=ew,a.min=ek,a.mod=eE,a.mul=ex,a.pow=eS,a.random=eT,a.round=eA,a.sign=eI,a.sin=eN,a.sinh=eC,a.sqrt=eO,a.sub=eP,a.sum=eD,a.tan=eM,a.tanh=eL,a.trunc=eR,void 0===t&&(t={}),t&&!0!==t.defaults)for(r=0,i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"];r<i.length;)t.hasOwnProperty(n=i[r++])||(t[n]=this[n]);return a.config(t),a}(d);u=new eF(u),c=new eF(c),new eF(10);var ej=new eF(0),ez=new eF(-0),eB=r(4902),eU=r(98149);function eV(e,t){if("function"==typeof e.repeat)return e.repeat(t);for(var r=Array(t),n=0;n<r.length;n++)r[n]=e;return r.join("")}function eq(e,t,r,n){e.get(t)||e.set(t,Object.create(null)),e.get(t)[r]=n}function eZ(e,t,r){for(var n=0,i=Object.keys(r);n<i.length;n++){var a=i[n];eq(e,t,a,r[a])}}function eH(e,t,r){return e$(e,t,r)[r]}function e$(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=e.get(t);if(!i)throw TypeError("".concat(t," InternalSlot has not been initialized"));return r.reduce(function(e,t){return e[t]=i[t],e},Object.create(null))}function eG(e){return"literal"===e.type}function eW(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:r.value})}function eK(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r})}function eQ(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}var eJ=(0,eU.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,(0,eB.__spreadArray)([void 0],t,!1)))},{strategy:eU.W.variadic}),eY=(0,eU.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,eB.__spreadArray)([void 0],t,!1)))},{strategy:eU.W.variadic}),eX=(0,eU.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,(0,eB.__spreadArray)([void 0],t,!1)))},{strategy:eU.W.variadic}),e0=(0,eU.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.Locale).bind.apply(e,(0,eB.__spreadArray)([void 0],t,!1)))},{strategy:eU.W.variadic}),e1=(0,eU.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.ListFormat).bind.apply(e,(0,eB.__spreadArray)([void 0],t,!1)))},{strategy:eU.W.variadic});function e2(e){if("symbol"==typeof e)throw TypeError("Cannot convert a Symbol value to a string");return String(e)}function e5(e){if("number"==typeof e)return new eF(e);if(eQ("bigint"!=typeof e&&"symbol"!=typeof e,"BigInt and Symbol are not supported",TypeError),void 0===e)return new eF(NaN);if(null===e||0===e)return ej;if(!0===e)return new eF(1);if("string"==typeof e)try{return new eF(e)}catch(e){return new eF(NaN)}eQ("object"==typeof e,"object expected",TypeError);var t=t_(e,"number");return eQ("object"!=typeof t,"object expected",TypeError),e5(t)}function e3(e){if(!e.isFinite()||e.abs().greaterThan(8.64*1e15))return new eF(NaN);var t=e5(e);if(t.isNaN()||t.isZero())return ej;if(t.isFinite())return t;var r=t.abs().floor();return t.isNegative()&&(r=r.negated()),r}function e4(e){if(null==e)throw TypeError("undefined/null cannot be converted to object");return Object(e)}function e9(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t}function e6(e){return Array(e)}function e7(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function e8(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":"symbol"==typeof e?"Symbol":"bigint"==typeof e?"BigInt":void 0}function te(e,t){return e-Math.floor(e/t)*t}function tt(e){return Math.floor(e/864e5)}function tr(e){return te(tt(e)+4,7)}function tn(e){return Date.UTC(e,0)/864e5}function ti(e){return Date.UTC(e,0)}function ta(e){return new Date(e).getUTCFullYear()}function ts(e){return e%4!=0?365:e%100!=0?366:e%400!=0?365:366}function to(e){return tt(e)-tn(ta(e))}function tl(e){return+(365!==ts(ta(e)))}function tu(e){var t=to(e),r=tl(e);if(t>=0&&t<31)return 0;if(t<59+r)return 1;if(t<90+r)return 2;if(t<120+r)return 3;if(t<151+r)return 4;if(t<181+r)return 5;if(t<212+r)return 6;if(t<243+r)return 7;if(t<273+r)return 8;if(t<304+r)return 9;if(t<334+r)return 10;if(t<365+r)return 11;throw Error("Invalid time")}function tc(e){var t=to(e),r=tu(e),n=tl(e);if(0===r)return t+1;if(1===r)return t-30;if(2===r)return t-58-n;if(3===r)return t-89-n;if(4===r)return t-119-n;if(5===r)return t-150-n;if(6===r)return t-180-n;if(7===r)return t-211-n;if(8===r)return t-242-n;if(9===r)return t-272-n;if(10===r)return t-303-n;if(11===r)return t-333-n;throw Error("Invalid time")}function td(e){return te(Math.floor(e/36e5),24)}function th(e){return te(Math.floor(e/6e4),60)}function tf(e){return te(Math.floor(e/1e3),60)}function tp(e){return"function"==typeof e}function tm(e,t,r){if(!tp(e))return!1;if(null==r?void 0:r.boundTargetFunction)return t instanceof(null==r?void 0:r.boundTargetFunction);if("object"!=typeof t)return!1;var n=e.prototype;if("object"!=typeof n)throw TypeError("OrdinaryHasInstance called on an object with an invalid prototype property.");return Object.prototype.isPrototypeOf.call(n,t)}function tg(e){return te(e,1e3)}function t_(e,t){if("object"==typeof e&&null!=e){var r=Symbol.toPrimitive in e?e[Symbol.toPrimitive]:void 0,n=void 0;if(void 0!==r){void 0===t?n="default":"string"===t?n="string":(eQ("number"===t,'preferredType must be "string" or "number"'),n="number");var i=r.call(e,n);if("object"!=typeof i)return i;throw TypeError("Cannot convert exotic object to primitive.")}return void 0===t&&(t="number"),function(e,t){for(var r=0,n="string"===t?["toString","valueOf"]:["valueOf","toString"];r<n.length;r++){var i=e[n[r]];if(tp(i)){var a=i.call(e);if("object"!=typeof a)return a}}throw TypeError("Cannot convert object to primitive value")}(e,t)}return e}function ty(e){return void 0===e?Object.create(null):e4(e)}function tv(e,t,r,n){if(void 0===e)return n;var i=Number(e);if(isNaN(i)||i<t||i>r)throw RangeError("".concat(i," is outside of range [").concat(t,", ").concat(r,"]"));return Math.floor(i)}function tb(e,t,r,n,i){return tv(e[t],r,n,i)}function tw(e,t,r,n,i){if("object"!=typeof e)throw TypeError("Options must be an object");var a=e[t];if(void 0!==a){if("boolean"!==r&&"string"!==r)throw TypeError("invalid type");if("boolean"===r&&(a=!!a),"string"===r&&(a=e2(a)),void 0!==n&&!n.filter(function(e){return e==a}).length)throw RangeError("".concat(a," is not within ").concat(n.join(", ")));return a}return i}function tk(e){if(void 0===e)return Object.create(null);if("object"==typeof e)return e;throw TypeError("Options must be an object")}function tE(e,t,r,n,i,a){var s=e[t];if(void 0===s)return a;if(!0===s)return n;if(!1==!!s)return i;if("true"===(s=e2(s))||"false"===s)return a;if(-1===(r||[]).indexOf(s))throw RangeError("Invalid value ".concat(s));return s}var tx=["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"];function tS(e){return e.slice(e.indexOf("-")+1)}var tT=tx.map(tS);function tA(e){return tT.indexOf(e)>-1}function tI(e,t){var r=t.zoneNamesFromData,n=t.uppercaseLinks,i=e.toUpperCase(),a=new Set,s=new Set;return r.map(function(e){return e.toUpperCase()}).forEach(function(e){return a.add(e)}),Object.keys(n).forEach(function(e){s.add(e.toUpperCase()),a.add(n[e].toUpperCase())}),a.has(i)||s.has(i)}var tN=/[^A-Z]/;function tC(e){return!(3!==(e=e.replace(/([a-z])/g,function(e,t){return t.toUpperCase()})).length||tN.test(e))}function tO(e){if(tA(e=e.replace(/([A-Z])/g,function(e,t){return t.toLowerCase()})))return!0;var t=e.split("-per-");if(2!==t.length)return!1;var r=t[0],n=t[1];return!!tA(r)&&!!tA(n)}function tP(e,t,r,n){if(e.eq(t)||(eQ(t.lessThan(e)&&e.lessThan(r),"x should be between r1 and r2 but x=".concat(e,", r1=").concat(t,", r2=").concat(r)),"zero"===n))return t;if("infinity"===n)return r;var i=e.minus(t),a=r.minus(e);return i.lessThan(a)?t:a.lessThan(i)?r:(eQ(i.eq(a),"d1 should be equal to d2"),"half-zero"===n)?t:"half-infinity"===n?r:(eQ("half-even"===n,"unsignedRoundingMode should be half-even"),t.div(r.minus(t)).mod(2).isZero())?t:r}var tD=new Set(["unit","exponentMinusSign","minusSign","plusSign","percentSign","exponentSeparator","percent","percentSign","currency","literal"]);function tM(e,t,r){for(var n=(0,r.getInternalSlots)(e),i=n.dataLocaleData.numbers.symbols[n.numberingSystem],a=new RegExp("s?[".concat(i.rangeSign,"]s?")),s=t.findIndex(function(e){return"literal"===e.type&&a.test(e.value)}),o=[],l=s-1;l>=0&&tD.has(t[l].type);l--)o.unshift(t[l]);if(Array.from(o.map(function(e){return e.value}).join("")).length>1){var u=Array.from(t);return u.splice(s-o.length,o.length),u}for(var c=[],l=s+1;l<t.length&&tD.has(t[l].type);l++)c.push(t[l]);if(Array.from(c.map(function(e){return e.value}).join("")).length>1){var u=Array.from(t);return u.splice(s+1,c.length),u}return t}function tL(e,t){var r=e.notation,n=e.dataLocaleData,i=e.numberingSystem;switch(r){case"standard":return 0;case"scientific":return t.toNumber();case"engineering":return t.div(3).floor().times(3).toNumber();default:eQ("compact"===r,"Invalid notation");var a=e.compactDisplay,s=e.style,o=e.currencyDisplay,l=void 0;if("currency"===s&&"name"!==o)l=(n.numbers.currency[i]||n.numbers.currency[n.numbers.nu[0]]).short;else{var u=n.numbers.decimal[i]||n.numbers.decimal[n.numbers.nu[0]];l="long"===a?u.long:u.short}if(!l)return 0;var c=eF.pow(10,t).toString(),d=Object.keys(l);if(c<d[0])return 0;if(c>d[d.length-1])return d[d.length-1].length-1;var h=d.indexOf(c);if(-1===h)return 0;var f=d[h];if("0"===l[f].other)return 0;return f.length-l[f].other.match(/0+/)[0].length}}eF.set({toExpPos:100});var tR={ceil:"zero",floor:"infinity",expand:"infinity",trunc:"zero",halfCeil:"half-zero",halfFloor:"half-infinity",halfExpand:"half-infinity",halfTrunc:"half-zero",halfEven:"half-even"},tF={ceil:"infinity",floor:"zero",expand:"infinity",trunc:"zero",halfCeil:"half-infinity",halfFloor:"half-zero",halfExpand:"half-infinity",halfTrunc:"half-zero",halfEven:"half-even"};function tj(e,t){return t?tR[e]:tF[e]}function tz(e,t){return e.times(eF.pow(10,-t))}function tB(e,t,r,n,i){var a,s,o,l,u,c,d,h,f=(c=tz(u=e.times(eF.pow(10,r)).floor().div(n).floor().times(n),r),{n1:u,r1:c}),p=f.n1,m=f.r1,g=(h=tz(d=e.times(eF.pow(10,r)).ceil().div(n).ceil().times(n),r),{n2:d,r2:h}),_=g.n2,y=g.r2;if(tP(e,m,y,i).eq(m)?(a=p,s=m):(a=_,s=y),o=a.isZero()?"0":a.toString(),0!==r){var v=o.length;v<=r&&(o=eV("0",r-v+1)+o,v=r+1);var b=o.slice(0,v-r);o=b+"."+o.slice(o.length-r),l=b.length}else l=o.length;for(var w=r-t;w>0&&"0"===o[o.length-1];)o=o.slice(0,o.length-1),w--;return"."===o[o.length-1]&&(o=o.slice(0,o.length-1)),{formattedString:o,roundedNumber:s,integerDigitsCount:l,roundingMagnitude:-r}}function tU(e,t,r,n){var i,a,s,o;if(e.isZero())i=eV("0",r),a=0,s=ej;else{var l=function(e,t){for(var r=eF.pow(10,t),n=eF.pow(10,t-1),i=e.div(n).log(10).plus(t).minus(1).ceil();;){var a=e.div(eF.pow(10,i.minus(t).plus(1))).floor();if(a.lessThan(r)&&a.greaterThanOrEqualTo(n)){var s=a.times(eF.pow(10,i.minus(t).plus(1)));if(s.lessThanOrEqualTo(e))return{n1:a,e1:i,r1:s}}i=i.minus(1)}}(e,r),u=l.n1,c=l.e1,d=l.r1,h=function(e,t){for(var r=eF.pow(10,t),n=eF.pow(10,t-1),i=e.div(r).log(10).plus(t).minus(1).floor();;){var a=e.div(eF.pow(10,i.minus(t).plus(1))).ceil();if(a.lessThan(r)&&a.greaterThanOrEqualTo(n)){var s=a.times(eF.pow(10,i.minus(t).plus(1)));if(s.greaterThanOrEqualTo(e))return{n2:a,e2:i,r2:s}}i=i.plus(1)}}(e,r),f=h.n2,p=h.e2,m=h.r2,g=tP(e,d,m,n),_=void 0;g.eq(d)?(_=u,a=c.toNumber(),s=d):(_=f,a=p.toNumber(),s=m),i=_.toString()}if(a>=r-1?(i+=eV("0",a-r+1),o=a+1):a>=0?(i=i.slice(0,a+1)+"."+i.slice(i.length-(r-(a+1))),o=a+1):(eQ(a<0,"e should be less than 0"),i="0."+eV("0",-a-1)+i,o=1),i.includes(".")&&r>t){for(var y=r-t;y>0&&"0"===i[i.length-1];)i=i.slice(0,i.length-1),y--;"."===i[i.length-1]&&(i=i.slice(0,i.length-1))}return{formattedString:i,roundedNumber:s,integerDigitsCount:o,roundingMagnitude:a}}function tV(e,t){var r,n,i=t;i.isZero()&&i.isNegative()?(r="negative",i=ej):(eQ(i.isFinite(),"NumberFormatDigitInternalSlots value is not finite"),"negative"==(r=i.lessThan(0)?"negative":"positive")&&(i=i.negated()));var a=e.roundingType,s=tj(e.roundingMode,"negative"===r);switch(a){case"significantDigits":n=tU(i,e.minimumSignificantDigits,e.maximumSignificantDigits,s);break;case"fractionDigits":n=tB(i,e.minimumFractionDigits,e.maximumFractionDigits,e.roundingIncrement,s);break;default:var o=tU(i,e.minimumSignificantDigits,e.maximumSignificantDigits,s),l=tB(i,e.minimumFractionDigits,e.maximumFractionDigits,e.roundingIncrement,s);"morePrecision"===e.roundingType?n=o.roundingMagnitude<=l.roundingMagnitude?o:l:(eQ("lessPrecision"===e.roundingType,"Invalid roundingType"),n=o.roundingMagnitude<=l.roundingMagnitude?l:o)}i=n.roundedNumber;var u=n.formattedString;if("stripIfInteger"===e.trailingZeroDisplay&&i.isInteger()){var c=u.indexOf(".");c>-1&&(u=u.slice(0,c))}var d=n.integerDigitsCount,h=e.minimumIntegerDigits;return d<h&&(u=eV("0",h-d)+u),"negative"===r&&(i=i.isZero()?ez:i.negated()),{roundedNumber:i,formattedString:u}}function tq(e,t){if(t.isZero())return[0,0];t.isNegative()&&(t=t.negated());var r=t.log(10).floor(),n=tL(e,r),i=tV(e,t=t.times(eF.pow(10,-n)));return i.roundedNumber.isZero()||i.roundedNumber.log(10).floor().eq(r.minus(n))?[n,r.toNumber()]:[tL(e,r.plus(1)),r.plus(1).toNumber()]}function tZ(e,t){var r=t.currencyDigitsData;return e7(r,e)?r[e]:2}eF.set({toExpPos:100});var tH=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/,t$={adlm:["\uD83A\uDD50","\uD83A\uDD51","\uD83A\uDD52","\uD83A\uDD53","\uD83A\uDD54","\uD83A\uDD55","\uD83A\uDD56","\uD83A\uDD57","\uD83A\uDD58","\uD83A\uDD59"],ahom:["\uD805\uDF30","\uD805\uDF31","\uD805\uDF32","\uD805\uDF33","\uD805\uDF34","\uD805\uDF35","\uD805\uDF36","\uD805\uDF37","\uD805\uDF38","\uD805\uDF39"],arab:["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"],arabext:["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"],bali:["᭐","᭑","᭒","᭓","᭔","᭕","᭖","᭗","᭘","᭙"],beng:["০","১","২","৩","৪","৫","৬","৭","৮","৯"],bhks:["\uD807\uDC50","\uD807\uDC51","\uD807\uDC52","\uD807\uDC53","\uD807\uDC54","\uD807\uDC55","\uD807\uDC56","\uD807\uDC57","\uD807\uDC58","\uD807\uDC59"],brah:["\uD804\uDC66","\uD804\uDC67","\uD804\uDC68","\uD804\uDC69","\uD804\uDC6A","\uD804\uDC6B","\uD804\uDC6C","\uD804\uDC6D","\uD804\uDC6E","\uD804\uDC6F"],cakm:["\uD804\uDD36","\uD804\uDD37","\uD804\uDD38","\uD804\uDD39","\uD804\uDD3A","\uD804\uDD3B","\uD804\uDD3C","\uD804\uDD3D","\uD804\uDD3E","\uD804\uDD3F"],cham:["꩐","꩑","꩒","꩓","꩔","꩕","꩖","꩗","꩘","꩙"],deva:["०","१","२","३","४","५","६","७","८","९"],diak:["\uD806\uDD50","\uD806\uDD51","\uD806\uDD52","\uD806\uDD53","\uD806\uDD54","\uD806\uDD55","\uD806\uDD56","\uD806\uDD57","\uD806\uDD58","\uD806\uDD59"],fullwide:["0","1","2","3","4","5","6","7","8","9"],gong:["\uD807\uDDA0","\uD807\uDDA1","\uD807\uDDA2","\uD807\uDDA3","\uD807\uDDA4","\uD807\uDDA5","\uD807\uDDA6","\uD807\uDDA7","\uD807\uDDA8","\uD807\uDDA9"],gonm:["\uD807\uDD50","\uD807\uDD51","\uD807\uDD52","\uD807\uDD53","\uD807\uDD54","\uD807\uDD55","\uD807\uDD56","\uD807\uDD57","\uD807\uDD58","\uD807\uDD59"],gujr:["૦","૧","૨","૩","૪","૫","૬","૭","૮","૯"],guru:["੦","੧","੨","੩","੪","੫","੬","੭","੮","੯"],hanidec:["〇","一","二","三","四","五","六","七","八","九"],hmng:["\uD81A\uDF50","\uD81A\uDF51","\uD81A\uDF52","\uD81A\uDF53","\uD81A\uDF54","\uD81A\uDF55","\uD81A\uDF56","\uD81A\uDF57","\uD81A\uDF58","\uD81A\uDF59"],hmnp:["\uD838\uDD40","\uD838\uDD41","\uD838\uDD42","\uD838\uDD43","\uD838\uDD44","\uD838\uDD45","\uD838\uDD46","\uD838\uDD47","\uD838\uDD48","\uD838\uDD49"],java:["꧐","꧑","꧒","꧓","꧔","꧕","꧖","꧗","꧘","꧙"],kali:["꤀","꤁","꤂","꤃","꤄","꤅","꤆","꤇","꤈","꤉"],khmr:["០","១","២","៣","៤","៥","៦","៧","៨","៩"],knda:["೦","೧","೨","೩","೪","೫","೬","೭","೮","೯"],lana:["᪀","᪁","᪂","᪃","᪄","᪅","᪆","᪇","᪈","᪉"],lanatham:["᪐","᪑","᪒","᪓","᪔","᪕","᪖","᪗","᪘","᪙"],laoo:["໐","໑","໒","໓","໔","໕","໖","໗","໘","໙"],lepc:["᪐","᪑","᪒","᪓","᪔","᪕","᪖","᪗","᪘","᪙"],limb:["᥆","᥇","᥈","᥉","᥊","᥋","᥌","᥍","᥎","᥏"],mathbold:["\uD835\uDFCE","\uD835\uDFCF","\uD835\uDFD0","\uD835\uDFD1","\uD835\uDFD2","\uD835\uDFD3","\uD835\uDFD4","\uD835\uDFD5","\uD835\uDFD6","\uD835\uDFD7"],mathdbl:["\uD835\uDFD8","\uD835\uDFD9","\uD835\uDFDA","\uD835\uDFDB","\uD835\uDFDC","\uD835\uDFDD","\uD835\uDFDE","\uD835\uDFDF","\uD835\uDFE0","\uD835\uDFE1"],mathmono:["\uD835\uDFF6","\uD835\uDFF7","\uD835\uDFF8","\uD835\uDFF9","\uD835\uDFFA","\uD835\uDFFB","\uD835\uDFFC","\uD835\uDFFD","\uD835\uDFFE","\uD835\uDFFF"],mathsanb:["\uD835\uDFEC","\uD835\uDFED","\uD835\uDFEE","\uD835\uDFEF","\uD835\uDFF0","\uD835\uDFF1","\uD835\uDFF2","\uD835\uDFF3","\uD835\uDFF4","\uD835\uDFF5"],mathsans:["\uD835\uDFE2","\uD835\uDFE3","\uD835\uDFE4","\uD835\uDFE5","\uD835\uDFE6","\uD835\uDFE7","\uD835\uDFE8","\uD835\uDFE9","\uD835\uDFEA","\uD835\uDFEB"],mlym:["൦","൧","൨","൩","൪","൫","൬","൭","൮","൯"],modi:["\uD805\uDE50","\uD805\uDE51","\uD805\uDE52","\uD805\uDE53","\uD805\uDE54","\uD805\uDE55","\uD805\uDE56","\uD805\uDE57","\uD805\uDE58","\uD805\uDE59"],mong:["᠐","᠑","᠒","᠓","᠔","᠕","᠖","᠗","᠘","᠙"],mroo:["\uD81A\uDE60","\uD81A\uDE61","\uD81A\uDE62","\uD81A\uDE63","\uD81A\uDE64","\uD81A\uDE65","\uD81A\uDE66","\uD81A\uDE67","\uD81A\uDE68","\uD81A\uDE69"],mtei:["꯰","꯱","꯲","꯳","꯴","꯵","꯶","꯷","꯸","꯹"],mymr:["၀","၁","၂","၃","၄","၅","၆","၇","၈","၉"],mymrshan:["႐","႑","႒","႓","႔","႕","႖","႗","႘","႙"],mymrtlng:["꧰","꧱","꧲","꧳","꧴","꧵","꧶","꧷","꧸","꧹"],newa:["\uD805\uDC50","\uD805\uDC51","\uD805\uDC52","\uD805\uDC53","\uD805\uDC54","\uD805\uDC55","\uD805\uDC56","\uD805\uDC57","\uD805\uDC58","\uD805\uDC59"],nkoo:["߀","߁","߂","߃","߄","߅","߆","߇","߈","߉"],olck:["᱐","᱑","᱒","᱓","᱔","᱕","᱖","᱗","᱘","᱙"],orya:["୦","୧","୨","୩","୪","୫","୬","୭","୮","୯"],osma:["\uD801\uDCA0","\uD801\uDCA1","\uD801\uDCA2","\uD801\uDCA3","\uD801\uDCA4","\uD801\uDCA5","\uD801\uDCA6","\uD801\uDCA7","\uD801\uDCA8","\uD801\uDCA9"],rohg:["\uD803\uDD30","\uD803\uDD31","\uD803\uDD32","\uD803\uDD33","\uD803\uDD34","\uD803\uDD35","\uD803\uDD36","\uD803\uDD37","\uD803\uDD38","\uD803\uDD39"],saur:["꣐","꣑","꣒","꣓","꣔","꣕","꣖","꣗","꣘","꣙"],segment:["\uD83E\uDFF0","\uD83E\uDFF1","\uD83E\uDFF2","\uD83E\uDFF3","\uD83E\uDFF4","\uD83E\uDFF5","\uD83E\uDFF6","\uD83E\uDFF7","\uD83E\uDFF8","\uD83E\uDFF9"],shrd:["\uD804\uDDD0","\uD804\uDDD1","\uD804\uDDD2","\uD804\uDDD3","\uD804\uDDD4","\uD804\uDDD5","\uD804\uDDD6","\uD804\uDDD7","\uD804\uDDD8","\uD804\uDDD9"],sind:["\uD804\uDEF0","\uD804\uDEF1","\uD804\uDEF2","\uD804\uDEF3","\uD804\uDEF4","\uD804\uDEF5","\uD804\uDEF6","\uD804\uDEF7","\uD804\uDEF8","\uD804\uDEF9"],sinh:["෦","෧","෨","෩","෪","෫","෬","෭","෮","෯"],sora:["\uD804\uDCF0","\uD804\uDCF1","\uD804\uDCF2","\uD804\uDCF3","\uD804\uDCF4","\uD804\uDCF5","\uD804\uDCF6","\uD804\uDCF7","\uD804\uDCF8","\uD804\uDCF9"],sund:["᮰","᮱","᮲","᮳","᮴","᮵","᮶","᮷","᮸","᮹"],takr:["\uD805\uDEC0","\uD805\uDEC1","\uD805\uDEC2","\uD805\uDEC3","\uD805\uDEC4","\uD805\uDEC5","\uD805\uDEC6","\uD805\uDEC7","\uD805\uDEC8","\uD805\uDEC9"],talu:["᧐","᧑","᧒","᧓","᧔","᧕","᧖","᧗","᧘","᧙"],tamldec:["௦","௧","௨","௩","௪","௫","௬","௭","௮","௯"],telu:["౦","౧","౨","౩","౪","౫","౬","౭","౮","౯"],thai:["๐","๑","๒","๓","๔","๕","๖","๗","๘","๙"],tibt:["༠","༡","༢","༣","༤","༥","༦","༧","༨","༩"],tirh:["\uD805\uDCD0","\uD805\uDCD1","\uD805\uDCD2","\uD805\uDCD3","\uD805\uDCD4","\uD805\uDCD5","\uD805\uDCD6","\uD805\uDCD7","\uD805\uDCD8","\uD805\uDCD9"],vaii:["ᘠ","ᘡ","ᘢ","ᘣ","ᘤ","ᘥ","ᘦ","ᘧ","ᘨ","ᘩ"],wara:["\uD806\uDCE0","\uD806\uDCE1","\uD806\uDCE2","\uD806\uDCE3","\uD806\uDCE4","\uD806\uDCE5","\uD806\uDCE6","\uD806\uDCE7","\uD806\uDCE8","\uD806\uDCE9"],wcho:["\uD838\uDEF0","\uD838\uDEF1","\uD838\uDEF2","\uD838\uDEF3","\uD838\uDEF4","\uD838\uDEF5","\uD838\uDEF6","\uD838\uDEF7","\uD838\uDEF8","\uD838\uDEF9"]},tG=new RegExp("^".concat(tH.source)),tW=new RegExp("".concat(tH.source,"$")),tK=/[#0](?:[\.,][#0]+)*/g;function tQ(e,t,r,n){var i,a,s,o=e.sign,l=e.exponent,u=e.magnitude,c=n.notation,d=n.style,h=n.numberingSystem,f=t.numbers.nu[0],p=null;if("compact"===c&&u&&(p=function(e,t,r,n,i,a,s){var o,l,u=e.roundedNumber,c=e.sign,d=String(Math.pow(10,e.magnitude)),h=r.numbers.nu[0];if("currency"===n&&"name"!==a){var f=r.numbers.currency,p=null==(o=(f[s]||f[h]).short)?void 0:o[d];if(!p)return null;l=tY(t,u.toNumber(),p)}else{var f=r.numbers.decimal,m=(f[s]||f[h])[i][d];if(!m)return null;l=tY(t,u.toNumber(),m)}return"0"===l?null:l=tJ(l,c).replace(/([^\s;\-\+\d¤]+)/g,"{c:$1}").replace(/0+/,"0")}(e,r,t,d,n.compactDisplay,n.currencyDisplay,h)),"currency"===d&&"name"!==n.currencyDisplay){var m=t.currencies[n.currency];if(m)switch(n.currencyDisplay){case"code":a=n.currency;break;case"symbol":a=m.symbol;break;default:a=m.narrow}else a=n.currency}if(p)s=p;else if("decimal"===d||"unit"===d||"currency"===d&&"name"===n.currencyDisplay)s=tJ((t.numbers.decimal[h]||t.numbers.decimal[f]).standard,o);else if("currency"===d){var g=t.numbers.currency[h]||t.numbers.currency[f];s=tJ(g[n.currencySign],o)}else s=tJ(t.numbers.percent[h]||t.numbers.percent[f],o);var _=tK.exec(s)[0];if(s=s.replace(tK,"{0}").replace(/'(.)'/g,"$1"),"currency"===d&&"name"!==n.currencyDisplay){var g=t.numbers.currency[h]||t.numbers.currency[f],y=g.currencySpacing.afterInsertBetween;y&&!tW.test(a)&&(s=s.replace("\xa4{0}","\xa4".concat(y,"{0}")));var v=g.currencySpacing.beforeInsertBetween;v&&!tG.test(a)&&(s=s.replace("{0}\xa4","{0}".concat(v,"\xa4")))}for(var b=s.split(/({c:[^}]+}|\{0\}|[¤%\-\+])/g),w=[],k=t.numbers.symbols[h]||t.numbers.symbols[f],E=0;E<b.length;E++){var x=b[E];if(x)switch(x){case"{0}":w.push.apply(w,function(e,t,r,n,i,a,s,o,l,u){var c,d,h=[],f=t.formattedString,p=t.roundedNumber;if(p.isNaN())return[{type:"nan",value:f}];if(!p.isFinite())return[{type:"infinity",value:f}];var m=t$[i];m&&(f=f.replace(/\d/g,function(e){return m[+e]||e}));var g=f.indexOf(".");g>0?(c=f.slice(0,g),d=f.slice(g+1)):c=f;var _=!1;if("always"===a?_=!0:"min2"===a?_=p.greaterThanOrEqualTo(1e4):("auto"===a||a)&&(_="compact"!==r||p.greaterThanOrEqualTo(1e4)),_){var y="currency"===o&&null!=e.currencyGroup?e.currencyGroup:e.group,v=[],b=s.split(".")[0].split(","),w=3,k=3;b.length>1&&(w=b[b.length-1].length),b.length>2&&(k=b[b.length-2].length);var E=c.length-w;if(E>0){for(v.push(c.slice(E,E+w)),E-=k;E>0;E-=k)v.push(c.slice(E,E+k));v.push(c.slice(0,E+k))}else v.push(c);for(;v.length>0;){var x=v.pop();h.push({type:"integer",value:x}),v.length>0&&h.push({type:"group",value:y})}}else h.push({type:"integer",value:c});if(void 0!==d){var S="currency"===o&&null!=e.currencyDecimal?e.currencyDecimal:e.decimal;h.push({type:"decimal",value:S},{type:"fraction",value:d})}if(("scientific"===r||"engineering"===r)&&p.isFinite()){h.push({type:"exponentSeparator",value:e.exponential}),n<0&&(h.push({type:"exponentMinusSign",value:e.minusSign}),n=-n);var T=tB(new eF(n),0,0,l,u);h.push({type:"exponentInteger",value:T.formattedString})}return h}(k,e,c,l,h,!p&&(null==(i=n.useGrouping)||i),_,d,n.roundingIncrement,tj(n.roundingMode,-1===o)));break;case"-":w.push({type:"minusSign",value:k.minusSign});break;case"+":w.push({type:"plusSign",value:k.plusSign});break;case"%":w.push({type:"percentSign",value:k.percentSign});break;case"\xa4":w.push({type:"currency",value:a});break;default:/^\{c:/.test(x)?w.push({type:"compact",value:x.substring(3,x.length-1)}):w.push({type:"literal",value:x})}}switch(d){case"currency":if("name"!==n.currencyDisplay)return w;var S=(t.numbers.currency[h]||t.numbers.currency[f]).unitPattern,T=void 0,A=t.currencies[n.currency];T=A?tY(r,e.roundedNumber.times(eF.pow(10,l)).toNumber(),A.displayName):n.currency;for(var I=S.split(/(\{[01]\})/g),N=[],C=0;C<I.length;C++){var x=I[C];switch(x){case"{0}":N.push.apply(N,w);break;case"{1}":N.push({type:"currency",value:T});break;default:x&&N.push({type:"literal",value:x})}}return N;case"unit":var O=n.unit,P=n.unitDisplay,D=t.units.simple[O],S=void 0;if(D)S=tY(r,e.roundedNumber.times(eF.pow(10,l)).toNumber(),t.units.simple[O][P]);else{var M=O.split("-per-"),L=M[0],R=M[1];D=t.units.simple[L];var F=tY(r,e.roundedNumber.times(eF.pow(10,l)).toNumber(),t.units.simple[L][P]),j=t.units.simple[R].perUnit[P];if(j)S=j.replace("{0}",F);else{var z=t.units.compound.per[P],B=tY(r,1,t.units.simple[R][P]);S=S=z.replace("{0}",F).replace("{1}",B.replace("{0}",""))}}for(var N=[],U=0,V=S.split(/(\s*\{0\}\s*)/);U<V.length;U++){var x=V[U],q=/^(\s*)\{0\}(\s*)$/.exec(x);q?(q[1]&&N.push({type:"literal",value:q[1]}),N.push.apply(N,w),q[2]&&N.push({type:"literal",value:q[2]})):x&&N.push({type:"unit",value:x})}return N;default:return w}}function tJ(e,t){0>e.indexOf(";")&&(e="".concat(e,";-").concat(e));var r=e.split(";"),n=r[0],i=r[1];switch(t){case 0:return n;case -1:return i;default:return i.indexOf("-")>=0?i.replace(/-/g,"+"):"+".concat(n)}}function tY(e,t,r){return r[e.select(t)]||r.other}function tX(e,t){var r=e.dataLocaleData.numbers.symbols[e.numberingSystem].approximatelySign;return t.push({type:"approximatelySign",value:r}),t}function t0(e,t){var r,n,i,a=t,s=0,o=e.pl,l=e.dataLocaleData,u=e.numberingSystem,c=l.numbers.symbols[u]||l.numbers.symbols[l.numbers.nu[0]],d=0;if(a.isNaN())n=c.nan;else if(a.isFinite()){a.isZero()||(eQ(a.isFinite(),"Input must be a mathematical value"),"percent"==e.style&&(a=a.times(100)),d=(r=tq(e,a))[0],s=r[1],a=a.times(eF.pow(10,-d)));var h=tV(e,a);n=h.formattedString,a=h.roundedNumber}else n=c.infinity;var f=e.signDisplay;switch(f){case"never":i=0;break;case"auto":i=a.isPositive()||a.isNaN()?0:-1;break;case"always":i=a.isPositive()||a.isNaN()?1:-1;break;case"exceptZero":i=a.isZero()?0:a.isNegative()?-1:1;break;default:eQ("negative"===f,'signDisplay must be "negative"'),i=a.isNegative()&&!a.isZero()?-1:0}return tQ({roundedNumber:a,formattedString:n,exponent:d,magnitude:s,sign:i},e.dataLocaleData,o,e)}function t1(e,t){return t0(e,t).map(function(e){return e.value}).join("")}function t2(e,t,r,n){var i=n.getInternalSlots;eQ(!t.isNaN()&&!r.isNaN(),"Input must be a number",RangeError);var a=i(e),s=t0(a,t),o=t0(a,r);if(t1(a,t)===t1(a,r)){var l=tX(a,s);return l.forEach(function(e){e.source="shared"}),l}var u=[];s.forEach(function(e){e.source="startRange",u.push(e)});var c=a.dataLocaleData.numbers.symbols[a.numberingSystem].rangeSign;return u.push({type:"literal",value:c,source:"shared"}),o.forEach(function(e){e.source="endRange",u.push(e)}),tM(e,u,{getInternalSlots:i})}function t5(e,t,r,n){return t2(e,t,r,{getInternalSlots:n.getInternalSlots}).map(function(e){return e.value}).join("")}function t3(e,t,r,n){return t2(e,t,r,{getInternalSlots:n.getInternalSlots}).map(function(e,t){return{type:e.type,value:e.value,source:e.source,result:t.toString()}})}function t4(e,t,r){for(var n=t0(r.getInternalSlots(e),t),i=e6(0),a=0;a<n.length;a++){var s=n[a];i.push({type:s.type,value:s.value})}return i}var t9=r(83792),t6=new Set([1,2,5,10,20,25,50,100,200,250,500,1e3,2e3,2500,5e3]);function t7(e,t,r,n,i){var a=tb(t,"minimumIntegerDigits",1,21,1),s=t.minimumFractionDigits,o=t.maximumFractionDigits,l=t.minimumSignificantDigits,u=t.maximumSignificantDigits;e.minimumIntegerDigits=a;var c=tb(t,"roundingIncrement",1,5e3,1);eQ(t6.has(c),"Invalid rounding increment value: ".concat(c,".\nValid values are ").concat(Array.from(t6).join(", "),"."));var d=tw(t,"roundingMode","string",["ceil","floor","expand","trunc","halfCeil","halfFloor","halfExpand","halfTrunc","halfEven"],"halfExpand"),h=tw(t,"roundingPriority","string",["auto","morePrecision","lessPrecision"],"auto"),f=tw(t,"trailingZeroDisplay","string",["auto","stripIfInteger"],"auto");1!==c&&(n=r),e.roundingIncrement=c,e.roundingMode=d,e.trailingZeroDisplay=f;var p=void 0!==l||void 0!==u,m=void 0!==s||void 0!==o,g=!0,_=!0;if("auto"===h&&(g=p,(p||!m&&"compact"===i)&&(_=!1)),g&&(p?(e.minimumSignificantDigits=tv(l,1,21,1),e.maximumSignificantDigits=tv(u,e.minimumSignificantDigits,21,21)):(e.minimumSignificantDigits=1,e.maximumSignificantDigits=21)),_)if(m){if(s=tv(s,0,100,void 0),o=tv(o,0,100,void 0),void 0===s)eQ(void 0!==o,"maximumFractionDigits must be defined"),s=Math.min(r,o);else if(void 0===o)o=Math.max(n,s);else if(s>o)throw RangeError("Invalid range, ".concat(s," > ").concat(o));e.minimumFractionDigits=s,e.maximumFractionDigits=o}else e.minimumFractionDigits=r,e.maximumFractionDigits=n;g||_?"morePrecision"===h?(e.roundingType="morePrecision",e.roundingPriority="morePrecision"):"lessPrecision"===h?(e.roundingType="lessPrecision",e.roundingPriority="lessPrecision"):(p?e.roundingType="significantDigits":e.roundingType="fractionDigits",e.roundingPriority="auto"):(e.minimumFractionDigits=0,e.maximumFractionDigits=0,e.minimumSignificantDigits=1,e.maximumSignificantDigits=2,e.roundingType="morePrecision",e.roundingPriority="morePrecision"),1!==c&&(eQ("fractionDigits"===e.roundingType,"Invalid roundingType",TypeError),eQ(e.maximumFractionDigits===e.minimumFractionDigits,"With roundingIncrement > 1, maximumFractionDigits and minimumFractionDigits must be equal.",RangeError))}function t8(e,t){void 0===t&&(t=Object.create(null));var r=tw(t,"style","string",["decimal","percent","currency","unit"],"decimal");e.style=r;var n=tw(t,"currency","string",void 0,void 0);eQ(void 0===n||tC(n),"Malformed currency code",RangeError),eQ("currency"!==r||void 0!==n,"currency cannot be undefined",TypeError);var i=tw(t,"currencyDisplay","string",["code","symbol","narrowSymbol","name"],"symbol"),a=tw(t,"currencySign","string",["standard","accounting"],"standard"),s=tw(t,"unit","string",void 0,void 0);eQ(void 0===s||tO(s),"Invalid unit argument for Intl.NumberFormat()",RangeError),eQ("unit"!==r||void 0!==s,"unit cannot be undefined",TypeError);var o=tw(t,"unitDisplay","string",["short","narrow","long"],"short");"currency"===r&&(e.currency=n.toUpperCase(),e.currencyDisplay=i,e.currencySign=a),"unit"===r&&(e.unit=s,e.unitDisplay=o)}function re(e,t,r,i){var a,s,o=i.getInternalSlots,l=i.localeData,u=i.availableLocales,c=i.numberingSystemNames,d=i.getDefaultLocale,h=i.currencyDigitsData,f=n(t),p=ty(r),m=Object.create(null);m.localeMatcher=tw(p,"localeMatcher","string",["lookup","best fit"],"best fit");var g=tw(p,"numberingSystem","string",void 0,void 0);if(void 0!==g&&0>c.indexOf(g))throw RangeError("Invalid numberingSystems: ".concat(g));m.nu=g;var _=(0,t9.ResolveLocale)(Array.from(u),f,m,["nu"],l,d),y=l[_.dataLocale];eQ(!!y,"Missing locale data for ".concat(_.dataLocale));var v=o(e);v.locale=_.locale,v.dataLocale=_.dataLocale,v.numberingSystem=_.nu,v.dataLocaleData=y,t8(v,p);var b=v.style,w=tw(p,"notation","string",["standard","scientific","engineering","compact"],"standard");if(v.notation=w,"currency"===b&&"standard"===w){var k=tZ(v.currency,{currencyDigitsData:h});a=k,s=k}else a=0,s=3*("percent"!==b);t7(v,p,a,s,w);var E=tw(p,"compactDisplay","string",["short","long"],"short"),x="auto";return"compact"===w&&(v.compactDisplay=E,x="min2"),v.useGrouping=tE(p,"useGrouping",["min2","auto","always"],"always",!1,x),v.signDisplay=tw(p,"signDisplay","string",["auto","never","always","exceptZero","negative"],"auto"),e}function rt(e){for(var t=[],r=e.indexOf("{"),n=0,i=0,a=e.length;r<e.length&&r>-1;)eQ((n=e.indexOf("}",r))>r,"Invalid pattern ".concat(e)),r>i&&t.push({type:"literal",value:e.substring(i,r)}),t.push({type:e.substring(r+1,n),value:void 0}),i=n+1,r=e.indexOf("{",i);return i<a&&t.push({type:"literal",value:e.substring(i,a)}),t}function rr(e,t,r){return void 0!==r&&tw(r=e4(r),"localeMatcher","string",["lookup","best fit"],"best fit"),(0,t9.LookupSupportedLocales)(Array.from(e),t)}function rn(e){return"MISSING_LOCALE_DATA"===e.type}function ri(e){var t=t_(e,"number");if("bigint"==typeof t)return new eF(t);if(void 0===t)return new eF(NaN);if(!0===t)return new eF(1);if(!1===t||null===t)return new eF(0);try{return new eF(t)}catch(e){return new eF(NaN)}}!function(e){(0,eB.__extends)(function(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="MISSING_LOCALE_DATA",t},e)}(Error),function(e){e.startRange="startRange",e.shared="shared",e.endRange="endRange"}(a||(a={}))},77328:(e,t,r)=>{e.exports=r(97918)},77742:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(14232),i=r(37154),a=r(7672);function s(){var e=n.useContext(a.ob);return(0,i.HM)(e),e}},79015:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14232);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...a}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},a),r?n.createElement("title",{id:i},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15M12 9l3 3m0 0-3 3m3-3H2.25"}))})},79350:(e,t,r)=>{"use strict";r.d(t,{J1:()=>z});var n,i,a=r(4902);let s=/\r\n|[\n\r]/g;function o(e,t){let r=0,n=1;for(let i of e.body.matchAll(s)){if("number"==typeof i.index||function(e,t){if(!e)throw Error("Unexpected invariant triggered.")}(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function l(e,t){let r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,a=e.locationOffset.line-1,s=t.line+a,o=1===t.line?r:0,l=t.column+o,c=`${e.name}:${s}:${l}
|
|
29
|
-
`,d=n.split(/\r\n|[\n\r]/g),h=d[i];if(h.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e<h.length;e+=80)t.push(h.slice(e,e+80));return c+u([[`${s} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return c+u([[`${s-1} |`,d[i-1]],[`${s} |`,h],["|","^".padStart(l)],[`${s+1} |`,d[i+1]]])}function u(e){let t=e.filter(([e,t])=>void 0!==t),r=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(r)+(t?" "+t:"")).join("\n")}class c extends Error{constructor(e,...t){var r,n,i;let{nodes:a,source:s,positions:l,path:u,originalError:h,extensions:f}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=h?h:void 0,this.nodes=d(Array.isArray(a)?a:a?[a]:void 0);let p=d(null==(r=this.nodes)?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=s?s:null==p||null==(n=p[0])?void 0:n.source,this.positions=null!=l?l:null==p?void 0:p.map(e=>e.start),this.locations=l&&s?l.map(e=>o(s,e)):null==p?void 0:p.map(e=>o(e.source,e.start));let m=!function(e){return"object"==typeof e&&null!==e}(null==h?void 0:h.extensions)||null==h?void 0:h.extensions;this.extensions=null!=(i=null!=f?f:m)?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=h&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,c):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let r of this.nodes){var t;r.loc&&(e+="\n\n"+l((t=r.loc).source,o(t.source,t.start)))}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+l(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function d(e){return void 0===e||0===e.length?void 0:e}function h(e,t,r){return new c(`Syntax Error: ${r}`,{source:e,positions:[t]})}var f=r(86158);!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(n||(n={}));var p=r(94587),m=r(47518),g=r(7743);!function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(i||(i={}));class _{constructor(e){let t=new f.ou(i.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==i.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let r=e.source.body,n=r.length,a=t;for(;a<n;){let t=r.charCodeAt(a);switch(t){case 65279:case 9:case 32:case 44:++a;continue;case 10:++a,++e.line,e.lineStart=a;continue;case 13:10===r.charCodeAt(a+1)?a+=2:++a,++e.line,e.lineStart=a;continue;case 35:return function(e,t){let r=e.source.body,n=r.length,a=t+1;for(;a<n;){let e=r.charCodeAt(a);if(10===e||13===e)break;if(y(e))++a;else if(v(r,a))a+=2;else break}return E(e,i.COMMENT,t,a,r.slice(t+1,a))}(e,a);case 33:return E(e,i.BANG,a,a+1);case 36:return E(e,i.DOLLAR,a,a+1);case 38:return E(e,i.AMP,a,a+1);case 40:return E(e,i.PAREN_L,a,a+1);case 41:return E(e,i.PAREN_R,a,a+1);case 46:if(46===r.charCodeAt(a+1)&&46===r.charCodeAt(a+2))return E(e,i.SPREAD,a,a+3);break;case 58:return E(e,i.COLON,a,a+1);case 61:return E(e,i.EQUALS,a,a+1);case 64:return E(e,i.AT,a,a+1);case 91:return E(e,i.BRACKET_L,a,a+1);case 93:return E(e,i.BRACKET_R,a,a+1);case 123:return E(e,i.BRACE_L,a,a+1);case 124:return E(e,i.PIPE,a,a+1);case 125:return E(e,i.BRACE_R,a,a+1);case 34:if(34===r.charCodeAt(a+1)&&34===r.charCodeAt(a+2))return function(e,t){let r=e.source.body,n=r.length,a=e.lineStart,s=t+3,o=s,l="",u=[];for(;s<n;){let n=r.charCodeAt(s);if(34===n&&34===r.charCodeAt(s+1)&&34===r.charCodeAt(s+2)){l+=r.slice(o,s),u.push(l);let n=E(e,i.BLOCK_STRING,t,s+3,(0,m.OC)(u).join("\n"));return e.line+=u.length-1,e.lineStart=a,n}if(92===n&&34===r.charCodeAt(s+1)&&34===r.charCodeAt(s+2)&&34===r.charCodeAt(s+3)){l+=r.slice(o,s),o=s+1,s+=4;continue}if(10===n||13===n){l+=r.slice(o,s),u.push(l),13===n&&10===r.charCodeAt(s+1)?s+=2:++s,l="",o=s,a=s;continue}if(y(n))++s;else if(v(r,s))s+=2;else throw h(e.source,s,`Invalid character within String: ${k(e,s)}.`)}throw h(e.source,s,"Unterminated string.")}(e,a);return function(e,t){let r=e.source.body,n=r.length,a=t+1,s=a,o="";for(;a<n;){let n=r.charCodeAt(a);if(34===n)return o+=r.slice(s,a),E(e,i.STRING,t,a+1,o);if(92===n){o+=r.slice(s,a);let t=117===r.charCodeAt(a+1)?123===r.charCodeAt(a+2)?function(e,t){let r=e.source.body,n=0,i=3;for(;i<12;){let e=r.charCodeAt(t+i++);if(125===e){if(i<5||!y(n))break;return{value:String.fromCodePoint(n),size:i}}if((n=n<<4|T(e))<0)break}throw h(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+i)}".`)}(e,a):function(e,t){let r=e.source.body,n=S(r,t+2);if(y(n))return{value:String.fromCodePoint(n),size:6};if(b(n)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){let e=S(r,t+8);if(w(e))return{value:String.fromCodePoint(n,e),size:12}}throw h(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}(e,a):function(e,t){let r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw h(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}(e,a);o+=t.value,a+=t.size,s=a;continue}if(10===n||13===n)break;if(y(n))++a;else if(v(r,a))a+=2;else throw h(e.source,a,`Invalid character within String: ${k(e,a)}.`)}throw h(e.source,a,"Unterminated string.")}(e,a)}if((0,g.yp)(t)||45===t)return function(e,t,r){let n=e.source.body,a=t,s=r,o=!1;if(45===s&&(s=n.charCodeAt(++a)),48===s){if(s=n.charCodeAt(++a),(0,g.yp)(s))throw h(e.source,a,`Invalid number, unexpected digit after 0: ${k(e,a)}.`)}else a=x(e,a,s),s=n.charCodeAt(a);if(46===s&&(o=!0,s=n.charCodeAt(++a),a=x(e,a,s),s=n.charCodeAt(a)),(69===s||101===s)&&(o=!0,(43===(s=n.charCodeAt(++a))||45===s)&&(s=n.charCodeAt(++a)),a=x(e,a,s),s=n.charCodeAt(a)),46===s||(0,g.un)(s))throw h(e.source,a,`Invalid number, expected digit but got: ${k(e,a)}.`);return E(e,o?i.FLOAT:i.INT,t,a,n.slice(t,a))}(e,a,t);if((0,g.un)(t))return function(e,t){let r=e.source.body,n=r.length,a=t+1;for(;a<n;){let e=r.charCodeAt(a);if((0,g.xr)(e))++a;else break}return E(e,i.NAME,t,a,r.slice(t,a))}(e,a);throw h(e.source,a,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":y(t)||v(r,a)?`Unexpected character: ${k(e,a)}.`:`Invalid character: ${k(e,a)}.`)}return E(e,i.EOF,n,n)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===i.COMMENT);return e}}function y(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function v(e,t){return b(e.charCodeAt(t))&&w(e.charCodeAt(t+1))}function b(e){return e>=55296&&e<=56319}function w(e){return e>=56320&&e<=57343}function k(e,t){let r=e.source.body.codePointAt(t);if(void 0===r)return i.EOF;if(r>=32&&r<=126){let e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function E(e,t,r,n,i){let a=e.line,s=1+r-e.lineStart;return new f.ou(t,r,n,a,s,i)}function x(e,t,r){if(!(0,g.yp)(r))throw h(e.source,t,`Invalid number, expected digit but got: ${k(e,t)}.`);let n=e.source.body,i=t+1;for(;(0,g.yp)(n.charCodeAt(i));)++i;return i}function S(e,t){return T(e.charCodeAt(t))<<12|T(e.charCodeAt(t+1))<<8|T(e.charCodeAt(t+2))<<4|T(e.charCodeAt(t+3))}function T(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}var A=r(58287),I=r(77016);let N=globalThis.process&&1?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var r;let n=t.prototype[Symbol.toStringTag];if(n===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(r=e.constructor)?void 0:r.name)){let t=(0,I.N)(e);throw Error(`Cannot use ${n} "${t}" from another module or realm.
|
|
30
|
-
|
|
31
|
-
Ensure that there is only one instance of "graphql" in the node_modules
|
|
32
|
-
directory. If different versions of "graphql" are the dependencies of other
|
|
33
|
-
relied on modules, use "resolutions" to ensure only one version is installed.
|
|
34
|
-
|
|
35
|
-
https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
36
|
-
|
|
37
|
-
Duplicate "graphql" modules cannot be used at the same time since different
|
|
38
|
-
versions may have different capabilities and behavior. The data from one
|
|
39
|
-
version used in the function from another could produce confusing and
|
|
40
|
-
spurious results.`)}}return!1};class C{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||(0,A.U)(!1,`Body must be a string. Received: ${(0,I.N)(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||(0,A.U)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,A.U)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class O{constructor(e,t={}){let r=N(e,C)?e:new C(e);this._lexer=new _(r),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(i.NAME);return this.node(e,{kind:p.b.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:p.b.DOCUMENT,definitions:this.many(i.SOF,this.parseDefinition,i.EOF)})}parseDefinition(){if(this.peek(i.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===i.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw h(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e,t=this._lexer.token;if(this.peek(i.BRACE_L))return this.node(t,{kind:p.b.OPERATION_DEFINITION,operation:f.cE.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseOperationType();return this.peek(i.NAME)&&(e=this.parseName()),this.node(t,{kind:p.b.OPERATION_DEFINITION,operation:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(i.NAME);switch(e.value){case"query":return f.cE.QUERY;case"mutation":return f.cE.MUTATION;case"subscription":return f.cE.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(i.PAREN_L,this.parseVariableDefinition,i.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:p.b.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(i.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(i.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(i.DOLLAR),this.node(e,{kind:p.b.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:p.b.SELECTION_SET,selections:this.many(i.BRACE_L,this.parseSelection,i.BRACE_R)})}parseSelection(){return this.peek(i.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(i.COLON)?(e=n,t=this.parseName()):t=n,this.node(r,{kind:p.b.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(i.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(i.PAREN_L,t,i.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,r=this.parseName();return this.expectToken(i.COLON),this.node(t,{kind:p.b.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(i.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(i.NAME)?this.node(e,{kind:p.b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:p.b.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:p.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:p.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case i.BRACKET_L:return this.parseList(e);case i.BRACE_L:return this.parseObject(e);case i.INT:return this.advanceLexer(),this.node(t,{kind:p.b.INT,value:t.value});case i.FLOAT:return this.advanceLexer(),this.node(t,{kind:p.b.FLOAT,value:t.value});case i.STRING:case i.BLOCK_STRING:return this.parseStringLiteral();case i.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:p.b.BOOLEAN,value:!0});case"false":return this.node(t,{kind:p.b.BOOLEAN,value:!1});case"null":return this.node(t,{kind:p.b.NULL});default:return this.node(t,{kind:p.b.ENUM,value:t.value})}case i.DOLLAR:if(e){if(this.expectToken(i.DOLLAR),this._lexer.token.kind===i.NAME){let e=this._lexer.token.value;throw h(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:p.b.STRING,value:e.value,block:e.kind===i.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:p.b.LIST,values:this.any(i.BRACKET_L,t,i.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:p.b.OBJECT,fields:this.any(i.BRACE_L,t,i.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,r=this.parseName();return this.expectToken(i.COLON),this.node(t,{kind:p.b.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(i.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(i.AT),this.node(t,{kind:p.b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(i.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(i.BRACKET_R),e=this.node(t,{kind:p.b.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(i.BANG)?this.node(t,{kind:p.b.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:p.b.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(i.STRING)||this.peek(i.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),n=this.many(i.BRACE_L,this.parseOperationTypeDefinition,i.BRACE_R);return this.node(e,{kind:p.b.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(i.COLON);let r=this.parseNamedType();return this.node(e,{kind:p.b.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:p.b.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:p.b.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(i.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(i.BRACE_L,this.parseFieldDefinition,i.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(i.COLON);let a=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:p.b.FIELD_DEFINITION,description:t,name:r,arguments:n,type:a,directives:s})}parseArgumentDefs(){return this.optionalMany(i.PAREN_L,this.parseInputValueDef,i.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(i.COLON);let a=this.parseTypeReference();this.expectOptionalToken(i.EQUALS)&&(e=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(t,{kind:p.b.INPUT_VALUE_DEFINITION,description:r,name:n,type:a,defaultValue:e,directives:s})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:p.b.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:a})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:p.b.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(i.EQUALS)?this.delimitedMany(i.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:p.b.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(i.BRACE_L,this.parseEnumValueDefinition,i.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:p.b.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw h(this._lexer.source,this._lexer.token.start,`${P(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:p.b.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(i.BRACE_L,this.parseInputValueDef,i.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===i.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),r=this.optionalMany(i.BRACE_L,this.parseOperationTypeDefinition,i.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:p.b.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:p.b.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:p.b.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:p.b.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:p.b.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:p.b.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:p.b.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(i.AT);let r=this.parseName(),n=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(e,{kind:p.b.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:a,locations:s})}parseDirectiveLocations(){return this.delimitedMany(i.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(n,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new f.aZ(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw h(this._lexer.source,t.start,`Expected ${D(e)}, found ${P(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===i.NAME&&t.value===e)this.advanceLexer();else throw h(this._lexer.source,t.start,`Expected "${e}", found ${P(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===i.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return h(this._lexer.source,t.start,`Unexpected ${P(t)}.`)}any(e,t,r){this.expectToken(e);let n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);let n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);let r=[];do r.push(t.call(this));while(this.expectOptionalToken(e));return r}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==i.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw h(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function P(e){let t=e.value;return D(e.kind)+(null!=t?` "${t}"`:"")}function D(e){return e===i.BANG||e===i.DOLLAR||e===i.AMP||e===i.PAREN_L||e===i.PAREN_R||e===i.SPREAD||e===i.COLON||e===i.EQUALS||e===i.AT||e===i.BRACKET_L||e===i.BRACKET_R||e===i.BRACE_L||e===i.PIPE||e===i.BRACE_R?`"${e}"`:e}var M=new Map,L=new Map,R=!0,F=!1;function j(e){return e.replace(/[\s,]+/g," ").trim()}function z(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach(function(t,r){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[r+1]}),function(e){var t=j(e);if(!M.has(t)){var r,n,i,s,o,l=function(e,t){let r=new O(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}(e,{experimentalFragmentVariables:F,allowLegacyFragmentVariables:F});if(!l||"Document"!==l.kind)throw Error("Not a valid GraphQL document.");M.set(t,((s=new Set((r=new Set,n=[],l.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,i=e.name.value,a=j((t=e.loc).source.body.substring(t.start,t.end)),s=L.get(i);s&&!s.has(a)?R&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):s||L.set(i,s=new Set),s.add(a),r.has(a)||(r.add(a),n.push(e))}else n.push(e)}),i=(0,a.__assign)((0,a.__assign)({},l),{definitions:n})).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&s.add(r)})}),(o=i.loc)&&(delete o.startToken,delete o.endToken),i))}return M.get(t)}(n)}var B={gql:z,resetCaches:function(){M.clear(),L.clear()},disableFragmentWarnings:function(){R=!1},enableExperimentalFragmentVariables:function(){F=!0},disableExperimentalFragmentVariables:function(){F=!1}};!function(e){e.gql=B.gql,e.resetCaches=B.resetCaches,e.disableFragmentWarnings=B.disableFragmentWarnings,e.enableExperimentalFragmentVariables=B.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=B.disableExperimentalFragmentVariables}(z||(z={})),z.default=z},80644:(e,t,r)=>{"use strict";r.d(t,{Q:()=>s});var n=r(10776),i=r(65023),a=r(11357);function s(e,t){return void 0===t&&(t=0),(0,i.N)(function(r,i){r.subscribe((0,a._)(i,function(r){return(0,n.N)(i,e,function(){return i.next(r)},t)},function(){return(0,n.N)(i,e,function(){return i.complete()},t)},function(r){return(0,n.N)(i,e,function(){return i.error(r)},t)}))})}},81105:(e,t,r)=>{"use strict";function n(e,t){for(var r=arguments.length,i=Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];if(e in t){let r=t[e];return"function"==typeof r?r(...i):r}let s=Error('Tried to handle "'.concat(e,'" but there is no handler defined. Only defined handlers are: ').concat(Object.keys(t).map(e=>'"'.concat(e,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(s,n),s}r.d(t,{Y:()=>n})},81432:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14232);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...a}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},a),r?n.createElement("title",{id:i},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6.878V6a2.25 2.25 0 0 1 2.25-2.25h7.5A2.25 2.25 0 0 1 18 6v.878m-12 0c.235-.083.487-.128.75-.128h10.5c.263 0 .515.045.75.128m-12 0A2.25 2.25 0 0 0 4.5 9v.878m13.5-3A2.25 2.25 0 0 1 19.5 9v.878m0 0a2.246 2.246 0 0 0-.75-.128H5.25c-.263 0-.515.045-.75.128m15 0A2.25 2.25 0 0 1 21 12v6a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 18v-6c0-.98.626-1.813 1.5-2.122"}))})},81893:(e,t,r)=>{"use strict";r.d(t,{o:()=>F});var n,i=r(14232);let a="undefined"!=typeof document?i.useLayoutEffect:()=>{},s=null!=(n=i.useInsertionEffect)?n:a;function o(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function l(e){let t=(0,i.useRef)({isFocused:!1,observer:null});a(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let r=function(e){let t=(0,i.useRef)(null);return s(()=>{t.current=e},[e]),(0,i.useCallback)((...e)=>{let r=t.current;return null==r?void 0:r(...e)},[])}(t=>{null==e||e(t)});return(0,i.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=e.target;n.addEventListener("focusout",e=>{t.current.isFocused=!1,n.disabled&&r(o(e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){var e;null==(e=t.current.observer)||e.disconnect();let r=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[r])}function u(e){var t;if("undefined"==typeof window||null==window.navigator)return!1;let r=null==(t=window.navigator.userAgentData)?void 0:t.brands;return Array.isArray(r)&&r.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function c(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null==(t=window.navigator.userAgentData)?void 0:t.platform)||window.navigator.platform)}function d(e){let t=null;return()=>(null==t&&(t=e()),t)}let h=d(function(){return c(/^Mac/i)}),f=d(function(){return c(/^iPhone/i)}),p=d(function(){return c(/^iPad/i)||h()&&navigator.maxTouchPoints>1}),m=d(function(){return f()||p()});d(function(){return h()||m()}),d(function(){return u(/AppleWebKit/i)&&!g()});let g=d(function(){return u(/Chrome/i)}),_=d(function(){return u(/Android/i)});d(function(){return u(/Firefox/i)});var y=r(82505);let v=null,b=new Set,w=new Map,k=!1,E=!1,x={Tab:!0,Escape:!0};function S(e,t){for(let r of b)r(e,t)}function T(e){k=!0,e.metaKey||!h()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(v="keyboard",S("keyboard",e))}function A(e){v="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(k=!0,S("pointer",e))}function I(e){(""===e.pointerType&&e.isTrusted||(_()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType))&&(k=!0,v="virtual")}function N(e){e.target!==window&&e.target!==document&&e.isTrusted&&(k||E||(v="virtual",S("virtual",e)),k=!1,E=!1)}function C(){k=!1,E=!0}function O(e){if("undefined"==typeof window||"undefined"==typeof document||w.get((0,y.mD)(e)))return;let t=(0,y.mD)(e),r=(0,y.TW)(e),n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){k=!0,n.apply(this,arguments)},r.addEventListener("keydown",T,!0),r.addEventListener("keyup",T,!0),r.addEventListener("click",I,!0),t.addEventListener("focus",N,!0),t.addEventListener("blur",C,!1),"undefined"!=typeof PointerEvent&&(r.addEventListener("pointerdown",A,!0),r.addEventListener("pointermove",A,!0),r.addEventListener("pointerup",A,!0)),t.addEventListener("beforeunload",()=>{P(e)},{once:!0}),w.set(t,{focus:n})}let P=(e,t)=>{let r=(0,y.mD)(e),n=(0,y.TW)(e);t&&n.removeEventListener("DOMContentLoaded",t),w.has(r)&&(r.HTMLElement.prototype.focus=w.get(r).focus,n.removeEventListener("keydown",T,!0),n.removeEventListener("keyup",T,!0),n.removeEventListener("click",I,!0),r.removeEventListener("focus",N,!0),r.removeEventListener("blur",C,!1),"undefined"!=typeof PointerEvent&&(n.removeEventListener("pointerdown",A,!0),n.removeEventListener("pointermove",A,!0),n.removeEventListener("pointerup",A,!0)),w.delete(r))};function D(){return"pointer"!==v}"undefined"!=typeof document&&function(e){let t,r=(0,y.TW)(void 0);"loading"!==r.readyState?O(void 0):(t=()=>{O(e)},r.addEventListener("DOMContentLoaded",t)),()=>P(e,t)}();let M=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);var L=r(86962),R=r(12473);function F(e={}){var t;let{autoFocus:r=!1,isTextInput:n,within:a}=e,s=(0,i.useRef)({isFocused:!1,isFocusVisible:r||D()}),[u,c]=(0,i.useState)(!1),[d,h]=(0,i.useState)(()=>s.current.isFocused&&s.current.isFocusVisible),f=(0,i.useCallback)(()=>h(s.current.isFocused&&s.current.isFocusVisible),[]),p=(0,i.useCallback)(e=>{s.current.isFocused=e,c(e),f()},[f]);t={isTextInput:n},O(),(0,i.useEffect)(()=>{let e=(e,r)=>{(function(e,t,r){let n=(0,y.TW)(null==r?void 0:r.target),i="undefined"!=typeof window?(0,y.mD)(null==r?void 0:r.target).HTMLInputElement:HTMLInputElement,a="undefined"!=typeof window?(0,y.mD)(null==r?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,s="undefined"!=typeof window?(0,y.mD)(null==r?void 0:r.target).HTMLElement:HTMLElement,o="undefined"!=typeof window?(0,y.mD)(null==r?void 0:r.target).KeyboardEvent:KeyboardEvent;return!((e=e||n.activeElement instanceof i&&!M.has(n.activeElement.type)||n.activeElement instanceof a||n.activeElement instanceof s&&n.activeElement.isContentEditable)&&"keyboard"===t&&r instanceof o&&!x[r.key])})(!!(null==t?void 0:t.isTextInput),e,r)&&(e=>{s.current.isFocusVisible=e,f()})(D())};return b.add(e),()=>{b.delete(e)}},[]);let{focusProps:m}=function(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:a}=e,s=(0,i.useCallback)(e=>{if(e.target===e.currentTarget)return n&&n(e),a&&a(!1),!0},[n,a]),o=l(s),u=(0,i.useCallback)(e=>{let t=(0,y.TW)(e.target),n=t?(0,L.bq)(t):(0,L.bq)();e.target===e.currentTarget&&n===(0,L.wt)(e.nativeEvent)&&(r&&r(e),a&&a(!0),o(e))},[a,r,o]);return{focusProps:{onFocus:!t&&(r||a||n)?u:void 0,onBlur:!t&&(n||a)?s:void 0}}}({isDisabled:a,onFocusChange:p}),{focusWithinProps:g}=function(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:a}=e,s=(0,i.useRef)({isFocusWithin:!1}),{addGlobalListener:u,removeAllGlobalListeners:c}=(0,R.A)(),d=(0,i.useCallback)(e=>{e.currentTarget.contains(e.target)&&s.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(s.current.isFocusWithin=!1,c(),r&&r(e),a&&a(!1))},[r,a,s,c]),h=l(d),f=(0,i.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;let t=(0,y.TW)(e.target),r=(0,L.bq)(t);if(!s.current.isFocusWithin&&r===(0,L.wt)(e.nativeEvent)){n&&n(e),a&&a(!0),s.current.isFocusWithin=!0,h(e);let r=e.currentTarget;u(t,"focus",e=>{if(s.current.isFocusWithin&&!(0,L.sD)(r,e.target)){let n=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});Object.defineProperty(n,"target",{value:r}),Object.defineProperty(n,"currentTarget",{value:r}),d(o(n))}},{capture:!0})}},[n,a,h,u,d]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:d}}}({isDisabled:!a,onFocusWithinChange:p});return{isFocused:u,isFocusVisible:d,focusProps:a?g:m}}},82074:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(14232).createContext({customProperties:{},hydrateFragment:(e,t)=>null})},82505:(e,t,r)=>{"use strict";r.d(t,{Ng:()=>a,TW:()=>n,mD:()=>i});let n=e=>{var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document},i=e=>e&&"window"in e&&e.window===e?e:n(e).defaultView||window;function a(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&"number"==typeof e.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}},82579:(e,t,r)=>{"use strict";r.d(t,{A:()=>l,r:()=>o});var n=r(37876),i=r(14232),a=r(15039),s=r.n(a);let o=(0,i.createContext)(!1),l=e=>{let{children:t,className:r=""}=e;return(0,n.jsx)(o.Provider,{value:!0,children:(0,n.jsx)("div",{className:"sm:max-w-full",children:(0,n.jsx)("div",{className:s()("bg-white dark:bg-slate-800 rounded-md shadow-sm overflow-hidden",r),children:t})})})}},82595:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14232);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...a}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},a),r?n.createElement("title",{id:i},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"}))})},82688:(e,t,r)=>{"use strict";r.d(t,{U:()=>n});var n={now:function(){return(n.delegate||Date).now()},delegate:void 0}},83792:(e,t,r)=>{"use strict";r.r(t),r.d(t,{LookupSupportedLocales:()=>m,ResolveLocale:()=>p,match:()=>g});var n,i=r(4902),a={supplemental:{languageMatching:{"written-new":[{paradigmLocales:{_locales:"en en_GB es es_419 pt_BR pt_PT"}},{$enUS:{_value:"AS+CA+GU+MH+MP+PH+PR+UM+US+VI"}},{$cnsar:{_value:"HK+MO"}},{$americas:{_value:"019"}},{$maghreb:{_value:"MA+DZ+TN+LY+MR+EH"}},{no:{_desired:"nb",_distance:"1"}},{bs:{_desired:"hr",_distance:"4"}},{bs:{_desired:"sh",_distance:"4"}},{hr:{_desired:"sh",_distance:"4"}},{sr:{_desired:"sh",_distance:"4"}},{aa:{_desired:"ssy",_distance:"4"}},{de:{_desired:"gsw",_distance:"4",_oneway:"true"}},{de:{_desired:"lb",_distance:"4",_oneway:"true"}},{no:{_desired:"da",_distance:"8"}},{nb:{_desired:"da",_distance:"8"}},{ru:{_desired:"ab",_distance:"30",_oneway:"true"}},{en:{_desired:"ach",_distance:"30",_oneway:"true"}},{nl:{_desired:"af",_distance:"20",_oneway:"true"}},{en:{_desired:"ak",_distance:"30",_oneway:"true"}},{en:{_desired:"am",_distance:"30",_oneway:"true"}},{es:{_desired:"ay",_distance:"20",_oneway:"true"}},{ru:{_desired:"az",_distance:"30",_oneway:"true"}},{ur:{_desired:"bal",_distance:"20",_oneway:"true"}},{ru:{_desired:"be",_distance:"20",_oneway:"true"}},{en:{_desired:"bem",_distance:"30",_oneway:"true"}},{hi:{_desired:"bh",_distance:"30",_oneway:"true"}},{en:{_desired:"bn",_distance:"30",_oneway:"true"}},{zh:{_desired:"bo",_distance:"20",_oneway:"true"}},{fr:{_desired:"br",_distance:"20",_oneway:"true"}},{es:{_desired:"ca",_distance:"20",_oneway:"true"}},{fil:{_desired:"ceb",_distance:"30",_oneway:"true"}},{en:{_desired:"chr",_distance:"20",_oneway:"true"}},{ar:{_desired:"ckb",_distance:"30",_oneway:"true"}},{fr:{_desired:"co",_distance:"20",_oneway:"true"}},{fr:{_desired:"crs",_distance:"20",_oneway:"true"}},{sk:{_desired:"cs",_distance:"20"}},{en:{_desired:"cy",_distance:"20",_oneway:"true"}},{en:{_desired:"ee",_distance:"30",_oneway:"true"}},{en:{_desired:"eo",_distance:"30",_oneway:"true"}},{es:{_desired:"eu",_distance:"20",_oneway:"true"}},{da:{_desired:"fo",_distance:"20",_oneway:"true"}},{nl:{_desired:"fy",_distance:"20",_oneway:"true"}},{en:{_desired:"ga",_distance:"20",_oneway:"true"}},{en:{_desired:"gaa",_distance:"30",_oneway:"true"}},{en:{_desired:"gd",_distance:"20",_oneway:"true"}},{es:{_desired:"gl",_distance:"20",_oneway:"true"}},{es:{_desired:"gn",_distance:"20",_oneway:"true"}},{hi:{_desired:"gu",_distance:"30",_oneway:"true"}},{en:{_desired:"ha",_distance:"30",_oneway:"true"}},{en:{_desired:"haw",_distance:"20",_oneway:"true"}},{fr:{_desired:"ht",_distance:"20",_oneway:"true"}},{ru:{_desired:"hy",_distance:"30",_oneway:"true"}},{en:{_desired:"ia",_distance:"30",_oneway:"true"}},{en:{_desired:"ig",_distance:"30",_oneway:"true"}},{en:{_desired:"is",_distance:"20",_oneway:"true"}},{id:{_desired:"jv",_distance:"20",_oneway:"true"}},{en:{_desired:"ka",_distance:"30",_oneway:"true"}},{fr:{_desired:"kg",_distance:"30",_oneway:"true"}},{ru:{_desired:"kk",_distance:"30",_oneway:"true"}},{en:{_desired:"km",_distance:"30",_oneway:"true"}},{en:{_desired:"kn",_distance:"30",_oneway:"true"}},{en:{_desired:"kri",_distance:"30",_oneway:"true"}},{tr:{_desired:"ku",_distance:"30",_oneway:"true"}},{ru:{_desired:"ky",_distance:"30",_oneway:"true"}},{it:{_desired:"la",_distance:"20",_oneway:"true"}},{en:{_desired:"lg",_distance:"30",_oneway:"true"}},{fr:{_desired:"ln",_distance:"30",_oneway:"true"}},{en:{_desired:"lo",_distance:"30",_oneway:"true"}},{en:{_desired:"loz",_distance:"30",_oneway:"true"}},{fr:{_desired:"lua",_distance:"30",_oneway:"true"}},{hi:{_desired:"mai",_distance:"20",_oneway:"true"}},{en:{_desired:"mfe",_distance:"30",_oneway:"true"}},{fr:{_desired:"mg",_distance:"30",_oneway:"true"}},{en:{_desired:"mi",_distance:"20",_oneway:"true"}},{en:{_desired:"ml",_distance:"30",_oneway:"true"}},{ru:{_desired:"mn",_distance:"30",_oneway:"true"}},{hi:{_desired:"mr",_distance:"30",_oneway:"true"}},{id:{_desired:"ms",_distance:"30",_oneway:"true"}},{en:{_desired:"mt",_distance:"30",_oneway:"true"}},{en:{_desired:"my",_distance:"30",_oneway:"true"}},{en:{_desired:"ne",_distance:"30",_oneway:"true"}},{nb:{_desired:"nn",_distance:"20"}},{no:{_desired:"nn",_distance:"20"}},{en:{_desired:"nso",_distance:"30",_oneway:"true"}},{en:{_desired:"ny",_distance:"30",_oneway:"true"}},{en:{_desired:"nyn",_distance:"30",_oneway:"true"}},{fr:{_desired:"oc",_distance:"20",_oneway:"true"}},{en:{_desired:"om",_distance:"30",_oneway:"true"}},{en:{_desired:"or",_distance:"30",_oneway:"true"}},{en:{_desired:"pa",_distance:"30",_oneway:"true"}},{en:{_desired:"pcm",_distance:"20",_oneway:"true"}},{en:{_desired:"ps",_distance:"30",_oneway:"true"}},{es:{_desired:"qu",_distance:"30",_oneway:"true"}},{de:{_desired:"rm",_distance:"20",_oneway:"true"}},{en:{_desired:"rn",_distance:"30",_oneway:"true"}},{fr:{_desired:"rw",_distance:"30",_oneway:"true"}},{hi:{_desired:"sa",_distance:"30",_oneway:"true"}},{en:{_desired:"sd",_distance:"30",_oneway:"true"}},{en:{_desired:"si",_distance:"30",_oneway:"true"}},{en:{_desired:"sn",_distance:"30",_oneway:"true"}},{en:{_desired:"so",_distance:"30",_oneway:"true"}},{en:{_desired:"sq",_distance:"30",_oneway:"true"}},{en:{_desired:"st",_distance:"30",_oneway:"true"}},{id:{_desired:"su",_distance:"20",_oneway:"true"}},{en:{_desired:"sw",_distance:"30",_oneway:"true"}},{en:{_desired:"ta",_distance:"30",_oneway:"true"}},{en:{_desired:"te",_distance:"30",_oneway:"true"}},{ru:{_desired:"tg",_distance:"30",_oneway:"true"}},{en:{_desired:"ti",_distance:"30",_oneway:"true"}},{ru:{_desired:"tk",_distance:"30",_oneway:"true"}},{en:{_desired:"tlh",_distance:"30",_oneway:"true"}},{en:{_desired:"tn",_distance:"30",_oneway:"true"}},{en:{_desired:"to",_distance:"30",_oneway:"true"}},{ru:{_desired:"tt",_distance:"30",_oneway:"true"}},{en:{_desired:"tum",_distance:"30",_oneway:"true"}},{zh:{_desired:"ug",_distance:"20",_oneway:"true"}},{ru:{_desired:"uk",_distance:"20",_oneway:"true"}},{en:{_desired:"ur",_distance:"30",_oneway:"true"}},{ru:{_desired:"uz",_distance:"30",_oneway:"true"}},{fr:{_desired:"wo",_distance:"30",_oneway:"true"}},{en:{_desired:"xh",_distance:"30",_oneway:"true"}},{en:{_desired:"yi",_distance:"30",_oneway:"true"}},{en:{_desired:"yo",_distance:"30",_oneway:"true"}},{zh:{_desired:"za",_distance:"20",_oneway:"true"}},{en:{_desired:"zu",_distance:"30",_oneway:"true"}},{ar:{_desired:"aao",_distance:"10",_oneway:"true"}},{ar:{_desired:"abh",_distance:"10",_oneway:"true"}},{ar:{_desired:"abv",_distance:"10",_oneway:"true"}},{ar:{_desired:"acm",_distance:"10",_oneway:"true"}},{ar:{_desired:"acq",_distance:"10",_oneway:"true"}},{ar:{_desired:"acw",_distance:"10",_oneway:"true"}},{ar:{_desired:"acx",_distance:"10",_oneway:"true"}},{ar:{_desired:"acy",_distance:"10",_oneway:"true"}},{ar:{_desired:"adf",_distance:"10",_oneway:"true"}},{ar:{_desired:"aeb",_distance:"10",_oneway:"true"}},{ar:{_desired:"aec",_distance:"10",_oneway:"true"}},{ar:{_desired:"afb",_distance:"10",_oneway:"true"}},{ar:{_desired:"ajp",_distance:"10",_oneway:"true"}},{ar:{_desired:"apc",_distance:"10",_oneway:"true"}},{ar:{_desired:"apd",_distance:"10",_oneway:"true"}},{ar:{_desired:"arq",_distance:"10",_oneway:"true"}},{ar:{_desired:"ars",_distance:"10",_oneway:"true"}},{ar:{_desired:"ary",_distance:"10",_oneway:"true"}},{ar:{_desired:"arz",_distance:"10",_oneway:"true"}},{ar:{_desired:"auz",_distance:"10",_oneway:"true"}},{ar:{_desired:"avl",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayh",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayl",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayn",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayp",_distance:"10",_oneway:"true"}},{ar:{_desired:"bbz",_distance:"10",_oneway:"true"}},{ar:{_desired:"pga",_distance:"10",_oneway:"true"}},{ar:{_desired:"shu",_distance:"10",_oneway:"true"}},{ar:{_desired:"ssh",_distance:"10",_oneway:"true"}},{az:{_desired:"azb",_distance:"10",_oneway:"true"}},{et:{_desired:"vro",_distance:"10",_oneway:"true"}},{ff:{_desired:"ffm",_distance:"10",_oneway:"true"}},{ff:{_desired:"fub",_distance:"10",_oneway:"true"}},{ff:{_desired:"fue",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuf",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuh",_distance:"10",_oneway:"true"}},{ff:{_desired:"fui",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuq",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuv",_distance:"10",_oneway:"true"}},{gn:{_desired:"gnw",_distance:"10",_oneway:"true"}},{gn:{_desired:"gui",_distance:"10",_oneway:"true"}},{gn:{_desired:"gun",_distance:"10",_oneway:"true"}},{gn:{_desired:"nhd",_distance:"10",_oneway:"true"}},{iu:{_desired:"ikt",_distance:"10",_oneway:"true"}},{kln:{_desired:"enb",_distance:"10",_oneway:"true"}},{kln:{_desired:"eyo",_distance:"10",_oneway:"true"}},{kln:{_desired:"niq",_distance:"10",_oneway:"true"}},{kln:{_desired:"oki",_distance:"10",_oneway:"true"}},{kln:{_desired:"pko",_distance:"10",_oneway:"true"}},{kln:{_desired:"sgc",_distance:"10",_oneway:"true"}},{kln:{_desired:"tec",_distance:"10",_oneway:"true"}},{kln:{_desired:"tuy",_distance:"10",_oneway:"true"}},{kok:{_desired:"gom",_distance:"10",_oneway:"true"}},{kpe:{_desired:"gkp",_distance:"10",_oneway:"true"}},{luy:{_desired:"ida",_distance:"10",_oneway:"true"}},{luy:{_desired:"lkb",_distance:"10",_oneway:"true"}},{luy:{_desired:"lko",_distance:"10",_oneway:"true"}},{luy:{_desired:"lks",_distance:"10",_oneway:"true"}},{luy:{_desired:"lri",_distance:"10",_oneway:"true"}},{luy:{_desired:"lrm",_distance:"10",_oneway:"true"}},{luy:{_desired:"lsm",_distance:"10",_oneway:"true"}},{luy:{_desired:"lto",_distance:"10",_oneway:"true"}},{luy:{_desired:"lts",_distance:"10",_oneway:"true"}},{luy:{_desired:"lwg",_distance:"10",_oneway:"true"}},{luy:{_desired:"nle",_distance:"10",_oneway:"true"}},{luy:{_desired:"nyd",_distance:"10",_oneway:"true"}},{luy:{_desired:"rag",_distance:"10",_oneway:"true"}},{lv:{_desired:"ltg",_distance:"10",_oneway:"true"}},{mg:{_desired:"bhr",_distance:"10",_oneway:"true"}},{mg:{_desired:"bjq",_distance:"10",_oneway:"true"}},{mg:{_desired:"bmm",_distance:"10",_oneway:"true"}},{mg:{_desired:"bzc",_distance:"10",_oneway:"true"}},{mg:{_desired:"msh",_distance:"10",_oneway:"true"}},{mg:{_desired:"skg",_distance:"10",_oneway:"true"}},{mg:{_desired:"tdx",_distance:"10",_oneway:"true"}},{mg:{_desired:"tkg",_distance:"10",_oneway:"true"}},{mg:{_desired:"txy",_distance:"10",_oneway:"true"}},{mg:{_desired:"xmv",_distance:"10",_oneway:"true"}},{mg:{_desired:"xmw",_distance:"10",_oneway:"true"}},{mn:{_desired:"mvf",_distance:"10",_oneway:"true"}},{ms:{_desired:"bjn",_distance:"10",_oneway:"true"}},{ms:{_desired:"btj",_distance:"10",_oneway:"true"}},{ms:{_desired:"bve",_distance:"10",_oneway:"true"}},{ms:{_desired:"bvu",_distance:"10",_oneway:"true"}},{ms:{_desired:"coa",_distance:"10",_oneway:"true"}},{ms:{_desired:"dup",_distance:"10",_oneway:"true"}},{ms:{_desired:"hji",_distance:"10",_oneway:"true"}},{ms:{_desired:"id",_distance:"10",_oneway:"true"}},{ms:{_desired:"jak",_distance:"10",_oneway:"true"}},{ms:{_desired:"jax",_distance:"10",_oneway:"true"}},{ms:{_desired:"kvb",_distance:"10",_oneway:"true"}},{ms:{_desired:"kvr",_distance:"10",_oneway:"true"}},{ms:{_desired:"kxd",_distance:"10",_oneway:"true"}},{ms:{_desired:"lce",_distance:"10",_oneway:"true"}},{ms:{_desired:"lcf",_distance:"10",_oneway:"true"}},{ms:{_desired:"liw",_distance:"10",_oneway:"true"}},{ms:{_desired:"max",_distance:"10",_oneway:"true"}},{ms:{_desired:"meo",_distance:"10",_oneway:"true"}},{ms:{_desired:"mfa",_distance:"10",_oneway:"true"}},{ms:{_desired:"mfb",_distance:"10",_oneway:"true"}},{ms:{_desired:"min",_distance:"10",_oneway:"true"}},{ms:{_desired:"mqg",_distance:"10",_oneway:"true"}},{ms:{_desired:"msi",_distance:"10",_oneway:"true"}},{ms:{_desired:"mui",_distance:"10",_oneway:"true"}},{ms:{_desired:"orn",_distance:"10",_oneway:"true"}},{ms:{_desired:"ors",_distance:"10",_oneway:"true"}},{ms:{_desired:"pel",_distance:"10",_oneway:"true"}},{ms:{_desired:"pse",_distance:"10",_oneway:"true"}},{ms:{_desired:"tmw",_distance:"10",_oneway:"true"}},{ms:{_desired:"urk",_distance:"10",_oneway:"true"}},{ms:{_desired:"vkk",_distance:"10",_oneway:"true"}},{ms:{_desired:"vkt",_distance:"10",_oneway:"true"}},{ms:{_desired:"xmm",_distance:"10",_oneway:"true"}},{ms:{_desired:"zlm",_distance:"10",_oneway:"true"}},{ms:{_desired:"zmi",_distance:"10",_oneway:"true"}},{ne:{_desired:"dty",_distance:"10",_oneway:"true"}},{om:{_desired:"gax",_distance:"10",_oneway:"true"}},{om:{_desired:"hae",_distance:"10",_oneway:"true"}},{om:{_desired:"orc",_distance:"10",_oneway:"true"}},{or:{_desired:"spv",_distance:"10",_oneway:"true"}},{ps:{_desired:"pbt",_distance:"10",_oneway:"true"}},{ps:{_desired:"pst",_distance:"10",_oneway:"true"}},{qu:{_desired:"qub",_distance:"10",_oneway:"true"}},{qu:{_desired:"qud",_distance:"10",_oneway:"true"}},{qu:{_desired:"quf",_distance:"10",_oneway:"true"}},{qu:{_desired:"qug",_distance:"10",_oneway:"true"}},{qu:{_desired:"quh",_distance:"10",_oneway:"true"}},{qu:{_desired:"quk",_distance:"10",_oneway:"true"}},{qu:{_desired:"qul",_distance:"10",_oneway:"true"}},{qu:{_desired:"qup",_distance:"10",_oneway:"true"}},{qu:{_desired:"qur",_distance:"10",_oneway:"true"}},{qu:{_desired:"qus",_distance:"10",_oneway:"true"}},{qu:{_desired:"quw",_distance:"10",_oneway:"true"}},{qu:{_desired:"qux",_distance:"10",_oneway:"true"}},{qu:{_desired:"quy",_distance:"10",_oneway:"true"}},{qu:{_desired:"qva",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qve",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvi",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvj",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvl",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvm",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvn",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvo",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvp",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvs",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvw",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvz",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwa",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qws",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxa",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxl",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxn",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxo",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxp",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxr",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxt",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxu",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxw",_distance:"10",_oneway:"true"}},{sc:{_desired:"sdc",_distance:"10",_oneway:"true"}},{sc:{_desired:"sdn",_distance:"10",_oneway:"true"}},{sc:{_desired:"sro",_distance:"10",_oneway:"true"}},{sq:{_desired:"aae",_distance:"10",_oneway:"true"}},{sq:{_desired:"aat",_distance:"10",_oneway:"true"}},{sq:{_desired:"aln",_distance:"10",_oneway:"true"}},{syr:{_desired:"aii",_distance:"10",_oneway:"true"}},{uz:{_desired:"uzs",_distance:"10",_oneway:"true"}},{yi:{_desired:"yih",_distance:"10",_oneway:"true"}},{zh:{_desired:"cdo",_distance:"10",_oneway:"true"}},{zh:{_desired:"cjy",_distance:"10",_oneway:"true"}},{zh:{_desired:"cpx",_distance:"10",_oneway:"true"}},{zh:{_desired:"czh",_distance:"10",_oneway:"true"}},{zh:{_desired:"czo",_distance:"10",_oneway:"true"}},{zh:{_desired:"gan",_distance:"10",_oneway:"true"}},{zh:{_desired:"hak",_distance:"10",_oneway:"true"}},{zh:{_desired:"hsn",_distance:"10",_oneway:"true"}},{zh:{_desired:"lzh",_distance:"10",_oneway:"true"}},{zh:{_desired:"mnp",_distance:"10",_oneway:"true"}},{zh:{_desired:"nan",_distance:"10",_oneway:"true"}},{zh:{_desired:"wuu",_distance:"10",_oneway:"true"}},{zh:{_desired:"yue",_distance:"10",_oneway:"true"}},{"*":{_desired:"*",_distance:"80"}},{"en-Latn":{_desired:"am-Ethi",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"az-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"bn-Beng",_distance:"10",_oneway:"true"}},{"zh-Hans":{_desired:"bo-Tibt",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"hy-Armn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ka-Geor",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"km-Khmr",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"kn-Knda",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"lo-Laoo",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ml-Mlym",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"my-Mymr",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ne-Deva",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"or-Orya",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"pa-Guru",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ps-Arab",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"sd-Arab",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"si-Sinh",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ta-Taml",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"te-Telu",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ti-Ethi",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"tk-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ur-Arab",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"uz-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"yi-Hebr",_distance:"10",_oneway:"true"}},{"sr-Cyrl":{_desired:"sr-Latn",_distance:"5"}},{"zh-Hans":{_desired:"za-Latn",_distance:"10",_oneway:"true"}},{"zh-Hans":{_desired:"zh-Hani",_distance:"20",_oneway:"true"}},{"zh-Hant":{_desired:"zh-Hani",_distance:"20",_oneway:"true"}},{"ar-Arab":{_desired:"ar-Latn",_distance:"20",_oneway:"true"}},{"bn-Beng":{_desired:"bn-Latn",_distance:"20",_oneway:"true"}},{"gu-Gujr":{_desired:"gu-Latn",_distance:"20",_oneway:"true"}},{"hi-Deva":{_desired:"hi-Latn",_distance:"20",_oneway:"true"}},{"kn-Knda":{_desired:"kn-Latn",_distance:"20",_oneway:"true"}},{"ml-Mlym":{_desired:"ml-Latn",_distance:"20",_oneway:"true"}},{"mr-Deva":{_desired:"mr-Latn",_distance:"20",_oneway:"true"}},{"ta-Taml":{_desired:"ta-Latn",_distance:"20",_oneway:"true"}},{"te-Telu":{_desired:"te-Latn",_distance:"20",_oneway:"true"}},{"zh-Hans":{_desired:"zh-Latn",_distance:"20",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Latn",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hani",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hira",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Kana",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hrkt",_distance:"5",_oneway:"true"}},{"ja-Hrkt":{_desired:"ja-Hira",_distance:"5",_oneway:"true"}},{"ja-Hrkt":{_desired:"ja-Kana",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Hani",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Hang",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Jamo",_distance:"5",_oneway:"true"}},{"ko-Hang":{_desired:"ko-Jamo",_distance:"5",_oneway:"true"}},{"*-*":{_desired:"*-*",_distance:"50"}},{"ar-*-$maghreb":{_desired:"ar-*-$maghreb",_distance:"4"}},{"ar-*-$!maghreb":{_desired:"ar-*-$!maghreb",_distance:"4"}},{"ar-*-*":{_desired:"ar-*-*",_distance:"5"}},{"en-*-$enUS":{_desired:"en-*-$enUS",_distance:"4"}},{"en-*-GB":{_desired:"en-*-$!enUS",_distance:"3"}},{"en-*-$!enUS":{_desired:"en-*-$!enUS",_distance:"4"}},{"en-*-*":{_desired:"en-*-*",_distance:"5"}},{"es-*-$americas":{_desired:"es-*-$americas",_distance:"4"}},{"es-*-$!americas":{_desired:"es-*-$!americas",_distance:"4"}},{"es-*-*":{_desired:"es-*-*",_distance:"5"}},{"pt-*-$americas":{_desired:"pt-*-$americas",_distance:"4"}},{"pt-*-$!americas":{_desired:"pt-*-$!americas",_distance:"4"}},{"pt-*-*":{_desired:"pt-*-*",_distance:"5"}},{"zh-Hant-$cnsar":{_desired:"zh-Hant-$cnsar",_distance:"4"}},{"zh-Hant-$!cnsar":{_desired:"zh-Hant-$!cnsar",_distance:"4"}},{"zh-Hant-*":{_desired:"zh-Hant-*",_distance:"5"}},{"*-*-*":{_desired:"*-*-*",_distance:"4"}}]}}},s={"001":["001","001-status-grouping","002","005","009","011","013","014","015","017","018","019","021","029","030","034","035","039","053","054","057","061","142","143","145","150","151","154","155","AC","AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CP","CQ","CR","CU","CV","CW","CX","CY","CZ","DE","DG","DJ","DK","DM","DO","DZ","EA","EC","EE","EG","EH","ER","ES","ET","EU","EZ","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","IC","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","QO","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TA","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","UN","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"002":["002","002-status-grouping","011","014","015","017","018","202","AO","BF","BI","BJ","BW","CD","CF","CG","CI","CM","CV","DJ","DZ","EA","EG","EH","ER","ET","GA","GH","GM","GN","GQ","GW","IC","IO","KE","KM","LR","LS","LY","MA","MG","ML","MR","MU","MW","MZ","NA","NE","NG","RE","RW","SC","SD","SH","SL","SN","SO","SS","ST","SZ","TD","TF","TG","TN","TZ","UG","YT","ZA","ZM","ZW"],"003":["003","013","021","029","AG","AI","AW","BB","BL","BM","BQ","BS","BZ","CA","CR","CU","CW","DM","DO","GD","GL","GP","GT","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PM","PR","SV","SX","TC","TT","US","VC","VG","VI"],"005":["005","AR","BO","BR","BV","CL","CO","EC","FK","GF","GS","GY","PE","PY","SR","UY","VE"],"009":["009","053","054","057","061","AC","AQ","AS","AU","CC","CK","CP","CX","DG","FJ","FM","GU","HM","KI","MH","MP","NC","NF","NR","NU","NZ","PF","PG","PN","PW","QO","SB","TA","TK","TO","TV","UM","VU","WF","WS"],"011":["011","BF","BJ","CI","CV","GH","GM","GN","GW","LR","ML","MR","NE","NG","SH","SL","SN","TG"],"013":["013","BZ","CR","GT","HN","MX","NI","PA","SV"],"014":["014","BI","DJ","ER","ET","IO","KE","KM","MG","MU","MW","MZ","RE","RW","SC","SO","SS","TF","TZ","UG","YT","ZM","ZW"],"015":["015","DZ","EA","EG","EH","IC","LY","MA","SD","TN"],"017":["017","AO","CD","CF","CG","CM","GA","GQ","ST","TD"],"018":["018","BW","LS","NA","SZ","ZA"],"019":["003","005","013","019","019-status-grouping","021","029","419","AG","AI","AR","AW","BB","BL","BM","BO","BQ","BR","BS","BV","BZ","CA","CL","CO","CR","CU","CW","DM","DO","EC","FK","GD","GF","GL","GP","GS","GT","GY","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PE","PM","PR","PY","SR","SV","SX","TC","TT","US","UY","VC","VE","VG","VI"],"021":["021","BM","CA","GL","PM","US"],"029":["029","AG","AI","AW","BB","BL","BQ","BS","CU","CW","DM","DO","GD","GP","HT","JM","KN","KY","LC","MF","MQ","MS","PR","SX","TC","TT","VC","VG","VI"],"030":["030","CN","HK","JP","KP","KR","MN","MO","TW"],"034":["034","AF","BD","BT","IN","IR","LK","MV","NP","PK"],"035":["035","BN","ID","KH","LA","MM","MY","PH","SG","TH","TL","VN"],"039":["039","AD","AL","BA","ES","GI","GR","HR","IT","ME","MK","MT","PT","RS","SI","SM","VA","XK"],"053":["053","AU","CC","CX","HM","NF","NZ"],"054":["054","FJ","NC","PG","SB","VU"],"057":["057","FM","GU","KI","MH","MP","NR","PW","UM"],"061":["061","AS","CK","NU","PF","PN","TK","TO","TV","WF","WS"],142:["030","034","035","142","143","145","AE","AF","AM","AZ","BD","BH","BN","BT","CN","CY","GE","HK","ID","IL","IN","IQ","IR","JO","JP","KG","KH","KP","KR","KW","KZ","LA","LB","LK","MM","MN","MO","MV","MY","NP","OM","PH","PK","PS","QA","SA","SG","SY","TH","TJ","TL","TM","TR","TW","UZ","VN","YE"],143:["143","KG","KZ","TJ","TM","UZ"],145:["145","AE","AM","AZ","BH","CY","GE","IL","IQ","JO","KW","LB","OM","PS","QA","SA","SY","TR","YE"],150:["039","150","151","154","155","AD","AL","AT","AX","BA","BE","BG","BY","CH","CQ","CZ","DE","DK","EE","ES","FI","FO","FR","GB","GG","GI","GR","HR","HU","IE","IM","IS","IT","JE","LI","LT","LU","LV","MC","MD","ME","MK","MT","NL","NO","PL","PT","RO","RS","RU","SE","SI","SJ","SK","SM","UA","VA","XK"],151:["151","BG","BY","CZ","HU","MD","PL","RO","RU","SK","UA"],154:["154","AX","CQ","DK","EE","FI","FO","GB","GG","IE","IM","IS","JE","LT","LV","NO","SE","SJ"],155:["155","AT","BE","CH","DE","FR","LI","LU","MC","NL"],202:["011","014","017","018","202","AO","BF","BI","BJ","BW","CD","CF","CG","CI","CM","CV","DJ","ER","ET","GA","GH","GM","GN","GQ","GW","IO","KE","KM","LR","LS","MG","ML","MR","MU","MW","MZ","NA","NE","NG","RE","RW","SC","SH","SL","SN","SO","SS","ST","SZ","TD","TF","TG","TZ","UG","YT","ZA","ZM","ZW"],419:["005","013","029","419","AG","AI","AR","AW","BB","BL","BO","BQ","BR","BS","BV","BZ","CL","CO","CR","CU","CW","DM","DO","EC","FK","GD","GF","GP","GS","GT","GY","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PE","PR","PY","SR","SV","SX","TC","TT","UY","VC","VE","VG","VI"],EU:["AT","BE","BG","CY","CZ","DE","DK","EE","ES","EU","FI","FR","GR","HR","HU","IE","IT","LT","LU","LV","MT","NL","PL","PT","RO","SE","SI","SK"],EZ:["AT","BE","CY","DE","EE","ES","EZ","FI","FR","GR","IE","IT","LT","LU","LV","MT","NL","PT","SI","SK"],QO:["AC","AQ","CP","DG","QO","TA"],UN:["AD","AE","AF","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CF","CG","CH","CI","CL","CM","CN","CO","CR","CU","CV","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ER","ES","ET","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IR","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MM","MN","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SI","SK","SL","SM","SN","SO","SR","SS","ST","SV","SY","SZ","TD","TG","TH","TJ","TL","TM","TN","TO","TR","TT","TV","TZ","UA","UG","UN","US","UY","UZ","VC","VE","VN","VU","WS","YE","ZA","ZM","ZW"]},o=/-u(?:-[0-9a-z]{2,8})+/gi;function l(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function u(e,t,r){var n=t.split("-"),a=n[0],o=n[1],l=n[2],u=!0;if(l&&"$"===l[0]){var c="!"!==l[1],d=(c?r[l.slice(1)]:r[l.slice(2)]).map(function(e){return s[e]||[e]}).reduce(function(e,t){return(0,i.__spreadArray)((0,i.__spreadArray)([],e,!0),t,!0)},[]);u&&(u=d.indexOf(e.region||"")>-1==c)}else u&&(u=!e.region||"*"===l||l===e.region);return u&&(u=!e.script||"*"===o||o===e.script),u&&(u=!e.language||"*"===a||a===e.language),u}function c(e){return[e.language,e.script,e.region].filter(Boolean).join("-")}function d(e,t,r){for(var n=0,i=r.matches;n<i.length;n++){var a=i[n],s=u(e,a.desired,r.matchVariables)&&u(t,a.supported,r.matchVariables);if(a.oneway||s||(s=u(e,a.supported,r.matchVariables)&&u(t,a.desired,r.matchVariables)),s){var o=10*a.distance;if(r.paradigmLocales.indexOf(c(e))>-1!=r.paradigmLocales.indexOf(c(t))>-1)return o-1;return o}}throw Error("No matching distance found")}function h(e){return Intl.getCanonicalLocales(e)[0]}function f(e,t){for(var r=t;;){if(e.indexOf(r)>-1)return r;var n=r.lastIndexOf("-");if(!~n)return;n>=2&&"-"===r[n-2]&&(n-=2),r=r.slice(0,n)}}function p(e,t,r,s,u,c){"lookup"===r.localeMatcher?m=function(e,t,r){for(var n={locale:""},i=0;i<t.length;i++){var a=t[i],s=a.replace(o,""),l=f(e,s);if(l)return n.locale=l,a!==s&&(n.extension=a.slice(s.length,a.length)),n}return n.locale=r(),n}(Array.from(e),t,c):(_=Array.from(e),b=[],w=t.reduce(function(e,t){var r=t.replace(o,"");return b.push(r),e[r]=t,e},{}),(void 0===k&&(k=838),E=1/0,x={matchedDesiredLocale:"",distances:{}},b.forEach(function(e,t){x.distances[e]||(x.distances[e]={}),_.forEach(function(r){var s,o,l,u,c,h,f=(s=new Intl.Locale(e).maximize(),o=new Intl.Locale(r).maximize(),l={language:s.language,script:s.script||"",region:s.region||""},u={language:o.language,script:o.script||"",region:o.region||""},c=0,h=function(){var e,t;if(!n){var r=null==(t=null==(e=a.supplemental.languageMatching["written-new"][0])?void 0:e.paradigmLocales)?void 0:t._locales.split(" "),s=a.supplemental.languageMatching["written-new"].slice(1,5);n={matches:a.supplemental.languageMatching["written-new"].slice(5).map(function(e){var t=Object.keys(e)[0],r=e[t];return{supported:t,desired:r._desired,distance:+r._distance,oneway:"true"===r.oneway}},{}),matchVariables:s.reduce(function(e,t){var r=Object.keys(t)[0],n=t[r];return e[r.slice(1)]=n._value.split("+"),e},{}),paradigmLocales:(0,i.__spreadArray)((0,i.__spreadArray)([],r,!0),r.map(function(e){return new Intl.Locale(e.replace(/_/g,"-")).maximize().toString()}),!0)}}return n}(),l.language!==u.language&&(c+=d({language:s.language,script:"",region:""},{language:o.language,script:"",region:""},h)),l.script!==u.script&&(c+=d({language:s.language,script:l.script,region:""},{language:o.language,script:u.script,region:""},h)),l.region!==u.region&&(c+=d(l,u,h)),c+0+40*t);x.distances[e][r]=f,f<E&&(E=f,x.matchedDesiredLocale=e,x.matchedSupportedLocale=r)})}),E>=k&&(x.matchedDesiredLocale=void 0,x.matchedSupportedLocale=void 0),S=x).matchedSupportedLocale&&S.matchedDesiredLocale&&(y=S.matchedSupportedLocale,v=w[S.matchedDesiredLocale].slice(S.matchedDesiredLocale.length)||void 0),m=y?{locale:y,extension:v}:{locale:c()}),null==m&&(m={locale:c(),extension:""});var p,m,g,_,y,v,b,w,k,E,x,S,T=m.locale,A=u[T],I={locale:"en",dataLocale:T};g=m.extension?function(e){l(e===e.toLowerCase(),"Expected extension to be lowercase"),l("-u-"===e.slice(0,3),"Expected extension to be a Unicode locale extension");for(var t,r=[],n=[],i=e.length,a=3;a<i;){var s=e.indexOf("-",a),o=void 0;o=-1===s?i-a:s-a;var u=e.slice(a,a+o);l(o>=2,"Expected a subtag to have at least 2 characters"),void 0===t&&2!=o?-1===r.indexOf(u)&&r.push(u):2===o?(t={key:u,value:""},void 0===n.find(function(e){return e.key===(null==t?void 0:t.key)})&&n.push(t)):(null==t?void 0:t.value)===""?t.value=u:(l(void 0!==t,"Expected keyword to be defined"),t.value+="-"+u),a+=o+1}return{attributes:r,keywords:n}}(m.extension).keywords:[];for(var N=[],C=function(e){var t,n,i=null!=(p=null==A?void 0:A[e])?p:[];l(Array.isArray(i),"keyLocaleData for ".concat(e," must be an array"));var a=i[0];l(void 0===a||"string"==typeof a,"value must be a string or undefined");var s=void 0,o=g.find(function(t){return t.key===e});if(o){var u=o.value;""!==u?i.indexOf(u)>-1&&(s={key:e,value:a=u}):i.indexOf("true")>-1&&(s={key:e,value:a="true"})}var c=r[e];l(null==c||"string"==typeof c,"optionsValue must be a string or undefined"),"string"==typeof c&&(t=e.toLowerCase(),n=c.toLowerCase(),l(void 0!==t,"ukey must be defined"),""===(c=n)&&(c="true")),c!==a&&i.indexOf(c)>-1&&(a=c,s=void 0),s&&N.push(s),I[e]=a},O=0;O<s.length;O++)C(s[O]);return N.length>0&&(T=function(e,t,r){l(-1===e.indexOf("-u-"),"Expected locale to not have a Unicode locale extension");for(var n,i="-u",a=0;a<t.length;a++){var s=t[a];i+="-".concat(s)}for(var o=0;o<r.length;o++){var u=r[o],c=u.key,d=u.value;i+="-".concat(c),""!==d&&(i+="-".concat(d))}if("-u"===i)return h(e);var f=e.indexOf("-x-");return h(-1===f?e+i:e.slice(0,f)+i+e.slice(f))}(T,[],N)),I.locale=T,I}function m(e,t){for(var r=[],n=0;n<t.length;n++){var i=f(e,t[n].replace(o,""));i&&r.push(i)}return r}function g(e,t,r,n){return p(t,Intl.getCanonicalLocales(e),{localeMatcher:(null==n?void 0:n.algorithm)||"best fit"},[],{},function(){return r}).locale}},83933:(e,t,r)=>{"use strict";r.d(t,{F3:()=>f,GT:()=>h,J9:()=>l,JF:()=>u,MT:()=>c,V1:()=>o});var n=r(4902),i=r(98149),a=r(53279),s=r(56186);function o(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function l(e,t,r){return void 0===r&&(r={}),t.reduce(function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t},{})}var u={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function c(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function d(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function h(e){void 0===e&&(e=c());var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,s=Intl.DisplayNames,o=(0,i.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,n.__spreadArray)([void 0],t,!1)))},{cache:d(e.dateTime),strategy:i.W.variadic}),l=(0,i.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,(0,n.__spreadArray)([void 0],t,!1)))},{cache:d(e.number),strategy:i.W.variadic}),u=(0,i.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,(0,n.__spreadArray)([void 0],t,!1)))},{cache:d(e.pluralRules),strategy:i.W.variadic});return{getDateTimeFormat:o,getNumberFormat:l,getMessageFormat:(0,i.B)(function(e,t,r,i){return new a.S(e,t,r,(0,n.__assign)({formatters:{getNumberFormat:l,getDateTimeFormat:o,getPluralRules:u}},i||{}))},{cache:d(e.message),strategy:i.W.variadic}),getRelativeTimeFormat:(0,i.B)(function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,(0,n.__spreadArray)([void 0],e,!1)))},{cache:d(e.relativeTime),strategy:i.W.variadic}),getPluralRules:u,getListFormat:(0,i.B)(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,(0,n.__spreadArray)([void 0],e,!1)))},{cache:d(e.list),strategy:i.W.variadic}),getDisplayNames:(0,i.B)(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(s.bind.apply(s,(0,n.__spreadArray)([void 0],e,!1)))},{cache:d(e.displayNames),strategy:i.W.variadic})}}function f(e,t,r,n){var i,a=e&&e[t];if(a&&(i=a[r]),i)return i;n(new s.OC("No ".concat(t," format named: ").concat(r)))}},84057:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(14232);function i(e,t){return(0,n.useMemo)(()=>{var r;if(e.type)return e.type;let n=null!=(r=e.as)?r:"button";if("string"==typeof n&&"button"===n.toLowerCase()||(null==t?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}},84190:(e,t,r)=>{"use strict";r.d(t,{A:()=>d,s:()=>c});var n=r(37876),i=r(14232),a=r(77742),s=r(44963),o=r(72836),l=r(13279);let u=(0,i.createContext)(void 0),c=e=>{let{children:t,onlyFull:r=!1}=e,{languages:c}=(0,s.A)(),{shopInfo:d,loading:h}=(0,l.A)(),{countries:f}=(0,o.A)(),{locale:p}=(0,a.A)(),[m,g]=(0,i.useState)(p);(0,i.useEffect)(()=>{if(!h){var e,t,r;g("".concat(null==d||null==(e=d.language)?void 0:e.isoCode,"-").concat(null==d||null==(r=d.country)||null==(t=r.isoCode)?void 0:t.toUpperCase()))}},[d,h,p]);let _=((e,t)=>{let r=[];return e.forEach(e=>{let{_id:n,isoCode:i}=e;r.push({_id:n,isoCode:i}),t.forEach(e=>{let{isoCode:t,_id:a}=e,s="".concat(i,"-").concat(t.toUpperCase());r.push({_id:"".concat(a,"-").concat(n),isoCode:s})})}),r})(c,f).filter(e=>!r||e.isoCode.includes("-")),y=!!(null==d?void 0:d.language)&&!!(null==d?void 0:d.country);return(0,n.jsx)(u.Provider,{value:{selectedLocale:m,setSelectedLocale:g,languageDialectList:_,isSystemReady:y},children:t})},d=u},84918:(e,t,r)=>{"use strict";r.d(t,{r:()=>n});let n="4.0.4"},86158:(e,t,r)=>{"use strict";var n;r.d(t,{Ll:()=>l,aD:()=>s,aZ:()=>i,cE:()=>n,ou:()=>a});class i{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class a{constructor(e,t,r,n,i,a){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let s={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o=new Set(Object.keys(s));function l(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&o.has(t)}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(n||(n={}))},86962:(e,t,r)=>{"use strict";r.d(t,{bq:()=>i,wt:()=>a,sD:()=>n}),r(82505);function n(e,t){return!!t&&!!e&&e.contains(t)}let i=(e=document)=>e.activeElement;function a(e){return e.target}},87016:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,D:()=>s});var n=r(37876),i=r(14232),a=r(63963);let s=(0,i.createContext)(void 0),o=e=>{let{children:t}=e,[r,o]=(0,a.A)("theme","light");(0,i.useEffect)(()=>{"dark"!==localStorage.theme&&("theme"in localStorage||!window.matchMedia("(prefers-color-scheme: dark)").matches)?document.getElementsByTagName("html")[0].classList.remove("dark"):document.getElementsByTagName("html")[0].classList.add("dark")},[]),(0,i.useEffect)(()=>{"dark"===r?(document.getElementsByTagName("html")[0].classList.add("dark"),localStorage.theme="dark"):(document.getElementsByTagName("html")[0].classList.remove("dark"),localStorage.theme="light")},[r]);let l=(0,i.useMemo)(()=>[r,o],[r]);return(0,n.jsx)(s.Provider,{value:l,children:t})}},87560:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PartitionRelativeTimePattern=function(e,t,r,s){var o=s.getInternalSlots;if((0,n.invariant)("Number"===(0,n.Type)(t),"value must be number, instead got ".concat(typeof t),TypeError),(0,n.invariant)("String"===(0,n.Type)(r),"unit must be number, instead got ".concat(typeof t),TypeError),isNaN(t)||!isFinite(t))throw RangeError("Invalid value ".concat(t));var l=(0,i.SingularRelativeTimeUnit)(r),u=o(e),c=u.fields,d=u.style,h=u.numeric,f=u.pluralRules,p=u.numberFormat,m=l;"short"===d?m="".concat(l,"-short"):"narrow"===d&&(m="".concat(l,"-narrow")),m in c||(m=l);var g=c[m];if("auto"===h&&(0,n.ToString)(t)in g)return[{type:"literal",value:g[(0,n.ToString)(t)]}];var _="future";((0,n.SameValue)(t,-0)||t<0)&&(_="past");var y=g[_],v="function"==typeof p.formatToParts?p.formatToParts(Math.abs(t)):[{type:"literal",value:p.format(Math.abs(t)),unit:r}],b=y[f.select(t)];return(0,a.MakePartsList)(b,l,v)};var n=r(77262),i=r(22249),a=r(8665)},89099:(e,t,r)=>{e.exports=r(6763)},89356:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetOperands=function(e){(0,n.invariant)("string"==typeof e,"GetOperands should have been called with a string");var t,r,i,a,s,o=(0,n.ToNumber)(e);(0,n.invariant)(o.isFinite(),"n should be finite");var l=e.indexOf("."),u="";-1===l?(t=o,r=n.ZERO,i=0):(t=e.slice(0,l),u=e.slice(l,e.length),r=(0,n.ToNumber)(u),i=u.length);var c=(0,n.ToNumber)(t).abs();if(r.isZero())a=0,s=n.ZERO;else{var d=u.replace(/0+$/,"");a=d.length,s=(0,n.ToNumber)(d)}return{Number:o,IntegerDigits:c.toNumber(),NumberOfFractionDigits:i,NumberOfFractionDigitsWithoutTrailing:a,FractionDigits:r.toNumber(),FractionDigitsWithoutTrailing:s.toNumber()}};var n=r(77262)},89848:(e,t,r)=>{"use strict";r.d(t,{N9:()=>P,oR:()=>x});var n=r(14232),i=r(69241);!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
41
|
-
`);var a=e=>"number"==typeof e&&!isNaN(e),s=e=>"string"==typeof e||"function"==typeof e?e:null,o=e=>(0,n.isValidElement)(e)||"string"==typeof e||"function"==typeof e||a(e);function l({enter:e,exit:t,appendPosition:r=!1,collapse:i=!0,collapseDuration:a=300}){return function({children:s,position:o,preventExitTransition:l,done:u,nodeRef:c,isIn:d,playToast:h}){let f=r?`${e}--${o}`:e,p=r?`${t}--${o}`:t,m=(0,n.useRef)(0);return(0,n.useLayoutEffect)(()=>{let e=c.current,t=f.split(" "),r=n=>{n.target===c.current&&(h(),e.removeEventListener("animationend",r),e.removeEventListener("animationcancel",r),0===m.current&&"animationcancel"!==n.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",r),e.addEventListener("animationcancel",r)},[]),(0,n.useEffect)(()=>{let e=c.current,t=()=>{e.removeEventListener("animationend",t),i?function(e,t,r=300){let{scrollHeight:n,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=n+"px",i.transition=`all ${r}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,r)})})}(e,u,a):u()};d||(l?t():(m.current=1,e.className+=` ${p}`,e.addEventListener("animationend",t)))},[d]),n.createElement(n.Fragment,null,s)}}function u(e,t){return{content:c(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function c(e,t,r=!1){return(0,n.isValidElement)(e)&&"string"!=typeof e.type?(0,n.cloneElement)(e,{closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:r}):"function"==typeof e?e({closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:r}):e}function d({delay:e,isRunning:t,closeToast:r,type:a="default",hide:s,className:o,controlledProgress:l,progress:u,rtl:c,isIn:d,theme:h}){let f=s||l&&0===u,p={animationDuration:`${e}ms`,animationPlayState:t?"running":"paused"};l&&(p.transform=`scaleX(${u})`);let m=(0,i.A)("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${h}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":c}),g="function"==typeof o?o({rtl:c,type:a,defaultClassName:m}):(0,i.A)(m,o);return n.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":f},n.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${h} Toastify__progress-bar--${a}`}),n.createElement("div",{role:"progressbar","aria-hidden":f?"true":"false","aria-label":"notification timer",className:g,style:p,...{[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{d&&r()}}}))}var h=1,f=()=>`${h++}`,p=new Map,m=[],g=new Set,_=e=>g.forEach(t=>t(e));function y(e,t){var r;if(t)return!!(null!=(r=p.get(t))&&r.isToastActive(e));let n=!1;return p.forEach(t=>{t.isToastActive(e)&&(n=!0)}),n}function v(e,t){o(e)&&(p.size>0||m.push({content:e,options:t}),p.forEach(r=>{r.buildToast(e,t)}))}function b(e,t){p.forEach(r=>{null!=t&&null!=t&&t.containerId&&(null==t?void 0:t.containerId)!==r.id||r.toggle(e,null==t?void 0:t.id)})}function w(e,t){return v(e,t),t.toastId}function k(e,t){var r;return{...t,type:t&&t.type||e,toastId:(r=t)&&("string"==typeof r.toastId||a(r.toastId))?r.toastId:f()}}function E(e){return(t,r)=>w(t,k(e,r))}function x(e,t){return w(e,k("default",t))}x.loading=(e,t)=>w(e,k("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),x.promise=function(e,{pending:t,error:r,success:n},i){let a;t&&(a="string"==typeof t?x.loading(t,i):x.loading(t.render,{...i,...t}));let s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},o=(e,t,r)=>{if(null==t)return void x.dismiss(a);let n={type:e,...s,...i,data:r},o="string"==typeof t?{render:t}:t;return a?x.update(a,{...n,...o}):x(o.render,{...n,...o}),r},l="function"==typeof e?e():e;return l.then(e=>o("success",n,e)).catch(e=>o("error",r,e)),l},x.success=E("success"),x.info=E("info"),x.error=E("error"),x.warning=E("warning"),x.warn=x.warning,x.dark=(e,t)=>w(e,k("default",{theme:"dark",...t})),x.dismiss=function(e){!function(e){let t;if(!(p.size>0)){m=m.filter(t=>null!=e&&t.options.toastId!==e);return}if(null==e||"string"==typeof(t=e)||a(t))p.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=p.get(e.containerId);t?t.removeToast(e.id):p.forEach(t=>{t.removeToast(e.id)})}}(e)},x.clearWaitingQueue=(e={})=>{p.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})},x.isActive=y,x.update=(e,t={})=>{let r=((e,{containerId:t})=>{var r;return null==(r=p.get(t||1))?void 0:r.toasts.get(e)})(e,t);if(r){let{props:n,content:i}=r,a={delay:100,...n,...t,toastId:t.toastId||e,updateId:f()};a.toastId!==e&&(a.staleId=e);let s=a.render||i;delete a.render,w(s,a)}},x.done=e=>{x.update(e,{progress:1})},x.onChange=function(e){return g.add(e),()=>{g.delete(e)}},x.play=e=>b(!0,e),x.pause=e=>b(!1,e);var S="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,T=({theme:e,type:t,isLoading:r,...i})=>n.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===e?"currentColor":`var(--toastify-icon-color-${t})`,...i}),A={info:function(e){return n.createElement(T,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return n.createElement(T,{...e},n.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return n.createElement(T,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return n.createElement(T,{...e},n.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return n.createElement("div",{className:"Toastify__spinner"})}},I=e=>{let{isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:s,playToast:o}=function(e){var t,r;let[i,a]=(0,n.useState)(!1),[s,o]=(0,n.useState)(!1),l=(0,n.useRef)(null),u=(0,n.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:d,closeToast:h,onClick:f,closeOnClick:m}=e;function g(){a(!0)}function _(){a(!1)}function y(t){let r=l.current;if(u.canDrag&&r){u.didMove=!0,i&&_(),"x"===e.draggableDirection?u.delta=t.clientX-u.start:u.delta=t.clientY-u.start,u.start!==t.clientX&&(u.canCloseOnClick=!1);let n="x"===e.draggableDirection?`${u.delta}px, var(--y)`:`0, calc(${u.delta}px + var(--y))`;r.style.transform=`translate3d(${n},0)`,r.style.opacity=`${1-Math.abs(u.delta/u.removalDistance)}`}}function v(){document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",v);let t=l.current;if(u.canDrag&&u.didMove&&t){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance){o(!0),e.closeToast(!0),e.collapseAll();return}t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}t={id:e.toastId,containerId:e.containerId,fn:a},null==(r=p.get(t.containerId||1))||r.setToggle(t.id,t.fn),(0,n.useEffect)(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||_(),window.addEventListener("focus",g),window.addEventListener("blur",_),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",_)}},[e.pauseOnFocusLoss]);let b={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){u.didMove=!1,document.addEventListener("pointermove",y),document.addEventListener("pointerup",v);let r=l.current;u.canCloseOnClick=!0,u.canDrag=!0,r.style.transition="none","x"===e.draggableDirection?(u.start=t.clientX,u.removalDistance=r.offsetWidth*(e.draggablePercent/100)):(u.start=t.clientY,u.removalDistance=r.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){let{top:r,bottom:n,left:i,right:a}=l.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=i&&t.clientX<=a&&t.clientY>=r&&t.clientY<=n?_():g()}};return c&&d&&(b.onMouseEnter=_,e.stacked||(b.onMouseLeave=g)),m&&(b.onClick=e=>{f&&f(e),u.canCloseOnClick&&h(!0)}),{playToast:g,pauseToast:_,isRunning:i,preventExitTransition:s,toastRef:l,eventHandlers:b}}(e),{closeButton:l,children:u,autoClose:h,onClick:f,type:m,hideProgressBar:g,closeToast:_,transition:y,position:v,className:b,style:w,progressClassName:k,updateId:E,role:x,progress:S,rtl:T,toastId:I,deleteToast:N,isIn:C,isLoading:O,closeOnClick:P,theme:D,ariaLabel:M}=e,L=(0,i.A)("Toastify__toast",`Toastify__toast-theme--${D}`,`Toastify__toast--${m}`,{"Toastify__toast--rtl":T},{"Toastify__toast--close-on-click":P}),R="function"==typeof b?b({rtl:T,position:v,type:m,defaultClassName:L}):(0,i.A)(L,b),F=function({theme:e,type:t,isLoading:r,icon:i}){let a=null,s={theme:e,type:t};return!1===i||("function"==typeof i?a=i({...s,isLoading:r}):(0,n.isValidElement)(i)?a=(0,n.cloneElement)(i,s):r?a=A.spinner():t in A&&(a=A[t](s))),a}(e),j=!!S||!h,z={closeToast:_,type:m,theme:D},B=null;return!1===l||(B="function"==typeof l?l(z):(0,n.isValidElement)(l)?(0,n.cloneElement)(l,z):function({closeToast:e,theme:t,ariaLabel:r="close"}){return n.createElement("button",{className:`Toastify__close-button Toastify__close-button--${t}`,type:"button",onClick:t=>{t.stopPropagation(),e(!0)},"aria-label":r},n.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},n.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(z)),n.createElement(y,{isIn:C,done:N,position:v,preventExitTransition:r,nodeRef:a,playToast:o},n.createElement("div",{id:I,tabIndex:0,onClick:f,"data-in":C,className:R,...s,style:w,ref:a,...C&&{role:x,"aria-label":M}},null!=F&&n.createElement("div",{className:(0,i.A)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!O})},F),c(u,e,!t),B,!e.customProgressBar&&n.createElement(d,{...E&&!j?{key:`p-${E}`}:{},rtl:T,theme:D,delay:h,isRunning:t,isIn:C,closeToast:_,hide:g,type:m,className:k,controlledProgress:j,progress:S||0})))},N=(e,t=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}),C=l(N("bounce",!0));l(N("slide",!0)),l(N("zoom")),l(N("flip"));var O={position:"top-right",transition:C,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&"KeyT"===e.code};function P(e){let t={...O,...e},r=e.stacked,[l,c]=(0,n.useState)(!0),d=(0,n.useRef)(null),{getToastToRender:h,isToastActive:f,count:g}=function(e){var t;let r,{subscribe:i,getSnapshot:l,setProps:c}=(0,n.useRef)((r=e.containerId||1,{subscribe(t){let n,i,l,c,d,h,f,g,y,b,w,k=(n=1,i=0,l=[],c=[],d=e,h=new Map,f=new Set,g=()=>{c=Array.from(h.values()),f.forEach(e=>e())},y=e=>{var t,r;null==(r=null==(t=e.props)?void 0:t.onClose)||r.call(t,e.removalReason),e.isActive=!1},b=e=>{if(null==e)h.forEach(y);else{let t=h.get(e);t&&y(t)}g()},w=e=>{var t,r;let{toastId:n,updateId:i}=e.props,a=null==i;e.staleId&&h.delete(e.staleId),e.isActive=!0,h.set(n,e),g(),_(u(e,a?"added":"updated")),a&&(null==(r=(t=e.props).onOpen)||r.call(t))},{id:r,props:d,observe:e=>(f.add(e),()=>f.delete(e)),toggle:(e,t)=>{h.forEach(r=>{var n;(null==t||t===r.props.toastId)&&(null==(n=r.toggle)||n.call(r,e))})},removeToast:b,toasts:h,clearQueue:()=>{i-=l.length,l=[]},buildToast:(e,t)=>{let c,f;if((({containerId:e,toastId:t,updateId:n})=>{let i=h.has(t)&&null==n;return(e?e!==r:1!==r)||i})(t))return;let{toastId:p,updateId:m,data:y,staleId:v,delay:k}=t,E=null==m;E&&i++;let x={...d,style:d.toastStyle,key:n++,...Object.fromEntries(Object.entries(t).filter(([e,t])=>null!=t)),toastId:p,updateId:m,data:y,isIn:!1,className:s(t.className||d.toastClassName),progressClassName:s(t.progressClassName||d.progressClassName),autoClose:!t.isLoading&&(c=t.autoClose,f=d.autoClose,!1===c||a(c)&&c>0?c:f),closeToast(e){h.get(p).removalReason=e,b(p)},deleteToast(){let e=h.get(p);if(null!=e){if(_(u(e,"removed")),h.delete(p),--i<0&&(i=0),l.length>0)return void w(l.shift());g()}}};x.closeButton=d.closeButton,!1===t.closeButton||o(t.closeButton)?x.closeButton=t.closeButton:!0===t.closeButton&&(x.closeButton=!o(d.closeButton)||d.closeButton);let S={content:e,props:x,staleId:v};d.limit&&d.limit>0&&i>d.limit&&E?l.push(S):a(k)?setTimeout(()=>{w(S)},k):w(S)},setProps(e){d=e},setToggle:(e,t)=>{let r=h.get(e);r&&(r.toggle=t)},isToastActive:e=>{var t;return null==(t=h.get(e))?void 0:t.isActive},getSnapshot:()=>c});p.set(r,k);let E=k.observe(t);return m.forEach(e=>v(e.content,e.options)),m=[],()=>{E(),p.delete(r)}},setProps(e){var t;null==(t=p.get(r))||t.setProps(e)},getSnapshot(){var e;return null==(e=p.get(r))?void 0:e.getSnapshot()}})).current;c(e);let d=null==(t=(0,n.useSyncExternalStore)(i,l,l))?void 0:t.slice();return{getToastToRender:function(t){if(!d)return[];let r=new Map;return e.newestOnTop&&d.reverse(),d.forEach(e=>{let{position:t}=e.props;r.has(t)||r.set(t,[]),r.get(t).push(e)}),Array.from(r,e=>t(e[0],e[1]))},isToastActive:y,count:null==d?void 0:d.length}}(t),{className:b,style:w,rtl:k,containerId:E,hotKeys:T}=t;function A(){r&&(c(!0),x.play())}return S(()=>{var e;if(r){let r=d.current.querySelectorAll('[data-in="true"]'),n=null==(e=t.position)?void 0:e.includes("top"),i=0,a=0;Array.from(r).reverse().forEach((e,t)=>{e.classList.add("Toastify__toast--stacked"),t>0&&(e.dataset.collapsed=`${l}`),e.dataset.pos||(e.dataset.pos=n?"top":"bot");let r=i*(l?.2:1)+(l?0:12*t);e.style.setProperty("--y",`${n?r:-1*r}px`),e.style.setProperty("--g","12"),e.style.setProperty("--s",`${1-(l?a:0)}`),i+=e.offsetHeight,a+=.025})}},[l,g,r]),(0,n.useEffect)(()=>{function e(e){var t;let r=d.current;T(e)&&(null==(t=r.querySelector('[tabIndex="0"]'))||t.focus(),c(!1),x.pause()),"Escape"===e.key&&(document.activeElement===r||null!=r&&r.contains(document.activeElement))&&(c(!0),x.play())}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[T]),n.createElement("section",{ref:d,className:"Toastify",id:E,onMouseEnter:()=>{r&&(c(!1),x.pause())},onMouseLeave:A,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":t["aria-label"]},h((e,t)=>{var a;let o,l=t.length?{...w}:{...w,pointerEvents:"none"};return n.createElement("div",{tabIndex:-1,className:(a=e,o=(0,i.A)("Toastify__toast-container",`Toastify__toast-container--${a}`,{"Toastify__toast-container--rtl":k}),"function"==typeof b?b({position:a,rtl:k,defaultClassName:o}):(0,i.A)(o,s(b))),"data-stacked":r,style:l,key:`c-${e}`},t.map(({content:e,props:t})=>n.createElement(I,{...t,stacked:r,collapseAll:A,isIn:f(t.toastId,t.containerId),key:`t-${t.key}`},e)))}))}},90151:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>tD});var n,i=r(37876),a=r(14232),s=r(19650),o=r(94852);let l=({client:e,children:t})=>{let r=(0,o.l)(),n=a.useContext(r),i=a.useMemo(()=>({...n,client:e||n.client}),[n,e]);return(0,s.V1)(i.client,38),a.createElement(r.Provider,{value:i},t)};var u=r(4361),c=r.n(u),d=r(89099),h=r(89848),f=r(27639);r(45662);let p=JSON.parse('{"EW1jgi":"default_input_name","access_restricted":"Access Restricted","account":"Account","account_deleted":"Account deleted successfully","account_notice":"This information will be displayed publicly so be careful what you share.","account_status":"Account status","action_edit":"Edit","actions_column_header":"Actions","activate":"Activate","activate_assortment_description":"Will be visible on search","activate_button":"Activate","activate_header_conformation":"Are you sure you want to this subscription?","activate_header_title":"Activate subscription.","activated":"Activated","active":"Active","active_types":"Active Worker Types ({count})","activities":"Activities","adapter":"Adapter","add":"Add","add_assortment":"Add Assortment","add_country":"Add Country","add_currency":"Add Currency","add_delivery_provider":"Add Delivery Provider","add_email":"Add email","add_filter":"Add Filter","add_filter_option":"Add option","add_language":"Add Language","add_option":"Add option","add_payment_provider":"Add Payment Provider","add_price_row":"Add Price Row","add_product":"Add Product","add_review":"Add Review","add_tag":"Add tag","add_user":"Add User","add_variation":"Add variation","add_variation_option":"Add option","add_warehousing_provider":"Add Warehousing Provider","add_web3_address":"Add address","add_web_auth":"Add WebAuth","add_work":"Add Work","address":"Address","address2":"Address 2","address_line_1":"Address line 1 (Street, House no)","address_line_2":"Address line 2","address_notice":"This information will be displayed publicly so be careful what you share.","all":"All","allocate_work":"Allocate Work","already_got_a_user":"Already got a user?","apply":"Apply","are_you_sure":"Are you sure?","assign_product_needs_variations":"Please configure all variation options before assigning a product.","assigned_product_column_header":"Assigned Product","assigned_products":"Assigned Products","assignment.sku":"SKU","assignment.title":"Product Assignment","assignment_matrix_help":"Each row represents a unique combination of your product variations. Assign a specific product to each combination to create a complete product catalog.","assignments":"Assignments","assortment":"Assortment","assortment_activated":"Assortment activated successfully","assortment_added":"Assortment added successfully!","assortment_base":"Base","assortment_changed_to_leaf":"Assortment changed to leaf","assortment_changed_to_root":"Assortment changed to root","assortment_config_description":"Organize products into categories","assortment_deactivated":"Assortment deactivated successfully","assortment_deleted_success":"Deleted successfully","assortment_filter_deleted":"Assortment filter deleted successfully","assortment_filter_form_description":"<ul> <li>Assign filters that will be applied for the assortment </li> </ul>","assortment_filter_list_description":"<ul> <li>All filters that are applied when searching for this assortment </li> <li> Drag and drop list items to sort filters order </li> </ul>","assortment_filters_form_header":"Filters","assortment_filters_header":"Assortment filters","assortment_link":"Link deleted successfully","assortment_link_form_description":"<ul> <li>Assign assortment that are direct child of this assortment </li> </ul>","assortment_link_form_header":"Child assortments","assortment_link_list_description":"<ul> <li>All assortments found on the assortment relation tree</li> <li> Drag and drop list items to sort assortment links </li> <li> Parents are assortments found in the ancestors tree on any level </li> <li> Descendants are assortments found in the children tree on any level </li> </ul>","assortment_links_header":"Assortment links","assortment_made_base":"Assortment changed to base","assortment_management_tool_definition":"\\"Manage product categories\\"","assortment_media":"Assortment Media","assortment_media_deleted":"Media deleted successfully","assortment_media_upload":"Media uploaded successfully","assortment_product_form_description":"<ul> <li>Products that belong to this assortment </li> </ul>","assortment_product_form_header":"Products","assortment_product_list_description":"<ul> <li>All products that belong to this assortment</li> <li> Drag and drop list items to sort products order </li> </ul>","assortment_products_header":"Assortment product","assortment_search_results":"Assortment Search Results","assortment_text_form_description":"<ul> <li><strong>Slug:</strong> The unique part of your category URL (e.g., \'electronics\' or \'summer-collection\'). Keep it short and descriptive.</li> <li><strong>Localization:</strong> Switch languages using the dropdown at the top left to translate content for different markets.</li> <li><strong>Description:</strong> Supports Markdown and HTML formatting. Use double backslash (\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\) for line breaks.</li> <li><strong>Category Organization:</strong> Use clear, descriptive titles that help customers navigate your product catalog. Think about how customers would search for this category.</li> <li><strong>SEO Tip:</strong> Well-written category descriptions help search engines understand your product organization and improve discoverability.</li> </ul>","assortments":"Assortments","assortments_count_header":"{count} Assortments","assortments_header":"1 Assortment","assortments_page_title":"{count, plural, one {# Assortment} other {# Assortments}}","avatar":"Avatar","average_order_value":"Average order value","back_to_home":"Back to Home","base":"Base","baseUnit":"Base Unit","base_country":"Base","base_language":"Base","billing_address":"Billing address","billing_interval_unit":"Billing interval unit","billing_unit":"Billing Unit","birthday":"Birthday","brand":"Brand","browser":"Browser","bundle":"Bundle product","bundle_item_added":"Bundle product added successfully","bundle_item_deleted":"Bundle item deleted successfully","bundle_product_definition":"<h3>Bundle</h3> <p>As the name suggest this product type enables you to create a collection/bundle of products as one and set the price accordingly. This type of product is useful if you have christmas package for example. </p>","bundle_products":"Bundles","bundled_items":"Bundled items","cancel":"Cancel","cart":"Cart","cart_created":"Warenkorb erstellt","categories_count":"Assortments","chain-id":"Chain ID {chainId}","chain-token-id":"Chain Token ID","change":"Change","change_language":"Change language","change_password":"Change password","chat.error.auth":"\uD83D\uDD10 **Authentication Error** Your session has expired or the authentication token is invalid. *Please refresh or log in again.*","chat.error.connection":"\uD83D\uDEAB **Connection Error** Cannot connect to the chat API server at {chatUrl}. **To enable chat:** 1. Start the backend 2. Ensure chat/MCP endpoint is configured 3. Check NEXT_PUBLIC_CHAT_URL **Current configuration:** - Chat URL: {chatUrl} *Please start the backend.*","chat.error.stream":"⚠️ **Stream Processing Error** There was an error processing the AI response stream. **Possible causes:** 1. Backend not running 2. MCP server not responding 3. Missing/invalid API keys 4. Network issues **Error details:** {details}","chat.error.submission":"❌ **Submission Error** Failed to send your message. **Error:** {details} *Please ensure the backend is running.*","chat.error.unexpected":"❌ **Chat Error** An unexpected error occurred: {details} *Please try again or check the console for details.*","chat_disabled_message":"Copilot chat is currently disabled in this shop. Please check your engine configuration","chat_disabled_title":"Chat is Disabled","chat_error_retry_message":"An error occurred while processing your request, please reload the conversation and submit something shorter.","check_work_queue_details":"Check Work Queue for Details","child_assortment":"Sub-Assortment","children":"Children","children_count":"{count} children","city":"City","clear_history":"Clear History","close":"Close","close_sidebar":"Close sidebar","code":"Code","collapse_navigation":"Collapse navigation","commerce":"Commerce","commerce_setup":"Commerce Setup","commerce_setup_description":"Payment and delivery configuration for transactions","company":"Company","complete_shop_setup":"Complete Your Shop Setup","complete_system_setup":"Complete Setup","component_loading_error":"Component loading error. Please refresh the page.","configurable_product_definition":"<h3>Configurable</h3> <p>Configurable Product is used to organize varieties of a product. A product might have a variation in color, size or other distinct property in that case you can use a configurable product type to organize all the variation under one category and outline-solid there difference. </p>","configuration":"Configuration","configuration_invalid":"Invalid configuration","configuration_status":"Configuration status","configuration_valid":"Valid configuration","configuration_valid_description":"All configuration parameters are correctly set and validated.","confirm_order":"Confirm order","confirm_order_alert_button":"Confirm","confirm_order_alert_header":"Confirm order?","confirm_order_alert_message":"This will mark order as confirmed","confirm_password":"Confirm password","confirmed":"Confirmed","connection_status":"No Connection","connection_to_server_error":"Currently not connected to unchained engine, please check your connection to server and try again.","contact":"Contact","contact_admin_help":"Contact system administrator for further information.","content_setup":"Content Setup","content_setup_description":"Products and categories to start selling","continue":"Continue","continue_to_app":"Continue to App","continue_with_sso":"Login with SSO","contract-address-label":"Contract Address","contract-standard":"Contract standard","contract_address":"Contract Address","copied":"Copied","copilot":"Copilot","copilot-into-message":"Hello! Please introduce yourself and explain what you can help me with in managing my Unchained Commerce store. Be friendly and informative about your current capabilities.","copilot_welcome_description":"Your AI assistant is ready to help you manage your Unchained Commerce store.","copilot_welcome_title":"Welcome to Unchained Copilot","copy_to_clipboard":"Copy to clipboard","countries":"Countries","countries_config_description":"Configure countries and assign default currencies","countries_page_title":"{count, plural, one {# Country} other {# Countries}}","country":"Country","country_added":"Country added successfully!","country_code":"Country code","country_count_header":"{count} Countries","country_currency":"Currency","country_deleted":"Country deleted successfully","country_exists":"Country with the same ISO code already exists","country_header":"1 Country","country_updated":"Country updated successfully!","create_admin_account":"Create Administrator","create_filter":"Create Filter","create_new_account":"Create new account?","create_provider":"Create provider","created":"Created","created_colon":"Created:","currencies":"Currencies","currencies_page_title":"{count, plural, one {# Currency} other {# Currencies}}","currency":"Currency","currency_added":"Currency added successfully!","currency_config_description":"Set up currencies for pricing and payments","currency_contract_address_description":"Contract address is optional and represents address of the 40 character long deployed token contract on the ethereum network.","currency_count_header":"{count} Currencies","currency_deleted":"Currency deleted successfully","currency_exists":"Currency with the same ISO code already exists","currency_header":"1 Currency","currency_updated":"Currency updated successfully!","current_password":"Current password","customer_reviews":"Customer Reviews","customers_count":"Customers","dashboard":"Dashboard","data":"Data","date":"Date","date_range_prefix":"Showing data from","date_range_to":"to","deactivate":"Deactivate","deactivate_assortment_description":"Will not be visible on search","deactivated":"Deactivated","decimals":"Decimals","default_country_info_description":"If you support multiple countries, please set the base country by adjusting the environment variable UNCHAINED_COUNTRY, for ex. UNCHAINED_COUNTRY=ch. That way, Unchained knows what localization needs to be sent if it can not determine country from user agent set header","default_country_info_title":"About base country","default_currency":"Default currency","default_currency_info_description":"Please set the base currency by adjusting the environment variable UNCHAINED_CURRENCY, for ex. UNCHAINED_CURRENCY=CHF. That way, Unchained knows what currency to use as a fallback if it is unable to determine it from context","default_currency_info_title":"About base currency","default_language_info_description":"If you support multiple languages, please set the base language by adjusting the environment variable UNCHAINED_LANG, for ex. UNCHAINED_LANG=en. That way, Unchained knows what localization needs to be sent if the user agent\'s language is unknown","default_language_info_title":"About base language","default_system_locale":"Default Locale","delete":"Delete","delete_account":"Delete account","delete_account_confirmation":"This action might cause inconsistencies with other data that relates to it","delete_assortment":"Delete Assortment","delete_assortment_confirmation":"This action might cause inconsistencies with other data that relates to it and it is nonreversible. Are you sure you want to delete this assortment?","delete_assortment_filter_confirmation":"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this language?","delete_assortment_link":"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this language?","delete_assortment_media":"Delete media","delete_assortment_media_confirmation":"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this currency?","delete_assortment_warning":"This action will permanently delete this assortment and all associated data. Are you sure you want to continue?","delete_bundle_item":"Delete item","delete_bundle_item_confirmation":"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this bundle item?","delete_country":"Delete country","delete_country_confirmation":"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this country?","delete_currency":"Delete currency","delete_currency_confirmation":"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this currency?","delete_delivery_provider":"Delete delivery provider","delete_delivery_provider_confirmation":"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this delivery provider?","delete_email":"Delete email","delete_email_confirmation":"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this email?","delete_filter":"Delete filter","delete_filter_confirmation":"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this filter?","delete_filter_option":"Delete option","delete_filter_option_confirmation":"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this filter option?","delete_language":"Delete language","delete_language_confirmation":"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this language?","delete_link":"Delete link","delete_order":"Delete order","delete_order_confirmation":"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this order?","delete_paymentProvider_confirmation":"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this Payment provider?","delete_payment_provider":"Delete payment provider","delete_payment_provider_confirmation":"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this payment provider?","delete_product":"Delete Product","delete_product_assignment":"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this assignment?","delete_product_confirmation":"This action might cause inconsistencies with other data that relates to it and it is nonreversible. Are you sure you want to delete this product?","delete_product_media":"Delete media","delete_product_media_confirmation":"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this media?","delete_product_variation":"Delete variation","delete_product_variation_confirmation":"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this variation?","delete_product_warning":"This action will permanently delete this product and all associated data. Are you sure you want to continue?","delete_review":"Delete review","delete_review_confirmation":"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this review?","delete_user":"Delete User","delete_user_account":"Delete user","delete_user_account_confirmation":"This action might cause inconsistencies with other data that relates to it","delete_user_warning":"This action will permanently delete this user and all associated data. Are you sure you want to continue?","delete_variation_assignment":"Delete assignment","delete_variation_option":"Delete option","delete_variation_option_confirmation":"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this option?","delete_warehousing_provider":"Delete warehousing Provider","delete_warehousing_provider_confirmation":"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this warehousing provider?","delete_web3_address":"Delete address?","delete_web3_address_confirmation":"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this address?","delete_web_auth_credential":"Are you sure you want to unlink this device from your account?","delete_work":"Delete work","delete_work_confirmation":"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this work?","deleted":"Deleted","deleted_status":"Deleted","deleted_text":"Deleted","delivered":"Delivered","delivery":"Delivery","deliveryProviders_deleted":"DeliveryProviders deleted successfully","delivery_address":"Delivery address","delivery_processing":"Shipping & Delivery","delivery_processing_config_description":"Delivery methods are already configured","delivery_provider":"Delivery Provider","delivery_provider_deleted":"Delivery provider deleted successfully","delivery_provider_title":"Delivery provider {id}","delivery_providers":"Delivery providers","delivery_status":"Status","description":"Description","detail":"Detail","dimensions":"Dimensions","discount":"Discount","discount_amount":"Discount Amount","discount_information":"Discounts","discounts":"Discounts","dismiss":"Dismiss","displayName":"Display Name","display_as_graph":"Display as Graph","display_name":"Display name","documentation":"Documentation","dont_have_account":"Don\'t have an account yet?","draft":"Draft","draft_product_description":"Product will not be discoverable and can not be orderose","duration":"Duration","edit":"Edit","edit_tags":"Edit tags","editor":"Editor","email":"Email","email_added":"Email added successfully!","email_address":"Email Address","email_address_not_exist":"Provided email does not exist","email_addresses":"Email addresses","email_already_exists_error":"Email already exists","email_deleted":"email {id} deleted successfully","email_exists_error":"Email already exists","email_verification_error":"Verification Error","email_verification_failed":"Email verification failed","email_verified_default":"All","email_verified_false":"unverified","email_verified_label":"E-Mail verified","email_verified_successfully":"Email Verified","email_verified_true":"verified","end":"End","end_date":"End Date","engine_version":"Engine version","enrollment":"enrollment","enrollment_count_header":"{count} Enrollments","enrollment_detail":"Enrollment Detail","enrollment_detail_title":"Enrollment {id}","enrollment_error":"Failed sending email, please try again","enrollment_header":"1 Enrollment","enrollment_number":"Enrollment number","enrollment_page_title":"{count, plural, one {# Enrollment} other {# Enrollments}}","enrollment_success":"Email sent to the user successfully","enrollment_success_message":"Subscription activation email sent","enrollment_updated_successfully":"Enrollment saved successfully","enrollments":"Enrollments","enter_tag":"Enter tag...","error":"Error","error-loading-image-alt":"Error loading image","error-something-went-wrong":"Unable to complete the task successfully please try again","error_403":"403 Unauthorized","error_404":"404 Error","error_423":"423 Locked","error_500":"500 Error","error_commerce_quantity_null_required":"{label} should have one price with null /empty max quantity","error_contract_address":"Invalid contract address","error_country_code":"Invalid country code","error_currency_code":"Invalid currency code","error_date_after":"{label} must be after {dateToCompare}.","error_date_before":"{label} must be before {dateToCompare}.","error_email":"{label} must be a valid email address","error_invalid_date":"{label} is not a valid date","error_language_code":"Invalid language code","error_loading_media":"Error loading media:","error_number_not_int":"Invalid value please provide integer value","error_phone_number_invalid":"Invalid phone number","error_required":"{label} is a required field","error_same_product_prices":"{label} can not be equal for a price with the same country and currency","error_server":"{details}","error_tag_required":"{label} you must provide at least one tag","error_text_area_required":"{label} is required","essential_setup":"Essential Setup","essential_setup_description":"Core settings required for your shop to function","event":"Events","event_count_header":"{count} Events","event_detail":"Event Detail","event_detail_title":"Event {id}","event_header":"1 Event","event_page_title":"{count, plural, one {# Event} other {# Events}}","events":"Events","expand_navigation":"Expand navigation","expired":"Expired","expires":"Expires","export":"Export","exporting":"Exporting...","extended-fields":"Extended","extensions":"Extensions","fail_reorder":"Reordering failed, Try again!","fail_upload":"Media upload failed","failed_tool_response":"Failed to parse tool result.","female":"Female","filer_options":"Filter options","filter":"Filter","filter.active":"Active","filter.created":"Created","filter.inactive":"Inactive","filter.noOptions":"No options","filter.sortKey":"Sort","filter.updated":"Updated","filter_activated":"Filter activated!","filter_by_creation_date":"Filter by creation date","filter_by_type":"Filter by type","filter_count_header":"{count} Filters","filter_created":"Filter created successfully!","filter_deactivated":"Filter deactivated!","filter_deleted":"Filter deleted successfully","filter_detail":"Filter Detail","filter_detail_title":"Filter {id}","filter_header":"1 Filter","filter_key":"Key","filter_key_already_exists":"Filter key already exists, please provide unique key","filter_option_added_success":"Filter option added successfully","filter_option_title":"Title","filter_option_value":"Value","filter_page_title":"{count, plural, one {# Filter} other {# Filters}}","filter_text_form_description":"<ul> <li>You can change the language of filter using the dropdown found at top left corner</li> </ul>","filter_type":"Filter Type","filtered_results":"Filtered results","filters":"Filters","finished":"Finished","first_name":"First name","forget_password":"Forgot your password?","forgot_password_header_description":"Enter your email address below and we\'ll send you a link to reset your password!","from":"From","from_last_month":"from last month","fulfilled":"Fulfilled","fullName":"FullName","full_name":"Full name","gender":"Gender","general_text":"Text","general_tool_definition":"\\"Help me with {toolName}\\"","go_back":"Go Back","go_back_home":"Go back home","go_to_login":"Go to Login","goodbye_simple":"Goodbye!","goodbye_user":"See you later, {name}!","gross_price":"Gross","guest":"Guest","header_conformation":"This action is nonreversible, are you sure you want to change it to base?","header_title":"Assortment base change.","height":"Height (Millimeter)","hide_available_tools":"Hide Available Tools","hide_payload":"Hide Payload","home":"Home","id":"ID","image-not-found":"Image not found","image_not_available":"Image not available","import":"Import","import_results":"Import Results","importing":"Importing...","in_active":"In-Active","in_cart":"In cart","in_valid":"InValid","inactive":"Inactive","include_drafts":"Include drafts","include_inactive":"Include inactive","include_leaf":"Include leafs","initial":"Initial","input":"Input","install":"Install","interface":"Interface","internal_server_error":"500 Internal Server Error","internal_server_error_message":"Sorry, something went wrong on our end. We are working to fix this.","invalid_credential_error":"Invalid credential, please try again","invalid_signature_length":"Invalid signature","invalid_url":"Invalid page url","invalidate-token":"Invalidate","invalidated":"Invalidated","invoice":"INVOICE","ip":"IP Address","iso_code":"ISO code","item_quantity":"Quantity:","items":"Items","items_created":"{count} items created","items_failed":"{count} {entityName} failed to import","items_imported":"{count} {entityName} imported successfully ({created} created, {updated} updated)","items_purchased":"Items purchased","key":"Key","label":"Label","labels":"Labels","language":"Language","language_added":"Language added successfully!","language_config_description":"Configure languages for content localization","language_count_header":"{count} Languages","language_deleted":"Language deleted successfully","language_exists":"Language with the same ISO code already exists","language_header":"1 Language","language_page_title":"{count, plural, one {# Language} other {# Languages}}","language_updated":"Language updated successfully!","languages":"Languages","last_Name":"Last name","last_login":"Last log in","last_order_date":"Last order","last_updated":"Last Updated:","leaf":"Leaf","leaf_assortment_description":"Can be assigned as a child of another assortment","length_millimeter":"Length (Millimeter)","link_reorder":"Link reorder successfully","linked_assortment":"Linked assortment","links":"Links","list_product_tool_definition":"Show me all draft products","load-more-reviews":"Load reviews","load_more":"Load more","loading":"Loading ...","loading_media":"Loading media...","log_in":"Log in","log_out":"Log out","login_date_range":"Login Date Range","login_header":"Log in to your account","make-proposal-header":"Make quotation proposal","make_leaf":"Make leaf","make_root":"Make root","male":"Male","manage":"Manage","mark_as_base":"Mark as Base","mark_as_delivered":"Mark as delivered","mark_as_delivered_message":"This will change the order delivery status to delivered","mark_as_delivered_question":"Mark as delivered ?","mark_as_paid":"Mark as Paid","mark_as_paid_question":"This will change the order payment status to Paid.","mark_as_paid_question_header":"Mark as paid?","max_quantity":"Max Quantity","media":"Media","media.created":"Created","media.id":"ID","media.size":"Size","media.type":"Type","media.updated":"Updated","media_add_tool_definition":"\\"Add media files\\"","media_management_tool_definition":"\\"Manage media files\\"","media_remover_tool_definition":"\\"Remove media files\\"","media_subtitle":"Subtitle:","media_title":"Title:","media_updated":"Media updated","message":"Message","method":"Method","mobile_phone":"Mobile phone","name":"Name","net_price":"Net Price","new_assortment_header":"New Assortment","new_country_header":"New country","new_currency_header":"New currency","new_delivery_provider":"New delivery provider","new_filter_header":"New filter","new_language_header":"New language","new_password":"New password","new_payment_provider_header":"New payment provider","new_product_header":"New product","new_user_header":"New user","new_warehousing_provider_header":"New warehousing provider","next":"Next","no_active_types":"No active worker types found","no_assortments_found":"No assortments found matching your criteria","no_customers":"No top customers found.","no_data_message":"<p>No <span> {message} available</span> </p>","no_event_found":"No event found","no_internet_access":"You aren\'t connected to a working internet connection.","no_order_products_description":"Once you receive your first orders, your top-selling products will appear here.","no_orders_description":"Once you receive your first orders, your sales analytics and top-selling products will appear here.","no_orders_title":"No orders yet","no_payload":"Payload","no_price":"N/A","no_result_found":"No result found","no_statistics_available":"No statistics available","no_tag":"No Tag","no_users_found":"No users found","no_variations_configured":"No variations configured yet. Please add variations and their options in the Variations tab first.","no_works_found":"No works found","non_taxable":"Non-Taxable","not-applicable":"N/A","not_access_message":"Sorry, the page you are trying to access has restricted access.","not_base":"Mark as Base","not_found_message":"Sorry, we couldn\'t find the page you\'re looking for.","not_published":"Not published","offline_help_message":"Please check your connection and try again.","offline_mode":"You\'re Offline","ok":"Ok","open":"OPEN","open_sidebar":"Open sidebar","operation_failed":"Operation failed!!","operation_success":"Operation succeeded!","option":"Option","options":"Options","or_drag_and_drop":"or drag and drop","or_manually_enter_address":"Or enter address manually","order":"Order","order__marked_delivered":"Order marked as delivered successfully","order_confirmed_success":"Order confirmed successfully","order_count_header":"{count} Orders","order_date":"Order date","order_deleted":"Order deleted successfully","order_header":"1 Order","order_id":"Order","order_number":"Order #","order_page_title":"{count, plural, one {# Order} other {# Orders}}","order_paid":"Order payed successfully","order_payment_fees":"Fees","order_placed":"Order placed","order_reject_success":"Order rejected successfully","order_status":"Order status","order_total":"Order total","ordered":"Ordered","orders":"Orders","original_work_id":"Original Work Id","overall_progress":"Overall Progress","page_not_found":"Page Not Found","paginated-data":"<p> Showing <span>{from}</span> to <span>{to}</span> of <span>{total}</span> results </p>","paid":"Paid","password":"Password","password_change_failed":"Password change failed, try again later","password_changed_success":"Password changed successfully.","password_identical":"Provided new password identical to previous password","password_insecure":"Password is invalid, maybe too insecure","password_mismatch":"Password fields don\'t match","password_success":"Password changed successfully.","pay":"Mark paid","payload":"Payload","payment":"Payment","payment_credentials":"Payment Credentials","payment_detail_title":"Payment provider {id}","payment_processing":"Payment Processing","payment_processing_config_description":"Invoice payment provider is already configured","payment_provider":"Payment provider","payment_provider_deleted":"Payment provider deleted successfully","payment_providers":"Payment providers","pending":"PENDING","periods":"Periods","permission_missing":"You don\'t have the required permission","photo":"Photo","plan_product_definition":"<h3>Plan</h3> <p>Plan product is use when you have a product that is offered per subscription base. Since for this type of product the payment is usually recurring, you can adjust the interval of payment calculation. </p>","postal_code":"Postal/ZIP code","preferred":"Preferred","preview":"preview","previous":"Previous","price":"Price","price_range":"Price Range","priority":"Priority","process-quotation-submit":"Mark as processed","product":"Product","product-image":"Product image","product-scaffolded-success":"Product scaffolded successfully","product_added":"Product added successfully!","product_assignments_explanation_text":"Product assignments allow you to link specific products to each unique combination of variation options. For example, if you have a t-shirt with \'Size\' and \'Color\' variations, you can assign different product SKUs to each combination like \'Large + Red\' or \'Small + Blue\'. This is useful for managing inventory, pricing, and product details for each specific variant.","product_assignments_explanation_title":"About Product Assignments","product_commerce_info":"One price list should have a max quantity field empty and no price should have the same max quantity along with currency and country specified","product_creation_failed":"Product creation failed","product_delete_blocked_action":"Please unlink it before trying to delete it.","product_delete_blocked_header":"Remove links before deleting","product_delete_blocked_intro":"This product is linked to the following product types:","product_deleted":"Product deleted successfully","product_deleted_notice":"This product has been deleted and is no longer active. Some actions may be restricted.","product_deleted_success":"Deleted successfully","product_drafted":"Drafted successfully","product_id":"ID","product_import.validation.invalid_type":"Invalid product type: {type}","product_import.validation.title_required":"Title is required","product_load_error":"Failed to load product","product_media":"Product Media","product_media_deleted":"Media deleted successfully","product_media_upload":"Media uploaded successfully","product_no_price":"No price","product_page_title":"{count, plural, one {# Product} other {# Products}}","product_publish_error":"Failed to publish product","product_published":"Published successfully","product_quantity":"Quantity","product_revenue":"Revenue","product_review_added":"Review added successfully!","product_review_updated":"Review updated successfully!","product_sold":"Sold","product_subscription_form_description":"<ul><li> Information that will be used to calculate price of a subscription based product </li> <li>The price specified in commerce section will be used when calculating fees on each interval. </li> <li>Price will not be included for the specified trial period </li> </ul>","product_text_form_description":"<ul> <li><strong>Slug:</strong> The unique part of your product URL (e.g., \'my-awesome-product\'). Keep it short and descriptive.</li> <li><strong>Localization:</strong> Switch languages using the dropdown at the top left to translate content for different markets.</li> <li><strong>Description:</strong> Supports Markdown and HTML formatting. Use double backslash (\\\\\\\\\\\\\\\\) for line breaks.</li> <li><strong>Labels:</strong> Eye-catching badges that appear on your product (e.g., \'New Arrival\', \'50% Off\', \'Limited Edition\'). Perfect for promotions and highlighting special features. Each language can have unique labels.</li> <li><strong>Key Difference:</strong> Labels are customer-facing promotional badges, while Tags are internal keywords for organization and filtering.</li> </ul>","product_title":"Product","product_type":"Product type","product_unpublish_error":"Failed to unpublish product","product_untitled":"Untitled Product","product_variation_added":"Product variation added successfully","product_variation_deleted":"Variation deleted successfully","product_variation_key_help":"Unique identifier used internally (e.g., \\"color\\", \\"size\\"). Use lowercase without spaces.","product_variation_option_deleted":"Variation option deleted successfully","product_variation_title_help":"The display name customers will see (e.g., \\"Color\\", \\"Size\\", \\"Material\\")","product_variations_explanation":"Variations allow customers to choose different options for your product (like color, size, material). Each variation can have multiple options that customers can select from.","product_variations_explanation_title":"About Product Variations","products":"Products","products_config_description":"Create your first products","products_count":"Products","products_count_header":"{count} Products","products_data_unavailable":"Product data unavailable","products_found":"{count} products found","products_header":"1 Product","products_not_found":"No {status} products found in these results","profile":"Profile","profile_notice":"This information will be displayed publicly so be careful what you share.","profile_updated":"Profile updated successfully!","provider_configuration_items":"Config items","provider_created_success":"Provider created successfully!","publish_product_description":"Product will be searchable and is available for orders","published":"Published","quantity":"Quantity","quotation":"quotation","quotation-context-input-label":"Quotation context","quotation-quoted-successfully":"Quoted successfully","quotation-rejection-successfully":"Quotation rejected successfully","quotation-verified-successfully":"Quotation verified successfully","quotation_count_header":"{count} Quotations","quotation_detail":"Quotation Detail","quotation_detail_title":"Quotation {id}","quotation_header":"1 Quotation","quotation_number":"Quotation number","quotation_page_title":"{count, plural, one {# Quotation} other {# Quotations}}","quotation_updated":"Quotation updated successfuly","quotations":"Quotations","recent_reviews":"Recent reviews","region":"Region","region_Code":"Region","register-with-web3":"Register","registered":"Registered","reject-quotation-quotation":"Reject quotation?","reject-quotation-submit":"Reject","reject_order":"Reject order","reject_order_alert_button":"Reject","reject_order_alert_header":"Reject order?","rejected":"REJECTED","reorder_original":"Reorder to original location","report-submit":"Submit","request_new_reset_link":"Request New Reset Link","request_new_verification":"Request New Verification","requested":"Requested","required-role-not-satisfied":"Current account does not have access, please log in with an account that has the required role.","required_steps_note":"Required for basic shop functionality","reset_link_sent":"Password reset link sent to {email}","reset_password":"Reset Password","reset_password_header_description":"Enter your new password and make sure you don\'t forget it this time.","reset_token_error":"Reset Token Error","reset_token_expired":"Token link invalid or has expired","reset_token_invalid_warning":"The reset token is either invalid or expired.","resolved_country":"Resolved country","resolved_language":"Resolved language","rest_password":"Reset password","result":"Result","retries":"Retries","retry":"Retry Connection","retry-work":"Retry","retry_prompt":"Retry","review":"Review","review_data":"Review data","review_deleted":"Review deleted successfully","review_placeholder":"Share your thoughts about this product...","review_summary":"<div> Based on <cta> {total} </cta> reviews</div>","reviews":"Reviews","role_updated":"Role updated successfully!","roles":"Roles","root":"Root","root_assortment":"Root","root_assortment_description":"Can not be assigned as a child of another assortment","root_assortments_count":"{count} root assortments found","root_description":"This makes the assortment a top level category","root_node":"Root node","save":"Save","saved":"Saved","say_hi_get_to_know_me":"Say Hi and Get To Know Me","scaffold_product":"Scaffold","scheduled":"Scheduled","search":"Search","search_product":"Search product","select_language":"Select Language","select_option":"Select an option","select_options_toggle":"Change {type} status","select_role":"Select role","select_tab":"Select a tab","select_type":"Select type","select_valid_csv_error":"Please select a valid CSV file.","send__enrollment_email_button":"Send enrollment Email","send_activation_email_confirm":"Are you sure you want to send email?","send_activation_email_header":"Send Email.","send_button":"Send","send_email_button":"Send Email","send_reset_link":"Send reset link","send_verification_mail":"Send verification mail","sequence":"Display Order","set_password":"Set password","setup_complete":"Complete","setup_now":"Setup Now","shipping":"Shipping","shipping_method":"SHIPPING","shop_info":"Shop Info","shop_setup_complete":"Shop Setup Complete!","shop_setup_complete_description":"Congratulations! Your shop is fully configured and ready to accept orders.","shop_setup_description":"Follow these steps to configure your shop and start selling.","shortcuts":"Shortcuts","show_available_tools":"Show Available Tools","show_carts":"Show carts","show_error_details":"Show error details","show_full_response":"Show full response","show_guests":"Show Guests","show_inactive":"Show Inactive","show_less":"Show less","show_payload":"Show Payload","sign_address_header":"Sign address","sign_up":"Sign up","sign_up_header":"Create new account","signature_hash":"Signature hash","signature_not_match_error":"Signature does not match","simple_product_definition":"<h3>Simple</h3> <p>Simple product is the most commonly used type of product type. It accepts configuration values for price, dimension and warehousing. Most e-commerce product needs are satisfied by this type </p>","sku":"SKU","slug":"Slug","star_reviews":"Star reviews","start":"Start","start_date":"Start date","started":"Started","status":"Status","submit":"Submit","subscription":"Subscription","subscription_message":"Subscription","subscription_product_type_not_valid":"Status of the product does not allow this operation","subscriptions":"Subscriptions","subtitle":"Subtitle","subtotal":"Subtotal","success_message":"Subscription successfully activated.","supply":"Supply","system":"System settings","system_information":"System Information","table_actions_menu":"Actions menu","tags":"Tags","tags_updated":"Tags updated successfully","tax":"Tax","taxable":"Taxable","terminate_enrollment":"Terminate Enrollment","terminate_enrollment_confirmation":"Are you sure you want to terminate this subscription?","terminate_enrollment_error":"Failed when sending subscription activation email, please try again","terminate_enrollment_success":"Subscription terminated successfully","terminate_subscription":"Terminate subscription","text":"Text","texts":"Texts","thank_you_for_verifying":"Thank you for verifying your email address.","tiered_pricing":"Tiered Pricing","time":"Time","title":"Title","title_not_found":"Title not found","to":"To","token":"Token","token-id":"Token ID {chainTokenId}","token-id-label":"Token ID","token-supply":"Supply","token_count_header":"{count} Tokens","token_header":"1 Token","token_invalid_expired":"Token Invalid/Expired","token_invalidation_date":"Invalidated","token_page_title":"{count, plural, one {# Token} other {# Tokens}}","token_updated":"Token update successfully!","tokenized_product_text_form_description":"<b>Contract standards </b> <ol> <dt><b> ERC721 </b></dt> <dd> Buying multiple Products leads to multiple Tokens (make sure to set the tokenId to 0 to make it auto generate new id\'s) </dd> <dt> <b> ERC1155 </b></dt> <dd> Buying multiple Products leads to a new token with balance 3 of token with tokenId assigned </dd> <dt> <b> Contract address </b></dt> <dd> Address of a token on a given network </dd> </ol>","tokens":"Tokens","tool_fetch_failed_error":"Failed to fetch available tools","tool_response":"Tool Response","top_selling_no_products":"No top selling products found.","top_selling_products":"Top selling products","total":"Total","total_orders":"Total orders","total_records":"{total} records found","total_sales":"Total sales","total_spent":"Spent","trial":"Trial","trial_interval_unit":"Trial interval unit","trial_unit":"Trial Unit","try_again":"Try Again","type":"Type","type_colon":"Type:","unauthorized_page":"Access Forbidden","unchained_logo":"Unchained Logo","unit":"Unit","untitled_assortment":"Untitled Assortment","untitled_product":"Untitled product","unverified":"Unverified","update":"Update","update_configuration":"Update configuration","update_country":"Update Country","update_currency":"Update Currency","update_delivery_configuration":"Update delivery provider","update_filter":"Update filter","update_language":"Update Language","update_payment_provider_header":"Update payment provider","update_profile":"Update profile / address","update_review":"Update Review","update_role":"Update role","update_token":"Update token","update_warehousing_provider_header":"Update warehousing provider","updated":"Updated","upload":"Upload","upload_file":"Upload a file","usage_calculation_type":"Usage calculation type","use-another-account":"Use Another Account","use_another_verification_token":"Please resend another verification email and try again.","use_authenticator":"Use authenticator","use_latest_reset_link":"Please use the latest reset link sent to your email or request a new one.","use_latest_verification_link":"Please use the latest verification link sent to your email.","user":"User","user-activities":"Activity","user_avatar":"User avatar","user_count_header":"{count} Users","user_deleted":"User deleted successfully","user_detail_title":"User {id}","user_header":"1 User","user_page_title":"{count, plural, one {# User} other {# Users}}","user_password_not_set":"User password not set","user_profile_created":"User profile created successfully!","username":"Username","username_exists_error":"Username is taken please provide another","username_or_email":"Username/Email","username_or_email_taken":"Username taken, Please provided different username","username_updated":"Username updated successfully!","users":"users","users_setting_list_header":"User settings","valid":"Valid","value":"Value","variation.created":"Created","variation.id":"ID","variation.productId":"Product ID","variation.untitled":"Untitled Variation","variation.updated":"Updated","variation_id":"Variation ID","variation_option":"Variation option","variation_option_added":"Variation option added successfully!","variation_option_title_help":"Display name customers see (e.g., \\"Red\\", \\"Large\\", \\"Cotton\\")","variation_option_updated":"Variation option updated successfully!","variation_option_value_help":"Internal identifier (e.g., \\"red\\", \\"large\\", \\"cotton\\")","variation_options_explanation":"Add individual choices for this variation (e.g., \\"Red\\", \\"Blue\\", \\"Green\\" for a Color variation)","variations":"Variations","vat_suspect":"Vat Suspect","vendor":"Vendor","verification_failed":"verification failed","verification_failed_status":"Verification Failed","verification_sent_error":"Error occurred while sending verification email, please try again","verification_sent_success":"Verification email sent successfully","verification_successful":"Verification Successful","verification_token_expired":"Verification token expired","verification_web3_address":"Verify","verified":"Verified","verify-quotation-quotation":"Verify quotation?","verify-quotation-submit":"Verify","verify_email_token_invalid_error":"The email verification token is either invalid or expired.","version":"Version","view":"View","wallet-address":"Wallet {walletAddress}","warehouse_detail_title":"Warehouse {id}","warehousing":"Warehousing","warehousing_provider":"Warehousing provider","warehousing_provider_deleted":"Warehousing provider deleted successfully","warning":"Warning!","web3_address":"Web3 Address","web3_address_added":"Address added successfully!","web3_address_deleted":"Address deleted successfully","web3_address_signature_instruction":"<p>Copy the following nonce <b> ({nonce})</b> and past the signature on the space provided below </p>","web3_address_verify_link":"<p> Go to <a> etherscan </a> to verify address </p>","web3_addresses":"Web3 addresses","web3_verified_success":"Address verified successfully!","web_auth_credential_removed":"Credential removed successfully","web_auth_icon":"Auth icon","web_auth_username_required":"A username is required to use WebAuthn","web_authentication":"Web Authentication","weight":"Weight","weight_gram":"Weight (Gram)","welcome_user":"Welcome back, {name}!","width":"Width (Millimeter)","with_children":"With Children","work_added_success":"Work added successfully!","work_allocated_success":"Allocate work successfully!","work_count_header":"{count} Work Items","work_created":"Created","work_deleted":"Work deleted successfully","work_detail":"Work Detail","work_detail_title":"Work {id}","work_finished":"Finished","work_header":"1 Work Item","work_management_setting_list_header":"Work Management Settings","work_original":"Original Work","work_page_title":"{count, plural, one {# Work Item} other {# Work Items}}","work_priority":"Priority","work_queue":"Work queue","work_queue_header":"Work queue","work_queue_problem_detected":"Problems detected in the Work Queue","work_retries":"Retries","work_scheduled":"Scheduled","work_started":"Started","work_status":"Work Status","work_type":"Work type","work_type_header":"Type","worker":"Worker","worker.dateRange":"Date Range","worker.deleteCount":"Deleted","worker.errorCount":"Error","worker.newCount":"New","worker.noStatistics":"No statistics available","worker.startCount":"Start","worker.successCount":"Success","worker_dynamic":"{worker}","workers":"Workers","write_review":"Write a Review"}'),m={en:p,de:JSON.parse('{"EW1jgi":"Standard-Eingabename","access_restricted":"Zugriff beschr\xe4nkt","account":"Konto","account_deleted":"Konto erfolgreich gel\xf6scht","account_notice":"Diese Informationen werden \xf6ffentlich angezeigt, seien Sie also vorsichtig, was Sie weitergeben.","account_status":"Kontostatus","actions_column_header":"Aktionen","activate":"Aktivieren","activate_assortment_description":"Wird bei der Suche sichtbar sein","activate_button":"Aktivieren","activate_header_conformation":"Sind Sie sicher, dass Sie dieses Abonnement abschliessen m\xf6chten?","activate_header_title":"Aktivieren Sie das Abonnement.","activated":"Aktiviert","active":"Aktiv","activities":"Aktivit\xe4ten","adapter":"Adapter","add":"Hinzuf\xfcgen","add_assortment":"Sortiment hinzuf\xfcgen","add_country":"Land hinzuf\xfcgen","add_currency":"W\xe4hrung hinzuf\xfcgen","add_delivery_provider":"Lieferdienst hinzuf\xfcgen","add_email":"E-Mail hinzuf\xfcgen","add_filter":"Filter hinzuf\xfcgen","add_filter_option":"Option hinzuf\xfcgen","add_language":"Sprache hinzuf\xfcgen","add_option":"Option hinzuf\xfcgen","add_payment_provider":"Zahlungsanbieter hinzuf\xfcgen","add_price_row":"Preiszeile hinzuf\xfcgen","add_product":"Produkt hinzuf\xfcgen","add_product_media_tool_definition":"Medien zum Produkt hinzuf\xfcgen","add_review":"Bewertung hinzuf\xfcgen","add_tag":"Tag hinzuf\xfcgen","add_user":"Benutzer hinzuf\xfcgen","add_variation":"Variation hinzuf\xfcgen","add_variation_option":"Option hinzuf\xfcgen","add_warehousing_provider":"Lageranbieter hinzuf\xfcgen","add_web3_address":"Web3-Adresse hinzuf\xfcgen","add_web_auth":"Web-Authentifizierung hinzuf\xfcgen","add_work":"Arbeit hinzuf\xfcgen","address":"Adresse","address2":"Adresse 2","address_line_1":"Adresse Zeile 1 (Strasse & Hausnummer)","address_line_2":"Adresse Zeile 2","address_notice":"Diese Informationen werden \xf6ffentlich angezeigt, seien Sie also vorsichtig, was Sie weitergeben.","all":"Alle","allocate_work":"Arbeit zuweisen","already_got_a_user":"Haben Sie bereits einen Benutzer?","apply":"Anwenden","are_you_sure":"Sind Sie sicher?","assign_product_needs_variations":"Bitte konfigurieren Sie alle Variationsoptionen, bevor Sie ein Produkt zuweisen.","assigned_product_column_header":"Zugewiesenes Produkt","assigned_products":"Zugewiesene Produkte","assignment_matrix_help":"Jede Zeile repr\xe4sentiert eine einzigartige Kombination Ihrer Produktvariationen. Weisen Sie ein spezifisches Produkt zu jeder Kombination zu, um einen vollst\xe4ndigen Produktkatalog zu erstellen.","assignments":"Zuweiseungen","assortment":"Sortiment","assortment_activated":"Sortiment erfolgreich aktiviert","assortment_added":"Sortiment erfolgreich hinzugef\xfcgt","assortment_base":"Hauptkategorie","assortment_changed_to_leaf":"Sortiment ge\xe4ndert","assortment_changed_to_root":"Sortiment auf Stamm umgestellt","assortment_config_description":"Produkte in Kategorien organisieren","assortment_deactivated":"Sortiment erfolgreich deaktiviert","assortment_deleted_success":"Sortiment erfolgreich gel\xf6scht","assortment_filter_deleted":"Sortimentsfilter erfolgreich gel\xf6scht","assortment_filter_form_description":"<ul> <li><strong>Suchfilter:</strong> F\xfcgen Sie Filter hinzu, die Kunden helfen, Produkte in dieser Kategorie einzugrenzen.</li> <li><strong>Filter-Priorit\xe4t:</strong> Die wichtigsten Filter sollten zuerst hinzugef\xfcgt werden - Kunden sehen diese oben in der Filterliste.</li> <li><strong>Kundenerfahrung:</strong> Gut gew\xe4hlte Filter erleichtern es Kunden, genau das zu finden, wonach sie in Ihrer Kategorie suchen.</li> </ul>","assortment_filter_list_description":"<ul> <li><strong>Aktive Filter:</strong> Zeigt alle Filter an, die derzeit auf diese Kategorie angewendet werden - Kunden verwenden diese, um Suchergebnisse einzugrenzen.</li> <li><strong>Filter neu ordnen:</strong> Ziehen Sie per Drag & Drop, um die Reihenfolge zu \xe4ndern - die wichtigsten Filter sollten zuerst in der Kundenoberfl\xe4che erscheinen.</li> <li><strong>Filter-Performance:</strong> \xdcberlegen Sie, welche Filter Kunden am h\xe4ufigsten verwenden und positionieren Sie diese prominent.</li> </ul>","assortment_filters_form_header":"Filter","assortment_filters_header":"Sortimentsfilter","assortment_link":"Link erfolgreich gel\xf6scht","assortment_link_form_description":"<ul> <li><strong>Kategorie-Hierarchie:</strong> Erstellen Sie Unterkategorien durch Hinzuf\xfcgen von Unter-Sortimenten (z.B. \'Elektronik\' → \'Smartphones\', \'Laptops\').</li> <li><strong>Navigationsstruktur:</strong> Bauen Sie einen logischen Kategorienbaum auf, der der Denkweise Ihrer Kunden \xfcber Ihre Produkte entspricht.</li> <li><strong>Anzeigereihenfolge:</strong> \xdcberlegen Sie die Reihenfolge, in der Unterkategorien in Navigationsmen\xfcs erscheinen sollen.</li> <li><strong>Best Practice:</strong> Halten Sie Ihre Kategoriehierarchie 2-3 Ebenen tief f\xfcr optimale Benutzererfahrung.</li> </ul>","assortment_link_form_header":"Kinder-Sortimente","assortment_link_list_description":"<ul> <li><strong>Kategorie-Beziehungen:</strong> Zeigt die vollst\xe4ndige Hierarchie mit \xfcbergeordneten Kategorien oberhalb und untergeordneten Kategorien unterhalb dieses Sortiments.</li> <li><strong>Struktur reorganisieren:</strong> Ziehen Sie per Drag & Drop, um zu \xe4ndern, wie Unterkategorien in Navigationsmen\xfcs erscheinen.</li> <li><strong>Eltern:</strong> Kategorien, zu denen dieses Sortiment geh\xf6rt - hilft Kunden, im Kategorienbaum nach oben zu navigieren.</li> <li><strong>Nachkommen:</strong> Alle Unterkategorien und deren Kinder - zeigt den vollst\xe4ndigen Umfang dieses Kategorienzweigs.</li> </ul>","assortment_links_header":"Sortiment Links","assortment_made_base":"Sortiment als Hauptkategorie festgelegt","assortment_management_tool_definition":"Produktkategorien verwalten","assortment_media":"Sortiment Medien","assortment_media_deleted":"Medien erfolgreich gel\xf6scht","assortment_media_upload":"Medien erfolgreich hochgeladen","assortment_product_form_description":"<ul> <li><strong>Kategorie-Produkte:</strong> F\xfcgen Sie Produkte hinzu, die logisch in diese Kategorie geh\xf6ren.</li> <li><strong>Produktauswahl:</strong> Erw\xe4gen Sie, Bestseller oder neue Artikel zu platzieren, die Kunden ansprechen, die diese Kategorie durchsuchen.</li> <li><strong>Strategische Platzierung:</strong> Produkte k\xf6nnen zu mehreren Kategorien geh\xf6ren, denken Sie also dar\xfcber nach, wo jedes Produkt f\xfcr Kunden am sinnvollsten ist.</li> <li><strong>Merchandising-Tipp:</strong> W\xe4hlen Sie Produkte aus, die Kunden zu Ihren profitabelsten oder beliebtesten Artikeln f\xfchren.</li> </ul>","assortment_product_form_header":"Produkte","assortment_product_list_description":"<ul> <li><strong>Kategorie-Inhalte:</strong> Alle Produkte, die derzeit dieser Kategorie zugewiesen sind - das ist, was Kunden beim Durchsuchen sehen werden.</li> <li><strong>Produkt-Merchandising:</strong> Ziehen Sie per Drag & Drop, um die Anzeigereihenfolge zu optimieren - platzieren Sie Bestseller, neue Artikel oder hochrentable Artikel zuerst.</li> <li><strong>Kategorie\xfcbergreifende Produkte:</strong> Produkte k\xf6nnen in mehreren Kategorien erscheinen und helfen Kunden, sie \xfcber verschiedene Browsing-Pfade zu entdecken.</li> </ul>","assortment_products_header":"Sortiment Produkt","assortment_search_results":"Suchergebnisse f\xfcr Sortimente","assortment_text_form_description":"<ul> <li><strong>Slug:</strong> Der eindeutige Teil Ihrer Kategorie-URL (z.B. \'elektronik\' oder \'sommer-kollektion\'). Halten Sie ihn kurz und beschreibend.</li> <li><strong>Lokalisierung:</strong> Wechseln Sie die Sprache \xfcber das Sprach-Toggle unten links, um Inhalte f\xfcr verschiedene M\xe4rkte zu \xfcbersetzen.</li> <li><strong>Beschreibung:</strong> Unterst\xfctzt Markdown- und HTML-Formatierung. Verwenden Sie doppelte Backslashes (\\\\\\\\\\\\\\\\) f\xfcr Zeilenumbr\xfcche.</li> <li><strong>Kategorie-Organisation:</strong> Verwenden Sie klare, beschreibende Titel, die Kunden beim Navigieren in Ihrem Produktkatalog helfen. Denken Sie daran, wie Kunden nach dieser Kategorie suchen w\xfcrden.</li> <li><strong>SEO-Tipp:</strong> Gut geschriebene Kategoriebeschreibungen helfen Suchmaschinen, Ihre Produktorganisation zu verstehen und die Auffindbarkeit zu verbessern.</li> </ul>","assortments":"Sortimente","assortments_count_header":"{count} Sortimente","assortments_header":"1 Sortiment","assortments_page_title":"{count, plural, one {# Sortiment} other {# Sortimente}}","avatar":"Avatar","average_order_value":"Durchschnittlicher Bestellwert","back_to_home":"Zur\xfcck zur Startseite","base":"Hauptkategorie","baseUnit":"Basiseinheit","base_country":"Basis Land","base_language":"Basis Sprache","billing_address":"Rechnungsadresse","billing_interval_unit":"Einheit des Abrechnungsintervalls","billing_unit":"Fakturierungseinheit","birthday":"Geburtstag","brand":"Marke","browser":"Browser","bundle":"Geb\xfcndeltes Produkt","bundle_item_added":"Geb\xfcndeltes Produkt erfolgreich hinzugef\xfcgt","bundle_item_deleted":"Geb\xfcndeltes Produkt erfolgreich gel\xf6scht","bundle_product_definition":"<h3>B\xfcndel</h3> <p>Wie der Name schon sagt, erm\xf6glicht Ihnen dieser Produkttyp, eine Sammlung/ein B\xfcndel von Produkten als eines zu erstellen und den Preis entsprechend festzulegen. Dieser Produkttyp ist n\xfctzlich, wenn Sie beispielsweise ein Weihnachtspaket haben.</p>","bundled_items":"Geb\xfcndelte Artikel","cancel":"Abbrechen","cart":"Warenkorb","cart_created":"Warenkorb erstellt","categories_count":"Kategorien","chain-id":"Chain-ID","chain-token-id":"Chain-Token-ID","change":"\xc4ndern","change_language":"Sprache \xe4ndern","change_password":"Passwort \xe4ndern","chat_disabled_message":"Copilot-Chat ist derzeit in diesem Shop deaktiviert. Bitte \xfcberpr\xfcfen Sie Ihre Engine-Konfiguration","chat_disabled_title":"Chat ist deaktiviert","chat_error_retry_message":"Ein Fehler ist beim Verarbeiten Ihrer Anfrage aufgetreten. Bitte laden Sie die Unterhaltung neu und senden Sie etwas K\xfcrzeres.","check_work_queue_details":"Arbeitswarteschlange auf Details pr\xfcfen","child_assortment":"Sub-Sortiment","children":"Unterelemente","children_count":"{count} Kinder","city":"Stadt","clear_history":"Verlauf l\xf6schen","close":"Schliessen","close_sidebar":"Seitenleiste schliessen","code":"PLZ","collapse_navigation":"Navigation einklappen","commerce":"Commerce","commerce_setup":"Commerce-Einrichtung","commerce_setup_description":"Zahlungs- und Lieferkonfiguration f\xfcr Transaktionen","company":"Unternehmen","complete_shop_setup":"Shop-Einrichtung vervollst\xe4ndigen","component_loading_error":"Fehler beim Laden der Komponente. Bitte Seite neu laden.","configurable_product_definition":"<h3>Konfigurierbar</h3> <p>Das konfigurierbare Produkt wird verwendet, um Variationen eines Produkts zu organisieren. Ein Produkt kann Variationen in Farbe, Gr\xf6sse oder anderen besonderen Eigenschaften haben. In diesem Fall k\xf6nnen Sie einen konfigurierbaren Produkttyp verwenden, um alle Variationen unter einer Kategorie zu organisieren und ihre Unterschiede zu verdeutlichen.</p>","configuration":"Konfiguration","configuration_invalid":"Ung\xfcltige Konfiguration","configuration_status":"Konfigurationsstatus","configuration_valid":"G\xfcltige Konfiguration","configuration_valid_description":"Alle Konfigurationsparameter sind korrekt gesetzt und validiert.","confirm_order":"Bestellung best\xe4tigen","confirm_order_alert_button":"Best\xe4tigen","confirm_order_alert_header":"Bestellung best\xe4tigen?","confirm_order_alert_message":"Bestellung best\xe4tigen?","confirm_password":"Passwort best\xe4tigen","confirmed":"Best\xe4tigt","connection_status":"Verbindungsstatus","connection_to_server_error":"Verbindungsfehler zum Server","contact":"Kontakt","contact_admin_help":"Wenden Sie sich f\xfcr weitere Informationen an den Systemadministrator","content_setup":"Inhalts-Einrichtung","content_setup_description":"Produkte und Kategorien, um mit dem Verkauf zu beginnen","continue":"Fortfahren","continue_to_app":"Zur App fortfahren","continue_with_sso":"Mit SSO anmelden","contract-address-label":"Vertragsadresse","contract-standard":"Vertragsstandard","contract_address":"Vertragsadresse","copied":"Kopiert","copilot":"Copilot","copilot-into-message":"Hallo! Bitte stellen Sie sich vor und erkl\xe4ren Sie, wobei Sie mir bei der Verwaltung meines Unchained Commerce-Shops helfen k\xf6nnen. Seien Sie freundlich und informativ \xfcber Ihre aktuellen F\xe4higkeiten.","copilot_welcome_description":"Ihr KI-Assistent ist bereit, Ihnen bei der Verwaltung Ihres Unchained Commerce-Shops zu helfen.","copilot_welcome_title":"Willkommen bei Unchained Copilot","copy_to_clipboard":"In Zwischenablage kopieren","countries":"L\xe4nder","countries_config_description":"L\xe4nder konfigurieren und Standardw\xe4hrungen zuweisen","countries_page_title":"{count, plural, one {# Land} other {# L\xe4nder}}","country":"Land","country_added":"Land erfolgreich hinzugef\xfcgt!","country_code":"L\xe4ndercode","country_count_header":"{count} L\xe4nder","country_currency":"W\xe4hrung","country_deleted":"Land erfolgreich gel\xf6scht","country_exists":"Land mit demselben ISO-Code existiert bereits","country_header":"1 Land","country_updated":"Land erfolgreich aktualisiert!","create_admin_account":"Administrator erstellen","create_filter":"Filter erstellen","create_new_account":"Neues Konto erstellen?","create_product_tool_definition":"Neues Produkt erstellen","create_provider":"Anbieter erstellen","created":"Erstellt","created_colon":"Erstellt:","currencies":"W\xe4hrungen","currencies_page_title":"{count, plural, one {# W\xe4hrung} other {# W\xe4hrungen}}","currency":"W\xe4hrung","currency_added":"W\xe4hrung erfolgreich hinzugef\xfcgt!","currency_config_description":"W\xe4hrungen f\xfcr Preise und Zahlungen einrichten","currency_contract_address_description":"Die Vertragsadresse ist optional und stellt die Adresse des 40 Zeichen langen bereitgestellten Token-Vertrags im Ethereum-Netzwerk dar.","currency_count_header":"{count} W\xe4hrungen","currency_deleted":"W\xe4hrung erfolgreich gel\xf6scht","currency_exists":"W\xe4hrung mit demselben ISO-Code existiert bereits","currency_header":"1 W\xe4hrung","currency_updated":"W\xe4hrung erfolgreich aktualisiert!","current_password":"Aktuelles Passwort","customer_reviews":"Kundenbewertungen","customers_count":"Kunden","dashboard":"Dashboard","data":"Daten","date":"Datum","deactivate":"Deaktivieren","deactivate_assortment_description":"Wird in der Suche nicht sichtbar sein","deactivated":"Deaktiviert","decimals":"Dezimalstellen","default_currency":"Standardw\xe4hrung","default_system_locale":"Standard-Gebietsschema","delete":"L\xf6schen","delete_account":"Konto l\xf6schen","delete_account_confirmation":"Diese Aktion kann zu Inkonsistenzen mit anderen damit verbundenen Daten f\xfchren","delete_assortment":"Sortiment l\xf6schen","delete_assortment_confirmation":"M\xf6chten Sie dieses Sortiment wirklich l\xf6schen?","delete_assortment_filter_confirmation":"Sind Sie sicher, dass Sie diese Sprache l\xf6schen m\xf6chten?","delete_assortment_link":"Sind Sie sicher, dass Sie diese Sprache l\xf6schen m\xf6chten?","delete_assortment_media":"Medien l\xf6schen","delete_assortment_media_confirmation":"Sind Sie sicher, dass Sie dieses Bild l\xf6schen m\xf6chten?","delete_assortment_warning":"Diese Aktion l\xf6scht dieses Sortiment und alle zugeh\xf6rigen Daten dauerhaft. M\xf6chten Sie fortfahren?","delete_bundle_item":"Element l\xf6schen","delete_bundle_item_confirmation":"Sind Sie sicher, dass Sie dieses B\xfcndelelement l\xf6schen m\xf6chten?","delete_country":"Land l\xf6schen","delete_country_confirmation":"Diese Aktion k\xf6nnte Inkonsistenzen mit anderen Daten verursachen, die damit in Beziehung stehen. Sind Sie sicher, dass Sie dieses Land l\xf6schen m\xf6chten?","delete_currency":"W\xe4hrung l\xf6schen","delete_currency_confirmation":"Diese Aktion k\xf6nnte Inkonsistenzen mit anderen Daten verursachen, die damit in Beziehung stehen. Sind Sie sicher, dass Sie diese W\xe4hrung l\xf6schen m\xf6chten?","delete_delivery_provider":"Lieferung l\xf6schen","delete_delivery_provider_confirmation":"Diese Aktion k\xf6nnte Inkonsistenzen mit anderen Daten verursachen, die damit in Beziehung stehen. Sind Sie sicher, dass Sie diesen Lieferung l\xf6schen m\xf6chten?","delete_email":"E-Mail l\xf6schen","delete_email_confirmation":"Sind Sie sicher, dass Sie diese E-Mail l\xf6schen m\xf6chten?","delete_filter":"Filter l\xf6schen","delete_filter_confirmation":"Sind Sie sicher, dass Sie diesen Filter l\xf6schen m\xf6chten?","delete_filter_option":"Option l\xf6schen","delete_filter_option_confirmation":"Sind Sie sicher, dass Sie diese Filteroption l\xf6schen m\xf6chten?","delete_language":"Sprache l\xf6schen","delete_language_confirmation":"Diese Aktion k\xf6nnte Inkonsistenzen mit anderen Daten verursachen, die damit in Beziehung stehen. Sind Sie sicher, dass Sie diese Sprache l\xf6schen m\xf6chten?","delete_link":"Link l\xf6schen","delete_order":"Bestellung l\xf6schen","delete_order_confirmation":"Sind Sie sicher, dass Sie diese Bestellung l\xf6schen m\xf6chten?","delete_paymentProvider_confirmation":"Diese Aktion kann zu Inkonsistenzen mit anderen zugeh\xf6rigen Daten f\xfchren. M\xf6chten Sie diese Zahlungsintegration wirklich l\xf6schen?","delete_payment_provider":"Zahlungsintegration l\xf6schen","delete_payment_provider_confirmation":"Diese Aktion k\xf6nnte Inkonsistenzen mit anderen Daten verursachen, die damit in Beziehung stehen. Sind Sie sicher, dass Sie diese Zahlungsintegration l\xf6schen m\xf6chten?","delete_product":"Produkt l\xf6schen","delete_product_assignment":"Sind Sie sicher, dass Sie diese Zuweisung l\xf6schen m\xf6chten?","delete_product_confirmation":"Diese Aktion k\xf6nnte Inkonsistenzen mit anderen Daten verursachen, die damit in Beziehung stehen, und ist nicht umkehrbar. Sind Sie sicher, dass Sie dieses Produkt l\xf6schen m\xf6chten?","delete_product_media":"Medien l\xf6schen","delete_product_media_confirmation":"Sind Sie sicher, dass Sie diese Medien l\xf6schen m\xf6chten?","delete_product_tool_definition":"Produkt OLD123 l\xf6schen","delete_product_variation":"Variation l\xf6schen","delete_product_variation_confirmation":"Sind Sie sicher, dass Sie diese Variation l\xf6schen m\xf6chten?","delete_product_warning":"Diese Aktion l\xf6scht dieses Produkt und alle zugeh\xf6rigen Daten dauerhaft. M\xf6chten Sie fortfahren?","delete_review":"Bewertung l\xf6schen","delete_review_confirmation":"Sind Sie sicher, dass Sie diese Bewertung l\xf6schen m\xf6chten?","delete_user":"Benutzer l\xf6schen","delete_user_account":"Benutzerkonto l\xf6schen","delete_user_account_confirmation":"Diese Aktion kann zu Inkonsistenzen mit anderen damit verbundenen Daten f\xfchren","delete_user_warning":"Diese Aktion l\xf6scht diesen Benutzer und alle zugeh\xf6rigen Daten dauerhaft. M\xf6chten Sie fortfahren?","delete_variation_assignment":"Zuweisung l\xf6schen","delete_variation_option":"Option l\xf6schen","delete_variation_option_confirmation":"Sind Sie sicher, dass Sie diese Option l\xf6schen m\xf6chten?","delete_warehousing_provider":"Lagerintegration l\xf6schen","delete_warehousing_provider_confirmation":"Diese Aktion k\xf6nnte Inkonsistenzen mit anderen Daten verursachen, die damit in Beziehung stehen. Sind Sie sicher, dass Sie diese Lagerintegration l\xf6schen m\xf6chten?","delete_web3_address":"Web3-Adresse l\xf6schen","delete_web3_address_confirmation":"M\xf6chten Sie diese Web3-Adresse wirklich l\xf6schen?","delete_web_auth_credential":"Web-Authentifizierung l\xf6schen","delete_work":"Arbeit l\xf6schen","delete_work_confirmation":"Diese Aktion k\xf6nnte Inkonsistenzen mit anderen Daten verursachen, die damit in Beziehung stehen. Sind Sie sicher, dass Sie diese Arbeit l\xf6schen m\xf6chten?","deleted":"Gel\xf6scht","deleted_status":"Gel\xf6scht","deleted_text":"Gel\xf6scht","delivered":"Geliefert","delivery":"Lieferung","deliveryProviders_deleted":"Lieferung erfolgreich gel\xf6scht","delivery_address":"Lieferadresse","delivery_processing":"Versand & Lieferung","delivery_processing_config_description":"Liefermethoden sind bereits konfiguriert","delivery_provider":"Lieferungsintegrationen","delivery_provider_deleted":"Lieferungsintegration erfolgreich gel\xf6scht","delivery_provider_title":"Lieferungsintegration","delivery_providers":"Lieferungsintegrationen","delivery_status":"Status","description":"Beschreibung","discount":"Rabatt","discount_amount":"Rabattbetrag","discount_information":"Rabatte","discounts":"Rabatte","displayName":"Anzeigename","display_as_graph":"Als Grafik anzeigen","display_name":"Anzeigename","dont_have_account":"Haben Sie noch kein Konto?","draft":"Entwurf","draft_product_description":"Produkt wird nicht auffindbar sein und kann nicht bestellt werden","duration":"Dauer","edit":"Bearbeiten","edit_tags":"Tags bearbeiten","editor":"Bearbeiten","email":"E-Mail","email_added":"E-Mail erfolgreich hinzugef\xfcgt!","email_address":"E-Mail-Adresse","email_address_not_exist":"Die angegebene E-Mail-Adresse existiert nicht","email_addresses":"E-Mail-Adressen","email_already_exists_error":"E-Mail existiert bereits","email_deleted":"E-Mail {id} erfolgreich gel\xf6scht","email_exists_error":"E-Mail existiert bereits","email_verification_error":"E-Mail-Verifizierungsfehler","email_verification_failed":"E-Mail-Verifizierung fehlgeschlagen","email_verified_default":"E-Mail-Verifizierung unbekannt","email_verified_false":"E-Mail nicht verifiziert","email_verified_label":"E-Mail verifiziert","email_verified_successfully":"E-Mail erfolgreich verifiziert","email_verified_true":"E-Mail verifiziert","end":"Ende","end_date":"Enddatum","engine_version":"Engine-Version","enrollment":"Anmeldung","enrollment_count_header":"{count} Anmeldungen","enrollment_detail":"Anmeldungsdetails","enrollment_detail_title":"Anmeldung Details","enrollment_error":"Anmeldungsfehler","enrollment_header":"1 Anmeldung","enrollment_number":"Anmeldungsnummer","enrollment_page_title":"{count, plural, one {# Anmeldung} other {# Anmeldungen}}","enrollment_success":"Anmeldung erfolgreich","enrollment_success_message":"Ihre Anmeldung war erfolgreich","enrollment_updated_successfully":"Anmeldung erfolgreich gespeichert","enrollments":"Abonnemente","enter_tag":"Tag eingeben...","error":"Fehler","error-loading-image-alt":"Fehler beim Laden des Bildes","error-something-went-wrong":"Etwas ist schief gelaufen","error_403":"403 nicht autorisiert","error_404":"404 Fehler","error_423":"423 Gesperrt","error_500":"Interner Serverfehler (500)","error_commerce_quantity_null_required":"{label} should have one price with null /empty max quantity","error_contract_address":"Ung\xfcltige Vertragsadresse","error_country_code":"Ung\xfcltiger L\xe4ndercode","error_currency_code":"Ung\xfcltiger W\xe4hrungscode","error_date_after":"{label} must be after {dateToCompare}.","error_date_before":"{label} must be before {dateToCompare}.","error_email":"{label} muss eine g\xfcltige E-Mail-Adresse sein","error_invalid_date":"{label} ist kein g\xfcltiges Datum","error_language_code":"Ung\xfcltiger Sprachcode","error_loading_media":"Fehler beim Laden der Medien:","error_number_not_int":"Ung\xfcltiger Wert, bitte geben Sie eine Ganzzahl ein","error_phone_number_invalid":"Ung\xfcltige Telefonnummer","error_required":"{label} ist ein Pflichtfeld","error_same_product_prices":"{label} darf nicht gleich sein f\xfcr einen Preis mit demselben Land und derselben W\xe4hrung","error_server":"{details}","error_tag_required":"{label} mindestens ein Tag erforderlich","error_text_area_required":"{label} ist ein Pflichtfeld","essential_setup":"Grundeinrichtung","essential_setup_description":"Grundlegende Einstellungen, die f\xfcr das Funktionieren Ihres Shops erforderlich sind. Produkte und Sortimente k\xf6nnen erst nach Abschluss dieser Schritte hinzugef\xfcgt werden.","event":"Events","event_count_header":"{count} Ereignisse","event_detail":"Event Details","event_detail_title":"Events Details","event_header":"1 Ereignis","event_page_title":"{count, plural, one {# Ereignis} other {# Ereignisse}}","expand_navigation":"Navigation ausklappen","expired":"Abgelaufen","expires":"L\xe4uft ab","export":"Exportieren","exporting":"Exportiere...","extended-fields":"Erweiterte Felder","extensions":"Erweiterungen","fail_reorder":"Neuordnung fehlgeschlagen, versuchen Sie es erneut!","fail_upload":"Medien-Upload fehlgeschlagen","failed_tool_response":"Tool-Ergebnis konnte nicht geparst werden.","female":"Weiblich","filer_options":"Filter-Optionen","filter":"Filter","filter_activated":"Filter aktiviert!","filter_by_creation_date":"Nach Erstellungsdatum filtern","filter_by_type":"Nach Typ filtern","filter_count_header":"{count} Filter","filter_created":"Filter erfolgreich erstellt!","filter_deactivated":"Filter deaktiviert!","filter_deleted":"Filter erfolgreich gel\xf6scht","filter_detail":"Filterdetails","filter_detail_title":"Filter Details","filter_header":"1 Filter","filter_key":"Key","filter_key_already_exists":"Filterschl\xfcssel existiert bereits","filter_option_added_success":"Filteroption erfolgreich hinzugef\xfcgt","filter_option_title":"Titel","filter_option_value":"Wert","filter_page_title":"{count, plural, one {# Filter} other {# Filter}}","filter_text_form_description":"<ul><li>Sie k\xf6nnen die Sprache des Filters \xfcber das Dropdown-Men\xfc in der oberen rechten Ecke \xe4ndern</li></ul>","filter_type":"Filtertyp","filtered_results":"Gefilterte Ergebnisse","filters":"Filter","finished":"Beendet","first_name":"Vorname","forget_password":"Passwort vergessen?","forgot_password_header_description":"Geben Sie unten Ihre E-Mail-Adresse ein und wir senden Ihnen einen Link zum Zur\xfccksetzen Ihres Passworts!","from":"Von","from_last_month":"vom letzten Monat","fulfilled":"Abgeschlossen","fullName":"Vollst\xe4ndiger Name","full_name":"Vollst\xe4ndiger Name","gender":"Geschlecht","general_text":"Text","general_tool_definition":"Hilf mir mit {toolName}","generate_image_tool_definition":"Bannerbild generieren","get_product_tool_definition":"Details f\xfcr Produkt ABC123 anzeigen","go_back":"Zur\xfcck","go_back_home":"Zur\xfcck zur Startseite","go_to_login":"Zur Anmeldung","goodbye_simple":"Auf Wiedersehen\\\\!","goodbye_user":"Auf Wiedersehen, {name}\\\\!","gross_price":"Brutto","guest":"Gast","header_conformation":"Diese Aktion ist nicht umkehrbar, sind Sie sicher, dass Sie es als Hauptkategorie festlegen m\xf6chten?","header_title":"Hauptkategorie festlegen.","height":"H\xf6he (Millimeter)","hide_available_tools":"Verf\xfcgbare Tools ausblenden","home":"Dashboard","id":"ID","image-not-found":"Bild nicht gefunden","image_not_available":"Bild nicht verf\xfcgbar","import":"Importieren","import_results":"Importergebnisse","importing":"Importiere...","in_active":"Inaktiv","in_cart":"Im Warenkorb","in_valid":"Ung\xfcltig","inactive":"Inaktiv","include_drafts":"Entw\xfcrfe einbeziehen","include_inactive":"Inaktive einbeziehen","include_leaf":"Unterkategorien einbeziehen","initial":"Anf\xe4nglich","input":"Eingabe","install":"Installieren","interface":"Schnittstelle","internal_server_error":"500 Interner Serverfehler.","internal_server_error_message":"Entschuldigung, es liegt nicht an Ihnen, sondern an uns. Wir arbeiten daran, dies zu beheben.","invalid_credential_error":"Ung\xfcltige Anmeldedaten, bitte versuchen Sie es erneut","invalid_signature_length":"Ung\xfcltige Signatur","invalid_url":"Ung\xfcltige URL","invalidate-token":"Ung\xfcltig machen","invalidated":"Ung\xfcltig gemacht","invoice":"Rechnung","ip":"IP-Adresse","iso_code":"ISO-Code","item_quantity":"Menge:","items_created":"{count} Elemente erstellt","items_failed":"{count} {entityName} konnten nicht importiert werden","items_imported":"{count} {entityName} erfolgreich importiert ({created} erstellt, {updated} aktualisiert)","items_purchased":"Bestellte Artikel","key":"Schl\xfcssel","label":"Bezeichnung","labels":"Bezeichnungen","language":"Sprache","language_added":"Sprache erfolgreich hinzugef\xfcgt!","language_config_description":"Sprachen f\xfcr Inhalts\xfcbersetzung konfigurieren","language_count_header":"{count} Sprachen","language_deleted":"Sprache erfolgreich gel\xf6scht","language_exists":"Sprache mit demselben ISO-Code existiert bereits","language_header":"Languages","language_page_title":"{count, plural, one {# Sprache} other {# Sprachen}}","language_updated":"Sprache erfolgreich aktualisiert!","languages":"Sprachen","last_Name":"Nachname","last_login":"Letzter Login:","last_updated":"Zuletzt aktualisiert:","leaf":"Unterkategorie","leaf_assortment_description":"Kann als Unterelement eines anderen Sortiments zugewiesen werden","length_millimeter":"L\xe4nge (Millimeter)","link_reorder":"Link erfolgreich neu geordnet","linked_assortment":"Verkn\xfcpftes Sortiment","links":"Links","list_product_tool_definition":"Zeige alle Entwurfsprodukte","load-more-reviews":"Bewertungen laden","load_more":"Mehr laden","loading":"L\xe4dt...","loading_media":"Medien werden geladen...","log_in":"Anmelden","log_out":"Abmelden","login_date_range":"Zuletzt angemeldet","login_header":"Anmelden zu Ihrem Konto","make-proposal-header":"Angebotserstellung","make_leaf":"Zu Blatt machen","make_root":"Zu Wurzel machen","male":"M\xe4nnlich","manage":"Verwalten","mark_as_base":"Als Hauptkategorie markieren","mark_as_delivered":"Als geliefert markieren","mark_as_delivered_message":"Dies \xe4ndert den Lieferstatus der Bestellung auf geliefert","mark_as_delivered_question":"Als geliefert markieren?","mark_as_paid":"Als bezahlt markieren","mark_as_paid_question":"Als bezahlt markieren?","mark_as_paid_question_header":"Als bezahlt markieren?","max_quantity":"Maximale Menge","media":"Medien","media_add_tool_definition":"Mediendateien hinzuf\xfcgen","media_management_tool_definition":"Mediendateien verwalten","media_remover_tool_definition":"Mediendateien entfernen","media_subtitle":"Subtitle:","media_title":"Title:","media_updated":"Medien aktualisiert","message":"Nachricht","method":"Methode","mobile_phone":"Mobiltelefon","name":"Name","net_price":"Nettopreis","new_assortment_header":"Neues Sortiment","new_country_header":"Neues Land","new_currency_header":"Neue W\xe4hrung","new_delivery_provider":"Neuer Lieferung","new_filter_header":"Neuer Filter","new_language_header":"Neue Sprache","new_password":"Neues Passwort","new_payment_provider_header":"Neue Zahlungsintegration","new_product_header":"Neues Produkt","new_user_header":"Neuer Benutzer","new_warehousing_provider_header":"Neue Lagerintegration","next":"Weiter","no_assortments_found":"Keine passenden Sortimente gefunden","no_data_message":"<p>Keine <span> {message} verf\xfcgbar</span> </p>","no_internet_access":"Keine Internetverbindung","no_order_products_description":"Sobald Sie Ihre ersten Bestellungen erhalten, erscheinen hier Ihre meistverkauften Produkte.","no_orders_description":"Sobald Sie Ihre ersten Bestellungen erhalten, erscheinen hier Ihre meistverkauften Produkte.","no_orders_title":"Noch keine Bestellungen","no_payload":"Payload","no_result_found":"Kein Ergebnis gefunden","no_tag":"Kein Tag","no_variations_configured":"Noch keine Variationen konfiguriert. Bitte f\xfcgen Sie zuerst Variationen und deren Optionen im Variationen-Tab hinzu.","non_taxable":"Nicht steuerpflichtig","not-applicable":"Nicht zutreffend","not_access_message":"Sie haben nicht die erforderliche Berechtigung, um auf diese Seite zuzugreifen.","not_base":"Als Hauptkategorie markieren","not_found_message":"Die Seite, die Sie suchen, wurde nicht gefunden.","not_published":"Nicht ver\xf6ffentlicht","offline_help_message":"Bitte \xfcberpr\xfcfen Sie Ihre Verbindung und versuchen Sie es erneut","offline_mode":"Sie sind offline","ok":"OK","open":"Offen","open_sidebar":"Seitenleiste \xf6ffnen","option":"Option","options":"Optionen","or_drag_and_drop":"oder per Drag & Drop","or_manually_enter_address":"Oder Adresse manuell eingeben","order":"Bestellung","order__marked_delivered":"Bestellung erfolgreich als geliefert markiert","order_confirmed_success":"Bestellung erfolgreich best\xe4tigt","order_count_header":"{count} Bestellungen","order_date":"Bestelldatum","order_deleted":"Bestellung erfolgreich gel\xf6scht","order_header":"1 Bestellung","order_id":"Bestellung","order_number":"Bestellung #","order_page_title":"{count, plural, one {# Bestellung} other {# Bestellungen}}","order_paid":"Bestellung erfolgreich bezahlt","order_payment_fees":"Bestellgeb\xfchren","order_placed":"Bestellung aufgegeben","order_reject_success":"Bestellung erfolgreich abgelehnt","order_total":"Bestellsumme","orders":"Bestellungen","original_work_id":"Original Arbeits-ID","overall_progress":"Gesamtfortschritt","page_not_found":"Page not found.","paginated-data":"<p> Zeige <span>{from}</span> bis <span>{to}</span> von <span>{total}</span> Ergebnissen </p>","paid":"Bezahlt","password":"Passwort","password_change_failed":"Password change failed, try again later","password_changed_success":"Passwort erfolgreich ge\xe4ndert.","password_identical":"Das angegebene neue Passwort ist identisch mit dem vorherigen Passwort","password_insecure":"Passwort ist ung\xfcltig, m\xf6glicherweise zu unsicher","password_mismatch":"Password fields don\'t match","password_success":"Passwort erfolgreich ge\xe4ndert.","pay":"Als bezahlt markieren","payload":"Payload","payment":"Zahlung","payment_credentials":"Zahlungsanmeldedaten","payment_detail_title":"Zahlungsintegration {id}","payment_processing":"Zahlungsabwicklung","payment_processing_config_description":"Rechnungs-Zahlungsanbieter ist bereits konfiguriert","payment_provider":"Zahlungsintegration","payment_provider_deleted":"Zahlungsintegration erfolgreich gel\xf6scht","payment_providers":"Zahlungsintegrationen","pending":"Ausstehend","periods":"Zeitr\xe4ume","permission_missing":"Berechtigung fehlt","photo":"Foto","plan_product_definition":"<h3>Abonnement</h3> <p>Das Abonnement-Produkt wird verwendet, wenn Sie ein Produkt auf Abonnementbasis anbieten. Da die Zahlung f\xfcr diesen Produkttyp normalerweise wiederkehrend ist, k\xf6nnen Sie das Intervall der Zahlungsberechnung anpassen.</p>","postal_code":"Postal/ZIP code","preferred":"Bevorzugt","preview":"Vorschau","previous":"Zur\xfcck","price":"Preis","price_range":"Preisspanne","priority":"Priorit\xe4t","process-quotation-submit":"Als verarbeitet markieren","product":"Product","product-image":"Produktbild","product-scaffolded-success":"Produkt erfolgreich ger\xfcstet","product_added":"Produkt erfolgreich hinzugef\xfcgt!","product_assignments_explanation_text":"Produktzuweisungen erm\xf6glichen es Ihnen, spezifische Produkte mit jeder einzigartigen Kombination von Variationsoptionen zu verkn\xfcpfen. Zum Beispiel, wenn Sie ein T-Shirt mit \'Gr\xf6sse\' und \'Farbe\' Variationen haben, k\xf6nnen Sie verschiedene Produkt-SKUs zu jeder Kombination wie \'Gross + Rot\' oder \'Klein + Blau\' zuweisen. Dies ist n\xfctzlich f\xfcr die Verwaltung von Lagerbestand, Preisgestaltung und Produktdetails f\xfcr jede spezifische Variante.","product_assignments_explanation_title":"\xdcber Produktzuweisungen","product_commerce_info":"Eine Preisliste sollte ein leeres Feld f\xfcr die maximale Menge haben und kein Preis sollte die gleiche maximale Menge zusammen mit der angegebenen W\xe4hrung und dem Land haben","product_creation_failed":"Produkterstellung fehlgeschlagen","product_delete_blocked_action":"Bitte trennen Sie die Verkn\xfcpfung, bevor Sie versuchen, es zu l\xf6schen.","product_delete_blocked_header":"Links vor dem L\xf6schen entfernen","product_delete_blocked_intro":"Dieses Produkt ist mit den folgenden Produkttypen verkn\xfcpft:","product_deleted":"Produkt erfolgreich gel\xf6scht","product_deleted_notice":"Dieses Produkt wurde gel\xf6scht und ist nicht mehr aktiv. Einige Aktionen sind m\xf6glicherweise eingeschr\xe4nkt.","product_deleted_success":"Produkt erfolgreich gel\xf6scht","product_drafted":"Erfolgreich als Entwurf gespeichert","product_import.validation.invalid_type":"Ung\xfcltiger Produkttyp: {type}","product_import.validation.title_required":"Titel ist erforderlich","product_load_error":"Produkt konnte nicht geladen werden","product_media":"Produktmedien","product_media_deleted":"Medien erfolgreich gel\xf6scht","product_media_upload":"Medien erfolgreich hochgeladen","product_page_title":"{count, plural, one {# Produkt} other {# Produkte}}","product_publish_error":"Produkt konnte nicht ver\xf6ffentlicht werden","product_published":"Erfolgreich ver\xf6ffentlicht","product_quantity":"Quantity","product_review_added":"Bewertung erfolgreich hinzugef\xfcgt!","product_review_updated":"Bewertung erfolgreich aktualisiert!","product_subscription_form_description":"<ul><li>Informationen, die zur Berechnung des Preises eines abonnementbasierten Produkts verwendet werden</li><li>Der im Commerce-Bereich angegebene Preis wird zur Berechnung der Geb\xfchren f\xfcr jedes Intervall verwendet.</li><li>Der Preis wird w\xe4hrend des angegebenen Testzeitraums nicht berechnet</li></ul>","product_text_form_description":"<ul> <li><strong>Slug:</strong> Der einzigartige Teil Ihrer Produkt-URL (z.B. \'mein-tolles-produkt\'). Halten Sie ihn kurz und aussagekr\xe4ftig.</li> <li><strong>Lokalisierung:</strong> Wechseln Sie die Sprachen \xfcber das Sprach-Toggle unten links, um Inhalte f\xfcr verschiedene M\xe4rkte zu \xfcbersetzen.</li> <li><strong>Beschreibung:</strong> Unterst\xfctzt Markdown- und HTML-Formatierung. Verwenden Sie doppelte Backslashes (\\\\\\\\) f\xfcr Zeilenumbr\xfcche.</li> <li><strong>Labels:</strong> Auff\xe4llige Badges, die auf Ihrem Produkt erscheinen (z.B. \'Neuheit\', \'50% Rabatt\', \'Limitierte Auflage\'). Perfekt f\xfcr Aktionen und besondere Merkmale. Jede Sprache kann einzigartige Labels haben.</li> <li><strong>Wichtiger Unterschied:</strong> Labels sind kundenorientierte Werbe-Badges, w\xe4hrend Tags interne Schl\xfcsselw\xf6rter f\xfcr Organisation und Filterung sind.</li> </ul>","product_title":"Product","product_type":"Produkttyp","product_unpublish_error":"Produkt konnte nicht zur\xfcckgezogen werden","product_variation_added":"Produktvariation erfolgreich hinzugef\xfcgt","product_variation_deleted":"Variation erfolgreich gel\xf6scht","product_variation_key_help":"Eindeutige Kennung f\xfcr interne Verwendung (z.B. \\"farbe\\", \\"groesse\\"). Verwenden Sie Kleinbuchstaben ohne Leerzeichen.","product_variation_option_deleted":"Variationsoption erfolgreich gel\xf6scht","product_variation_title_help":"Der Anzeigename, den Kunden sehen werden (z.B. \\"Farbe\\", \\"Gr\xf6sse\\", \\"Material\\")","product_variations_explanation":"Variationen erm\xf6glichen es Kunden, verschiedene Optionen f\xfcr Ihr Produkt zu w\xe4hlen (wie Farbe, Gr\xf6sse, Material). Jede Variation kann mehrere Optionen haben, aus denen Kunden w\xe4hlen k\xf6nnen.","product_variations_explanation_title":"\xdcber Produktvariationen","products":"Produkte","products_config_description":"Erstellen Sie Ihre ersten Produkte","products_count":"Produkte","products_count_header":"{count} Produkte","products_data_unavailable":"Produktdaten nicht verf\xfcgbar","products_found":"{count} Produkte gefunden","products_header":"1 Produkt","products_not_found":"Keine {status} Produkte in diesen Ergebnissen gefunden","profile":"Profil","profile_notice":"Diese Informationen werden \xf6ffentlich angezeigt, seien Sie also vorsichtig, was Sie weitergeben.","profile_updated":"Profil erfolgreich aktualisiert!","provider_created_success":"Anbieter erfolgreich erstellt!","publish_product_description":"Produkt wird sichtbar sein und kann bestellt werden","publish_product_tool_definition":"Produkt XYZ456 ver\xf6ffentlichen","published":"Ver\xf6ffentlicht","quantity":"Quantity","quotation":"quotation","quotation-context-input-label":"Angebotskontext","quotation-quoted-successfully":"Erfolgreich angeboten","quotation-rejection-successfully":"Angebot erfolgreich abgelehnt","quotation-verified-successfully":"Angebot erfolgreich verifiziert","quotation_count_header":"{count} Angebote","quotation_detail":"Angebotsdetails","quotation_detail_title":"Angebot Details","quotation_header":"1 Angebot","quotation_number":"Quotation number","quotation_page_title":"{count, plural, one {# Angebot} other {# Angebote}}","quotation_updated":"Angebot erfolgreich aktualisiert","quotations":"Angebotsanfragen","recent_reviews":"Neueste Bewertungen","region":"Region","region_Code":"Region","register-with-web3":"Registrieren","reject-quotation-quotation":"Angebot ablehnen?","reject-quotation-submit":"Ablehnen","reject_order":"Reject order","reject_order_alert_button":"Reject","reject_order_alert_header":"Reject order?","rejected":"Abgelehnt","remove_product_media_tool_definition":"Produktmedien entfernen","reorder_original":"An urspr\xfcngliche Position zur\xfcckordern","report-submit":"Absenden","request_new_reset_link":"Neuen Reset-Link anfordern","request_new_verification":"Neue Verifizierung anfordern","requested":"Angefordert","required-role-not-satisfied":"Das aktuelle Konto hat keinen Zugang, bitte melden Sie sich mit einem Konto an, das die erforderliche Rolle hat. Wenden Sie sich f\xfcr weitere Informationen an den Systemadministrator","required_steps_note":"Erforderlich f\xfcr grundlegende Shop-Funktionalit\xe4t","reset_link_sent":"Password reset link sent to {email}","reset_password":"Passwort zur\xfccksetzen","reset_password_header_description":"Gib dein neues Passwort ein und stelle sicher, dass du es diesmal nicht vergisst.","reset_token_error":"Reset-Token-Fehler","reset_token_expired":"Das Reset-Token ist abgelaufen.","reset_token_invalid_warning":"Das Reset-Token ist entweder ung\xfcltig oder abgelaufen. Bitte verwenden Sie den letzten Reset-Link aus Ihrer E-Mail oder starten Sie den Vorgang erneut unter {link}","resolved_country":"Aufgel\xf6stes Land","resolved_language":"Aufgel\xf6ste Sprache","rest_password":"Passwort zur\xfccksetzen","result":"Result","retries":"Retries","retry":"Wiederholen","retry-work":"Wiederholen","review":"Bewertung","review_data":"Bewertungsdaten","review_deleted":"Bewertung {reviewId} erfolgreich gel\xf6scht","review_placeholder":"Teilen Sie Ihre Meinung zu diesem Produkt...","review_summary":"<div> Basiert auf <cta> {total} </cta> Bewertungen</div>","reviews":"Bewertungen","role_updated":"Rolle erfolgreich aktualisiert!","roles":"Roles","root":"Root","root_assortment":"Root","root_assortment_description":"Kann nicht als Unterkategorie eines anderen Sortiments zugewiesen werden","root_assortments_count":"{count} Hauptsortimente gefunden","root_description":"Dies macht das Sortiment zu einer Kategorie der obersten Ebene","root_node":"Root node","save":"Speichern","saved":"Gespeichert","say_hi_get_to_know_me":"Sagen Sie Hallo und lernen Sie mich kennen","scaffold_product":"Ger\xfcst","scheduled":"Geplant","search":"Suchen","search_product":"Search product","select_language":"Sprache ausw\xe4hlen","select_option":"Option ausw\xe4hlen","select_options_toggle":"\xc4ndere {type} Status","select_role":"Rolle ausw\xe4hlen","select_tab":"Tab ausw\xe4hlen","select_type":"Typ ausw\xe4hlen","select_valid_csv_error":"Bitte w\xe4hlen Sie eine g\xfcltige CSV-Datei aus.","send__enrollment_email_button":"Anmeldungs-E-Mail senden","send_activation_email_confirm":"Sind Sie sicher, dass Sie die E-Mail senden m\xf6chten?","send_activation_email_header":"E-Mail senden.","send_button":"Senden","send_email_button":"E-Mail senden","send_reset_link":"Passwort-Zur\xfccksetzungslink senden","send_verification_mail":"Send verification mail","sequence":"Anzeigereihenfolge","set_password":"Passwort festlegen","setup_complete":"Abgeschlossen","setup_now":"Jetzt einrichten","shipping":"Versand","shipping_method":"Versand","shop_info":"Shop-Info","shop_info_tool_definition":"Shop-Konfiguration anzeigen","shop_setup_complete":"Shop-Einrichtung abgeschlossen!","shop_setup_complete_description":"Herzlichen Gl\xfcckwunsch! Ihr Shop ist vollst\xe4ndig konfiguriert und bereit, Bestellungen anzunehmen.","shop_setup_description":"Folgen Sie diesen Schritten, um Ihren Shop zu konfigurieren und mit dem Verkauf zu beginnen.","shortcuts":"Shortcuts","show_all_products":"Alle Produkte anzeigen","show_available_tools":"Verf\xfcgbare Tools anzeigen","show_carts":"Warenk\xf6rbe anzeigen","show_error_details":"Fehlerdetails anzeigen","show_full_response":"Vollst\xe4ndige Antwort anzeigen","show_guests":"G\xe4ste anzeigen","show_inactive":"Inaktive anzeigen","show_less":"Weniger anzeigen","sign_address_header":"Adresse signieren","sign_up":"Registrieren","sign_up_header":"Registrieren Sie sich f\xfcr ein Konto","signature_hash":"Signatur-Hash","signature_not_match_error":"Signatur stimmt nicht \xfcberein","simple_product_definition":"<h3>Einfach</h3> <p>Das einfache Produkt ist der am h\xe4ufigsten verwendete Produkttyp. Es akzeptiert Konfigurationswerte f\xfcr Preis, Abmessungen und Lagerung. Die meisten E-Commerce-Produktanforderungen werden durch diesen Typ erf\xfcllt.</p>","sku":"Artikelnummer","slug":"Slug","star_reviews":"Sterne-Bewertungen","start":"Start","start_date":"Startdatum","started":"Gestartet","status":"Status","submit":"Absenden","subscription":"Abonnement","subscription_message":"Abonnement","subscription_product_type_not_valid":"Der Status des Produkts erlaubt diese Operation nicht","subscriptions":"Abonnemente","subtitle":"Untertitel","subtotal":"Zwischensumme","success_message":"Abonnement erfolgreich aktiviert.","supply":"Lieferdaten","system":"System","system_information":"Systeminformationen","table_actions_menu":"Aktionsmen\xfc","tags":"Tags","tags_updated":"Tags erfolgreich aktualisiert","tax":"Steuer","taxable":"Steuerpflichtig","terminate_enrollment":"Anmeldung beenden","terminate_enrollment_confirmation":"Sind Sie sicher, dass Sie dieses Abonnement beenden m\xf6chten?","terminate_enrollment_error":"Fehler beim Senden der Abonnement-Aktivierungs-E-Mail, bitte versuchen Sie es erneut","terminate_enrollment_success":"Abonnement {enrollmentId} erfolgreich beendet","terminate_subscription":"Abonnement beenden","text":"Text","texts":"Texte","thank_you_for_verifying":"Danke, dass Sie Ihre E-Mail-Adresse verifiziert haben!","tiered_pricing":"Gestaffelte Preise","time":"Zeit","title":"Titel","title_not_found":"Titel nicht gefunden","to":"Bis","token":"Token","token-id":"Token-ID","token-id-label":"Token-ID","token-supply":"Vorrat","token_count_header":"{count} Token","token_header":"1 Token","token_invalid_expired":"Token ung\xfcltig/abgelaufen","token_invalidation_date":"Ung\xfcltig gemacht","token_page_title":"{count, plural, one {# Token} other {# Token}}","token_updated":"Token erfolgreich aktualisiert!","tokenized_product_text_form_description":"<b>Vertragsstandards</b> <ol> <dt><b>ERC721</b></dt> <dd>Der Kauf mehrerer Produkte f\xfchrt zu mehreren Token (stellen Sie sicher, dass Sie die tokenId auf 0 setzen, um automatisch neue IDs zu generieren)</dd> <dt><b>ERC1155</b></dt> <dd>Der Kauf mehrerer Produkte f\xfchrt zu einem neuen Token mit Guthaben 3 des Tokens mit zugewiesener tokenId</dd> <dt><b>Vertragsadresse</b></dt> <dd>Adresse eines Tokens in einem bestimmten Netzwerk</dd> </ol>","tokens":"Token","tool_fetch_failed_error":"Verf\xfcgbare Tools konnten nicht geladen werden","tool_response":"Tool-Antwort","top_selling_products":"Meistverkaufte Produkte","total":"Total","total_orders":"Bestellungen","total_records":"{total} Datens\xe4tze gefunden","total_sales":"Gesamtumsatz","trial":"Testversion","trial_interval_unit":"Testintervall-Einheit","trial_unit":"Testeinheit","try_again":"Erneut versuchen","type":"Type","type_colon":"Type:","unauthorized_page":"verboten","unchained_logo":"Unchained Logo","unpublish_product_tool_definition":"Winterkollektion zur\xfcckziehen","untitled_assortment":"Unbenanntes Sortiment","unverified":"Nicht verifiziert","update":"Aktualisieren","update_configuration":"Konfiguration aktualisieren","update_country":"Land aktualisieren","update_currency":"W\xe4hrung aktualisieren","update_delivery_configuration":"Lieferkonfiguration aktualisieren","update_filter":"Update filter","update_language":"Sprache aktualisieren","update_payment_provider_header":"Zahlungsintegration aktualisieren","update_profile":"Profil aktualisieren","update_review":"Bewertung aktualisieren","update_role":"Update role","update_token":"Token aktualisieren","update_warehousing_provider_header":"Lagerintegration aktualisieren","updated":"Aktualisiert","upload":"Upload","upload_file":"Datei hochladen","usage_calculation_type":"Verwendungstyp","use-another-account":"Anderes Konto verwenden","use_another_verification_token":"Bitte nochmals versuchen, einen Verifizierungscode zu senden","use_authenticator":"Authenticator verwenden","use_latest_reset_link":"Bitte verwenden Sie den neuesten Reset-Link aus Ihrer E-Mail oder fordern Sie einen neuen an","use_latest_verification_link":"Bitte verwenden Sie den neuesten Verifizierungslink aus Ihrer E-Mail","user":"User","user-activities":"Aktivit\xe4t","user_avatar":"Benutzer-Avatar","user_count_header":"{count} Benutzer","user_deleted":"Benutzer erfolgreich gel\xf6scht","user_detail_title":"Benutzer Details","user_header":"1 Benutzer","user_page_title":"{count, plural, one {# Benutzer} other {# Benutzer}}","user_password_not_set":"Benutzerpasswort nicht festgelegt","user_profile_created":"Benutzerprofil erfolgreich erstellt!","username":"Benutzername","username_exists_error":"Der Benutzername ist vergeben. Bitte geben Sie einen anderen ein.","username_or_email":"Benutzername/E-Mail","username_or_email_taken":"Benutzername vergeben, bitte geben Sie einen anderen Benutzernamen an","username_updated":"Benutzername erfolgreich aktualisiert!","users":"Benutzer","users_setting_list_header":"Benutzereinstellungen","valid":"G\xfcltig","value":"Wert","variation_id":"Variations-ID","variation_option":"Variationsoption","variation_option_added":"Variationsoption erfolgreich hinzugef\xfcgt!","variation_option_title_help":"Anzeigename, den Kunden sehen (z.B. \\"Rot\\", \\"Gross\\", \\"Baumwolle\\")","variation_option_updated":"Variationsoption erfolgreich aktualisiert!","variation_option_value_help":"Interne Kennung (z.B. \\"rot\\", \\"gross\\", \\"baumwolle\\")","variation_options_explanation":"F\xfcgen Sie einzelne Auswahlm\xf6glichkeiten f\xfcr diese Variation hinzu (z.B. \\"Rot\\", \\"Blau\\", \\"Gr\xfcn\\" f\xfcr eine Farbvariation)","variations":"Variationen","vat_suspect":"MwSt.-pflichtig","vendor":"Anbieter","verification_failed":"Verifizierung fehlgeschlagen","verification_failed_status":"Verifizierung fehlgeschlagen","verification_sent_error":"Fehler beim Senden der Verifizierungs-E-Mail, bitte versuchen Sie es erneut","verification_sent_success":"Verifizierungs-E-Mail erfolgreich gesendet","verification_successful":"Verifizierung erfolgreich","verification_token_expired":"Verification token abgelaufen","verification_web3_address":"Verifizieren","verified":"Verifiziert","verify-quotation-quotation":"Angebot verifizieren?","verify-quotation-submit":"Verifizieren","verify_email_token_invalid_error":"Das E-Mail-Verifizierungs-Token ist entweder ung\xfcltig oder abgelaufen. Bitte verwenden Sie den letzten Reset-Link aus Ihrer E-Mail oder starten Sie den Vorgang erneut unter {link}","version":"Version","wallet-address":"Wallet {walletAddress}","warehouse_detail_title":"Lager {id}","warehousing":"Lagerung","warehousing_provider":"Lagerintegrationen","warehousing_provider_deleted":"Lagerintegration erfolgreich gel\xf6scht","warning":"Warnung!","web3_address":"Web3-Adresse","web3_address_added":"Adresse erfolgreich hinzugef\xfcgt!","web3_address_deleted":"Adresse erfolgreich gel\xf6scht","web3_address_signature_instruction":"<p>Kopieren Sie die folgende Nonce <b>({nonce})</b> und f\xfcgen Sie die Signatur in das unten bereitgestellte Feld ein</p>","web3_address_verify_link":"<p>Gehen Sie zu <a>etherscan</a>, um die Adresse zu verifizieren</p>","web3_addresses":"Web3-Adressen","web3_verified_success":"Adresse erfolgreich verifiziert!","web_auth_credential_removed":"Berechtigung erfolgreich entfernt","web_auth_icon":"Auth-Symbol","web_auth_username_required":"Ein Benutzername ist erforderlich, um WebAuthn zu verwenden","web_authentication":"Web-Authentifizierung","weight_gram":"Gewicht (Gramm)","welcome_user":"Willkommen zur\xfcck, {name}\\\\!","width":"Breite (Millimeter)","with_children":"Mit Kindern","work_added_success":"Arbeit erfolgreich hinzugef\xfcgt!","work_allocated_success":"Arbeit erfolgreich zugewiesen!","work_count_header":"{count} Arbeitselemente","work_created":"Erstellt","work_deleted":"Arbeit {workId} erfolgreich gel\xf6scht","work_detail":"Arbeitsdetails","work_detail_title":"Arbeitsdetails {id}","work_finished":"Beendet","work_header":"1 Arbeitselement","work_management_setting_list_header":"Arbeitsverwaltungseinstellungen","work_original":"Originalarbeit","work_page_title":"{count, plural, one {# Arbeitselement} other {# Arbeitselemente}}","work_priority":"Priorit\xe4t","work_queue":"Job-Queue","work_queue_header":"Arbeitsqueue","work_queue_problem_detected":"Probleme in der Arbeitswarteschlange erkannt","work_retries":"Wiederholungen","work_scheduled":"Geplant","work_started":"Gestartet","work_status":"Work Status","work_type":"Work Typ","work_type_header":"Typ","worker":"Arbeiter","worker_dynamic":"{worker}","write_review":"Bewertung schreiben","complete_system_setup":"Setup abschlie\xdfen","default_country_info_description":"Wenn Sie mehrere L\xe4nder unterst\xfctzen, legen Sie bitte das Basisland fest, indem Sie die Umgebungsvariable UNCHAINED_COUNTRY setzen, z. B. UNCHAINED_COUNTRY=ch. Auf diese Weise wei\xdf Unchained, welche Lokalisierung gesendet werden soll, wenn das Land nicht anhand des User-Agent-Headers bestimmt werden kann.","default_country_info_title":"\xdcber das Basisland","default_currency_info_description":"Bitte legen Sie die Basisw\xe4hrung fest, indem Sie die Umgebungsvariable UNCHAINED_CURRENCY setzen, z. B. UNCHAINED_CURRENCY=CHF. So wei\xdf Unchained, welche W\xe4hrung als Fallback verwendet werden soll, wenn sie nicht aus dem Kontext ermittelt werden kann.","default_currency_info_title":"\xdcber die Basisw\xe4hrung","default_language_info_description":"Bitte legen Sie die Basissprache fest, indem Sie die Umgebungsvariable UNCHAINED_LANG setzen, z. B. UNCHAINED_LANG=en. So wei\xdf Unchained, welche Lokalisierung gesendet werden soll, wenn die Sprache des User-Agent nicht erkannt werden kann.","default_language_info_title":"\xdcber die Basissprache","action_edit":null,"date_range_prefix":null,"date_range_to":null,"detail":null,"last_order_date":null,"no_customers":null,"product_id":null,"product_no_price":null,"product_revenue":null,"product_sold":null,"product_untitled":null,"provider_configuration_items":null,"retry_prompt":null,"top_selling_no_products":null,"total_spent":null,"assignment.sku":null,"assignment.title":null,"dismiss":null,"documentation":null,"filter.active":null,"filter.created":null,"filter.inactive":null,"filter.noOptions":null,"filter.sortKey":null,"filter.updated":null,"hide_payload":null,"media.created":null,"media.size":null,"media.type":null,"media.updated":null,"no_event_found":null,"no_statistics_available":null,"order_status":null,"show_payload":null,"variation.created":null,"variation.id":null,"variation.productId":null,"variation.untitled":null,"variation.updated":null,"view":null,"bundle_products":null,"chat.error.auth":null,"chat.error.connection":null,"chat.error.stream":null,"chat.error.submission":null,"chat.error.unexpected":null,"dimensions":null,"media.id":null,"no_price":null,"no_users_found":null,"no_works_found":null,"operation_failed":null,"operation_success":null,"unit":null,"untitled_product":null,"weight":null,"active_types":null,"events":null,"items":null,"no_active_types":null,"worker.dateRange":null,"worker.deleteCount":null,"worker.errorCount":null,"worker.newCount":null,"worker.noStatistics":null,"worker.startCount":null,"worker.successCount":null,"workers":null,"ordered":null,"registered":null}')},g=e=>{var t;let r=(null==e||null==(t=e.split("-"))?void 0:t.shift())||"de";return({...m})[r]};r(69368),r(72539);var _=r(4902),y=r(83933),v=r(37154),b=r(74769),w=r(53279),k=r(56186);function E(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=(0,_.__assign)({timeZone:t},e[n]),r},{})}function x(e,t){return Object.keys((0,_.__assign)((0,_.__assign)({},e),t)).reduce(function(r,n){return r[n]=(0,_.__assign)((0,_.__assign)({},e[n]||{}),t[n]||{}),r},{})}function S(e,t){if(!t)return e;var r=w.S.formats;return(0,_.__assign)((0,_.__assign)((0,_.__assign)({},r),e),{date:x(E(r.date,t),E(e.date||{},t)),time:x(E(r.time,t),E(e.time||{},t))})}var T=function(e,t,r,n,i){var a=e.locale,s=e.formats,o=e.messages,l=e.defaultLocale,u=e.defaultFormats,c=e.fallbackOnEmptyString,d=e.onError,h=e.timeZone,f=e.defaultRichTextElements;void 0===r&&(r={id:""});var p=r.id,m=r.defaultMessage;(0,y.V1)(!!p,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var g=String(p),v=o&&Object.prototype.hasOwnProperty.call(o,g)&&o[g];if(Array.isArray(v)&&1===v.length&&v[0].type===b.ZE.literal)return v[0].value;if(!n&&v&&"string"==typeof v&&!f)return v.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=(0,_.__assign)((0,_.__assign)({},f),n||{}),s=S(s,h),u=S(u,h),!v){if(!1===c&&""===v)return v;if((!m||a&&a.toLowerCase()!==l.toLowerCase())&&d(new k.sb(r,a)),m)try{var w=t.getMessageFormat(m,l,u,i);return w.format(n)}catch(e){return d(new k.Ho('Error formatting default message for: "'.concat(g,'", rendering default message verbatim'),a,r,e)),"string"==typeof m?m:g}return g}try{var w=t.getMessageFormat(v,a,s,(0,_.__assign)({formatters:t},i||{}));return w.format(n)}catch(e){d(new k.Ho('Error formatting message: "'.concat(g,'", using ').concat(m?"default message":"id"," as fallback."),a,r,e))}if(m)try{var w=t.getMessageFormat(m,l,u,i);return w.format(n)}catch(e){d(new k.Ho('Error formatting the default message for: "'.concat(g,'", rendering message verbatim'),a,r,e))}return"string"==typeof v?v:"string"==typeof m?m:g},A=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function I(e,t,r,n){var i=e.locale,a=e.formats,s=e.onError,o=e.timeZone;void 0===n&&(n={});var l=n.format,u=(0,_.__assign)((0,_.__assign)({},o&&{timeZone:o}),l&&(0,y.F3)(a,t,l,s)),c=(0,y.J9)(n,A,u);return"time"!==t||c.hour||c.minute||c.second||c.timeStyle||c.dateStyle||(c=(0,_.__assign)((0,_.__assign)({},c),{hour:"numeric",minute:"numeric"})),r(i,c)}function N(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],s="string"==typeof i?new Date(i||0):i;try{return I(e,"date",t,void 0===a?{}:a).format(s)}catch(t){e.onError(new k.pg("Error formatting date.",e.locale,t))}return String(s)}function C(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],s="string"==typeof i?new Date(i||0):i;try{return I(e,"time",t,void 0===a?{}:a).format(s)}catch(t){e.onError(new k.pg("Error formatting time.",e.locale,t))}return String(s)}function O(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],s=r[2],o="string"==typeof i?new Date(i||0):i,l="string"==typeof a?new Date(a||0):a;try{return I(e,"dateTimeRange",t,void 0===s?{}:s).formatRange(o,l)}catch(t){e.onError(new k.pg("Error formatting date time range.",e.locale,t))}return String(o)}function P(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],s="string"==typeof i?new Date(i||0):i;try{return I(e,"date",t,void 0===a?{}:a).formatToParts(s)}catch(t){e.onError(new k.pg("Error formatting date.",e.locale,t))}return[]}function D(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],a=r[1],s="string"==typeof i?new Date(i||0):i;try{return I(e,"time",t,void 0===a?{}:a).formatToParts(s)}catch(t){e.onError(new k.pg("Error formatting time.",e.locale,t))}return[]}var M=r(26382),L=["style","type","fallback","languageDisplay"];function R(e,t,r,n){var i=e.locale,a=e.onError;Intl.DisplayNames||a(new M.IF('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',M.O4.MISSING_INTL_API));var s=(0,y.J9)(n,L);try{return t(i,s).of(r)}catch(e){a(new k.pg("Error formatting display name.",i,e))}}var F=["type","style"],j=Date.now();function z(e,t,r,n){void 0===n&&(n={});var i=B(e,t,r,n).reduce(function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e},[]);return 1===i.length?i[0]:0===i.length?"":i}function B(e,t,r,n){var i=e.locale,a=e.onError;void 0===n&&(n={}),Intl.ListFormat||a(new M.IF('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',M.O4.MISSING_INTL_API));var s=(0,y.J9)(n,F);try{var o={},l=r.map(function(e,t){if("object"==typeof e){var r="".concat(j,"_").concat(t,"_").concat(j);return o[r]=e,r}return String(e)});return t(i,s).formatToParts(l).map(function(e){return"literal"===e.type?e:(0,_.__assign)((0,_.__assign)({},e),{value:o[e.value]||e.value})})}catch(e){a(new k.pg("Error formatting list.",i,e))}return r}var U=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function V(e,t,r){var n=e.locale,i=e.formats,a=e.onError;void 0===r&&(r={});var s=r.format,o=s&&(0,y.F3)(i,"number",s,a)||{};return t(n,(0,y.J9)(r,U,o))}function q(e,t,r,n){void 0===n&&(n={});try{return V(e,t,n).format(r)}catch(t){e.onError(new k.pg("Error formatting number.",e.locale,t))}return String(r)}function Z(e,t,r,n){void 0===n&&(n={});try{return V(e,t,n).formatToParts(r)}catch(t){e.onError(new k.pg("Error formatting number.",e.locale,t))}return[]}var H=["type"];function $(e,t,r,n){var i=e.locale,a=e.onError;void 0===n&&(n={}),Intl.PluralRules||a(new M.IF('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',M.O4.MISSING_INTL_API));var s=(0,y.J9)(n,H);try{return t(i,s).select(r)}catch(e){a(new k.pg("Error formatting plural.",i,e))}return"other"}var G=["numeric","style"];function W(e,t,r,n,i){void 0===i&&(i={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new M.IF('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',M.O4.MISSING_INTL_API));try{var a,s,o,l,u,c;return(a=i,s=e.locale,o=e.formats,l=e.onError,void 0===a&&(a={}),c=!!(u=a.format)&&(0,y.F3)(o,"relative",u,l)||{},t(s,(0,y.J9)(a,G,c))).format(r,n)}catch(t){e.onError(new k.pg("Error formatting relative time.",e.locale,t))}return String(r)}var K=r(10143);function Q(e){return e?Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=(0,K.RK)(n)?(0,v.yU)(n):n,t},{}):e}var J=function(e,t,r,n){for(var i=[],a=4;a<arguments.length;a++)i[a-4]=arguments[a];var s=Q(n),o=T.apply(void 0,(0,_.__spreadArray)([e,t,r,s],i,!1));return Array.isArray(o)?(0,v.SP)(o):o},Y=function(e,t){var r,n,i,a,s,o,l,u=e.defaultRichTextElements,c=(0,_.__rest)(e,["defaultRichTextElements"]),d=Q(u),h=(r=(0,_.__assign)((0,_.__assign)((0,_.__assign)({},v.JF),c),{defaultRichTextElements:d}),n=(0,y.GT)(t),a=(i=(0,_.__assign)((0,_.__assign)({},y.JF),r)).locale,s=i.defaultLocale,o=i.onError,a?!Intl.NumberFormat.supportedLocalesOf(a).length&&o?o(new k.hr('Missing locale data for locale: "'.concat(a,'" in Intl.NumberFormat. Using default locale: "').concat(s,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&o&&o(new k.hr('Missing locale data for locale: "'.concat(a,'" in Intl.DateTimeFormat. Using default locale: "').concat(s,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(o&&o(new k.uo('"locale" was not configured, using "'.concat(s,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),i.locale=i.defaultLocale||"en"),i.onWarn&&i.defaultRichTextElements&&"string"==typeof(l=i.messages||{})[Object.keys(l)[0]]&&i.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.github.io/docs/getting-started/message-distribution'),(0,_.__assign)((0,_.__assign)({},i),{formatters:n,formatNumber:q.bind(null,i,n.getNumberFormat),formatNumberToParts:Z.bind(null,i,n.getNumberFormat),formatRelativeTime:W.bind(null,i,n.getRelativeTimeFormat),formatDate:N.bind(null,i,n.getDateTimeFormat),formatDateToParts:P.bind(null,i,n.getDateTimeFormat),formatTime:C.bind(null,i,n.getDateTimeFormat),formatDateTimeRange:O.bind(null,i,n.getDateTimeFormat),formatTimeToParts:D.bind(null,i,n.getDateTimeFormat),formatPlural:$.bind(null,i,n.getPluralRules),formatMessage:T.bind(null,i,n),$t:T.bind(null,i,n),formatList:z.bind(null,i,n.getListFormat),formatListToParts:B.bind(null,i,n.getListFormat),formatDisplayName:R.bind(null,i,n.getDisplayNames)})),f={locale:h.locale,timeZone:h.timeZone,fallbackOnEmptyString:h.fallbackOnEmptyString,formats:h.formats,defaultLocale:h.defaultLocale,defaultFormats:h.defaultFormats,messages:h.messages,onError:h.onError,defaultRichTextElements:d};return(0,_.__assign)((0,_.__assign)({},h),{formatMessage:J.bind(null,f,h.formatters),$t:J.bind(null,f,h.formatters)})},X=r(7672);function ee(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var et=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=(0,y.MT)(),t.state={cache:t.cache,intl:Y(ee(t.props),t.cache),prevConfig:ee(t.props)},t}return(0,_.__extends)(t,e),t.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,i=ee(e);return(0,v.bN)(r,i)?null:{intl:Y(i,n),prevConfig:i}},t.prototype.render=function(){return(0,v.HM)(this.state.intl),a.createElement(X.Kq,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=v.JF,t}(a.PureComponent),er=r(63963);let en=e=>{let{children:t,locale:r,messages:n}=e,[s,o]=(0,a.useState)(r),[l,u]=(0,a.useState)(n),[c]=(0,er.A)("preferred-language",s);return(0,a.useEffect)(()=>{c&&(o(c),u(g(c)))},[s]),(0,i.jsx)(et,{onError:()=>{},locale:s,messages:l,textComponent:"span",children:t})},ei=a.forwardRef(function(e,t){let{title:r,titleId:n,...i}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":n},i),r?a.createElement("title",{id:n},r):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 21v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21m0 0h4.5V3.545M12.75 21h7.5V10.75M2.25 21h1.5m18 0h-18M2.25 9l4.5-1.636M18.75 3l-1.5.545m0 6.205 3 1m1.5.5-1.5-.5M6.75 7.364V3h-3v18m3-13.636 10.5-3.819"}))});var ea=r(94460);let es=a.forwardRef(function(e,t){let{title:r,titleId:n,...i}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":n},i),r?a.createElement("title",{id:n},r):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m7.875 14.25 1.214 1.942a2.25 2.25 0 0 0 1.908 1.058h2.006c.776 0 1.497-.4 1.908-1.058l1.214-1.942M2.41 9h4.636a2.25 2.25 0 0 1 1.872 1.002l.164.246a2.25 2.25 0 0 0 1.872 1.002h2.092a2.25 2.25 0 0 0 1.872-1.002l.164-.246A2.25 2.25 0 0 1 16.954 9h4.636M2.41 9a2.25 2.25 0 0 0-.16.832V12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 12V9.832c0-.287-.055-.57-.16-.832M2.41 9a2.25 2.25 0 0 1 .382-.632l3.285-3.832a2.25 2.25 0 0 1 1.708-.786h8.43c.657 0 1.281.287 1.709.786l3.284 3.832c.163.19.291.404.382.632M4.5 20.25h15A2.25 2.25 0 0 0 21.75 18v-2.625c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125V18a2.25 2.25 0 0 0 2.25 2.25Z"}))});var eo=r(72522),el=r(81432);let eu=a.forwardRef(function(e,t){let{title:r,titleId:n,...i}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":n},i),r?a.createElement("title",{id:n},r):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"}))}),ec=a.forwardRef(function(e,t){let{title:r,titleId:n,...i}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":n},i),r?a.createElement("title",{id:n},r):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19.128a9.38 9.38 0 0 0 2.625.372 9.337 9.337 0 0 0 4.121-.952 4.125 4.125 0 0 0-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 0 1 8.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0 1 11.964-3.07M12 6.375a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0Zm8.25 2.25a2.625 2.625 0 1 1-5.25 0 2.625 2.625 0 0 1 5.25 0Z"}))});var ed=r(21429);let eh=a.forwardRef(function(e,t){let{title:r,titleId:n,...i}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":n},i),r?a.createElement("title",{id:n},r):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 3.75 9.375v-4.5ZM3.75 14.625c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5a1.125 1.125 0 0 1-1.125-1.125v-4.5ZM13.5 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 13.5 9.375v-4.5Z"}),a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 6.75h.75v.75h-.75v-.75ZM6.75 16.5h.75v.75h-.75v-.75ZM16.5 6.75h.75v.75h-.75v-.75ZM13.5 13.5h.75v.75h-.75v-.75ZM13.5 19.5h.75v.75h-.75v-.75ZM19.5 13.5h.75v.75h-.75v-.75ZM19.5 19.5h.75v.75h-.75v-.75ZM16.5 16.5h.75v.75h-.75v-.75Z"}))});var ef=r(1042);let ep=a.forwardRef(function(e,t){let{title:r,titleId:n,...i}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":n},i),r?a.createElement("title",{id:n},r):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"}))});var em=r(82595);let eg=a.forwardRef(function(e,t){let{title:r,titleId:n,...i}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":n},i),r?a.createElement("title",{id:n},r):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"}))}),e_=a.forwardRef(function(e,t){let{title:r,titleId:n,...i}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":n},i),r?a.createElement("title",{id:n},r):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))}),ey=a.forwardRef(function(e,t){let{title:r,titleId:n,...i}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":n},i),r?a.createElement("title",{id:n},r):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 5.25h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5"}))});var ev=r(48230),eb=r.n(ev),ew=r(77742),ek=r(55332),eE=r(13279),ex=r(81893),eS=r(36607),eT=r(29789),eA=r(30775),eI=r(84057),eN=r(29195),eC=r(73535);let eO=(0,a.createContext)(()=>{});function eP(e){let{value:t,children:r}=e;return a.createElement(eO.Provider,{value:t},r)}var eD=r(50455),eM=r(2815),eL=r(60364),eR=r(81105),eF=r(39419),ej=r(68260);let ez=null!=(n=a.startTransition)?n:function(e){e()};var eB=r(74714),eU=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(eU||{}),eV=(e=>(e[e.ToggleDisclosure=0]="ToggleDisclosure",e[e.CloseDisclosure=1]="CloseDisclosure",e[e.SetButtonId=2]="SetButtonId",e[e.SetPanelId=3]="SetPanelId",e[e.SetButtonElement=4]="SetButtonElement",e[e.SetPanelElement=5]="SetPanelElement",e))(eV||{});let eq={0:e=>({...e,disclosureState:(0,eR.Y)(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId},4:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},5:(e,t)=>e.panelElement===t.element?e:{...e,panelElement:t.element}},eZ=(0,a.createContext)(null);function eH(e){let t=(0,a.useContext)(eZ);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Disclosure /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,eH),t}return t}eZ.displayName="DisclosureContext";let e$=(0,a.createContext)(null);e$.displayName="DisclosureAPIContext";let eG=(0,a.createContext)(null);function eW(e,t){return(0,eR.Y)(t.type,eq,e,t)}eG.displayName="DisclosurePanelContext";let eK=a.Fragment,eQ=ej.Ac.RenderStrategy|ej.Ac.Static,eJ=Object.assign((0,ej.FX)(function(e,t){let{defaultOpen:r=!1,...n}=e,i=(0,a.useRef)(null),s=(0,eN.P)(t,(0,eN.a)(e=>{i.current=e},void 0===e.as||e.as===a.Fragment)),o=(0,a.useReducer)(eW,{disclosureState:+!r,buttonElement:null,panelElement:null,buttonId:null,panelId:null}),[{disclosureState:l,buttonId:u},c]=o,d=(0,eA._)(e=>{c({type:1});let t=(0,eF.T)(i);if(!t||!u)return;let r=e?eL.Lk(e)?e:"current"in e&&eL.Lk(e.current)?e.current:t.getElementById(u):t.getElementById(u);null==r||r.focus()}),h=(0,a.useMemo)(()=>({close:d}),[d]),f=(0,a.useMemo)(()=>({open:0===l,close:d}),[l,d]),p=(0,ej.Ci)();return a.createElement(eZ.Provider,{value:o},a.createElement(e$.Provider,{value:h},a.createElement(eP,{value:d},a.createElement(eD.El,{value:(0,eR.Y)(l,{0:eD.Uw.Open,1:eD.Uw.Closed})},p({ourProps:{ref:s},theirProps:n,slot:f,defaultTag:eK,name:"Disclosure"})))))}),{Button:(0,ej.FX)(function(e,t){let r=(0,a.useId)(),{id:n="headlessui-disclosure-button-".concat(r),disabled:i=!1,autoFocus:s=!1,...o}=e,[l,u]=eH("Disclosure.Button"),c=(0,a.useContext)(eG),d=null!==c&&c===l.panelId,h=(0,a.useRef)(null),f=(0,eN.P)(h,t,(0,eA._)(e=>{if(!d)return u({type:4,element:e})}));(0,a.useEffect)(()=>{if(!d)return u({type:2,buttonId:n}),()=>{u({type:2,buttonId:null})}},[n,u,d]);let p=(0,eA._)(e=>{var t;if(d){if(1===l.disclosureState)return;switch(e.key){case eB.D.Space:case eB.D.Enter:e.preventDefault(),e.stopPropagation(),u({type:0}),null==(t=l.buttonElement)||t.focus()}}else switch(e.key){case eB.D.Space:case eB.D.Enter:e.preventDefault(),e.stopPropagation(),u({type:0})}}),m=(0,eA._)(e=>{e.key===eB.D.Space&&e.preventDefault()}),g=(0,eA._)(e=>{var t;(0,eM.l)(e.currentTarget)||i||(d?(u({type:0}),null==(t=l.buttonElement)||t.focus()):u({type:0}))}),{isFocusVisible:_,focusProps:y}=(0,ex.o)({autoFocus:s}),{isHovered:v,hoverProps:b}=(0,eS.M)({isDisabled:i}),{pressed:w,pressProps:k}=(0,eT.Z)({disabled:i}),E=(0,a.useMemo)(()=>({open:0===l.disclosureState,hover:v,active:w,disabled:i,focus:_,autofocus:s}),[l,v,w,_,i,s]),x=(0,eI.c)(e,l.buttonElement),S=d?(0,ej.v6)({ref:f,type:x,disabled:i||void 0,autoFocus:s,onKeyDown:p,onClick:g},y,b,k):(0,ej.v6)({ref:f,id:n,type:x,"aria-expanded":0===l.disclosureState,"aria-controls":l.panelElement?l.panelId:void 0,disabled:i||void 0,autoFocus:s,onKeyDown:p,onKeyUp:m,onClick:g},y,b,k);return(0,ej.Ci)()({ourProps:S,theirProps:o,slot:E,defaultTag:"button",name:"Disclosure.Button"})}),Panel:(0,ej.FX)(function(e,t){let r=(0,a.useId)(),{id:n="headlessui-disclosure-panel-".concat(r),transition:i=!1,...s}=e,[o,l]=eH("Disclosure.Panel"),{close:u}=function e(t){let r=(0,a.useContext)(e$);if(null===r){let r=Error("<".concat(t," /> is missing a parent <Disclosure /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(r,e),r}return r}("Disclosure.Panel"),[c,d]=(0,a.useState)(null),h=(0,eN.P)(t,(0,eA._)(e=>{ez(()=>l({type:5,element:e}))}),d);(0,a.useEffect)(()=>(l({type:3,panelId:n}),()=>{l({type:3,panelId:null})}),[n,l]);let f=(0,eD.O_)(),[p,m]=(0,eC.p)(i,c,null!==f?(f&eD.Uw.Open)===eD.Uw.Open:0===o.disclosureState),g=(0,a.useMemo)(()=>({open:0===o.disclosureState,close:u}),[o.disclosureState,u]),_={ref:h,id:n,...(0,eC.B)(m)},y=(0,ej.Ci)();return a.createElement(eD.$x,null,a.createElement(eG.Provider,{value:o.panelId},y({ourProps:_,theirProps:s,slot:g,defaultTag:"div",features:eQ,visible:p,name:"Disclosure.Panel"})))})});var eY=r(15039),eX=r.n(eY);let e0=a.forwardRef(function(e,t){let{title:r,titleId:n,...i}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":n},i),r?a.createElement("title",{id:n},r):null,a.createElement("path",{fillRule:"evenodd",d:"M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z",clipRule:"evenodd"}))});var e1=r(30893);let e2=e=>{var t,r,n,s;let{item:o,hasRole:l,onSelected:u,narrowView:c}=e,h=(0,d.useRouter)(),[f,p]=(0,a.useState)(!1),[m,g]=(0,a.useState)(!1),_=(0,a.useRef)(null),y=null==(t=o.children)?void 0:t.some(e=>h.pathname===e.href);return((0,a.useEffect)(()=>{let e=e=>{_.current&&!_.current.contains(e.target)&&p(!1)};if(f)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[f]),c)?(null==(n=o.children)?void 0:n.some(e=>!(null==e?void 0:e.requiredRole)||l(null==e?void 0:e.requiredRole)))?(0,i.jsxs)("div",{className:"relative group",ref:_,children:[(0,i.jsx)("button",{className:eX()("flex w-full justify-center items-center p-2 rounded-md transition-colors focus:outline-hidden focus:ring-2 focus:ring-slate-800",y?"text-slate-900 dark:text-slate-100 bg-slate-100 dark:bg-slate-800":"text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800"),title:o.name,onClick:()=>p(!f),children:(null==o?void 0:o.icon)&&(0,i.jsx)(o.icon,{className:eX()("h-6 w-6",y?"text-slate-900 dark:text-slate-100":"text-slate-800 dark:text-slate-300"),"aria-hidden":"true"})}),f&&(0,i.jsx)("div",{className:"fixed left-16 top-auto w-48 rounded-md shadow-lg bg-white dark:bg-slate-800 ring-1 ring-black ring-opacity-5 z-[100]",style:{top:null==(s=_.current)?void 0:s.getBoundingClientRect().top},children:(0,i.jsxs)("div",{className:"py-1",children:[(0,i.jsx)("div",{className:"px-4 py-2 text-sm font-medium text-slate-900 dark:text-slate-100 border-b border-slate-200 dark:border-slate-700",children:o.name}),o.children.filter(e=>!(null==e?void 0:e.requiredRole)||l(e.requiredRole)).map(e=>(0,i.jsx)(eb(),{href:e.href,className:eX()("block px-4 py-2 text-sm text-slate-700 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-700 focus:outline-hidden focus:ring-2 focus:ring-slate-800",{"bg-slate-100 dark:bg-slate-700 text-slate-900 dark:text-slate-100":h.pathname===e.href}),onClick:()=>{p(!1),null==u||u()},children:e.name},e.name))]})})]},o.name):null:(null==(r=o.children)?void 0:r.some(e=>!(null==e?void 0:e.requiredRole)||l(null==e?void 0:e.requiredRole)))?(0,i.jsx)(eJ,{defaultOpen:!0,as:"div",className:"space-y-1",children:e=>{let{open:t}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eJ.Button,{className:eX()("group flex w-full cursor-pointer hover:bg-slate-50 dark:bg-slate-900 dark:hover:bg-slate-700 dark:text-slate-400 items-center rounded-md py-2 pl-2 pr-4 text-left text-sm font-medium focus:outline-hidden focus:ring-2 focus:ring-slate-800"),onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),children:[(null==o?void 0:o.icon)&&(0,i.jsx)(o.icon,{className:"mr-3 h-6 w-6 shrink-0 text-slate-800 dark:text-slate-300 group-hover:text-slate-900 dark:group-hover:text-slate-100","aria-hidden":"true"}),(0,i.jsx)("span",{className:"flex-1 dark:text-slate-300 dark:hover:text-white",children:o.name}),(0,i.jsx)(e0,{className:eX()("h-5 w-5 transition-all duration-200 ease-out",m||t?"opacity-100 text-slate-600 dark:text-slate-300":"opacity-0",t?"rotate-180":"rotate-0")})]}),(0,i.jsx)(eJ.Panel,{className:"pl-6 space-y-1",onClick:u,children:o.children.filter(e=>!(null==e?void 0:e.requiredRole)||l(e.requiredRole)).map(e=>(0,i.jsx)(eb(),{href:e.href,className:eX()("group flex w-full items-center rounded-md py-2 pl-5 pr-2 text-sm font-medium text-slate-600 dark:text-slate-400 hover:bg-slate-50 dark:hover:bg-slate-700 hover:text-slate-900 focus:outline-hidden focus:ring-2 focus:ring-slate-800",{" dark:bg-slate-800 text-slate-900 dark:text-slate-300 dark:hover:text-white bg-slate-50 hover:bg-slate-100":h.pathname===e.href}),children:e.name},e.name))})]})}},o.name):null},e5=e=>{let{navigation:t,onClick:r=null,narrowView:n=!1}=e,{hasRole:a}=(0,e1.A)(),s=(0,d.useRouter)();return(0,i.jsx)("div",{className:"mt-8 flex grow flex-col dark:bg-slate-900",children:(0,i.jsx)("nav",{className:"pb-8 flex-1 space-y-1 bg-white dark:bg-slate-900 ".concat(n?"px-2":"px-2 lg:px-4 2xl:px-6"),"aria-label":"Sidebar",children:t.map(e=>!e.children&&(!e.requiredRole||a(e.requiredRole))?(0,i.jsx)("div",{onClick:r,children:(0,i.jsxs)(eb(),{href:(null==e?void 0:e.href)||"#",className:eX()("group flex w-full items-center rounded-md py-2 text-sm font-medium focus:outline-hidden focus:ring-2 focus:ring-slate-800",s.asPath===e.href||s.pathname===e.href?"text-slate-900 dark:text-slate-100 bg-slate-100 dark:bg-slate-800":"text-slate-600 dark:text-slate-300 hover:text-slate-900 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800",{"justify-center":n,"pl-2":!n}),title:n?e.name:void 0,children:[(null==e?void 0:e.icon)&&(0,i.jsx)(e.icon,{className:eX()("h-6 w-6 shrink-0",{"text-slate-900 dark:text-slate-100":s.asPath===e.href||s.pathname===e.href,"text-slate-800 dark:text-slate-300 group-hover:text-slate-900 dark:group-hover:text-slate-100":s.asPath!==e.href&&s.pathname!==e.href,"mr-3":!n}),"aria-hidden":"true"}),!n&&(0,i.jsx)("span",{className:"flex-1 dark:text-slate-300",children:e.name})]})},e.name):(0,i.jsx)(e2,{item:e,hasRole:a,onSelected:r,narrowView:n},e.name))})})};var e3=r(94318),e4=r(9186),e9=r(64241),e6=r(34201),e7=r(47340),e8=r(65585),te=r(32982),tt=r(99742);let tr=e=>{let{children:t}=e,r=(0,d.useRouter)(),{currentUser:n,loading:s}=(0,ek.A)(),{isSystemReady:o}=(0,te.A)(),{loading:l,usersCount:u,error:c}=(0,e8.A)(),{checkAccess:h,isUserAuthenticated:f,isUserAdmin:p,checkRole:m,isPublicOnlyPage:g}=(0,a.useMemo)(()=>(()=>{var e;return(null==(e=window)?void 0:e.AdminUiPermissions)?window.AdminUiPermissions():{}})(),[]),_=(0,a.useMemo)(()=>({isAdmin:()=>!!p&&p(n),hasRole:e=>!!m&&m(n,e)}),[n,m,p]);return(0,a.useEffect)(()=>{let e;s||l||(f(n)?h(n,r.pathname)?g(r.pathname)?e="/":!p(n)&&tt.env.NEXT_PUBLIC_ONLY_ADMIN&&"/423"!==r.pathname&&(e="/423"):e="/403":l||c||0!==u?h(n,r.pathname)||(e="/log-in"):e="/install",e&&r.pathname!==e&&r.replace(e))},[n,s,p,f,g,r,h,l]),(0,i.jsx)(e6.A.Provider,{value:_,children:s&&!n?(0,i.jsx)(e7.A,{}):t})};var tn=r(56740),ti=r(67994),ta=r(74877),ts=r(79015),to=r(27451);let tl=e=>{let{className:t}=e;return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:t,fill:"currentColor",stroke:"currentColor",viewBox:"0 0 512 423.85",children:(0,i.jsx)("path",{d:"M88.47 0c8.93 0 17.04 3.63 22.89 9.48 2.73 2.74 4.98 5.95 6.6 9.52h52.71c1.62-3.56 3.87-6.78 6.59-9.51C183.12 3.64 191.22 0 200.16 0c8.93 0 17.04 3.64 22.89 9.48 2.73 2.74 4.98 5.96 6.6 9.52h52.71c1.62-3.56 3.87-6.78 6.6-9.51C294.82 3.64 302.92 0 311.85 0c8.94 0 17.04 3.64 22.89 9.48 2.74 2.74 4.98 5.96 6.6 9.52h52.7c1.62-3.56 3.87-6.78 6.59-9.51C406.49 3.64 414.6 0 423.54 0c8.93 0 17.03 3.64 22.88 9.48 2.73 2.74 4.98 5.96 6.6 9.52h45.6c7.39 0 13.38 5.99 13.38 13.38v337.51c-.03 5.09-2.96 9.95-7.89 12.17-61.54 27.94-154.45 41.79-247.16 41.79-92.63 0-185.76-13.85-247.89-41.29-5.27-1.8-9.06-6.79-9.06-12.67V32.38C0 24.99 5.99 19 13.37 19h45.61c1.62-3.56 3.87-6.78 6.6-9.51C71.44 3.64 79.54 0 88.47 0zm127.99 277.29c8.08 0 14.63 6.56 14.63 14.63s-6.55 14.63-14.63 14.63c-8.07 0-14.62-6.56-14.62-14.63s6.55-14.63 14.62-14.63zm0-71.59c8.08 0 14.63 6.54 14.63 14.62 0 8.08-6.55 14.63-14.63 14.63-8.07 0-14.62-6.55-14.62-14.63 0-8.08 6.55-14.62 14.62-14.62zm0-70.86c8.08 0 14.63 6.56 14.63 14.63s-6.55 14.63-14.63 14.63c-8.07 0-14.62-6.56-14.62-14.63s6.55-14.63 14.62-14.63zM372.27 278.9c7.19 0 13.02 5.83 13.02 13.02 0 7.19-5.83 13.02-13.02 13.02H264.7c-7.19 0-13.02-5.83-13.02-13.02 0-7.19 5.83-13.02 13.02-13.02h107.57zm57.88-71.61c7.19 0 13.02 5.84 13.02 13.03 0 7.19-5.83 13.02-13.02 13.02H264.7c-7.19 0-13.02-5.83-13.02-13.02 0-7.19 5.83-13.03 13.02-13.03h165.45zm5.03-70.84c7.19 0 13.03 5.83 13.03 13.02 0 7.19-5.84 13.02-13.03 13.02H264.7c-7.19 0-13.02-5.83-13.02-13.02 0-7.19 5.83-13.02 13.02-13.02h170.48zM107.71 293.97c-9.17-.65-20.85-2.9-29.84-5.32v-32.04l9.06.74c11.7.69 27.58 1.92 39.06.89 2.23-.2 4.83-.58 6.86-1.57 3.86-1.85 3.81-15 1.26-16.81-1.47-1.04-3.14-1.44-4.92-1.44h-9.35c-7.05 0-13.29-.79-18.73-2.37-5.54-1.61-10.21-4.03-14.02-7.26-3.89-3.32-6.8-7.71-8.72-13.18-1.85-5.32-2.8-11.65-2.8-18.99v-12.21c0-6.8 1.04-12.78 3.11-17.94 3.44-8.55 10.58-15.4 18.87-19.29 2.9-1.36 6.15-2.39 10.16-3.06v-14.21h29.54v13.65c4.89.38 8.68 1.06 13.47 1.93 5.48.95 10.79 2.03 16.2 3.34v32.09l-2.85-.25a422.93 422.93 0 0 0-36.47-1.58c-3.54 0-10.29.09-12.96 2.76-2.19 2.18-1.87 15.23.49 17.16 1.78 1.44 4.81 1.69 6.99 1.69h11.65c7.5 0 15.26 1.28 21.84 5.03 5.93 3.37 10.4 7.97 13.39 13.77 1.47 2.86 2.59 5.93 3.33 9.21 1.62 7.15 1.12 15.14 1.12 22.48 0 5.74-.52 10.86-1.53 15.33-1.04 4.57-2.63 8.47-4.74 11.68-6.6 10.01-18.44 14.36-29.93 15.62v15.39h-29.54v-15.24zm10.25-248.22a32.507 32.507 0 0 1-6.6 9.51c-5.86 5.86-13.96 9.5-22.89 9.5s-17.04-3.64-22.89-9.5a32.245 32.245 0 0 1-6.6-9.51H26.75v315.36c58.52 23.93 144.27 35.99 230.2 35.99 85.36 0 170.32-11.92 228.3-35.96V45.75h-32.23a32.507 32.507 0 0 1-6.6 9.51c-5.86 5.86-13.97 9.5-22.88 9.5-8.94 0-17.04-3.64-22.89-9.49a32.452 32.452 0 0 1-6.61-9.52h-52.7a32.234 32.234 0 0 1-6.6 9.52c-5.86 5.85-13.96 9.49-22.89 9.49s-17.04-3.64-22.89-9.5a32.245 32.245 0 0 1-6.6-9.51h-52.71a32.422 32.422 0 0 1-6.6 9.52c-5.86 5.85-13.96 9.49-22.89 9.49-8.94 0-17.04-3.64-22.9-9.5a32.402 32.402 0 0 1-6.59-9.51h-52.71z"})})},tu=e=>{var t,r,n;let{children:s,pageHeader:o="",componentName:l}=e,{isSystemReady:u}=(0,te.A)(),{formatMessage:c}=(0,ew.A)(),{currentUser:f}=(0,ek.A)(),{configuration:p}=(0,to.A)(),{shopInfo:m}=(0,eE.A)(),[g,_]=(0,a.useState)(!0),[y,v]=(0,a.useState)(!1),b=(0,ti.m)(),w=(0,d.useRouter)(),k=async()=>{var e;let t=(null==f?void 0:f.username)||(null==f||null==(e=f.profile)?void 0:e.displayName)||(null==f?void 0:f.name)||"";await (0,ta.A)(b,w),h.oR.success(c({id:"goodbye_user",defaultMessage:"See you later, {name}!"},{name:t}))},E=[{name:p.isFullyConfigured?c({id:"dashboard",defaultMessage:"Dashboard"}):c({id:"complete_system_setup",defaultMessage:"Complete Setup"}),icon:ei,href:"/"},{name:c({id:"copilot",defaultMessage:"Copilot"}),icon:ea.A,href:"/copilot"},u&&{name:c({id:"orders",defaultMessage:"Orders"}),requiredRole:"manageOrders",icon:es,href:"/orders"},u&&{name:c({id:"products",defaultMessage:"Products"}),requiredRole:"manageProducts",icon:eo.A,href:"/products"},u&&{name:c({id:"assortments",defaultMessage:"Assortments"}),icon:el.A,href:"/assortments",requiredRole:"manageAssortments"},u&&{name:c({id:"filters",defaultMessage:"Filters"}),icon:eu,requiredRole:"manageFilters",href:"/filters"},{name:c({id:"users",defaultMessage:"Users"}),icon:ec,href:"/users",requiredRole:"viewUsers"},u&&{name:c({id:"enrollments",defaultMessage:"Enrollments"}),href:"/enrollments",requiredRole:"viewEnrollments",icon:ed.A},u&&{name:c({id:"quotations",defaultMessage:"Quotations"}),href:"/quotations",icon:tl,requiredRole:"viewQuotations"},u&&{name:c({id:"tokens",defaultMessage:"Tokens"}),icon:eh,href:"/tokens",requiredRole:"viewTokens"},{name:c({id:"system",defaultMessage:"System settings"}),icon:ef.A,children:[{name:c({id:"currencies",defaultMessage:"Currencies"}),requiredRole:"manageCurrencies",href:"/currency"},{name:c({id:"countries",defaultMessage:"Countries"}),href:"/country",requiredRole:"manageCountries"},{name:c({id:"languages",defaultMessage:"Languages"}),href:"/language",requiredRole:"manageLanguages"},u&&{name:c({id:"delivery_providers",defaultMessage:"Delivery providers"}),requiredRole:"manageDeliveryProviders",href:"/delivery-provider"},u&&{name:c({id:"payment_providers",defaultMessage:"Payment providers"}),requiredRole:"managePaymentProviders",href:"/payment-provider"},u&&{name:c({id:"warehousing_provider",defaultMessage:"Warehousing provider"}),requiredRole:"manageWarehousingProviders",href:"/warehousing-provider"}].filter(Boolean)},{name:c({id:"activities",defaultMessage:"Activities"}),icon:ep,children:[{name:c({id:"work_queue",defaultMessage:"Work queue"}),requiredRole:"manageWorker",href:"/works"},{name:c({id:"event",defaultMessage:"Events"}),href:"/events",requiredRole:"showEvents"}]},(null==m||null==(r=m.adminUiConfig)||null==(t=r.externalLinks)?void 0:t.length)&&{name:c({id:"extensions",defaultMessage:"Extensions"}),icon:em.A,href:"/",children:null==(n=m.adminUiConfig.externalLinks)?void 0:n.map(e=>{let t=e.href;return(null==e?void 0:e.target)==="SELF"&&(t="/external?url=".concat(e.href)),{name:e.title,href:t}})}].filter(Boolean),x=(e=>{let t=(0,a.useRef)(void 0),r=(0,a.useCallback)(r=>{t.current&&!t.current.contains(r.target)&&e()},[t,e]);return(0,a.useEffect)(()=>{if(document)return document.addEventListener("click",r),()=>{document.removeEventListener("click",r)}},[r]),t})(()=>{_(!0)});return(0,i.jsxs)(tr,{children:[(0,i.jsxs)("div",{className:"fixed inset-0 z-40 flex md:hidden ".concat(g?"hidden":""," "),role:"dialog","aria-modal":"true",children:[(0,i.jsx)("div",{className:"fixed inset-0 backdrop-blur-sm","aria-hidden":"true"}),(0,i.jsxs)("div",{className:"relative flex w-full max-w-xs flex-1 flex-col bg-white dark:bg-slate-900 shadow-xl",children:[(0,i.jsx)("div",{className:"absolute top-0 right-0 -mr-12 pt-2",children:(0,i.jsxs)("button",{id:"close_sidebar",type:"button",onClick:()=>_(!g),className:"ml-1 flex h-10 w-10 items-center justify-center rounded-full bg-white/10 dark:bg-slate-800/50 backdrop-blur-sm shadow-lg focus:outline-hidden focus:ring-2 focus:ring-inset focus:ring-white dark:focus:ring-slate-400",children:[(0,i.jsx)("span",{className:"sr-only",children:c({id:"close_sidebar",defaultMessage:"Close sidebar"})}),(0,i.jsx)("svg",{className:"h-6 w-6 text-slate-800 dark:text-slate-200",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})]})}),(0,i.jsxs)("div",{className:"h-0 flex-1 overflow-y-auto pt-5 pb-4",children:[(0,i.jsx)("div",{className:"flex shrink-0 items-center px-2 lg:px-4 2xl:px-6",children:(0,i.jsx)(eb(),{href:"/",className:"focus:outline-hidden focus:ring-2 focus:ring-slate-800 rounded-md p-1",children:(0,i.jsx)("div",{className:"dark:brightness-0 dark:invert",children:(0,i.jsx)(e9.A,{src:"/logo-light.svg",width:41,height:25,alt:c({id:"unchained_logo",defaultMessage:"Unchained Logo"})})})})}),(0,i.jsx)(e5,{navigation:E,onClick:()=>_(!g)})]}),(0,i.jsxs)("div",{className:"flex items-center shrink-0 border-t border-slate-300 dark:border-slate-800 px-2 py-2",children:[(0,i.jsxs)(eb(),{href:"/account",className:"flex items-center flex-1 py-2 pr-2 text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 rounded-md text-sm font-medium focus:outline-hidden focus:ring-2 focus:ring-slate-800",children:[(null==f?void 0:f.avatar)?(0,i.jsx)(e9.A,{src:f.avatar.url,width:32,height:32,className:"h-8 w-8 shrink-0 mr-2 rounded-full object-cover",alt:c({id:"user_avatar",defaultMessage:"User avatar"})}):(0,i.jsx)(eg,{className:"h-8 w-8 shrink-0 mr-2 text-slate-800 dark:text-slate-300"}),(0,i.jsxs)("div",{className:"flex-1",children:[(0,i.jsx)("div",{className:"text-sm font-medium dark:text-slate-400",children:c({id:"account",defaultMessage:"Account"})}),(0,i.jsx)("div",{className:"text-xs text-slate-500 dark:text-slate-400",children:(0,tn.A)(f)})]})]}),(0,i.jsxs)("div",{className:"flex items-center space-x-2 ml-auto",children:[(0,i.jsx)("button",{onClick:k,className:"p-2 text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 rounded-md hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors focus:outline-hidden focus:ring-2 focus:ring-slate-800",title:c({id:"log_out",defaultMessage:"Log out"}),children:(0,i.jsx)(ts.A,{className:"h-5 w-5"})}),(0,i.jsx)(eb(),{href:"https://docs.unchained.shop/src/docs/system-design",target:"_blank",rel:"noopener noreferrer",className:"p-2 text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 rounded-md hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors focus:outline-hidden focus:ring-2 focus:ring-slate-800",title:c({id:"documentation",defaultMessage:"Documentation"}),children:(0,i.jsx)(e_,{className:"h-5 w-5"})}),(0,i.jsx)(e3.A,{})]})]})]})]}),(0,i.jsx)("div",{className:"hidden md:fixed md:inset-y-0 md:flex md:flex-col dark:bg-slate-900 dark:text-slate-200 ".concat(y?"md:w-16":"md:w-64 2xl:w-96"),children:(0,i.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col border-r border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-900",children:[(0,i.jsxs)("div",{className:"flex flex-1 flex-col overflow-y-auto scrollbar-hide pt-10",children:[(0,i.jsx)("div",{className:"flex shrink-0 items-center ".concat(y?"px-2 justify-center":"px-2 lg:px-4 2xl:px-6"),children:(0,i.jsx)(eb(),{href:"/",className:"focus:outline-hidden focus:ring-2 focus:ring-slate-800 rounded-md p-1",children:(0,i.jsx)("div",{className:"dark:brightness-0 dark:invert",children:(0,i.jsx)(e9.A,{src:"/logo-light.svg",width:y?25:41,height:25,alt:c({id:"unchained_logo",defaultMessage:"Unchained Logo"})})})})}),(0,i.jsx)(e5,{navigation:E,narrowView:y})]}),(0,i.jsxs)("div",{className:"flex items-center shrink-0 py-2 ".concat(y?"justify-center px-2":"border-t border-slate-200 dark:border-slate-800 px-2 lg:px-4 2xl:px-6"),children:[!y&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(eb(),{href:"/account",className:"flex items-center flex-1 py-2 pr-2 text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 rounded-md text-sm font-medium focus:outline-hidden focus:ring-2 focus:ring-slate-800",children:[(null==f?void 0:f.avatar)?(0,i.jsx)(e9.A,{src:f.avatar.url,width:32,height:32,className:"h-8 w-8 shrink-0 mr-3 rounded-full object-cover",alt:c({id:"user_avatar",defaultMessage:"User avatar"})}):(0,i.jsx)(eg,{className:"h-8 w-8 shrink-0 mr-3 text-slate-800 dark:text-slate-300"}),(0,i.jsxs)("div",{className:"flex-1",children:[(0,i.jsx)("div",{className:"text-sm font-medium dark:text-slate-400",children:c({id:"account",defaultMessage:"Account"})}),(0,i.jsx)("div",{className:"text-xs text-slate-500 dark:text-slate-400",children:(0,tn.A)(f)})]})]}),(0,i.jsx)("button",{onClick:k,className:"p-2 mr-2 text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 rounded-md hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors focus:outline-hidden focus:ring-2 focus:ring-slate-800 ml-auto",title:c({id:"log_out",defaultMessage:"Log out"}),children:(0,i.jsx)(ts.A,{className:"h-5 w-5"})})]}),y&&(0,i.jsxs)("div",{className:"flex items-center flex-col space-y-2",children:[(0,i.jsx)(eb(),{href:"/account",className:"p-2 text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 rounded-md transition-colors focus:outline-none focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400",title:c({id:"account",defaultMessage:"Account"}),children:(null==f?void 0:f.avatar)?(0,i.jsx)(e9.A,{src:f.avatar.url,width:24,height:24,className:"h-6 w-6 rounded-full object-cover",alt:c({id:"user_avatar",defaultMessage:"User avatar"})}):(0,i.jsx)(eg,{className:"h-6 w-6"})}),(0,i.jsx)("button",{onClick:k,className:"p-2 text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 rounded-md hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors focus:outline-none focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400",title:c({id:"log_out",defaultMessage:"Log out"}),children:(0,i.jsx)(ts.A,{className:"h-5 w-5"})}),(0,i.jsx)(e4.A,{narrowNav:y}),(0,i.jsx)(eb(),{href:"https://docs.unchained.shop/src/docs/system-design",target:"_blank",rel:"noopener noreferrer",className:"p-2 text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 rounded-md hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors focus:outline-none focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400",title:c({id:"documentation",defaultMessage:"Documentation"}),children:(0,i.jsx)(e_,{className:"h-5 w-5"})}),(0,i.jsx)(e3.A,{})]})]}),(0,i.jsx)("div",{className:"flex shrink-0 p-2 ".concat(y?"":"border-t border-slate-200 dark:border-slate-800"),children:y?(0,i.jsx)("button",{onClick:()=>v(!y),className:"w-full flex items-center justify-center p-2 text-slate-600 dark:text-emerald-400 hover:text-slate-900 dark:hover:text-slate-200 rounded-md hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors focus:outline-hidden focus:ring-2 focus:ring-slate-800",title:c({id:"expand_navigation",defaultMessage:"Expand navigation"}),children:(0,i.jsx)(ey,{className:"h-6 w-6 transition-transform"})}):(0,i.jsxs)("div",{className:"w-full flex items-center justify-center",children:[(0,i.jsx)("button",{onClick:()=>v(!y),className:"flex items-center p-2 text-slate-600 dark:text-emerald-400 hover:text-slate-900 dark:hover:text-slate-200 rounded-md hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors focus:outline-hidden focus:ring-2 focus:ring-slate-800",title:c({id:"collapse_navigation",defaultMessage:"Collapse navigation"}),children:(0,i.jsx)(ey,{className:"h-6 w-6 rotate-90 transition-transform"})}),(0,i.jsxs)("div",{className:"ml-2 flex items-center space-x-2",children:[(0,i.jsx)(e4.A,{narrowNav:y}),(0,i.jsx)(eb(),{href:"https://docs.unchained.shop/src/docs/system-design",target:"_blank",rel:"noopener noreferrer",className:"p-2 text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 rounded-md hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors focus:outline-hidden focus:ring-2 focus:ring-slate-800",title:c({id:"documentation",defaultMessage:"Documentation"}),children:(0,i.jsx)(e_,{className:"h-6 w-6"})}),(0,i.jsx)(e3.A,{})]})]})})]})}),(0,i.jsxs)("div",{className:"flex flex-1 flex-col ".concat(y?"md:pl-16":"md:pl-64 2xl:pl-96"),children:[(0,i.jsxs)("div",{className:"flex justify-between items-center sticky top-0 z-10 bg-white dark:bg-slate-800 md:hidden border-b border-slate-200 dark:border-slate-700",children:[(0,i.jsxs)("button",{type:"button",ref:x,onClick:()=>_(!g),className:"-ml-0.5 -mt-0.5 inline-flex h-12 w-12 items-center justify-center rounded-md text-slate-500 hover:text-slate-900 focus:outline-hidden focus:ring-2 focus:ring-inset focus:ring-slate-800 dark:text-slate-200",children:[(0,i.jsx)("span",{className:"sr-only",children:c({id:"open_sidebar",defaultMessage:" Open sidebar"})}),(0,i.jsx)("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 8h16M4 16h16"})})]}),(0,i.jsx)("div",{className:"flex-1 flex justify-center",children:(0,i.jsx)("div",{className:"dark:brightness-0 dark:invert",children:(0,i.jsx)(e9.A,{src:"/logo-light.svg",width:41,height:25,alt:c({id:"unchained_logo",defaultMessage:"Unchained Logo"})})})}),(0,i.jsxs)("div",{className:"flex flex-wrap justify-center items-center gap-2 pr-4",children:[(0,i.jsx)(e4.A,{narrowNav:!1}),(0,i.jsx)(eb(),{href:"https://docs.unchained.shop/src/docs/system-design",target:"_blank",rel:"noopener noreferrer",className:"p-2 text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 rounded-md hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors focus:outline-hidden focus:ring-2 focus:ring-slate-800",title:c({id:"documentation",defaultMessage:"Documentation"}),children:(0,i.jsx)(e_,{className:"h-5 w-5"})}),(0,i.jsx)(e3.A,{})]})]}),(0,i.jsxs)("main",{className:"container mx-auto max-w-7xl flex-1 px-4 py-5 md:pt-10 lg:pt-5 pb-20 sm:px-6 md:px-8",children:[(0,i.jsx)("h3",{className:"ml-8 text-lg font-medium leading-6 text-slate-900",children:o}),a.cloneElement(s)]})]})]})};var tc=r(98477);let td=e=>{let{children:t=null}=e,r=(0,a.useRef)(null),[,n]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=document.createElement("div");return r.current=e,document.body.appendChild(e),n(!0),()=>{r.current&&document.body.removeChild(r.current)}},[]),r.current?tc.createPortal(t,r.current):null},th=(0,X.Ay)(e=>{let{onClose:t,children:r,visible:n,closeOnOutsideClick:s=!1,intl:o}=e,[l,u]=(0,a.useState)(!1),[c,d]=(0,a.useState)(n);return(0,a.useEffect)(()=>{n?(d(!0),document.body.classList.add("modal-blur-active"),setTimeout(()=>u(!0),10)):c&&(u(!1),setTimeout(()=>{d(!1),document.body.classList.remove("modal-blur-active")},200))},[n,c]),c?(0,i.jsx)(td,{intl:o,children:(0,i.jsx)("div",{className:"fixed inset-0 z-50 overflow-y-auto","aria-modal":"true",children:(0,i.jsxs)("div",{className:"flex min-h-screen items-center justify-center px-4 pt-4 pb-20 text-center sm:block sm:p-0",tabIndex:-1,onClick:e=>{e.target===e.currentTarget&&n&&t()},children:[(0,i.jsx)("span",{className:"hidden sm:inline-block sm:h-screen sm:align-middle","aria-hidden":"true",children:""}),(0,i.jsxs)("div",{className:"inline-block z-50 transform overflow-hidden rounded-lg bg-white dark:bg-slate-800 px-4 pt-5 pb-4 text-left shadow-2xl dark:shadow-2xl transition-all duration-200 ease-out sm:my-8 sm:w-full sm:max-w-lg sm:p-6 sm:align-middle ".concat(l?"opacity-100 scale-100 translate-y-0":"opacity-0 scale-95 translate-y-4"),onClick:e=>{e.stopPropagation()},children:[(0,i.jsx)("div",{className:"absolute top-0 right-0 pt-4 pr-4 sm:block",children:(0,i.jsxs)("button",{id:"modal_close",type:"button",onClick:t,className:"rounded-md bg-white dark:bg-slate-900 text-slate-400 hover:text-slate-500 dark:hover:text-slate-300 focus:outline-hidden focus:ring-2 focus:ring-slate-800 focus:ring-offset-2",children:[(0,i.jsx)("span",{className:"sr-only",children:o.formatMessage({id:"close",defaultMessage:"Close"})}),(0,i.jsx)("svg",{className:"h-6 w-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})]})}),r&&a.isValidElement(r)?a.cloneElement(r,{close:t}):r]})]})})}):null});var tf=r(56557);let tp=e=>{let{children:t}=e,[r,n]=(0,a.useState)(null),[s,o]=(0,a.useState)(!1),l=()=>n(null),[u,c]=(0,a.useState)(()=>l),d=(0,a.useMemo)(()=>({setModal:function(e){let{closeOnOutsideClick:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(r=>{e||r(!0),o(t),n(()=>e),c(()=>()=>{l(),r(!0)})})}}),[]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(th,{visible:!!r,onClose:u,closeOnOutsideClick:s,children:r}),(0,i.jsx)(tf.A.Provider,{value:d,children:t})]})};var tm=r(87016);let tg=function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return(null==(e=window)?void 0:e.Matomo)?window.Matomo.getAsyncTracker(...r):null},t_=function(e,t){let{username:r,clientId:n,emailAddress:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=tg();a&&((i||r)&&a.setVisitorId((i||r).substr(3).padStart(16,"0")),n&&a.setUserId(n),a.setCustomUrl(e),a.setDocumentTitle(t),a.trackPageView())};var ty=r(96427),tv=r(79350),tb=r(82074);function tw(){let e=(0,ty._)(["fragment CustomProperty on ExtendedUnchainedSchema { "," }"]);return tw=function(){return e},e}let tk=(e,t)=>{let r={};return Object.keys(t).forEach(n=>{let i=null==e?void 0:e[n],a=null==t?void 0:t[n];"object"==typeof a?r[n]=tk(i,a):r[n]=i}),r},tE=e=>e.reduce((e,t)=>{switch(t.kind){case"InlineFragment":Object.assign(e,tE(t.selectionSet.selections));break;case"Field":{let r,n=t.name.value;r=t.selectionSet?tE(t.selectionSet.selections):t.value,e[n]=r}}return e},{}),tx=(e,t)=>{var r,n;if(!e||!t)return null;let i=(0,tv.J1)(tw(),e);return tk(t,tE(null==i||null==(n=i.definitions[0])||null==(r=n.selectionSet)?void 0:r.selections))},tS=e=>{let{children:t}=e,{shopInfo:r}=(0,eE.A)();return(0,i.jsx)(tb.A.Provider,{value:(0,a.useMemo)(()=>{var e,t,n;return{customProperties:null==r||null==(t=r.adminUiConfig)||null==(e=t.customProperties)?void 0:e.reduce((e,t)=>{let{entityName:r,inlineFragment:n}=t;return{...e,[r]:n}},{}),singleSignOnURL:null==r||null==(n=r.adminUiConfig)?void 0:n.singleSignOnURL,hydrateFragment:tx}},[r]),children:t})};var tT=r(50272),tA=r(77328),tI=r.n(tA);r(45105);var tN=r(58973),tC=r(84190);let tO=e=>{t_(document.location.origin+e,document.title)},tP=e=>{let{Component:t,componentName:r,pageProps:n,router:s}=e,o=(0,f.L)(n),u=t.getLayout?e=>(0,i.jsxs)(tr,{children:[(0,i.jsx)("div",{className:"absolute top-4 left-4",children:(0,i.jsx)(e9.A,{src:"/logo-light.svg",width:32,height:20,alt:"Logo",className:"dark:brightness-0 dark:invert"})}),(0,i.jsx)("div",{className:"absolute top-4 right-4",children:(0,i.jsx)(e3.A,{})}),t.getLayout(e)]}):e=>(0,i.jsx)(tu,{componentName:r,children:e}),c=g("en");return(0,a.useEffect)(()=>(d.Router.events.on("routeChangeComplete",tO),()=>{d.Router.events.off("routeChangeComplete",tO)}),[o]),(0,i.jsx)(en,{locale:"en",messages:c,children:(0,i.jsxs)(tT.A,{children:[(0,i.jsxs)(tI(),{children:[(0,i.jsx)("title",{children:"Unchained: Admin UI"}),null]}),(0,i.jsx)(l,{client:o,children:(0,i.jsx)(tC.s,{children:(0,i.jsx)(tS,{children:(0,i.jsx)(tm.A,{children:(0,i.jsxs)(tN.k,{children:[(0,i.jsx)(h.N9,{position:"top-right",autoClose:5e3,newestOnTop:!1,closeOnClick:!0,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0}),(0,i.jsx)(tp,{children:u((0,i.jsx)(t,{...n}))})]})})})})})]})},"intl-provider")};tP.getInitialProps=async e=>{let t=await c().getInitialProps(e),r=e.Component.displayName||e.Component.name||"Unknown";return{...t,componentName:r}};let tD=tP},90600:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldPolyfill=function(e){if(void 0===e&&(e="en"),!("PluralRules"in Intl)||"one"===new Intl.PluralRules("en",{minimumFractionDigits:2}).select(1)||!function(e){if(!e)return!0;var t=Array.isArray(e)?e:[e];return Intl.PluralRules.supportedLocalesOf(t).length===t.length}(e))return e?(0,n.match)([e],i.supportedLocales,"en"):void 0};var n=r(83792),i=r(98394)},94318:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(37876),i=r(14232);let a=i.forwardRef(function(e,t){let{title:r,titleId:n,...a}=e;return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":n},a),r?i.createElement("title",{id:n},r):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"}))}),s=i.forwardRef(function(e,t){let{title:r,titleId:n,...a}=e;return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":n},a),r?i.createElement("title",{id:n},r):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"}))});var o=r(15039),l=r.n(o),u=r(12264);let c=()=>{let{theme:e,setTheme:t}=(0,u.A)();return(0,n.jsx)("div",{className:"inline-flex items-center z-50",children:(0,n.jsxs)("button",{type:"button",className:"group hover:cursor-pointer focus:outline-hidden focus:ring-2 focus:ring-slate-800 hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors rounded-md p-2",id:"theme-toggle",title:"Toggles light & dark","aria-label":"auto","aria-live":"polite",onClick:()=>{"dark"===e?t("light"):t("dark")},children:[(0,n.jsx)(a,{className:l()("w-6 h-6 text-slate-600 transition-all ease-out delay-1000",{hidden:"dark"===e})}),(0,n.jsx)(s,{className:l()("w-6 h-6 text-yellow-200 group-hover:text-white transition-colors duration-200",{hidden:"light"===e})})]})})}},94410:e=>{"use strict";var t=function(e){var t,n,i;return!!(t=e)&&"object"==typeof t&&(n=e,"[object RegExp]"!==(i=Object.prototype.toString.call(n))&&"[object Date]"!==i&&n.$$typeof!==r)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?o(Array.isArray(e)?[]:{},e,t):e}function i(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function a(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function s(e,t){try{return t in e}catch(e){return!1}}function o(e,r,l){(l=l||{}).arrayMerge=l.arrayMerge||i,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=n;var u,c,d=Array.isArray(r);return d!==Array.isArray(e)?n(r,l):d?l.arrayMerge(e,r,l):(c={},(u=l).isMergeableObject(e)&&a(e).forEach(function(t){c[t]=n(e[t],u)}),a(r).forEach(function(t){s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))||(s(e,t)&&u.isMergeableObject(r[t])?c[t]=(function(e,t){if(!t.customMerge)return o;var r=t.customMerge(e);return"function"==typeof r?r:o})(t,u)(e[t],r[t],u):c[t]=n(r[t],u))}),c)}o.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return o(e,r,t)},{})},e.exports=o},94460:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14232);let i=n.forwardRef(function(e,t){let{title:r,titleId:i,...a}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":i},a),r?n.createElement("title",{id:i},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m6.75 7.5 3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0 0 21 18V6a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 6v12a2.25 2.25 0 0 0 2.25 2.25Z"}))})},94587:(e,t,r)=>{"use strict";var n;r.d(t,{b:()=>n}),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(n||(n={}))},94745:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldPolyfill=function(e){if(void 0===e&&(e="en"),!("RelativeTimeFormat"in Intl)||!function(e){if(!e)return!0;var t=Array.isArray(e)?e:[e];return Intl.RelativeTimeFormat.supportedLocalesOf(t).length===t.length}(e)||!function(e){try{return"numberingSystem"in new Intl.RelativeTimeFormat(e||"en",{numeric:"auto"}).resolvedOptions()}catch(e){return!1}}(e))return(0,n.match)([e],i.supportedLocales,"en")};var n=r(83792),i=r(4007)},94852:(e,t,r)=>{"use strict";r.d(t,{l:()=>s});var n=r(14232),i=r(19650);let a=Symbol.for("__APOLLO_CONTEXT__");function s(){(0,i.V1)(!0,37);let e=n.createContext[a];return e||(Object.defineProperty(n.createContext,a,{value:e=n.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}},94989:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return b}});let n=r(72687),i=r(63732),a=r(37876),s=i._(r(14232)),o=n._(r(98477)),l=n._(r(97918)),u=r(95197),c=r(63258),d=r(81854);r(76456);let h=r(54387),f=n._(r(49411)),p=r(51112),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function g(e,t,r,n,i,a,s){let o=null==e?void 0:e.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function _(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}let y=(0,s.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:o,width:l,decoding:u,className:c,style:d,fetchPriority:h,placeholder:f,loading:m,unoptimized:y,fill:v,onLoadRef:b,onLoadingCompleteRef:w,setBlurComplete:k,setShowAltText:E,sizesInput:x,onLoad:S,onError:T,...A}=e,I=(0,s.useCallback)(e=>{e&&(T&&(e.src=e.src),e.complete&&g(e,f,b,w,k,y,x))},[r,f,b,w,k,T,y,x]),N=(0,p.useMergedRef)(t,I);return(0,a.jsx)("img",{...A,..._(h),loading:m,width:l,height:o,decoding:u,"data-nimg":v?"fill":"1",className:c,style:d,sizes:i,srcSet:n,src:r,ref:N,onLoad:e=>{g(e.currentTarget,f,b,w,k,y,x)},onError:e=>{E(!0),"empty"!==f&&k(!0),T&&T(e)}})});function v(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,..._(r.fetchPriority)};return t&&o.default.preload?(o.default.preload(r.src,n),null):(0,a.jsx)(l.default,{children:(0,a.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let b=(0,s.forwardRef)((e,t)=>{let r=(0,s.useContext)(h.RouterContext),n=(0,s.useContext)(d.ImageConfigContext),i=(0,s.useMemo)(()=>{var e;let t=m||n||c.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),i=t.deviceSizes.sort((e,t)=>e-t),a=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:i,qualities:a}},[n]),{onLoad:o,onLoadingComplete:l}=e,p=(0,s.useRef)(o);(0,s.useEffect)(()=>{p.current=o},[o]);let g=(0,s.useRef)(l);(0,s.useEffect)(()=>{g.current=l},[l]);let[_,b]=(0,s.useState)(!1),[w,k]=(0,s.useState)(!1),{props:E,meta:x}=(0,u.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:_,showAltText:w});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y,{...E,unoptimized:x.unoptimized,placeholder:x.placeholder,fill:x.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:k,sizesInput:e.sizes,ref:t}),x.priority?(0,a.jsx)(v,{isAppRouter:!r,imgAttributes:E}):null]})});("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)},95197:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return l}}),r(76456);let n=r(10510),i=r(63258),a=["-moz-initial","fill","none","scale-down",void 0];function s(e){return void 0!==e.default}function o(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function l(e,t){var r,l;let u,c,d,{src:h,sizes:f,unoptimized:p=!1,priority:m=!1,loading:g,className:_,quality:y,width:v,height:b,fill:w=!1,style:k,overrideSrc:E,onLoad:x,onLoadingComplete:S,placeholder:T="empty",blurDataURL:A,fetchPriority:I,decoding:N="async",layout:C,objectFit:O,objectPosition:P,lazyBoundary:D,lazyRoot:M,...L}=e,{imgConf:R,showAltText:F,blurComplete:j,defaultLoader:z}=t,B=R||i.imageConfigDefault;if("allSizes"in B)u=B;else{let e=[...B.deviceSizes,...B.imageSizes].sort((e,t)=>e-t),t=B.deviceSizes.sort((e,t)=>e-t),n=null==(r=B.qualities)?void 0:r.sort((e,t)=>e-t);u={...B,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===z)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let U=L.loader||z;delete L.loader,delete L.srcSet;let V="__next_img_default"in U;if(V){if("custom"===u.loader)throw Object.defineProperty(Error('Image with src "'+h+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=U;U=t=>{let{config:r,...n}=t;return e(n)}}if(C){"fill"===C&&(w=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[C];e&&(k={...k,...e});let t={responsive:"100vw",fill:"100vw"}[C];t&&!f&&(f=t)}let q="",Z=o(v),H=o(b);if((l=h)&&"object"==typeof l&&(s(l)||void 0!==l.src)){let e=s(h)?h.default:h;if(!e.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(c=e.blurWidth,d=e.blurHeight,A=A||e.blurDataURL,q=e.src,!w)if(Z||H){if(Z&&!H){let t=Z/e.width;H=Math.round(e.height*t)}else if(!Z&&H){let t=H/e.height;Z=Math.round(e.width*t)}}else Z=e.width,H=e.height}let $=!m&&("lazy"===g||void 0===g);(!(h="string"==typeof h?h:q)||h.startsWith("data:")||h.startsWith("blob:"))&&(p=!0,$=!1),u.unoptimized&&(p=!0),V&&!u.dangerouslyAllowSVG&&h.split("?",1)[0].endsWith(".svg")&&(p=!0);let G=o(y),W=Object.assign(w?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:O,objectPosition:P}:{},F?{}:{color:"transparent"},k),K=j||"empty"===T?null:"blur"===T?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:Z,heightInt:H,blurWidth:c,blurHeight:d,blurDataURL:A||"",objectFit:W.objectFit})+'")':'url("'+T+'")',Q=a.includes(W.objectFit)?"fill"===W.objectFit?"100% 100%":"cover":W.objectFit,J=K?{backgroundSize:Q,backgroundPosition:W.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:K}:{},Y=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:a,sizes:s,loader:o}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,s),c=l.length-1;return{sizes:s||"w"!==u?s:"100vw",srcSet:l.map((e,n)=>o({config:t,src:r,quality:a,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:o({config:t,src:r,quality:a,width:l[c]})}}({config:u,src:h,unoptimized:p,width:Z,quality:G,sizes:f,loader:U});return{props:{...L,loading:$?"lazy":g,fetchPriority:I,width:Z,height:H,decoding:N,className:_,style:{...W,...J},sizes:Y.sizes,srcSet:Y.srcSet,src:E||Y.src},meta:{unoptimized:p,priority:m,placeholder:T,fill:w}}}},96427:(e,t,r)=>{"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,{_:()=>n})},98149:(e,t,r)=>{"use strict";function n(e,t){var r=t&&t.cache?t.cache:l,n=t&&t.serializer?t.serializer:s;return(t&&t.strategy?t.strategy:function(e,t){var r,n,s=1===e.length?i:a;return r=t.cache.create(),n=t.serializer,s.bind(this,e,r,n)})(e,{cache:r,serializer:n})}function i(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),a=t.get(i);return void 0===a&&(a=e.call(this,n),t.set(i,a)),a}function a(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return void 0===a&&(a=e.apply(this,n),t.set(i,a)),a}r.d(t,{B:()=>n,W:()=>u});var s=function(){return JSON.stringify(arguments)},o=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),l={create:function(){return new o}},u={variadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,a.bind(this,e,r,n)},monadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,i.bind(this,e,r,n)}}},98394:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportedLocales=void 0,t.supportedLocales=["af","ak","am","an","ar","ars","as","asa","ast","az","bal","be","bem","bez","bg","bho","bm","bn","bo","br","brx","bs","ca","ce","ceb","cgg","chr","ckb","cs","cy","da","de","doi","dsb","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fil","fo","fr","fur","fy","ga","gd","gl","gsw","gu","guw","gv","ha","haw","he","hi","hnj","hr","hsb","hu","hy","ia","id","ig","ii","io","is","it","iu","ja","jbo","jgo","jmc","jv","jw","ka","kab","kaj","kcg","kde","kea","kk","kkj","kl","km","kn","ko","ks","ksb","ksh","ku","kw","ky","lag","lb","lg","lij","lkt","ln","lo","lt","lv","mas","mg","mgo","mk","ml","mn","mo","mr","ms","mt","my","nah","naq","nb","nd","ne","nl","nn","nnh","no","nqo","nr","nso","ny","nyn","om","or","os","osa","pa","pap","pcm","pl","prg","ps","pt","pt-PT","rm","ro","rof","ru","rwk","sah","saq","sat","sc","scn","sd","sdh","se","seh","ses","sg","sh","shi","si","sk","sl","sma","smi","smj","smn","sms","sn","so","sq","sr","ss","ssy","st","su","sv","sw","syr","ta","te","teo","th","ti","tig","tk","tl","tn","to","tpi","tr","ts","tzm","ug","uk","und","ur","uz","ve","vi","vo","vun","wa","wae","wo","xh","xog","yi","yo","yue","zh","zu"]},98615:(e,t,r)=>{"use strict";r.d(t,{L:()=>a});var n=r(14232),i=r(10451);function a(){let[e]=(0,n.useState)(i.e);return(0,n.useEffect)(()=>()=>e.dispose(),[e]),e}},98748:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(96427),i=r(79350),a=r(65484);function s(){let e=(0,n._)(["\n fragment UserFragment on User {\n _id\n lastBillingAddress {\n firstName\n lastName\n company\n addressLine\n addressLine2\n postalCode\n countryCode\n regionCode\n city\n }\n lastContact {\n emailAddress\n telNumber\n }\n lastLogin {\n countryCode\n locale\n remoteAddress\n remotePort\n timestamp\n userAgent\n }\n avatar {\n _id\n name\n size\n type\n url\n }\n allowedActions\n paymentCredentials {\n _id\n isValid\n isPreferred\n paymentProvider {\n _id\n type\n interface {\n _id\n label\n version\n }\n }\n }\n emails {\n verified\n address\n }\n web3Addresses {\n address\n nonce\n verified\n }\n webAuthnCredentials {\n _id\n created\n aaguid\n counter\n mdsMetadata {\n ...MD5MetaDataFragment\n }\n }\n profile {\n displayName\n phoneMobile\n gender\n address {\n firstName\n lastName\n company\n addressLine\n addressLine2\n postalCode\n countryCode\n regionCode\n city\n }\n birthday\n }\n username\n primaryEmail {\n verified\n address\n }\n isGuest\n isInitialPassword\n name\n roles\n tags\n deleted\n cart {\n _id\n items {\n _id\n }\n }\n orders {\n _id\n items {\n _id\n }\n }\n }\n ","\n"]);return s=function(){return e},e}let o=(0,i.J1)(s(),a.A)},99416:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(37876),i=r(48230),a=r.n(i),s=r(77742),o=r(82579);let l=e=>{let{error:t=null,resetError:r=null}=e,{formatMessage:i}=(0,s.A)();return(0,n.jsx)("div",{className:"flex min-h-screen items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:(0,n.jsxs)("div",{className:"w-full max-w-md space-y-4 text-center",children:[(0,n.jsx)("div",{children:(0,n.jsx)("h2",{className:"text-center text-3xl text-slate-900 dark:text-slate-200",children:i({id:"internal_server_error",defaultMessage:"500 Internal Server Error"})})}),(0,n.jsx)(o.A,{children:(0,n.jsxs)("div",{className:"space-y-6 px-4 pb-5 pt-3 sm:rounded-lg sm:px-10",children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-rose-100 dark:bg-rose-900",children:(0,n.jsx)("svg",{className:"h-6 w-6 text-rose-600 dark:text-rose-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})})}),(0,n.jsx)("p",{className:"mt-4 text-sm font-semibold uppercase tracking-wide text-rose-600 dark:text-rose-400",children:i({id:"error_500",defaultMessage:"500 Error"})}),(0,n.jsx)("p",{className:"mt-2 text-base text-slate-500 dark:text-slate-400",children:i({id:"internal_server_error_message",defaultMessage:"Sorry, something went wrong on our end. We are working to fix this."})}),(null==t?void 0:t.message)&&(0,n.jsxs)("details",{className:"mt-4 text-left",children:[(0,n.jsx)("summary",{className:"cursor-pointer text-sm text-slate-600 dark:text-slate-400 hover:text-slate-800 dark:hover:text-slate-300",children:i({id:"show_error_details",defaultMessage:"Show error details"})}),(0,n.jsx)("pre",{className:"mt-2 text-xs text-slate-500 dark:text-slate-400 whitespace-pre-wrap break-all",children:null==t?void 0:t.message})]})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-3 mt-6",children:[(0,n.jsxs)(a(),{href:"/",className:"group relative flex w-full justify-center rounded-md border border-transparent bg-slate-800 dark:bg-slate-600 py-2 px-4 text-sm font-medium text-white hover:bg-slate-950 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:ring-offset-2",children:[(0,n.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,n.jsx)("svg",{className:"h-5 w-5 text-white group-hover:text-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"})})}),i({id:"back_to_home",defaultMessage:"Back to Home"})]}),r&&(0,n.jsxs)("button",{type:"button",onClick:r,className:"group relative flex w-full justify-center rounded-md border border-slate-300 bg-slate-100 dark:bg-slate-700 dark:border-slate-600 py-2 px-4 text-sm font-medium text-slate-700 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 focus:outline-hidden focus:ring-2 focus:ring-slate-500 dark:focus:ring-slate-400 focus:ring-offset-2",children:[(0,n.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,n.jsx)("svg",{className:"h-5 w-5 text-slate-500 dark:text-slate-400 group-hover:text-slate-600 dark:group-hover:text-slate-300",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z",clipRule:"evenodd"})})}),i({id:"try_again",defaultMessage:"Try Again"})]})]})]})})]})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(92),t(6763))),_N_E=e.O()}]);
|