@everymatrix/casino-tournaments-customize-page-controller 1.99.56 → 1.99.59
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/components/{CasinoTournamentsCustomizePageController-CW3iBCrv.js → CasinoTournamentsCustomizePageController-CVhp1A77.js} +46 -83
- package/components/{CasinoTournamentsCustomizePageController-9ElwUCH8.cjs → CasinoTournamentsCustomizePageController-DMYuUTBM.cjs} +1 -1
- package/components/{CasinoTournamentsCustomizePageController-DQkUBriw.js → CasinoTournamentsCustomizePageController-DkMJCLZJ.js} +45 -82
- package/es2015/casino-tournaments-customize-page-controller.cjs +1 -1
- package/es2015/casino-tournaments-customize-page-controller.js +1 -1
- package/esnext/casino-tournaments-customize-page-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-B6BYeRne.js → index-97d17652-B7kuyr7B.js} +22 -24
- package/stencil/{index-97d17652-BOr4KAqq.js → index-97d17652-Cylnizw0.js} +22 -24
- package/stencil/{index-b2193545-Dg04r8Mf.js → index-b2193545-D5DMRrXT.js} +2 -3
- package/stencil/{index-b2193545-oPMLiBVn.js → index-b2193545-evj4NBzl.js} +2 -3
- package/stencil/{ui-image-DyN7Fe9v.js → ui-image-BQB9htll.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-BKRtoUuG.js → ui-image-b7b48fe5-C1j5WYU1.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-HA45CrsG.js → ui-image-b7b48fe5-Yz-NwCB5.js} +1 -1
- package/stencil/{ui-image-BiEqrTjD.js → ui-image-t4iT2lJF.js} +1 -1
- package/stencil/{ui-image_2-CmVho0dS.js → ui-image_2-B6hxNvK2.js} +2 -2
- package/stencil/{ui-image_2-Daq38JGa.js → ui-image_2-CeEpO7fa.js} +2 -2
- package/stencil/{ui-skeleton-DGlqF493.js → ui-skeleton-DZhnwmHg.js} +2 -2
- package/stencil/{ui-skeleton-ed169f8f-CLXtOZ1A.js → ui-skeleton-ed169f8f-BDPQLS5-.js} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-Dc_jq3n7.js → ui-skeleton-ed169f8f-Cuuq-Jld.js} +1 -1
- package/stencil/{ui-skeleton-CCeXOW4G.js → ui-skeleton-zkSIfvAX.js} +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var r0=Object.defineProperty,n0=Object.defineProperties;var i0=Object.getOwnPropertyDescriptors;var Ma=Object.getOwnPropertySymbols;var a0=Object.prototype.hasOwnProperty,s0=Object.prototype.propertyIsEnumerable;var ui=(t,e,r)=>e in t?r0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ar=(t,e)=>{for(var r in e||(e={}))a0.call(e,r)&&ui(t,r,e[r]);if(Ma)for(var r of Ma(e))s0.call(e,r)&&ui(t,r,e[r]);return t},Ra=(t,e)=>n0(t,i0(e));var yt=(t,e,r)=>(ui(t,typeof e!="symbol"?e+"":e,r),r);var Wr=(t,e,r)=>new Promise((n,i)=>{var a=l=>{try{o(r.next(l))}catch(u){i(u)}},s=l=>{try{o(r.throw(l))}catch(u){i(u)}},o=l=>l.done?n(l.value):Promise.resolve(l.value).then(a,s);o((r=r.apply(t,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../stencil/ui-skeleton-CImpq9cv.cjs");require("../stencil/ui-image-GKGnzjWQ.cjs");function J(){}function Jt(t,e){for(const r in e)t[r]=e[r];return t}function yo(t){return t()}function Aa(){return Object.create(null)}function Ot(t){t.forEach(yo)}function $t(t){return typeof t=="function"}function je(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let pn;function Ye(t,e){return t===e?!0:(pn||(pn=document.createElement("a")),pn.href=e,t===pn.href)}function o0(t){return Object.keys(t).length===0}function Co(t,...e){if(t==null){for(const n of e)n(void 0);return J}const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function wt(t,e,r){t.$$.on_destroy.push(Co(e,r))}function l0(t,e,r,n){if(t){const i=wo(t,e,r,n);return t[0](i)}}function wo(t,e,r,n){return t[1]&&n?Jt(r.ctx.slice(),t[1](n(e))):r.ctx}function u0(t,e,r,n){if(t[2]&&n){const i=t[2](n(r));if(e.dirty===void 0)return i;if(typeof i=="object"){const a=[],s=Math.max(e.dirty.length,i.length);for(let o=0;o<s;o+=1)a[o]=e.dirty[o]|i[o];return a}return e.dirty|i}return e.dirty}function c0(t,e,r,n,i,a){if(i){const s=wo(e,r,n,a);t.p(s,i)}}function f0(t){if(t.ctx.length>32){const e=[],r=t.ctx.length/32;for(let n=0;n<r;n++)e[n]=-1;return e}return-1}function Fa(t){const e={};for(const r in t)r[0]!=="$"&&(e[r]=t[r]);return e}function er(t){return t&&$t(t.destroy)?t.destroy:J}function m(t,e){t.appendChild(e)}function _r(t,e,r){const n=d0(t);if(!n.getElementById(e)){const i=b("style");i.id=e,i.textContent=r,h0(n,i)}}function d0(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function h0(t,e){return m(t.head||t,e),e.sheet}function C(t,e,r){t.insertBefore(e,r||null)}function _(t){t.parentNode&&t.parentNode.removeChild(t)}function ft(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}function b(t){return document.createElement(t)}function $e(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function O(t){return document.createTextNode(t)}function H(){return O(" ")}function de(){return O("")}function tt(t,e,r,n){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}function c(t,e,r){r==null?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function m0(t){return Array.from(t.childNodes)}function W(t,e){e=""+e,t.data!==e&&(t.data=e)}function At(t,e,r,n){r==null?t.style.removeProperty(e):t.style.setProperty(e,r,"")}function gn(t,e,r){t.classList.toggle(e,!!r)}function p0(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function Rr(t,e){return new t(e)}let tn;function Kr(t){tn=t}function vo(){if(!tn)throw new Error("Function called outside component initialization");return tn}function tr(t){vo().$$.on_mount.push(t)}const kr=[],rn=[];let Dr=[];const Oa=[],g0=Promise.resolve();let vi=!1;function b0(){vi||(vi=!0,g0.then(x))}function Ti(t){Dr.push(t)}const ci=new Set;let wr=0;function x(){if(wr!==0)return;const t=tn;do{try{for(;wr<kr.length;){const e=kr[wr];wr++,Kr(e),_0(e.$$)}}catch(e){throw kr.length=0,wr=0,e}for(Kr(null),kr.length=0,wr=0;rn.length;)rn.pop()();for(let e=0;e<Dr.length;e+=1){const r=Dr[e];ci.has(r)||(ci.add(r),r())}Dr.length=0}while(kr.length);for(;Oa.length;)Oa.pop()();vi=!1,ci.clear(),Kr(t)}function _0(t){if(t.fragment!==null){t.update(),Ot(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Ti)}}function y0(t){const e=[],r=[];Dr.forEach(n=>t.indexOf(n)===-1?e.push(n):r.push(n)),r.forEach(n=>n()),Dr=e}const wn=new Set;let pr;function lt(){pr={r:0,c:[],p:pr}}function ut(){pr.r||Ot(pr.c),pr=pr.p}function oe(t,e){t&&t.i&&(wn.delete(t),t.i(e))}function _e(t,e,r,n){if(t&&t.o){if(wn.has(t))return;wn.add(t),pr.c.push(()=>{wn.delete(t),n&&(r&&t.d(1),n())}),t.o(e)}else n&&n()}function Le(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Ar(t,e){const r={},n={},i={$$scope:1};let a=t.length;for(;a--;){const s=t[a],o=e[a];if(o){for(const l in s)l in o||(n[l]=1);for(const l in o)i[l]||(r[l]=o[l],i[l]=1);t[a]=o}else for(const l in s)i[l]=1}for(const s in n)s in r||(r[s]=void 0);return r}function Fr(t){return typeof t=="object"&&t!==null?t:{}}function cr(t){t&&t.c()}function Zt(t,e,r){const{fragment:n,after_update:i}=t.$$;n&&n.m(e,r),Ti(()=>{const a=t.$$.on_mount.map(yo).filter($t);t.$$.on_destroy?t.$$.on_destroy.push(...a):Ot(a),t.$$.on_mount=[]}),i.forEach(Ti)}function Xt(t,e){const r=t.$$;r.fragment!==null&&(y0(r.after_update),Ot(r.on_destroy),r.fragment&&r.fragment.d(e),r.on_destroy=r.fragment=null,r.ctx=[])}function C0(t,e){t.$$.dirty[0]===-1&&(kr.push(t),b0(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function We(t,e,r,n,i,a,s=null,o=[-1]){const l=tn;Kr(t);const u=t.$$={fragment:null,ctx:[],props:a,update:J,not_equal:i,bound:Aa(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Aa(),dirty:o,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let f=!1;if(u.ctx=r?r(t,e.props||{},(d,h,...g)=>{const y=g.length?g[0]:h;return u.ctx&&i(u.ctx[d],u.ctx[d]=y)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](y),f&&C0(t,d)),h}):[],u.update(),f=!0,Ot(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const d=m0(e.target);u.fragment&&u.fragment.l(d),d.forEach(_)}else u.fragment&&u.fragment.c();e.intro&&oe(t.$$.fragment),Zt(t,e.target,e.anchor),x()}Kr(l)}let To;typeof HTMLElement=="function"&&(To=class extends HTMLElement{constructor(e,r,n){super();yt(this,"$$ctor");yt(this,"$$s");yt(this,"$$c");yt(this,"$$cn",!1);yt(this,"$$d",{});yt(this,"$$r",!1);yt(this,"$$p_d",{});yt(this,"$$l",{});yt(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(e,r,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(r),this.$$c){const i=this.$$c.$on(e,r);this.$$l_u.set(r,i)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return Wr(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(a){return()=>{let s;return{c:function(){s=b("slot"),a!=="default"&&c(s,"name",a)},m:function(u,f){C(u,s,f)},d:function(u){u&&_(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=p0(this);for(const a of this.$$s)a in n&&(r[a]=[e(a)]);for(const a of this.attributes){const s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=vn(s,a.value,this.$$p_d,"toProp"))}for(const a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Ra(ar({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const a in this.$$p_d)if(this.$$d[a]=this.$$c.$$.ctx[this.$$c.$$.props[a]],this.$$p_d[a].reflect){const s=vn(a,this.$$d[a],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[a].attribute||a):this.setAttribute(this.$$p_d[a].attribute||a,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const a in this.$$l)for(const s of this.$$l[a]){const o=this.$$c.$on(a,s);this.$$l_u.set(s,o)}this.$$l={}}})}attributeChangedCallback(e,r,n){var i;this.$$r||(e=this.$$g_p(e),this.$$d[e]=vn(e,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function vn(t,e,r,n){var a;const i=(a=r[t])==null?void 0:a.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Ve(t,e,r,n,i,a){let s=class extends To{constructor(){super(t,r,i),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(o=>(e[o].attribute||o).toLowerCase())}};return Object.keys(e).forEach(o=>{Object.defineProperty(s.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){var u;l=vn(o,l,e),this.$$d[o]=l,(u=this.$$c)==null||u.$set({[o]:l})}})}),n.forEach(o=>{Object.defineProperty(s.prototype,o,{get(){var l;return(l=this.$$c)==null?void 0:l[o]}})}),t.element=s,s}class qe{constructor(){yt(this,"$$");yt(this,"$$set")}$destroy(){Xt(this,1),this.$destroy=J}$on(e,r){if(!$t(r))return J;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(e){this.$$set&&!o0(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const w0="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(w0);const vr=[];function v0(t,e){return{subscribe:In(t,e).subscribe}}function In(t,e=J){let r;const n=new Set;function i(o){if(je(t,o)&&(t=o,r)){const l=!vr.length;for(const u of n)u[1](),vr.push(u,t);if(l){for(let u=0;u<vr.length;u+=2)vr[u][0](vr[u+1]);vr.length=0}}}function a(o){i(o(t))}function s(o,l=J){const u=[o,l];return n.add(u),n.size===1&&(r=e(i,a)||J),o(t),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:a,subscribe:s}}function Hr(t,e,r){const n=!Array.isArray(t),i=n?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=e.length<2;return v0(r,(s,o)=>{let l=!1;const u=[];let f=0,d=J;const h=()=>{if(f)return;d();const y=e(n?u[0]:u,s,o);a?s(y):d=$t(y)?y:J},g=i.map((y,p)=>Co(y,S=>{u[p]=S,f&=~(1<<p),l&&h()},()=>{f|=1<<p}));return l=!0,h(),function(){Ot(g),d(),l=!1}})}var T0=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function k0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var S0=function(e){return P0(e)&&!x0(e)};function P0(t){return!!t&&typeof t=="object"}function x0(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||E0(t)}var D0=typeof Symbol=="function"&&Symbol.for,L0=D0?Symbol.for("react.element"):60103;function E0(t){return t.$$typeof===L0}function M0(t){return Array.isArray(t)?[]:{}}function nn(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Or(M0(t),t,e):t}function R0(t,e,r){return t.concat(e).map(function(n){return nn(n,r)})}function A0(t,e){if(!e.customMerge)return Or;var r=e.customMerge(t);return typeof r=="function"?r:Or}function F0(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function za(t){return Object.keys(t).concat(F0(t))}function ko(t,e){try{return e in t}catch(r){return!1}}function O0(t,e){return ko(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function z0(t,e,r){var n={};return r.isMergeableObject(t)&&za(t).forEach(function(i){n[i]=nn(t[i],r)}),za(e).forEach(function(i){O0(t,i)||(ko(t,i)&&r.isMergeableObject(e[i])?n[i]=A0(i,r)(t[i],e[i],r):n[i]=nn(e[i],r))}),n}function Or(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||R0,r.isMergeableObject=r.isMergeableObject||S0,r.cloneUnlessOtherwiseSpecified=nn;var n=Array.isArray(e),i=Array.isArray(t),a=n===i;return a?n?r.arrayMerge(t,e,r):z0(t,e,r):nn(e,r)}Or.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,i){return Or(n,i,r)},{})};var B0=Or,N0=B0;const H0=k0(N0);var ki=function(t,e){return ki=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ki(t,e)};function jn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ki(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Mt=function(){return Mt=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Mt.apply(this,arguments)};function U0(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function fi(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++)(a||!(n in e))&&(a||(a=Array.prototype.slice.call(e,0,n)),a[n]=e[n]);return t.concat(a||Array.prototype.slice.call(e))}function di(t,e){var r=e&&e.cache?e.cache:q0,n=e&&e.serializer?e.serializer:W0,i=e&&e.strategy?e.strategy:G0;return i(t,{cache:r,serializer:n})}function I0(t){return t==null||typeof t=="number"||typeof t=="boolean"}function j0(t,e,r,n){var i=I0(n)?n:r(n),a=e.get(i);return typeof a=="undefined"&&(a=t.call(this,n),e.set(i,a)),a}function So(t,e,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=e.get(i);return typeof a=="undefined"&&(a=t.apply(this,n),e.set(i,a)),a}function Po(t,e,r,n,i){return r.bind(e,t,n,i)}function G0(t,e){var r=t.length===1?j0:So;return Po(t,this,r,e.cache.create(),e.serializer)}function Y0(t,e){return Po(t,this,So,e.cache.create(),e.serializer)}var W0=function(){return JSON.stringify(arguments)},V0=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(e){return this.cache[e]},t.prototype.set=function(e,r){this.cache[e]=r},t}(),q0={create:function(){return new V0}},hi={variadic:Y0},Ln=function(){return Ln=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ln.apply(this,arguments)};var me;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(me||(me={}));var ze;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(ze||(ze={}));var zr;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(zr||(zr={}));function Ba(t){return t.type===ze.literal}function J0(t){return t.type===ze.argument}function xo(t){return t.type===ze.number}function Do(t){return t.type===ze.date}function Lo(t){return t.type===ze.time}function Eo(t){return t.type===ze.select}function Mo(t){return t.type===ze.plural}function Z0(t){return t.type===ze.pound}function Ro(t){return t.type===ze.tag}function Ao(t){return!!(t&&typeof t=="object"&&t.type===zr.number)}function Si(t){return!!(t&&typeof t=="object"&&t.type===zr.dateTime)}var Fo=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,X0=/(?:[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;function Q0(t){var e={};return t.replace(X0,function(r){var n=r.length;switch(r[0]){case"G":e.era=n===4?"long":n===5?"narrow":"short";break;case"y":e.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][n-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][n-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][n-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][n-1];break;case"s":e.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),e}var Ue=function(){return Ue=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ue.apply(this,arguments)};var K0=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function $0(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var e=t.split(K0).filter(function(h){return h.length>0}),r=[],n=0,i=e;n<i.length;n++){var a=i[n],s=a.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var o=s[0],l=s.slice(1),u=0,f=l;u<f.length;u++){var d=f[u];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:o,options:l})}return r}function eu(t){return t.replace(/^(.*?)-/,"")}var Na=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Oo=/^(@+)?(\+|#+)?[rs]?$/g,tu=/(\*)(0+)|(#+)(0+)|(0+)/g,zo=/^(0+)$/;function Ha(t){var e={};return t[t.length-1]==="r"?e.roundingPriority="morePrecision":t[t.length-1]==="s"&&(e.roundingPriority="lessPrecision"),t.replace(Oo,function(r,n,i){return typeof i!="string"?(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length):i==="+"?e.minimumSignificantDigits=n.length:n[0]==="#"?e.maximumSignificantDigits=n.length:(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),e}function Bo(t){switch(t){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 ru(t){var e;if(t[0]==="E"&&t[1]==="E"?(e={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if(r==="+!"?(e.signDisplay="always",t=t.slice(2)):r==="+?"&&(e.signDisplay="exceptZero",t=t.slice(2)),!zo.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function Ua(t){var e={},r=Bo(t);return r||e}function nu(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=eu(i.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=Ue(Ue(Ue({},e),{notation:"scientific"}),i.options.reduce(function(l,u){return Ue(Ue({},l),Ua(u))},{}));continue;case"engineering":e=Ue(Ue(Ue({},e),{notation:"engineering"}),i.options.reduce(function(l,u){return Ue(Ue({},l),Ua(u))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(tu,function(l,u,f,d,h,g){if(u)e.minimumIntegerDigits=f.length;else{if(d&&h)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(zo.test(i.stem)){e.minimumIntegerDigits=i.stem.length;continue}if(Na.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Na,function(l,u,f,d,h,g){return f==="*"?e.minimumFractionDigits=u.length:d&&d[0]==="#"?e.maximumFractionDigits=d.length:h&&g?(e.minimumFractionDigits=h.length,e.maximumFractionDigits=h.length+g.length):(e.minimumFractionDigits=u.length,e.maximumFractionDigits=u.length),""});var a=i.options[0];a==="w"?e=Ue(Ue({},e),{trailingZeroDisplay:"stripIfInteger"}):a&&(e=Ue(Ue({},e),Ha(a)));continue}if(Oo.test(i.stem)){e=Ue(Ue({},e),Ha(i.stem));continue}var s=Bo(i.stem);s&&(e=Ue(Ue({},e),s));var o=ru(i.stem);o&&(e=Ue(Ue({},e),o))}return e}var bn={"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"]};function iu(t,e){for(var r="",n=0;n<t.length;n++){var i=t.charAt(n);if(i==="j"){for(var a=0;n+1<t.length&&t.charAt(n+1)===i;)a++,n++;var s=1+(a&1),o=a<2?1:3+(a>>1),l="a",u=au(e);for((u=="H"||u=="k")&&(o=0);o-- >0;)r+=l;for(;s-- >0;)r=u+r}else i==="J"?r+="H":r+=i}return r}function au(t){var e=t.hourCycle;if(e===void 0&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=t.language,n;r!=="root"&&(n=t.maximize().region);var i=bn[n||""]||bn[r||""]||bn["".concat(r,"-001")]||bn["001"];return i[0]}var mi,su=new RegExp("^".concat(Fo.source,"*")),ou=new RegExp("".concat(Fo.source,"*$"));function pe(t,e){return{start:t,end:e}}var lu=!!String.prototype.startsWith&&"_a".startsWith("a",1),uu=!!String.fromCodePoint,cu=!!Object.fromEntries,fu=!!String.prototype.codePointAt,du=!!String.prototype.trimStart,hu=!!String.prototype.trimEnd,mu=!!Number.isSafeInteger,pu=mu?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Pi=!0;try{var gu=Ho("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Pi=((mi=gu.exec("a"))===null||mi===void 0?void 0:mi[0])==="a"}catch(t){Pi=!1}var Ia=lu?function(e,r,n){return e.startsWith(r,n)}:function(e,r,n){return e.slice(n,n+r.length)===r},xi=uu?String.fromCodePoint:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var n="",i=e.length,a=0,s;i>a;){if(s=e[a++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return n},ja=cu?Object.fromEntries:function(e){for(var r={},n=0,i=e;n<i.length;n++){var a=i[n],s=a[0],o=a[1];r[s]=o}return r},No=fu?function(e,r){return e.codePointAt(r)}:function(e,r){var n=e.length;if(!(r<0||r>=n)){var i=e.charCodeAt(r),a;return i<55296||i>56319||r+1===n||(a=e.charCodeAt(r+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},bu=du?function(e){return e.trimStart()}:function(e){return e.replace(su,"")},_u=hu?function(e){return e.trimEnd()}:function(e){return e.replace(ou,"")};function Ho(t,e){return new RegExp(t,e)}var Di;if(Pi){var Ga=Ho("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Di=function(e,r){var n;Ga.lastIndex=r;var i=Ga.exec(e);return(n=i[1])!==null&&n!==void 0?n:""}}else Di=function(e,r){for(var n=[];;){var i=No(e,r);if(i===void 0||Uo(i)||vu(i))break;n.push(i),r+=i>=65536?2:1}return xi.apply(void 0,n)};var yu=function(){function t(e,r){r===void 0&&(r={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(e,r,n){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var s=this.parseArgument(e,n);if(s.err)return s;i.push(s.val)}else{if(a===125&&e>0)break;if(a===35&&(r==="plural"||r==="selectordinal")){var o=this.clonePosition();this.bump(),i.push({type:ze.pound,location:pe(o,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(me.UNMATCHED_CLOSING_TAG,pe(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&Li(this.peek()||0)){var s=this.parseTag(e,r);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(e,r);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},t.prototype.parseTag=function(e,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ze.literal,value:"<".concat(i,"/>"),location:pe(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(e+1,r,!0);if(a.err)return a;var s=a.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Li(this.char()))return this.error(me.INVALID_TAG,pe(o,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(me.UNMATCHED_CLOSING_TAG,pe(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ze.tag,value:i,children:s,location:pe(n,this.clonePosition())},err:null}:this.error(me.INVALID_TAG,pe(o,this.clonePosition())))}else return this.error(me.UNCLOSED_TAG,pe(n,this.clonePosition()))}else return this.error(me.INVALID_TAG,pe(n,this.clonePosition()))},t.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&wu(this.char());)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(e,r){for(var n=this.clonePosition(),i="";;){var a=this.tryParseQuote(r);if(a){i+=a;continue}var s=this.tryParseUnquoted(e,r);if(s){i+=s;continue}var o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var l=pe(n,this.clonePosition());return{val:{type:ze.literal,value:i,location:l},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Cu(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return xi.apply(void 0,r)},t.prototype.tryParseUnquoted=function(e,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&e>0?null:(this.bump(),xi(n))},t.prototype.parseArgument=function(e,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(me.EXPECT_ARGUMENT_CLOSING_BRACE,pe(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(me.EMPTY_ARGUMENT,pe(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(me.MALFORMED_ARGUMENT,pe(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(me.EXPECT_ARGUMENT_CLOSING_BRACE,pe(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ze.argument,value:i,location:pe(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(me.EXPECT_ARGUMENT_CLOSING_BRACE,pe(n,this.clonePosition())):this.parseArgumentOptions(e,r,i,n);default:return this.error(me.MALFORMED_ARGUMENT,pe(n,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),r=this.offset(),n=Di(this.message,r),i=r+n.length;this.bumpTo(i);var a=this.clonePosition(),s=pe(e,a);return{value:n,location:s}},t.prototype.parseArgumentOptions=function(e,r,n,i){var a,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(o){case"":return this.error(me.EXPECT_ARGUMENT_TYPE,pe(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=_u(d.val);if(h.length===0)return this.error(me.EXPECT_ARGUMENT_STYLE,pe(this.clonePosition(),this.clonePosition()));var g=pe(f,this.clonePosition());u={style:h,styleLocation:g}}var y=this.tryParseArgumentClose(i);if(y.err)return y;var p=pe(i,this.clonePosition());if(u&&Ia(u==null?void 0:u.style,"::",0)){var S=bu(u.style.slice(2));if(o==="number"){var d=this.parseNumberSkeletonFromString(S,u.styleLocation);return d.err?d:{val:{type:ze.number,value:n,location:p,style:d.val},err:null}}else{if(S.length===0)return this.error(me.EXPECT_DATE_TIME_SKELETON,p);var D=S;this.locale&&(D=iu(S,this.locale));var h={type:zr.dateTime,pattern:D,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Q0(D):{}},E=o==="date"?ze.date:ze.time;return{val:{type:E,value:n,location:p,style:h},err:null}}}return{val:{type:o==="number"?ze.number:o==="date"?ze.date:ze.time,value:n,location:p,style:(a=u==null?void 0:u.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var w=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(me.EXPECT_SELECT_ARGUMENT_OPTIONS,pe(w,Ln({},w)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),Y=0;if(o!=="select"&&v.value==="offset"){if(!this.bumpIf(":"))return this.error(me.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,pe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(me.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,me.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),v=this.parseIdentifierIfPossible(),Y=d.val}var L=this.tryParsePluralOrSelectOptions(e,o,r,v);if(L.err)return L;var y=this.tryParseArgumentClose(i);if(y.err)return y;var F=pe(i,this.clonePosition());return o==="select"?{val:{type:ze.select,value:n,options:ja(L.val),location:F},err:null}:{val:{type:ze.plural,value:n,options:ja(L.val),offset:Y,pluralType:o==="plural"?"cardinal":"ordinal",location:F},err:null}}default:return this.error(me.INVALID_ARGUMENT_TYPE,pe(s,l))}},t.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(me.EXPECT_ARGUMENT_CLOSING_BRACE,pe(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(me.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,pe(i,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(e,r){var n=[];try{n=$0(e)}catch(i){return this.error(me.INVALID_NUMBER_SKELETON,r)}return{val:{type:zr.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?nu(n):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(e,r,n,i){for(var a,s=!1,o=[],l=new Set,u=i.value,f=i.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(me.EXPECT_PLURAL_ARGUMENT_SELECTOR,me.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;f=pe(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?me.DUPLICATE_SELECT_ARGUMENT_SELECTOR:me.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);u==="other"&&(s=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?me.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:me.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,pe(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(e+1,r,n);if(y.err)return y;var p=this.tryParseArgumentClose(g);if(p.err)return p;o.push([u,{value:y.val,location:pe(g,this.clonePosition())}]),l.add(u),this.bumpSpace(),a=this.parseIdentifierIfPossible(),u=a.value,f=a.location}return o.length===0?this.error(r==="select"?me.EXPECT_SELECT_ARGUMENT_SELECTOR:me.EXPECT_PLURAL_ARGUMENT_SELECTOR,pe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(me.MISSING_OTHER_CLAUSE,pe(this.clonePosition(),this.clonePosition())):{val:o,err:null}},t.prototype.tryParseDecimalInteger=function(e,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var a=!1,s=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)a=!0,s=s*10+(o-48),this.bump();else break}var l=pe(i,this.clonePosition());return a?(s*=n,pu(s)?{val:s,err:null}:this.error(r,l)):this.error(e,l)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var r=No(this.message,e);if(r===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return r},t.prototype.error=function(e,r){return{val:null,err:{kind:e,message:this.message,location:r}}},t.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},t.prototype.bumpIf=function(e){if(Ia(this.message,e,this.offset())){for(var r=0;r<e.length;r++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(e){var r=this.offset(),n=this.message.indexOf(e,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},t.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 r=this.offset();if(r===e)break;if(r>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&Uo(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(e>=65536?2:1));return n!=null?n:null},t}();function Li(t){return t>=97&&t<=122||t>=65&&t<=90}function Cu(t){return Li(t)||t===47}function wu(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function Uo(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function vu(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function Ei(t){t.forEach(function(e){if(delete e.location,Eo(e)||Mo(e))for(var r in e.options)delete e.options[r].location,Ei(e.options[r].value);else xo(e)&&Ao(e.style)||(Do(e)||Lo(e))&&Si(e.style)?delete e.style.location:Ro(e)&&Ei(e.children)})}function Tu(t,e){e===void 0&&(e={}),e=Ln({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new yu(t,e).parse();if(r.err){var n=SyntaxError(me[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return e!=null&&e.captureLocation||Ei(r.val),r.val}var Br;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(Br||(Br={}));var Gn=function(t){jn(e,t);function e(r,n,i){var a=t.call(this,r)||this;return a.code=n,a.originalMessage=i,a}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),Ya=function(t){jn(e,t);function e(r,n,i,a){return t.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Br.INVALID_VALUE,a)||this}return e}(Gn),ku=function(t){jn(e,t);function e(r,n,i){return t.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Br.INVALID_VALUE,i)||this}return e}(Gn),Su=function(t){jn(e,t);function e(r,n){return t.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),Br.MISSING_VALUE,n)||this}return e}(Gn),ot;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(ot||(ot={}));function Pu(t){return t.length<2?t:t.reduce(function(e,r){var n=e[e.length-1];return!n||n.type!==ot.literal||r.type!==ot.literal?e.push(r):n.value+=r.value,e},[])}function xu(t){return typeof t=="function"}function Tn(t,e,r,n,i,a,s){if(t.length===1&&Ba(t[0]))return[{type:ot.literal,value:t[0].value}];for(var o=[],l=0,u=t;l<u.length;l++){var f=u[l];if(Ba(f)){o.push({type:ot.literal,value:f.value});continue}if(Z0(f)){typeof a=="number"&&o.push({type:ot.literal,value:r.getNumberFormat(e).format(a)});continue}var d=f.value;if(!(i&&d in i))throw new Su(d,s);var h=i[d];if(J0(f)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),o.push({type:typeof h=="string"?ot.literal:ot.object,value:h});continue}if(Do(f)){var g=typeof f.style=="string"?n.date[f.style]:Si(f.style)?f.style.parsedOptions:void 0;o.push({type:ot.literal,value:r.getDateTimeFormat(e,g).format(h)});continue}if(Lo(f)){var g=typeof f.style=="string"?n.time[f.style]:Si(f.style)?f.style.parsedOptions:n.time.medium;o.push({type:ot.literal,value:r.getDateTimeFormat(e,g).format(h)});continue}if(xo(f)){var g=typeof f.style=="string"?n.number[f.style]:Ao(f.style)?f.style.parsedOptions:void 0;g&&g.scale&&(h=h*(g.scale||1)),o.push({type:ot.literal,value:r.getNumberFormat(e,g).format(h)});continue}if(Ro(f)){var y=f.children,p=f.value,S=i[p];if(!xu(S))throw new ku(p,"function",s);var D=Tn(y,e,r,n,i,a),E=S(D.map(function(Y){return Y.value}));Array.isArray(E)||(E=[E]),o.push.apply(o,E.map(function(Y){return{type:typeof Y=="string"?ot.literal:ot.object,value:Y}}))}if(Eo(f)){var w=f.options[h]||f.options.other;if(!w)throw new Ya(f.value,h,Object.keys(f.options),s);o.push.apply(o,Tn(w.value,e,r,n,i));continue}if(Mo(f)){var w=f.options["=".concat(h)];if(!w){if(!Intl.PluralRules)throw new Gn(`Intl.PluralRules is not available in this environment.
|
|
1
|
+
"use strict";var r0=Object.defineProperty,n0=Object.defineProperties;var i0=Object.getOwnPropertyDescriptors;var Ma=Object.getOwnPropertySymbols;var a0=Object.prototype.hasOwnProperty,s0=Object.prototype.propertyIsEnumerable;var ui=(t,e,r)=>e in t?r0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ar=(t,e)=>{for(var r in e||(e={}))a0.call(e,r)&&ui(t,r,e[r]);if(Ma)for(var r of Ma(e))s0.call(e,r)&&ui(t,r,e[r]);return t},Ra=(t,e)=>n0(t,i0(e));var yt=(t,e,r)=>ui(t,typeof e!="symbol"?e+"":e,r);var Wr=(t,e,r)=>new Promise((n,i)=>{var a=l=>{try{o(r.next(l))}catch(u){i(u)}},s=l=>{try{o(r.throw(l))}catch(u){i(u)}},o=l=>l.done?n(l.value):Promise.resolve(l.value).then(a,s);o((r=r.apply(t,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../stencil/ui-skeleton-CImpq9cv.cjs");require("../stencil/ui-image-GKGnzjWQ.cjs");function J(){}function Jt(t,e){for(const r in e)t[r]=e[r];return t}function yo(t){return t()}function Aa(){return Object.create(null)}function Ot(t){t.forEach(yo)}function $t(t){return typeof t=="function"}function je(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let pn;function Ye(t,e){return t===e?!0:(pn||(pn=document.createElement("a")),pn.href=e,t===pn.href)}function o0(t){return Object.keys(t).length===0}function Co(t,...e){if(t==null){for(const n of e)n(void 0);return J}const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function wt(t,e,r){t.$$.on_destroy.push(Co(e,r))}function l0(t,e,r,n){if(t){const i=wo(t,e,r,n);return t[0](i)}}function wo(t,e,r,n){return t[1]&&n?Jt(r.ctx.slice(),t[1](n(e))):r.ctx}function u0(t,e,r,n){if(t[2]&&n){const i=t[2](n(r));if(e.dirty===void 0)return i;if(typeof i=="object"){const a=[],s=Math.max(e.dirty.length,i.length);for(let o=0;o<s;o+=1)a[o]=e.dirty[o]|i[o];return a}return e.dirty|i}return e.dirty}function c0(t,e,r,n,i,a){if(i){const s=wo(e,r,n,a);t.p(s,i)}}function f0(t){if(t.ctx.length>32){const e=[],r=t.ctx.length/32;for(let n=0;n<r;n++)e[n]=-1;return e}return-1}function Fa(t){const e={};for(const r in t)r[0]!=="$"&&(e[r]=t[r]);return e}function er(t){return t&&$t(t.destroy)?t.destroy:J}function m(t,e){t.appendChild(e)}function _r(t,e,r){const n=d0(t);if(!n.getElementById(e)){const i=b("style");i.id=e,i.textContent=r,h0(n,i)}}function d0(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function h0(t,e){return m(t.head||t,e),e.sheet}function C(t,e,r){t.insertBefore(e,r||null)}function _(t){t.parentNode&&t.parentNode.removeChild(t)}function ft(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}function b(t){return document.createElement(t)}function $e(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function O(t){return document.createTextNode(t)}function H(){return O(" ")}function de(){return O("")}function tt(t,e,r,n){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}function c(t,e,r){r==null?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function m0(t){return Array.from(t.childNodes)}function W(t,e){e=""+e,t.data!==e&&(t.data=e)}function At(t,e,r,n){r==null?t.style.removeProperty(e):t.style.setProperty(e,r,"")}function gn(t,e,r){t.classList.toggle(e,!!r)}function p0(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function Rr(t,e){return new t(e)}let tn;function Kr(t){tn=t}function vo(){if(!tn)throw new Error("Function called outside component initialization");return tn}function tr(t){vo().$$.on_mount.push(t)}const kr=[],rn=[];let Dr=[];const Oa=[],g0=Promise.resolve();let vi=!1;function b0(){vi||(vi=!0,g0.then(x))}function Ti(t){Dr.push(t)}const ci=new Set;let wr=0;function x(){if(wr!==0)return;const t=tn;do{try{for(;wr<kr.length;){const e=kr[wr];wr++,Kr(e),_0(e.$$)}}catch(e){throw kr.length=0,wr=0,e}for(Kr(null),kr.length=0,wr=0;rn.length;)rn.pop()();for(let e=0;e<Dr.length;e+=1){const r=Dr[e];ci.has(r)||(ci.add(r),r())}Dr.length=0}while(kr.length);for(;Oa.length;)Oa.pop()();vi=!1,ci.clear(),Kr(t)}function _0(t){if(t.fragment!==null){t.update(),Ot(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Ti)}}function y0(t){const e=[],r=[];Dr.forEach(n=>t.indexOf(n)===-1?e.push(n):r.push(n)),r.forEach(n=>n()),Dr=e}const wn=new Set;let pr;function lt(){pr={r:0,c:[],p:pr}}function ut(){pr.r||Ot(pr.c),pr=pr.p}function oe(t,e){t&&t.i&&(wn.delete(t),t.i(e))}function _e(t,e,r,n){if(t&&t.o){if(wn.has(t))return;wn.add(t),pr.c.push(()=>{wn.delete(t),n&&(r&&t.d(1),n())}),t.o(e)}else n&&n()}function Le(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Ar(t,e){const r={},n={},i={$$scope:1};let a=t.length;for(;a--;){const s=t[a],o=e[a];if(o){for(const l in s)l in o||(n[l]=1);for(const l in o)i[l]||(r[l]=o[l],i[l]=1);t[a]=o}else for(const l in s)i[l]=1}for(const s in n)s in r||(r[s]=void 0);return r}function Fr(t){return typeof t=="object"&&t!==null?t:{}}function cr(t){t&&t.c()}function Zt(t,e,r){const{fragment:n,after_update:i}=t.$$;n&&n.m(e,r),Ti(()=>{const a=t.$$.on_mount.map(yo).filter($t);t.$$.on_destroy?t.$$.on_destroy.push(...a):Ot(a),t.$$.on_mount=[]}),i.forEach(Ti)}function Xt(t,e){const r=t.$$;r.fragment!==null&&(y0(r.after_update),Ot(r.on_destroy),r.fragment&&r.fragment.d(e),r.on_destroy=r.fragment=null,r.ctx=[])}function C0(t,e){t.$$.dirty[0]===-1&&(kr.push(t),b0(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function We(t,e,r,n,i,a,s=null,o=[-1]){const l=tn;Kr(t);const u=t.$$={fragment:null,ctx:[],props:a,update:J,not_equal:i,bound:Aa(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Aa(),dirty:o,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let f=!1;if(u.ctx=r?r(t,e.props||{},(d,h,...g)=>{const y=g.length?g[0]:h;return u.ctx&&i(u.ctx[d],u.ctx[d]=y)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](y),f&&C0(t,d)),h}):[],u.update(),f=!0,Ot(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const d=m0(e.target);u.fragment&&u.fragment.l(d),d.forEach(_)}else u.fragment&&u.fragment.c();e.intro&&oe(t.$$.fragment),Zt(t,e.target,e.anchor),x()}Kr(l)}let To;typeof HTMLElement=="function"&&(To=class extends HTMLElement{constructor(e,r,n){super();yt(this,"$$ctor");yt(this,"$$s");yt(this,"$$c");yt(this,"$$cn",!1);yt(this,"$$d",{});yt(this,"$$r",!1);yt(this,"$$p_d",{});yt(this,"$$l",{});yt(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(e,r,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(r),this.$$c){const i=this.$$c.$on(e,r);this.$$l_u.set(r,i)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return Wr(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(a){return()=>{let s;return{c:function(){s=b("slot"),a!=="default"&&c(s,"name",a)},m:function(u,f){C(u,s,f)},d:function(u){u&&_(s)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=p0(this);for(const a of this.$$s)a in n&&(r[a]=[e(a)]);for(const a of this.attributes){const s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=vn(s,a.value,this.$$p_d,"toProp"))}for(const a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Ra(ar({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const a in this.$$p_d)if(this.$$d[a]=this.$$c.$$.ctx[this.$$c.$$.props[a]],this.$$p_d[a].reflect){const s=vn(a,this.$$d[a],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[a].attribute||a):this.setAttribute(this.$$p_d[a].attribute||a,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const a in this.$$l)for(const s of this.$$l[a]){const o=this.$$c.$on(a,s);this.$$l_u.set(s,o)}this.$$l={}}})}attributeChangedCallback(e,r,n){var i;this.$$r||(e=this.$$g_p(e),this.$$d[e]=vn(e,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function vn(t,e,r,n){var a;const i=(a=r[t])==null?void 0:a.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Ve(t,e,r,n,i,a){let s=class extends To{constructor(){super(t,r,i),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(o=>(e[o].attribute||o).toLowerCase())}};return Object.keys(e).forEach(o=>{Object.defineProperty(s.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){var u;l=vn(o,l,e),this.$$d[o]=l,(u=this.$$c)==null||u.$set({[o]:l})}})}),n.forEach(o=>{Object.defineProperty(s.prototype,o,{get(){var l;return(l=this.$$c)==null?void 0:l[o]}})}),t.element=s,s}class qe{constructor(){yt(this,"$$");yt(this,"$$set")}$destroy(){Xt(this,1),this.$destroy=J}$on(e,r){if(!$t(r))return J;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(e){this.$$set&&!o0(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const w0="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(w0);const vr=[];function v0(t,e){return{subscribe:In(t,e).subscribe}}function In(t,e=J){let r;const n=new Set;function i(o){if(je(t,o)&&(t=o,r)){const l=!vr.length;for(const u of n)u[1](),vr.push(u,t);if(l){for(let u=0;u<vr.length;u+=2)vr[u][0](vr[u+1]);vr.length=0}}}function a(o){i(o(t))}function s(o,l=J){const u=[o,l];return n.add(u),n.size===1&&(r=e(i,a)||J),o(t),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:a,subscribe:s}}function Hr(t,e,r){const n=!Array.isArray(t),i=n?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=e.length<2;return v0(r,(s,o)=>{let l=!1;const u=[];let f=0,d=J;const h=()=>{if(f)return;d();const y=e(n?u[0]:u,s,o);a?s(y):d=$t(y)?y:J},g=i.map((y,p)=>Co(y,S=>{u[p]=S,f&=~(1<<p),l&&h()},()=>{f|=1<<p}));return l=!0,h(),function(){Ot(g),d(),l=!1}})}var T0=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function k0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var S0=function(e){return P0(e)&&!x0(e)};function P0(t){return!!t&&typeof t=="object"}function x0(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||E0(t)}var D0=typeof Symbol=="function"&&Symbol.for,L0=D0?Symbol.for("react.element"):60103;function E0(t){return t.$$typeof===L0}function M0(t){return Array.isArray(t)?[]:{}}function nn(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Or(M0(t),t,e):t}function R0(t,e,r){return t.concat(e).map(function(n){return nn(n,r)})}function A0(t,e){if(!e.customMerge)return Or;var r=e.customMerge(t);return typeof r=="function"?r:Or}function F0(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function za(t){return Object.keys(t).concat(F0(t))}function ko(t,e){try{return e in t}catch(r){return!1}}function O0(t,e){return ko(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function z0(t,e,r){var n={};return r.isMergeableObject(t)&&za(t).forEach(function(i){n[i]=nn(t[i],r)}),za(e).forEach(function(i){O0(t,i)||(ko(t,i)&&r.isMergeableObject(e[i])?n[i]=A0(i,r)(t[i],e[i],r):n[i]=nn(e[i],r))}),n}function Or(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||R0,r.isMergeableObject=r.isMergeableObject||S0,r.cloneUnlessOtherwiseSpecified=nn;var n=Array.isArray(e),i=Array.isArray(t),a=n===i;return a?n?r.arrayMerge(t,e,r):z0(t,e,r):nn(e,r)}Or.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,i){return Or(n,i,r)},{})};var B0=Or,N0=B0;const H0=k0(N0);var ki=function(t,e){return ki=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ki(t,e)};function jn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ki(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Mt=function(){return Mt=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Mt.apply(this,arguments)};function U0(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function fi(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++)(a||!(n in e))&&(a||(a=Array.prototype.slice.call(e,0,n)),a[n]=e[n]);return t.concat(a||Array.prototype.slice.call(e))}function di(t,e){var r=e&&e.cache?e.cache:q0,n=e&&e.serializer?e.serializer:W0,i=e&&e.strategy?e.strategy:G0;return i(t,{cache:r,serializer:n})}function I0(t){return t==null||typeof t=="number"||typeof t=="boolean"}function j0(t,e,r,n){var i=I0(n)?n:r(n),a=e.get(i);return typeof a=="undefined"&&(a=t.call(this,n),e.set(i,a)),a}function So(t,e,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=e.get(i);return typeof a=="undefined"&&(a=t.apply(this,n),e.set(i,a)),a}function Po(t,e,r,n,i){return r.bind(e,t,n,i)}function G0(t,e){var r=t.length===1?j0:So;return Po(t,this,r,e.cache.create(),e.serializer)}function Y0(t,e){return Po(t,this,So,e.cache.create(),e.serializer)}var W0=function(){return JSON.stringify(arguments)},V0=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(e){return this.cache[e]},t.prototype.set=function(e,r){this.cache[e]=r},t}(),q0={create:function(){return new V0}},hi={variadic:Y0},Ln=function(){return Ln=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ln.apply(this,arguments)};var me;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(me||(me={}));var ze;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(ze||(ze={}));var zr;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(zr||(zr={}));function Ba(t){return t.type===ze.literal}function J0(t){return t.type===ze.argument}function xo(t){return t.type===ze.number}function Do(t){return t.type===ze.date}function Lo(t){return t.type===ze.time}function Eo(t){return t.type===ze.select}function Mo(t){return t.type===ze.plural}function Z0(t){return t.type===ze.pound}function Ro(t){return t.type===ze.tag}function Ao(t){return!!(t&&typeof t=="object"&&t.type===zr.number)}function Si(t){return!!(t&&typeof t=="object"&&t.type===zr.dateTime)}var Fo=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,X0=/(?:[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;function Q0(t){var e={};return t.replace(X0,function(r){var n=r.length;switch(r[0]){case"G":e.era=n===4?"long":n===5?"narrow":"short";break;case"y":e.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][n-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][n-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][n-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][n-1];break;case"s":e.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),e}var Ue=function(){return Ue=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ue.apply(this,arguments)};var K0=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function $0(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var e=t.split(K0).filter(function(h){return h.length>0}),r=[],n=0,i=e;n<i.length;n++){var a=i[n],s=a.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var o=s[0],l=s.slice(1),u=0,f=l;u<f.length;u++){var d=f[u];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:o,options:l})}return r}function eu(t){return t.replace(/^(.*?)-/,"")}var Na=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Oo=/^(@+)?(\+|#+)?[rs]?$/g,tu=/(\*)(0+)|(#+)(0+)|(0+)/g,zo=/^(0+)$/;function Ha(t){var e={};return t[t.length-1]==="r"?e.roundingPriority="morePrecision":t[t.length-1]==="s"&&(e.roundingPriority="lessPrecision"),t.replace(Oo,function(r,n,i){return typeof i!="string"?(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length):i==="+"?e.minimumSignificantDigits=n.length:n[0]==="#"?e.maximumSignificantDigits=n.length:(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),e}function Bo(t){switch(t){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 ru(t){var e;if(t[0]==="E"&&t[1]==="E"?(e={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if(r==="+!"?(e.signDisplay="always",t=t.slice(2)):r==="+?"&&(e.signDisplay="exceptZero",t=t.slice(2)),!zo.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function Ua(t){var e={},r=Bo(t);return r||e}function nu(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=eu(i.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=Ue(Ue(Ue({},e),{notation:"scientific"}),i.options.reduce(function(l,u){return Ue(Ue({},l),Ua(u))},{}));continue;case"engineering":e=Ue(Ue(Ue({},e),{notation:"engineering"}),i.options.reduce(function(l,u){return Ue(Ue({},l),Ua(u))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(tu,function(l,u,f,d,h,g){if(u)e.minimumIntegerDigits=f.length;else{if(d&&h)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(zo.test(i.stem)){e.minimumIntegerDigits=i.stem.length;continue}if(Na.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Na,function(l,u,f,d,h,g){return f==="*"?e.minimumFractionDigits=u.length:d&&d[0]==="#"?e.maximumFractionDigits=d.length:h&&g?(e.minimumFractionDigits=h.length,e.maximumFractionDigits=h.length+g.length):(e.minimumFractionDigits=u.length,e.maximumFractionDigits=u.length),""});var a=i.options[0];a==="w"?e=Ue(Ue({},e),{trailingZeroDisplay:"stripIfInteger"}):a&&(e=Ue(Ue({},e),Ha(a)));continue}if(Oo.test(i.stem)){e=Ue(Ue({},e),Ha(i.stem));continue}var s=Bo(i.stem);s&&(e=Ue(Ue({},e),s));var o=ru(i.stem);o&&(e=Ue(Ue({},e),o))}return e}var bn={"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"]};function iu(t,e){for(var r="",n=0;n<t.length;n++){var i=t.charAt(n);if(i==="j"){for(var a=0;n+1<t.length&&t.charAt(n+1)===i;)a++,n++;var s=1+(a&1),o=a<2?1:3+(a>>1),l="a",u=au(e);for((u=="H"||u=="k")&&(o=0);o-- >0;)r+=l;for(;s-- >0;)r=u+r}else i==="J"?r+="H":r+=i}return r}function au(t){var e=t.hourCycle;if(e===void 0&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=t.language,n;r!=="root"&&(n=t.maximize().region);var i=bn[n||""]||bn[r||""]||bn["".concat(r,"-001")]||bn["001"];return i[0]}var mi,su=new RegExp("^".concat(Fo.source,"*")),ou=new RegExp("".concat(Fo.source,"*$"));function pe(t,e){return{start:t,end:e}}var lu=!!String.prototype.startsWith&&"_a".startsWith("a",1),uu=!!String.fromCodePoint,cu=!!Object.fromEntries,fu=!!String.prototype.codePointAt,du=!!String.prototype.trimStart,hu=!!String.prototype.trimEnd,mu=!!Number.isSafeInteger,pu=mu?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Pi=!0;try{var gu=Ho("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Pi=((mi=gu.exec("a"))===null||mi===void 0?void 0:mi[0])==="a"}catch(t){Pi=!1}var Ia=lu?function(e,r,n){return e.startsWith(r,n)}:function(e,r,n){return e.slice(n,n+r.length)===r},xi=uu?String.fromCodePoint:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var n="",i=e.length,a=0,s;i>a;){if(s=e[a++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return n},ja=cu?Object.fromEntries:function(e){for(var r={},n=0,i=e;n<i.length;n++){var a=i[n],s=a[0],o=a[1];r[s]=o}return r},No=fu?function(e,r){return e.codePointAt(r)}:function(e,r){var n=e.length;if(!(r<0||r>=n)){var i=e.charCodeAt(r),a;return i<55296||i>56319||r+1===n||(a=e.charCodeAt(r+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},bu=du?function(e){return e.trimStart()}:function(e){return e.replace(su,"")},_u=hu?function(e){return e.trimEnd()}:function(e){return e.replace(ou,"")};function Ho(t,e){return new RegExp(t,e)}var Di;if(Pi){var Ga=Ho("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Di=function(e,r){var n;Ga.lastIndex=r;var i=Ga.exec(e);return(n=i[1])!==null&&n!==void 0?n:""}}else Di=function(e,r){for(var n=[];;){var i=No(e,r);if(i===void 0||Uo(i)||vu(i))break;n.push(i),r+=i>=65536?2:1}return xi.apply(void 0,n)};var yu=function(){function t(e,r){r===void 0&&(r={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(e,r,n){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var s=this.parseArgument(e,n);if(s.err)return s;i.push(s.val)}else{if(a===125&&e>0)break;if(a===35&&(r==="plural"||r==="selectordinal")){var o=this.clonePosition();this.bump(),i.push({type:ze.pound,location:pe(o,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(me.UNMATCHED_CLOSING_TAG,pe(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&Li(this.peek()||0)){var s=this.parseTag(e,r);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(e,r);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},t.prototype.parseTag=function(e,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ze.literal,value:"<".concat(i,"/>"),location:pe(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(e+1,r,!0);if(a.err)return a;var s=a.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Li(this.char()))return this.error(me.INVALID_TAG,pe(o,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(me.UNMATCHED_CLOSING_TAG,pe(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ze.tag,value:i,children:s,location:pe(n,this.clonePosition())},err:null}:this.error(me.INVALID_TAG,pe(o,this.clonePosition())))}else return this.error(me.UNCLOSED_TAG,pe(n,this.clonePosition()))}else return this.error(me.INVALID_TAG,pe(n,this.clonePosition()))},t.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&wu(this.char());)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(e,r){for(var n=this.clonePosition(),i="";;){var a=this.tryParseQuote(r);if(a){i+=a;continue}var s=this.tryParseUnquoted(e,r);if(s){i+=s;continue}var o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var l=pe(n,this.clonePosition());return{val:{type:ze.literal,value:i,location:l},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Cu(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return xi.apply(void 0,r)},t.prototype.tryParseUnquoted=function(e,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&e>0?null:(this.bump(),xi(n))},t.prototype.parseArgument=function(e,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(me.EXPECT_ARGUMENT_CLOSING_BRACE,pe(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(me.EMPTY_ARGUMENT,pe(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(me.MALFORMED_ARGUMENT,pe(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(me.EXPECT_ARGUMENT_CLOSING_BRACE,pe(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ze.argument,value:i,location:pe(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(me.EXPECT_ARGUMENT_CLOSING_BRACE,pe(n,this.clonePosition())):this.parseArgumentOptions(e,r,i,n);default:return this.error(me.MALFORMED_ARGUMENT,pe(n,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),r=this.offset(),n=Di(this.message,r),i=r+n.length;this.bumpTo(i);var a=this.clonePosition(),s=pe(e,a);return{value:n,location:s}},t.prototype.parseArgumentOptions=function(e,r,n,i){var a,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(o){case"":return this.error(me.EXPECT_ARGUMENT_TYPE,pe(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=_u(d.val);if(h.length===0)return this.error(me.EXPECT_ARGUMENT_STYLE,pe(this.clonePosition(),this.clonePosition()));var g=pe(f,this.clonePosition());u={style:h,styleLocation:g}}var y=this.tryParseArgumentClose(i);if(y.err)return y;var p=pe(i,this.clonePosition());if(u&&Ia(u==null?void 0:u.style,"::",0)){var S=bu(u.style.slice(2));if(o==="number"){var d=this.parseNumberSkeletonFromString(S,u.styleLocation);return d.err?d:{val:{type:ze.number,value:n,location:p,style:d.val},err:null}}else{if(S.length===0)return this.error(me.EXPECT_DATE_TIME_SKELETON,p);var D=S;this.locale&&(D=iu(S,this.locale));var h={type:zr.dateTime,pattern:D,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Q0(D):{}},E=o==="date"?ze.date:ze.time;return{val:{type:E,value:n,location:p,style:h},err:null}}}return{val:{type:o==="number"?ze.number:o==="date"?ze.date:ze.time,value:n,location:p,style:(a=u==null?void 0:u.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var w=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(me.EXPECT_SELECT_ARGUMENT_OPTIONS,pe(w,Ln({},w)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),Y=0;if(o!=="select"&&v.value==="offset"){if(!this.bumpIf(":"))return this.error(me.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,pe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(me.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,me.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),v=this.parseIdentifierIfPossible(),Y=d.val}var L=this.tryParsePluralOrSelectOptions(e,o,r,v);if(L.err)return L;var y=this.tryParseArgumentClose(i);if(y.err)return y;var F=pe(i,this.clonePosition());return o==="select"?{val:{type:ze.select,value:n,options:ja(L.val),location:F},err:null}:{val:{type:ze.plural,value:n,options:ja(L.val),offset:Y,pluralType:o==="plural"?"cardinal":"ordinal",location:F},err:null}}default:return this.error(me.INVALID_ARGUMENT_TYPE,pe(s,l))}},t.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(me.EXPECT_ARGUMENT_CLOSING_BRACE,pe(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(me.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,pe(i,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(e,r){var n=[];try{n=$0(e)}catch(i){return this.error(me.INVALID_NUMBER_SKELETON,r)}return{val:{type:zr.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?nu(n):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(e,r,n,i){for(var a,s=!1,o=[],l=new Set,u=i.value,f=i.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(me.EXPECT_PLURAL_ARGUMENT_SELECTOR,me.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;f=pe(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?me.DUPLICATE_SELECT_ARGUMENT_SELECTOR:me.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);u==="other"&&(s=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?me.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:me.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,pe(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(e+1,r,n);if(y.err)return y;var p=this.tryParseArgumentClose(g);if(p.err)return p;o.push([u,{value:y.val,location:pe(g,this.clonePosition())}]),l.add(u),this.bumpSpace(),a=this.parseIdentifierIfPossible(),u=a.value,f=a.location}return o.length===0?this.error(r==="select"?me.EXPECT_SELECT_ARGUMENT_SELECTOR:me.EXPECT_PLURAL_ARGUMENT_SELECTOR,pe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(me.MISSING_OTHER_CLAUSE,pe(this.clonePosition(),this.clonePosition())):{val:o,err:null}},t.prototype.tryParseDecimalInteger=function(e,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var a=!1,s=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)a=!0,s=s*10+(o-48),this.bump();else break}var l=pe(i,this.clonePosition());return a?(s*=n,pu(s)?{val:s,err:null}:this.error(r,l)):this.error(e,l)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var r=No(this.message,e);if(r===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return r},t.prototype.error=function(e,r){return{val:null,err:{kind:e,message:this.message,location:r}}},t.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},t.prototype.bumpIf=function(e){if(Ia(this.message,e,this.offset())){for(var r=0;r<e.length;r++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(e){var r=this.offset(),n=this.message.indexOf(e,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},t.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 r=this.offset();if(r===e)break;if(r>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&Uo(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(e>=65536?2:1));return n!=null?n:null},t}();function Li(t){return t>=97&&t<=122||t>=65&&t<=90}function Cu(t){return Li(t)||t===47}function wu(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function Uo(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function vu(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function Ei(t){t.forEach(function(e){if(delete e.location,Eo(e)||Mo(e))for(var r in e.options)delete e.options[r].location,Ei(e.options[r].value);else xo(e)&&Ao(e.style)||(Do(e)||Lo(e))&&Si(e.style)?delete e.style.location:Ro(e)&&Ei(e.children)})}function Tu(t,e){e===void 0&&(e={}),e=Ln({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new yu(t,e).parse();if(r.err){var n=SyntaxError(me[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return e!=null&&e.captureLocation||Ei(r.val),r.val}var Br;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(Br||(Br={}));var Gn=function(t){jn(e,t);function e(r,n,i){var a=t.call(this,r)||this;return a.code=n,a.originalMessage=i,a}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),Ya=function(t){jn(e,t);function e(r,n,i,a){return t.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Br.INVALID_VALUE,a)||this}return e}(Gn),ku=function(t){jn(e,t);function e(r,n,i){return t.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Br.INVALID_VALUE,i)||this}return e}(Gn),Su=function(t){jn(e,t);function e(r,n){return t.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),Br.MISSING_VALUE,n)||this}return e}(Gn),ot;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(ot||(ot={}));function Pu(t){return t.length<2?t:t.reduce(function(e,r){var n=e[e.length-1];return!n||n.type!==ot.literal||r.type!==ot.literal?e.push(r):n.value+=r.value,e},[])}function xu(t){return typeof t=="function"}function Tn(t,e,r,n,i,a,s){if(t.length===1&&Ba(t[0]))return[{type:ot.literal,value:t[0].value}];for(var o=[],l=0,u=t;l<u.length;l++){var f=u[l];if(Ba(f)){o.push({type:ot.literal,value:f.value});continue}if(Z0(f)){typeof a=="number"&&o.push({type:ot.literal,value:r.getNumberFormat(e).format(a)});continue}var d=f.value;if(!(i&&d in i))throw new Su(d,s);var h=i[d];if(J0(f)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),o.push({type:typeof h=="string"?ot.literal:ot.object,value:h});continue}if(Do(f)){var g=typeof f.style=="string"?n.date[f.style]:Si(f.style)?f.style.parsedOptions:void 0;o.push({type:ot.literal,value:r.getDateTimeFormat(e,g).format(h)});continue}if(Lo(f)){var g=typeof f.style=="string"?n.time[f.style]:Si(f.style)?f.style.parsedOptions:n.time.medium;o.push({type:ot.literal,value:r.getDateTimeFormat(e,g).format(h)});continue}if(xo(f)){var g=typeof f.style=="string"?n.number[f.style]:Ao(f.style)?f.style.parsedOptions:void 0;g&&g.scale&&(h=h*(g.scale||1)),o.push({type:ot.literal,value:r.getNumberFormat(e,g).format(h)});continue}if(Ro(f)){var y=f.children,p=f.value,S=i[p];if(!xu(S))throw new ku(p,"function",s);var D=Tn(y,e,r,n,i,a),E=S(D.map(function(Y){return Y.value}));Array.isArray(E)||(E=[E]),o.push.apply(o,E.map(function(Y){return{type:typeof Y=="string"?ot.literal:ot.object,value:Y}}))}if(Eo(f)){var w=f.options[h]||f.options.other;if(!w)throw new Ya(f.value,h,Object.keys(f.options),s);o.push.apply(o,Tn(w.value,e,r,n,i));continue}if(Mo(f)){var w=f.options["=".concat(h)];if(!w){if(!Intl.PluralRules)throw new Gn(`Intl.PluralRules is not available in this environment.
|
|
2
2
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3
3
|
`,Br.MISSING_INTL_API,s);var v=r.getPluralRules(e,{type:f.pluralType}).select(h-(f.offset||0));w=f.options[v]||f.options.other}if(!w)throw new Ya(f.value,h,Object.keys(f.options),s);o.push.apply(o,Tn(w.value,e,r,n,i,h-(f.offset||0)));continue}}return Pu(o)}function Du(t,e){return e?Mt(Mt(Mt({},t||{}),e||{}),Object.keys(t).reduce(function(r,n){return r[n]=Mt(Mt({},t[n]),e[n]||{}),r},{})):t}function Lu(t,e){return e?Object.keys(t).reduce(function(r,n){return r[n]=Du(t[n],e[n]),r},Mt({},t)):t}function pi(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}function Eu(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:di(function(){for(var e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,fi([void 0],r,!1)))},{cache:pi(t.number),strategy:hi.variadic}),getDateTimeFormat:di(function(){for(var e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,fi([void 0],r,!1)))},{cache:pi(t.dateTime),strategy:hi.variadic}),getPluralRules:di(function(){for(var e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,fi([void 0],r,!1)))},{cache:pi(t.pluralRules),strategy:hi.variadic})}}var Io=function(){function t(e,r,n,i){r===void 0&&(r=t.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=a.formatToParts(l);if(u.length===1)return u[0].value;var f=u.reduce(function(d,h){return!d.length||h.type!==ot.literal||typeof d[d.length-1]!="string"?d.push(h.value):d[d.length-1]+=h.value,d},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(l){return Tn(a.ast,a.locales,a.formatters,a.formats,l,void 0,a.message)},this.resolvedOptions=function(){var l;return{locale:((l=a.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=r,this.resolvedLocale=t.resolveLocale(r),typeof e=="string"){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var o=U0(s,["formatters"]);this.ast=t.__parse(e,Mt(Mt({},o),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Lu(t.formats,n),this.formatters=i&&i.formatters||Eu(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(e){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(e);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},t.__parse=Tu,t.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"}}},t}();function Mu(t,e){if(e==null)return;if(e in t)return t[e];const r=e.split(".");let n=t;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const a=r.slice(i,r.length).join(".");if(a in n){n=n[a];break}}n=n[r[i]]}else n=void 0;return n}const sr={},Ru=(t,e,r)=>r&&(e in sr||(sr[e]={}),t in sr[e]||(sr[e][t]=r),r),jo=(t,e)=>{if(e==null)return;if(e in sr&&t in sr[e])return sr[e][t];const r=un(e);for(let n=0;n<r.length;n++){const i=r[n],a=Fu(i,t);if(a)return Ru(t,e,a)}};let la;const Ur=In({});function Au(t){return la[t]||null}function Go(t){return t in la}function Fu(t,e){if(!Go(t))return null;const r=Au(t);return Mu(r,e)}function Ou(t){if(t==null)return;const e=un(t);for(let r=0;r<e.length;r++){const n=e[r];if(Go(n))return n}}function Yo(t,...e){delete sr[t],Ur.update(r=>(r[t]=H0.all([r[t]||{},...e]),r))}Hr([Ur],([t])=>Object.keys(t));Ur.subscribe(t=>la=t);const kn={};function zu(t,e){kn[t].delete(e),kn[t].size===0&&delete kn[t]}function Wo(t){return kn[t]}function Bu(t){return un(t).map(e=>{const r=Wo(e);return[e,r?[...r]:[]]}).filter(([,e])=>e.length>0)}function En(t){return t==null?!1:un(t).some(e=>{var r;return(r=Wo(e))==null?void 0:r.size})}function Nu(t,e){return Promise.all(e.map(n=>(zu(t,n),n().then(i=>i.default||i)))).then(n=>Yo(t,...n))}const Vr={};function Vo(t){if(!En(t))return t in Vr?Vr[t]:Promise.resolve();const e=Bu(t);return Vr[t]=Promise.all(e.map(([r,n])=>Nu(r,n))).then(()=>{if(En(t))return Vo(t);delete Vr[t]}),Vr[t]}var Wa=Object.getOwnPropertySymbols,Hu=Object.prototype.hasOwnProperty,Uu=Object.prototype.propertyIsEnumerable,Iu=(t,e)=>{var r={};for(var n in t)Hu.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&Wa)for(var n of Wa(t))e.indexOf(n)<0&&Uu.call(t,n)&&(r[n]=t[n]);return r};const ju={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},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"}}};function Gu({locale:t,id:e}){console.warn(`[svelte-i18n] The message "${e}" was not found in "${un(t).join('", "')}".${En(fr())?`
|
|
4
4
|
|