@kong-ui-public/misc-widgets 0.1.0

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.
@@ -0,0 +1,23 @@
1
+ (function(C,H){typeof exports=="object"&&typeof module<"u"?H(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],H):(C=typeof globalThis<"u"?globalThis:C||self,H(C["kong-ui-public-misc-widgets"]={},C.Vue))})(this,function(C,H){"use strict";var Z=function(t,r){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])},Z(t,r)};function N(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Z(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}var m=function(){return m=Object.assign||function(t){for(var r,n=1,e=arguments.length;n<e;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},m.apply(this,arguments)};function Xt(t,r){var n={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.indexOf(e)<0&&(n[e]=t[e]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,e=Object.getOwnPropertySymbols(t);i<e.length;i++)r.indexOf(e[i])<0&&Object.prototype.propertyIsEnumerable.call(t,e[i])&&(n[e[i]]=t[e[i]]);return n}function O(t,r,n){if(n||arguments.length===2)for(var e=0,i=r.length,o;e<i;e++)(o||!(e in r))&&(o||(o=Array.prototype.slice.call(r,0,e)),o[e]=r[e]);return t.concat(o||Array.prototype.slice.call(r))}var p;(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"})(p||(p={}));var y;(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"})(y||(y={}));var G;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(G||(G={}));function at(t){return t.type===y.literal}function Kt(t){return t.type===y.argument}function st(t){return t.type===y.number}function ht(t){return t.type===y.date}function ut(t){return t.type===y.time}function ct(t){return t.type===y.select}function lt(t){return t.type===y.plural}function Zt(t){return t.type===y.pound}function ft(t){return t.type===y.tag}function mt(t){return!!(t&&typeof t=="object"&&t.type===G.number)}function Y(t){return!!(t&&typeof t=="object"&&t.type===G.dateTime)}var pt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Yt=/(?:[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 Wt(t){var r={};return t.replace(Yt,function(n){var e=n.length;switch(n[0]){case"G":r.era=e===4?"long":e===5?"narrow":"short";break;case"y":r.year=e===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":r.month=["numeric","2-digit","short","long","narrow"][e-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][e-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=e===4?"short":e===5?"narrow":"short";break;case"e":if(e<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][e-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][e-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][e-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][e-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][e-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":r.minute=["numeric","2-digit"][e-1];break;case"s":r.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=e<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""}),r}var zt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function qt(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var r=t.split(zt).filter(function(f){return f.length>0}),n=[],e=0,i=r;e<i.length;e++){var o=i[e],a=o.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var s=a[0],c=a.slice(1),u=0,h=c;u<h.length;u++){var l=h[u];if(l.length===0)throw new Error("Invalid number skeleton")}n.push({stem:s,options:c})}return n}function Qt(t){return t.replace(/^(.*?)-/,"")}var gt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Et=/^(@+)?(\+|#+)?[rs]?$/g,Jt=/(\*)(0+)|(#+)(0+)|(0+)/g,bt=/^(0+)$/;function yt(t){var r={};return t[t.length-1]==="r"?r.roundingPriority="morePrecision":t[t.length-1]==="s"&&(r.roundingPriority="lessPrecision"),t.replace(Et,function(n,e,i){return typeof i!="string"?(r.minimumSignificantDigits=e.length,r.maximumSignificantDigits=e.length):i==="+"?r.minimumSignificantDigits=e.length:e[0]==="#"?r.maximumSignificantDigits=e.length:(r.minimumSignificantDigits=e.length,r.maximumSignificantDigits=e.length+(typeof i=="string"?i.length:0)),""}),r}function dt(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 $t(t){var r;if(t[0]==="E"&&t[1]==="E"?(r={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(r={notation:"scientific"},t=t.slice(1)),r){var n=t.slice(0,2);if(n==="+!"?(r.signDisplay="always",t=t.slice(2)):n==="+?"&&(r.signDisplay="exceptZero",t=t.slice(2)),!bt.test(t))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=t.length}return r}function vt(t){var r={},n=dt(t);return n||r}function tr(t){for(var r={},n=0,e=t;n<e.length;n++){var i=e[n];switch(i.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=i.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=Qt(i.options[0]);continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=m(m(m({},r),{notation:"scientific"}),i.options.reduce(function(c,u){return m(m({},c),vt(u))},{}));continue;case"engineering":r=m(m(m({},r),{notation:"engineering"}),i.options.reduce(function(c,u){return m(m({},c),vt(u))},{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(i.options[0]);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(Jt,function(c,u,h,l,f,g){if(u)r.minimumIntegerDigits=h.length;else{if(l&&f)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(bt.test(i.stem)){r.minimumIntegerDigits=i.stem.length;continue}if(gt.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(gt,function(c,u,h,l,f,g){return h==="*"?r.minimumFractionDigits=u.length:l&&l[0]==="#"?r.maximumFractionDigits=l.length:f&&g?(r.minimumFractionDigits=f.length,r.maximumFractionDigits=f.length+g.length):(r.minimumFractionDigits=u.length,r.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?r=m(m({},r),{trailingZeroDisplay:"stripIfInteger"}):o&&(r=m(m({},r),yt(o)));continue}if(Et.test(i.stem)){r=m(m({},r),yt(i.stem));continue}var a=dt(i.stem);a&&(r=m(m({},r),a));var s=$t(i.stem);s&&(r=m(m({},r),s))}return r}var j={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function rr(t,r){for(var n="",e=0;e<t.length;e++){var i=t.charAt(e);if(i==="j"){for(var o=0;e+1<t.length&&t.charAt(e+1)===i;)o++,e++;var a=1+(o&1),s=o<2?1:3+(o>>1),c="a",u=er(r);for((u=="H"||u=="k")&&(s=0);s-- >0;)n+=c;for(;a-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function er(t){var r=t.hourCycle;if(r===void 0&&t.hourCycles&&t.hourCycles.length&&(r=t.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=t.language,e;n!=="root"&&(e=t.maximize().region);var i=j[e||""]||j[n||""]||j["".concat(n,"-001")]||j["001"];return i[0]}var W,nr=new RegExp("^".concat(pt.source,"*")),ir=new RegExp("".concat(pt.source,"*$"));function E(t,r){return{start:t,end:r}}var or=!!String.prototype.startsWith,ar=!!String.fromCodePoint,sr=!!Object.fromEntries,hr=!!String.prototype.codePointAt,ur=!!String.prototype.trimStart,cr=!!String.prototype.trimEnd,lr=!!Number.isSafeInteger,fr=lr?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},z=!0;try{var mr=Ht("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");z=((W=mr.exec("a"))===null||W===void 0?void 0:W[0])==="a"}catch{z=!1}var Tt=or?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},q=ar?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",e=t.length,i=0,o;e>i;){if(o=t[i++],o>1114111)throw RangeError(o+" is not a valid code point");n+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return n},_t=sr?Object.fromEntries:function(t){for(var r={},n=0,e=t;n<e.length;n++){var i=e[n],o=i[0],a=i[1];r[o]=a}return r},At=hr?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var e=t.charCodeAt(r),i;return e<55296||e>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?e:(e-55296<<10)+(i-56320)+65536}},pr=ur?function(t){return t.trimStart()}:function(t){return t.replace(nr,"")},gr=cr?function(t){return t.trimEnd()}:function(t){return t.replace(ir,"")};function Ht(t,r){return new RegExp(t,r)}var Q;if(z){var St=Ht("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Q=function(t,r){var n;St.lastIndex=r;var e=St.exec(t);return(n=e[1])!==null&&n!==void 0?n:""}}else Q=function(t,r){for(var n=[];;){var e=At(t,r);if(e===void 0||Bt(e)||dr(e))break;n.push(e),r+=e>=65536?2:1}return q.apply(void 0,n)};var Er=function(){function t(r,n){n===void 0&&(n={}),this.message=r,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.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(r,n,e){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var a=this.parseArgument(r,e);if(a.err)return a;i.push(a.val)}else{if(o===125&&r>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:y.pound,location:E(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(e)break;return this.error(p.UNMATCHED_CLOSING_TAG,E(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&J(this.peek()||0)){var a=this.parseTag(r,n);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(r,n);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},t.prototype.parseTag=function(r,n){var e=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:y.literal,value:"<".concat(i,"/>"),location:E(e,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(r+1,n,!0);if(o.err)return o;var a=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!J(this.char()))return this.error(p.INVALID_TAG,E(s,this.clonePosition()));var c=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(p.UNMATCHED_CLOSING_TAG,E(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:y.tag,value:i,children:a,location:E(e,this.clonePosition())},err:null}:this.error(p.INVALID_TAG,E(s,this.clonePosition())))}else return this.error(p.UNCLOSED_TAG,E(e,this.clonePosition()))}else return this.error(p.INVALID_TAG,E(e,this.clonePosition()))},t.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&yr(this.char());)this.bump();return this.message.slice(r,this.offset())},t.prototype.parseLiteral=function(r,n){for(var e=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var a=this.tryParseUnquoted(r,n);if(a){i+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var c=E(e,this.clonePosition());return{val:{type:y.literal,value:i,location:c},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!br(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(r){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(r==="plural"||r==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var e=this.char();if(e===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(e);this.bump()}return q.apply(void 0,n)},t.prototype.tryParseUnquoted=function(r,n){if(this.isEOF())return null;var e=this.char();return e===60||e===123||e===35&&(n==="plural"||n==="selectordinal")||e===125&&r>0?null:(this.bump(),q(e))},t.prototype.parseArgument=function(r,n){var e=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,E(e,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(p.EMPTY_ARGUMENT,E(e,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(p.MALFORMED_ARGUMENT,E(e,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,E(e,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:i,location:E(e,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,E(e,this.clonePosition())):this.parseArgumentOptions(r,n,i,e);default:return this.error(p.MALFORMED_ARGUMENT,E(e,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),n=this.offset(),e=Q(this.message,n),i=n+e.length;this.bumpTo(i);var o=this.clonePosition(),a=E(r,o);return{value:e,location:a}},t.prototype.parseArgumentOptions=function(r,n,e,i){var o,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(s){case"":return this.error(p.EXPECT_ARGUMENT_TYPE,E(a,c));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),l=this.parseSimpleArgStyleIfPossible();if(l.err)return l;var f=gr(l.val);if(f.length===0)return this.error(p.EXPECT_ARGUMENT_STYLE,E(this.clonePosition(),this.clonePosition()));var g=E(h,this.clonePosition());u={style:f,styleLocation:g}}var d=this.tryParseArgumentClose(i);if(d.err)return d;var b=E(i,this.clonePosition());if(u&&Tt(u==null?void 0:u.style,"::",0)){var v=pr(u.style.slice(2));if(s==="number"){var l=this.parseNumberSkeletonFromString(v,u.styleLocation);return l.err?l:{val:{type:y.number,value:e,location:b,style:l.val},err:null}}else{if(v.length===0)return this.error(p.EXPECT_DATE_TIME_SKELETON,b);var T=v;this.locale&&(T=rr(v,this.locale));var f={type:G.dateTime,pattern:T,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Wt(T):{}},I=s==="date"?y.date:y.time;return{val:{type:I,value:e,location:b,style:f},err:null}}}return{val:{type:s==="number"?y.number:s==="date"?y.date:y.time,value:e,location:b,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS,E(A,m({},A)));this.bumpSpace();var k=this.parseIdentifierIfPossible(),U=0;if(s!=="select"&&k.value==="offset"){if(!this.bumpIf(":"))return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,E(this.clonePosition(),this.clonePosition()));this.bumpSpace();var l=this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(l.err)return l;this.bumpSpace(),k=this.parseIdentifierIfPossible(),U=l.val}var K=this.tryParsePluralOrSelectOptions(r,s,n,k);if(K.err)return K;var d=this.tryParseArgumentClose(i);if(d.err)return d;var xt=E(i,this.clonePosition());return s==="select"?{val:{type:y.select,value:e,options:_t(K.val),location:xt},err:null}:{val:{type:y.plural,value:e,options:_t(K.val),offset:U,pluralType:s==="plural"?"cardinal":"ordinal",location:xt},err:null}}default:return this.error(p.INVALID_ARGUMENT_TYPE,E(a,c))}},t.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,n=this.clonePosition();!this.isEOF();){var e=this.char();switch(e){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,E(i,this.clonePosition()));this.bump();break}case 123:{r+=1,this.bump();break}case 125:{if(r>0)r-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(r,n){var e=[];try{e=qt(r)}catch{return this.error(p.INVALID_NUMBER_SKELETON,n)}return{val:{type:G.number,tokens:e,location:n,parsedOptions:this.shouldParseSkeletons?tr(e):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(r,n,e,i){for(var o,a=!1,s=[],c=new Set,u=i.value,h=i.location;;){if(u.length===0){var l=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR,p.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;h=E(l,this.clonePosition()),u=this.message.slice(l.offset,this.offset())}else break}if(c.has(u))return this.error(n==="select"?p.DUPLICATE_SELECT_ARGUMENT_SELECTOR:p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);u==="other"&&(a=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,E(this.clonePosition(),this.clonePosition()));var d=this.parseMessage(r+1,n,e);if(d.err)return d;var b=this.tryParseArgumentClose(g);if(b.err)return b;s.push([u,{value:d.val,location:E(g,this.clonePosition())}]),c.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,h=o.location}return s.length===0?this.error(n==="select"?p.EXPECT_SELECT_ARGUMENT_SELECTOR:p.EXPECT_PLURAL_ARGUMENT_SELECTOR,E(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(p.MISSING_OTHER_CLAUSE,E(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(r,n){var e=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(e=-1);for(var o=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,a=a*10+(s-48),this.bump();else break}var c=E(i,this.clonePosition());return o?(a*=e,fr(a)?{val:a,err:null}:this.error(n,c)):this.error(r,c)},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 r=this.position.offset;if(r>=this.message.length)throw Error("out of bound");var n=At(this.message,r);if(n===void 0)throw Error("Offset ".concat(r," is at invalid UTF-16 code unit boundary"));return n},t.prototype.error=function(r,n){return{val:null,err:{kind:r,message:this.message,location:n}}},t.prototype.bump=function(){if(!this.isEOF()){var r=this.char();r===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=r<65536?1:2)}},t.prototype.bumpIf=function(r){if(Tt(this.message,r,this.offset())){for(var n=0;n<r.length;n++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(r){var n=this.offset(),e=this.message.indexOf(r,n);return e>=0?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(r){if(this.offset()>r)throw Error("targetOffset ".concat(r," must be greater than or equal to the current offset ").concat(this.offset()));for(r=Math.min(r,this.message.length);;){var n=this.offset();if(n===r)break;if(n>r)throw Error("targetOffset ".concat(r," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&Bt(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),n=this.offset(),e=this.message.charCodeAt(n+(r>=65536?2:1));return e??null},t}();function J(t){return t>=97&&t<=122||t>=65&&t<=90}function br(t){return J(t)||t===47}function yr(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 Bt(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function dr(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 $(t){t.forEach(function(r){if(delete r.location,ct(r)||lt(r))for(var n in r.options)delete r.options[n].location,$(r.options[n].value);else st(r)&&mt(r.style)||(ht(r)||ut(r))&&Y(r.style)?delete r.style.location:ft(r)&&$(r.children)})}function vr(t,r){r===void 0&&(r={}),r=m({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var n=new Er(t,r).parse();if(n.err){var e=SyntaxError(p[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return r!=null&&r.captureLocation||$(n.val),n.val}function R(t,r){var n=r&&r.cache?r.cache:Br,e=r&&r.serializer?r.serializer:Sr,i=r&&r.strategy?r.strategy:_r;return i(t,{cache:n,serializer:e})}function Tr(t){return t==null||typeof t=="number"||typeof t=="boolean"}function It(t,r,n,e){var i=Tr(e)?e:n(e),o=r.get(i);return typeof o>"u"&&(o=t.call(this,e),r.set(i,o)),o}function Nt(t,r,n){var e=Array.prototype.slice.call(arguments,3),i=n(e),o=r.get(i);return typeof o>"u"&&(o=t.apply(this,e),r.set(i,o)),o}function tt(t,r,n,e,i){return n.bind(r,t,e,i)}function _r(t,r){var n=t.length===1?It:Nt;return tt(t,this,n,r.cache.create(),r.serializer)}function Ar(t,r){return tt(t,this,Nt,r.cache.create(),r.serializer)}function Hr(t,r){return tt(t,this,It,r.cache.create(),r.serializer)}var Sr=function(){return JSON.stringify(arguments)};function rt(){this.cache=Object.create(null)}rt.prototype.get=function(t){return this.cache[t]},rt.prototype.set=function(t,r){this.cache[t]=r};var Br={create:function(){return new rt}},L={variadic:Ar,monadic:Hr},P;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(P||(P={}));var M=function(t){N(r,t);function r(n,e,i){var o=t.call(this,n)||this;return o.code=e,o.originalMessage=i,o}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),Rt=function(t){N(r,t);function r(n,e,i,o){return t.call(this,'Invalid values for "'.concat(n,'": "').concat(e,'". Options are "').concat(Object.keys(i).join('", "'),'"'),P.INVALID_VALUE,o)||this}return r}(M),Ir=function(t){N(r,t);function r(n,e,i){return t.call(this,'Value for "'.concat(n,'" must be of type ').concat(e),P.INVALID_VALUE,i)||this}return r}(M),Nr=function(t){N(r,t);function r(n,e){return t.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(e,'"'),P.MISSING_VALUE,e)||this}return r}(M),S;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(S||(S={}));function Rr(t){return t.length<2?t:t.reduce(function(r,n){var e=r[r.length-1];return!e||e.type!==S.literal||n.type!==S.literal?r.push(n):e.value+=n.value,r},[])}function Lr(t){return typeof t=="function"}function V(t,r,n,e,i,o,a){if(t.length===1&&at(t[0]))return[{type:S.literal,value:t[0].value}];for(var s=[],c=0,u=t;c<u.length;c++){var h=u[c];if(at(h)){s.push({type:S.literal,value:h.value});continue}if(Zt(h)){typeof o=="number"&&s.push({type:S.literal,value:n.getNumberFormat(r).format(o)});continue}var l=h.value;if(!(i&&l in i))throw new Nr(l,a);var f=i[l];if(Kt(h)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),s.push({type:typeof f=="string"?S.literal:S.object,value:f});continue}if(ht(h)){var g=typeof h.style=="string"?e.date[h.style]:Y(h.style)?h.style.parsedOptions:void 0;s.push({type:S.literal,value:n.getDateTimeFormat(r,g).format(f)});continue}if(ut(h)){var g=typeof h.style=="string"?e.time[h.style]:Y(h.style)?h.style.parsedOptions:e.time.medium;s.push({type:S.literal,value:n.getDateTimeFormat(r,g).format(f)});continue}if(st(h)){var g=typeof h.style=="string"?e.number[h.style]:mt(h.style)?h.style.parsedOptions:void 0;g&&g.scale&&(f=f*(g.scale||1)),s.push({type:S.literal,value:n.getNumberFormat(r,g).format(f)});continue}if(ft(h)){var d=h.children,b=h.value,v=i[b];if(!Lr(v))throw new Ir(b,"function",a);var T=V(d,r,n,e,i,o),I=v(T.map(function(U){return U.value}));Array.isArray(I)||(I=[I]),s.push.apply(s,I.map(function(U){return{type:typeof U=="string"?S.literal:S.object,value:U}}))}if(ct(h)){var A=h.options[f]||h.options.other;if(!A)throw new Rt(h.value,f,Object.keys(h.options),a);s.push.apply(s,V(A.value,r,n,e,i));continue}if(lt(h)){var A=h.options["=".concat(f)];if(!A){if(!Intl.PluralRules)throw new M(`Intl.PluralRules is not available in this environment.
2
+ Try polyfilling it using "@formatjs/intl-pluralrules"
3
+ `,P.MISSING_INTL_API,a);var k=n.getPluralRules(r,{type:h.pluralType}).select(f-(h.offset||0));A=h.options[k]||h.options.other}if(!A)throw new Rt(h.value,f,Object.keys(h.options),a);s.push.apply(s,V(A.value,r,n,e,i,f-(h.offset||0)));continue}}return Rr(s)}function Pr(t,r){return r?m(m(m({},t||{}),r||{}),Object.keys(t).reduce(function(n,e){return n[e]=m(m({},t[e]),r[e]||{}),n},{})):t}function Or(t,r){return r?Object.keys(t).reduce(function(n,e){return n[e]=Pr(t[e],r[e]),n},m({},t)):t}function et(t){return{create:function(){return{get:function(r){return t[r]},set:function(r,n){t[r]=n}}}}}function Mr(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:R(function(){for(var r,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return new((r=Intl.NumberFormat).bind.apply(r,O([void 0],n,!1)))},{cache:et(t.number),strategy:L.variadic}),getDateTimeFormat:R(function(){for(var r,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return new((r=Intl.DateTimeFormat).bind.apply(r,O([void 0],n,!1)))},{cache:et(t.dateTime),strategy:L.variadic}),getPluralRules:R(function(){for(var r,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return new((r=Intl.PluralRules).bind.apply(r,O([void 0],n,!1)))},{cache:et(t.pluralRules),strategy:L.variadic})}}var Lt=function(){function t(r,n,e,i){n===void 0&&(n=t.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var u=o.formatToParts(c);if(u.length===1)return u[0].value;var h=u.reduce(function(l,f){return!l.length||f.type!==S.literal||typeof l[l.length-1]!="string"?l.push(f.value):l[l.length-1]+=f.value,l},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(c){return V(o.ast,o.locales,o.formatters,o.formats,c,void 0,o.message)},this.resolvedOptions=function(){var c;return{locale:((c=o.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=t.resolveLocale(n),typeof r=="string"){if(this.message=r,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var s=Xt(a,["formatters"]);this.ast=t.__parse(r,m(m({},s),{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Or(t.formats,e),this.formatters=i&&i.formatters||Mr(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(r){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(r);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof r=="string"?r:r[0])}},t.__parse=vr,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(t){t.FORMAT_ERROR="FORMAT_ERROR",t.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",t.INVALID_CONFIG="INVALID_CONFIG",t.MISSING_DATA="MISSING_DATA",t.MISSING_TRANSLATION="MISSING_TRANSLATION"})(_||(_={}));var B=function(t){N(r,t);function r(n,e,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return o=t.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(e,`
4
+ `).concat(a?`
5
+ `.concat(a.message,`
6
+ `).concat(a.stack):""))||this,o.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o,r),o}return r}(Error),Cr=function(t){N(r,t);function r(n,e){return t.call(this,_.UNSUPPORTED_FORMATTER,n,e)||this}return r}(B),wr=function(t){N(r,t);function r(n,e){return t.call(this,_.INVALID_CONFIG,n,e)||this}return r}(B),Pt=function(t){N(r,t);function r(n,e){return t.call(this,_.MISSING_DATA,n,e)||this}return r}(B),nt=function(t){N(r,t);function r(n,e,i){return t.call(this,_.FORMAT_ERROR,"".concat(n,`
7
+ Locale: `).concat(e,`
8
+ `),i)||this}return r}(B),it=function(t){N(r,t);function r(n,e,i,o){var a=t.call(this,"".concat(n,`
9
+ MessageID: `).concat(i==null?void 0:i.id,`
10
+ Default Message: `).concat(i==null?void 0:i.defaultMessage,`
11
+ Description: `).concat(i==null?void 0:i.description,`
12
+ `),e,o)||this;return a.descriptor=i,a}return r}(nt),Dr=function(t){N(r,t);function r(n,e){var i=t.call(this,_.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(e,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(o){var a;return(a=o.value)!==null&&a!==void 0?a:JSON.stringify(o)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=n,i}return r}(B);function w(t,r,n){return n===void 0&&(n={}),r.reduce(function(e,i){return i in t?e[i]=t[i]:i in n&&(e[i]=n[i]),e},{})}var Ur=function(t){process.env.NODE_ENV!=="production"&&console.error(t)},Gr=function(t){process.env.NODE_ENV!=="production"&&console.warn(t)},Fr={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:Ur,onWarn:Gr};function Ot(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function D(t){return{create:function(){return{get:function(r){return t[r]},set:function(r,n){t[r]=n}}}}}function kr(t){t===void 0&&(t=Ot());var r=Intl.RelativeTimeFormat,n=Intl.ListFormat,e=Intl.DisplayNames,i=R(function(){for(var s,c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new((s=Intl.DateTimeFormat).bind.apply(s,O([void 0],c,!1)))},{cache:D(t.dateTime),strategy:L.variadic}),o=R(function(){for(var s,c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new((s=Intl.NumberFormat).bind.apply(s,O([void 0],c,!1)))},{cache:D(t.number),strategy:L.variadic}),a=R(function(){for(var s,c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new((s=Intl.PluralRules).bind.apply(s,O([void 0],c,!1)))},{cache:D(t.pluralRules),strategy:L.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:R(function(s,c,u,h){return new Lt(s,c,u,m({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:a}},h||{}))},{cache:D(t.message),strategy:L.variadic}),getRelativeTimeFormat:R(function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return new(r.bind.apply(r,O([void 0],s,!1)))},{cache:D(t.relativeTime),strategy:L.variadic}),getPluralRules:a,getListFormat:R(function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return new(n.bind.apply(n,O([void 0],s,!1)))},{cache:D(t.list),strategy:L.variadic}),getDisplayNames:R(function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return new(e.bind.apply(e,O([void 0],s,!1)))},{cache:D(t.displayNames),strategy:L.variadic})}}function ot(t,r,n,e){var i=t&&t[r],o;if(i&&(o=i[n]),o)return o;e(new Cr("No ".concat(r," format named: ").concat(n)))}function jr(t,r,n){if(n===void 0&&(n=Error),!t)throw new n(r)}function x(t,r){return Object.keys(t).reduce(function(n,e){return n[e]=m({timeZone:r},t[e]),n},{})}function Mt(t,r){var n=Object.keys(m(m({},t),r));return n.reduce(function(e,i){return e[i]=m(m({},t[i]||{}),r[i]||{}),e},{})}function Ct(t,r){if(!r)return t;var n=Lt.formats;return m(m(m({},n),t),{date:Mt(x(n.date,r),x(t.date||{},r)),time:Mt(x(n.time,r),x(t.time||{},r))})}var wt=function(t,r,n,e,i){var o=t.locale,a=t.formats,s=t.messages,c=t.defaultLocale,u=t.defaultFormats,h=t.fallbackOnEmptyString,l=t.onError,f=t.timeZone,g=t.defaultRichTextElements;n===void 0&&(n={id:""});var d=n.id,b=n.defaultMessage;jr(!!d,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var v=String(d),T=s&&Object.prototype.hasOwnProperty.call(s,v)&&s[v];if(Array.isArray(T)&&T.length===1&&T[0].type===y.literal)return T[0].value;if(!e&&T&&typeof T=="string"&&!g)return T.replace(/'\{(.*?)\}'/gi,"{$1}");if(e=m(m({},g),e||{}),a=Ct(a,f),u=Ct(u,f),!T){if(h===!1&&T==="")return T;if((!b||o&&o.toLowerCase()!==c.toLowerCase())&&l(new Dr(n,o)),b)try{var I=r.getMessageFormat(b,c,u,i);return I.format(e)}catch(A){return l(new it('Error formatting default message for: "'.concat(v,'", rendering default message verbatim'),o,n,A)),typeof b=="string"?b:v}return v}try{var I=r.getMessageFormat(T,o,a,m({formatters:r},i||{}));return I.format(e)}catch(A){l(new it('Error formatting message: "'.concat(v,'", using ').concat(b?"default message":"id"," as fallback."),o,n,A))}if(b)try{var I=r.getMessageFormat(b,c,u,i);return I.format(e)}catch(A){l(new it('Error formatting the default message for: "'.concat(v,'", rendering message verbatim'),o,n,A))}return typeof T=="string"?T:typeof b=="string"?b:v},Dt=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function X(t,r,n,e){var i=t.locale,o=t.formats,a=t.onError,s=t.timeZone;e===void 0&&(e={});var c=e.format,u=m(m({},s&&{timeZone:s}),c&&ot(o,r,c,a)),h=w(e,Dt,u);return r==="time"&&!h.hour&&!h.minute&&!h.second&&!h.timeStyle&&!h.dateStyle&&(h=m(m({},h),{hour:"numeric",minute:"numeric"})),n(i,h)}function Vr(t,r){for(var n=[],e=2;e<arguments.length;e++)n[e-2]=arguments[e];var i=n[0],o=n[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return X(t,"date",r,a).format(s)}catch(c){t.onError(new B(_.FORMAT_ERROR,"Error formatting date.",c))}return String(s)}function xr(t,r){for(var n=[],e=2;e<arguments.length;e++)n[e-2]=arguments[e];var i=n[0],o=n[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return X(t,"time",r,a).format(s)}catch(c){t.onError(new B(_.FORMAT_ERROR,"Error formatting time.",c))}return String(s)}function Xr(t,r){for(var n=[],e=2;e<arguments.length;e++)n[e-2]=arguments[e];var i=n[0],o=n[1],a=n[2],s=a===void 0?{}:a,c=t.timeZone,u=t.locale,h=t.onError,l=w(s,Dt,c?{timeZone:c}:{});try{return r(u,l).formatRange(i,o)}catch(f){h(new B(_.FORMAT_ERROR,"Error formatting date time range.",f))}return String(i)}function Kr(t,r){for(var n=[],e=2;e<arguments.length;e++)n[e-2]=arguments[e];var i=n[0],o=n[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return X(t,"date",r,a).formatToParts(s)}catch(c){t.onError(new B(_.FORMAT_ERROR,"Error formatting date.",c))}return[]}function Zr(t,r){for(var n=[],e=2;e<arguments.length;e++)n[e-2]=arguments[e];var i=n[0],o=n[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return X(t,"time",r,a).formatToParts(s)}catch(c){t.onError(new B(_.FORMAT_ERROR,"Error formatting time.",c))}return[]}var Yr=["style","type","fallback","languageDisplay"];function Wr(t,r,n,e){var i=t.locale,o=t.onError,a=Intl.DisplayNames;a||o(new M(`Intl.DisplayNames is not available in this environment.
13
+ Try polyfilling it using "@formatjs/intl-displaynames"
14
+ `,P.MISSING_INTL_API));var s=w(e,Yr);try{return r(i,s).of(n)}catch(c){o(new B(_.FORMAT_ERROR,"Error formatting display name.",c))}}var zr=["type","style"],Ut=Date.now();function qr(t){return"".concat(Ut,"_").concat(t,"_").concat(Ut)}function Qr(t,r,n,e){e===void 0&&(e={});var i=Gt(t,r,n,e).reduce(function(o,a){var s=a.value;return typeof s!="string"?o.push(s):typeof o[o.length-1]=="string"?o[o.length-1]+=s:o.push(s),o},[]);return i.length===1?i[0]:i.length===0?"":i}function Gt(t,r,n,e){var i=t.locale,o=t.onError;e===void 0&&(e={});var a=Intl.ListFormat;a||o(new M(`Intl.ListFormat is not available in this environment.
15
+ Try polyfilling it using "@formatjs/intl-listformat"
16
+ `,P.MISSING_INTL_API));var s=w(e,zr);try{var c={},u=n.map(function(h,l){if(typeof h=="object"){var f=qr(l);return c[f]=h,f}return String(h)});return r(i,s).formatToParts(u).map(function(h){return h.type==="literal"?h:m(m({},h),{value:c[h.value]||h.value})})}catch(h){o(new B(_.FORMAT_ERROR,"Error formatting list.",h))}return n}var Jr=["type"];function $r(t,r,n,e){var i=t.locale,o=t.onError;e===void 0&&(e={}),Intl.PluralRules||o(new M(`Intl.PluralRules is not available in this environment.
17
+ Try polyfilling it using "@formatjs/intl-pluralrules"
18
+ `,P.MISSING_INTL_API));var a=w(e,Jr);try{return r(i,a).select(n)}catch(s){o(new nt("Error formatting plural.",i,s))}return"other"}var te=["numeric","style"];function re(t,r,n){var e=t.locale,i=t.formats,o=t.onError;n===void 0&&(n={});var a=n.format,s=!!a&&ot(i,"relative",a,o)||{},c=w(n,te,s);return r(e,c)}function ee(t,r,n,e,i){i===void 0&&(i={}),e||(e="second");var o=Intl.RelativeTimeFormat;o||t.onError(new M(`Intl.RelativeTimeFormat is not available in this environment.
19
+ Try polyfilling it using "@formatjs/intl-relativetimeformat"
20
+ `,P.MISSING_INTL_API));try{return re(t,r,i).format(n,e)}catch(a){t.onError(new nt("Error formatting relative time.",t.locale,a))}return String(n)}var ne=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function Ft(t,r,n){var e=t.locale,i=t.formats,o=t.onError;n===void 0&&(n={});var a=n.format,s=a&&ot(i,"number",a,o)||{},c=w(n,ne,s);return r(e,c)}function ie(t,r,n,e){e===void 0&&(e={});try{return Ft(t,r,e).format(n)}catch(i){t.onError(new B(_.FORMAT_ERROR,"Error formatting number.",i))}return String(n)}function oe(t,r,n,e){e===void 0&&(e={});try{return Ft(t,r,e).formatToParts(n)}catch(i){t.onError(new B(_.FORMAT_ERROR,"Error formatting number.",i))}return[]}function ae(t){var r=t?t[Object.keys(t)[0]]:void 0;return typeof r=="string"}function se(t){t.onWarn&&t.defaultRichTextElements&&ae(t.messages||{})&&t.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
21
+ Please consider using "@formatjs/cli" to pre-compile your messages for performance.
22
+ For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function he(t,r){var n=kr(r),e=m(m({},Fr),t),i=e.locale,o=e.defaultLocale,a=e.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(new Pt('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&a&&a(new Pt('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new wr('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),e.locale=e.defaultLocale||"en"),se(e),m(m({},e),{formatters:n,formatNumber:ie.bind(null,e,n.getNumberFormat),formatNumberToParts:oe.bind(null,e,n.getNumberFormat),formatRelativeTime:ee.bind(null,e,n.getRelativeTimeFormat),formatDate:Vr.bind(null,e,n.getDateTimeFormat),formatDateToParts:Kr.bind(null,e,n.getDateTimeFormat),formatTime:xr.bind(null,e,n.getDateTimeFormat),formatDateTimeRange:Xr.bind(null,e,n.getDateTimeFormat),formatTimeToParts:Zr.bind(null,e,n.getDateTimeFormat),formatPlural:$r.bind(null,e,n.getPluralRules),formatMessage:wt.bind(null,e,n),$t:wt.bind(null,e,n),formatList:Qr.bind(null,e,n.getListFormat),formatListToParts:Gt.bind(null,e,n.getListFormat),formatDisplayName:Wr.bind(null,e,n.getDisplayNames)})}var ue=F;F.flatten=F,F.unflatten=Vt;function kt(t){return t&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function jt(t){return t}function F(t,r){r=r||{};const n=r.delimiter||".",e=r.maxDepth,i=r.transformKey||jt,o={};function a(s,c,u){u=u||1,Object.keys(s).forEach(function(h){const l=s[h],f=r.safe&&Array.isArray(l),g=Object.prototype.toString.call(l),d=kt(l),b=g==="[object Object]"||g==="[object Array]",v=c?c+n+i(h):i(h);if(!f&&!d&&b&&Object.keys(l).length&&(!r.maxDepth||u<e))return a(l,v,u+1);o[v]=l})}return a(t),o}function Vt(t,r){r=r||{};const n=r.delimiter||".",e=r.overwrite||!1,i=r.transformKey||jt,o={};if(kt(t)||Object.prototype.toString.call(t)!=="[object Object]")return t;function a(u){const h=Number(u);return isNaN(h)||u.indexOf(".")!==-1||r.object?u:h}function s(u,h,l){return Object.keys(l).reduce(function(f,g){return f[u+n+g]=l[g],f},h)}function c(u){const h=Object.prototype.toString.call(u),l=h==="[object Array]",f=h==="[object Object]";if(u){if(l)return!u.length;if(f)return!Object.keys(u).length}else return!0}return t=Object.keys(t).reduce(function(u,h){const l=Object.prototype.toString.call(t[h]);return!(l==="[object Object]"||l==="[object Array]")||c(t[h])?(u[h]=t[h],u):s(h,u,F(t[h],r))},{}),Object.keys(t).forEach(function(u){const h=u.split(n).map(i);let l=a(h.shift()),f=a(h[0]),g=o;for(;f!==void 0;){if(l==="__proto__")return;const d=Object.prototype.toString.call(g[l]),b=d==="[object Object]"||d==="[object Array]";if(!e&&!b&&typeof g[l]<"u")return;(e&&!b||!e&&g[l]==null)&&(g[l]=typeof f=="number"&&!r.object?[]:{}),g=g[l],h.length>0&&(l=a(h.shift()),f=a(h[0]))}g[l]=Vt(t[u],r)}),o}const ce=Ot(),le=(t,r,n=!1)=>{const e=he({locale:t,messages:ue.flatten(r,{safe:!0})},ce);return{t:(o,a,s)=>e.formatMessage({id:o},a,s),te:o=>!!e.messages[o],tm:o=>e.messages[o]||[],...e,source:r}},fe=t=>H.defineComponent({name:"I18nT",props:{keypath:{type:String,required:!0},tag:{type:String,default:"span"}},setup(r,{slots:n}){const e=i=>{if(!i)return[];const o=/(\{[^}]+\})/g;return i.split(o).filter(Boolean)};return()=>{const i=Object.keys(n).filter(s=>s!=="_"),o=t.messages[r.keypath].toString();let a=e(o);return a=a.filter(s=>s!==""),a.forEach((s,c)=>{if(!s.startsWith("{")&&!s.endsWith("}"))return;const u=s.replace(/[\{\}]/g,"");u==="0"&&n.default?a[c]=n.default():i.includes(u)&&n[u]&&(a[c]=n[u]())}),H.h(r.tag,r,a)}}}),me={install(t,r){const{i18n:n}=r;t.component("I18nT",fe(n))}},pe={githubStar:{title:"Star",ariaLabel:"Star buttons/github-buttons on GitHub"}};function ge(){return{i18n:le("en-us",pe),i18nT:me}}const Ee={useI18n:ge},be={key:0,class:"kong-ui-public-misc-widgets-github-star","data-testid":"github-star"},ye=["href"],de=H.defineComponent({__name:"GithubStar",props:{url:{type:String,required:!0}},setup(t){const{i18n:r}=Ee.useI18n(),n=H.ref(!1);return H.onMounted(async()=>{const e=document.createElement("script");e.addEventListener("load",()=>{n.value=!0}),e.setAttribute("src","https://buttons.github.io/buttons.js"),document.head.appendChild(e)}),(e,i)=>t.url&&n.value?(H.openBlock(),H.createElementBlock("div",be,[H.createElementVNode("a",{"aria-label":"i18n.t('githubStar.ariaLabel')",class:"github-button","data-color-scheme":"no-preference: light; light: light; dark: light;","data-show-count":"true",href:t.url,target:"_blank"},H.toDisplayString(H.unref(r).t("githubStar.title")),9,ye)])):H.createCommentVNode("",!0)}}),_e="",ve=((t,r)=>{const n=t.__vccOpts||t;for(const[e,i]of r)n[e]=i;return n})(de,[["__scopeId","data-v-4d1f46cf"]]);C.GithubStar=ve,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
23
+ //# sourceMappingURL=misc-widgets.umd.js.map