define("xmessage",["exports","@linkedin/jsecure"],(function(e,t){"use strict"
function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(null==n)return
var r,a,o=[],i=!0,c=!1
try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(u){c=!0,a=u}finally{try{i||null==n.return||n.return()}finally{if(c)throw a}}return o}(e,t)||function(e,t){if(!e)return
if("string"==typeof e)return r(e,t)
var n=Object.prototype.toString.call(e).slice(8,-1)
"Object"===n&&e.constructor&&(n=e.constructor.name)
if("Map"===n||"Set"===n)return Array.from(e)
if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length)
for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n]
return r}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
if(Reflect.construct.sham)return!1
if("function"==typeof Proxy)return!0
try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()
return function(){var n,r=u(e)
if(t){var a=u(this).constructor
n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments)
return c(this,n)}}function c(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t
if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined")
return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return e}(e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]
for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){var n=Object.keys(e)
if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e)
t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
t%2?l(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n]
r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(e,"__esModule",{value:!0}),e.PossessiveFormatter=e.PluralFormatter=e.NumberFormatter=e.NameFormatter=e.NAME_STYLES=e.DateFormatter=e.DEFAULT_TIME_PATTERN=e.DEFAULT_NAME_STYLE=e.DEFAULT_DATE_PATTERN=e.CurrencyFormatter=e.ChooserFormatter=void 0,e.Rtl=function(){return{isRtl:(n=" \n\r\t\f \u2028\u2029".split(""),r="~!@#$%^&*()_+`1234567890-={}|[]\\:\";'<>?,./".split(""),a=n.concat(r),"֐","ۿ",e=["nbsp"," ","lt","<","gt",">","amp","&","quot",'"'],t=/&(?:(lt|gt|amp|quot|nbsp)|#x([\da-f]{1,4})|#(\d{1,5}));/gi,o=function(n){return null==n?null:"".concat(n).replace(t,(function(t,n,r,a){return n?e[e.indexOf(n)+1]:r||a?String.fromCharCode(parseInt(r||a,r?16:10)||65533):"�"}))},i=_n(a,"֐","ۿ"),function(e){return-1!==i(o(e))})}
var e,t
var n,r,a,o,i},e.TruncationFormatter=e.TimeFormatter=void 0,e.default=Un,e.formatCurrency=nn,e.formatDate=jt,e.formatInteger=tn,e.formatName=Zt,e.formatNumber=en,e.formatPercent=rn,e.formatTime=ln,e.fromString=function(e,t,n){return Vn(Rn(e),t,n)},e.getOutputFilter=function(){return Wn},e.getRules=lt,e.getSantizeUrl=he,e.getUserDataFilter=function(){return le()},e.makeInterpolator=Vn,e.render=function(e,t,n){if(1===e.length&&"string"==typeof e[0])return Wn(e[0])
return Wn(qn(e,t,n))},e.setOutputFilter=function(e){Wn=e},e.setSanitizeUrl=function(e){de=e},e.setUserDataFilter=function(e){fe(e)},e.toAst=Rn
var y=function(){function e(t){h(this,e),this.value=v(t)}return g(e,[{key:"toString",value:function(){switch(d(this.value)){case"object":case"function":break
default:return String(this.value)}return""}}]),e}()
function v(e){return e instanceof y?e.value:e}function _(e){return e instanceof y?e:new y(e)}function b(e,t){var n=e.parameters
return Object.prototype.hasOwnProperty.call(n,t)}function k(e,t){return-1!==e.indexOf(t,e.length-t.length)}function w(e,t){return 0===e.indexOf(t)}function x(e,t,n){var r=""
if(e.parameters){var a=e.parameters
for(var o in a)if(a.hasOwnProperty(o)&&!t.test(o)){r='Invalid style "'.concat(o,'"'),n&&(r+=" ".concat(n))
break}}return r}function C(e,t,n){var r,a,o="Placeholder must have exactly ".concat(t," style(s)"),i="Placeholder must have at least ".concat(t," style(s)"),c=0
if(e.parameters){for(a in e.parameters)e.parameters.hasOwnProperty(a)&&c++
"eq"===n&&c!==t?r=o:"gte"===n&&c<t&&(r=i)}else t>0&&(r="Placeholder must have styles")
return r}function O(e,t){return C(e,t,"eq")}function E(e,t,n){var r,a,o,i
if(e.parameters)for(a=0,o=t.length;a<o;++a)r=e.parameters[t[a]],"without"===n?r&&r.value&&(i='Invalid value for style "'.concat(r.key,'"')):"with"===n&&r&&(r.value||(i='Style "'.concat(r.key,'" must have a value')))
return i}function j(e,t){return E(e,t,"with")}var N="text",A=[N],S=new RegExp("^(".concat([N,"title"].join("|"),")$"))
var F=new RegExp("^(true|false)$")
var I=/-?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/,T=/^(zero|singular|dual|few|many|plural|other)$/
var D=["prefix","suffix"],P=/^(familiar|family|full|given|list|maiden|micro|possessive|salutation|prefix|suffix|compact)$/
var L=["prefix","suffix"],M=["name","text"],U=/^(?:familiar|family|full|given|list|maiden|micro|possessive|salutation|prefix|suffix)$/
var R="sep",W="nosep",V=[R,W],q=new RegExp("^(".concat([R,W].join("|"),")$"))
var z=new RegExp("prefix|possessive|suffix")
var K={anchor:function(e){var t=function(e,t){var n,r,a,o,i
if(e.parameters)for(r=e.parameters,o=0,i=t.length;o<i;++o)a=t[o],r.hasOwnProperty(a)||(n='Missing required style key "'.concat(a,'"'))
else n="Placeholder must have styles"
return n}(e,A)
return t||(t=x(e,S,'The anchor placeholder only supports "text" and "title" styles.')),t},boolean:function(e){var t=function(e,t){return C(e,t,"gte")}(e,1)
return t||(t=x(e,F,'The key must be either "true" or "false".')),t},choice:function(e){var t,n,r,a,o,i,c,u,s=e.parameters,l=!1
for(u in i=[],s)s.hasOwnProperty(u)&&(i[(c=s[u]).order]=c,T.test(u)&&(l=!0))
for(c=void 0,a=0,o=i.length;a<o;++a)if(c=i[a],I.test(c.key))if(r=parseInt(c.key,10),void 0===n)n=r
else{if(!(n<r)){t="Invalid number order. Cannot list ".concat(r," after ").concat(n,". Numbers must be ascending.")
break}n=r}else{if(!T.test(c.key)){t='Invalid category key "'.concat(c.key,'".')
break}l=!0}return l&&(s.singular?s.plural||(t='Missing required category "plural"'):t='Missing required category "singular"'),t},list:function(e){var t=!1
return""!==e.subtype&&-1===M.indexOf(e.subtype)&&(t='Invalid list subtype "'.concat(e.subtype,'"')),t||(t=x(e,U,"Invalid style for list placeholder.")),t||(t=j(e,L)),t},map:function(e){var t
return e.parameters?0===Object.keys(e.parameters).length&&(t="MapPlaceholder must have at least one style argument."):t="MapPlaceholder must have parameters.",t},name:function(e){var t=x(e,P,"Invalid style for name placeholder.")
return t||(t=j(e,D)),t},possessive:function(e){return O(e,0)},suffix:function(e){var t=O(e,1)
return t||(t=x(e,q,"Invalid style for suffix placeholder.")),t||(t=function(e,t){return E(e,t,"without")}(e,V)),t},text:function(e){return x(e,z,"Invalid style for text placeholder.")}}
function J(e){var t,n,r
if("string"!=typeof e){if((r=function(e){return e?e.index?void 0:"Placeholder must have an index.":"Placeholder is invalid."}(e))||K.hasOwnProperty(e.type)&&(r=K[e.type](e)),r)throw new Error(r)
if(e&&e.parameters instanceof Object)for(t in e.parameters)e.parameters.hasOwnProperty(t)&&(n=e.parameters[t]).value&&n.value instanceof Array&&n.value.forEach(J)}}var $=function(){function e(t){h(this,e),this.source=t,this.index=0,this.cursor=t.charCodeAt(0),this.previousCharCode=0,0===t.length&&(this.cursor=0)}return g(e,[{key:"isEscaped",get:function(){return 92===this.previousCharCode}},{key:"hasNext",get:function(){return 0!==this.cursor}},{key:"currentChar",get:function(){return this.index<this.source.length?this.source.charAt(this.index):""}},{key:"currentCharCode",get:function(){return this.cursor}},{key:"next",value:function(){this.previousCharCode=this.cursor,this.index++,this.index<this.source.length?this.cursor=this.source.charCodeAt(this.index):this.cursor=0}},{key:"toString",value:function(){return"index ".concat(this.index,' in string "').concat(this.source,'"')}}]),e}(),Z=/[a-zA-Z]/,Y=/[1-9]/,H=/[0-9]/,X=/[a-zA-Z0-9]/,G=/[a-zA-Z0-9_\-~.|\[\]\/]/,B=/[#]/,Q={},ee={choice:/[#+<]/,plural:/[#+<]/},te={number:-1,keyword:""}
function ne(e,t){throw new SyntaxError("XMessage parsing error: ".concat(e," at ").concat(t.toString()))}function re(e,t,n){var r=function(e){for(var t=[],n=[],r=[];e.hasNext;)123===e.currentCharCode?t.push(e.currentChar):125===e.currentCharCode&&t.pop(),0===t.length&&124===e.currentCharCode?(0===r.length&&ne('Unexpected "|" in style list.',e),n.push(r.join("")),r.length=0,e.next()):(r.push(e.currentChar),e.next())
return r.length>0&&(n.push(r.join("")),r.length=0),{parsedStyles:{},unprocessedStyles:n}}(e),a=r.unprocessedStyles,o=r.parsedStyles
return a.map((function(e){return function(e,t){for(var n=ee[t]||B,r=[],a="",o="",i=null;e.hasNext;)n.test(e.currentChar)&&(0===r.length?ne('Error parsing style key/value. Found delimiter "'.concat(e.currentChar,'" but expected key.'),e):""===o&&(o=r.join(""),r.length=0,a=e.currentChar,e.next())),r.push(e.currentChar),e.next()
if(""===a)o=r.join(""),r.length=0
else{if(r.length>0){var c=r.join("")
void 0!==c&&(i=ce(c))}r.length=0}return(w(o," ")||k(o," "))&&ne("leading/trailing spaces not allowed in keys",e),"map"===t&&""!==o&&null===i&&ne('missing style value for "'.concat(o,'"'),e),{key:o,value:i,delimiter:a}}(new $(e),t)})).forEach((function(t,r){t.order=r+n,o.hasOwnProperty(t.key)?ne('Found duplicate style key "'.concat(t.key,'". Styles must have unique names.'),e):o[t.key]=t})),o}function ae(e){for(var t={};e.hasNext;){for(var n=[];e.hasNext&&124!==e.currentCharCode;)n.push(e.currentChar),e.next()
var r=n.join("");(w(r," ")||k(r," "))&&ne("leading/trailing spaces not allowed in keys",e),t[r]={key:r,value:null,delimiter:"",order:0},e.hasNext&&e.next()}return t}function oe(e){var t=te,n="simple",r="",a={}
return e.hasNext?(t=function(e){var t=[],n=[],r=-1,a="",o=!1
if(48===e.currentCharCode&&(t.push(e.currentChar),e.next(),o=!0),o&&e.hasNext&&44!==e.currentCharCode&&58!==e.currentCharCode&&ne('Could not parse index; expected ":" or end of identifier but found "'.concat(e.currentChar,'"'),e),Y.test(e.currentChar))for(;e.currentChar&&H.test(e.currentChar);)t.push(e.currentChar),e.next()
if(58===e.currentCharCode)for(e.next(),e.currentChar&&X.test(e.currentChar)?(n.push(e.currentChar),e.next()):ne('Expected letter (a-zA-Z) or number (0-9) but found "'.concat(e.currentChar,'"'),e);e.currentChar&&G.test(e.currentChar);)n.push(e.currentChar),e.next()
else 0===t.length&&e.hasNext&&ne('Unexpected character; expected ":" but found "'.concat(e.currentChar,'"'),e)
return 44===e.currentCharCode||0===e.currentCharCode?(r=parseInt(t.join(""),10),isNaN(r)&&(r=-1),a=n.join("")):ne('Unexpected character; expected "," or end of identifier but found "'.concat(e.currentChar,'"'),e),{number:r,keyword:a}}(e),44===e.currentCharCode?(e.next(),n=function(e){var t=[]
if(0===e.currentCharCode)ne('Unable to parse type. Expected letter (a-zA-Z) but found end of identifier after ","',e)
else for(;e.currentChar&&Z.test(e.currentChar);)t.push(e.currentChar),e.next()
return t.join("")}(e),44===e.currentCharCode&&(e.next(),r=function(e,t){var n=""
if("list"===t){for(var r=[];e.hasNext&&44!==e.currentCharCode;)r.push(e.currentChar),e.next()
n=r.join("")}return n}(e,n),44!==e.currentCharCode&&124!==e.currentCharCode||e.next(),e.currentCharCode&&(a=function(e,t){return Q[t]?Q[t](e,t):re(e,t,0)}(e,n)))):n="simple"):ne("Error parsing placeholder. Unexpected end of input.",e),e.currentCharCode&&ne('Unexpected character "'.concat(e.currentChar,'".'),e),{index:t,type:n,subtype:r,parameters:a}}function ie(e){return"string"==typeof e?e:(t=e.text,oe(new $(t)))
var t}function ce(e){if(-1===e.indexOf("{")&&-1===e.indexOf("'"))return[e]
for(var t=function(e){for(var t=[],n=[],r=[],a=new $(e),o=!1;a.hasNext;)if(92!==a.currentCharCode||a.isEscaped)if(a.isEscaped)r.push(a.currentChar),a.next()
else{if(0===n.length&&39===a.currentCharCode){if(a.next(),39===a.currentCharCode){r.push("'"),a.next()
continue}o=!o,r.length>0&&(t.push(r.join("")),r.length=0)}o?(a.hasNext&&r.push(a.currentChar),a.next()):125!==a.currentCharCode||a.isEscaped||0!==n.length?123===a.currentCharCode?(0===n.length?r.length>0&&(t.push(r.join("")),r.length=0):r.push(a.currentChar),n.push(a.currentChar),a.next()):125===a.currentCharCode?(n.pop(),0===n.length?r.length>0?(t.push({text:r.join("")}),r.length=0):ne("Unexpected end of placeholder (found no content)",a):r.push(a.currentChar),a.next()):(a.hasNext&&r.push(a.currentChar),a.next()):ne('Unexpected "}"',a)}else a.next()
return 0!==n.length&&ne('Unexpected end of placeholder (unmatched "{")',a),r.length>0&&(t.push(r.join("")),r.length=0),t}(e),n=[],r=0;r<t.length;++r)n[r]=ie(t[r])
return n}Q.choice=function(e,t){return re(e,t,0)},Q.date=function(e){return ae(e)},Q.number=function(e){return ae(e)}
var ue,se=/{(\d+)}/g
function le(){return ue}function fe(e){ue=function(t){if(t instanceof y)return t
var n=e(t)
return new y(n)}}function me(e){return t.default.htmlEncode(e)}fe(me)
var de=function(e){return t.default.sanitizeUrl(e)}
function he(){return de}function pe(e){console.warn(e)}function ge(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]
return e.replace(se,(function(e,n){return void 0!==t[n]?t[n]:e}))}function ye(e,t){for(var n=e.length,r=0;r<n;++r){var a=e[r]
if(t.hasOwnProperty(a))return t[a]}return null}var ve=function(){return""}
function _e(e,t){var n=e.parameters[t]
if(n)return n.value}function be(e,t){var n=e.parameters
if(n)for(var r=Object.keys(n),a=0;a<r.length;a++){var o=r[a]
if(n[o].order===t)return n[o]}}function ke(e,t,n,r,a){var o=_e(e,t),i=le()
if(""===o)return o
if(void 0!==o){for(var c="",u=0;u<o.length;++u){var s=o[u]
c+="string"==typeof s?s:v(i(ve(s,n,r,a)))}return _(c)}return""}function we(e,t,n,r){return ve(e,t,n,r)}var xe=/['"<>]/
function Ce(e){if(null==e)return""
var t=String(v(e))
return xe.test(t)?me(t):t}var Oe={month:"long"},Ee={year:"numeric",month:"long",day:"numeric"},je={year:"numeric",month:"long"},Ne={month:"long",day:"numeric"},Ae={year:"numeric",month:"short"},Se={month:"short",day:"numeric"},Fe={month:"short"},Ie={weekday:"long"},Te={year:"numeric"},De={day:"numeric"},Pe=Fe,Le={month:"long"},Me=De,Ue=Te
f(f({},Oe),Me),f(f({},Pe),Me),f(f(f({},Oe),Me),Ue),f(f(f({},Pe),Me),Ue),f(f(f({},Le),Me),Ue),f(f({},Oe),Ue),f(f({},Pe),Ue)
var Re={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"numeric"}
var We={sv_SE:{intlLocale:"sv",possessive:{fallback:"s",rules:{".*[SsXxZz]$":"",".*[A-RT-WYÅÄÖ]$":"S",".*[a-rt-wyåäö]$":"s"}},date:{postFormatting:function(e,t,n){var r=e.split(".")[0],a=e.split(".")[1]
if(/^(d|m|my|md|mdy)/.test(e)&&(n=n.replace(".","").toLocaleLowerCase()),"d.medium"===e){var o={"sö":"sön","må":"mån",ti:"tis",on:"ons",to:"tors",tor:"tors",fr:"fre","lö":"lör"}
for(var i in o)if(n===i){n=o[i]
break}}return"short"!==a&&"medium"!==a||"time"===r||(n=n.replace("juni","jun").replace("juli","jul").replace("mars","mar")),n=n.replace("den ",""),"md.long"===e&&n.indexOf(":e")>=0&&(n=n.replace(":e","")),n},narrowDayNames:["S","M","T","O","T","F","L"],intlOptions:{time:Re,"time.long":Re,"time.medium":Re,"time.short":{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"numeric"},mdy:Ee,"mdy.long":Ee,"mdy.medium":{year:"numeric",month:"short",day:"numeric"},"mdy.short":{year:"numeric",month:"numeric",day:"numeric"},my:je,"my.long":je,"my.medium":Ae,"my.short":Ae,md:Ne,"md.long":Ne,"md.medium":Se,"md.short":Se,m:Le,"m.long":Le,"m.medium":Fe,"m.short":{month:"numeric"},d:Ie,"d.long":Ie,"d.medium":{weekday:"short"},"d.short":De,"d.narrow":{weekday:"narrow"},y:Te,"y.long":Te,"y.medium":Te,"y.short":Te}},currency:{postFormatting:function(e,t,n){return t<0&&(n=n.replace("-","−")),(n=n.replace(":",",")).replace(/\./g," ")}},number:{percent:"{0} %",postFormatting:function(e,t){return e<0&&(t=t.replace("−","-")),t}},time:{postFormatting:function(e,t,n){return/^\d:/.test(n)&&(n="0".concat(n)),n}},list:{start:"{0}, {1}",middle:"{0}, {1}",end:"{0} och {1}",2:"{0} och {1}"}}}
function Ve(e){return We[e]}var qe={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"},ze={month:"long"},Ke={month:"short"},Je={month:"numeric"},$e={weekday:"long"},Ze={year:"numeric"},Ye={weekday:"short"},He={day:"numeric"},Xe=Ke,Ge={month:"long"},Be=$e,Qe=Ye,et=He,tt=Ze,nt=f(f({},ze),et),rt=f(f({},Xe),et),at=f(f(f({},ze),et),tt),ot=f(f(f({},Xe),et),tt),it=f(f(f({},Ge),et),tt),ct=f(f({},ze),tt),ut=f(f({},Xe),tt),st={mdy:at,"mdy.long":at,"mdy.medium":ot,"mdy.short":it,my:ct,"my.long":ct,"my.medium":ut,"my.short":ut,md:nt,"md.long":nt,"md.medium":rt,"md.short":rt,m:ze,"m.long":ze,"m.medium":Xe,"m.short":Je,d:Be,"d.long":Be,"d.medium":Qe,"d.short":et,y:tt,"y.long":tt,"y.medium":tt,"y.short":tt}
function lt(e,t){var n=Ve(e)
return t&&n?n[t]:n}function ft(e){return e.legacyIntlLocale||e.intlLocale}var mt=function(){function e(){h(this,e),this._formatters=new Map}return g(e,[{key:"getWithDefault",value:function(e,t){return function(e,t,n){if(e.has(t))return e.get(t)
var r=n()
return e.set(t,r),r}(this._formatters,e,t)}}]),e}()
function dt(e){var t=new Date(e.getTime())
return t.setMinutes(e.getMinutes()-e.getTimezoneOffset()),t}function ht(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e,r=e instanceof Date
if(!r){var a=d(e)
"number"===a?n=new Date(e):"string"===a&&(n=new Date(Date.parse(e)))}return t&&(n=dt(n)),n}function pt(e,t){var n=e[t]
return n?s(Object.create(null),n):void 0}var gt={time:qe,"time.long":qe,"time.medium":qe,"time.short":{year:"2-digit",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"}},yt={intlOptions:f(f({},st),gt)},vt={fmt_d:$e,fmt_d_short:He,fmt_d_medium:Ye,fmt_d_long:$e,fmt_m:Ge,fmt_m_short:Je,fmt_m_medium:Ke,fmt_m_long:Ge,fmt_y:Ze,fmt_y_short:{year:"2-digit"},fmt_md_medium:{month:"short",day:"numeric"},fmt_md_long:{month:"long",day:"numeric"},fmt_my_medium:{year:"numeric",month:"short"},fmt_my_long:{year:"numeric",month:"long"},fmt_mdy_short:{year:"numeric",month:"numeric",day:"numeric"},fmt_mdy_medium:{year:"numeric",month:"short",day:"numeric"},fmt_mdy_long:{year:"numeric",month:"long",day:"numeric"},fmt_mdy_hm_short:{year:"2-digit",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"},fmt_mdy_hm_long:qe},_t={hm:{hour:"numeric",minute:"numeric"},hms:{hour:"numeric",minute:"numeric",second:"numeric"}}
function bt(e){return pt(vt,e)}function kt(e){return e<10?"0".concat(e):e}function wt(e){return"".concat(e.getUTCFullYear(),"-").concat(kt(e.getUTCMonth()+1),"-").concat(kt(e.getUTCDate()))}var xt,Ct=function(e){a(n,e)
var t=i(n)
function n(){return h(this,n),t.apply(this,arguments)}return g(n,[{key:"format",value:function(e,t,n,r){arguments.length>4&&void 0!==arguments[4]&&arguments[4]
var a=Ve(t),o=a.intlLocale,i=Ve(t).date||yt,c=i.calendar
if(ft(Ve(t)),"fmt_mdy_iso"===n)return wt(ht(e,r))
var u=bt(n)
if(!u)throw new Error("[XMessage] Unsupported date format")
return r||(u.timeZone="UTC"),this.getWithDefault("".concat(o,"-").concat(n,"-").concat(!!u.timeZone),(function(){return c&&(u.calendar=c),new Intl.DateTimeFormat(o,u)})).format(ht(e))}}]),n}(mt)
e.DateFormatter=Ct
var Ot={fmt_d:"d",fmt_d_short:"d.short",fmt_d_narrow:"d.narrow",fmt_d_medium:"d.medium",fmt_d_long:"d.long",fmt_m:"m",fmt_m_short:"m.short",fmt_m_medium:"m.medium",fmt_m_long:"m.long",fmt_y:"y",fmt_y_short:"y.short",fmt_md_medium:"md.medium",fmt_md_long:"md.long",fmt_my_medium:"my.medium",fmt_my_long:"my.long",fmt_mdy_short:"mdy.short",fmt_mdy_medium:"mdy.medium",fmt_mdy_long:"mdy.long",fmt_mdy_hm_short:"time.short",fmt_mdy_hm_long:"time.long",fmt_mdy_iso:"iso",iso:"iso"},Et={short:"fmt_mdy_short",medium:"fmt_mdy_medium",long:"fmt_mdy_long",full:"fmt_mdy_long"}
function jt(e,t,n,r,a){return Ot[t]||(Et[t]?(console.log('The date pattern "'.concat(t,'" is deprecated, falling back to "').concat(Et[t],'".')),t=Et[t]):(console.log('Unknown date pattern "'.concat(t,'", falling back to "').concat("fmt_mdy_medium",'". Note: custom date patterns are not supported.')),t="fmt_mdy_medium")),xt||(xt=new Ct),xt.format(e,n,t,r,!0)}e.DEFAULT_DATE_PATTERN="fmt_mdy_medium"
e.DEFAULT_NAME_STYLE="familiar"
var Nt,At=["familiar","family","full","given","list","maiden"]
e.NAME_STYLES=At
var St=function(e,t){return"".concat(e," ").concat(t)},Ft=function(e,t){return"".concat(t," ").concat(e)},It=function(e,t){return"".concat(t).concat(e)},Tt=function(e,t,n){return"".concat(n?" (".concat(n,")"):""," ")},Dt=function(e){return"".concat(e?" ".concat(e):"")},Pt=function(e){return function(t){return t?'<span class="'.concat(e,'">').concat(t,"</span>"):""}},Lt=Pt("given-name"),Mt=Pt("family-name"),Ut=Pt("additional-name"),Rt=function(e,t,n){return"".concat(e).concat(Dt(n)).concat(Dt(t))},Wt=function(e){return function(t,n,r){return"".concat(t).concat(Dt(n)).concat(r?" ".concat(e," ").concat(r):"")}},Vt=/(^\s+|\s+$)/g
function qt(e,t){if(!e)return""
var n,r=e.replace(Vt,"")
return t&&(r=null==(n=r)?null:n.toString().replace(/(.)/g,(function(e){return"<"===e?"&lt;":">"===e?"&gt;":"&"===e?"&amp;":'"'===e?"&quot;":"'"===e?"&#39;":"\\"===e?"&#92;":"="===e?"&#61;":"\0"===e?"�;":e}))),r}var zt=[19968,40895,12448,12543,65377,65439,12352,12447]
function Kt(e,t){return function(e){if(!e)return!1
var t=e.charCodeAt(0)
return t>=44032&&t<=55215}(e.lastName)?"CJK":function(e){if(!e)return!1
for(var t=e.charCodeAt(0),n=0;n<zt.length;n+=2){if(t>=zt[n]&&t<=zt[n+1])return!0}return!1}(e.lastName)?"ja_JP"===t?"CJK-ja_JP":"CJK":t}var Jt=new(function(){function e(){h(this,e),this.templates=[]}return g(e,[{key:"preprocess",value:function(e,t,n){return[Lt(e),Mt(t),Ut(n)]}},{key:"add",value:function(e,t,n){var r=this.templates.indexOf(e);-1===r?this.templates.push(e,[t,n]):this.templates[r+1].push(t,n)}},{key:"run",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2?arguments[2]:void 0,r=this.templates.indexOf(e)
if(r>-1){var a=this.templates[r+1],o=a.indexOf(t);-1===o&&(o=a.indexOf("default"))
var i=a[o+1]
return i(n[0],n[1],n[2])}throw new Error("Could not find template function for ".concat(e," with ").concat(t," locale."))}}]),e}())
Jt.add(0,"default",(function(e){return e})),Jt.add(0,"de_DE",St),Jt.add(0,"pl_PL",St),Jt.add(0,"hi_IN",St),Jt.add(0,"ro_RO",St),Jt.add(0,"tr_TR",St),Jt.add(0,"CJK",It),Jt.add(0,"CJK-ja_JP",Ft),Jt.add(1,"default",(function(e,t,n){return"".concat(e).concat(Tt(0,0,n)).concat(t)})),Jt.add(1,"ar_AE",Rt),Jt.add(1,"hi_IN",Rt),Jt.add(1,"th_TH",Rt),Jt.add(1,"cs_CZ",(function(e,t,n){return"".concat(e).concat(Dt(t)).concat(n?" (roz. ".concat(n,")"):"")})),Jt.add(1,"de_DE",Wt("geb.")),Jt.add(1,"CJK-ja_JP",(function(e,t,n){return"".concat(t).concat(Dt(e)).concat(Tt(0,0,n))})),Jt.add(1,"CJK",(function(e,t,n){return"".concat(It(e,t)).concat(Tt(0,0,n))})),Jt.add(1,"ms_MY",(function(e,t,n){return"".concat(e).concat(Dt(t)).concat(Tt(0,0,n))})),Jt.add(1,"nl_NL",(function(e,t,n){return"".concat(e," ").concat(t).concat(n?"-".concat(n):"")})),Jt.add(1,"pl_PL",Wt("z d.")),Jt.add(2,"default",(function(e,t,n){return"".concat(t?"".concat(t,", "):"").concat(e)})),Jt.add(2,"CJK",It),Jt.add(2,"CJK-ja_JP",Ft),Jt.add(2,"ar_AE",St),Jt.add(2,"hi_IN",St),Jt.add(2,"in_ID",St),Jt.add(2,"ms_MY",St),Jt.add(2,"th_TH",St)
var $t=function(){function e(){h(this,e)}return g(e,[{key:"format",value:function(e,t,r){var a=function(e){if(e){if(Array.isArray(e))return e.indexOf("MICROFORMAT")>-1
if("string"==typeof e)return"MICROFORMAT"===e}return!1}(t),o=a||e.lastNameWithHighlight,i=qt(e.firstName,o),c=e.lastNameWithHighlight?qt(e.lastNameWithHighlight,!1):qt(e.lastName,o),u=qt(e.maidenName,o),s=Kt(e,r)
if(a){var l=n(Jt.preprocess(i,c,u),3)
i=l[0],c=l[1],u=l[2]}return Jt.run(function(e){if(!e)return 0
var t="string"==typeof e?[e]:e
return Array.isArray(t)?t.indexOf("FULL_NAME")>-1?1:t.indexOf("LIST_VIEW")>-1?2:0:0}(t),s,[i,c,u]).replace(Vt,"")}}]),e}()
function Zt(e,t,n){var r
if(void 0!==e){var a={firstName:e.givenName||e.firstName,lastName:e.familyName||e.lastName,maidenName:e.maidenName},o=t||"familiar"
switch(-1===At.indexOf(o)&&(console.log('Unrecognized name format "'.concat(o,'", falling back to "').concat("familiar",'".')),o="familiar"),o){case"given":r=a.firstName||""
break
case"family":r=a.lastName||""
break
case"maiden":r=a.maidenName||""
break
default:var i="full"===o||"given"===o||"family"===o||"maiden"===o?"FULL_NAME":"familiar"===o?"FAMILIAR_NAME":"list"===o?"LIST_VIEW":"FULL_NAME"
Nt||(Nt=new $t),r=Nt.format(a,i,n)}}return r}e.NameFormatter=$t
var Yt=function(){function e(){h(this,e)}return g(e,[{key:"format",value:function(e,t){var n,r=Ve(t).possessive
if(r){n=r.fallback
for(var a=Object.keys(r.rules),o=0;o<a.length;o++){var i=a[o]
if(new RegExp(i).test(e)){n=r.rules[i]
break}}return n}return""}}]),e}()
e.PossessiveFormatter=Yt
var Ht=function(e){a(n,e)
var t=i(n)
function n(){return h(this,n),t.apply(this,arguments)}return g(n,[{key:"formatNumber",value:function(e,t,n){var r=Ve(t),a=n?Object.keys(n):[]
if(a.length>0&&!["integer","percent"].includes(a[0]))throw new Error("[XMessage] Unsupported number argument")
var o=a.length>1&&"compact"===a[1]?"compact":void 0,i=a.length>0&&"percent"===a[0]?a[0]:"decimal",c=a.length>0&&"integer"===a[0]?0:void 0
return this.getWithDefault("".concat(t,"-").concat(i,"-").concat(o,"-").concat(c),(function(){var e={style:i,maximumFractionDigits:c,notation:o}
return new Intl.NumberFormat(r.intlLocale,e)})).format(e)}},{key:"formatCurrency",value:function(e,t,n){var r=n?Object.keys(n.parameters):[],a=r.length>1?r[1]:"symbol",o=Ve(t),i=r.length>2?r[2]:void 0
return this.getWithDefault("".concat(t,"-").concat(e.currencyCode,"-").concat(a,"-").concat(i),(function(){var t={style:"currency",currency:e.currencyCode,currencyDisplay:a,notation:i}
return new Intl.NumberFormat(o.intlLocale,t)})).format(e.amount)}}]),n}(mt),Xt=function(e){a(n,e)
var t=i(n)
function n(){return h(this,n),t.apply(this,arguments)}return g(n,[{key:"format",value:function(e,t,n){var r=Ve(n),a={style:"currency",currency:t,currencyDisplay:"code",minimumFractionDigits:"JPY"===t?0:2,maximumFractionDigits:"JPY"===t?0:2}
r.currency&&"function"==typeof r.currency.getCurrencyDisplay&&(a.currencyDisplay=r.currency.getCurrencyDisplay(t))
var o="".concat(ft(r),"-u-nu-latn-ca-gregory"),i=""
try{i=this.getWithDefault("".concat(o,"-").concat(t),(function(){return new Intl.NumberFormat(o,a)})).format(e)}catch(c){"code"===a.currencyDisplay&&(i="".concat(e," ").concat(t))}return i=i.replace(/\u0020/g," "),r.currency&&r.currency.postFormatting&&(i=r.currency.postFormatting(t,e,i)),i}}]),n}(mt)
e.CurrencyFormatter=Xt
var Gt,Bt=function(e){a(n,e)
var t=i(n)
function n(){return h(this,n),t.apply(this,arguments)}return g(n,[{key:"format",value:function(e,t){var n=Ve(t),r={maximumFractionDigits:n.number&&n.number.maximumFractionDigits?n.number.maximumFractionDigits:3},a="".concat(ft(n),"-u-nu-latn-ca-gregory"),o=this.getWithDefault(a,(function(){return new Intl.NumberFormat(a,r)})).format(e)
return n.number&&n.number.postFormatting&&(o=n.number.postFormatting(e,o)),o}}]),n}(mt)
function Qt(e,t,n){return Gt||(Gt=new Ht),Gt.formatNumber(e,t,n&&n.parameters)}function en(e,t,n){return Qt(e,t)}function tn(e,t,n){return Qt(e,t,{parameters:{integer:{key:"integer",value:null,delimiter:""}}})}function nn(e,t,n,r){return function(e,t,n){return Gt||(Gt=new Ht),Gt.formatCurrency(e,t,n)}({amount:e,currencyCode:t},n)}function rn(e,t){var n=Ve(t).number
return n&&n.percent?function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]
return e.replace(/{(\d+)}/g,(function(e,n){return void 0!==t[n]?t[n]:e}))}(e,[en(parseInt((100*t).toFixed(1),10),n)])}(n.percent,e,t):e}e.NumberFormatter=Bt
var an=function(e){a(n,e)
var t=i(n)
function n(){return h(this,n),t.apply(this,arguments)}return g(n,[{key:"format",value:function(e,t){var n=Ve(t).intlLocale,r={}
return this.getWithDefault(n,(function(){return new Intl.PluralRules(n,r)})).select(e)}}]),n}(mt)
e.PluralFormatter=an
var on,cn=function(e){a(n,e)
var t=i(n)
function n(){return h(this,n),t.apply(this,arguments)}return g(n,[{key:"format",value:function(e,t,n,r,a){var o=Ve(t).intlLocale
ft(Ve(t))
var i=pt(_t,n)
return r||(i.timeZone="UTC"),this.getWithDefault("".concat(o,"-").concat(n,"-").concat(!!i.timeZone),(function(){return new Intl.DateTimeFormat(o,i)})).format(e)}}]),n}(mt)
e.TimeFormatter=cn
var un={fmt_hm:"hm",fmt_hms:"hms"},sn={short:"fmt_hm",medium:"fmt_hms",long:"fmt_hms",full:"fmt_hms"}
function ln(e,t,n,r,a){un[t]||(sn[t]?(console.log('The time pattern "'.concat(t,'" is deprecated, falling back to "').concat(sn[t],'".')),t=sn[t]):(console.log('Unknown time pattern "'.concat(t,'", falling back to "').concat("fmt_hms",'". Note: custom time patterns are not supported.')),t="fmt_hms"))
var o=un[t]
return on||(on=new cn),on.format(e,n,o,r,!0)}e.DEFAULT_TIME_PATTERN="fmt_hms"
var fn={eq:function(e,t){return e===t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t},endsWith:function(e,t){return k("".concat(e),"".concat(t))}}
var mn=function(e){return"number"!=typeof e||isNaN(e)?function(e){try{if(void 0!==e){if(!isNaN(e))return parseInt("".concat(e),10)
var t=e.replace(/[^0-9]/g,""),n=parseInt(t,10)
return isNaN(n)?0:n}}catch(r){}return 0}(e):e},dn=1,hn=[0,1,2,3,4,5],pn=["SINGULAR","PLURAL","DUAL","FEW","MANY","ZERO"],gn={equals:{1:0},endsWith:{0:dn,1:dn,2:dn,3:dn,4:dn,5:dn,6:dn,7:dn,8:dn,9:dn}}
function yn(e,t,n){var r=Math.floor(e),a=function(e,t){var n
return t.forEach((function(t){if(void 0!==t.arg&&null!==t.arg&&"gte"===t.comparison)(0,fn.eq)(e,t.arg)&&(!n||t.arg>n.arg)&&(n=t)
else if(t.comparison){(0,fn[t.comparison])(e,t.arg)&&(!n||t.arg>n.arg)&&(n=t)}})),n}(r,t)
if(a)return a
var o=function(e,t){if(e&&null!=t){var n="".concat(t)
if(e.equals&&void 0!==e.equals[n])return e.equals[n]
if(e.endsWith)for(var r=Math.min(2,n.length);r>0;r--){var a=n.slice(-1*r)
if(void 0!==e.endsWith[a])return e.endsWith[a]}}}(n,r)
if(void 0!==o){var i,c,u=hn.indexOf(o);-1!==u&&(i=pn[u].toLowerCase())
for(var s=0;s<t.length;s++){var l=t[s]
if(l.category===i)return l
"plural"===l.category&&(c=l)}if(c)return c}}var vn=function(){function e(){h(this,e)}return g(e,[{key:"format",value:function(e,t,n){var r,a,o=Ve(n),i=o.chooser?o.chooser:gn,c=mn(e)
return t.some((function(e){return!!e.category}))?r=yn(c,t,i):t.forEach((function(t){t.comparison&&((0,fn[t.comparison])(e,t.arg)&&(!r||void 0!==t.arg&&t.arg>r.arg)&&(r=t))})),r&&"function"==typeof(a=r.text)?a():a}}]),e}()
function _n(e,t,n){return function(r){if(null==r)return-1
var a=0,o="\0",i=r.length
for(a=0;a<i&&(o=r.charAt(a),!(e.indexOf(o)<0));a++);return a>=i?-1:o>=t&&o<=n?a:-1}}e.ChooserFormatter=vn
var bn=function(){function e(t){h(this,e),this.ellipsis="...",void 0!==t&&(this.ellipsis=t)}return g(e,[{key:"format",value:function(e,t){if(!e||"string"!=typeof e)return void 0===e||""===e?"":null
if(void 0===t)return"..."
if(!t||"number"!=typeof t||t>=e.length||t<0)return e
for(var n=e.substr(0,t),r=n.split(""),a=t-1,o="",i=/\s|\?|\!|\.|\,|\;|\:/g;a>=0&&!i.test(r[a]);)a--
return o=a>0?n.substr(0,a):n,o+=this.ellipsis}}]),e}()
e.TruncationFormatter=bn
var kn,wn=/-?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+-]?\d+)?/,xn=/^(zero|singular|dual|few|many|plural|other)$/
var Cn,On,En=function(e){a(n,e)
var t=i(n)
function n(){return h(this,n),t.apply(this,arguments)}return g(n,[{key:"formatNumber",value:function(e,t,n){var r=Ve(t),a=n?Object.keys(n):[]
if(a.length>0&&!["integer","percent"].includes(a[0]))throw new Error("[XMessage] Unsupported number argument")
var o=a.length>1&&"compact"===a[1]?"compact":void 0,i=a.length>0&&"percent"===a[0]?a[0]:"decimal",c=a.length>0&&"integer"===a[0]?0:void 0
return this.getWithDefault("".concat(t,"-").concat(i,"-").concat(o,"-").concat(c),(function(){var e={style:i,maximumFractionDigits:c,notation:o}
return new Intl.NumberFormat(r.intlLocale,e)})).format(e)}},{key:"formatCurrency",value:function(e,t,n){var r=n?Object.keys(n.parameters):[],a=r.length>1?r[1]:"symbol",o=Ve(t),i=r.length>2?r[2]:void 0
return this.getWithDefault("".concat(t,"-").concat(e.currencyCode,"-").concat(a,"-").concat(i),(function(){var t={style:"currency",currency:e.currencyCode,currencyDisplay:a,notation:i}
return new Intl.NumberFormat(o.intlLocale,t)})).format(e.amount)}}]),n}(function(){function e(){h(this,e),this._formatters=new Map}return g(e,[{key:"getWithDefault",value:function(e,t){return function(e,t,n){if(e.has(t))return e.get(t)
var r=n()
return e.set(t,r),r}(this._formatters,e,t)}}]),e}())
function jn(e,t,n){return Cn||(Cn=new En),Cn.formatNumber(e,t,n&&n.parameters)}var Nn={eq:function(e,t){return e===t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t},endsWith:function(e,t){return k("".concat(e),"".concat(t))}}
function An(e,t,n){return e?"string"==typeof e?e:we(e,t,n):""}function Sn(e,t,n){return e?e.map((function(e){return An(e,t,n)})).join(""):""}function Fn(e,t,n,r){return"string"==typeof e?function(e,t){return"string"==typeof e?e:t[e.index.number]}(e,t):we(e,t,n,r)}function In(e,t,n){var r=""
return r=void 0===t?"{".concat(-1!==e.index.number?e.index.number:"").concat(""!==e.index.keyword?":".concat(e.index.keyword):"","}"):String(t),le()(r)}function Tn(e,t){var n=t instanceof y,r=n?v(t):t
if(e){var a=e.prefix,o=e.suffix
a&&(r=a.value+r),o&&(r+=o.value)}return r=n?_(r):r}var Dn=new Yt
var Pn=new Yt
function Ln(e,t,n,r){if("name"===e){var a=ye(At,t)
n=Zt(n,null!==a?a.key:"familiar",r)}return n=Tn(t,n=le()(n))}var Mn={anchor:function(e,t,n,r,a){var o=he(),i=le(),c=t,u=null!==c&&"object"===d(c),s=Ce(o(u?c.href:c)),l=Ce(u?i(c.id):null),f=Ce(u?i(c.class):null),m=v(ke(e,"text",n,r,a)),h=Ce(ke(e,"title",n,r,a)),p={}
u?Object.keys(c).forEach((function(e){"href"!==e&&"title"!==e&&(p[Ce(i(e))]=Ce(i(c[e])))})):(f&&(p.class=f),l&&(p.id=l))
var g="<a"
return s&&(g+=' href="'.concat(s,'"')),Object.keys(p).forEach((function(e){g+=" ".concat(e,'="').concat(p[e],'"')})),h&&(g+=' title="'.concat(h,'"')),_(g+=">".concat(m,"</a>"))},boolean:function(e,t,n,r,a){var o=t,i=""
if(!0===o||"true"===o)b(e,"true")&&(i=ke(e,"true",n,r,a))
else{if(!1!==o&&"false"!==o)throw new Error('Invalid argument for BooleanPlaceholder. Expected boolean or "true" or "false" but found "'.concat(o,'"'))
b(e,"false")&&(i=ke(e,"false",n,r,a))}return i},choice:function(e,t,n,r,a){for(var o,i=t,c=[],u=e.parameters,s=0,l=Object.keys(u),f=0;f<l.length;f++){"number"==typeof(o=u[l[f]]).order&&(c[o.order]=o)}var m,h=d(i)
"number"!==h||isNaN(i)?"string"===h?wn.test(i)?s=parseFloat(i):(pe("Invalid value for 'choice' placeholder. \"".concat(i,'" is not a number. Defaulting to 0.')),s=0):"object"===h&&(s=Array.isArray(i)?i.length:Object.keys(i).length):s=i
var p=c.map((function(e,t){var n={text:t.toString(),comparison:"eq"}
if(xn.test(e.key))n.text=t.toString(),n.comparison="eq",n.category=e.key
else{switch(n.text=t.toString(),e.delimiter){case"<":n.comparison="gt"
break
case"+":case"#":n.comparison="gte"
break
default:n.comparison="eq"}n.arg=parseFloat(e.key),m||(m=n)}return n}))
kn||(kn=new vn)
var g=kn.format(s,p,r)
return void 0!==g?ke(e,c[parseInt(g,10)].key,n,r,a):m?ke(e,m.arg,n,r,a):""},plural:function(e,t,n,r){On||(On=new an)
for(var a=e.parameters[t],o=a&&"#"===a.delimiter?a:e.parameters[On.format(t,r)],i=e.parameters,c=[],u=Object.keys(i),s=0;s<u.length;s++){var l=i[u[s]]
"number"==typeof l.order&&(c[l.order]=l)}var f,m=c.map((function(e,t){var n={text:t.toString(),comparison:"eq",arg:parseFloat(e.key)}
switch(e.delimiter){case"<":n.comparison="gt"
break
case"+":case"#":n.comparison="gte"
break
default:n.comparison="eq"}if(isNaN(n.arg)&&!e.key.match(/zero|one|two|few|many|other/))throw new Error("Invalid plural key: ".concat(e.key))
return n}))
if(o&&o.value){var d=e.index.number
return d>-1?An(o.value[d],n,r):Sn(o.value,n,r)}if(m.forEach((function(e){e.comparison&&((0,Nn[e.comparison])(t,e.arg)&&(!f||void 0!==e.arg&&e.arg>f.arg)&&(f=e))})),!f)return Sn(c[m[0].arg&&t<=m[0].arg?0:m.length-1].value,n,r)
var h=c[parseInt(f.text,10)]
if(!h)throw new Error("No plural style found from ".concat(f.text))
return h.value&&"string"!=typeof h.value&&"string"!=typeof h.value[0]?jn(t,r,{parameters:{integer:h}}):Sn(h.value,n,r)},select:function(e,t,n,r,a){var o=e.parameters[t]
if(function(e){for(var t=Object.keys(e.parameters),n=0;n<t.length;n++){var r=t[n]
if(t.indexOf(r,n+1)>0)throw new Error("[XMessage] duplicate ".concat(r," keys in select placeholder"))
if(!e.parameters[r].value)throw new Error("[XMessage] select key ".concat(r," without a value"))}}(e),o&&o.value){for(var i="",c=0;c<o.value.length;c++)i+=Fn(o.value[c],n,r,a)
return i}if(e.parameters.default&&e.parameters.default.value)return Fn(e.parameters.default.value[0],n,r,a)
throw new Error("[XMessage] No value resolved for select placeholder")},date:function(e,t,n,r,a){var o=be(e,0),i="fmt_mdy_medium"
return o&&(i=o.key),"fmt_d_narrow"===i&&(pe('The pattern "'.concat(i,'" is not to be used in XMessage strings. Falling back to "').concat("fmt_mdy_medium",'".')),i="fmt_mdy_medium"),jt(t,i,r,!1)},list:function(e,t,n,r){var a,o,i,c,u,s=e.subtype||"text",l="",f=lt(r,"list")||lt("default","list")
if(t&&t instanceof Array&&(o=(a=t.length)-1,a>0))switch(a){case 1:l=Ln(s,e.parameters,t[0],r)
break
case 2:l=ge(f[2],[Ln(s,e.parameters,t[0],r).toString(),Ln(s,e.parameters,t[1],r).toString()])
break
default:c=0,u=1
do{l=ge(f[i=0===c?"start":u<o?"middle":"end"],"start"===i?[Ln(s,e.parameters,t[c],r).toString(),Ln(s,e.parameters,t[u],r).toString()]:[l,Ln(s,e.parameters,t[u],r).toString()]),c++,u++}while("end"!==i)}return l},map:function(e,t,n,r,a){var o=t
return ke(e,void 0!==o&&_e(e,o=o.toString())?o:"DEFAULT_TEXT",n,r,a)},name:function(e,t,n,r){var a,o,i=ye(At,e.parameters)
return a=Zt(t,i=i&&i.key,r),e.parameters.possessive&&(a+=Pn.format(a,r)),o=le()(a),a=Tn(e.parameters,o)},number:function(e,t,n,r,a){var o,i=e.parameters
return void 0!==t&&(o=i?i.currency?function(e,t,n){return Cn||(Cn=new En),Cn.formatCurrency(e,t,n)}(t,r,e):jn(t,r,e):en(t,r)),le()(o)},possessive:function(e,t,n,r){var a="",o=new Yt
return void 0!==t&&(a=o.format(t,r)),a},simple:In,suffix:function(e,t,n,r){var a,o,i,c,u,s,l,f,m,d="",h=!1,p=e.parameters
if(void 0!==t&&(p&&(h=!!p.sep),a=lt(r,"suffix")))switch(f=(a.hardVowels||"")+(a.softVowels||""),a.strategy){case"reverseSearchForVowel":if(t.length>0){for(s=l=t.length-1;s>=0&&" "!==u&&"\t"!==u;s--)if(u=t.charAt(s),-1!==f.indexOf(u))return m=s===l,c=a.hardVowels&&a.hardVowels.indexOf(u)>-1?a.hardVowelSuffix:a.fallbackSuffix,d=String(m?a.bufferChar:"")+c,h?a.separator+d:d
for(o in a.nonVowelToSuffix)if(a.nonVowelToSuffix.hasOwnProperty(o)&&(i=a.nonVowelToSuffix[o],new RegExp(o).test(t.charAt(l)))){c=i
break}c||(c=a.defaultBufferChar),d=h?a.separator+c:c
break}}return d},text:function(e,t,n,r){var a=In(e,t)
return void 0!==a&&e.parameters.possessive&&(a+=Dn.format(a,r)),a=Tn(e.parameters,a)},time:function(e,t,n,r,a){var o=be(e,0),i="fmt_hms"
return o&&(i=o.key),ln(t,i,r,!1)}}
function Un(e,t,n,r){var a,o,i,c,u,s=""
if(e&&t&&n){var l=Mn[e.type]
if("function"==typeof l){var f=function(e,t){if(e&&e.index&&t){var n=e.index,r=n.number,a=n.keyword
if("function"==typeof t)return t(r,a)
var o=t[r>-1?r:0]
if(null!=o)return"string"==typeof a&&""!==a?o[a]:o
if("string"==typeof a&&""!==a)return t[a]}}(e,t)
if(null==f)return _((a=e.index,o=a.number,i=a.keyword,c=-1!==o?o.toString():"",u=""!==i?":".concat(i):"","{".concat(c).concat(u,"}")))
s=l(e,f,t,n,r)}}return s}function Rn(e){var t=ce(e)
return t.forEach(J),t}ve=Un
var Wn=function(e){return t.default.sanitizeHTML(e)}
function Vn(e,t,n){if(e&&1===e.length&&"string"==typeof e[0]){var r=e[0]
return function(){return Wn(r)}}return function(r){return Wn(qn(e,t,r,n))}}function qn(e,t,n,r){for(var a="",o=0;o<e.length;++o){var i=e[o]
a+="string"==typeof i?i:Un(i,n,t,r)}return a}})),define("@linkedin/ember-cli-pemberly-i18n/app-strings",["exports"],(function(e){"use strict"
e.default={"settings-web":{sv_SE:{"artdeco-dropdown/templates/components/artdeco-dropdown-item":{i18n_selected:"Valda"},"artdeco-modal/templates/components/artdeco-modal":{dismiss_button:"Avvisa",dialog_content_start:"Konversationsinnehåll start.",dialog_content_end:"Konversationsinnehåll slut."},"artdeco-toggle/templates/components/artdeco-toggle":{ad_toggled_text:"På",ad_untoggled_text:"Av"},"ember-cli-artdeco-typeahead/templates/components/artdeco-typeahead-results-list":{a11ySuggestions:"{:resultsCount,choice,0#Inga förslag hittades|singular#Ett förslag hittades. Använd upp/ned-pilarna för att navigera.|plural#Flera förslag hittades. Använd upp/ned-pilarna för att navigera.}",a11yLoading:"Laddar"},"ember-cli-artdeco-typeahead/templates/components/artdeco-typeahead":{a11ySuggestions:"{:resultsCount,choice,0#Inga förslag hittades|singular#Ett förslag hittades. Använd upp/ned-pilarna för att navigera.|plural#Flera förslag hittades. Använd upp/ned-knapparna för att navigera.}",a11yLoading:"Laddar"},"hue-web-global-alert/components/-private/hue-web-global-alert-dismiss-button":{close_text:"stäng"},"hue-web-global-alert/components/-private/hue-web-global-alert-icon-counter":{alert_counter:"{:currentAlertIndex}/{:totalAlertCount}"},"hue-web-global-alert/components/hue-web-global-alert-item":{alert_counter:"{:currentAlertIndex}/{:totalAlertCount}"},"hue-web-global-alert/components/hue-web-global-alert":{alert_heading:"Viktiga LinkedIn-aviseringar",alert_not_available:"Det finns inga aviseringar för tillfället."},"hue-web-tab/components/-private/hue-web-tablist":{overflow_trigger_label:"Mer"},"member-settings-desktop/templates/components/main-nav":{i18n_back_to_linkedin:"Gå tillbaka till LinkedIn.com",i18n_linkedin:"LinkedIn"},"member-settings-desktop/templates/components/settings/message":{message_change_saved:"Ändringen har sparats"},"member-settings-desktop/templates/dark-mode":{notation_description:"Om du väljer Enhetsinställningar kommer appen att använda det läge som är valt i den här enhetens inställningar.",device_settings:"Enhetsinställningar",dark_mode:"Mörkt läge",light_mode:"Ljust läge"},"member-settings-mobile/templates/components/mobile-footer":{help_center:"Hjälpcenter",imprint:"Avtryck",privacy_policy:"Sekretesspolicy",injobs_privacy_policy:"LinkedIns sekretesspolicy",accessibility:"Tillgänglighet",user_agreement:"Användaravtal",end_user_license:"Användaravtal för slutanvändare",sign_out:"Logga ut",developer_tools:"Verktyg för utvecklare","10_tuesday":"10%-Tuesday",chameleon_overlay:"Chameleon Overlay",app_version_string:"VERSION: {:version}",china_privacy_addendum:"Sekretesspolicytillägg för Kina",china_android_third_party_sdk:"Tillägg till LinkedIns mobilapp (Kina)"},"member-settings-mobile/templates/dark-mode":{notation_description:"Om du väljer Enhetsinställningar kommer appen att använda det läge som är valt i den här enhetens inställningar.",device_settings:"Enhetsinställningar",dark_mode:"Mörkt läge",light_mode:"Ljust läge"},"settings-web/templates/components/page-not-exist":{page_not_exist:"Den här sidan existerar inte",go_to_settings:"Gå till inställningar",go_to_homepage:"Gå till startsidan",sorry_page_not_found:"Det gick inte att hitta den sida du söker efter"},"settings-web/templates/dark-mode":{notation_description:"Om du väljer Enhetsinställningar kommer appen att använda det läge som är valt i den här enhetens inställningar.",device_settings:"Enhetsinställningar",dark_mode:"Mörkt läge",light_mode:"Ljust läge"},"settings-web/templates/error":{something_went_wrong:"Ett fel har inträffat",not_you_is_us:"Det är inte ditt fel, det är vårt",please_try_again:"Vänligen försök igen.",go_to_settings:"Gå till inställningar",go_to_homepage:"Gå till startsidan"},"settings-web/templates/no-connection":{check_your_connection:"Kontrollera anslutningen",not_connect_to_internet:"Du verkar inte vara ansluten till internet.",check_connection_try_again:"Kontrollera din uppkoppling och försök igen",try_again:"Försök igen"},"settings-web/templates/page-title":{settings:"Inställningar",account_preferences:"Kontopreferenser",sign_in_and_security:"Inloggning och säkerhet",visibility:"Synlighet",data_privacy:"Datasekretess",advertising_data:"Annonsdata",communications:"Kommunikation"},"shared-components/components/back-link":{back:"Tillbaka"},"shared-components/components/category-menu":{i18n_more:"Mer"},"shared-components/components/footer":{i18n_help_center:"Hjälpcenter",i18n_imprint:"Avtryck",i18n_privacy_policy:"Sekretesspolicy",i18n_incareer_privacy_policy:"LinkedIns sekretesspolicy",i18n_incareer_privacy_policy_addendum:"Sekretesspolicytillägg för Kina",i18n_accessibility:"Tillgänglighet",i18n_user_agreement:"Användaravtal",i18n_end_user_license:"Användaravtal för slutanvändare",i18n_sign_out:"Logga ut",i18n_developer_tools:"Verktyg för utvecklare",i18n_10_tuesday:"10 %-tisdag",i18n_chameleon_overlay:"Chameleon-överlagring",i18n_app_version_string:"VERSION: {:version}"},"shared-components/components/header":{settings_title:"Inställningar",go_to_help_center:"Hjälpcenter",back:"Tillbaka"},"shared-components/components/highlight":{important_to_know:"Bra att veta",how_this_works:"Så funkar det"},"shared-components/components/inline-feedback-error":{"inline-error_text":"Ett fel har inträffat. Försök igen."},"shared-components/components/navbar":{i18n_linkedin:"LinkedIn",i18n_incareer:"InCareer"},"shared-components/components/notification-category-card":{i18n_toggle_off_helper_description:"När aviseringar är påslagna kan du välja att få de som är relevanta för dig."},"shared-components/components/notification-parent-child":{toggle_On:"På",toggle_Off:"Av"},"shared-components/components/notification-subcategory-card":{i18n_notification_subcategory_subheader:"Välj var du vill få aviseringen"},"shared-components/components/parent-child":{toggle_On:"På",toggle_Off:"Av"},"shared-components/components/profile-dropdown":{i18n_view_profile:"Visa profil",i18n_help_center:"Hjälpcenter",i18n_sign_out:"Logga ut",i18n_something_went_wrong:"Ett fel har inträffat. Var vänlig försök igen."},"shared-components/components/profile-picture":{i18n_your_profile_photo:"Din profilbild"},"shared-components/components/profile-settings":{i18_settings:"Inställningar",i18n_last_changed_on:"Senast ändrad den"},"shared-components/components/scaffold-layout/layout":{i18n_show_less:"Visa mindre",i18n_show_more:"Visa mer"},"shared-components/components/toggle":{toggle_On:"På",toggle_Off:"Av"},"shared-components/components/custom-settings/zephyr/connect-we-chat-settings-card":{i18n_connect_wechat_button_text_connected:"Connected",i18n_connect_wechat_modal_content:"Are you sure you want to disconnect from WeChat account?",i18n_connect_wechat_modal_cancel_button:"Cancel",i18n_connect_wechat_modal_confirm_button:"Confirm"}}}}}))

//# sourceMappingURL=support_sv_SE.map